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.3eecb6cc.async.js

969 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(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("6MrE"),A=d.n(C)},"+QRC":function(H,k,d){"use strict";var O=d("E9nw"),x={"text/plain":"Text","text/html":"Url",default:"Text"},C="Copy to clipboard: #{key}, Enter";function A(g){var f=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return g.replace(/#{\s*key\s*}/g,f)}function b(g,f){var c,o,r,i,n,e,l=!1;f||(f={}),c=f.debug||!1;try{r=O(),i=document.createRange(),n=document.getSelection(),e=document.createElement("span"),e.textContent=g,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(),f.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 s=x[f.format]||x.default;window.clipboardData.setData(s,g)}else a.clipboardData.clearData(),a.clipboardData.setData(f.format,g);f.onCopy&&(a.preventDefault(),f.onCopy(a.clipboardData))}),document.body.appendChild(e),i.selectNodeContents(e),n.addRange(i);var t=document.execCommand("copy");if(!t)throw new Error("copy command was unsuccessful");l=!0}catch(a){c&&console.error("unable to copy using execCommand: ",a),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(f.format||"text",g),f.onCopy&&f.onCopy(window.clipboardData),l=!0}catch(s){c&&console.error("unable to copy using clipboardData: ",s),c&&console.error("falling back to prompt"),o=A("message"in f?f.message:C),window.prompt(o,g)}}finally{n&&(typeof n.removeRange=="function"?n.removeRange(i):n.removeAllRanges()),e&&document.body.removeChild(e),r()}return l}H.exports=b},"+TT/":function(H,k,d){var O=d("bYtY"),x=d("mFDi"),C=d("OELB"),A=C.parsePercent,b=d("7aKB"),g=O.each,f=["left","right","top","bottom","width","height"],c=[["width","left","right"],["height","top","bottom"]];function o(p,m,v,y,E){var T=0,w=0;y==null&&(y=Infinity),E==null&&(E=Infinity);var S=0;m.eachChild(function(_,I){var L=_.position,N=_.getBoundingRect(),R=m.childAt(I+1),D=R&&R.getBoundingRect(),F,M;if(p==="horizontal"){var U=N.width+(D?-D.x+N.x:0);F=T+U,F>y||_.newline?(T=0,F=U,w+=S+v,S=N.height):S=Math.max(S,N.height)}else{var B=N.height+(D?-D.y+N.y:0);M=w+B,M>E||_.newline?(T+=S+v,w=0,M=B,S=N.width):S=Math.max(S,N.width)}if(_.newline)return;L[0]=T,L[1]=w,p==="horizontal"?T=F+v:w=M+v})}var r=o,i=O.curry(o,"vertical"),n=O.curry(o,"horizontal");function e(p,m,v){var y=m.width,E=m.height,T=A(p.x,y),w=A(p.y,E),S=A(p.x2,y),_=A(p.y2,E);return(isNaN(T)||isNaN(parseFloat(p.x)))&&(T=0),(isNaN(S)||isNaN(parseFloat(p.x2)))&&(S=y),(isNaN(w)||isNaN(parseFloat(p.y)))&&(w=0),(isNaN(_)||isNaN(parseFloat(p.y2)))&&(_=E),v=b.normalizeCssArray(v||0),{width:Math.max(S-T-v[1]-v[3],0),height:Math.max(_-w-v[0]-v[2],0)}}function l(p,m,v){v=b.normalizeCssArray(v||0);var y=m.width,E=m.height,T=A(p.left,y),w=A(p.top,E),S=A(p.right,y),_=A(p.bottom,E),I=A(p.width,y),L=A(p.height,E),N=v[2]+v[0],R=v[1]+v[3],D=p.aspect;isNaN(I)&&(I=y-S-R-T),isNaN(L)&&(L=E-_-N-w),D!=null&&(isNaN(I)&&isNaN(L)&&(D>y/E?I=y*.8:L=E*.8),isNaN(I)&&(I=D*L),isNaN(L)&&(L=I/D)),isNaN(T)&&(T=y-S-I-R),isNaN(w)&&(w=E-_-L-N);switch(p.left||p.right){case"center":T=y/2-I/2-v[3];break;case"right":T=y-I-R;break}switch(p.top||p.bottom){case"middle":case"center":w=E/2-L/2-v[0];break;case"bottom":w=E-L-N;break}T=T||0,w=w||0,isNaN(I)&&(I=y-R-T-(S||0)),isNaN(L)&&(L=E-N-w-(_||0));var F=new x(T+v[3],w+v[0],I,L);return F.margin=v,F}function t(p,m,v,y,E){var T=!E||!E.hv||E.hv[0],w=!E||!E.hv||E.hv[1],S=E&&E.boundingMode||"all";if(!T&&!w)return;var _;if(S==="raw")_=p.type==="group"?new x(0,0,+m.width||0,+m.height||0):p.getBoundingRect();else if(_=p.getBoundingRect(),p.needLocalTransform()){var I=p.getLocalTransform();_=_.clone(),_.applyTransform(I)}m=l(O.defaults({width:_.width,height:_.height},m),v,y);var L=p.position,N=T?m.x-_.x:0,R=w?m.y-_.y:0;p.attr("position",S==="raw"?[N,R]:[L[0]+N,L[1]+R])}function a(p,m){return p[c[m][0]]!=null||p[c[m][1]]!=null&&p[c[m][2]]!=null}function s(p,m,v){!O.isObject(v)&&(v={});var y=v.ignoreSize;!O.isArray(y)&&(y=[y,y]);var E=w(c[0],0),T=w(c[1],1);I(c[0],p,E),I(c[1],p,T);function w(L,N){var R={},D=0,F={},M=0,U=2;if(g(L,function(W){F[W]=p[W]}),g(L,function(W){S(m,W)&&(R[W]=F[W]=m[W]),_(R,W)&&D++,_(F,W)&&M++}),y[N])return _(m,L[1])?F[L[2]]=null:_(m,L[2])&&(F[L[1]]=null),F;if(M===U||!D)return F;if(D>=U)return R;for(var B=0;B<L.length;B++){var j=L[B];if(!S(R,j)&&S(p,j)){R[j]=p[j];break}}return R}function S(L,N){return L.hasOwnProperty(N)}function _(L,N){return L[N]!=null&&L[N]!=="auto"}function I(L,N,R){g(L,function(D){N[D]=R[D]})}}function u(p){return h({},p)}function h(p,m){return m&&p&&g(f,function(v){m.hasOwnProperty(v)&&(p[v]=m[v])}),p}k.LOCATION_PARAMS=f,k.HV_NAMES=c,k.box=r,k.vbox=i,k.hbox=n,k.getAvailableSize=e,k.getLayoutRect=l,k.positionElement=t,k.sizeCalculable=a,k.mergeLayoutParam=s,k.getLayoutParams=u,k.copyLayoutParams=h},"+Zaj":function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("ugBc")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="CalendarOutlined";var c=A.forwardRef(f);k.default=c},"+d4F":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("y3Yb"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},"+eQT":function(H,k,d){"use strict";var O=d("wd/R"),x=d.n(O),C=d("Kwbf"),A={getNow:function(){return x()()},getWeekDay:function(Yt){var vr=Yt.clone().locale("en_US");return vr.weekday()+vr.localeData().firstDayOfWeek()},getYear:function(Yt){return Yt.year()},getMonth:function(Yt){return Yt.month()},getDate:function(Yt){return Yt.date()},getHour:function(Yt){return Yt.hour()},getMinute:function(Yt){return Yt.minute()},getSecond:function(Yt){return Yt.second()},addYear:function(Yt,vr){var fr=Yt.clone();return fr.add(vr,"year")},addMonth:function(Yt,vr){var fr=Yt.clone();return fr.add(vr,"month")},addDate:function(Yt,vr){var fr=Yt.clone();return fr.add(vr,"day")},setYear:function(Yt,vr){var fr=Yt.clone();return fr.year(vr)},setMonth:function(Yt,vr){var fr=Yt.clone();return fr.month(vr)},setDate:function(Yt,vr){var fr=Yt.clone();return fr.date(vr)},setHour:function(Yt,vr){var fr=Yt.clone();return fr.hour(vr)},setMinute:function(Yt,vr){var fr=Yt.clone();return fr.minute(vr)},setSecond:function(Yt,vr){var fr=Yt.clone();return fr.second(vr)},isAfter:function(Yt,vr){return Yt.isAfter(vr)},isValidate:function(Yt){return Yt.isValid()},locale:{getWeekFirstDay:function(Yt){var vr=x()().locale(Yt);return vr.localeData().firstDayOfWeek()},getWeek:function(Yt,vr){var fr=vr.clone(),Xr=fr.locale(Yt);return Xr.week()},getShortWeekDays:function(Yt){var vr=x()().locale(Yt);return vr.localeData().weekdaysMin()},getShortMonths:function(Yt){var vr=x()().locale(Yt);return vr.localeData().monthsShort()},format:function(Yt,vr,fr){var Xr=vr.clone(),Fr=Xr.locale(Yt);return Fr.format(fr)},parse:function(Yt,vr,fr){for(var Xr=[],Fr=0;Fr<fr.length;Fr+=1){var hr=fr[Fr],An=vr;if(hr.includes("wo")||hr.includes("Wo")){hr=hr.replace(/wo/g,"w").replace(/Wo/g,"W");var br=hr.match(/[-YyMmDdHhSsWwGg]+/g),mn=An.match(/[-\d]+/g);br&&mn?(hr=br.join(""),An=mn.join("")):Xr.push(hr.replace(/o/g,""))}var Kn=x()(An,hr,Yt,!0);if(Kn.isValid())return Kn}for(var Wn=0;Wn<Xr.length;Wn+=1){var Ln=x()(vr,Xr[Wn],Yt,!1);if(Ln.isValid())return Object(C.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),Ln}return null}}},b=A,g=d("pVnL"),f=d.n(g),c=d("q1tI"),o=d.n(c),r=d("2/Rp");function i($e){return c.createElement(r.a,f()({size:"small",type:"primary"},$e))}var n=d("mr32");function e($e){return c.createElement(n.a,f()({color:"blue"},$e))}var l=d("lSNA"),t=d.n(l),a=d("lwsE"),s=d.n(a),u=d("W8MJ"),h=d.n(u),p=d("7W2i"),m=d.n(p),v=d("LQ03"),y=d.n(v),E=d("TSYQ"),T=d.n(E),w=d("r/2G"),S=d.n(w),_=d("XzQk"),I=d.n(_),L=d("kbBi"),N=d.n(L),R=d("1OyB"),D=d("vuIU"),F=d("Ji7U"),M=d("LK+K"),U=d("rePB"),B=d("VTBJ"),j=d("ODXe"),W=d("6cGi"),V=d("U8pU"),z=d("4IlW"),J=c.createContext({}),q=J,de={visibility:"hidden"};function ae($e){var Yt=$e.prefixCls,vr=$e.prevIcon,fr=vr===void 0?"\u2039":vr,Xr=$e.nextIcon,Fr=Xr===void 0?"\u203A":Xr,hr=$e.superPrevIcon,An=hr===void 0?"\xAB":hr,br=$e.superNextIcon,mn=br===void 0?"\xBB":br,Kn=$e.onSuperPrev,Wn=$e.onSuperNext,Ln=$e.onPrev,$n=$e.onNext,Un=$e.children,ti=c.useContext(q),Xn=ti.hideNextBtn,wi=ti.hidePrevBtn;return c.createElement("div",{className:Yt},Kn&&c.createElement("button",{type:"button",onClick:Kn,tabIndex:-1,className:"".concat(Yt,"-super-prev-btn"),style:wi?de:{}},An),Ln&&c.createElement("button",{type:"button",onClick:Ln,tabIndex:-1,className:"".concat(Yt,"-prev-btn"),style:wi?de:{}},fr),c.createElement("div",{className:"".concat(Yt,"-view")},Un),$n&&c.createElement("button",{type:"button",onClick:$n,tabIndex:-1,className:"".concat(Yt,"-next-btn"),style:Xn?de:{}},Fr),Wn&&c.createElement("button",{type:"button",onClick:Wn,tabIndex:-1,className:"".concat(Yt,"-super-next-btn"),style:Xn?de:{}},mn))}var ve=ae;function _e($e){var Yt=c.useContext(q),vr=Yt.hideHeader;if(vr)return null;var fr=$e.prefixCls,Xr=$e.generateConfig,Fr=$e.locale,hr=$e.value,An=$e.format,br="".concat(fr,"-header");return c.createElement(ve,{prefixCls:br},hr?Xr.locale.format(Fr.locale,hr,An):"\xA0")}var Ie=_e,He=d("YrtM"),me=d("KQm4"),ke=new Map;function se($e,Yt,vr){if(ke.get($e)&&cancelAnimationFrame(ke.get($e)),vr<=0){ke.set($e,requestAnimationFrame(function(){$e.scrollTop=Yt}));return}var fr=Yt-$e.scrollTop,Xr=fr/vr*10;ke.set($e,requestAnimationFrame(function(){$e.scrollTop+=Xr,$e.scrollTop!==Yt&&se($e,Yt,vr-10)}))}function te($e,Yt){var vr=Yt.onLeftRight,fr=Yt.onCtrlLeftRight,Xr=Yt.onUpDown,Fr=Yt.onPageUpDown,hr=Yt.onEnter,An=$e.which,br=$e.ctrlKey,mn=$e.metaKey;switch(An){case z.a.LEFT:if(br||mn){if(fr)return fr(-1),!0}else if(vr)return vr(-1),!0;break;case z.a.RIGHT:if(br||mn){if(fr)return fr(1),!0}else if(vr)return vr(1),!0;break;case z.a.UP:if(Xr)return Xr(-1),!0;break;case z.a.DOWN:if(Xr)return Xr(1),!0;break;case z.a.PAGE_UP:if(Fr)return Fr(-1),!0;break;case z.a.PAGE_DOWN:if(Fr)return Fr(1),!0;break;case z.a.ENTER:if(hr)return hr(),!0;break}return!1}function Ge($e,Yt,vr,fr){var Xr=$e;if(!Xr)switch(Yt){case"time":Xr=fr?"hh:mm:ss a":"HH:mm:ss";break;case"week":Xr="gggg-wo";break;case"month":Xr="YYYY-MM";break;case"quarter":Xr="YYYY-[Q]Q";break;case"year":Xr="YYYY";break;default:Xr=vr?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Xr}function oe($e,Yt){var vr=$e==="time"?8:10;return Math.max(vr,Yt.length)+2}var Y=null,G=new Set;function Q($e){return!Y&&typeof window!="undefined"&&window.addEventListener&&(Y=function(vr){Object(me.a)(G).forEach(function(fr){fr(vr)})},window.addEventListener("mousedown",Y)),G.add($e),function(){G.delete($e),G.size===0&&(window.removeEventListener("mousedown",Y),Y=null)}}var ye=function(Yt){return Yt==="month"||Yt==="date"?"year":Yt},ce=function(Yt){return Yt==="date"?"month":Yt},Te=function(Yt){return Yt==="month"||Yt==="date"?"quarter":Yt},Se=function(Yt){return Yt==="date"?"week":Yt},le={year:ye,month:ce,quarter:Te,week:Se,time:null,date:null};function fe($e,Yt){return $e.some(function(vr){return vr&&vr.contains(Yt)})}function Ee($e){var Yt=$e.prefixCls,vr=$e.units,fr=$e.onSelect,Xr=$e.value,Fr=$e.active,hr=$e.hideDisabledOptions,An="".concat(Yt,"-cell"),br=c.useContext(q),mn=br.open,Kn=c.useRef(null),Wn=c.useRef(new Map);return c.useLayoutEffect(function(){var Ln=Wn.current.get(Xr);Ln&&mn!==!1&&se(Kn.current,Ln.offsetTop,120)},[Xr]),c.useLayoutEffect(function(){if(mn){var Ln=Wn.current.get(Xr);Ln&&se(Kn.current,Ln.offsetTop,0)}},[mn]),c.createElement("ul",{className:T()("".concat(Yt,"-column"),Object(U.a)({},"".concat(Yt,"-column-active"),Fr)),ref:Kn,style:{position:"relative"}},vr.map(function(Ln){var $n;return hr&&Ln.disabled?null:c.createElement("li",{key:Ln.value,ref:function(ti){Wn.current.set(Ln.value,ti)},className:T()(An,($n={},Object(U.a)($n,"".concat(An,"-disabled"),Ln.disabled),Object(U.a)($n,"".concat(An,"-selected"),Xr===Ln.value),$n)),onClick:function(){if(Ln.disabled)return;fr(Ln.value)}},c.createElement("div",{className:"".concat(An,"-inner")},Ln.label))}))}var Ve=Ee;function vt($e,Yt){for(var vr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",fr=String($e);fr.length<Yt;)fr="".concat(vr).concat($e);return fr}var et=function(){for(var Yt=arguments.length,vr=new Array(Yt),fr=0;fr<Yt;fr++)vr[fr]=arguments[fr];return vr};function Oe($e){return $e==null?[]:Array.isArray($e)?$e:[$e]}function Tt($e){var Yt={};return Object.keys($e).forEach(function(vr){(vr.substr(0,5)==="data-"||vr.substr(0,5)==="aria-"||vr==="role"||vr==="name")&&vr.substr(0,7)!=="data-__"&&(Yt[vr]=$e[vr])}),Yt}function Je($e,Yt){return $e?$e[Yt]:null}function St($e,Yt,vr){var fr=[Je($e,0),Je($e,1)];return fr[vr]=typeof Yt=="function"?Yt(fr[vr]):Yt,!fr[0]&&!fr[1]?null:fr}function Mt($e,Yt,vr,fr,Xr){var Fr=$e.setHour(Yt,vr);return Fr=$e.setMinute(Fr,fr),Fr=$e.setSecond(Fr,Xr),Fr}function er($e,Yt,vr,fr,Xr,Fr){var hr=Math.floor($e/fr)*fr;if(hr<$e)return[hr,60-Xr,60-Fr];var An=Math.floor(Yt/Xr)*Xr;if(An<Yt)return[hr,An,60-Fr];var br=Math.floor(vr/Fr)*Fr;return[hr,An,br]}function It($e,Yt){if($e.length!==Yt.length)return!0;for(var vr=0;vr<$e.length;vr+=1)if($e[vr].disabled!==Yt[vr].disabled)return!0;return!1}function _t($e,Yt,vr,fr){for(var Xr=[],Fr=$e;Fr<=Yt;Fr+=vr)Xr.push({label:vt(Fr,2),value:Fr,disabled:(fr||[]).includes(Fr)});return Xr}function Xe($e){var Yt=$e.generateConfig,vr=$e.prefixCls,fr=$e.operationRef,Xr=$e.activeColumnIndex,Fr=$e.value,hr=$e.showHour,An=$e.showMinute,br=$e.showSecond,mn=$e.use12Hours,Kn=$e.hourStep,Wn=Kn===void 0?1:Kn,Ln=$e.minuteStep,$n=Ln===void 0?1:Ln,Un=$e.secondStep,ti=Un===void 0?1:Un,Xn=$e.disabledHours,wi=$e.disabledMinutes,Ei=$e.disabledSeconds,Zi=$e.hideDisabledOptions,ua=$e.onSelect,Xi=[],Gi="".concat(vr,"-content"),wa="".concat(vr,"-time-panel"),na,mo=Fr?Yt.getHour(Fr):-1,Ca=Fr?Yt.getMinute(Fr):-1,qi=Fr?Yt.getSecond(Fr):-1,aa=function(Va,uo,No,Po){var to=Fr||Yt.getNow(),Uo=Math.max(0,uo),co=Math.max(0,No),fa=Math.max(0,Po);return to=Mt(Yt,to,!mn||!Va?Uo:Uo+12,co,fa),to},$i=_t(0,23,Wn,Xn&&Xn()),Aa=Object(He.a)(function(){return $i},$i,It);mn&&(na=mo>=12,mo%=12);var ya=c.useMemo(function(){if(!mn)return[!1,!1];var Sa=[!0,!0];return Aa.forEach(function(Va){var uo=Va.disabled,No=Va.value;if(uo)return;No>=12?Sa[1]=!1:Sa[0]=!1}),Sa},[mn,Aa]),Ha=Object(j.a)(ya,2),ta=Ha[0],ra=Ha[1],_a=c.useMemo(function(){return mn?Aa.filter(na?function(Sa){return Sa.value>=12}:function(Sa){return Sa.value<12}).map(function(Sa){var Va=Sa.value%12,uo=Va===0?"12":vt(Va,2);return Object(B.a)(Object(B.a)({},Sa),{},{label:uo,value:Va})}):Aa},[mn,Aa]),Ka=_t(0,59,$n,wi&&wi(mo)),bo=_t(0,59,ti,Ei&&Ei(mo,Ca));fr.current={onUpDown:function(Va){var uo=Xi[Xr];if(uo)for(var No=uo.units.findIndex(function(co){return co.value===uo.value}),Po=uo.units.length,to=1;to<Po;to+=1){var Uo=uo.units[(No+Va*to+Po)%Po];if(Uo.disabled!==!0){uo.onSelect(Uo.value);break}}}};function ga(Sa,Va,uo,No,Po){Sa!==!1&&Xi.push({node:c.cloneElement(Va,{prefixCls:wa,value:uo,active:Xr===Xi.length,onSelect:Po,units:No,hideDisabledOptions:Zi}),onSelect:Po,value:uo,units:No})}ga(hr,c.createElement(Ve,{key:"hour"}),mo,_a,function(Sa){ua(aa(na,Sa,Ca,qi),"mouse")}),ga(An,c.createElement(Ve,{key:"minute"}),Ca,Ka,function(Sa){ua(aa(na,mo,Sa,qi),"mouse")}),ga(br,c.createElement(Ve,{key:"second"}),qi,bo,function(Sa){ua(aa(na,mo,Ca,Sa),"mouse")});var go=-1;return typeof na=="boolean"&&(go=na?1:0),ga(mn===!0,c.createElement(Ve,{key:"12hours"}),go,[{label:"AM",value:0,disabled:ta},{label:"PM",value:1,disabled:ra}],function(Sa){ua(aa(!!Sa,mo,Ca,qi),"mouse")}),c.createElement("div",{className:Gi},Xi.map(function(Sa){var Va=Sa.node;return Va}))}var ie=Xe,X=function(Yt){return Yt.filter(function(vr){return vr!==!1}).length};function Be($e){var Yt=$e.generateConfig,vr=$e.format,fr=vr===void 0?"HH:mm:ss":vr,Xr=$e.prefixCls,Fr=$e.active,hr=$e.operationRef,An=$e.showHour,br=$e.showMinute,mn=$e.showSecond,Kn=$e.use12Hours,Wn=Kn===void 0?!1:Kn,Ln=$e.onSelect,$n=$e.value,Un="".concat(Xr,"-time-panel"),ti=c.useRef(),Xn=c.useState(-1),wi=Object(j.a)(Xn,2),Ei=wi[0],Zi=wi[1],ua=X([An,br,mn,Wn]);return hr.current={onKeyDown:function(Gi){return te(Gi,{onLeftRight:function(na){Zi((Ei+na+ua)%ua)},onUpDown:function(na){Ei===-1?Zi(0):ti.current&&ti.current.onUpDown(na)},onEnter:function(){Ln($n||Yt.getNow(),"key"),Zi(-1)}})},onBlur:function(){Zi(-1)}},c.createElement("div",{className:T()(Un,Object(U.a)({},"".concat(Un,"-active"),Fr))},c.createElement(Ie,Object.assign({},$e,{format:fr,prefixCls:Xr})),c.createElement(ie,Object.assign({},$e,{prefixCls:Xr,activeColumnIndex:Ei,operationRef:ti})))}var Ce=Be,Z=7;function nt($e,Yt){return!$e&&!Yt?!0:!$e||!Yt?!1:void 0}function ct($e,Yt,vr){var fr=nt(Yt,vr);if(typeof fr=="boolean")return fr;var Xr=Math.floor($e.getYear(Yt)/10),Fr=Math.floor($e.getYear(vr)/10);return Xr===Fr}function Qe($e,Yt,vr){var fr=nt(Yt,vr);return typeof fr=="boolean"?fr:$e.getYear(Yt)===$e.getYear(vr)}function dt($e,Yt){var vr=Math.floor($e.getMonth(Yt)/3);return vr+1}function Ft($e,Yt,vr){var fr=nt(Yt,vr);return typeof fr=="boolean"?fr:Qe($e,Yt,vr)&&dt($e,Yt)===dt($e,vr)}function Lr($e,Yt,vr){var fr=nt(Yt,vr);return typeof fr=="boolean"?fr:Qe($e,Yt,vr)&&$e.getMonth(Yt)===$e.getMonth(vr)}function Wt($e,Yt,vr){var fr=nt(Yt,vr);return typeof fr=="boolean"?fr:$e.getYear(Yt)===$e.getYear(vr)&&$e.getMonth(Yt)===$e.getMonth(vr)&&$e.getDate(Yt)===$e.getDate(vr)}function ar($e,Yt,vr){var fr=nt(Yt,vr);return typeof fr=="boolean"?fr:$e.getHour(Yt)===$e.getHour(vr)&&$e.getMinute(Yt)===$e.getMinute(vr)&&$e.getSecond(Yt)===$e.getSecond(vr)}function Ut($e,Yt,vr,fr){var Xr=nt(vr,fr);return typeof Xr=="boolean"?Xr:$e.locale.getWeek(Yt,vr)===$e.locale.getWeek(Yt,fr)}function kt($e,Yt,vr){return Wt($e,Yt,vr)&&ar($e,Yt,vr)}function st($e,Yt,vr,fr){return!Yt||!vr||!fr?!1:!Wt($e,Yt,fr)&&!Wt($e,vr,fr)&&$e.isAfter(fr,Yt)&&$e.isAfter(vr,fr)}function Rr($e,Yt,vr){var fr=Yt.locale.getWeekFirstDay($e),Xr=Yt.setDate(vr,1),Fr=Yt.getWeekDay(Xr),hr=Yt.addDate(Xr,fr-Fr);return Yt.getMonth(hr)===Yt.getMonth(vr)&&Yt.getDate(hr)>1&&(hr=Yt.addDate(hr,-7)),hr}function on($e,Yt,vr){var fr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Yt){case"year":return vr.addYear($e,fr*10);case"quarter":case"month":return vr.addYear($e,fr);default:return vr.addMonth($e,fr)}}var Sn=c.createContext({}),zn=Sn;function Ii($e){var Yt=$e.cellPrefixCls,vr=$e.generateConfig,fr=$e.rangedValue,Xr=$e.hoverRangedValue,Fr=$e.isInView,hr=$e.isSameCell,An=$e.offsetCell,br=$e.today,mn=$e.value;function Kn(Wn){var Ln,$n=An(Wn,-1),Un=An(Wn,1),ti=Je(fr,0),Xn=Je(fr,1),wi=Je(Xr,0),Ei=Je(Xr,1),Zi=st(vr,wi,Ei,Wn);function ua(Ca){return hr(ti,Ca)}function Xi(Ca){return hr(Xn,Ca)}var Gi=hr(wi,Wn),wa=hr(Ei,Wn),na=(Zi||wa)&&(!Fr($n)||Xi($n)),mo=(Zi||Gi)&&(!Fr(Un)||ua(Un));return Ln={},Object(U.a)(Ln,"".concat(Yt,"-in-view"),Fr(Wn)),Object(U.a)(Ln,"".concat(Yt,"-in-range"),st(vr,ti,Xn,Wn)),Object(U.a)(Ln,"".concat(Yt,"-range-start"),ua(Wn)),Object(U.a)(Ln,"".concat(Yt,"-range-end"),Xi(Wn)),Object(U.a)(Ln,"".concat(Yt,"-range-start-single"),ua(Wn)&&!Xn),Object(U.a)(Ln,"".concat(Yt,"-range-end-single"),Xi(Wn)&&!ti),Object(U.a)(Ln,"".concat(Yt,"-range-start-near-hover"),ua(Wn)&&(hr($n,wi)||st(vr,wi,Ei,$n))),Object(U.a)(Ln,"".concat(Yt,"-range-end-near-hover"),Xi(Wn)&&(hr(Un,Ei)||st(vr,wi,Ei,Un))),Object(U.a)(Ln,"".concat(Yt,"-range-hover"),Zi),Object(U.a)(Ln,"".concat(Yt,"-range-hover-start"),Gi),Object(U.a)(Ln,"".concat(Yt,"-range-hover-end"),wa),Object(U.a)(Ln,"".concat(Yt,"-range-hover-edge-start"),na),Object(U.a)(Ln,"".concat(Yt,"-range-hover-edge-end"),mo),Object(U.a)(Ln,"".concat(Yt,"-range-hover-edge-start-near-range"),na&&hr($n,Xn)),Object(U.a)(Ln,"".concat(Yt,"-range-hover-edge-end-near-range"),mo&&hr(Un,ti)),Object(U.a)(Ln,"".concat(Yt,"-today"),hr(br,Wn)),Object(U.a)(Ln,"".concat(Yt,"-selected"),hr(mn,Wn)),Ln}return Kn}function yn($e){for(var Yt=$e.prefixCls,vr=$e.disabledDate,fr=$e.onSelect,Xr=$e.rowNum,Fr=$e.colNum,hr=$e.prefixColumn,An=$e.rowClassName,br=$e.baseDate,mn=$e.getCellClassName,Kn=$e.getCellText,Wn=$e.getCellNode,Ln=$e.getCellDate,$n=$e.titleCell,Un=$e.headerCells,ti=c.useContext(q),Xn=ti.onDateMouseEnter,wi=ti.onDateMouseLeave,Ei="".concat(Yt,"-cell"),Zi=[],ua=0;ua<Xr;ua+=1){for(var Xi=[],Gi=void 0,wa=function(Ca){var qi=ua*Fr+Ca,aa=Ln(br,qi),$i=vr&&vr(aa);Ca===0&&(Gi=aa,hr&&Xi.push(hr(Gi))),Xi.push(c.createElement("td",{key:Ca,title:$n&&$n(aa),className:T()(Ei,Object(B.a)(Object(U.a)({},"".concat(Ei,"-disabled"),$i),mn(aa))),onClick:function(){$i||fr(aa)},onMouseEnter:function(){!$i&&Xn&&Xn(aa)},onMouseLeave:function(){!$i&&wi&&wi(aa)}},Wn?Wn(aa):c.createElement("div",{className:"".concat(Ei,"-inner")},Kn(aa))))},na=0;na<Fr;na+=1)wa(na);Zi.push(c.createElement("tr",{key:ua,className:An&&An(Gi)},Xi))}return c.createElement("div",{className:"".concat(Yt,"-body")},c.createElement("table",{className:"".concat(Yt,"-content")},Un&&c.createElement("thead",null,c.createElement("tr",null,Un)),c.createElement("tbody",null,Zi)))}function Nn($e){var Yt=$e.prefixCls,vr=$e.generateConfig,fr=$e.prefixColumn,Xr=$e.locale,Fr=$e.rowCount,hr=$e.viewDate,An=$e.value,br=$e.dateRender,mn=c.useContext(zn),Kn=mn.rangedValue,Wn=mn.hoverRangedValue,Ln=Rr(Xr.locale,vr,hr),$n="".concat(Yt,"-cell"),Un=vr.locale.getWeekFirstDay(Xr.locale),ti=vr.getNow(),Xn=[],wi=Xr.shortWeekDays||(vr.locale.getShortWeekDays?vr.locale.getShortWeekDays(Xr.locale):[]);fr&&Xn.push(c.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Ei=0;Ei<Z;Ei+=1)Xn.push(c.createElement("th",{key:Ei},wi[(Ei+Un)%Z]));var Zi=Ii({cellPrefixCls:$n,today:ti,value:An,generateConfig:vr,rangedValue:fr?null:Kn,hoverRangedValue:fr?null:Wn,isSameCell:function(Gi,wa){return Wt(vr,Gi,wa)},isInView:function(Gi){return Lr(vr,Gi,hr)},offsetCell:function(Gi,wa){return vr.addDate(Gi,wa)}}),ua=br?function(Xi){return br(Xi,ti)}:void 0;return c.createElement(yn,Object.assign({},$e,{rowNum:Fr,colNum:Z,baseDate:Ln,getCellNode:ua,getCellText:vr.getDate,getCellClassName:Zi,getCellDate:vr.addDate,titleCell:function(Gi){return vr.locale.format(Xr.locale,Gi,"YYYY-MM-DD")},headerCells:Xn}))}var jt=Nn;function At($e){var Yt=$e.prefixCls,vr=$e.generateConfig,fr=$e.locale,Xr=$e.viewDate,Fr=$e.onNextMonth,hr=$e.onPrevMonth,An=$e.onNextYear,br=$e.onPrevYear,mn=$e.onYearClick,Kn=$e.onMonthClick,Wn=c.useContext(q),Ln=Wn.hideHeader;if(Ln)return null;var $n="".concat(Yt,"-header"),Un=fr.shortMonths||(vr.locale.getShortMonths?vr.locale.getShortMonths(fr.locale):[]),ti=vr.getMonth(Xr),Xn=c.createElement("button",{type:"button",key:"year",onClick:mn,tabIndex:-1,className:"".concat(Yt,"-year-btn")},vr.locale.format(fr.locale,Xr,fr.yearFormat)),wi=c.createElement("button",{type:"button",key:"month",onClick:Kn,tabIndex:-1,className:"".concat(Yt,"-month-btn")},fr.monthFormat?vr.locale.format(fr.locale,Xr,fr.monthFormat):Un[ti]),Ei=fr.monthBeforeYear?[wi,Xn]:[Xn,wi];return c.createElement(ve,Object.assign({},$e,{prefixCls:$n,onSuperPrev:br,onPrev:hr,onNext:Fr,onSuperNext:An}),Ei)}var Re=At,Ke=6;function Pe($e){var Yt=$e.prefixCls,vr=$e.panelName,fr=vr===void 0?"date":vr,Xr=$e.keyboardConfig,Fr=$e.active,hr=$e.operationRef,An=$e.generateConfig,br=$e.value,mn=$e.viewDate,Kn=$e.onViewDateChange,Wn=$e.onPanelChange,Ln=$e.onSelect,$n="".concat(Yt,"-").concat(fr,"-panel");hr.current={onKeyDown:function(wi){return te(wi,Object(B.a)({onLeftRight:function(Zi){Ln(An.addDate(br||mn,Zi),"key")},onCtrlLeftRight:function(Zi){Ln(An.addYear(br||mn,Zi),"key")},onUpDown:function(Zi){Ln(An.addDate(br||mn,Zi*Z),"key")},onPageUpDown:function(Zi){Ln(An.addMonth(br||mn,Zi),"key")}},Xr))}};var Un=function(wi){var Ei=An.addYear(mn,wi);Kn(Ei),Wn(null,Ei)},ti=function(wi){var Ei=An.addMonth(mn,wi);Kn(Ei),Wn(null,Ei)};return c.createElement("div",{className:T()($n,Object(U.a)({},"".concat($n,"-active"),Fr))},c.createElement(Re,Object.assign({},$e,{prefixCls:Yt,value:br,viewDate:mn,onPrevYear:function(){Un(-1)},onNextYear:function(){Un(1)},onPrevMonth:function(){ti(-1)},onNextMonth:function(){ti(1)},onMonthClick:function(){Wn("month",mn)},onYearClick:function(){Wn("year",mn)}})),c.createElement(jt,Object.assign({},$e,{onSelect:function(wi){return Ln(wi,"mouse")},prefixCls:Yt,value:br,viewDate:mn,rowCount:Ke})))}var at=Pe;function wt($e,Yt,vr){if(!vr)return Yt;var fr=Yt;return fr=$e.setHour(fr,$e.getHour(vr)),fr=$e.setMinute(fr,$e.getMinute(vr)),fr=$e.setSecond(fr,$e.getSecond(vr)),fr}var Rt=et("date","time");function xt($e){var Yt=$e.prefixCls,vr=$e.operationRef,fr=$e.generateConfig,Xr=$e.value,Fr=$e.defaultValue,hr=$e.disabledTime,An=$e.showTime,br=$e.onSelect,mn="".concat(Yt,"-datetime-panel"),Kn=c.useState(null),Wn=Object(j.a)(Kn,2),Ln=Wn[0],$n=Wn[1],Un=c.useRef({}),ti=c.useRef({}),Xn=Object(V.a)(An)==="object"?Object(B.a)({},An):{};function wi(Xi){var Gi=Rt.indexOf(Ln)+Xi,wa=Rt[Gi]||null;return wa}var Ei=function(Gi){ti.current.onBlur&&ti.current.onBlur(Gi),$n(null)};vr.current={onKeyDown:function(Gi){if(Gi.which===z.a.TAB){var wa=wi(Gi.shiftKey?-1:1);return $n(wa),wa&&Gi.preventDefault(),!0}if(Ln){var na=Ln==="date"?Un:ti;return na.current&&na.current.onKeyDown&&na.current.onKeyDown(Gi),!0}return[z.a.LEFT,z.a.RIGHT,z.a.UP,z.a.DOWN].includes(Gi.which)?($n("date"),!0):!1},onBlur:Ei,onClose:Ei};var Zi=function(Gi,wa){var na=Gi;wa==="date"&&!Xr&&Xn.defaultValue?(na=fr.setHour(na,fr.getHour(Xn.defaultValue)),na=fr.setMinute(na,fr.getMinute(Xn.defaultValue)),na=fr.setSecond(na,fr.getSecond(Xn.defaultValue))):wa==="time"&&!Xr&&Fr&&(na=fr.setYear(na,fr.getYear(Fr)),na=fr.setMonth(na,fr.getMonth(Fr)),na=fr.setDate(na,fr.getDate(Fr))),br&&br(na,"mouse")},ua=hr?hr(Xr||null):{};return c.createElement("div",{className:T()(mn,Object(U.a)({},"".concat(mn,"-active"),Ln))},c.createElement(at,Object.assign({},$e,{operationRef:Un,active:Ln==="date",onSelect:function(Gi){Zi(wt(fr,Gi,An&&Object(V.a)(An)==="object"?An.defaultValue:null),"date")}})),c.createElement(Ce,Object.assign({},$e,{format:void 0},Xn,ua,{defaultValue:void 0,operationRef:ti,active:Ln==="time",onSelect:function(Gi){Zi(Gi,"time")}})))}var Lt=xt;function gr($e){var Yt=$e.prefixCls,vr=$e.generateConfig,fr=$e.locale,Xr=$e.value,Fr="".concat(Yt,"-cell"),hr=function(Kn){return c.createElement("td",{key:"week",className:T()(Fr,"".concat(Fr,"-week"))},vr.locale.getWeek(fr.locale,Kn))},An="".concat(Yt,"-week-panel-row"),br=function(Kn){return T()(An,Object(U.a)({},"".concat(An,"-selected"),Ut(vr,fr.locale,Xr,Kn)))};return c.createElement(at,Object.assign({},$e,{panelName:"week",prefixColumn:hr,rowClassName:br,keyboardConfig:{onLeftRight:null}}))}var Br=gr;function Et($e){var Yt=$e.prefixCls,vr=$e.generateConfig,fr=$e.locale,Xr=$e.viewDate,Fr=$e.onNextYear,hr=$e.onPrevYear,An=$e.onYearClick,br=c.useContext(q),mn=br.hideHeader;if(mn)return null;var Kn="".concat(Yt,"-header");return c.createElement(ve,Object.assign({},$e,{prefixCls:Kn,onSuperPrev:hr,onSuperNext:Fr}),c.createElement("button",{type:"button",onClick:An,className:"".concat(Yt,"-year-btn")},vr.locale.format(fr.locale,Xr,fr.yearFormat)))}var it=Et,rt=3,Pt=4;function Ht($e){var Yt=$e.prefixCls,vr=$e.locale,fr=$e.value,Xr=$e.viewDate,Fr=$e.generateConfig,hr=$e.monthCellRender,An=c.useContext(zn),br=An.rangedValue,mn=An.hoverRangedValue,Kn="".concat(Yt,"-cell"),Wn=Ii({cellPrefixCls:Kn,value:fr,generateConfig:Fr,rangedValue:br,hoverRangedValue:mn,isSameCell:function(Xn,wi){return Lr(Fr,Xn,wi)},isInView:function(){return!0},offsetCell:function(Xn,wi){return Fr.addMonth(Xn,wi)}}),Ln=vr.shortMonths||(Fr.locale.getShortMonths?Fr.locale.getShortMonths(vr.locale):[]),$n=Fr.setMonth(Xr,0),Un=hr?function(ti){return hr(ti,vr)}:void 0;return c.createElement(yn,Object.assign({},$e,{rowNum:Pt,colNum:rt,baseDate:$n,getCellNode:Un,getCellText:function(Xn){return vr.monthFormat?Fr.locale.format(vr.locale,Xn,vr.monthFormat):Ln[Fr.getMonth(Xn)]},getCellClassName:Wn,getCellDate:Fr.addMonth,titleCell:function(Xn){return Fr.locale.format(vr.locale,Xn,"YYYY-MM")}}))}var bt=Ht;function Gt($e){var Yt=$e.prefixCls,vr=$e.operationRef,fr=$e.onViewDateChange,Xr=$e.generateConfig,Fr=$e.value,hr=$e.viewDate,An=$e.onPanelChange,br=$e.onSelect,mn="".concat(Yt,"-month-panel");vr.current={onKeyDown:function(Ln){return te(Ln,{onLeftRight:function(Un){br(Xr.addMonth(Fr||hr,Un),"key")},onCtrlLeftRight:function(Un){br(Xr.addYear(Fr||hr,Un),"key")},onUpDown:function(Un){br(Xr.addMonth(Fr||hr,Un*rt),"key")},onEnter:function(){An("date",Fr||hr)}})}};var Kn=function(Ln){var $n=Xr.addYear(hr,Ln);fr($n),An(null,$n)};return c.createElement("div",{className:mn},c.createElement(it,Object.assign({},$e,{prefixCls:Yt,onPrevYear:function(){Kn(-1)},onNextYear:function(){Kn(1)},onYearClick:function(){An("year",hr)}})),c.createElement(bt,Object.assign({},$e,{prefixCls:Yt,onSelect:function(Ln){br(Ln,"mouse"),An("date",Ln)}})))}var ut=Gt;function Kt($e){var Yt=$e.prefixCls,vr=$e.generateConfig,fr=$e.locale,Xr=$e.viewDate,Fr=$e.onNextYear,hr=$e.onPrevYear,An=$e.onYearClick,br=c.useContext(q),mn=br.hideHeader;if(mn)return null;var Kn="".concat(Yt,"-header");return c.createElement(ve,Object.assign({},$e,{prefixCls:Kn,onSuperPrev:hr,onSuperNext:Fr}),c.createElement("button",{type:"button",onClick:An,className:"".concat(Yt,"-year-btn")},vr.locale.format(fr.locale,Xr,fr.yearFormat)))}var Ar=Kt,ir=4,pr=1;function tn($e){var Yt=$e.prefixCls,vr=$e.locale,fr=$e.value,Xr=$e.viewDate,Fr=$e.generateConfig,hr=c.useContext(zn),An=hr.rangedValue,br=hr.hoverRangedValue,mn="".concat(Yt,"-cell"),Kn=Ii({cellPrefixCls:mn,value:fr,generateConfig:Fr,rangedValue:An,hoverRangedValue:br,isSameCell:function($n,Un){return Ft(Fr,$n,Un)},isInView:function(){return!0},offsetCell:function($n,Un){return Fr.addMonth($n,Un*3)}}),Wn=Fr.setDate(Fr.setMonth(Xr,0),1);return c.createElement(yn,Object.assign({},$e,{rowNum:pr,colNum:ir,baseDate:Wn,getCellText:function($n){return Fr.locale.format(vr.locale,$n,vr.quarterFormat||"[Q]Q")},getCellClassName:Kn,getCellDate:function($n,Un){return Fr.addMonth($n,Un*3)},titleCell:function($n){return Fr.locale.format(vr.locale,$n,"YYYY-[Q]Q")}}))}var fn=tn;function Mn($e){var Yt=$e.prefixCls,vr=$e.operationRef,fr=$e.onViewDateChange,Xr=$e.generateConfig,Fr=$e.value,hr=$e.viewDate,An=$e.onPanelChange,br=$e.onSelect,mn="".concat(Yt,"-quarter-panel");vr.current={onKeyDown:function(Ln){return te(Ln,{onLeftRight:function(Un){br(Xr.addMonth(Fr||hr,Un*3),"key")},onCtrlLeftRight:function(Un){br(Xr.addYear(Fr||hr,Un),"key")},onUpDown:function(Un){br(Xr.addYear(Fr||hr,Un),"key")}})}};var Kn=function(Ln){var $n=Xr.addYear(hr,Ln);fr($n),An(null,$n)};return c.createElement("div",{className:mn},c.createElement(Ar,Object.assign({},$e,{prefixCls:Yt,onPrevYear:function(){Kn(-1)},onNextYear:function(){Kn(1)},onYearClick:function(){An("year",hr)}})),c.createElement(fn,Object.assign({},$e,{prefixCls:Yt,onSelect:function(Ln){br(Ln,"mouse")}})))}var Yn=Mn;function si($e){var Yt=$e.prefixCls,vr=$e.generateConfig,fr=$e.viewDate,Xr=$e.onPrevDecade,Fr=$e.onNextDecade,hr=$e.onDecadeClick,An=c.useContext(q),br=An.hideHeader;if(br)return null;var mn="".concat(Yt,"-header"),Kn=vr.getYear(fr),Wn=Math.floor(Kn/Ne)*Ne,Ln=Wn+Ne-1;return c.createElement(ve,Object.assign({},$e,{prefixCls:mn,onSuperPrev:Xr,onSuperNext:Fr}),c.createElement("button",{type:"button",onClick:hr,className:"".concat(Yt,"-decade-btn")},Wn,"-",Ln))}var vi=si,xi=3,_i=4;function Ze($e){var Yt=$e.prefixCls,vr=$e.value,fr=$e.viewDate,Xr=$e.locale,Fr=$e.generateConfig,hr=c.useContext(zn),An=hr.rangedValue,br=hr.hoverRangedValue,mn="".concat(Yt,"-cell"),Kn=Fr.getYear(fr),Wn=Math.floor(Kn/Ne)*Ne,Ln=Wn+Ne-1,$n=Fr.setYear(fr,Wn-Math.ceil((xi*_i-Ne)/2)),Un=function(wi){var Ei=Fr.getYear(wi);return Wn<=Ei&&Ei<=Ln},ti=Ii({cellPrefixCls:mn,value:vr,generateConfig:Fr,rangedValue:An,hoverRangedValue:br,isSameCell:function(wi,Ei){return Qe(Fr,wi,Ei)},isInView:Un,offsetCell:function(wi,Ei){return Fr.addYear(wi,Ei)}});return c.createElement(yn,Object.assign({},$e,{rowNum:_i,colNum:xi,baseDate:$n,getCellText:Fr.getYear,getCellClassName:ti,getCellDate:Fr.addYear,titleCell:function(wi){return Fr.locale.format(Xr.locale,wi,"YYYY")}}))}var we=Ze,Ne=10;function Fe($e){var Yt=$e.prefixCls,vr=$e.operationRef,fr=$e.onViewDateChange,Xr=$e.generateConfig,Fr=$e.value,hr=$e.viewDate,An=$e.sourceMode,br=$e.onSelect,mn=$e.onPanelChange,Kn="".concat(Yt,"-year-panel");vr.current={onKeyDown:function($n){return te($n,{onLeftRight:function(ti){br(Xr.addYear(Fr||hr,ti),"key")},onCtrlLeftRight:function(ti){br(Xr.addYear(Fr||hr,ti*Ne),"key")},onUpDown:function(ti){br(Xr.addYear(Fr||hr,ti*xi),"key")},onEnter:function(){mn(An==="date"?"date":"month",Fr||hr)}})}};var Wn=function($n){var Un=Xr.addYear(hr,$n*10);fr(Un),mn(null,Un)};return c.createElement("div",{className:Kn},c.createElement(vi,Object.assign({},$e,{prefixCls:Yt,onPrevDecade:function(){Wn(-1)},onNextDecade:function(){Wn(1)},onDecadeClick:function(){mn("decade",hr)}})),c.createElement(we,Object.assign({},$e,{prefixCls:Yt,onSelect:function($n){mn(An==="date"?"date":"month",$n),br($n,"mouse")}})))}var Ye=Fe;function We($e){var Yt=$e.prefixCls,vr=$e.generateConfig,fr=$e.viewDate,Xr=$e.onPrevDecades,Fr=$e.onNextDecades,hr=c.useContext(q),An=hr.hideHeader;if(An)return null;var br="".concat(Yt,"-header"),mn=vr.getYear(fr),Kn=Math.floor(mn/jr)*jr,Wn=Kn+jr-1;return c.createElement(ve,Object.assign({},$e,{prefixCls:br,onSuperPrev:Xr,onSuperNext:Fr}),Kn,"-",Wn)}var qe=We,yt=3,ot=4;function $t($e){var Yt=Sr-1,vr=$e.prefixCls,fr=$e.viewDate,Xr=$e.generateConfig,Fr=$e.disabledDate,hr="".concat(vr,"-cell"),An=Xr.getYear(fr),br=Math.floor(An/Sr)*Sr,mn=Math.floor(An/jr)*jr,Kn=mn+jr-1,Wn=Xr.setYear(fr,mn-Math.ceil((yt*ot*Sr-jr)/2)),Ln=function(Un){var ti,Xn=Fr&&Fr(Un),wi=Xr.getYear(Un),Ei=wi+Yt;return ti={},Object(U.a)(ti,"".concat(hr,"-disabled"),Xn),Object(U.a)(ti,"".concat(hr,"-in-view"),mn<=wi&&Ei<=Kn),Object(U.a)(ti,"".concat(hr,"-selected"),wi===br),ti};return c.createElement(yn,Object.assign({},$e,{rowNum:ot,colNum:yt,baseDate:Wn,getCellText:function(Un){var ti=Xr.getYear(Un);return"".concat(ti,"-").concat(ti+Yt)},getCellClassName:Ln,getCellDate:function(Un,ti){return Xr.addYear(Un,ti*Sr)}}))}var Mr=$t,Sr=10,jr=Sr*10;function tr($e){var Yt=$e.prefixCls,vr=$e.onViewDateChange,fr=$e.generateConfig,Xr=$e.viewDate,Fr=$e.operationRef,hr=$e.onSelect,An=$e.onPanelChange,br="".concat(Yt,"-decade-panel");Fr.current={onKeyDown:function(Ln){return te(Ln,{onLeftRight:function(Un){hr(fr.addYear(Xr,Un*Sr),"key")},onCtrlLeftRight:function(Un){hr(fr.addYear(Xr,Un*jr),"key")},onUpDown:function(Un){hr(fr.addYear(Xr,Un*Sr*yt),"key")},onEnter:function(){An("year",Xr)}})}};var mn=function(Ln){var $n=fr.addYear(Xr,Ln*jr);vr($n),An(null,$n)},Kn=function(Ln){hr(Ln,"mouse"),An("year",Ln)};return c.createElement("div",{className:br},c.createElement(qe,Object.assign({},$e,{prefixCls:Yt,onPrevDecades:function(){mn(-1)},onNextDecades:function(){mn(1)}})),c.createElement(Mr,Object.assign({},$e,{prefixCls:Yt,onSelect:Kn})))}var gn=tr;function sr($e,Yt,vr){return vr?c.createElement("div",{className:"".concat($e,"-footer-extra")},vr(Yt)):null}function un($e){var Yt=$e.prefixCls,vr=$e.rangeList,fr=vr===void 0?[]:vr,Xr=$e.components,Fr=Xr===void 0?{}:Xr,hr=$e.needConfirmButton,An=$e.onNow,br=$e.onOk,mn=$e.okDisabled,Kn=$e.showNow,Wn=$e.locale,Ln,$n;if(fr.length){var Un=Fr.rangeItem||"span";Ln=c.createElement(c.Fragment,null,fr.map(function(Xn){var wi=Xn.label,Ei=Xn.onClick,Zi=Xn.onMouseEnter,ua=Xn.onMouseLeave;return c.createElement("li",{key:wi,className:"".concat(Yt,"-preset")},c.createElement(Un,{onClick:Ei,onMouseEnter:Zi,onMouseLeave:ua},wi))}))}if(hr){var ti=Fr.button||"button";An&&!Ln&&Kn!==!1&&(Ln=c.createElement("li",{className:"".concat(Yt,"-now")},c.createElement("a",{className:"".concat(Yt,"-now-btn"),onClick:An},Wn.now))),$n=hr&&c.createElement("li",{className:"".concat(Yt,"-ok")},c.createElement(ti,{disabled:mn,onClick:br},Wn.ok))}return!Ln&&!$n?null:c.createElement("ul",{className:"".concat(Yt,"-ranges")},Ln,$n)}function an($e){var Yt,vr=$e.prefixCls,fr=vr===void 0?"rc-picker":vr,Xr=$e.className,Fr=$e.style,hr=$e.locale,An=$e.generateConfig,br=$e.value,mn=$e.defaultValue,Kn=$e.pickerValue,Wn=$e.defaultPickerValue,Ln=$e.disabledDate,$n=$e.mode,Un=$e.picker,ti=Un===void 0?"date":Un,Xn=$e.tabIndex,wi=Xn===void 0?0:Xn,Ei=$e.showNow,Zi=$e.showTime,ua=$e.showToday,Xi=$e.renderExtraFooter,Gi=$e.hideHeader,wa=$e.onSelect,na=$e.onChange,mo=$e.onPanelChange,Ca=$e.onMouseDown,qi=$e.onPickerValueChange,aa=$e.onOk,$i=$e.components,Aa=$e.direction,ya=$e.hourStep,Ha=ya===void 0?1:ya,ta=$e.minuteStep,ra=ta===void 0?1:ta,_a=$e.secondStep,Ka=_a===void 0?1:_a,bo=ti==="date"&&!!Zi||ti==="time",ga=24%Ha===0,go=60%ra===0,Sa=60%Ka===0,Va=c.useContext(q),uo=Va.operationRef,No=Va.panelRef,Po=Va.onSelect,to=Va.hideRanges,Uo=Va.defaultOpenValue,co=c.useContext(zn),fa=co.inRange,ro=co.panelPosition,Wa=co.rangedValue,Ea=co.hoverRangedValue,Jr=c.useRef({}),za=c.useRef(!0),rs=Object(W.a)(null,{value:br,defaultValue:mn,postState:function(Qn){return!Qn&&Uo&&ti==="time"?Uo:Qn}}),Vo=Object(j.a)(rs,2),Go=Vo[0],Qo=Vo[1],Yo=Object(W.a)(null,{value:Kn,defaultValue:Wn||Go,postState:function(Qn){return Qn||An.getNow()}}),vo=Object(j.a)(Yo,2),Io=vo[0],zo=vo[1],Fa=function(Qn){zo(Qn),qi&&qi(Qn)},Ja=function(Qn){var Di=le[ti];return Di?Di(Qn):Qn},ho=Object(W.a)(function(){return ti==="time"?"time":Ja("date")},{value:$n}),Ao=Object(j.a)(ho,2),$o=Ao[0],ps=Ao[1];c.useEffect(function(){ps(ti)},[ti]);var is=c.useState(function(){return $o}),Za=Object(j.a)(is,2),Ct=Za[0],Bt=Za[1],Wr=function(Qn,Di){var Vi=Ja(Qn||$o);Bt($o),ps(Vi),mo&&($o!==Vi||kt(An,Io,Io))&&mo(Di,Vi)},Pn=function(Qn,Di){var Vi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;($o===ti||Vi)&&(Qo(Qn),wa&&wa(Qn),Po&&Po(Qn,Di),na&&!kt(An,Qn,Go)&&na(Qn))},ht=function(Qn){return Jr.current&&Jr.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(Qn.which)&&Qn.preventDefault(),Jr.current.onKeyDown(Qn)):(Object(C.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},ne=function(Qn){Jr.current&&Jr.current.onBlur&&Jr.current.onBlur(Qn)};uo&&ro!=="right"&&(uo.current={onKeyDown:ht,onClose:function(){Jr.current&&Jr.current.onClose&&Jr.current.onClose()}}),c.useEffect(function(){br&&!za.current&&zo(br)},[br]),c.useEffect(function(){za.current=!1},[]);var pe,be=Object(B.a)(Object(B.a)({},$e),{},{operationRef:Jr,prefixCls:fr,viewDate:Io,value:Go,onViewDateChange:Fa,sourceMode:Ct,onPanelChange:Wr,disabledDate:$o!=="decade"?Ln:void 0});delete be.onChange,delete be.onSelect;switch($o){case"decade":pe=c.createElement(gn,Object.assign({},be,{onSelect:function(Qn,Di){Fa(Qn),Pn(Qn,Di)}}));break;case"year":pe=c.createElement(Ye,Object.assign({},be,{onSelect:function(Qn,Di){Fa(Qn),Pn(Qn,Di)}}));break;case"month":pe=c.createElement(ut,Object.assign({},be,{onSelect:function(Qn,Di){Fa(Qn),Pn(Qn,Di)}}));break;case"quarter":pe=c.createElement(Yn,Object.assign({},be,{onSelect:function(Qn,Di){Fa(Qn),Pn(Qn,Di)}}));break;case"week":pe=c.createElement(Br,Object.assign({},be,{onSelect:function(Qn,Di){Fa(Qn),Pn(Qn,Di)}}));break;case"time":delete be.showTime,pe=c.createElement(Ce,Object.assign({},be,Object(V.a)(Zi)==="object"?Zi:null,{onSelect:function(Qn,Di){Fa(Qn),Pn(Qn,Di)}}));break;default:Zi?pe=c.createElement(Lt,Object.assign({},be,{onSelect:function(Qn,Di){Fa(Qn),Pn(Qn,Di)}})):pe=c.createElement(at,Object.assign({},be,{onSelect:function(Qn,Di){Fa(Qn),Pn(Qn,Di)}}))}var Ue,pt,Xt=function(){var Qn=An.getNow(),Di=er(An.getHour(Qn),An.getMinute(Qn),An.getSecond(Qn),ga?Ha:1,go?ra:1,Sa?Ka:1),Vi=Mt(An,Qn,Di[0],Di[1],Di[2]);Pn(Vi,"submit")};to||(Ue=sr(fr,$o,Xi),pt=un({prefixCls:fr,components:$i,needConfirmButton:bo,okDisabled:!Go||Ln&&Ln(Go),locale:hr,showNow:Ei,onNow:bo&&Xt,onOk:function(){Go&&(Pn(Go,"submit",!0),aa&&aa(Go))}}));var Or;if(ua&&$o==="date"&&ti==="date"&&!Zi){var Qr=An.getNow(),dn="".concat(fr,"-today-btn"),jn=Ln&&Ln(Qr);Or=c.createElement("a",{className:T()(dn,jn&&"".concat(dn,"-disabled")),"aria-disabled":jn,onClick:function(){jn||Pn(Qr,"mouse",!0)}},hr.today)}return c.createElement(q.Provider,{value:Object(B.a)(Object(B.a)({},Va),{},{hideHeader:"hideHeader"in $e?Gi:Va.hideHeader,hidePrevBtn:fa&&ro==="right",hideNextBtn:fa&&ro==="left"})},c.createElement("div",{tabIndex:wi,className:T()("".concat(fr,"-panel"),Xr,(Yt={},Object(U.a)(Yt,"".concat(fr,"-panel-has-range"),Wa&&Wa[0]&&Wa[1]),Object(U.a)(Yt,"".concat(fr,"-panel-has-range-hover"),Ea&&Ea[0]&&Ea[1]),Object(U.a)(Yt,"".concat(fr,"-panel-rtl"),Aa==="rtl"),Yt)),style:Fr,onKeyDown:ht,onBlur:ne,onMouseDown:Ca,ref:No},pe,Ue||pt||Or?c.createElement("div",{className:"".concat(fr,"-footer")},Ue,pt,Or):null))}var Pr=an,In=d("JX7q"),ci=d("i8i4"),Ui=d.n(ci),ki=d("l4aY"),Ri=d("m+aA"),Ki=d("c+Xe"),Hr=d("zT1h"),Cn=d("QC+M");function kr($e,Yt,vr){return vr?$e[0]===Yt[0]:$e[0]===Yt[0]&&$e[1]===Yt[1]}function mr($e,Yt,vr){var fr=$e[Yt]||{};return Object(B.a)(Object(B.a)({},fr),vr)}function Cr($e,Yt,vr,fr){for(var Xr=vr.points,Fr=Object.keys($e),hr=0;hr<Fr.length;hr+=1){var An=Fr[hr];if(kr($e[An].points,Xr,fr))return"".concat(Yt,"-placement-").concat(An)}return""}var Nt=d("Ff2n"),wr=d("xEkU"),Gr=d.n(wr),Kr=d("9mu1"),qr=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function oi($e,Yt){var vr={};return vr[$e.toLowerCase()]=Yt.toLowerCase(),vr["Webkit".concat($e)]="webkit".concat(Yt),vr["Moz".concat($e)]="moz".concat(Yt),vr["ms".concat($e)]="MS".concat(Yt),vr["O".concat($e)]="o".concat(Yt.toLowerCase()),vr}function Gn($e,Yt){var vr={animationend:oi("Animation","AnimationEnd"),transitionend:oi("Transition","TransitionEnd")};return $e&&("AnimationEvent"in Yt||delete vr.animationend.animation,"TransitionEvent"in Yt||delete vr.transitionend.transition),vr}var Ti=Gn(qr,typeof window!="undefined"?window:{}),hn={};if(qr){var _r=document.createElement("div");hn=_r.style}var En={};function Fn($e){if(En[$e])return En[$e];var Yt=Ti[$e];if(Yt)for(var vr=Object.keys(Yt),fr=vr.length,Xr=0;Xr<fr;Xr+=1){var Fr=vr[Xr];if(Object.prototype.hasOwnProperty.call(Yt,Fr)&&Fr in hn)return En[$e]=Yt[Fr],En[$e]}return""}var Vn=Fn("animationend"),qn=Fn("transitionend"),Oi=!!(Vn&&qn);function Ni($e,Yt){if(!$e)return null;if(Object(V.a)($e)==="object"){var vr=Yt.replace(/-\w/g,function(fr){return fr[1].toUpperCase()});return $e[vr]}return"".concat($e,"-").concat(Yt)}var Mi="none",Ji="appear",ma="enter",la="leave";function qa($e){var Yt=$e,vr=!!c.forwardRef;Object(V.a)($e)==="object"&&(Yt=$e.transitionSupport,vr="forwardRef"in $e?$e.forwardRef:vr);function fr(Fr){return!!(Fr.motionName&&Yt)}var Xr=function(Fr){Object(F.a)(An,Fr);var hr=Object(M.a)(An);function An(){var br;return Object(R.a)(this,An),br=hr.apply(this,arguments),br.$cacheEle=null,br.node=null,br.raf=null,br.destroyed=!1,br.deadlineId=null,br.state={status:Mi,statusActive:!1,newStatus:!1,statusStyle:null},br.onDomUpdate=function(){var mn=br.state,Kn=mn.status,Wn=mn.newStatus,Ln=br.props,$n=Ln.onAppearStart,Un=Ln.onEnterStart,ti=Ln.onLeaveStart,Xn=Ln.onAppearActive,wi=Ln.onEnterActive,Ei=Ln.onLeaveActive,Zi=Ln.motionAppear,ua=Ln.motionEnter,Xi=Ln.motionLeave;if(!fr(br.props))return;var Gi=br.getElement();br.$cacheEle!==Gi&&(br.removeEventListener(br.$cacheEle),br.addEventListener(Gi),br.$cacheEle=Gi),Wn&&Kn===Ji&&Zi?br.updateStatus($n,null,null,function(){br.updateActiveStatus(Xn,Ji)}):Wn&&Kn===ma&&ua?br.updateStatus(Un,null,null,function(){br.updateActiveStatus(wi,ma)}):Wn&&Kn===la&&Xi&&br.updateStatus(ti,null,null,function(){br.updateActiveStatus(Ei,la)})},br.onMotionEnd=function(mn){if(mn&&!mn.deadline&&mn.target!==br.getElement())return;var Kn=br.state,Wn=Kn.status,Ln=Kn.statusActive,$n=br.props,Un=$n.onAppearEnd,ti=$n.onEnterEnd,Xn=$n.onLeaveEnd;Wn===Ji&&Ln?br.updateStatus(Un,{status:Mi},mn):Wn===ma&&Ln?br.updateStatus(ti,{status:Mi},mn):Wn===la&&Ln&&br.updateStatus(Xn,{status:Mi},mn)},br.setNodeRef=function(mn){var Kn=br.props.internalRef;br.node=mn,Object(Ki.b)(Kn,mn)},br.getElement=function(){try{return Object(Ri.a)(br.node||Object(In.a)(br))}catch(mn){return br.$cacheEle}},br.addEventListener=function(mn){if(!mn)return;mn.addEventListener(qn,br.onMotionEnd),mn.addEventListener(Vn,br.onMotionEnd)},br.removeEventListener=function(mn){if(!mn)return;mn.removeEventListener(qn,br.onMotionEnd),mn.removeEventListener(Vn,br.onMotionEnd)},br.updateStatus=function(mn,Kn,Wn,Ln){var $n=mn?mn(br.getElement(),Wn):null;if($n===!1||br.destroyed)return;var Un;Ln&&(Un=function(){br.nextFrame(Ln)}),br.setState(Object(B.a)({statusStyle:Object(V.a)($n)==="object"?$n:null,newStatus:!1},Kn),Un)},br.updateActiveStatus=function(mn,Kn){br.nextFrame(function(){var Wn=br.state.status;if(Wn!==Kn)return;var Ln=br.props.motionDeadline;br.updateStatus(mn,{statusActive:!0}),Ln>0&&(br.deadlineId=setTimeout(function(){br.onMotionEnd({deadline:!0})},Ln))})},br.nextFrame=function(mn){br.cancelNextFrame(),br.raf=Gr()(mn)},br.cancelNextFrame=function(){br.raf&&(Gr.a.cancel(br.raf),br.raf=null)},br}return Object(D.a)(An,[{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 mn,Kn=this.state,Wn=Kn.status,Ln=Kn.statusActive,$n=Kn.statusStyle,Un=this.props,ti=Un.children,Xn=Un.motionName,wi=Un.visible,Ei=Un.removeOnLeave,Zi=Un.leavedClassName,ua=Un.eventProps;return ti?Wn===Mi||!fr(this.props)?wi?ti(Object(B.a)({},ua),this.setNodeRef):Ei?null:ti(Object(B.a)(Object(B.a)({},ua),{},{className:Zi}),this.setNodeRef):ti(Object(B.a)(Object(B.a)({},ua),{},{className:T()(Ni(Xn,Wn),(mn={},Object(U.a)(mn,Ni(Xn,"".concat(Wn,"-active")),Ln),Object(U.a)(mn,Xn,typeof Xn=="string"),mn)),style:$n}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(mn,Kn){var Wn=Kn.prevProps,Ln=Kn.status;if(!fr(mn))return{};var $n=mn.visible,Un=mn.motionAppear,ti=mn.motionEnter,Xn=mn.motionLeave,wi=mn.motionLeaveImmediately,Ei={prevProps:mn};return(Ln===Ji&&!Un||Ln===ma&&!ti||Ln===la&&!Xn)&&(Ei.status=Mi,Ei.statusActive=!1,Ei.newStatus=!1),!Wn&&$n&&Un&&(Ei.status=Ji,Ei.statusActive=!1,Ei.newStatus=!0),Wn&&!Wn.visible&&$n&&ti&&(Ei.status=ma,Ei.statusActive=!1,Ei.newStatus=!0),(Wn&&Wn.visible&&!$n&&Xn||!Wn&&wi&&!$n&&Xn)&&(Ei.status=la,Ei.statusActive=!1,Ei.newStatus=!0),Ei}}]),An}(c.Component);return Xr.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},vr?c.forwardRef(function(Fr,hr){return c.createElement(Xr,Object.assign({internalRef:hr},Fr))}):Xr}var bi=qa(Oi),xn="add",zi="keep",oa="remove",Yi="removed";function ca($e){var Yt;return $e&&Object(V.a)($e)==="object"&&"key"in $e?Yt=$e:Yt={key:$e},Object(B.a)(Object(B.a)({},Yt),{},{key:String(Yt.key)})}function Hi(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $e.map(ca)}function Ia(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],vr=[],fr=0,Xr=Yt.length,Fr=Hi($e),hr=Hi(Yt);Fr.forEach(function(mn){for(var Kn=!1,Wn=fr;Wn<Xr;Wn+=1){var Ln=hr[Wn];if(Ln.key===mn.key){fr<Wn&&(vr=vr.concat(hr.slice(fr,Wn).map(function($n){return Object(B.a)(Object(B.a)({},$n),{},{status:xn})})),fr=Wn),vr.push(Object(B.a)(Object(B.a)({},Ln),{},{status:zi})),fr+=1,Kn=!0;break}}Kn||vr.push(Object(B.a)(Object(B.a)({},mn),{},{status:oa}))}),fr<Xr&&(vr=vr.concat(hr.slice(fr).map(function(mn){return Object(B.a)(Object(B.a)({},mn),{},{status:xn})})));var An={};vr.forEach(function(mn){var Kn=mn.key;An[Kn]=(An[Kn]||0)+1});var br=Object.keys(An).filter(function(mn){return An[mn]>1});return br.forEach(function(mn){vr=vr.filter(function(Kn){var Wn=Kn.key,Ln=Kn.status;return Wn!==mn||Ln!==oa}),vr.forEach(function(Kn){Kn.key===mn&&(Kn.status=zi)})}),vr}var Da=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Qa($e){var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bi,vr=function(fr){Object(F.a)(Fr,fr);var Xr=Object(M.a)(Fr);function Fr(){var hr;return Object(R.a)(this,Fr),hr=Xr.apply(this,arguments),hr.state={keyEntities:[]},hr.removeKey=function(An){hr.setState(function(br){var mn=br.keyEntities;return{keyEntities:mn.map(function(Kn){return Kn.key!==An?Kn:Object(B.a)(Object(B.a)({},Kn),{},{status:Yi})})}})},hr}return Object(D.a)(Fr,[{key:"render",value:function(){var An=this,br=this.state.keyEntities,mn=this.props,Kn=mn.component,Wn=mn.children,Ln=Object(Nt.a)(mn,["component","children"]),$n=Kn||c.Fragment,Un={};return Da.forEach(function(ti){Un[ti]=Ln[ti],delete Ln[ti]}),delete Ln.keys,c.createElement($n,Object.assign({},Ln),br.map(function(ti){var Xn=ti.status,wi=Object(Nt.a)(ti,["status"]),Ei=Xn===xn||Xn===zi;return c.createElement(Yt,Object.assign({},Un,{key:wi.key,visible:Ei,eventProps:wi,onLeaveEnd:function(){Un.onLeaveEnd&&Un.onLeaveEnd.apply(Un,arguments),An.removeKey(wi.key)}}),Wn)}))}}],[{key:"getDerivedStateFromProps",value:function(An,br){var mn=An.keys,Kn=br.keyEntities,Wn=Hi(mn);if(!$e)return{keyEntities:Wn.map(function(Un){return Object(B.a)(Object(B.a)({},Un),{},{status:zi})})};var Ln=Ia(Kn,Wn),$n=Kn.length;return{keyEntities:Ln.filter(function(Un){for(var ti=null,Xn=0;Xn<$n;Xn+=1){var wi=Kn[Xn];if(wi.key===Un.key){ti=wi;break}}return!(ti&&ti.status===Yi&&Un.status===oa)})}}}]),Fr}(c.Component);return vr.defaultProps={component:"div"},vr}var Wo=Qa(Oi),po=bi,Mo=function(Yt,vr){var fr=Yt.prefixCls,Xr=Yt.className,Fr=Yt.style,hr=Yt.children,An=Yt.onMouseEnter,br=Yt.onMouseLeave,mn=Yt.onMouseDown,Kn=Yt.onTouchStart,Wn=hr;return c.Children.count(hr)>1&&(Wn=c.createElement("div",{className:"".concat(fr,"-content")},hr)),c.createElement("div",{ref:vr,className:Xr,onMouseEnter:An,onMouseLeave:br,onMouseDown:mn,onTouchStart:Kn,style:Fr},Wn)},Fo=c.forwardRef(Mo);Fo.displayName="PopupInner";var yo=Fo;function Oo($e){var Yt=$e.prefixCls,vr=$e.motion,fr=$e.animation,Xr=$e.transitionName;return vr||(fr?{motionName:"".concat(Yt,"-").concat(fr)}:Xr?{motionName:Xr}:null)}function sa($e){return $e&&$e.motionName}var hs=function($e){Object(F.a)(vr,$e);var Yt=Object(M.a)(vr);function vr(){var fr;return Object(R.a)(this,vr),fr=Yt.apply(this,arguments),fr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},fr.popupRef=o.a.createRef(),fr.alignRef=o.a.createRef(),fr.nextFrameState=null,fr.nextFrameId=null,fr.onAlign=function(Xr,Fr){var hr=fr.state.status,An=fr.props,br=An.getClassNameFromAlign,mn=An.onAlign,Kn=br(Fr);hr==="align"?fr.setState({alignClassName:Kn,status:"aligned"},function(){fr.alignRef.current.forceAlign()}):hr==="aligned"?(fr.setState({alignClassName:Kn,status:"afterAlign"}),mn(Xr,Fr)):fr.setState({alignClassName:Kn})},fr.onMotionEnd=function(){var Xr=fr.props.visible;fr.setState({status:Xr?"AfterMotion":"stable",inMotion:!1})},fr.setStateOnNextFrame=function(Xr){fr.cancelFrameState(),fr.nextFrameState=Object(B.a)(Object(B.a)({},fr.nextFrameState),Xr),fr.nextFrameId=Gr()(function(){var Fr=Object(B.a)({},fr.nextFrameState);fr.nextFrameState=null,fr.setState(Fr)})},fr.getMotion=function(){return Object(B.a)({},Oo(fr.props))},fr.getAlignTarget=function(){var Xr=fr.props,Fr=Xr.point,hr=Xr.getRootDomNode;return Fr||hr},fr.cancelFrameState=function(){Gr.a.cancel(fr.nextFrameId)},fr.renderPopupElement=function(){var Xr=fr.state,Fr=Xr.status,hr=Xr.targetHeight,An=Xr.targetWidth,br=Xr.alignClassName,mn=fr.props,Kn=mn.prefixCls,Wn=mn.className,Ln=mn.style,$n=mn.stretch,Un=mn.visible,ti=mn.align,Xn=mn.destroyPopupOnHide,wi=mn.onMouseEnter,Ei=mn.onMouseLeave,Zi=mn.onMouseDown,ua=mn.onTouchStart,Xi=mn.children,Gi=T()(Kn,Wn,br),wa="".concat(Kn,"-hidden"),na={};$n&&($n.indexOf("height")!==-1?na.height=hr:$n.indexOf("minHeight")!==-1&&(na.minHeight=hr),$n.indexOf("width")!==-1?na.width=An:$n.indexOf("minWidth")!==-1&&(na.minWidth=An));var mo=Object(B.a)(Object(B.a)(Object(B.a)(Object(B.a)({},na),fr.getZIndexStyle()),Ln),{},{opacity:Fr==="stable"||!Un?void 0:0,pointerEvents:Fr==="stable"||!Un?void 0:"none"}),Ca=fr.getMotion(),qi=Un;Un&&Fr!=="beforeMotion"&&Fr!=="motion"&&Fr!=="stable"&&(Ca.motionAppear=!1,Ca.motionEnter=!1,Ca.motionLeave=!1),(Fr==="afterAlign"||Fr==="beforeMotion")&&(qi=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Aa){var ya=Ca==null?void 0:Ca[Aa];Ca[Aa]=function(){for(var Ha=arguments.length,ta=new Array(Ha),ra=0;ra<Ha;ra++)ta[ra]=arguments[ra];ya==null||ya.apply(void 0,ta),fr.setState({inMotion:!0})}});var aa=!Un||Fr!=="align"&&Fr!=="aligned"&&Fr!=="stable",$i=!0;return Fr==="stable"&&($i=Un),Xn&&!$i?null:o.a.createElement(po,Object.assign({visible:qi},Ca,{removeOnLeave:!1,onEnterEnd:fr.onMotionEnd,onLeaveEnd:fr.onMotionEnd,leavedClassName:wa}),function(Aa,ya){var Ha=Aa.style,ta=Aa.className;return o.a.createElement(Kr.a,{target:fr.getAlignTarget(),key:"popup",ref:fr.alignRef,monitorWindowResize:!0,disabled:aa,align:ti,onAlign:fr.onAlign},o.a.createElement(yo,{prefixCls:Kn,className:T()(Gi,ta),ref:Object(Ki.a)(ya,fr.popupRef),onMouseEnter:wi,onMouseLeave:Ei,onMouseDown:Zi,onTouchStart:ua,style:Object(B.a)(Object(B.a)({},mo),Ha)},Xi))})},fr.renderMaskElement=function(){var Xr=fr.props,Fr=Xr.mask,hr=Xr.maskMotion,An=Xr.maskTransitionName,br=Xr.maskAnimation,mn=Xr.prefixCls,Kn=Xr.visible;if(!Fr)return null;var Wn={};return hr&&hr.motionName&&(Wn=Object(B.a)({motionAppear:!0},Oo({motion:hr,prefixCls:mn,transitionName:An,animation:br}))),o.a.createElement(po,Object.assign({},Wn,{visible:Kn,removeOnLeave:!0}),function(Ln){var $n=Ln.className;return o.a.createElement("div",{style:fr.getZIndexStyle(),key:"mask",className:T()("".concat(mn,"-mask"),$n)})})},fr}return Object(D.a)(vr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Xr=this.state.status,Fr=this.props,hr=Fr.getRootDomNode,An=Fr.visible,br=Fr.stretch;if(this.cancelFrameState(),An&&Xr!=="stable")switch(Xr){case null:{this.setStateOnNextFrame({status:br?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:sa(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var mn=["measure","align",null,"beforeMotion","motion"],Kn=mn.indexOf(Xr),Wn=mn[Kn+1];Kn!==-1&&Wn&&this.setStateOnNextFrame({status:Wn})}}if(Xr==="measure"){var Ln=hr();Ln&&this.setStateOnNextFrame({targetHeight:Ln.offsetHeight,targetWidth:Ln.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Xr=this.props.zIndex;return{zIndex:Xr}}},{key:"render",value:function(){return o.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Xr,Fr){var hr=Xr.visible,An=Object(Nt.a)(Xr,["visible"]),br=Fr.prevVisible,mn=Fr.status,Kn=Fr.inMotion,Wn={prevVisible:hr,status:mn},Ln=Oo(An);return br===null&&hr===!1?(Wn.status="stable",Wn.inMotion=!1):hr!==br&&(Wn.inMotion=!1,hr||sa(Ln)&&Kn?Wn.status=null:Wn.status="stable",hr&&(Wn.alignClassName=null)),Wn}}]),vr}(c.Component),Jo=hs,wo=c.createContext(null),_o=wo;function Bo(){}function Ds(){return""}function Dr(){return window.document}var rn=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Tn($e){var Yt=function(vr){Object(F.a)(Xr,vr);var fr=Object(M.a)(Xr);function Xr(Fr){var hr;Object(R.a)(this,Xr),hr=fr.call(this,Fr),hr.popupRef=o.a.createRef(),hr.triggerRef=o.a.createRef(),hr.onMouseEnter=function(br){var mn=hr.props.mouseEnterDelay;hr.fireEvents("onMouseEnter",br),hr.delaySetPopupVisible(!0,mn,mn?null:br)},hr.onMouseMove=function(br){hr.fireEvents("onMouseMove",br),hr.setPoint(br)},hr.onMouseLeave=function(br){hr.fireEvents("onMouseLeave",br),hr.delaySetPopupVisible(!1,hr.props.mouseLeaveDelay)},hr.onPopupMouseEnter=function(){hr.clearDelayTimer()},hr.onPopupMouseLeave=function(br){if(br.relatedTarget&&!br.relatedTarget.setTimeout&&hr.popupRef.current&&hr.popupRef.current.popupRef.current&&Object(ki.a)(hr.popupRef.current.popupRef.current,br.relatedTarget))return;hr.delaySetPopupVisible(!1,hr.props.mouseLeaveDelay)},hr.onFocus=function(br){hr.fireEvents("onFocus",br),hr.clearDelayTimer(),hr.isFocusToShow()&&(hr.focusTime=Date.now(),hr.delaySetPopupVisible(!0,hr.props.focusDelay))},hr.onMouseDown=function(br){hr.fireEvents("onMouseDown",br),hr.preClickTime=Date.now()},hr.onTouchStart=function(br){hr.fireEvents("onTouchStart",br),hr.preTouchTime=Date.now()},hr.onBlur=function(br){hr.fireEvents("onBlur",br),hr.clearDelayTimer(),hr.isBlurToHide()&&hr.delaySetPopupVisible(!1,hr.props.blurDelay)},hr.onContextMenu=function(br){br.preventDefault(),hr.fireEvents("onContextMenu",br),hr.setPopupVisible(!0,br)},hr.onContextMenuClose=function(){hr.isContextMenuToShow()&&hr.close()},hr.onClick=function(br){if(hr.fireEvents("onClick",br),hr.focusTime){var mn;if(hr.preClickTime&&hr.preTouchTime?mn=Math.min(hr.preClickTime,hr.preTouchTime):hr.preClickTime?mn=hr.preClickTime:hr.preTouchTime&&(mn=hr.preTouchTime),Math.abs(mn-hr.focusTime)<20)return;hr.focusTime=0}hr.preClickTime=0,hr.preTouchTime=0,hr.isClickToShow()&&(hr.isClickToHide()||hr.isBlurToHide())&&br&&br.preventDefault&&br.preventDefault();var Kn=!hr.state.popupVisible;(hr.isClickToHide()&&!Kn||Kn&&hr.isClickToShow())&&hr.setPopupVisible(!hr.state.popupVisible,br)},hr.onPopupMouseDown=function(){if(hr.hasPopupMouseDown=!0,clearTimeout(hr.mouseDownTimeout),hr.mouseDownTimeout=window.setTimeout(function(){hr.hasPopupMouseDown=!1},0),hr.context){var br;(br=hr.context).onPopupMouseDown.apply(br,arguments)}},hr.onDocumentClick=function(br){if(hr.props.mask&&!hr.props.maskClosable)return;var mn=br.target,Kn=hr.getRootDomNode(),Wn=hr.getPopupDomNode();!Object(ki.a)(Kn,mn)&&!Object(ki.a)(Wn,mn)&&!hr.hasPopupMouseDown&&hr.close()},hr.getRootDomNode=function(){var br=hr.props.getTriggerDOMNode;if(br)return br(hr.triggerRef.current);try{var mn=Object(Ri.a)(hr.triggerRef.current);if(mn)return mn}catch(Kn){}return Ui.a.findDOMNode(Object(In.a)(hr))},hr.getPopupClassNameFromAlign=function(br){var mn=[],Kn=hr.props,Wn=Kn.popupPlacement,Ln=Kn.builtinPlacements,$n=Kn.prefixCls,Un=Kn.alignPoint,ti=Kn.getPopupClassNameFromAlign;return Wn&&Ln&&mn.push(Cr(Ln,$n,br,Un)),ti&&mn.push(ti(br)),mn.join(" ")},hr.getComponent=function(){var br=hr.props,mn=br.prefixCls,Kn=br.destroyPopupOnHide,Wn=br.popupClassName,Ln=br.onPopupAlign,$n=br.popupMotion,Un=br.popupAnimation,ti=br.popupTransitionName,Xn=br.popupStyle,wi=br.mask,Ei=br.maskAnimation,Zi=br.maskTransitionName,ua=br.maskMotion,Xi=br.zIndex,Gi=br.popup,wa=br.stretch,na=br.alignPoint,mo=hr.state,Ca=mo.popupVisible,qi=mo.point,aa=hr.getPopupAlign(),$i={};return hr.isMouseEnterToShow()&&($i.onMouseEnter=hr.onPopupMouseEnter),hr.isMouseLeaveToHide()&&($i.onMouseLeave=hr.onPopupMouseLeave),$i.onMouseDown=hr.onPopupMouseDown,$i.onTouchStart=hr.onPopupMouseDown,o.a.createElement(Jo,Object.assign({prefixCls:mn,destroyPopupOnHide:Kn,visible:Ca,point:na&&qi,className:Wn,align:aa,onAlign:Ln,animation:Un,getClassNameFromAlign:hr.getPopupClassNameFromAlign},$i,{stretch:wa,getRootDomNode:hr.getRootDomNode,style:Xn,mask:wi,zIndex:Xi,transitionName:ti,maskAnimation:Ei,maskTransitionName:Zi,maskMotion:ua,ref:hr.popupRef,motion:$n}),typeof Gi=="function"?Gi():Gi)},hr.getContainer=function(){var br=Object(In.a)(hr),mn=br.props,Kn=document.createElement("div");Kn.style.position="absolute",Kn.style.top="0",Kn.style.left="0",Kn.style.width="100%";var Wn=mn.getPopupContainer?mn.getPopupContainer(hr.getRootDomNode()):mn.getDocument().body;return Wn.appendChild(Kn),Kn},hr.setPoint=function(br){var mn=hr.props.alignPoint;if(!mn||!br)return;hr.setState({point:{pageX:br.pageX,pageY:br.pageY}})},hr.handlePortalUpdate=function(){hr.state.prevPopupVisible!==hr.state.popupVisible&&hr.props.afterPopupVisibleChange(hr.state.popupVisible)};var An;return"popupVisible"in Fr?An=!!Fr.popupVisible:An=!!Fr.defaultPopupVisible,hr.state={prevPopupVisible:An,popupVisible:An},rn.forEach(function(br){hr["fire".concat(br)]=function(mn){hr.fireEvents(br,mn)}}),hr}return Object(D.a)(Xr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var hr=this.props,An=this.state;if(An.popupVisible){var br;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(br=hr.getDocument(),this.clickOutsideHandler=Object(Hr.a)(br,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(br=br||hr.getDocument(),this.touchOutsideHandler=Object(Hr.a)(br,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(br=br||hr.getDocument(),this.contextMenuOutsideHandler1=Object(Hr.a)(br,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Hr.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 hr=this.props,An=hr.popupPlacement,br=hr.popupAlign,mn=hr.builtinPlacements;return An&&mn?mr(mn,An,br):br}},{key:"setPopupVisible",value:function(hr,An){var br=this.props.alignPoint,mn=this.state.popupVisible;this.clearDelayTimer(),mn!==hr&&("popupVisible"in this.props||this.setState({popupVisible:hr,prevPopupVisible:mn}),this.props.onPopupVisibleChange(hr)),br&&An&&this.setPoint(An)}},{key:"delaySetPopupVisible",value:function(hr,An,br){var mn=this,Kn=An*1e3;if(this.clearDelayTimer(),Kn){var Wn=br?{pageX:br.pageX,pageY:br.pageY}:null;this.delayTimer=window.setTimeout(function(){mn.setPopupVisible(hr,Wn),mn.clearDelayTimer()},Kn)}else this.setPopupVisible(hr,br)}},{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(hr){var An=this.props.children.props,br=this.props;return An[hr]&&br[hr]?this["fire".concat(hr)]:An[hr]||br[hr]}},{key:"isClickToShow",value:function(){var hr=this.props,An=hr.action,br=hr.showAction;return An.indexOf("click")!==-1||br.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var hr=this.props,An=hr.action,br=hr.showAction;return An.indexOf("contextMenu")!==-1||br.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var hr=this.props,An=hr.action,br=hr.hideAction;return An.indexOf("click")!==-1||br.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var hr=this.props,An=hr.action,br=hr.showAction;return An.indexOf("hover")!==-1||br.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var hr=this.props,An=hr.action,br=hr.hideAction;return An.indexOf("hover")!==-1||br.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var hr=this.props,An=hr.action,br=hr.showAction;return An.indexOf("focus")!==-1||br.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var hr=this.props,An=hr.action,br=hr.hideAction;return An.indexOf("focus")!==-1||br.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(hr,An){var br=this.props.children.props[hr];br&&br(An);var mn=this.props[hr];mn&&mn(An)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var hr=this.state.popupVisible,An=this.props,br=An.children,mn=An.forceRender,Kn=An.alignPoint,Wn=An.className,Ln=An.autoDestroy,$n=o.a.Children.only(br),Un={key:"trigger"};this.isContextMenuToShow()?Un.onContextMenu=this.onContextMenu:Un.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Un.onClick=this.onClick,Un.onMouseDown=this.onMouseDown,Un.onTouchStart=this.onTouchStart):(Un.onClick=this.createTwoChains("onClick"),Un.onMouseDown=this.createTwoChains("onMouseDown"),Un.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Un.onMouseEnter=this.onMouseEnter,Kn&&(Un.onMouseMove=this.onMouseMove)):Un.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Un.onMouseLeave=this.onMouseLeave:Un.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Un.onFocus=this.onFocus,Un.onBlur=this.onBlur):(Un.onFocus=this.createTwoChains("onFocus"),Un.onBlur=this.createTwoChains("onBlur"));var ti=T()($n&&$n.props&&$n.props.className,Wn);ti&&(Un.className=ti);var Xn=Object(B.a)({},Un);Object(Ki.c)($n)&&(Xn.ref=Object(Ki.a)(this.triggerRef,$n.ref));var wi=o.a.cloneElement($n,Xn),Ei;return(hr||this.popupRef.current||mn)&&(Ei=o.a.createElement($e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!hr&&Ln&&(Ei=null),o.a.createElement(_o.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},wi,Ei)}}],[{key:"getDerivedStateFromProps",value:function(hr,An){var br=hr.popupVisible,mn={};return br!==void 0&&An.popupVisible!==br&&(mn.popupVisible=br,mn.prevPopupVisible=An.popupVisible),mn}}]),Xr}(o.a.Component);return Yt.contextType=_o,Yt.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Ds,getDocument:Dr,onPopupVisibleChange:Bo,afterPopupVisibleChange:Bo,onPopupAlign:Bo,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Yt}var en=Tn(Cn.a),ur={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 sn($e){var Yt,vr=$e.prefixCls,fr=$e.popupElement,Xr=$e.popupStyle,Fr=$e.visible,hr=$e.dropdownClassName,An=$e.dropdownAlign,br=$e.transitionName,mn=$e.getPopupContainer,Kn=$e.children,Wn=$e.range,Ln=$e.popupPlacement,$n=$e.direction,Un="".concat(vr,"-dropdown"),ti=function(){return Ln!==void 0?Ln:$n==="rtl"?"bottomRight":"bottomLeft"};return c.createElement(en,{showAction:[],hideAction:[],popupPlacement:ti(),builtinPlacements:ur,prefixCls:Un,popupTransitionName:br,popup:fr,popupAlign:An,popupVisible:Fr,popupClassName:T()(hr,(Yt={},Object(U.a)(Yt,"".concat(Un,"-range"),Wn),Object(U.a)(Yt,"".concat(Un,"-rtl"),$n==="rtl"),Yt)),popupStyle:Xr,getPopupContainer:mn},Kn)}var Bn=sn;function Hn($e){var Yt=$e.open,vr=$e.value,fr=$e.isClickOutside,Xr=$e.triggerOpen,Fr=$e.forwardKeyDown,hr=$e.blurToCancel,An=$e.onSubmit,br=$e.onCancel,mn=$e.onFocus,Kn=$e.onBlur,Wn=Object(c.useState)(!1),Ln=Object(j.a)(Wn,2),$n=Ln[0],Un=Ln[1],ti=Object(c.useState)(!1),Xn=Object(j.a)(ti,2),wi=Xn[0],Ei=Xn[1],Zi=Object(c.useRef)(!1),ua=Object(c.useRef)(!1),Xi={onMouseDown:function(){Un(!0),Xr(!0)},onKeyDown:function(wa){switch(wa.which){case z.a.ENTER:{Yt?An()!==!1&&Un(!0):Xr(!0),wa.preventDefault();return}case z.a.TAB:{$n&&Yt&&!wa.shiftKey?(Un(!1),wa.preventDefault()):!$n&&Yt&&(!Fr(wa)&&wa.shiftKey&&(Un(!0),wa.preventDefault()));return}case z.a.ESC:{Un(!0),br();return}}!Yt&&![z.a.SHIFT].includes(wa.which)?Xr(!0):$n||Fr(wa)},onFocus:function(wa){Un(!0),Ei(!0),mn&&mn(wa)},onBlur:function(wa){if(Zi.current||!fr(document.activeElement)){Zi.current=!1;return}hr?setTimeout(function(){fr(document.activeElement)&&br()},0):Yt&&(Xr(!1),ua.current&&An()),Ei(!1),Kn&&Kn(wa)}};return Object(c.useEffect)(function(){ua.current=!1},[Yt]),Object(c.useEffect)(function(){ua.current=!0},[vr]),Object(c.useEffect)(function(){return Q(function(Gi){var wa=Gi.target;Yt&&(fr(wa)?wi||Xr(!1):(Zi.current=!0,requestAnimationFrame(function(){Zi.current=!1})))})}),[Xi,{focused:wi,typing:$n}]}function Li($e){var Yt=$e.valueTexts,vr=$e.onTextChange,fr=c.useState(""),Xr=Object(j.a)(fr,2),Fr=Xr[0],hr=Xr[1],An=c.useRef([]);An.current=Yt;function br(Kn){hr(Kn),vr(Kn)}function mn(){hr(An.current[0])}return c.useEffect(function(){Yt.every(function(Kn){return Kn!==Fr})&&mn()},[Yt.join("||")]),[Fr,br,mn]}var Ci=d("Gytx"),Jn=d.n(Ci);function mi($e,Yt){var vr=Yt.formatList,fr=Yt.generateConfig,Xr=Yt.locale;return Object(He.a)(function(){if(!$e)return[[""],""];for(var Fr="",hr=[],An=0;An<vr.length;An+=1){var br=vr[An],mn=fr.locale.format(Xr.locale,$e,br);hr.push(mn),An===0&&(Fr=mn)}return[hr,Fr]},[$e,vr],function(Fr,hr){return Fr[0]!==hr[0]||!Jn()(Fr[1],hr[1])})}function yi($e,Yt){var vr=Yt.formatList,fr=Yt.generateConfig,Xr=Yt.locale,Fr=Object(c.useState)(null),hr=Object(j.a)(Fr,2),An=hr[0],br=hr[1],mn=Object(c.useRef)(null);function Kn(Xn){var wi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(mn.current),wi){br(Xn);return}mn.current=requestAnimationFrame(function(){br(Xn)})}var Wn=mi(An,{formatList:vr,generateConfig:fr,locale:Xr}),Ln=Object(j.a)(Wn,2),$n=Ln[1];function Un(Xn){Kn(Xn)}function ti(){var Xn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Kn(null,Xn)}return Object(c.useEffect)(function(){ti(!0)},[$e]),Object(c.useEffect)(function(){return function(){return cancelAnimationFrame(mn.current)}},[]),[$n,Un,ti]}function da($e){var Yt,vr=$e.prefixCls,fr=vr===void 0?"rc-picker":vr,Xr=$e.id,Fr=$e.tabIndex,hr=$e.style,An=$e.className,br=$e.dropdownClassName,mn=$e.dropdownAlign,Kn=$e.popupStyle,Wn=$e.transitionName,Ln=$e.generateConfig,$n=$e.locale,Un=$e.inputReadOnly,ti=$e.allowClear,Xn=$e.autoFocus,wi=$e.showTime,Ei=$e.picker,Zi=Ei===void 0?"date":Ei,ua=$e.format,Xi=$e.use12Hours,Gi=$e.value,wa=$e.defaultValue,na=$e.open,mo=$e.defaultOpen,Ca=$e.defaultOpenValue,qi=$e.suffixIcon,aa=$e.clearIcon,$i=$e.disabled,Aa=$e.disabledDate,ya=$e.placeholder,Ha=$e.getPopupContainer,ta=$e.pickerRef,ra=$e.panelRender,_a=$e.onChange,Ka=$e.onOpenChange,bo=$e.onFocus,ga=$e.onBlur,go=$e.onMouseDown,Sa=$e.onMouseUp,Va=$e.onMouseEnter,uo=$e.onMouseLeave,No=$e.onContextMenu,Po=$e.onClick,to=$e.direction,Uo=$e.autoComplete,co=Uo===void 0?"off":Uo,fa=c.useRef(null),ro=Zi==="date"&&!!wi||Zi==="time",Wa=Oe(Ge(ua,Zi,wi,Xi)),Ea=c.useRef(null),Jr=c.useRef(null),za=Object(W.a)(null,{value:Gi,defaultValue:wa}),rs=Object(j.a)(za,2),Vo=rs[0],Go=rs[1],Qo=c.useState(Vo),Yo=Object(j.a)(Qo,2),vo=Yo[0],Io=Yo[1],zo=c.useRef(null),Fa=Object(W.a)(!1,{value:na,defaultValue:mo,postState:function(ka){return $i?!1:ka},onChange:function(ka){Ka&&Ka(ka),!ka&&zo.current&&zo.current.onClose&&zo.current.onClose()}}),Ja=Object(j.a)(Fa,2),ho=Ja[0],Ao=Ja[1],$o=mi(vo,{formatList:Wa,generateConfig:Ln,locale:$n}),ps=Object(j.a)($o,2),is=ps[0],Za=ps[1],Ct=Li({valueTexts:is,onTextChange:function(ka){var os=Ln.locale.parse($n.locale,ka,Wa);os&&(!Aa||!Aa(os))&&Io(os)}}),Bt=Object(j.a)(Ct,3),Wr=Bt[0],Pn=Bt[1],ht=Bt[2],ne=function(ka){Io(ka),Go(ka),_a&&!kt(Ln,Vo,ka)&&_a(ka,ka?Ln.locale.format($n.locale,ka,Wa[0]):"")},pe=function(ka){if($i&&ka)return;Ao(ka)},be=function(ka){return ho&&zo.current&&zo.current.onKeyDown?zo.current.onKeyDown(ka):(Object(C.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Ue=function(){Sa&&Sa.apply(void 0,arguments),fa.current&&(fa.current.focus(),pe(!0))},pt=Hn({blurToCancel:ro,open:ho,value:Wr,triggerOpen:pe,forwardKeyDown:be,isClickOutside:function(ka){return!fe([Ea.current,Jr.current],ka)},onSubmit:function(){return Aa&&Aa(vo)?!1:(ne(vo),pe(!1),ht(),!0)},onCancel:function(){pe(!1),Io(Vo),ht()},onFocus:bo,onBlur:ga}),Xt=Object(j.a)(pt,2),Or=Xt[0],Qr=Xt[1],dn=Qr.focused,jn=Qr.typing;c.useEffect(function(){ho||(Io(Vo),!is.length||is[0]===""?Pn(""):Za!==Wr&&ht())},[ho,is]),c.useEffect(function(){ho||ht()},[Zi]),c.useEffect(function(){Io(Vo)},[Vo]),ta&&(ta.current={focus:function(){fa.current&&fa.current.focus()},blur:function(){fa.current&&fa.current.blur()}});var ai=Object(B.a)(Object(B.a)({},$e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Qn=c.createElement(Pr,Object.assign({},ai,{generateConfig:Ln,className:T()(Object(U.a)({},"".concat(fr,"-panel-focused"),!jn)),value:vo,locale:$n,tabIndex:-1,onChange:Io,direction:to}));ra&&(Qn=ra(Qn));var Di=c.createElement("div",{className:"".concat(fr,"-panel-container"),onMouseDown:function(ka){ka.preventDefault()}},Qn),Vi;qi&&(Vi=c.createElement("span",{className:"".concat(fr,"-suffix")},qi));var Ta;ti&&Vo&&!$i&&(Ta=c.createElement("span",{onMouseDown:function(ka){ka.preventDefault(),ka.stopPropagation()},onMouseUp:function(ka){ka.preventDefault(),ka.stopPropagation(),ne(null),pe(!1)},className:"".concat(fr,"-clear")},aa||c.createElement("span",{className:"".concat(fr,"-clear-btn")})));var Ga=function(ka,os){(os==="submit"||os!=="key"&&!ro)&&(ne(ka),pe(!1))},ao=to==="rtl"?"bottomRight":"bottomLeft",Do=yi(Wr,{formatList:Wa,generateConfig:Ln,locale:$n}),fo=Object(j.a)(Do,3),as=fo[0],io=fo[1],Xa=fo[2];return c.createElement(q.Provider,{value:{operationRef:zo,hideHeader:Zi==="time",panelRef:Ea,onSelect:Ga,open:ho,defaultOpenValue:Ca,onDateMouseEnter:io,onDateMouseLeave:Xa}},c.createElement(Bn,{visible:ho,popupElement:Di,popupStyle:Kn,prefixCls:fr,dropdownClassName:br,dropdownAlign:mn,getPopupContainer:Ha,transitionName:Wn,popupPlacement:ao,direction:to},c.createElement("div",{className:T()(fr,An,(Yt={},Object(U.a)(Yt,"".concat(fr,"-disabled"),$i),Object(U.a)(Yt,"".concat(fr,"-focused"),dn),Object(U.a)(Yt,"".concat(fr,"-rtl"),to==="rtl"),Yt)),style:hr,onMouseDown:go,onMouseUp:Ue,onMouseEnter:Va,onMouseLeave:uo,onContextMenu:No,onClick:Po},c.createElement("div",{className:T()("".concat(fr,"-input"),Object(U.a)({},"".concat(fr,"-input-placeholder"),!!as)),ref:Jr},c.createElement("input",Object.assign({id:Xr,tabIndex:Fr,disabled:$i,readOnly:Un||!jn,value:as||Wr,onChange:function(ka){Pn(ka.target.value)},autoFocus:Xn,placeholder:ya,ref:fa,title:Wr},Or,{size:oe(Zi,Wa[0])},Tt($e),{autoComplete:co})),Vi,Ta))))}var ha=function($e){Object(F.a)(vr,$e);var Yt=Object(M.a)(vr);function vr(){var fr;return Object(R.a)(this,vr),fr=Yt.apply(this,arguments),fr.pickerRef=c.createRef(),fr.focus=function(){fr.pickerRef.current&&fr.pickerRef.current.focus()},fr.blur=function(){fr.pickerRef.current&&fr.pickerRef.current.blur()},fr}return Object(D.a)(vr,[{key:"render",value:function(){return c.createElement(da,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),vr}(c.Component),Pa=ha;function Ra($e,Yt,vr){var fr=$e.picker,Xr=$e.locale,Fr=$e.selectedValue,hr=$e.disabledDate,An=$e.disabled,br=$e.generateConfig,mn=Je(Fr,0),Kn=Je(Fr,1);function Wn(Xn){var wi=br.getYear(Xn),Ei=br.locale.getWeek(Xr.locale,Xn);return wi*100+Ei}function Ln(Xn){var wi=br.getYear(Xn),Ei=br.getMonth(Xn);return wi*100+Ei}function $n(Xn){var wi=br.getYear(Xn),Ei=dt(br,Xn);return wi*10+Ei}var Un=c.useCallback(function(Xn){if(hr&&hr(Xn))return!0;if(An[1]&&Kn)return!Wt(br,Xn,Kn)&&br.isAfter(Xn,Kn);if(Yt&&Kn)switch(fr){case"quarter":return $n(Xn)>$n(Kn);case"month":return Ln(Xn)>Ln(Kn);case"week":return Wn(Xn)>Wn(Kn);default:return!Wt(br,Xn,Kn)&&br.isAfter(Xn,Kn)}return!1},[hr,An[1],Kn,Yt]),ti=c.useCallback(function(Xn){if(hr&&hr(Xn))return!0;if(An[0]&&mn)return!Wt(br,Xn,Kn)&&br.isAfter(mn,Xn);if(vr&&mn)switch(fr){case"quarter":return $n(Xn)<$n(mn);case"month":return Ln(Xn)<Ln(mn);case"week":return Wn(Xn)<Wn(mn);default:return!Wt(br,Xn,mn)&&br.isAfter(mn,Xn)}return!1},[hr,An[0],mn,vr]);return[Un,ti]}function so($e,Yt,vr,fr){var Xr=on($e,vr,fr,1);function Fr(hr){return hr($e,Yt)?"same":hr(Xr,Yt)?"closing":"far"}switch(vr){case"year":return Fr(function(hr,An){return ct(fr,hr,An)});case"quarter":case"month":return Fr(function(hr,An){return Qe(fr,hr,An)});default:return Fr(function(hr,An){return Lr(fr,hr,An)})}}function La($e,Yt,vr,fr){var Xr=Je($e,0),Fr=Je($e,1);if(Yt===0)return Xr;if(Xr&&Fr){var hr=so(Xr,Fr,vr,fr);switch(hr){case"same":return Xr;case"closing":return Xr;default:return on(Fr,vr,fr,-1)}}return Xr}function lo($e){var Yt=$e.values,vr=$e.picker,fr=$e.defaultDates,Xr=$e.generateConfig,Fr=c.useState(function(){return[Je(fr,0),Je(fr,1)]}),hr=Object(j.a)(Fr,2),An=hr[0],br=hr[1],mn=c.useState(null),Kn=Object(j.a)(mn,2),Wn=Kn[0],Ln=Kn[1],$n=Je(Yt,0),Un=Je(Yt,1);function ti(wi){return An[wi]?An[wi]:Je(Wn,wi)||La(Yt,wi,vr,Xr)||$n||Un||Xr.getNow()}function Xn(wi,Ei){if(wi){var Zi=St(Wn,wi,Ei);br(St(An,null,Ei)||[null,null]);var ua=(Ei+1)%2;Je(Yt,ua)||(Zi=St(Zi,wi,ua)),Ln(Zi)}else($n||Un)&&Ln(null)}return[ti,Xn]}function So($e,Yt){return $e&&$e[0]&&$e[1]&&Yt.isAfter($e[0],$e[1])?[$e[1],$e[0]]:$e}function Qt($e,Yt,vr,fr){return $e||fr&&fr[Yt]?!0:!!vr[(Yt+1)%2]}function Vr($e){var Yt,vr,fr,Xr=$e.prefixCls,Fr=Xr===void 0?"rc-picker":Xr,hr=$e.id,An=$e.style,br=$e.className,mn=$e.popupStyle,Kn=$e.dropdownClassName,Wn=$e.transitionName,Ln=$e.dropdownAlign,$n=$e.getPopupContainer,Un=$e.generateConfig,ti=$e.locale,Xn=$e.placeholder,wi=$e.autoFocus,Ei=$e.disabled,Zi=$e.format,ua=$e.picker,Xi=ua===void 0?"date":ua,Gi=$e.showTime,wa=$e.use12Hours,na=$e.separator,mo=na===void 0?"~":na,Ca=$e.value,qi=$e.defaultValue,aa=$e.defaultPickerValue,$i=$e.open,Aa=$e.defaultOpen,ya=$e.disabledDate,Ha=$e.disabledTime,ta=$e.dateRender,ra=$e.panelRender,_a=$e.ranges,Ka=$e.allowEmpty,bo=$e.allowClear,ga=$e.suffixIcon,go=$e.clearIcon,Sa=$e.pickerRef,Va=$e.inputReadOnly,uo=$e.mode,No=$e.renderExtraFooter,Po=$e.onChange,to=$e.onOpenChange,Uo=$e.onPanelChange,co=$e.onCalendarChange,fa=$e.onFocus,ro=$e.onBlur,Wa=$e.onOk,Ea=$e.components,Jr=$e.order,za=$e.direction,rs=$e.activePickerIndex,Vo=$e.autoComplete,Go=Vo===void 0?"off":Vo,Qo=Xi==="date"&&!!Gi||Xi==="time",Yo=Object(c.useRef)({}),vo=Object(c.useRef)(null),Io=Object(c.useRef)(null),zo=Object(c.useRef)(null),Fa=Object(c.useRef)(null),Ja=Object(c.useRef)(null),ho=Object(c.useRef)(null),Ao=Object(c.useRef)(null),$o=Oe(Ge(Zi,Xi,Gi,wa)),ps=Object(W.a)(0,{value:rs}),is=Object(j.a)(ps,2),Za=is[0],Ct=is[1],Bt=Object(c.useRef)(null),Wr=c.useMemo(function(){return Array.isArray(Ei)?Ei:[Ei||!1,Ei||!1]},[Ei]),Pn=Object(W.a)(null,{value:Ca,defaultValue:qi,postState:function($a){return Xi==="time"&&!Jr?$a:So($a,Un)}}),ht=Object(j.a)(Pn,2),ne=ht[0],pe=ht[1],be=lo({values:ne,picker:Xi,defaultDates:aa,generateConfig:Un}),Ue=Object(j.a)(be,2),pt=Ue[0],Xt=Ue[1],Or=Object(W.a)(ne,{postState:function($a){var Eo=$a;if(Wr[0]&&Wr[1])return Eo;for(var Ko=0;Ko<2;Ko+=1)Wr[Ko]&&!Je(Eo,Ko)&&!Je(Ka,Ko)&&(Eo=St(Eo,Un.getNow(),Ko));return Eo}}),Qr=Object(j.a)(Or,2),dn=Qr[0],jn=Qr[1],ai=Object(W.a)([Xi,Xi],{value:uo}),Qn=Object(j.a)(ai,2),Di=Qn[0],Vi=Qn[1];Object(c.useEffect)(function(){Vi([Xi,Xi])},[Xi]);var Ta=function($a,Eo){Vi($a),Uo&&Uo(Eo,$a)},Ga=Ra({picker:Xi,selectedValue:dn,locale:ti,disabled:Wr,disabledDate:ya,generateConfig:Un},Yo.current[1],Yo.current[0]),ao=Object(j.a)(Ga,2),Do=ao[0],fo=ao[1],as=Object(W.a)(!1,{value:$i,defaultValue:Aa,postState:function($a){return Wr[Za]?!1:$a},onChange:function($a){to&&to($a),!$a&&Bt.current&&Bt.current.onClose&&Bt.current.onClose()}}),io=Object(j.a)(as,2),Xa=io[0],Ya=io[1],ka=Xa&&Za===0,os=Xa&&Za===1,Es=Object(c.useState)(0),qo=Object(j.a)(Es,2),pa=qo[0],ls=qo[1];Object(c.useEffect)(function(){!Xa&&vo.current&&ls(vo.current.offsetWidth)},[Xa]);var Os=c.useRef();function ys(es,$a){if(es)clearTimeout(Os.current),Yo.current[$a]=!0,Ct($a),Ya(es),Xa||Xt(null,$a);else if(Za===$a){Ya(es);var Eo=Yo.current;Os.current=setTimeout(function(){Eo===Yo.current&&(Yo.current={})})}}function ms(es){ys(!0,es),setTimeout(function(){var $a=[ho,Ao][es];$a.current&&$a.current.focus()},0)}function ws(es,$a){var Eo=es,Ko=Je(Eo,0),js=Je(Eo,1);Ko&&js&&Un.isAfter(Ko,js)&&(Xi==="week"&&!Ut(Un,ti.locale,Ko,js)||Xi==="quarter"&&!Ft(Un,Ko,js)||Xi!=="week"&&Xi!=="quarter"&&Xi!=="time"&&!Wt(Un,Ko,js)?($a===0?(Eo=[Ko,null],js=null):(Ko=null,Eo=[null,js]),Yo.current=Object(U.a)({},$a,!0)):(Xi!=="time"||Jr!==!1)&&(Eo=So(Eo,Un))),jn(Eo);var Bl=Eo&&Eo[0]?Un.locale.format(ti.locale,Eo[0],$o[0]):"",Ul=Eo&&Eo[1]?Un.locale.format(ti.locale,Eo[1],$o[0]):"";if(co){var Ol={range:$a===0?"start":"end"};co(Eo,[Bl,Ul],Ol)}var Ll=Qt(Ko,0,Wr,Ka),jl=Qt(js,1,Wr,Ka),Hl=Eo===null||Ll&&jl;Hl&&(pe(Eo),Po&&(!kt(Un,Je(ne,0),Ko)||!kt(Un,Je(ne,1),js))&&Po(Eo,[Bl,Ul]));var Vs=null;$a===0&&!Wr[1]?Vs=1:$a===1&&!Wr[0]&&(Vs=0),Vs!==null&&Vs!==Za&&(!Yo.current[Vs]||!Je(Eo,Vs))&&Je(Eo,$a)?ms(Vs):ys(!1,$a)}var Pl=function($a){return Xa&&Bt.current&&Bt.current.onKeyDown?Bt.current.onKeyDown($a):(Object(C.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ml={formatList:$o,generateConfig:Un,locale:ti},Ws=mi(Je(dn,0),ml),fs=Object(j.a)(Ws,2),_s=fs[0],gl=fs[1],Bs=mi(Je(dn,1),ml),Us=Object(j.a)(Bs,2),Qs=Us[0],al=Us[1],El=function($a,Eo){var Ko=Un.locale.parse(ti.locale,$a,$o),js=Eo===0?Do:fo;Ko&&!js(Ko)&&(jn(St(dn,Ko,Eo)),Xt(Ko,Eo))},bl=Li({valueTexts:_s,onTextChange:function($a){return El($a,0)}}),ol=Object(j.a)(bl,3),Gs=ol[0],zs=ol[1],vl=ol[2],Xs=Li({valueTexts:Qs,onTextChange:function($a){return El($a,1)}}),sl=Object(j.a)(Xs,3),dl=sl[0],rl=sl[1],nl=sl[2],Tl=Object(c.useState)(null),Rs=Object(j.a)(Tl,2),bs=Rs[0],Ms=Rs[1],Ts=Object(c.useState)(null),Zs=Object(j.a)(Ts,2),hl=Zs[0],wl=Zs[1],Kl=yi(Gs,{formatList:$o,generateConfig:Un,locale:ti}),il=Object(j.a)(Kl,3),fl=il[0],kl=il[1],gu=il[2],Jl=yi(dl,{formatList:$o,generateConfig:Un,locale:ti}),Zl=Object(j.a)(Jl,3),$l=Zl[0],Gl=Zl[1],$s=Zl[2],ll=function($a){wl(St(dn,$a,Za)),Za===0?kl($a):Gl($a)},pl=function(){wl(St(dn,null,Za)),Za===0?gu():$s()},Nl=function($a,Eo){return{blurToCancel:Qo,forwardKeyDown:Pl,onBlur:ro,isClickOutside:function(js){return!fe([Io.current,zo.current,Fa.current],js)},onFocus:function(js){Ct($a),fa&&fa(js)},triggerOpen:function(js){ys(js,$a)},onSubmit:function(){ws(dn,$a),Eo()},onCancel:function(){ys(!1,$a),jn(ne),Eo()}}},ou=Hn(Object(B.a)(Object(B.a)({},Nl(0,vl)),{},{open:ka,value:Gs})),ql=Object(j.a)(ou,2),eu=ql[0],el=ql[1],tu=el.focused,ru=el.typing,su=Hn(Object(B.a)(Object(B.a)({},Nl(1,nl)),{},{open:os,value:dl})),Cl=Object(j.a)(su,2),Dl=Cl[0],Fl=Cl[1],Xl=Fl.focused,jo=Fl.typing,Ho=function($a){!Xa&&!ho.current.contains($a.target)&&!Ao.current.contains($a.target)&&(Wr[0]?Wr[1]||ms(1):ms(0))},us=function($a){Xa&&(tu||Xl)&&!ho.current.contains($a.target)&&!Ao.current.contains($a.target)&&$a.preventDefault()},cs=ne&&ne[0]?Un.locale.format(ti.locale,ne[0],"YYYYMMDDHHmmss"):"",Cs=ne&&ne[1]?Un.locale.format(ti.locale,ne[1],"YYYYMMDDHHmmss"):"";Object(c.useEffect)(function(){Xa||(jn(ne),!_s.length||_s[0]===""?zs(""):gl!==Gs&&vl(),!Qs.length||Qs[0]===""?rl(""):al!==dl&&nl())},[Xa,_s,Qs]),Object(c.useEffect)(function(){jn(ne)},[cs,Cs]),Sa&&(Sa.current={focus:function(){ho.current&&ho.current.focus()},blur:function(){ho.current&&ho.current.blur(),Ao.current&&Ao.current.blur()}});var ds=Object.keys(_a||{}),Js=ds.map(function(es){var $a=_a[es],Eo=typeof $a=="function"?$a():$a;return{label:es,onClick:function(){ws(Eo,null),ys(!1,Za)},onMouseEnter:function(){Ms(Eo)},onMouseLeave:function(){Ms(null)}}});function ss(){var es=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,$a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Eo=null;Xa&&hl&&hl[0]&&hl[1]&&Un.isAfter(hl[1],hl[0])&&(Eo=hl);var Ko=Gi;if(Gi&&Object(V.a)(Gi)==="object"&&Gi.defaultValue){var js=Gi.defaultValue;Ko=Object(B.a)(Object(B.a)({},Gi),{},{defaultValue:Je(js,Za)||void 0})}var Bl=null;return ta&&(Bl=function(Ol,Ll){return ta(Ol,Ll,{range:Za?"end":"start"})}),c.createElement(zn.Provider,{value:{inRange:!0,panelPosition:es,rangedValue:bs||dn,hoverRangedValue:Eo}},c.createElement(Pr,Object.assign({},$e,$a,{dateRender:Bl,showTime:Ko,mode:Di[Za],generateConfig:Un,style:void 0,direction:za,disabledDate:Za===0?Do:fo,disabledTime:function(Ol){return Ha?Ha(Ol,Za===0?"start":"end"):!1},className:T()(Object(U.a)({},"".concat(Fr,"-panel-focused"),Za===0?!ru:!jo)),value:Je(dn,Za),locale:ti,tabIndex:-1,onPanelChange:function(Ol,Ll){Ta(St(Di,Ll,Za),St(dn,Ol,Za));var jl=Ol;es==="right"&&Di[Za]===Ll&&(jl=on(jl,Ll,Un,-1)),Xt(jl,Za)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Is=0,Al=0;Za&&zo.current&&Ja.current&&Io.current&&(Is=zo.current.offsetWidth+Ja.current.offsetWidth,Io.current.offsetWidth&&Is>Io.current.offsetWidth&&(Al=Is));var lu=za==="rtl"?{right:Is}:{left:Is};function uu(){var es,$a=sr(Fr,Di[Za],No),Eo=un({prefixCls:Fr,components:Ea,needConfirmButton:Qo,okDisabled:!Je(dn,Za)||ya&&ya(dn[Za]),locale:ti,rangeList:Js,onOk:function(){Je(dn,Za)&&(ws(dn,Za),Wa&&Wa(dn))}});if(Xi!=="time"&&!Gi){var Ko=pt(Za),js=on(Ko,Xi,Un),Bl=Di[Za],Ul=Bl===Xi,Ol=ss(Ul?"left":!1,{pickerValue:Ko,onPickerValueChange:function(Vs){Xt(Vs,Za)}}),Ll=ss("right",{pickerValue:js,onPickerValueChange:function(Vs){Xt(on(Vs,Xi,Un,-1),Za)}});za==="rtl"?es=c.createElement(c.Fragment,null,Ll,Ul&&Ol):es=c.createElement(c.Fragment,null,Ol,Ul&&Ll)}else es=ss();var jl=c.createElement(c.Fragment,null,c.createElement("div",{className:"".concat(Fr,"-panels")},es),($a||Eo)&&c.createElement("div",{className:"".concat(Fr,"-footer")},$a,Eo));return ra&&(jl=ra(jl)),c.createElement("div",{className:"".concat(Fr,"-panel-container"),style:{marginLeft:Al},ref:Io,onMouseDown:function(Vs){Vs.preventDefault()}},jl)}var Yl=c.createElement("div",{className:T()("".concat(Fr,"-range-wrapper"),"".concat(Fr,"-").concat(Xi,"-range-wrapper")),style:{minWidth:pa}},c.createElement("div",{className:"".concat(Fr,"-range-arrow"),style:lu}),uu()),nu;ga&&(nu=c.createElement("span",{className:"".concat(Fr,"-suffix")},ga));var vu;bo&&(Je(ne,0)&&!Wr[0]||Je(ne,1)&&!Wr[1])&&(vu=c.createElement("span",{onMouseDown:function($a){$a.preventDefault(),$a.stopPropagation()},onMouseUp:function($a){$a.preventDefault(),$a.stopPropagation();var Eo=ne;Wr[0]||(Eo=St(Eo,null,0)),Wr[1]||(Eo=St(Eo,null,1)),ws(Eo,null),ys(!1,Za)},className:"".concat(Fr,"-clear")},go||c.createElement("span",{className:"".concat(Fr,"-clear-btn")})));var yu={size:oe(Xi,$o[0])},bu=0,_l=0;zo.current&&Fa.current&&Ja.current&&(Za===0?_l=zo.current.offsetWidth:(bu=Is,_l=Fa.current.offsetWidth));var Rl=za==="rtl"?{right:bu}:{left:bu},Wl=function($a,Eo){var Ko=St(dn,$a,Za);Eo==="submit"||Eo!=="key"&&!Qo?(ws(Ko,Za),Za===0?gu():$s()):jn(Ko)};return c.createElement(q.Provider,{value:{operationRef:Bt,hideHeader:Xi==="time",onDateMouseEnter:ll,onDateMouseLeave:pl,hideRanges:!0,onSelect:Wl,open:Xa}},c.createElement(Bn,{visible:Xa,popupElement:Yl,popupStyle:mn,prefixCls:Fr,dropdownClassName:Kn,dropdownAlign:Ln,getPopupContainer:$n,transitionName:Wn,range:!0,direction:za},c.createElement("div",Object.assign({ref:vo,className:T()(Fr,"".concat(Fr,"-range"),br,(Yt={},Object(U.a)(Yt,"".concat(Fr,"-disabled"),Wr[0]&&Wr[1]),Object(U.a)(Yt,"".concat(Fr,"-focused"),Za===0?tu:Xl),Object(U.a)(Yt,"".concat(Fr,"-rtl"),za==="rtl"),Yt)),style:An,onClick:Ho,onMouseDown:us},Tt($e)),c.createElement("div",{className:T()("".concat(Fr,"-input"),(vr={},Object(U.a)(vr,"".concat(Fr,"-input-active"),Za===0),Object(U.a)(vr,"".concat(Fr,"-input-placeholder"),!!fl),vr)),ref:zo},c.createElement("input",Object.assign({id:hr,disabled:Wr[0],readOnly:Va||!ru,value:fl||Gs,onChange:function($a){zs($a.target.value)},autoFocus:wi,placeholder:Je(Xn,0)||"",ref:ho},eu,yu,{autoComplete:Go}))),c.createElement("div",{className:"".concat(Fr,"-range-separator"),ref:Ja},mo),c.createElement("div",{className:T()("".concat(Fr,"-input"),(fr={},Object(U.a)(fr,"".concat(Fr,"-input-active"),Za===1),Object(U.a)(fr,"".concat(Fr,"-input-placeholder"),!!$l),fr)),ref:Fa},c.createElement("input",Object.assign({disabled:Wr[1],readOnly:Va||!jo,value:$l||dl,onChange:function($a){rl($a.target.value)},placeholder:Je(Xn,1)||"",ref:Ao},Dl,yu,{autoComplete:Go}))),c.createElement("div",{className:"".concat(Fr,"-active-bar"),style:Object(B.a)(Object(B.a)({},Rl),{},{width:_l,position:"absolute"})}),nu,vu)))}var cn=function($e){Object(F.a)(vr,$e);var Yt=Object(M.a)(vr);function vr(){var fr;return Object(R.a)(this,vr),fr=Yt.apply(this,arguments),fr.pickerRef=c.createRef(),fr.focus=function(){fr.pickerRef.current&&fr.pickerRef.current.focus()},fr.blur=function(){fr.pickerRef.current&&fr.pickerRef.current.blur()},fr}return Object(D.a)(vr,[{key:"render",value:function(){return c.createElement(Vr,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),vr}(c.Component),vn=cn,ni=Pa,li=d("61s2");function fi($e,Yt,vr){return vr!==void 0?vr:$e==="year"&&Yt.lang.yearPlaceholder?Yt.lang.yearPlaceholder:$e==="quarter"&&Yt.lang.quarterPlaceholder?Yt.lang.quarterPlaceholder:$e==="month"&&Yt.lang.monthPlaceholder?Yt.lang.monthPlaceholder:$e==="week"&&Yt.lang.weekPlaceholder?Yt.lang.weekPlaceholder:$e==="time"&&Yt.timePickerLocale.placeholder?Yt.timePickerLocale.placeholder:Yt.lang.placeholder}function di($e,Yt,vr){return vr!==void 0?vr:$e==="year"&&Yt.lang.yearPlaceholder?Yt.lang.rangeYearPlaceholder:$e==="month"&&Yt.lang.monthPlaceholder?Yt.lang.rangeMonthPlaceholder:$e==="week"&&Yt.lang.weekPlaceholder?Yt.lang.rangeWeekPlaceholder:$e==="time"&&Yt.timePickerLocale.placeholder?Yt.timePickerLocale.rangePlaceholder:Yt.lang.rangePlaceholder}var Jt=d("uaoM"),Ot=d("H84U"),yr=d("YMnH"),ft=d("3Nzz"),qt=function($e,Yt){var vr={};for(var fr in $e)Object.prototype.hasOwnProperty.call($e,fr)&&Yt.indexOf(fr)<0&&(vr[fr]=$e[fr]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xr=0,fr=Object.getOwnPropertySymbols($e);Xr<fr.length;Xr++)Yt.indexOf(fr[Xr])<0&&Object.prototype.propertyIsEnumerable.call($e,fr[Xr])&&(vr[fr[Xr]]=$e[fr[Xr]]);return vr};function dr($e){function Yt(br,mn){var Kn=function(Wn){m()($n,Wn);var Ln=y()($n);function $n(Un){var ti;return s()(this,$n),ti=Ln.call(this,Un),ti.pickerRef=c.createRef(),ti.focus=function(){ti.pickerRef.current&&ti.pickerRef.current.focus()},ti.blur=function(){ti.pickerRef.current&&ti.pickerRef.current.blur()},ti.getDefaultLocale=function(){var Xn=ti.props.locale,wi=f()(f()({},li.a),Xn);return wi.lang=f()(f()({},wi.lang),(Xn||{}).lang),wi},ti.renderPicker=function(Xn){var wi=ti.context,Ei=wi.getPrefixCls,Zi=wi.direction,ua=wi.getPopupContainer,Xi=ti.props,Gi=Xi.prefixCls,wa=Xi.getPopupContainer,na=Xi.className,mo=Xi.size,Ca=Xi.bordered,qi=Ca===void 0?!0:Ca,aa=Xi.placeholder,$i=qt(Xi,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Aa=ti.props,ya=Aa.format,Ha=Aa.showTime,ta=Ei("picker",Gi),ra={showToday:!0},_a={};br&&(_a.picker=br);var Ka=br||ti.props.picker;return _a=f()(f()(f()({},_a),Ha?ii(f()({format:ya,picker:Ka},Ha)):{}),Ka==="time"?ii(f()(f()({format:ya},ti.props),{picker:Ka})):{}),c.createElement(ft.b.Consumer,null,function(bo){var ga,go=mo||bo;return c.createElement(ni,f()({ref:ti.pickerRef,placeholder:fi(Ka,Xn,aa),suffixIcon:Ka==="time"?c.createElement(I.a,null):c.createElement(S.a,null),clearIcon:c.createElement(N.a,null),allowClear:!0,transitionName:"slide-up"},ra,$i,_a,{locale:Xn.lang,className:T()(na,(ga={},t()(ga,"".concat(ta,"-").concat(go),go),t()(ga,"".concat(ta,"-borderless"),!qi),ga)),prefixCls:ta,getPopupContainer:wa||ua,generateConfig:$e,prevIcon:c.createElement("span",{className:"".concat(ta,"-prev-icon")}),nextIcon:c.createElement("span",{className:"".concat(ta,"-next-icon")}),superPrevIcon:c.createElement("span",{className:"".concat(ta,"-super-prev-icon")}),superNextIcon:c.createElement("span",{className:"".concat(ta,"-super-next-icon")}),components:Dn,direction:Zi}))})},Object(Jt.a)(br!=="quarter",mn,"DatePicker.".concat(mn," is legacy usage. Please use DatePicker[picker='").concat(br,"'] directly.")),ti}return h()($n,[{key:"render",value:function(){return c.createElement(yr.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),$n}(c.Component);return Kn.contextType=Ot.b,mn&&(Kn.displayName=mn),Kn}var vr=Yt(),fr=Yt("week","WeekPicker"),Xr=Yt("month","MonthPicker"),Fr=Yt("year","YearPicker"),hr=Yt("time","TimePicker"),An=Yt("quarter","QuarterPicker");return{DatePicker:vr,WeekPicker:fr,MonthPicker:Xr,YearPicker:Fr,TimePicker:hr,QuarterPicker:An}}var Nr=d("8ISB"),Zr=d.n(Nr),pn=function($e,Yt){var vr={};for(var fr in $e)Object.prototype.hasOwnProperty.call($e,fr)&&Yt.indexOf(fr)<0&&(vr[fr]=$e[fr]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xr=0,fr=Object.getOwnPropertySymbols($e);Xr<fr.length;Xr++)Yt.indexOf(fr[Xr])<0&&Object.prototype.propertyIsEnumerable.call($e,fr[Xr])&&(vr[fr[Xr]]=$e[fr[Xr]]);return vr};function _n($e){var Yt=function(vr){m()(Xr,vr);var fr=y()(Xr);function Xr(){var Fr;return s()(this,Xr),Fr=fr.apply(this,arguments),Fr.pickerRef=c.createRef(),Fr.focus=function(){Fr.pickerRef.current&&Fr.pickerRef.current.focus()},Fr.blur=function(){Fr.pickerRef.current&&Fr.pickerRef.current.blur()},Fr.getDefaultLocale=function(){var hr=Fr.props.locale,An=f()(f()({},li.a),hr);return An.lang=f()(f()({},An.lang),(hr||{}).lang),An},Fr.renderPicker=function(hr){var An=Fr.context,br=An.getPrefixCls,mn=An.direction,Kn=An.getPopupContainer,Wn=Fr.props,Ln=Wn.prefixCls,$n=Wn.getPopupContainer,Un=Wn.className,ti=Wn.size,Xn=Wn.bordered,wi=Xn===void 0?!0:Xn,Ei=Wn.placeholder,Zi=pn(Wn,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),ua=Fr.props,Xi=ua.format,Gi=ua.showTime,wa=ua.picker,na=br("picker",Ln),mo={};return mo=f()(f()(f()({},mo),Gi?ii(f()({format:Xi,picker:wa},Gi)):{}),wa==="time"?ii(f()(f()({format:Xi},Fr.props),{picker:wa})):{}),c.createElement(ft.b.Consumer,null,function(Ca){var qi,aa=ti||Ca;return c.createElement(vn,f()({separator:c.createElement("span",{"aria-label":"to",className:"".concat(na,"-separator")},c.createElement(Zr.a,null)),ref:Fr.pickerRef,placeholder:di(wa,hr,Ei),suffixIcon:wa==="time"?c.createElement(I.a,null):c.createElement(S.a,null),clearIcon:c.createElement(N.a,null),allowClear:!0,transitionName:"slide-up"},Zi,mo,{className:T()(Un,(qi={},t()(qi,"".concat(na,"-").concat(aa),aa),t()(qi,"".concat(na,"-borderless"),!wi),qi)),locale:hr.lang,prefixCls:na,getPopupContainer:$n||Kn,generateConfig:$e,prevIcon:c.createElement("span",{className:"".concat(na,"-prev-icon")}),nextIcon:c.createElement("span",{className:"".concat(na,"-next-icon")}),superPrevIcon:c.createElement("span",{className:"".concat(na,"-super-prev-icon")}),superNextIcon:c.createElement("span",{className:"".concat(na,"-super-next-icon")}),components:Dn,direction:mn}))})},Fr}return h()(Xr,[{key:"render",value:function(){return c.createElement(yr.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Xr}(c.Component);return Yt.contextType=Ot.b,Yt}var Dn={button:i,rangeItem:e};function Zn($e){return $e?Array.isArray($e)?$e:[$e]:[]}function ii($e){var Yt=$e.format,vr=$e.picker,fr=$e.showHour,Xr=$e.showMinute,Fr=$e.showSecond,hr=$e.use12Hours,An=Zn(Yt)[0],br=f()({},$e);return An&&(!An.includes("s")&&Fr===void 0&&(br.showSecond=!1),!An.includes("m")&&Xr===void 0&&(br.showMinute=!1),!An.includes("H")&&!An.includes("h")&&fr===void 0&&(br.showHour=!1),(An.includes("a")||An.includes("A"))&&hr===void 0&&(br.use12Hours=!0)),vr==="time"?br:{showTime:br}}function pi($e){var Yt=dr($e),vr=Yt.DatePicker,fr=Yt.WeekPicker,Xr=Yt.MonthPicker,Fr=Yt.YearPicker,hr=Yt.TimePicker,An=Yt.QuarterPicker,br=_n($e),mn=vr;return mn.WeekPicker=fr,mn.MonthPicker=Xr,mn.YearPicker=Fr,mn.RangePicker=br,mn.TimePicker=hr,mn.QuarterPicker=An,mn}var ri=pi,ji=ri(b),ei=k.a=ji},"+lIL":function(H,k,d){var O=d("ProS");d("/ry/"),d("3OrL");var x=d("L5E0"),C=d("7Phj");O.registerVisual(x),O.registerLayout(C)},"+nKL":function(H,k,d){"use strict";var O=d("q1tI"),x=d("TSYQ"),C=d.n(x),A=d("t23M");function b(X,Be){var Ce=Object.keys(X);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(X);Be&&(Z=Z.filter(function(nt){return Object.getOwnPropertyDescriptor(X,nt).enumerable})),Ce.push.apply(Ce,Z)}return Ce}function g(X){for(var Be=1;Be<arguments.length;Be++){var Ce=arguments[Be]!=null?arguments[Be]:{};Be%2?b(Object(Ce),!0).forEach(function(Z){f(X,Z,Ce[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(Ce)):b(Object(Ce)).forEach(function(Z){Object.defineProperty(X,Z,Object.getOwnPropertyDescriptor(Ce,Z))})}return X}function f(X,Be,Ce){return Be in X?Object.defineProperty(X,Be,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):X[Be]=Ce,X}var c=O.forwardRef(function(X,Be){var Ce=X.height,Z=X.offset,nt=X.children,ct=X.prefixCls,Qe=X.onInnerResize,dt={},Ft={display:"flex",flexDirection:"column"};return Z!==void 0&&(dt={height:Ce,position:"relative",overflow:"hidden"},Ft=g(g({},Ft),{},{transform:"translateY(".concat(Z,"px)"),position:"absolute",left:0,right:0,top:0})),O.createElement("div",{style:dt},O.createElement(A.a,{onResize:function(Wt){var ar=Wt.offsetHeight;ar&&Qe&&Qe()}},O.createElement("div",{style:Ft,className:C()(f({},"".concat(ct,"-holder-inner"),ct)),ref:Be},nt)))});c.displayName="Filler";var o=c,r=d("wgJM");function i(X){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Be){return typeof Be}:function(Be){return Be&&typeof Symbol=="function"&&Be.constructor===Symbol&&Be!==Symbol.prototype?"symbol":typeof Be},i(X)}function n(X,Be,Ce){return Be in X?Object.defineProperty(X,Be,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):X[Be]=Ce,X}function e(X,Be){if(!(X instanceof Be))throw new TypeError("Cannot call a class as a function")}function l(X,Be){for(var Ce=0;Ce<Be.length;Ce++){var Z=Be[Ce];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(X,Z.key,Z)}}function t(X,Be,Ce){return Be&&l(X.prototype,Be),Ce&&l(X,Ce),Object.defineProperty(X,"prototype",{writable:!1}),X}function a(X,Be){if(typeof Be!="function"&&Be!==null)throw new TypeError("Super expression must either be null or a function");X.prototype=Object.create(Be&&Be.prototype,{constructor:{value:X,writable:!0,configurable:!0}}),Object.defineProperty(X,"prototype",{writable:!1}),Be&&s(X,Be)}function s(X,Be){return s=Object.setPrototypeOf||function(Z,nt){return Z.__proto__=nt,Z},s(X,Be)}function u(X){var Be=m();return function(){var Z=v(X),nt;if(Be){var ct=v(this).constructor;nt=Reflect.construct(Z,arguments,ct)}else nt=Z.apply(this,arguments);return h(this,nt)}}function h(X,Be){if(Be&&(i(Be)==="object"||typeof Be=="function"))return Be;if(Be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(X)}function p(X){if(X===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X}function m(){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(X){return!1}}function v(X){return v=Object.setPrototypeOf?Object.getPrototypeOf:function(Ce){return Ce.__proto__||Object.getPrototypeOf(Ce)},v(X)}var y=20;function E(X){return"touches"in X?X.touches[0].pageY:X.pageY}var T=function(X){a(Ce,X);var Be=u(Ce);function Ce(){var Z;e(this,Ce);for(var nt=arguments.length,ct=new Array(nt),Qe=0;Qe<nt;Qe++)ct[Qe]=arguments[Qe];return Z=Be.call.apply(Be,[this].concat(ct)),Z.moveRaf=null,Z.scrollbarRef=O.createRef(),Z.thumbRef=O.createRef(),Z.visibleTimeout=null,Z.state={dragging:!1,pageY:null,startTop:null,visible:!1},Z.delayHidden=function(){clearTimeout(Z.visibleTimeout),Z.setState({visible:!0}),Z.visibleTimeout=setTimeout(function(){Z.setState({visible:!1})},2e3)},Z.onScrollbarTouchStart=function(dt){dt.preventDefault()},Z.onContainerMouseDown=function(dt){dt.stopPropagation(),dt.preventDefault()},Z.patchEvents=function(){window.addEventListener("mousemove",Z.onMouseMove),window.addEventListener("mouseup",Z.onMouseUp),Z.thumbRef.current.addEventListener("touchmove",Z.onMouseMove),Z.thumbRef.current.addEventListener("touchend",Z.onMouseUp)},Z.removeEvents=function(){var dt;window.removeEventListener("mousemove",Z.onMouseMove),window.removeEventListener("mouseup",Z.onMouseUp),(dt=Z.scrollbarRef.current)===null||dt===void 0||dt.removeEventListener("touchstart",Z.onScrollbarTouchStart),Z.thumbRef.current&&(Z.thumbRef.current.removeEventListener("touchstart",Z.onMouseDown),Z.thumbRef.current.removeEventListener("touchmove",Z.onMouseMove),Z.thumbRef.current.removeEventListener("touchend",Z.onMouseUp)),r.a.cancel(Z.moveRaf)},Z.onMouseDown=function(dt){var Ft=Z.props.onStartMove;Z.setState({dragging:!0,pageY:E(dt),startTop:Z.getTop()}),Ft(),Z.patchEvents(),dt.stopPropagation(),dt.preventDefault()},Z.onMouseMove=function(dt){var Ft=Z.state,Lr=Ft.dragging,Wt=Ft.pageY,ar=Ft.startTop,Ut=Z.props.onScroll;if(r.a.cancel(Z.moveRaf),Lr){var kt=E(dt)-Wt,st=ar+kt,Rr=Z.getEnableScrollRange(),on=Z.getEnableHeightRange(),Sn=on?st/on:0,zn=Math.ceil(Sn*Rr);Z.moveRaf=Object(r.a)(function(){Ut(zn)})}},Z.onMouseUp=function(){var dt=Z.props.onStopMove;Z.setState({dragging:!1}),dt(),Z.removeEvents()},Z.getSpinHeight=function(){var dt=Z.props,Ft=dt.height,Lr=dt.count,Wt=Ft/Lr*10;return Wt=Math.max(Wt,y),Wt=Math.min(Wt,Ft/2),Math.floor(Wt)},Z.getEnableScrollRange=function(){var dt=Z.props,Ft=dt.scrollHeight,Lr=dt.height;return Ft-Lr||0},Z.getEnableHeightRange=function(){var dt=Z.props.height,Ft=Z.getSpinHeight();return dt-Ft||0},Z.getTop=function(){var dt=Z.props.scrollTop,Ft=Z.getEnableScrollRange(),Lr=Z.getEnableHeightRange();if(dt===0||Ft===0)return 0;var Wt=dt/Ft;return Wt*Lr},Z.showScroll=function(){var dt=Z.props,Ft=dt.height,Lr=dt.scrollHeight;return Lr>Ft},Z}return t(Ce,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(nt){nt.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var nt=this.state,ct=nt.dragging,Qe=nt.visible,dt=this.props.prefixCls,Ft=this.getSpinHeight(),Lr=this.getTop(),Wt=this.showScroll(),ar=Wt&&Qe;return O.createElement("div",{ref:this.scrollbarRef,className:C()("".concat(dt,"-scrollbar"),n({},"".concat(dt,"-scrollbar-show"),Wt)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:ar?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},O.createElement("div",{ref:this.thumbRef,className:C()("".concat(dt,"-scrollbar-thumb"),n({},"".concat(dt,"-scrollbar-thumb-moving"),ct)),style:{width:"100%",height:Ft,top:Lr,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),Ce}(O.Component);function w(X){var Be=X.children,Ce=X.setRef,Z=O.useCallback(function(nt){Ce(nt)},[]);return O.cloneElement(Be,{ref:Z})}function S(X,Be,Ce,Z,nt,ct){var Qe=ct.getKey;return X.slice(Be,Ce+1).map(function(dt,Ft){var Lr=Be+Ft,Wt=nt(dt,Lr,{}),ar=Qe(dt);return O.createElement(w,{key:ar,setRef:function(kt){return Z(dt,kt)}},Wt)})}var _=d("m+aA");function I(X,Be){if(!(X instanceof Be))throw new TypeError("Cannot call a class as a function")}function L(X,Be){for(var Ce=0;Ce<Be.length;Ce++){var Z=Be[Ce];Z.enumerable=Z.enumerable||!1,Z.configurable=!0,"value"in Z&&(Z.writable=!0),Object.defineProperty(X,Z.key,Z)}}function N(X,Be,Ce){return Be&&L(X.prototype,Be),Ce&&L(X,Ce),Object.defineProperty(X,"prototype",{writable:!1}),X}var R=function(){function X(){I(this,X),this.maps=void 0,this.maps=Object.create(null)}return N(X,[{key:"set",value:function(Ce,Z){this.maps[Ce]=Z}},{key:"get",value:function(Ce){return this.maps[Ce]}}]),X}(),D=R;function F(X,Be){return W(X)||j(X,Be)||U(X,Be)||M()}function M(){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 U(X,Be){if(!X)return;if(typeof X=="string")return B(X,Be);var Ce=Object.prototype.toString.call(X).slice(8,-1);if(Ce==="Object"&&X.constructor&&(Ce=X.constructor.name),Ce==="Map"||Ce==="Set")return Array.from(X);if(Ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ce))return B(X,Be)}function B(X,Be){(Be==null||Be>X.length)&&(Be=X.length);for(var Ce=0,Z=new Array(Be);Ce<Be;Ce++)Z[Ce]=X[Ce];return Z}function j(X,Be){var Ce=X==null?null:typeof Symbol!="undefined"&&X[Symbol.iterator]||X["@@iterator"];if(Ce==null)return;var Z=[],nt=!0,ct=!1,Qe,dt;try{for(Ce=Ce.call(X);!(nt=(Qe=Ce.next()).done)&&!(Z.push(Qe.value),Be&&Z.length===Be);nt=!0);}catch(Ft){ct=!0,dt=Ft}finally{try{!nt&&Ce.return!=null&&Ce.return()}finally{if(ct)throw dt}}return Z}function W(X){if(Array.isArray(X))return X}function V(X,Be,Ce){var Z=O.useState(0),nt=F(Z,2),ct=nt[0],Qe=nt[1],dt=Object(O.useRef)(new Map),Ft=Object(O.useRef)(new D),Lr=Object(O.useRef)();function Wt(){r.a.cancel(Lr.current)}function ar(){Wt(),Lr.current=Object(r.a)(function(){dt.current.forEach(function(kt,st){if(kt&&kt.offsetParent){var Rr=Object(_.a)(kt),on=Rr.offsetHeight;Ft.current.get(st)!==on&&Ft.current.set(st,Rr.offsetHeight)}}),Qe(function(kt){return kt+1})})}function Ut(kt,st){var Rr=X(kt),on=dt.current.get(Rr);st?(dt.current.set(Rr,st),ar()):dt.current.delete(Rr),!on!==!st&&(st?Be==null||Be(kt):Ce==null||Ce(kt))}return Object(O.useEffect)(function(){return Wt},[]),[Ut,ar,Ft.current,ct]}function z(X){return z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Be){return typeof Be}:function(Be){return Be&&typeof Symbol=="function"&&Be.constructor===Symbol&&Be!==Symbol.prototype?"symbol":typeof Be},z(X)}function J(X,Be,Ce,Z,nt,ct,Qe,dt){var Ft=O.useRef();return function(Lr){if(Lr==null){dt();return}if(r.a.cancel(Ft.current),typeof Lr=="number")Qe(Lr);else if(Lr&&z(Lr)==="object"){var Wt,ar=Lr.align;"index"in Lr?Wt=Lr.index:Wt=Be.findIndex(function(Rr){return nt(Rr)===Lr.key});var Ut=Lr.offset,kt=Ut===void 0?0:Ut,st=function Rr(on,Sn){if(on<0||!X.current)return;var zn=X.current.clientHeight,Ii=!1,yn=Sn;if(zn){for(var Nn=Sn||ar,jt=0,At=0,Re=0,Ke=Math.min(Be.length,Wt),Pe=0;Pe<=Ke;Pe+=1){var at=nt(Be[Pe]);At=jt;var wt=Ce.get(at);Re=At+(wt===void 0?Z:wt),jt=Re,Pe===Wt&&wt===void 0&&(Ii=!0)}var Rt=null;switch(Nn){case"top":Rt=At-kt;break;case"bottom":Rt=Re-zn+kt;break;default:{var xt=X.current.scrollTop,Lt=xt+zn;At<xt?yn="top":Re>Lt&&(yn="bottom")}}Rt!==null&&Rt!==X.current.scrollTop&&Qe(Rt)}Ft.current=Object(r.a)(function(){Ii&&ct(),Rr(on-1,yn)})};st(3)}}}function q(X,Be,Ce,Z){var nt=Ce-X,ct=Be-Ce,Qe=Math.min(nt,ct)*2;if(Z<=Qe){var dt=Math.floor(Z/2);return Z%2?Ce+dt+1:Ce-dt}return nt>ct?Ce-(Z-ct):Ce+(Z-nt)}function de(X,Be,Ce){var Z=X.length,nt=Be.length,ct,Qe;if(Z===0&&nt===0)return null;Z<nt?(ct=X,Qe=Be):(ct=Be,Qe=X);var dt={__EMPTY_ITEM__:!0};function Ft(st){return st!==void 0?Ce(st):dt}for(var Lr=null,Wt=Math.abs(Z-nt)!==1,ar=0;ar<Qe.length;ar+=1){var Ut=Ft(ct[ar]),kt=Ft(Qe[ar]);if(Ut!==kt){Lr=ar,Wt=Wt||Ut!==Ft(Qe[ar+1]);break}}return Lr===null?null:{index:Lr,multiple:Wt}}function ae(X,Be){return me(X)||He(X,Be)||_e(X,Be)||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 _e(X,Be){if(!X)return;if(typeof X=="string")return Ie(X,Be);var Ce=Object.prototype.toString.call(X).slice(8,-1);if(Ce==="Object"&&X.constructor&&(Ce=X.constructor.name),Ce==="Map"||Ce==="Set")return Array.from(X);if(Ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ce))return Ie(X,Be)}function Ie(X,Be){(Be==null||Be>X.length)&&(Be=X.length);for(var Ce=0,Z=new Array(Be);Ce<Be;Ce++)Z[Ce]=X[Ce];return Z}function He(X,Be){var Ce=X==null?null:typeof Symbol!="undefined"&&X[Symbol.iterator]||X["@@iterator"];if(Ce==null)return;var Z=[],nt=!0,ct=!1,Qe,dt;try{for(Ce=Ce.call(X);!(nt=(Qe=Ce.next()).done)&&!(Z.push(Qe.value),Be&&Z.length===Be);nt=!0);}catch(Ft){ct=!0,dt=Ft}finally{try{!nt&&Ce.return!=null&&Ce.return()}finally{if(ct)throw dt}}return Z}function me(X){if(Array.isArray(X))return X}function ke(X,Be,Ce){var Z=O.useState(X),nt=ae(Z,2),ct=nt[0],Qe=nt[1],dt=O.useState(null),Ft=ae(dt,2),Lr=Ft[0],Wt=Ft[1];return O.useEffect(function(){var ar=de(ct||[],X||[],Be);(ar==null?void 0:ar.index)!==void 0&&(Ce==null||Ce(ar.index),Wt(X[ar.index])),Qe(X)},[X]),[Lr]}function se(X){return se=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Be){return typeof Be}:function(Be){return Be&&typeof Symbol=="function"&&Be.constructor===Symbol&&Be!==Symbol.prototype?"symbol":typeof Be},se(X)}var te=(typeof navigator=="undefined"?"undefined":se(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ge=te,oe=function(X,Be){var Ce=Object(O.useRef)(!1),Z=Object(O.useRef)(null);function nt(){clearTimeout(Z.current),Ce.current=!0,Z.current=setTimeout(function(){Ce.current=!1},50)}var ct=Object(O.useRef)({top:X,bottom:Be});return ct.current.top=X,ct.current.bottom=Be,function(Qe){var dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ft=Qe<0&&ct.current.top||Qe>0&&ct.current.bottom;return dt&&Ft?(clearTimeout(Z.current),Ce.current=!1):(!Ft||Ce.current)&&nt(),!Ce.current&&Ft}};function Y(X,Be,Ce,Z){var nt=Object(O.useRef)(0),ct=Object(O.useRef)(null),Qe=Object(O.useRef)(null),dt=Object(O.useRef)(!1),Ft=oe(Be,Ce);function Lr(ar){if(!X)return;r.a.cancel(ct.current);var Ut=ar.deltaY;if(nt.current+=Ut,Qe.current=Ut,Ft(Ut))return;Ge||ar.preventDefault(),ct.current=Object(r.a)(function(){var kt=dt.current?10:1;Z(nt.current*kt),nt.current=0})}function Wt(ar){if(!X)return;dt.current=ar.detail===Qe.current}return[Lr,Wt]}var G=d("TNol"),Q=14/15;function ye(X,Be,Ce){var Z=Object(O.useRef)(!1),nt=Object(O.useRef)(0),ct=Object(O.useRef)(null),Qe=Object(O.useRef)(null),dt,Ft=function(Ut){if(Z.current){var kt=Math.ceil(Ut.touches[0].pageY),st=nt.current-kt;nt.current=kt,Ce(st)&&Ut.preventDefault(),clearInterval(Qe.current),Qe.current=setInterval(function(){st*=Q,(!Ce(st,!0)||Math.abs(st)<=.1)&&clearInterval(Qe.current)},16)}},Lr=function(){Z.current=!1,dt()},Wt=function(Ut){dt(),Ut.touches.length===1&&!Z.current&&(Z.current=!0,nt.current=Math.ceil(Ut.touches[0].pageY),ct.current=Ut.target,ct.current.addEventListener("touchmove",Ft),ct.current.addEventListener("touchend",Lr))};dt=function(){ct.current&&(ct.current.removeEventListener("touchmove",Ft),ct.current.removeEventListener("touchend",Lr))},Object(G.a)(function(){return X&&Be.current.addEventListener("touchstart",Wt),function(){var ar;(ar=Be.current)===null||ar===void 0||ar.removeEventListener("touchstart",Wt),dt(),clearInterval(Qe.current)}},[X])}var ce=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function Te(){return Te=Object.assign||function(X){for(var Be=1;Be<arguments.length;Be++){var Ce=arguments[Be];for(var Z in Ce)Object.prototype.hasOwnProperty.call(Ce,Z)&&(X[Z]=Ce[Z])}return X},Te.apply(this,arguments)}function Se(X,Be){var Ce=Object.keys(X);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(X);Be&&(Z=Z.filter(function(nt){return Object.getOwnPropertyDescriptor(X,nt).enumerable})),Ce.push.apply(Ce,Z)}return Ce}function le(X){for(var Be=1;Be<arguments.length;Be++){var Ce=arguments[Be]!=null?arguments[Be]:{};Be%2?Se(Object(Ce),!0).forEach(function(Z){fe(X,Z,Ce[Z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(Ce)):Se(Object(Ce)).forEach(function(Z){Object.defineProperty(X,Z,Object.getOwnPropertyDescriptor(Ce,Z))})}return X}function fe(X,Be,Ce){return Be in X?Object.defineProperty(X,Be,{value:Ce,enumerable:!0,configurable:!0,writable:!0}):X[Be]=Ce,X}function Ee(X,Be){return Tt(X)||Oe(X,Be)||vt(X,Be)||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 vt(X,Be){if(!X)return;if(typeof X=="string")return et(X,Be);var Ce=Object.prototype.toString.call(X).slice(8,-1);if(Ce==="Object"&&X.constructor&&(Ce=X.constructor.name),Ce==="Map"||Ce==="Set")return Array.from(X);if(Ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ce))return et(X,Be)}function et(X,Be){(Be==null||Be>X.length)&&(Be=X.length);for(var Ce=0,Z=new Array(Be);Ce<Be;Ce++)Z[Ce]=X[Ce];return Z}function Oe(X,Be){var Ce=X==null?null:typeof Symbol!="undefined"&&X[Symbol.iterator]||X["@@iterator"];if(Ce==null)return;var Z=[],nt=!0,ct=!1,Qe,dt;try{for(Ce=Ce.call(X);!(nt=(Qe=Ce.next()).done)&&!(Z.push(Qe.value),Be&&Z.length===Be);nt=!0);}catch(Ft){ct=!0,dt=Ft}finally{try{!nt&&Ce.return!=null&&Ce.return()}finally{if(ct)throw dt}}return Z}function Tt(X){if(Array.isArray(X))return X}function Je(X,Be){if(X==null)return{};var Ce=St(X,Be),Z,nt;if(Object.getOwnPropertySymbols){var ct=Object.getOwnPropertySymbols(X);for(nt=0;nt<ct.length;nt++){if(Z=ct[nt],Be.indexOf(Z)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(X,Z))continue;Ce[Z]=X[Z]}}return Ce}function St(X,Be){if(X==null)return{};var Ce={},Z=Object.keys(X),nt,ct;for(ct=0;ct<Z.length;ct++){if(nt=Z[ct],Be.indexOf(nt)>=0)continue;Ce[nt]=X[nt]}return Ce}var Mt=[],er={overflowY:"auto",overflowAnchor:"none"};function It(X,Be){var Ce=X.prefixCls,Z=Ce===void 0?"rc-virtual-list":Ce,nt=X.className,ct=X.height,Qe=X.itemHeight,dt=X.fullHeight,Ft=dt===void 0?!0:dt,Lr=X.style,Wt=X.data,ar=X.children,Ut=X.itemKey,kt=X.virtual,st=X.component,Rr=st===void 0?"div":st,on=X.onScroll,Sn=X.onVisibleChange,zn=Je(X,ce),Ii=!!(kt!==!1&&ct&&Qe),yn=Ii&&Wt&&Qe*Wt.length>ct,Nn=Object(O.useState)(0),jt=Ee(Nn,2),At=jt[0],Re=jt[1],Ke=Object(O.useState)(!1),Pe=Ee(Ke,2),at=Pe[0],wt=Pe[1],Rt=C()(Z,nt),xt=Wt||Mt,Lt=Object(O.useRef)(),gr=Object(O.useRef)(),Br=Object(O.useRef)(),Et=O.useCallback(function(gn){return typeof Ut=="function"?Ut(gn):gn==null?void 0:gn[Ut]},[Ut]),it={getKey:Et};function rt(gn){Re(function(sr){var un;typeof gn=="function"?un=gn(sr):un=gn;var an=we(un);return Lt.current.scrollTop=an,an})}var Pt=Object(O.useRef)({start:0,end:xt.length}),Ht=Object(O.useRef)(),bt=ke(xt,Et),Gt=Ee(bt,1),ut=Gt[0];Ht.current=ut;var Kt=V(Et,null,null),Ar=Ee(Kt,4),ir=Ar[0],pr=Ar[1],tn=Ar[2],fn=Ar[3],Mn=O.useMemo(function(){if(!Ii)return{scrollHeight:void 0,start:0,end:xt.length-1,offset:void 0};if(!yn){var gn;return{scrollHeight:((gn=gr.current)===null||gn===void 0?void 0:gn.offsetHeight)||0,start:0,end:xt.length-1,offset:void 0}}for(var sr=0,un,an,Pr,In=xt.length,ci=0;ci<In;ci+=1){var Ui=xt[ci],ki=Et(Ui),Ri=tn.get(ki),Ki=sr+(Ri===void 0?Qe:Ri);Ki>=At&&un===void 0&&(un=ci,an=sr),Ki>At+ct&&Pr===void 0&&(Pr=ci),sr=Ki}return un===void 0&&(un=0,an=0),Pr===void 0&&(Pr=xt.length-1),Pr=Math.min(Pr+1,xt.length),{scrollHeight:sr,start:un,end:Pr,offset:an}},[yn,Ii,At,xt,fn,ct]),Yn=Mn.scrollHeight,si=Mn.start,vi=Mn.end,xi=Mn.offset;Pt.current.start=si,Pt.current.end=vi;var _i=Yn-ct,Ze=Object(O.useRef)(_i);Ze.current=_i;function we(gn){var sr=gn;return Number.isNaN(Ze.current)||(sr=Math.min(sr,Ze.current)),sr=Math.max(sr,0),sr}var Ne=At<=0,Fe=At>=_i,Ye=oe(Ne,Fe);function We(gn){var sr=gn;rt(sr)}function qe(gn){var sr=gn.currentTarget.scrollTop;sr!==At&&rt(sr),on==null||on(gn)}var yt=Y(Ii,Ne,Fe,function(gn){rt(function(sr){var un=sr+gn;return un})}),ot=Ee(yt,2),$t=ot[0],Mr=ot[1];ye(Ii,Lt,function(gn,sr){return Ye(gn,sr)?!1:($t({preventDefault:function(){},deltaY:gn}),!0)}),Object(G.a)(function(){function gn(sr){Ii&&sr.preventDefault()}return Lt.current.addEventListener("wheel",$t),Lt.current.addEventListener("DOMMouseScroll",Mr),Lt.current.addEventListener("MozMousePixelScroll",gn),function(){Lt.current&&(Lt.current.removeEventListener("wheel",$t),Lt.current.removeEventListener("DOMMouseScroll",Mr),Lt.current.removeEventListener("MozMousePixelScroll",gn))}},[Ii]);var Sr=J(Lt,xt,tn,Qe,Et,pr,rt,function(){var gn;(gn=Br.current)===null||gn===void 0||gn.delayHidden()});O.useImperativeHandle(Be,function(){return{scrollTo:Sr}}),Object(G.a)(function(){if(Sn){var gn=xt.slice(si,vi+1);Sn(gn,xt)}},[si,vi,xt]);var jr=S(xt,si,vi,ir,ar,it),tr=null;return ct&&(tr=le(fe({},Ft?"height":"maxHeight",ct),er),Ii&&(tr.overflowY="hidden",at&&(tr.pointerEvents="none"))),O.createElement("div",Te({style:le(le({},Lr),{},{position:"relative"}),className:Rt},zn),O.createElement(Rr,{className:"".concat(Z,"-holder"),style:tr,ref:Lt,onScroll:qe},O.createElement(o,{prefixCls:Z,height:Yn,offset:xi,onInnerResize:pr,ref:gr},jr)),Ii&&O.createElement(T,{ref:Br,prefixCls:Z,scrollTop:At,height:ct,scrollHeight:Yn,count:xt.length,onScroll:We,onStartMove:function(){wt(!0)},onStopMove:function(){wt(!1)}}))}var _t=O.forwardRef(It);_t.displayName="List";var Xe=_t,ie=k.a=Xe},"+rIm":function(H,k,d){var O=d("bYtY"),x=O.retrieve,C=O.defaults,A=O.extend,b=O.each,g=d("7aKB"),f=d("IwbS"),c=d("Qxkt"),o=d("OELB"),r=o.isRadianAroundZero,i=o.remRadian,n=d("oVpE"),e=n.createSymbol,l=d("Fofx"),t=d("QBsz"),a=t.applyTransform,s=d("aX7z"),u=s.shouldShowAllLabels,h=Math.PI,p=function(M,U){this.opt=U,this.axisModel=M,C(U,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new f.Group;var B=new f.Group({position:U.position.slice(),rotation:U.rotation});B.updateTransform(),this._transform=B.transform,this._dumbGroup=B};p.prototype={constructor:p,hasBuilder:function(M){return!!m[M]},add:function(M){m[M].call(this)},getGroup:function(){return this.group}};var m={axisLine:function(){var M=this.opt,U=this.axisModel;if(!U.get("axisLine.show"))return;var B=this.axisModel.axis.getExtent(),j=this._transform,W=[B[0],0],V=[B[1],0];j&&(a(W,W,j),a(V,V,j));var z=A({lineCap:"round"},U.getModel("axisLine.lineStyle").getLineStyle());this.group.add(new f.Line({anid:"line",subPixelOptimize:!0,shape:{x1:W[0],y1:W[1],x2:V[0],y2:V[1]},style:z,strokeContainThreshold:M.strokeContainThreshold||5,silent:!0,z2:1}));var J=U.get("axisLine.symbol"),q=U.get("axisLine.symbolSize"),de=U.get("axisLine.symbolOffset")||0;if(typeof de=="number"&&(de=[de,de]),J!=null){typeof J=="string"&&(J=[J,J]),(typeof q=="string"||typeof q=="number")&&(q=[q,q]);var ae=q[0],ve=q[1];b([{rotate:M.rotation+Math.PI/2,offset:de[0],r:0},{rotate:M.rotation-Math.PI/2,offset:de[1],r:Math.sqrt((W[0]-V[0])*(W[0]-V[0])+(W[1]-V[1])*(W[1]-V[1]))}],function(_e,Ie){if(J[Ie]!=="none"&&J[Ie]!=null){var He=e(J[Ie],-ae/2,-ve/2,ae,ve,z.stroke,!0),me=_e.r+_e.offset,ke=[W[0]+me*Math.cos(M.rotation),W[1]-me*Math.sin(M.rotation)];He.attr({rotation:_e.rotate,position:ke,silent:!0,z2:11}),this.group.add(He)}},this)}},axisTickLabel:function(){var M=this.axisModel,U=this.opt,B=N(this,M,U),j=D(this,M,U);w(M,j,B),R(this,M,U)},axisName:function(){var M=this.opt,U=this.axisModel,B=x(M.axisName,U.get("name"));if(!B)return;var j=U.get("nameLocation"),W=M.nameDirection,V=U.getModel("nameTextStyle"),z=U.get("nameGap")||0,J=this.axisModel.axis.getExtent(),q=J[0]>J[1]?-1:1,de=[j==="start"?J[0]-q*z:j==="end"?J[1]+q*z:(J[0]+J[1])/2,I(j)?M.labelOffset+W*z:0],ae,ve=U.get("nameRotate");ve!=null&&(ve=ve*h/180);var _e;I(j)?ae=y(M.rotation,ve!=null?ve:M.rotation,W):(ae=E(M,j,ve||0,J),_e=M.axisNameAvailableWidth,_e!=null&&(_e=Math.abs(_e/Math.sin(ae.rotation)),!isFinite(_e)&&(_e=null)));var Ie=V.getFont(),He=U.get("nameTruncate",!0)||{},me=He.ellipsis,ke=x(M.nameTruncateMaxWidth,He.maxWidth,_e),se=me!=null&&ke!=null?g.truncateText(B,ke,Ie,me,{minChar:2,placeholder:He.placeholder}):B,te=U.get("tooltip",!0),Ge=U.mainType,oe={componentType:Ge,name:B,$vars:["name"]};oe[Ge+"Index"]=U.componentIndex;var Y=new f.Text({anid:"name",__fullText:B,__truncatedText:se,position:de,rotation:ae.rotation,silent:T(U),z2:1,tooltip:te&&te.show?A({content:B,formatter:function(){return B},formatterParams:oe},te):null});f.setTextStyle(Y.style,V,{text:se,textFont:Ie,textFill:V.getTextColor()||U.get("axisLine.lineStyle.color"),textAlign:V.get("align")||ae.textAlign,textVerticalAlign:V.get("verticalAlign")||ae.textVerticalAlign}),U.get("triggerEvent")&&(Y.eventData=v(U),Y.eventData.targetType="axisName",Y.eventData.name=B),this._dumbGroup.add(Y),Y.updateTransform(),this.group.add(Y),Y.decomposeTransform()}},v=p.makeAxisEventDataBase=function(M){var U={componentType:M.mainType,componentIndex:M.componentIndex};return U[M.mainType+"Index"]=M.componentIndex,U},y=p.innerTextLayout=function(M,U,B){var j=i(U-M),W,V;return r(j)?(V=B>0?"top":"bottom",W="center"):r(j-h)?(V=B>0?"bottom":"top",W="center"):(V="middle",j>0&&j<h?W=B>0?"right":"left":W=B>0?"left":"right"),{rotation:j,textAlign:W,textVerticalAlign:V}};function E(M,U,B,j){var W=i(B-M.rotation),V,z,J=j[0]>j[1],q=U==="start"&&!J||U!=="start"&&J;return r(W-h/2)?(z=q?"bottom":"top",V="center"):r(W-h*1.5)?(z=q?"top":"bottom",V="center"):(z="middle",W<h*1.5&&W>h/2?V=q?"left":"right":V=q?"right":"left"),{rotation:W,textAlign:V,textVerticalAlign:z}}var T=p.isLabelSilent=function(M){var U=M.get("tooltip");return M.get("silent")||!(M.get("triggerEvent")||U&&U.show)};function w(M,U,B){if(u(M.axis))return;var j=M.get("axisLabel.showMinLabel"),W=M.get("axisLabel.showMaxLabel");U=U||[],B=B||[];var V=U[0],z=U[1],J=U[U.length-1],q=U[U.length-2],de=B[0],ae=B[1],ve=B[B.length-1],_e=B[B.length-2];j===!1?(S(V),S(de)):_(V,z)&&(j?(S(z),S(ae)):(S(V),S(de))),W===!1?(S(J),S(ve)):_(q,J)&&(W?(S(q),S(_e)):(S(J),S(ve)))}function S(M){M&&(M.ignore=!0)}function _(M,U,B){var j=M&&M.getBoundingRect().clone(),W=U&&U.getBoundingRect().clone();if(!j||!W)return;var V=l.identity([]);return l.rotate(V,V,-M.rotation),j.applyTransform(l.mul([],V,M.getLocalTransform())),W.applyTransform(l.mul([],V,U.getLocalTransform())),j.intersect(W)}function I(M){return M==="middle"||M==="center"}function L(M,U,B,j,W){for(var V=[],z=[],J=[],q=0;q<M.length;q++){var de=M[q].coord;z[0]=de,z[1]=0,J[0]=de,J[1]=B,U&&(a(z,z,U),a(J,J,U));var ae=new f.Line({anid:W+"_"+M[q].tickValue,subPixelOptimize:!0,shape:{x1:z[0],y1:z[1],x2:J[0],y2:J[1]},style:j,z2:2,silent:!0});V.push(ae)}return V}function N(M,U,B){var j=U.axis,W=U.getModel("axisTick");if(!W.get("show")||j.scale.isBlank())return;for(var V=W.getModel("lineStyle"),z=B.tickDirection*W.get("length"),J=j.getTicksCoords(),q=L(J,M._transform,z,C(V.getLineStyle(),{stroke:U.get("axisLine.lineStyle.color")}),"ticks"),de=0;de<q.length;de++)M.group.add(q[de]);return q}function R(M,U,B){var j=U.axis,W=U.getModel("minorTick");if(!W.get("show")||j.scale.isBlank())return;var V=j.getMinorTicksCoords();if(!V.length)return;for(var z=W.getModel("lineStyle"),J=B.tickDirection*W.get("length"),q=C(z.getLineStyle(),C(U.getModel("axisTick").getLineStyle(),{stroke:U.get("axisLine.lineStyle.color")})),de=0;de<V.length;de++)for(var ae=L(V[de],M._transform,J,q,"minorticks_"+de),ve=0;ve<ae.length;ve++)M.group.add(ae[ve])}function D(M,U,B){var j=U.axis,W=x(B.axisLabelShow,U.get("axisLabel.show"));if(!W||j.scale.isBlank())return;var V=U.getModel("axisLabel"),z=V.get("margin"),J=j.getViewLabels(),q=(x(B.labelRotate,V.get("rotate"))||0)*h/180,de=y(B.rotation,q,B.labelDirection),ae=U.getCategories&&U.getCategories(!0),ve=[],_e=T(U),Ie=U.get("triggerEvent");return b(J,function(He,me){var ke=He.tickValue,se=He.formattedLabel,te=He.rawLabel,Ge=V;ae&&ae[ke]&&ae[ke].textStyle&&(Ge=new c(ae[ke].textStyle,V,U.ecModel));var oe=Ge.getTextColor()||U.get("axisLine.lineStyle.color"),Y=j.dataToCoord(ke),G=[Y,B.labelOffset+B.labelDirection*z],Q=new f.Text({anid:"label_"+ke,position:G,rotation:de.rotation,silent:_e,z2:10});f.setTextStyle(Q.style,Ge,{text:se,textAlign:Ge.getShallow("align",!0)||de.textAlign,textVerticalAlign:Ge.getShallow("verticalAlign",!0)||Ge.getShallow("baseline",!0)||de.textVerticalAlign,textFill:typeof oe=="function"?oe(j.type==="category"?te:j.type==="value"?ke+"":ke,me):oe}),Ie&&(Q.eventData=v(U),Q.eventData.targetType="axisLabel",Q.eventData.value=te),M._dumbGroup.add(Q),Q.updateTransform(),ve.push(Q),M.group.add(Q),Q.decomposeTransform()}),ve}var F=p;H.exports=F},"+wW9":function(H,k,d){var O=d("bYtY"),x=O.each,C=O.isArray,A=O.isObject,b=d("JuEJ"),g=d("4NO4"),f=g.normalizeToArray;function c(l,t){t=t.split(",");for(var a=l,s=0;s<t.length&&!(a=a&&a[t[s]],a==null);s++);return a}function o(l,t,a,s){t=t.split(",");for(var u=l,h,p=0;p<t.length-1;p++)h=t[p],u[h]==null&&(u[h]={}),u=u[h];(s||u[t[p]]==null)&&(u[t[p]]=a)}function r(l){x(i,function(t){t[0]in l&&!(t[1]in l)&&(l[t[1]]=l[t[0]])})}var i=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],n=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(l,t){b(l,t),l.series=f(l.series),x(l.series,function(a){if(!A(a))return;var s=a.type;if(s==="line")a.clipOverflow!=null&&(a.clip=a.clipOverflow);else if(s==="pie"||s==="gauge")a.clockWise!=null&&(a.clockwise=a.clockWise);else if(s==="gauge"){var u=c(a,"pointer.color");u!=null&&o(a,"itemStyle.color",u)}r(a)}),l.dataRange&&(l.visualMap=l.dataRange),x(n,function(a){var s=l[a];s&&(C(s)||(s=[s]),x(s,function(u){r(u)}))})}H.exports=e},"/IIm":function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("H6uX"),b=d("IwbS"),g=d("pP6R"),f=d("gPAo"),c=C.curry,o=C.each,r=C.map,i=Math.min,n=Math.max,e=Math.pow,l=1e4,t=6,a=6,s="globalPan",u={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},h={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},m=0;function v(le){A.call(this),this._zr=le,this.group=new b.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+m++,this._handlers={},o(G,function(fe,Ee){this._handlers[Ee]=C.bind(fe,this)},this)}v.prototype={constructor:v,enableBrush:function(le){return this._brushType&&E(this),le.brushType&&y(this,le),this},setPanels:function(le){if(le&&le.length){var fe=this._panels={};C.each(le,function(Ee){fe[Ee.panelId]=C.clone(Ee)})}else this._panels=null;return this},mount:function(le){le=le||{},this._enableGlobalPan=le.enableGlobalPan;var fe=this.group;return this._zr.add(fe),fe.attr({position:le.position||[0,0],rotation:le.rotation||0,scale:le.scale||[1,1]}),this._transform=fe.getLocalTransform(),this},eachCover:function(le,fe){o(this._covers,le,fe)},updateCovers:function(le){le=C.map(le,function(Mt){return C.merge(C.clone(p),Mt,!0)});var fe="\0-brush-index-",Ee=this._covers,Ve=this._covers=[],vt=this,et=this._creatingCover;return new f(Ee,le,Tt,Oe).add(Je).update(Je).remove(St).execute(),this;function Oe(Mt,er){return(Mt.id!=null?Mt.id:fe+er)+"-"+Mt.brushType}function Tt(Mt,er){return Oe(Mt.__brushOption,er)}function Je(Mt,er){var It=le[Mt];if(er!=null&&Ee[er]===et)Ve[Mt]=Ee[er];else{var _t=Ve[Mt]=er!=null?(Ee[er].__brushOption=It,Ee[er]):_(vt,S(vt,It));N(vt,_t)}}function St(Mt){Ee[Mt]!==et&&vt.group.remove(Ee[Mt])}},unmount:function(){return this.enableBrush(!1),M(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},C.mixin(v,A);function y(le,fe){var Ee=le._zr;le._enableGlobalPan||g.take(Ee,s,le._uid),T(Ee,le._handlers),le._brushType=fe.brushType,le._brushOption=C.merge(C.clone(p),fe,!0)}function E(le){var fe=le._zr;g.release(fe,s,le._uid),w(fe,le._handlers),le._brushType=le._brushOption=null}function T(le,fe){o(fe,function(Ee,Ve){le.on(Ve,Ee)})}function w(le,fe){o(fe,function(Ee,Ve){le.off(Ve,Ee)})}function S(le,fe){var Ee=ce[fe.brushType].createCover(le,fe);return Ee.__brushOption=fe,L(Ee,fe),le.group.add(Ee),Ee}function _(le,fe){var Ee=R(fe);return Ee.endCreating&&(Ee.endCreating(le,fe),L(fe,fe.__brushOption)),fe}function I(le,fe){var Ee=fe.__brushOption;R(fe).updateCoverShape(le,fe,Ee.range,Ee)}function L(le,fe){var Ee=fe.z;Ee==null&&(Ee=l),le.traverse(function(Ve){Ve.z=Ee,Ve.z2=Ee})}function N(le,fe){R(fe).updateCommon(le,fe),I(le,fe)}function R(le){return ce[le.__brushOption.brushType]}function D(le,fe,Ee){var Ve=le._panels;if(!Ve)return!0;var vt,et=le._transform;return o(Ve,function(Oe){Oe.isTargetByCursor(fe,Ee,et)&&(vt=Oe)}),vt}function F(le,fe){var Ee=le._panels;if(!Ee)return!0;var Ve=fe.__brushOption.panelId;return Ve!=null?Ee[Ve]:!0}function M(le){var fe=le._covers,Ee=fe.length;return o(fe,function(Ve){le.group.remove(Ve)},le),fe.length=0,!!Ee}function U(le,fe){var Ee=r(le._covers,function(Ve){var vt=Ve.__brushOption,et=C.clone(vt.range);return{brushType:vt.brushType,panelId:vt.panelId,range:et}});le.trigger("brush",Ee,{isEnd:!!fe.isEnd,removeOnClick:!!fe.removeOnClick})}function B(le){var fe=le._track;if(!fe.length)return!1;var Ee=fe[fe.length-1],Ve=fe[0],vt=Ee[0]-Ve[0],et=Ee[1]-Ve[1],Oe=e(vt*vt+et*et,.5);return Oe>t}function j(le){var fe=le.length-1;return fe<0&&(fe=0),[le[0],le[fe]]}function W(le,fe,Ee,Ve){var vt=new b.Group;return vt.add(new b.Rect({name:"main",style:q(Ee),silent:!0,draggable:!0,cursor:"move",drift:c(le,fe,vt,"nswe"),ondragend:c(U,fe,{isEnd:!0})})),o(Ve,function(et){vt.add(new b.Rect({name:et,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:c(le,fe,vt,et),ondragend:c(U,fe,{isEnd:!0})}))}),vt}function V(le,fe,Ee,Ve){var vt=Ve.brushStyle.lineWidth||0,et=n(vt,a),Oe=Ee[0][0],Tt=Ee[1][0],Je=Oe-vt/2,St=Tt-vt/2,Mt=Ee[0][1],er=Ee[1][1],It=Mt-et+vt/2,_t=er-et+vt/2,Xe=Mt-Oe,ie=er-Tt,X=Xe+vt,Be=ie+vt;J(le,fe,"main",Oe,Tt,Xe,ie),Ve.transformable&&(J(le,fe,"w",Je,St,et,Be),J(le,fe,"e",It,St,et,Be),J(le,fe,"n",Je,St,X,et),J(le,fe,"s",Je,_t,X,et),J(le,fe,"nw",Je,St,et,et),J(le,fe,"ne",It,St,et,et),J(le,fe,"sw",Je,_t,et,et),J(le,fe,"se",It,_t,et,et))}function z(le,fe){var Ee=fe.__brushOption,Ve=Ee.transformable,vt=fe.childAt(0);vt.useStyle(q(Ee)),vt.attr({silent:!Ve,cursor:Ve?"move":"default"}),o(["w","e","n","s","se","sw","ne","nw"],function(et){var Oe=fe.childOfName(et),Tt=ve(le,et);Oe&&Oe.attr({silent:!Ve,invisible:!Ve,cursor:Ve?h[Tt]+"-resize":null})})}function J(le,fe,Ee,Ve,vt,et,Oe){var Tt=fe.childOfName(Ee);Tt&&Tt.setShape(ke(me(le,fe,[[Ve,vt],[Ve+et,vt+Oe]])))}function q(le){return C.defaults({strokeNoScale:!0},le.brushStyle)}function de(le,fe,Ee,Ve){var vt=[i(le,Ee),i(fe,Ve)],et=[n(le,Ee),n(fe,Ve)];return[[vt[0],et[0]],[vt[1],et[1]]]}function ae(le){return b.getTransform(le.group)}function ve(le,fe){if(fe.length>1){fe=fe.split("");var Ee=[ve(le,fe[0]),ve(le,fe[1])];return(Ee[0]==="e"||Ee[0]==="w")&&Ee.reverse(),Ee.join("")}else{var Ve={w:"left",e:"right",n:"top",s:"bottom"},vt={left:"w",right:"e",top:"n",bottom:"s"},Ee=b.transformDirection(Ve[fe],ae(le));return vt[Ee]}}function _e(le,fe,Ee,Ve,vt,et,Oe,Tt){var Je=Ve.__brushOption,St=le(Je.range),Mt=He(Ee,et,Oe);o(vt.split(""),function(er){var It=u[er];St[It[0]][It[1]]+=Mt[It[0]]}),Je.range=fe(de(St[0][0],St[1][0],St[0][1],St[1][1])),N(Ee,Ve),U(Ee,{isEnd:!1})}function Ie(le,fe,Ee,Ve,vt){var et=fe.__brushOption.range,Oe=He(le,Ee,Ve);o(et,function(Tt){Tt[0]+=Oe[0],Tt[1]+=Oe[1]}),N(le,fe),U(le,{isEnd:!1})}function He(le,fe,Ee){var Ve=le.group,vt=Ve.transformCoordToLocal(fe,Ee),et=Ve.transformCoordToLocal(0,0);return[vt[0]-et[0],vt[1]-et[1]]}function me(le,fe,Ee){var Ve=F(le,fe);return Ve&&Ve!==!0?Ve.clipPath(Ee,le._transform):C.clone(Ee)}function ke(le){var fe=i(le[0][0],le[1][0]),Ee=i(le[0][1],le[1][1]),Ve=n(le[0][0],le[1][0]),vt=n(le[0][1],le[1][1]);return{x:fe,y:Ee,width:Ve-fe,height:vt-Ee}}function se(le,fe,Ee){if(!le._brushType||ye(le,fe))return;var Ve=le._zr,vt=le._covers,et=D(le,fe,Ee);if(!le._dragging)for(var Oe=0;Oe<vt.length;Oe++){var Tt=vt[Oe].__brushOption;if(et&&(et===!0||Tt.panelId===et.panelId)&&ce[Tt.brushType].contain(vt[Oe],Ee[0],Ee[1]))return}et&&Ve.setCursorStyle("crosshair")}function te(le){var fe=le.event;fe.preventDefault&&fe.preventDefault()}function Ge(le,fe,Ee){return le.childOfName("main").contain(fe,Ee)}function oe(le,fe,Ee,Ve){var vt=le._creatingCover,et=le._creatingPanel,Oe=le._brushOption,Tt;if(le._track.push(Ee.slice()),B(le)||vt){if(et&&!vt){Oe.brushMode==="single"&&M(le);var Je=C.clone(Oe);Je.brushType=Y(Je.brushType,et),Je.panelId=et===!0?null:et.panelId,vt=le._creatingCover=S(le,Je),le._covers.push(vt)}if(vt){var St=ce[Y(le._brushType,et)],Mt=vt.__brushOption;Mt.range=St.getCreatingRange(me(le,vt,le._track)),Ve&&(_(le,vt),St.updateCommon(le,vt)),I(le,vt),Tt={isEnd:Ve}}}else Ve&&Oe.brushMode==="single"&&Oe.removeOnClick&&(D(le,fe,Ee)&&M(le)&&(Tt={isEnd:Ve,removeOnClick:!0}));return Tt}function Y(le,fe){return le==="auto"?fe.defaultBrushType:le}var G={mousedown:function(le){if(this._dragging)Q(this,le);else if(!le.target||!le.target.draggable){te(le);var fe=this.group.transformCoordToLocal(le.offsetX,le.offsetY);this._creatingCover=null;var Ee=this._creatingPanel=D(this,le,fe);Ee&&(this._dragging=!0,this._track=[fe.slice()])}},mousemove:function(le){var fe=le.offsetX,Ee=le.offsetY,Ve=this.group.transformCoordToLocal(fe,Ee);if(se(this,le,Ve),this._dragging){te(le);var vt=oe(this,le,Ve,!1);vt&&U(this,vt)}},mouseup:function(le){Q(this,le)}};function Q(le,fe){if(le._dragging){te(fe);var Ee=fe.offsetX,Ve=fe.offsetY,vt=le.group.transformCoordToLocal(Ee,Ve),et=oe(le,fe,vt,!0);le._dragging=!1,le._track=[],le._creatingCover=null,et&&U(le,et)}}function ye(le,fe,Ee){var Ve=le._zr;return fe<0||fe>Ve.getWidth()||Ee<0||Ee>Ve.getHeight()}var ce={lineX:Te(0),lineY:Te(1),rect:{createCover:function(le,fe){return W(c(_e,function(Ee){return Ee},function(Ee){return Ee}),le,fe,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(le){var fe=j(le);return de(fe[1][0],fe[1][1],fe[0][0],fe[0][1])},updateCoverShape:function(le,fe,Ee,Ve){V(le,fe,Ee,Ve)},updateCommon:z,contain:Ge},polygon:{createCover:function(le,fe){var Ee=new b.Group;return Ee.add(new b.Polyline({name:"main",style:q(fe),silent:!0})),Ee},getCreatingRange:function(le){return le},endCreating:function(le,fe){fe.remove(fe.childAt(0)),fe.add(new b.Polygon({name:"main",draggable:!0,drift:c(Ie,le,fe),ondragend:c(U,le,{isEnd:!0})}))},updateCoverShape:function(le,fe,Ee,Ve){fe.childAt(0).setShape({points:me(le,fe,Ee)})},updateCommon:z,contain:Ge}};function Te(le){return{createCover:function(fe,Ee){return W(c(_e,function(Ve){var vt=[Ve,[0,100]];return le&&vt.reverse(),vt},function(Ve){return Ve[le]}),fe,Ee,[["w","e"],["n","s"]][le])},getCreatingRange:function(fe){var Ee=j(fe),Ve=i(Ee[0][le],Ee[1][le]),vt=n(Ee[0][le],Ee[1][le]);return[Ve,vt]},updateCoverShape:function(fe,Ee,Ve,vt){var et,Oe=F(fe,Ee);if(Oe!==!0&&Oe.getLinearBrushOtherExtent)et=Oe.getLinearBrushOtherExtent(le,fe._transform);else{var Tt=fe._zr;et=[0,[Tt.getWidth(),Tt.getHeight()][1-le]]}var Je=[Ve,et];le&&Je.reverse(),V(fe,Ee,Je,vt)},updateCommon:z,contain:Ge}}var Se=v;H.exports=Se},"/MfK":function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="DeleteOutlined";var f=k.a=x.forwardRef(g)},"/POA":function(H,k,d){!function(O,x){if(!0)H.exports=x();else var C,A}(window,function(){return function(O){var x={};function C(A){if(x[A])return x[A].exports;var b=x[A]={i:A,l:!1,exports:{}};return O[A].call(b.exports,b,b.exports,C),b.l=!0,b.exports}return C.m=O,C.c=x,C.d=function(A,b,g){C.o(A,b)||Object.defineProperty(A,b,{enumerable:!0,get:g})},C.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},C.t=function(A,b){if(1&b&&(A=C(A)),8&b)return A;if(4&b&&typeof A=="object"&&A&&A.__esModule)return A;var g=Object.create(null);if(C.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:A}),2&b&&typeof A!="string")for(var f in A)C.d(g,f,function(c){return A[c]}.bind(null,f));return g},C.n=function(A){var b=A&&A.__esModule?function(){return A.default}:function(){return A};return C.d(b,"a",b),b},C.o=function(A,b){return Object.prototype.hasOwnProperty.call(A,b)},C.p="",C(C.s=34)}([function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.forwardEvent=x.EventEmitter=void 0;var A=function(){function b(){this._listeners=[],this._disposed=!1}return Object.defineProperty(b.prototype,"event",{get:function(){var f=this;return this._event||(this._event=function(c){return f._listeners.push(c),{dispose:function(){if(!f._disposed){for(var r=0;r<f._listeners.length;r++)if(f._listeners[r]===c)return void f._listeners.splice(r,1)}}}}),this._event},enumerable:!1,configurable:!0}),b.prototype.fire=function(g,f){for(var c=[],o=0;o<this._listeners.length;o++)c.push(this._listeners[o]);for(o=0;o<c.length;o++)c[o].call(void 0,g,f)},b.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},b}();x.EventEmitter=A,x.forwardEvent=function(b,g){return b(function(f){return g.fire(f)})}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.IUnicodeService=x.IOptionsService=x.ILogService=x.IInstantiationService=x.IDirtyRowService=x.ICharsetService=x.ICoreService=x.ICoreMouseService=x.IBufferService=void 0;var A=C(14);x.IBufferService=A.createDecorator("BufferService"),x.ICoreMouseService=A.createDecorator("CoreMouseService"),x.ICoreService=A.createDecorator("CoreService"),x.ICharsetService=A.createDecorator("CharsetService"),x.IDirtyRowService=A.createDecorator("DirtyRowService"),x.IInstantiationService=A.createDecorator("InstantiationService"),x.ILogService=A.createDecorator("LogService"),x.IOptionsService=A.createDecorator("OptionsService"),x.IUnicodeService=A.createDecorator("UnicodeService")},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.getDisposeArrayDisposable=x.disposeArray=x.Disposable=void 0;var A=function(){function g(){this._disposables=[],this._isDisposed=!1}return g.prototype.dispose=function(){this._isDisposed=!0;for(var f=0,c=this._disposables;f<c.length;f++)c[f].dispose();this._disposables.length=0},g.prototype.register=function(f){return this._disposables.push(f),f},g.prototype.unregister=function(f){var c=this._disposables.indexOf(f);c!==-1&&this._disposables.splice(c,1)},g}();function b(g){for(var f=0,c=g;f<c.length;f++)c[f].dispose();g.length=0}x.Disposable=A,x.disposeArray=b,x.getDisposeArrayDisposable=function(g){return{dispose:function(){return b(g)}}}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.WHITESPACE_CELL_CODE=x.WHITESPACE_CELL_WIDTH=x.WHITESPACE_CELL_CHAR=x.NULL_CELL_CODE=x.NULL_CELL_WIDTH=x.NULL_CELL_CHAR=x.CHAR_DATA_CODE_INDEX=x.CHAR_DATA_WIDTH_INDEX=x.CHAR_DATA_CHAR_INDEX=x.CHAR_DATA_ATTR_INDEX=x.DEFAULT_ATTR=x.DEFAULT_COLOR=void 0,x.DEFAULT_COLOR=256,x.DEFAULT_ATTR=256|x.DEFAULT_COLOR<<9,x.CHAR_DATA_ATTR_INDEX=0,x.CHAR_DATA_CHAR_INDEX=1,x.CHAR_DATA_WIDTH_INDEX=2,x.CHAR_DATA_CODE_INDEX=3,x.NULL_CELL_CHAR="",x.NULL_CELL_WIDTH=1,x.NULL_CELL_CODE=0,x.WHITESPACE_CELL_CHAR=" ",x.WHITESPACE_CELL_WIDTH=1,x.WHITESPACE_CELL_CODE=32},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(i,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var t in l)l.hasOwnProperty(t)&&(e[t]=l[t])})(i,n)},function(r,i){function n(){this.constructor=r}A(r,i),r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(x,"__esModule",{value:!0}),x.CellData=void 0;var g=C(8),f=C(3),c=C(6),o=function(r){function i(){var n=r!==null&&r.apply(this,arguments)||this;return n.content=0,n.fg=0,n.bg=0,n.extended=new c.ExtendedAttrs,n.combinedData="",n}return b(i,r),i.fromCharData=function(n){var e=new i;return e.setFromCharData(n),e},i.prototype.isCombined=function(){return 2097152&this.content},i.prototype.getWidth=function(){return this.content>>22},i.prototype.getChars=function(){return 2097152&this.content?this.combinedData:2097151&this.content?g.stringFromCodePoint(2097151&this.content):""},i.prototype.getCode=function(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content},i.prototype.setFromCharData=function(n){this.fg=n[f.CHAR_DATA_ATTR_INDEX],this.bg=0;var e=!1;if(n[f.CHAR_DATA_CHAR_INDEX].length>2)e=!0;else if(n[f.CHAR_DATA_CHAR_INDEX].length===2){var l=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=l&&l<=56319){var t=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=t&&t<=57343?this.content=1024*(l-55296)+t-56320+65536|n[f.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=n[f.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|n[f.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=n[f.CHAR_DATA_CHAR_INDEX],this.content=2097152|n[f.CHAR_DATA_WIDTH_INDEX]<<22)},i.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},i}(c.AttributeData);x.CellData=o},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ISoundService=x.ISelectionService=x.IRenderService=x.IMouseService=x.ICoreBrowserService=x.ICharSizeService=void 0;var A=C(14);x.ICharSizeService=A.createDecorator("CharSizeService"),x.ICoreBrowserService=A.createDecorator("CoreBrowserService"),x.IMouseService=A.createDecorator("MouseService"),x.IRenderService=A.createDecorator("RenderService"),x.ISelectionService=A.createDecorator("SelectionService"),x.ISoundService=A.createDecorator("SoundService")},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ExtendedAttrs=x.AttributeData=void 0;var A=function(){function g(){this.fg=0,this.bg=0,this.extended=new b}return g.toColorRGB=function(f){return[f>>>16&255,f>>>8&255,255&f]},g.fromColorRGB=function(f){return(255&f[0])<<16|(255&f[1])<<8|255&f[2]},g.prototype.clone=function(){var f=new g;return f.fg=this.fg,f.bg=this.bg,f.extended=this.extended.clone(),f},g.prototype.isInverse=function(){return 67108864&this.fg},g.prototype.isBold=function(){return 134217728&this.fg},g.prototype.isUnderline=function(){return 268435456&this.fg},g.prototype.isBlink=function(){return 536870912&this.fg},g.prototype.isInvisible=function(){return 1073741824&this.fg},g.prototype.isItalic=function(){return 67108864&this.bg},g.prototype.isDim=function(){return 134217728&this.bg},g.prototype.getFgColorMode=function(){return 50331648&this.fg},g.prototype.getBgColorMode=function(){return 50331648&this.bg},g.prototype.isFgRGB=function(){return(50331648&this.fg)==50331648},g.prototype.isBgRGB=function(){return(50331648&this.bg)==50331648},g.prototype.isFgPalette=function(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432},g.prototype.isBgPalette=function(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432},g.prototype.isFgDefault=function(){return(50331648&this.fg)==0},g.prototype.isBgDefault=function(){return(50331648&this.bg)==0},g.prototype.isAttributeDefault=function(){return this.fg===0&&this.bg===0},g.prototype.getFgColor=function(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}},g.prototype.getBgColor=function(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}},g.prototype.hasExtendedAttrs=function(){return 268435456&this.bg},g.prototype.updateExtended=function(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456},g.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()},g.prototype.getUnderlineColorMode=function(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()},g.prototype.isUnderlineColorRGB=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()},g.prototype.isUnderlineColorPalette=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()},g.prototype.isUnderlineColorDefault=function(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()},g.prototype.getUnderlineStyle=function(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0},g}();x.AttributeData=A;var b=function(){function g(f,c){f===void 0&&(f=0),c===void 0&&(c=-1),this.underlineStyle=f,this.underlineColor=c}return g.prototype.clone=function(){return new g(this.underlineStyle,this.underlineColor)},g.prototype.isEmpty=function(){return this.underlineStyle===0},g}();x.ExtendedAttrs=b},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.addDisposableDomListener=void 0,x.addDisposableDomListener=function(A,b,g,f){A.addEventListener(b,g,f);var c=!1;return{dispose:function(){c||(c=!0,A.removeEventListener(b,g,f))}}}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.Utf8ToUtf32=x.StringToUtf32=x.utf32ToString=x.stringFromCodePoint=void 0,x.stringFromCodePoint=function(g){return g>65535?(g-=65536,String.fromCharCode(55296+(g>>10))+String.fromCharCode(g%1024+56320)):String.fromCharCode(g)},x.utf32ToString=function(g,f,c){f===void 0&&(f=0),c===void 0&&(c=g.length);for(var o="",r=f;r<c;++r){var i=g[r];i>65535?(i-=65536,o+=String.fromCharCode(55296+(i>>10))+String.fromCharCode(i%1024+56320)):o+=String.fromCharCode(i)}return o};var A=function(){function g(){this._interim=0}return g.prototype.clear=function(){this._interim=0},g.prototype.decode=function(f,c){var o=f.length;if(!o)return 0;var r=0,i=0;this._interim&&(56320<=(l=f.charCodeAt(i++))&&l<=57343?c[r++]=1024*(this._interim-55296)+l-56320+65536:(c[r++]=this._interim,c[r++]=l),this._interim=0);for(var n=i;n<o;++n){var e=f.charCodeAt(n);if(55296<=e&&e<=56319){if(++n>=o)return this._interim=e,r;var l;56320<=(l=f.charCodeAt(n))&&l<=57343?c[r++]=1024*(e-55296)+l-56320+65536:(c[r++]=e,c[r++]=l)}else c[r++]=e}return r},g}();x.StringToUtf32=A;var b=function(){function g(){this.interim=new Uint8Array(3)}return g.prototype.clear=function(){this.interim.fill(0)},g.prototype.decode=function(f,c){var o=f.length;if(!o)return 0;var r,i,n,e,l=0,t=0,a=0;if(this.interim[0]){var s=!1,u=this.interim[0];u&=(224&u)==192?31:(240&u)==224?15:7;for(var h=0,p=void 0;(p=63&this.interim[++h])&&h<4;)u<<=6,u|=p;for(var m=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,v=m-h;a<v;){if(a>=o)return 0;if((192&(p=f[a++]))!=128){a--,s=!0;break}this.interim[h++]=p,u<<=6,u|=63&p}s||(m===2?u<128?a--:c[l++]=u:m===3?u<2048||u>=55296&&u<=57343||(c[l++]=u):u<65536||u>1114111||(c[l++]=u)),this.interim.fill(0)}for(var y=o-4,E=a;E<o;){for(;!(!(E<y)||128&(r=f[E])||128&(i=f[E+1])||128&(n=f[E+2])||128&(e=f[E+3]));)c[l++]=r,c[l++]=i,c[l++]=n,c[l++]=e,E+=4;if((r=f[E++])<128)c[l++]=r;else if((224&r)==192){if(E>=o)return this.interim[0]=r,l;if((192&(i=f[E++]))!=128){E--;continue}if((t=(31&r)<<6|63&i)<128){E--;continue}c[l++]=t}else if((240&r)==224){if(E>=o)return this.interim[0]=r,l;if((192&(i=f[E++]))!=128){E--;continue}if(E>=o)return this.interim[0]=r,this.interim[1]=i,l;if((192&(n=f[E++]))!=128){E--;continue}if((t=(15&r)<<12|(63&i)<<6|63&n)<2048||t>=55296&&t<=57343)continue;c[l++]=t}else if((248&r)==240){if(E>=o)return this.interim[0]=r,l;if((192&(i=f[E++]))!=128){E--;continue}if(E>=o)return this.interim[0]=r,this.interim[1]=i,l;if((192&(n=f[E++]))!=128){E--;continue}if(E>=o)return this.interim[0]=r,this.interim[1]=i,this.interim[2]=n,l;if((192&(e=f[E++]))!=128){E--;continue}if((t=(7&r)<<18|(63&i)<<12|(63&n)<<6|63&e)<65536||t>1114111)continue;c[l++]=t}}return l},g}();x.Utf8ToUtf32=b},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CHAR_ATLAS_CELL_SPACING=x.DIM_OPACITY=x.INVERTED_DEFAULT_COLOR=void 0,x.INVERTED_DEFAULT_COLOR=257,x.DIM_OPACITY=.5,x.CHAR_ATLAS_CELL_SPACING=1},function(O,x,C){"use strict";var A,b,g,f;function c(r){var i=r.toString(16);return i.length<2?"0"+i:i}function o(r,i){return r<i?(i+.05)/(r+.05):(r+.05)/(i+.05)}Object.defineProperty(x,"__esModule",{value:!0}),x.contrastRatio=x.toPaddedHex=x.rgba=x.rgb=x.css=x.color=x.channels=void 0,function(r){r.toCss=function(i,n,e,l){return l!==void 0?"#"+c(i)+c(n)+c(e)+c(l):"#"+c(i)+c(n)+c(e)},r.toRgba=function(i,n,e,l){return l===void 0&&(l=255),(i<<24|n<<16|e<<8|l)>>>0}}(A=x.channels||(x.channels={})),(b=x.color||(x.color={})).blend=function(r,i){var n=(255&i.rgba)/255;if(n===1)return{css:i.css,rgba:i.rgba};var e=i.rgba>>24&255,l=i.rgba>>16&255,t=i.rgba>>8&255,a=r.rgba>>24&255,s=r.rgba>>16&255,u=r.rgba>>8&255,h=a+Math.round((e-a)*n),p=s+Math.round((l-s)*n),m=u+Math.round((t-u)*n);return{css:A.toCss(h,p,m),rgba:A.toRgba(h,p,m)}},b.isOpaque=function(r){return(255&r.rgba)==255},b.ensureContrastRatio=function(r,i,n){var e=f.ensureContrastRatio(r.rgba,i.rgba,n);if(e)return f.toColor(e>>24&255,e>>16&255,e>>8&255)},b.opaque=function(r){var i=(255|r.rgba)>>>0,n=f.toChannels(i),e=n[0],l=n[1],t=n[2];return{css:A.toCss(e,l,t),rgba:i}},b.opacity=function(r,i){var n=Math.round(255*i),e=f.toChannels(r.rgba),l=e[0],t=e[1],a=e[2];return{css:A.toCss(l,t,a,n),rgba:A.toRgba(l,t,a,n)}},(x.css||(x.css={})).toColor=function(r){switch(r.length){case 7:return{css:r,rgba:(parseInt(r.slice(1),16)<<8|255)>>>0};case 9:return{css:r,rgba:parseInt(r.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(r){function i(n,e,l){var t=n/255,a=e/255,s=l/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*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))}r.relativeLuminance=function(n){return i(n>>16&255,n>>8&255,255&n)},r.relativeLuminance2=i}(g=x.rgb||(x.rgb={})),function(r){function i(e,l,t){for(var a=e>>24&255,s=e>>16&255,u=e>>8&255,h=l>>24&255,p=l>>16&255,m=l>>8&255,v=o(g.relativeLuminance2(h,m,p),g.relativeLuminance2(a,s,u));v<t&&(h>0||p>0||m>0);)h-=Math.max(0,Math.ceil(.1*h)),p-=Math.max(0,Math.ceil(.1*p)),m-=Math.max(0,Math.ceil(.1*m)),v=o(g.relativeLuminance2(h,m,p),g.relativeLuminance2(a,s,u));return(h<<24|p<<16|m<<8|255)>>>0}function n(e,l,t){for(var a=e>>24&255,s=e>>16&255,u=e>>8&255,h=l>>24&255,p=l>>16&255,m=l>>8&255,v=o(g.relativeLuminance2(h,m,p),g.relativeLuminance2(a,s,u));v<t&&(h<255||p<255||m<255);)h=Math.min(255,h+Math.ceil(.1*(255-h))),p=Math.min(255,p+Math.ceil(.1*(255-p))),m=Math.min(255,m+Math.ceil(.1*(255-m))),v=o(g.relativeLuminance2(h,m,p),g.relativeLuminance2(a,s,u));return(h<<24|p<<16|m<<8|255)>>>0}r.ensureContrastRatio=function(e,l,t){var a=g.relativeLuminance(e>>8),s=g.relativeLuminance(l>>8);if(o(a,s)<t)return s<a?i(e,l,t):n(e,l,t)},r.reduceLuminance=i,r.increaseLuminance=n,r.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},r.toColor=function(e,l,t){return{css:A.toCss(e,l,t),rgba:A.toRgba(e,l,t)}}}(f=x.rgba||(x.rgba={})),x.toPaddedHex=c,x.contrastRatio=o},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.isLinux=x.isWindows=x.isIphone=x.isIpad=x.isMac=x.isSafari=x.isFirefox=void 0;var A=typeof navigator=="undefined",b=A?"node":navigator.userAgent,g=A?"node":navigator.platform;function f(c,o){return c.indexOf(o)>=0}x.isFirefox=!!~b.indexOf("Firefox"),x.isSafari=/^((?!chrome|android).)*safari/i.test(b),x.isMac=f(["Macintosh","MacIntel","MacPPC","Mac68K"],g),x.isIpad=g==="iPad",x.isIphone=g==="iPhone",x.isWindows=f(["Windows","Win16","Win32","WinCE"],g),x.isLinux=g.indexOf("Linux")>=0},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.C1=x.C0=void 0,function(A){A.NUL="\0",A.SOH="",A.STX="",A.ETX="",A.EOT="",A.ENQ="",A.ACK="",A.BEL="\x07",A.BS="\b",A.HT=" ",A.LF=`
`,A.VT="\v",A.FF="\f",A.CR="\r",A.SO="",A.SI="",A.DLE="",A.DC1="",A.DC2="",A.DC3="",A.DC4="",A.NAK="",A.SYN="",A.ETB="",A.CAN="",A.EM="",A.SUB="",A.ESC="",A.FS="",A.GS="",A.RS="",A.US="",A.SP=" ",A.DEL="\x7F"}(x.C0||(x.C0={})),function(A){A.PAD="\x80",A.HOP="\x81",A.BPH="\x82",A.NBH="\x83",A.IND="\x84",A.NEL="\x85",A.SSA="\x86",A.ESA="\x87",A.HTS="\x88",A.HTJ="\x89",A.VTS="\x8A",A.PLD="\x8B",A.PLU="\x8C",A.RI="\x8D",A.SS2="\x8E",A.SS3="\x8F",A.DCS="\x90",A.PU1="\x91",A.PU2="\x92",A.STS="\x93",A.CCH="\x94",A.MW="\x95",A.SPA="\x96",A.EPA="\x97",A.SOS="\x98",A.SGCI="\x99",A.SCI="\x9A",A.CSI="\x9B",A.ST="\x9C",A.OSC="\x9D",A.PM="\x9E",A.APC="\x9F"}(x.C1||(x.C1={}))},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.BaseRenderLayer=void 0;var A=C(3),b=C(9),g=C(25),f=C(6),c=C(28),o=C(10),r=C(17),i=function(){function n(e,l,t,a,s,u,h,p){this._container=e,this._alpha=a,this._colors=s,this._rendererId=u,this._bufferService=h,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-"+l+"-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,l){},n.prototype.onSelectionChanged=function(e,l,t){t===void 0&&(t=!1)},n.prototype.setColors=function(e){this._refreshCharAtlas(e)},n.prototype._setTransparency=function(e){if(e!==this._alpha){var l=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,l),this._refreshCharAtlas(this._colors),this.onGridChanged(0,this._bufferService.rows-1)}},n.prototype._refreshCharAtlas=function(e){this._scaledCharWidth<=0&&this._scaledCharHeight<=0||(this._charAtlas=g.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,l,t,a){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight)},n.prototype._fillBottomLineAtCells=function(e,l,t){t===void 0&&(t=1),this._ctx.fillRect(e*this._scaledCellWidth,(l+1)*this._scaledCellHeight-window.devicePixelRatio-1,t*this._scaledCellWidth,window.devicePixelRatio)},n.prototype._fillLeftLineAtCell=function(e,l,t){this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,window.devicePixelRatio*t,this._scaledCellHeight)},n.prototype._strokeRectAtCell=function(e,l,t,a){this._ctx.lineWidth=window.devicePixelRatio,this._ctx.strokeRect(e*this._scaledCellWidth+window.devicePixelRatio/2,l*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,l,t,a){this._alpha?this._ctx.clearRect(e*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight):(this._ctx.fillStyle=this._colors.background.css,this._ctx.fillRect(e*this._scaledCellWidth,l*this._scaledCellHeight,t*this._scaledCellWidth,a*this._scaledCellHeight))},n.prototype._fillCharTrueColor=function(e,l,t){this._ctx.font=this._getFont(!1,!1),this._ctx.textBaseline="middle",this._clipRow(t),this._ctx.fillText(e.getChars(),l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2)},n.prototype._drawChars=function(e,l,t){var a,s,u=this._getContrastColor(e);u||e.isFgRGB()||e.isBgRGB()?this._drawUncachedChars(e,l,t,u):(e.isInverse()?(a=e.isBgDefault()?b.INVERTED_DEFAULT_COLOR:e.getBgColor(),s=e.isFgDefault()?b.INVERTED_DEFAULT_COLOR:e.getFgColor()):(s=e.isBgDefault()?A.DEFAULT_COLOR:e.getBgColor(),a=e.isFgDefault()?A.DEFAULT_COLOR:e.getFgColor()),a+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&a<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||A.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||A.WHITESPACE_CELL_CODE,this._currentGlyphIdentifier.bg=s,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,l*this._scaledCellWidth+this._scaledCharLeft,t*this._scaledCellHeight+this._scaledCharTop)||this._drawUncachedChars(e,l,t))},n.prototype._drawUncachedChars=function(e,l,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=o.color.opaque(this._colors.background).css;else if(e.isBgRGB())this._ctx.fillStyle="rgb("+f.AttributeData.toColorRGB(e.getBgColor()).join(",")+")";else{var s=e.getBgColor();this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&s<8&&(s+=8),this._ctx.fillStyle=this._colors.ansi[s].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("+f.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=b.DIM_OPACITY),this._ctx.fillText(e.getChars(),l*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,l){return(l?"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 l=this._colors.contrastCache.getColor(e.bg,e.fg);if(l!==void 0)return l||void 0;var t=e.getFgColor(),a=e.getFgColorMode(),s=e.getBgColor(),u=e.getBgColorMode(),h=!!e.isInverse(),p=!!e.isInverse();if(h){var m=t;t=s,s=m;var v=a;a=u,u=v}var y=this._resolveBackgroundRgba(u,s,h),E=this._resolveForegroundRgba(a,t,h,p),T=o.rgba.ensureContrastRatio(y,E,this._optionsService.options.minimumContrastRatio);if(T){var w={css:o.channels.toCss(T>>24&255,T>>16&255,T>>8&255),rgba:T};return this._colors.contrastCache.setColor(e.bg,e.fg,w),w}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},n.prototype._resolveBackgroundRgba=function(e,l,t){switch(e){case 16777216:case 33554432:return this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return t?this._colors.foreground.rgba:this._colors.background.rgba}},n.prototype._resolveForegroundRgba=function(e,l,t,a){switch(e){case 16777216:case 33554432:return this._optionsService.options.drawBoldTextInBrightColors&&a&&l<8&&(l+=8),this._colors.ansi[l].rgba;case 50331648:return l<<8;case 0:default:return t?this._colors.background.rgba:this._colors.foreground.rgba}},n}();x.BaseRenderLayer=i},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.createDecorator=x.getServiceDependencies=x.serviceRegistry=void 0;function A(b,g,f){g.di$target===g?g.di$dependencies.push({id:b,index:f}):(g.di$dependencies=[{id:b,index:f}],g.di$target=g)}x.serviceRegistry=new Map,x.getServiceDependencies=function(b){return b.di$dependencies||[]},x.createDecorator=function(b){if(x.serviceRegistry.has(b))return x.serviceRegistry.get(b);var g=function f(c,o,r){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");A(f,c,r)};return g.toString=function(){return b},x.serviceRegistry.set(b,g),g}},function(O,x,C){"use strict";function A(b,g,f,c){if(f===void 0&&(f=0),c===void 0&&(c=b.length),f>=b.length)return b;f=(b.length+f)%b.length,c=c>=b.length?b.length:(b.length+c)%b.length;for(var o=f;o<c;++o)b[o]=g;return b}Object.defineProperty(x,"__esModule",{value:!0}),x.concat=x.fillFallback=x.fill=void 0,x.fill=function(b,g,f,c){return b.fill?b.fill(g,f,c):A(b,g,f,c)},x.fillFallback=A,x.concat=function(b,g){var f=new b.constructor(b.length+g.length);return f.set(b),f.set(g,b.length),f}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.BufferLine=x.DEFAULT_ATTR_DATA=void 0;var A=C(8),b=C(3),g=C(4),f=C(6);x.DEFAULT_ATTR_DATA=Object.freeze(new f.AttributeData);var c=function(){function o(r,i,n){n===void 0&&(n=!1),this.isWrapped=n,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*r);for(var e=i||g.CellData.fromCharData([0,b.NULL_CELL_CHAR,b.NULL_CELL_WIDTH,b.NULL_CELL_CODE]),l=0;l<r;++l)this.setCell(l,e);this.length=r}return o.prototype.get=function(r){var i=this._data[3*r+0],n=2097151&i;return[this._data[3*r+1],2097152&i?this._combined[r]:n?A.stringFromCodePoint(n):"",i>>22,2097152&i?this._combined[r].charCodeAt(this._combined[r].length-1):n]},o.prototype.set=function(r,i){this._data[3*r+1]=i[b.CHAR_DATA_ATTR_INDEX],i[b.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[r]=i[1],this._data[3*r+0]=2097152|r|i[b.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*r+0]=i[b.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|i[b.CHAR_DATA_WIDTH_INDEX]<<22},o.prototype.getWidth=function(r){return this._data[3*r+0]>>22},o.prototype.hasWidth=function(r){return 12582912&this._data[3*r+0]},o.prototype.getFg=function(r){return this._data[3*r+1]},o.prototype.getBg=function(r){return this._data[3*r+2]},o.prototype.hasContent=function(r){return 4194303&this._data[3*r+0]},o.prototype.getCodePoint=function(r){var i=this._data[3*r+0];return 2097152&i?this._combined[r].charCodeAt(this._combined[r].length-1):2097151&i},o.prototype.isCombined=function(r){return 2097152&this._data[3*r+0]},o.prototype.getString=function(r){var i=this._data[3*r+0];return 2097152&i?this._combined[r]:2097151&i?A.stringFromCodePoint(2097151&i):""},o.prototype.loadCell=function(r,i){var n=3*r;return i.content=this._data[n+0],i.fg=this._data[n+1],i.bg=this._data[n+2],2097152&i.content&&(i.combinedData=this._combined[r]),268435456&i.bg&&(i.extended=this._extendedAttrs[r]),i},o.prototype.setCell=function(r,i){2097152&i.content&&(this._combined[r]=i.combinedData),268435456&i.bg&&(this._extendedAttrs[r]=i.extended),this._data[3*r+0]=i.content,this._data[3*r+1]=i.fg,this._data[3*r+2]=i.bg},o.prototype.setCellFromCodePoint=function(r,i,n,e,l,t){268435456&l&&(this._extendedAttrs[r]=t),this._data[3*r+0]=i|n<<22,this._data[3*r+1]=e,this._data[3*r+2]=l},o.prototype.addCodepointToCell=function(r,i){var n=this._data[3*r+0];2097152&n?this._combined[r]+=A.stringFromCodePoint(i):(2097151&n?(this._combined[r]=A.stringFromCodePoint(2097151&n)+A.stringFromCodePoint(i),n&=-2097152,n|=2097152):n=i|1<<22,this._data[3*r+0]=n)},o.prototype.insertCells=function(r,i,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 f.ExtendedAttrs),i<this.length-r){for(var l=new g.CellData,t=this.length-r-i-1;t>=0;--t)this.setCell(r+i+t,this.loadCell(r+t,l));for(t=0;t<i;++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 f.ExtendedAttrs)},o.prototype.deleteCells=function(r,i,n,e){if(r%=this.length,i<this.length-r){for(var l=new g.CellData,t=0;t<this.length-r-i;++t)this.setCell(r+t,this.loadCell(r+i+t,l));for(t=this.length-i;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 f.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 f.ExtendedAttrs)},o.prototype.replaceCells=function(r,i,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 f.ExtendedAttrs),i<this.length&&this.getWidth(i-1)===2&&this.setCellFromCodePoint(i,0,1,(e==null?void 0:e.fg)||0,(e==null?void 0:e.bg)||0,(e==null?void 0:e.extended)||new f.ExtendedAttrs);r<i&&r<this.length;)this.setCell(r++,n)},o.prototype.resize=function(r,i){if(r!==this.length){if(r>this.length){var n=new Uint32Array(3*r);this.length&&(3*r<this._data.length?n.set(this._data.subarray(0,3*r)):n.set(this._data)),this._data=n;for(var e=this.length;e<r;++e)this.setCell(e,i)}else if(r){(n=new Uint32Array(3*r)).set(this._data.subarray(0,3*r)),this._data=n;var l=Object.keys(this._combined);for(e=0;e<l.length;e++){var t=parseInt(l[e],10);t>=r&&delete this._combined[t]}}else this._data=new Uint32Array(0),this._combined={};this.length=r}},o.prototype.fill=function(r){this._combined={},this._extendedAttrs={};for(var i=0;i<this.length;++i)this.setCell(i,r)},o.prototype.copyFrom=function(r){for(var i in this.length!==r.length?this._data=new Uint32Array(r._data):this._data.set(r._data),this.length=r.length,this._combined={},r._combined)this._combined[i]=r._combined[i];for(var i in this._extendedAttrs={},r._extendedAttrs)this._extendedAttrs[i]=r._extendedAttrs[i];this.isWrapped=r.isWrapped},o.prototype.clone=function(){var r=new o(0);for(var i in r._data=new Uint32Array(this._data),r.length=this.length,this._combined)r._combined[i]=this._combined[i];for(var i in this._extendedAttrs)r._extendedAttrs[i]=this._extendedAttrs[i];return r.isWrapped=this.isWrapped,r},o.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},o.prototype.copyCellsFrom=function(r,i,n,e,l){var t=r._data;if(l)for(var a=e-1;a>=0;a--)for(var s=0;s<3;s++)this._data[3*(n+a)+s]=t[3*(i+a)+s];else for(a=0;a<e;a++)for(s=0;s<3;s++)this._data[3*(n+a)+s]=t[3*(i+a)+s];var u=Object.keys(r._combined);for(s=0;s<u.length;s++){var h=parseInt(u[s],10);h>=i&&(this._combined[h-i+n]=r._combined[h])}},o.prototype.translateToString=function(r,i,n){r===void 0&&(r=!1),i===void 0&&(i=0),n===void 0&&(n=this.length),r&&(n=Math.min(n,this.getTrimmedLength()));for(var e="";i<n;){var l=this._data[3*i+0],t=2097151&l;e+=2097152&l?this._combined[i]:t?A.stringFromCodePoint(t):b.WHITESPACE_CELL_CHAR,i+=l>>22||1}return e},o}();x.BufferLine=c},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.removeElementFromParent=void 0,x.removeElementFromParent=function(){for(var A,b=[],g=0;g<arguments.length;g++)b[g]=arguments[g];for(var f=0,c=b;f<c.length;f++){var o=c[f];(A=o==null?void 0:o.parentElement)===null||A===void 0||A.removeChild(o)}}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.tooMuchOutput=x.promptLabel=void 0,x.promptLabel="Terminal input",x.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(T,w){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,_){S.__proto__=_}||function(S,_){for(var I in _)_.hasOwnProperty(I)&&(S[I]=_[I])})(T,w)},function(E,T){function w(){this.constructor=E}A(E,T),E.prototype=T===null?Object.create(T):(w.prototype=T.prototype,new w)});Object.defineProperty(x,"__esModule",{value:!0}),x.InputHandler=x.WindowsOptionsReportType=void 0;var g,f=C(12),c=C(20),o=C(39),r=C(2),i=C(15),n=C(8),e=C(16),l=C(0),t=C(3),a=C(4),s=C(6),u=C(22),h=C(24),p={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function m(E,T){if(E>24)return T.setWinLines||!1;switch(E){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(E){E[E.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",E[E.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(g=x.WindowsOptionsReportType||(x.WindowsOptionsReportType={}));var v=function(){function E(T,w,S,_){this._bufferService=T,this._coreService=w,this._logService=S,this._optionsService=_,this._data=new Uint32Array(0)}return E.prototype.hook=function(T){this._data=new Uint32Array(0)},E.prototype.put=function(T,w,S){this._data=i.concat(this._data,T.subarray(w,S))},E.prototype.unhook=function(T){if(T){var w=n.utf32ToString(this._data);switch(this._data=new Uint32Array(0),w){case'"q':return this._coreService.triggerDataEvent(f.C0.ESC+'P1$r0"q'+f.C0.ESC+"\\");case'"p':return this._coreService.triggerDataEvent(f.C0.ESC+'P1$r61;1"p'+f.C0.ESC+"\\");case"r":var S=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(f.C0.ESC+"P1$r"+S+f.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(f.C0.ESC+"P1$r0m"+f.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(f.C0.ESC+"P1$r"+_+" q"+f.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",w),this._coreService.triggerDataEvent(f.C0.ESC+"P0$r"+f.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},E}(),y=function(E){function T(w,S,_,I,L,N,R,D,F){F===void 0&&(F=new o.EscapeSequenceParser);var M=E.call(this)||this;M._bufferService=w,M._charsetService=S,M._coreService=_,M._dirtyRowService=I,M._logService=L,M._optionsService=N,M._coreMouseService=R,M._unicodeService=D,M._parser=F,M._parseBuffer=new Uint32Array(4096),M._stringDecoder=new n.StringToUtf32,M._utf8Decoder=new n.Utf8ToUtf32,M._workCell=new a.CellData,M._windowTitle="",M._iconName="",M._windowTitleStack=[],M._iconNameStack=[],M._curAttrData=e.DEFAULT_ATTR_DATA.clone(),M._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),M._onRequestBell=new l.EventEmitter,M._onRequestRefreshRows=new l.EventEmitter,M._onRequestReset=new l.EventEmitter,M._onRequestScroll=new l.EventEmitter,M._onRequestSyncScrollBar=new l.EventEmitter,M._onRequestWindowsOptionsReport=new l.EventEmitter,M._onA11yChar=new l.EventEmitter,M._onA11yTab=new l.EventEmitter,M._onCursorMove=new l.EventEmitter,M._onLineFeed=new l.EventEmitter,M._onScroll=new l.EventEmitter,M._onTitleChange=new l.EventEmitter,M.register(M._parser),M._parser.setCsiHandlerFallback(function(W,V){M._logService.debug("Unknown CSI code: ",{identifier:M._parser.identToString(W),params:V.toArray()})}),M._parser.setEscHandlerFallback(function(W){M._logService.debug("Unknown ESC code: ",{identifier:M._parser.identToString(W)})}),M._parser.setExecuteHandlerFallback(function(W){M._logService.debug("Unknown EXECUTE code: ",{code:W})}),M._parser.setOscHandlerFallback(function(W,V,z){M._logService.debug("Unknown OSC code: ",{identifier:W,action:V,data:z})}),M._parser.setDcsHandlerFallback(function(W,V,z){V==="HOOK"&&(z=z.toArray()),M._logService.debug("Unknown DCS code: ",{identifier:M._parser.identToString(W),action:V,payload:z})}),M._parser.setPrintHandler(function(W,V,z){return M.print(W,V,z)}),M._parser.setCsiHandler({final:"@"},function(W){return M.insertChars(W)}),M._parser.setCsiHandler({intermediates:" ",final:"@"},function(W){return M.scrollLeft(W)}),M._parser.setCsiHandler({final:"A"},function(W){return M.cursorUp(W)}),M._parser.setCsiHandler({intermediates:" ",final:"A"},function(W){return M.scrollRight(W)}),M._parser.setCsiHandler({final:"B"},function(W){return M.cursorDown(W)}),M._parser.setCsiHandler({final:"C"},function(W){return M.cursorForward(W)}),M._parser.setCsiHandler({final:"D"},function(W){return M.cursorBackward(W)}),M._parser.setCsiHandler({final:"E"},function(W){return M.cursorNextLine(W)}),M._parser.setCsiHandler({final:"F"},function(W){return M.cursorPrecedingLine(W)}),M._parser.setCsiHandler({final:"G"},function(W){return M.cursorCharAbsolute(W)}),M._parser.setCsiHandler({final:"H"},function(W){return M.cursorPosition(W)}),M._parser.setCsiHandler({final:"I"},function(W){return M.cursorForwardTab(W)}),M._parser.setCsiHandler({final:"J"},function(W){return M.eraseInDisplay(W)}),M._parser.setCsiHandler({prefix:"?",final:"J"},function(W){return M.eraseInDisplay(W)}),M._parser.setCsiHandler({final:"K"},function(W){return M.eraseInLine(W)}),M._parser.setCsiHandler({prefix:"?",final:"K"},function(W){return M.eraseInLine(W)}),M._parser.setCsiHandler({final:"L"},function(W){return M.insertLines(W)}),M._parser.setCsiHandler({final:"M"},function(W){return M.deleteLines(W)}),M._parser.setCsiHandler({final:"P"},function(W){return M.deleteChars(W)}),M._parser.setCsiHandler({final:"S"},function(W){return M.scrollUp(W)}),M._parser.setCsiHandler({final:"T"},function(W){return M.scrollDown(W)}),M._parser.setCsiHandler({final:"X"},function(W){return M.eraseChars(W)}),M._parser.setCsiHandler({final:"Z"},function(W){return M.cursorBackwardTab(W)}),M._parser.setCsiHandler({final:"`"},function(W){return M.charPosAbsolute(W)}),M._parser.setCsiHandler({final:"a"},function(W){return M.hPositionRelative(W)}),M._parser.setCsiHandler({final:"b"},function(W){return M.repeatPrecedingCharacter(W)}),M._parser.setCsiHandler({final:"c"},function(W){return M.sendDeviceAttributesPrimary(W)}),M._parser.setCsiHandler({prefix:">",final:"c"},function(W){return M.sendDeviceAttributesSecondary(W)}),M._parser.setCsiHandler({final:"d"},function(W){return M.linePosAbsolute(W)}),M._parser.setCsiHandler({final:"e"},function(W){return M.vPositionRelative(W)}),M._parser.setCsiHandler({final:"f"},function(W){return M.hVPosition(W)}),M._parser.setCsiHandler({final:"g"},function(W){return M.tabClear(W)}),M._parser.setCsiHandler({final:"h"},function(W){return M.setMode(W)}),M._parser.setCsiHandler({prefix:"?",final:"h"},function(W){return M.setModePrivate(W)}),M._parser.setCsiHandler({final:"l"},function(W){return M.resetMode(W)}),M._parser.setCsiHandler({prefix:"?",final:"l"},function(W){return M.resetModePrivate(W)}),M._parser.setCsiHandler({final:"m"},function(W){return M.charAttributes(W)}),M._parser.setCsiHandler({final:"n"},function(W){return M.deviceStatus(W)}),M._parser.setCsiHandler({prefix:"?",final:"n"},function(W){return M.deviceStatusPrivate(W)}),M._parser.setCsiHandler({intermediates:"!",final:"p"},function(W){return M.softReset(W)}),M._parser.setCsiHandler({intermediates:" ",final:"q"},function(W){return M.setCursorStyle(W)}),M._parser.setCsiHandler({final:"r"},function(W){return M.setScrollRegion(W)}),M._parser.setCsiHandler({final:"s"},function(W){return M.saveCursor(W)}),M._parser.setCsiHandler({final:"t"},function(W){return M.windowOptions(W)}),M._parser.setCsiHandler({final:"u"},function(W){return M.restoreCursor(W)}),M._parser.setCsiHandler({intermediates:"'",final:"}"},function(W){return M.insertColumns(W)}),M._parser.setCsiHandler({intermediates:"'",final:"~"},function(W){return M.deleteColumns(W)}),M._parser.setExecuteHandler(f.C0.BEL,function(){return M.bell()}),M._parser.setExecuteHandler(f.C0.LF,function(){return M.lineFeed()}),M._parser.setExecuteHandler(f.C0.VT,function(){return M.lineFeed()}),M._parser.setExecuteHandler(f.C0.FF,function(){return M.lineFeed()}),M._parser.setExecuteHandler(f.C0.CR,function(){return M.carriageReturn()}),M._parser.setExecuteHandler(f.C0.BS,function(){return M.backspace()}),M._parser.setExecuteHandler(f.C0.HT,function(){return M.tab()}),M._parser.setExecuteHandler(f.C0.SO,function(){return M.shiftOut()}),M._parser.setExecuteHandler(f.C0.SI,function(){return M.shiftIn()}),M._parser.setExecuteHandler(f.C1.IND,function(){return M.index()}),M._parser.setExecuteHandler(f.C1.NEL,function(){return M.nextLine()}),M._parser.setExecuteHandler(f.C1.HTS,function(){return M.tabSet()}),M._parser.setOscHandler(0,new u.OscHandler(function(W){M.setTitle(W),M.setIconName(W)})),M._parser.setOscHandler(1,new u.OscHandler(function(W){return M.setIconName(W)})),M._parser.setOscHandler(2,new u.OscHandler(function(W){return M.setTitle(W)})),M._parser.setEscHandler({final:"7"},function(){return M.saveCursor()}),M._parser.setEscHandler({final:"8"},function(){return M.restoreCursor()}),M._parser.setEscHandler({final:"D"},function(){return M.index()}),M._parser.setEscHandler({final:"E"},function(){return M.nextLine()}),M._parser.setEscHandler({final:"H"},function(){return M.tabSet()}),M._parser.setEscHandler({final:"M"},function(){return M.reverseIndex()}),M._parser.setEscHandler({final:"="},function(){return M.keypadApplicationMode()}),M._parser.setEscHandler({final:">"},function(){return M.keypadNumericMode()}),M._parser.setEscHandler({final:"c"},function(){return M.fullReset()}),M._parser.setEscHandler({final:"n"},function(){return M.setgLevel(2)}),M._parser.setEscHandler({final:"o"},function(){return M.setgLevel(3)}),M._parser.setEscHandler({final:"|"},function(){return M.setgLevel(3)}),M._parser.setEscHandler({final:"}"},function(){return M.setgLevel(2)}),M._parser.setEscHandler({final:"~"},function(){return M.setgLevel(1)}),M._parser.setEscHandler({intermediates:"%",final:"@"},function(){return M.selectDefaultCharset()}),M._parser.setEscHandler({intermediates:"%",final:"G"},function(){return M.selectDefaultCharset()});var U=function(V){B._parser.setEscHandler({intermediates:"(",final:V},function(){return M.selectCharset("("+V)}),B._parser.setEscHandler({intermediates:")",final:V},function(){return M.selectCharset(")"+V)}),B._parser.setEscHandler({intermediates:"*",final:V},function(){return M.selectCharset("*"+V)}),B._parser.setEscHandler({intermediates:"+",final:V},function(){return M.selectCharset("+"+V)}),B._parser.setEscHandler({intermediates:"-",final:V},function(){return M.selectCharset("-"+V)}),B._parser.setEscHandler({intermediates:".",final:V},function(){return M.selectCharset("."+V)}),B._parser.setEscHandler({intermediates:"/",final:V},function(){return M.selectCharset("/"+V)})},B=this;for(var j in c.CHARSETS)U(j);return M._parser.setEscHandler({intermediates:"#",final:"8"},function(){return M.screenAlignmentPattern()}),M._parser.setErrorHandler(function(W){return M._logService.error("Parsing error: ",W),W}),M._parser.setDcsHandler({intermediates:"$",final:"q"},new v(M._bufferService,M._coreService,M._logService,M._optionsService)),M}return b(T,E),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(){E.prototype.dispose.call(this)},T.prototype.parse=function(w){var S=this._bufferService.buffer,_=S.x,I=S.y;if(this._logService.debug("parsing data",w),this._parseBuffer.length<w.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(w.length,131072))),this._dirtyRowService.clearRange(),w.length>131072)for(var L=0;L<w.length;L+=131072){var N=L+131072<w.length?L+131072:w.length,R=typeof w=="string"?this._stringDecoder.decode(w.substring(L,N),this._parseBuffer):this._utf8Decoder.decode(w.subarray(L,N),this._parseBuffer);this._parser.parse(this._parseBuffer,R)}else R=typeof w=="string"?this._stringDecoder.decode(w,this._parseBuffer):this._utf8Decoder.decode(w,this._parseBuffer),this._parser.parse(this._parseBuffer,R);(S=this._bufferService.buffer).x===_&&S.y===I||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},T.prototype.print=function(w,S,_){var I,L,N=this._bufferService.buffer,R=this._charsetService.charset,D=this._optionsService.options.screenReaderMode,F=this._bufferService.cols,M=this._coreService.decPrivateModes.wraparound,U=this._coreService.modes.insertMode,B=this._curAttrData,j=N.lines.get(N.ybase+N.y);this._dirtyRowService.markDirty(N.y),N.x&&_-S>0&&j.getWidth(N.x-1)===2&&j.setCellFromCodePoint(N.x-1,0,1,B.fg,B.bg,B.extended);for(var W=S;W<_;++W){if(I=w[W],L=this._unicodeService.wcwidth(I),I<127&&R){var V=R[String.fromCharCode(I)];V&&(I=V.charCodeAt(0))}if(D&&this._onA11yChar.fire(n.stringFromCodePoint(I)),L||!N.x){if(N.x+L-1>=F){if(M){for(;N.x<F;)j.setCellFromCodePoint(N.x++,0,1,B.fg,B.bg,B.extended);N.x=0,N.y++,N.y===N.scrollBottom+1?(N.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(N.y>=this._bufferService.rows&&(N.y=this._bufferService.rows-1),N.lines.get(N.ybase+N.y).isWrapped=!0),j=N.lines.get(N.ybase+N.y)}else if(N.x=F-1,L===2)continue}if(U&&(j.insertCells(N.x,L,N.getNullCell(B),B),j.getWidth(F-1)===2&&j.setCellFromCodePoint(F-1,t.NULL_CELL_CODE,t.NULL_CELL_WIDTH,B.fg,B.bg,B.extended)),j.setCellFromCodePoint(N.x++,I,L,B.fg,B.bg,B.extended),L>0)for(;--L;)j.setCellFromCodePoint(N.x++,0,0,B.fg,B.bg,B.extended)}else j.getWidth(N.x-1)?j.addCodepointToCell(N.x-1,I):j.addCodepointToCell(N.x-2,I)}_-S>0&&(j.loadCell(N.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),N.x<F&&_-S>0&&j.getWidth(N.x)===0&&!j.hasContent(N.x)&&j.setCellFromCodePoint(N.x,0,1,B.fg,B.bg,B.extended),this._dirtyRowService.markDirty(N.y)},T.prototype.addCsiHandler=function(w,S){var _=this;return w.final!=="t"||w.prefix||w.intermediates?this._parser.addCsiHandler(w,S):this._parser.addCsiHandler(w,function(I){return!m(I.params[0],_._optionsService.options.windowOptions)||S(I)})},T.prototype.addDcsHandler=function(w,S){return this._parser.addDcsHandler(w,new h.DcsHandler(S))},T.prototype.addEscHandler=function(w,S){return this._parser.addEscHandler(w,S)},T.prototype.addOscHandler=function(w,S){return this._parser.addOscHandler(w,new u.OscHandler(S))},T.prototype.bell=function(){this._onRequestBell.fire()},T.prototype.lineFeed=function(){var w=this._bufferService.buffer;this._dirtyRowService.markDirty(w.y),this._optionsService.options.convertEol&&(w.x=0),w.y++,w.y===w.scrollBottom+1?(w.y--,this._onRequestScroll.fire(this._eraseAttrData())):w.y>=this._bufferService.rows&&(w.y=this._bufferService.rows-1),w.x>=this._bufferService.cols&&w.x--,this._dirtyRowService.markDirty(w.y),this._onLineFeed.fire()},T.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},T.prototype.backspace=function(){var w,S=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(S.x>0&&S.x--);if(this._restrictCursor(this._bufferService.cols),S.x>0)S.x--;else if(S.x===0&&S.y>S.scrollTop&&S.y<=S.scrollBottom&&((w=S.lines.get(S.ybase+S.y))===null||w===void 0?void 0:w.isWrapped)){S.lines.get(S.ybase+S.y).isWrapped=!1,S.y--,S.x=this._bufferService.cols-1;var _=S.lines.get(S.ybase+S.y);_.hasWidth(S.x)&&!_.hasContent(S.x)&&S.x--}this._restrictCursor()},T.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var w=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-w)}},T.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},T.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},T.prototype._restrictCursor=function(w){w===void 0&&(w=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(w,Math.max(0,this._bufferService.buffer.x)),this._bufferService.buffer.y=this._coreService.decPrivateModes.origin?Math.min(this._bufferService.buffer.scrollBottom,Math.max(this._bufferService.buffer.scrollTop,this._bufferService.buffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._bufferService.buffer.y)),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},T.prototype._setCursor=function(w,S){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=w,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+S):(this._bufferService.buffer.x=w,this._bufferService.buffer.y=S),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},T.prototype._moveCursor=function(w,S){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+w,this._bufferService.buffer.y+S)},T.prototype.cursorUp=function(w){var S=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;S>=0?this._moveCursor(0,-Math.min(S,w.params[0]||1)):this._moveCursor(0,-(w.params[0]||1))},T.prototype.cursorDown=function(w){var S=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;S>=0?this._moveCursor(0,Math.min(S,w.params[0]||1)):this._moveCursor(0,w.params[0]||1)},T.prototype.cursorForward=function(w){this._moveCursor(w.params[0]||1,0)},T.prototype.cursorBackward=function(w){this._moveCursor(-(w.params[0]||1),0)},T.prototype.cursorNextLine=function(w){this.cursorDown(w),this._bufferService.buffer.x=0},T.prototype.cursorPrecedingLine=function(w){this.cursorUp(w),this._bufferService.buffer.x=0},T.prototype.cursorCharAbsolute=function(w){this._setCursor((w.params[0]||1)-1,this._bufferService.buffer.y)},T.prototype.cursorPosition=function(w){this._setCursor(w.length>=2?(w.params[1]||1)-1:0,(w.params[0]||1)-1)},T.prototype.charPosAbsolute=function(w){this._setCursor((w.params[0]||1)-1,this._bufferService.buffer.y)},T.prototype.hPositionRelative=function(w){this._moveCursor(w.params[0]||1,0)},T.prototype.linePosAbsolute=function(w){this._setCursor(this._bufferService.buffer.x,(w.params[0]||1)-1)},T.prototype.vPositionRelative=function(w){this._moveCursor(0,w.params[0]||1)},T.prototype.hVPosition=function(w){this.cursorPosition(w)},T.prototype.tabClear=function(w){var S=w.params[0];S===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:S===3&&(this._bufferService.buffer.tabs={})},T.prototype.cursorForwardTab=function(w){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var S=w.params[0]||1;S--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},T.prototype.cursorBackwardTab=function(w){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var S=w.params[0]||1,_=this._bufferService.buffer;S--;)_.x=_.prevStop()},T.prototype._eraseInBufferLine=function(w,S,_,I){I===void 0&&(I=!1);var L=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+w);L.replaceCells(S,_,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),I&&(L.isWrapped=!1)},T.prototype._resetBufferLine=function(w){var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+w);S.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),S.isWrapped=!1},T.prototype.eraseInDisplay=function(w){var S;switch(this._restrictCursor(),w.params[0]){case 0:for(S=this._bufferService.buffer.y,this._dirtyRowService.markDirty(S),this._eraseInBufferLine(S++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);S<this._bufferService.rows;S++)this._resetBufferLine(S);this._dirtyRowService.markDirty(S);break;case 1:for(S=this._bufferService.buffer.y,this._dirtyRowService.markDirty(S),this._eraseInBufferLine(S,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(S+1).isWrapped=!1);S--;)this._resetBufferLine(S);this._dirtyRowService.markDirty(0);break;case 2:for(S=this._bufferService.rows,this._dirtyRowService.markDirty(S-1);S--;)this._resetBufferLine(S);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(w){switch(this._restrictCursor(),w.params[0]){case 0:this._eraseInBufferLine(this._bufferService.buffer.y,this._bufferService.buffer.x,this._bufferService.cols);break;case 1:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.buffer.x+1);break;case 2:this._eraseInBufferLine(this._bufferService.buffer.y,0,this._bufferService.cols)}this._dirtyRowService.markDirty(this._bufferService.buffer.y)},T.prototype.insertLines=function(w){this._restrictCursor();var S=w.params[0]||1,_=this._bufferService.buffer;if(!(_.y>_.scrollBottom||_.y<_.scrollTop)){for(var I=_.ybase+_.y,L=this._bufferService.rows-1-_.scrollBottom,N=this._bufferService.rows-1+_.ybase-L+1;S--;)_.lines.splice(N-1,1),_.lines.splice(I,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.y,_.scrollBottom),_.x=0}},T.prototype.deleteLines=function(w){this._restrictCursor();var S=w.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;S--;)_.lines.splice(L,1),_.lines.splice(I,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.y,_.scrollBottom),_.x=0}},T.prototype.insertChars=function(w){this._restrictCursor();var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);S&&(S.insertCells(this._bufferService.buffer.x,w.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},T.prototype.deleteChars=function(w){this._restrictCursor();var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);S&&(S.deleteCells(this._bufferService.buffer.x,w.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},T.prototype.scrollUp=function(w){for(var S=w.params[0]||1,_=this._bufferService.buffer;S--;)_.lines.splice(_.ybase+_.scrollTop,1),_.lines.splice(_.ybase+_.scrollBottom,0,_.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(_.scrollTop,_.scrollBottom)},T.prototype.scrollDown=function(w){for(var S=w.params[0]||1,_=this._bufferService.buffer;S--;)_.lines.splice(_.ybase+_.scrollBottom,1),_.lines.splice(_.ybase+_.scrollTop,0,_.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(_.scrollTop,_.scrollBottom)},T.prototype.scrollLeft=function(w){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var _=w.params[0]||1,I=S.scrollTop;I<=S.scrollBottom;++I){var L=S.lines.get(S.ybase+I);L.deleteCells(0,_,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},T.prototype.scrollRight=function(w){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var _=w.params[0]||1,I=S.scrollTop;I<=S.scrollBottom;++I){var L=S.lines.get(S.ybase+I);L.insertCells(0,_,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},T.prototype.insertColumns=function(w){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var _=w.params[0]||1,I=S.scrollTop;I<=S.scrollBottom;++I){var L=this._bufferService.buffer.lines.get(S.ybase+I);L.insertCells(S.x,_,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},T.prototype.deleteColumns=function(w){var S=this._bufferService.buffer;if(!(S.y>S.scrollBottom||S.y<S.scrollTop)){for(var _=w.params[0]||1,I=S.scrollTop;I<=S.scrollBottom;++I){var L=S.lines.get(S.ybase+I);L.deleteCells(S.x,_,S.getNullCell(this._eraseAttrData()),this._eraseAttrData()),L.isWrapped=!1}this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom)}},T.prototype.eraseChars=function(w){this._restrictCursor();var S=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);S&&(S.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(w.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},T.prototype.repeatPrecedingCharacter=function(w){if(this._parser.precedingCodepoint){for(var S=w.params[0]||1,_=new Uint32Array(S),I=0;I<S;++I)_[I]=this._parser.precedingCodepoint;this.print(_,0,_.length)}},T.prototype.sendDeviceAttributesPrimary=function(w){w.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(f.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(f.C0.ESC+"[?6c"))},T.prototype.sendDeviceAttributesSecondary=function(w){w.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(f.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(f.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(w.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(f.C0.ESC+"[>83;40003;0c"))},T.prototype._is=function(w){return(this._optionsService.options.termName+"").indexOf(w)===0},T.prototype.setMode=function(w){for(var S=0;S<w.length;S++)switch(w.params[S]){case 4:this._coreService.modes.insertMode=!0}},T.prototype.setModePrivate=function(w){for(var S=0;S<w.length;S++)switch(w.params[S]){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(w){for(var S=0;S<w.length;S++)switch(w.params[S]){case 4:this._coreService.modes.insertMode=!1}},T.prototype.resetModePrivate=function(w){for(var S=0;S<w.length;S++)switch(w.params[S]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.options.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),w.params[S]===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(w,S,_,I,L){return S===2?(w|=50331648,w&=-16777216,w|=s.AttributeData.fromColorRGB([_,I,L])):S===5&&(w&=-50331904,w|=33554432|255&_),w},T.prototype._extractColor=function(w,S,_){var I=[0,0,-1,0,0,0],L=0,N=0;do{if(I[N+L]=w.params[S+N],w.hasSubParams(S+N)){var R=w.getSubParams(S+N),D=0;do I[1]===5&&(L=1),I[N+D+1+L]=R[D];while(++D<R.length&&D+N+1+L<I.length);break}if(I[1]===5&&N+L>=2||I[1]===2&&N+L>=5)break;I[1]&&(L=1)}while(++N+S<w.length&&N+L<I.length);for(D=2;D<I.length;++D)I[D]===-1&&(I[D]=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 N},T.prototype._processUnderline=function(w,S){S.extended=S.extended.clone(),(!~w||w>5)&&(w=1),S.extended.underlineStyle=w,S.fg|=268435456,w===0&&(S.fg&=-268435457),S.updateExtended()},T.prototype.charAttributes=function(w){if(w.length===1&&w.params[0]===0)return this._curAttrData.fg=e.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=e.DEFAULT_ATTR_DATA.bg);for(var S,_=w.length,I=this._curAttrData,L=0;L<_;L++)(S=w.params[L])>=30&&S<=37?(I.fg&=-50331904,I.fg|=16777216|S-30):S>=40&&S<=47?(I.bg&=-50331904,I.bg|=16777216|S-40):S>=90&&S<=97?(I.fg&=-50331904,I.fg|=16777224|S-90):S>=100&&S<=107?(I.bg&=-50331904,I.bg|=16777224|S-100):S===0?(I.fg=e.DEFAULT_ATTR_DATA.fg,I.bg=e.DEFAULT_ATTR_DATA.bg):S===1?I.fg|=134217728:S===3?I.bg|=67108864:S===4?(I.fg|=268435456,this._processUnderline(w.hasSubParams(L)?w.getSubParams(L)[0]:1,I)):S===5?I.fg|=536870912:S===7?I.fg|=67108864:S===8?I.fg|=1073741824:S===2?I.bg|=134217728:S===21?this._processUnderline(2,I):S===22?(I.fg&=-134217729,I.bg&=-134217729):S===23?I.bg&=-67108865:S===24?I.fg&=-268435457:S===25?I.fg&=-536870913:S===27?I.fg&=-67108865:S===28?I.fg&=-1073741825:S===39?(I.fg&=-67108864,I.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):S===49?(I.bg&=-67108864,I.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):S===38||S===48||S===58?L+=this._extractColor(w,L,I):S===59?(I.extended=I.extended.clone(),I.extended.underlineColor=-1,I.updateExtended()):S===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.",S)},T.prototype.deviceStatus=function(w){switch(w.params[0]){case 5:this._coreService.triggerDataEvent(f.C0.ESC+"[0n");break;case 6:var S=this._bufferService.buffer.y+1,_=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"["+S+";"+_+"R")}},T.prototype.deviceStatusPrivate=function(w){switch(w.params[0]){case 6:var S=this._bufferService.buffer.y+1,_=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(f.C0.ESC+"[?"+S+";"+_+"R")}},T.prototype.softReset=function(w){this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._bufferService.buffer.scrollTop=0,this._bufferService.buffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=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(w){var S=w.params[0]||1;switch(S){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 _=S%2==1;this._optionsService.options.cursorBlink=_},T.prototype.setScrollRegion=function(w){var S,_=w.params[0]||1;(w.length<2||(S=w.params[1])>this._bufferService.rows||S===0)&&(S=this._bufferService.rows),S>_&&(this._bufferService.buffer.scrollTop=_-1,this._bufferService.buffer.scrollBottom=S-1,this._setCursor(0,0))},T.prototype.windowOptions=function(w){if(m(w.params[0],this._optionsService.options.windowOptions)){var S=w.length>1?w.params[1]:0;switch(w.params[0]){case 14:S!==2&&this._onRequestWindowsOptionsReport.fire(g.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(g.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(f.C0.ESC+"[8;"+this._bufferService.rows+";"+this._bufferService.cols+"t");break;case 22:S!==0&&S!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),S!==0&&S!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:S!==0&&S!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),S!==0&&S!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},T.prototype.saveCursor=function(w){this._bufferService.buffer.savedX=this._bufferService.buffer.x,this._bufferService.buffer.savedY=this._bufferService.buffer.ybase+this._bufferService.buffer.y,this._bufferService.buffer.savedCurAttrData.fg=this._curAttrData.fg,this._bufferService.buffer.savedCurAttrData.bg=this._curAttrData.bg,this._bufferService.buffer.savedCharset=this._charsetService.charset},T.prototype.restoreCursor=function(w){this._bufferService.buffer.x=this._bufferService.buffer.savedX||0,this._bufferService.buffer.y=Math.max(this._bufferService.buffer.savedY-this._bufferService.buffer.ybase,0),this._curAttrData.fg=this._bufferService.buffer.savedCurAttrData.fg,this._curAttrData.bg=this._bufferService.buffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._bufferService.buffer.savedCharset&&(this._charsetService.charset=this._bufferService.buffer.savedCharset),this._restrictCursor()},T.prototype.setTitle=function(w){this._windowTitle=w,this._onTitleChange.fire(w)},T.prototype.setIconName=function(w){this._iconName=w},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(w){w.length===2?w[0]!=="/"&&this._charsetService.setgCharset(p[w[0]],c.CHARSETS[w[1]]||c.DEFAULT_CHARSET):this.selectDefaultCharset()},T.prototype.index=function(){this._restrictCursor();var w=this._bufferService.buffer;this._bufferService.buffer.y++,w.y===w.scrollBottom+1?(w.y--,this._onRequestScroll.fire(this._eraseAttrData())):w.y>=this._bufferService.rows&&(w.y=this._bufferService.rows-1),this._restrictCursor()},T.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},T.prototype.reverseIndex=function(){this._restrictCursor();var w=this._bufferService.buffer;if(w.y===w.scrollTop){var S=w.scrollBottom-w.scrollTop;w.lines.shiftElements(w.ybase+w.y,S,1),w.lines.set(w.ybase+w.y,w.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(w.scrollTop,w.scrollBottom)}else w.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(w){this._charsetService.setgLevel(w)},T.prototype.screenAlignmentPattern=function(){var w=new a.CellData;w.content=1<<22|"E".charCodeAt(0),w.fg=this._curAttrData.fg,w.bg=this._curAttrData.bg;var S=this._bufferService.buffer;this._setCursor(0,0);for(var _=0;_<this._bufferService.rows;++_){var I=S.ybase+S.y+_,L=S.lines.get(I);L&&(L.fill(w),L.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},T}(r.Disposable);x.InputHandler=y},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.DEFAULT_CHARSET=x.CHARSETS=void 0,x.CHARSETS={},x.DEFAULT_CHARSET=x.CHARSETS.B,x.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"},x.CHARSETS.A={"#":"\xA3"},x.CHARSETS.B=void 0,x.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},x.CHARSETS.C=x.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},x.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},x.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},x.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},x.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},x.CHARSETS.E=x.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},x.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},x.CHARSETS.H=x.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},x.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.Params=void 0;var A=function(){function b(g,f){if(g===void 0&&(g=32),f===void 0&&(f=32),this.maxLength=g,this.maxSubParamsLength=f,f>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(g),this.length=0,this._subParams=new Int32Array(f),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(g),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}return b.fromArray=function(g){var f=new b;if(!g.length)return f;for(var c=g[0]instanceof Array?1:0;c<g.length;++c){var o=g[c];if(o instanceof Array)for(var r=0;r<o.length;++r)f.addSubParam(o[r]);else f.addParam(o)}return f},b.prototype.clone=function(){var g=new b(this.maxLength,this.maxSubParamsLength);return g.params.set(this.params),g.length=this.length,g._subParams.set(this._subParams),g._subParamsLength=this._subParamsLength,g._subParamsIdx.set(this._subParamsIdx),g._rejectDigits=this._rejectDigits,g._rejectSubDigits=this._rejectSubDigits,g._digitIsSub=this._digitIsSub,g},b.prototype.toArray=function(){for(var g=[],f=0;f<this.length;++f){g.push(this.params[f]);var c=this._subParamsIdx[f]>>8,o=255&this._subParamsIdx[f];o-c>0&&g.push(Array.prototype.slice.call(this._subParams,c,o))}return g},b.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},b.prototype.addParam=function(g){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(g<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=g>2147483647?2147483647:g}},b.prototype.addSubParam=function(g){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(g<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=g>2147483647?2147483647:g,this._subParamsIdx[this.length-1]++}},b.prototype.hasSubParams=function(g){return(255&this._subParamsIdx[g])-(this._subParamsIdx[g]>>8)>0},b.prototype.getSubParams=function(g){var f=this._subParamsIdx[g]>>8,c=255&this._subParamsIdx[g];return c-f>0?this._subParams.subarray(f,c):null},b.prototype.getSubParamsAll=function(){for(var g={},f=0;f<this.length;++f){var c=this._subParamsIdx[f]>>8,o=255&this._subParamsIdx[f];o-c>0&&(g[f]=this._subParams.slice(c,o))}return g},b.prototype.addDigit=function(g){var f;if(!(this._rejectDigits||!(f=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)){var c=this._digitIsSub?this._subParams:this.params,o=c[f-1];c[f-1]=~o?Math.min(10*o+g,2147483647):g}},b}();x.Params=A},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.OscHandler=x.OscParser=void 0;var A=C(23),b=C(8),g=function(){function c(){this._state=0,this._id=-1,this._handlers=Object.create(null),this._handlerFb=function(){}}return c.prototype.addHandler=function(o,r){this._handlers[o]===void 0&&(this._handlers[o]=[]);var i=this._handlers[o];return i.push(r),{dispose:function(){var e=i.indexOf(r);e!==-1&&i.splice(e,1)}}},c.prototype.setHandler=function(o,r){this._handlers[o]=[r]},c.prototype.clearHandler=function(o){this._handlers[o]&&delete this._handlers[o]},c.prototype.setHandlerFallback=function(o){this._handlerFb=o},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 o=this._handlers[this._id];if(o)for(var r=o.length-1;r>=0;r--)o[r].start();else this._handlerFb(this._id,"START")},c.prototype._put=function(o,r,i){var n=this._handlers[this._id];if(n)for(var e=n.length-1;e>=0;e--)n[e].put(o,r,i);else this._handlerFb(this._id,"PUT",b.utf32ToString(o,r,i))},c.prototype._end=function(o){var r=this._handlers[this._id];if(r){for(var i=r.length-1;i>=0&&r[i].end(o)===!1;i--);for(i--;i>=0;i--)r[i].end(!1)}else this._handlerFb(this._id,"END",o)},c.prototype.start=function(){this.reset(),this._id=-1,this._state=1},c.prototype.put=function(o,r,i){if(this._state!==3){if(this._state===1)for(;r<i;){var n=o[r++];if(n===59){this._state=2,this._start();break}if(n<48||57<n)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+n-48}this._state===2&&i-r>0&&this._put(o,r,i)}},c.prototype.end=function(o){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(o)),this._id=-1,this._state=0)},c}();x.OscParser=g;var f=function(){function c(o){this._handler=o,this._data="",this._hitLimit=!1}return c.prototype.start=function(){this._data="",this._hitLimit=!1},c.prototype.put=function(o,r,i){this._hitLimit||(this._data+=b.utf32ToString(o,r,i),this._data.length>A.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},c.prototype.end=function(o){var r;return this._hitLimit?r=!1:o&&(r=this._handler(this._data)),this._data="",this._hitLimit=!1,r},c}();x.OscHandler=f},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.PAYLOAD_LIMIT=void 0,x.PAYLOAD_LIMIT=1e7},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.DcsHandler=x.DcsParser=void 0;var A=C(8),b=C(21),g=C(23),f=[],c=function(){function r(){this._handlers=Object.create(null),this._active=f,this._ident=0,this._handlerFb=function(){}}return r.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},r.prototype.addHandler=function(i,n){this._handlers[i]===void 0&&(this._handlers[i]=[]);var e=this._handlers[i];return e.push(n),{dispose:function(){var t=e.indexOf(n);t!==-1&&e.splice(t,1)}}},r.prototype.setHandler=function(i,n){this._handlers[i]=[n]},r.prototype.clearHandler=function(i){this._handlers[i]&&delete this._handlers[i]},r.prototype.setHandlerFallback=function(i){this._handlerFb=i},r.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=f,this._ident=0},r.prototype.hook=function(i,n){if(this.reset(),this._ident=i,this._active=this._handlers[i]||f,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(i,n,e){if(this._active.length)for(var l=this._active.length-1;l>=0;l--)this._active[l].put(i,n,e);else this._handlerFb(this._ident,"PUT",A.utf32ToString(i,n,e))},r.prototype.unhook=function(i){if(this._active.length){for(var n=this._active.length-1;n>=0&&this._active[n].unhook(i)===!1;n--);for(n--;n>=0;n--)this._active[n].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",i);this._active=f,this._ident=0},r}();x.DcsParser=c;var o=function(){function r(i){this._handler=i,this._data="",this._hitLimit=!1}return r.prototype.hook=function(i){this._params=i.clone(),this._data="",this._hitLimit=!1},r.prototype.put=function(i,n,e){this._hitLimit||(this._data+=A.utf32ToString(i,n,e),this._data.length>g.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},r.prototype.unhook=function(i){var n;return this._hitLimit?n=!1:i&&(n=this._handler(this._data,this._params||new b.Params)),this._params=void 0,this._data="",this._hitLimit=!1,n},r}();x.DcsHandler=o},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.removeTerminalFromCache=x.acquireCharAtlas=void 0;var A=C(26),b=C(43),g=[];x.acquireCharAtlas=function(f,c,o,r,i){for(var n=A.generateConfig(r,i,f,o),e=0;e<g.length;e++){var l=(t=g[e]).ownedBy.indexOf(c);if(l>=0){if(A.configEquals(t.config,n))return t.atlas;t.ownedBy.length===1?(t.atlas.dispose(),g.splice(e,1)):t.ownedBy.splice(l,1);break}}for(e=0;e<g.length;e++){var t=g[e];if(A.configEquals(t.config,n))return t.ownedBy.push(c),t.atlas}var a={atlas:new b.DynamicCharAtlas(document,n),config:n,ownedBy:[c]};return g.push(a),a.atlas},x.removeTerminalFromCache=function(f){for(var c=0;c<g.length;c++){var o=g[c].ownedBy.indexOf(f);if(o!==-1){g[c].ownedBy.length===1?(g[c].atlas.dispose(),g.splice(c,1)):g[c].ownedBy.splice(o,1);break}}}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.is256Color=x.configEquals=x.generateConfig=void 0;var A=C(3);x.generateConfig=function(b,g,f,c){var o={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:b,scaledCharHeight:g,fontFamily:f.fontFamily,fontSize:f.fontSize,fontWeight:f.fontWeight,fontWeightBold:f.fontWeightBold,allowTransparency:f.allowTransparency,colors:o}},x.configEquals=function(b,g){for(var f=0;f<b.colors.ansi.length;f++)if(b.colors.ansi[f].rgba!==g.colors.ansi[f].rgba)return!1;return b.devicePixelRatio===g.devicePixelRatio&&b.fontFamily===g.fontFamily&&b.fontSize===g.fontSize&&b.fontWeight===g.fontWeight&&b.fontWeightBold===g.fontWeightBold&&b.allowTransparency===g.allowTransparency&&b.scaledCharWidth===g.scaledCharWidth&&b.scaledCharHeight===g.scaledCharHeight&&b.colors.foreground===g.colors.foreground&&b.colors.background===g.colors.background},x.is256Color=function(b){return b<A.DEFAULT_COLOR}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ColorManager=x.DEFAULT_ANSI_COLORS=void 0;var A=C(10),b=C(45),g=A.css.toColor("#ffffff"),f=A.css.toColor("#000000"),c=A.css.toColor("#ffffff"),o=A.css.toColor("#000000"),r={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};x.DEFAULT_ANSI_COLORS=function(){for(var n=[A.css.toColor("#2e3436"),A.css.toColor("#cc0000"),A.css.toColor("#4e9a06"),A.css.toColor("#c4a000"),A.css.toColor("#3465a4"),A.css.toColor("#75507b"),A.css.toColor("#06989a"),A.css.toColor("#d3d7cf"),A.css.toColor("#555753"),A.css.toColor("#ef2929"),A.css.toColor("#8ae234"),A.css.toColor("#fce94f"),A.css.toColor("#729fcf"),A.css.toColor("#ad7fa8"),A.css.toColor("#34e2e2"),A.css.toColor("#eeeeec")],e=[0,95,135,175,215,255],l=0;l<216;l++){var t=e[l/36%6|0],a=e[l/6%6|0],s=e[l%6];n.push({css:A.channels.toCss(t,a,s),rgba:A.channels.toRgba(t,a,s)})}for(l=0;l<24;l++){var u=8+10*l;n.push({css:A.channels.toCss(u,u,u),rgba:A.channels.toRgba(u,u,u)})}return n}();var i=function(){function n(e,l){this.allowTransparency=l;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 b.ColorContrastCache,this.colors={foreground:g,background:f,cursor:c,cursorAccent:o,selectionTransparent:r,selectionOpaque:A.color.blend(f,r),ansi:x.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,g),this.colors.background=this._parseColor(e.background,f),this.colors.cursor=this._parseColor(e.cursor,c,!0),this.colors.cursorAccent=this._parseColor(e.cursorAccent,o,!0),this.colors.selectionTransparent=this._parseColor(e.selection,r,!0),this.colors.selectionOpaque=A.color.blend(this.colors.background,this.colors.selectionTransparent),A.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=A.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,x.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,x.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,x.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,x.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,x.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,x.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,x.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,x.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,x.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,x.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,x.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,x.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,x.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,x.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,x.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,x.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},n.prototype._parseColor=function(e,l,t){if(t===void 0&&(t=this.allowTransparency),e===void 0)return l;if(this._ctx.fillStyle=this._litmusColor,this._ctx.fillStyle=e,typeof this._ctx.fillStyle!="string")return console.warn("Color: "+e+" is invalid using fallback "+l.css),l;this._ctx.fillRect(0,0,1,1);var 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 "+l.css+"."),l;var s=this._ctx.fillStyle.substring(5,this._ctx.fillStyle.length-1).split(",").map(function(y){return Number(y)}),u=s[0],h=s[1],p=s[2],m=s[3],v=Math.round(255*m);return{rgba:A.channels.toRgba(u,h,p,v),css:e}}return{css:this._ctx.fillStyle,rgba:A.channels.toRgba(a[0],a[1],a[2],a[3])}},n}();x.ColorManager=i},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.throwIfFalsy=void 0,x.throwIfFalsy=function(A){if(!A)throw new Error("value must not be falsy");return A}},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(n,e){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,t){l.__proto__=t}||function(l,t){for(var a in t)t.hasOwnProperty(a)&&(l[a]=t[a])})(n,e)},function(i,n){function e(){this.constructor=i}A(i,n),i.prototype=n===null?Object.create(n):(e.prototype=n.prototype,new e)});Object.defineProperty(x,"__esModule",{value:!0}),x.CharacterJoinerRegistry=x.JoinedCellData=void 0;var g=C(6),f=C(3),c=C(4),o=function(i){function n(e,l,t){var a=i.call(this)||this;return a.content=0,a.combinedData="",a.fg=e.fg,a.bg=e.bg,a.combinedData=l,a._width=t,a}return b(n,i),n.prototype.isCombined=function(){return 2097152},n.prototype.getWidth=function(){return this._width},n.prototype.getChars=function(){return this.combinedData},n.prototype.getCode=function(){return 2097151},n.prototype.setFromCharData=function(e){throw new Error("not implemented")},n.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},n}(g.AttributeData);x.JoinedCellData=o;var r=function(){function i(n){this._bufferService=n,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new c.CellData}return i.prototype.registerCharacterJoiner=function(n){var e={id:this._nextCharacterJoinerId++,handler:n};return this._characterJoiners.push(e),e.id},i.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},i.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 l=[],t=e.translateToString(!0),a=0,s=0,u=0,h=e.getFg(0),p=e.getBg(0),m=0;m<e.getTrimmedLength();m++)if(e.loadCell(m,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==h||this._workCell.bg!==p){if(m-a>1)for(var v=this._getJoinedRanges(t,u,s,e,a),y=0;y<v.length;y++)l.push(v[y]);a=m,u=s,h=this._workCell.fg,p=this._workCell.bg}s+=this._workCell.getChars().length||f.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-a>1)for(v=this._getJoinedRanges(t,u,s,e,a),y=0;y<v.length;y++)l.push(v[y]);return l},i.prototype._getJoinedRanges=function(n,e,l,t,a){for(var s=n.substring(e,l),u=this._characterJoiners[0].handler(s),h=1;h<this._characterJoiners.length;h++)for(var p=this._characterJoiners[h].handler(s),m=0;m<p.length;m++)i._mergeRanges(u,p[m]);return this._stringRangesToCellRanges(u,t,a),u},i.prototype._stringRangesToCellRanges=function(n,e,l){var t=0,a=!1,s=0,u=n[t];if(u){for(var h=l;h<this._bufferService.cols;h++){var p=e.getWidth(h),m=e.getString(h).length||f.WHITESPACE_CELL_CHAR.length;if(p!==0){if(!a&&u[0]<=s&&(u[0]=h,a=!0),u[1]<=s){if(u[1]=h,!(u=n[++t]))break;u[0]<=s?(u[0]=h,a=!0):a=!1}s+=m}}u&&(u[1]=this._bufferService.cols)}},i._mergeRanges=function(n,e){for(var l=!1,t=0;t<n.length;t++){var a=n[t];if(l){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]),l=!0)}}return l?n[n.length-1][1]=e[1]:n.push(e),n},i}();x.CharacterJoinerRegistry=r},function(O,x,C){"use strict";function A(b,g){var f=g.getBoundingClientRect();return[b.clientX-f.left,b.clientY-f.top]}Object.defineProperty(x,"__esModule",{value:!0}),x.getRawByteCoords=x.getCoords=x.getCoordsRelativeToElement=void 0,x.getCoordsRelativeToElement=A,x.getCoords=function(b,g,f,c,o,r,i,n){if(o){var e=A(b,g);if(e)return e[0]=Math.ceil((e[0]+(n?r/2:0))/r),e[1]=Math.ceil(e[1]/i),e[0]=Math.min(Math.max(e[0],1),f+(n?1:0)),e[1]=Math.min(Math.max(e[1],1),c),e}},x.getRawByteCoords=function(b){if(b)return{x:b[0]+32,y:b[1]+32}}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.RenderDebouncer=void 0;var A=function(){function b(g){this._renderCallback=g}return b.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},b.prototype.refresh=function(g,f,c){var o=this;this._rowCount=c,g=g!==void 0?g:0,f=f!==void 0?f:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,g):g,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,f):f,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){return o._innerRefresh()}))},b.prototype._innerRefresh=function(){if(this._rowStart!==void 0&&this._rowEnd!==void 0&&this._rowCount!==void 0){var g=Math.max(this._rowStart,0),f=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._animationFrame=void 0,this._renderCallback(g,f)}},b}();x.RenderDebouncer=A},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(c,o){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)i.hasOwnProperty(n)&&(r[n]=i[n])})(c,o)},function(f,c){function o(){this.constructor=f}A(f,c),f.prototype=c===null?Object.create(c):(o.prototype=c.prototype,new o)});Object.defineProperty(x,"__esModule",{value:!0}),x.ScreenDprMonitor=void 0;var g=function(f){function c(){var o=f!==null&&f.apply(this,arguments)||this;return o._currentDevicePixelRatio=window.devicePixelRatio,o}return b(c,f),c.prototype.setListener=function(o){var r=this;this._listener&&this.clearListener(),this._listener=o,this._outerListener=function(){r._listener&&(r._listener(window.devicePixelRatio,r._currentDevicePixelRatio),r._updateDpr())},this._updateDpr()},c.prototype.dispose=function(){f.prototype.dispose.call(this),this.clearListener()},c.prototype._updateDpr=function(){var o;this._outerListener&&((o=this._resolutionMediaMatchList)===null||o===void 0||o.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);x.ScreenDprMonitor=g},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.clone=void 0,x.clone=function A(b,g){if(g===void 0&&(g=5),typeof b!="object")return b;var f=Array.isArray(b)?[]:{};for(var c in b)f[c]=g<=1?b[c]:b[c]?A(b[c],g-1):b[c];return f}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.Terminal=void 0;var A=C(4),b=C(35),g=C(18),f=C(0),c=C(83),o=function(){function t(a){this._core=new b.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 l(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 i(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,s){this._verifyIntegers(a,s),this._core.resize(a,s)},t.prototype.open=function(a){this._core.open(a)},t.prototype.attachCustomKeyEventHandler=function(a){this._core.attachCustomKeyEventHandler(a)},t.prototype.registerLinkMatcher=function(a,s,u){return this._checkProposedApi(),this._core.registerLinkMatcher(a,s,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,s,u){this._verifyIntegers(a,s,u),this._core.select(a,s,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,s){this._verifyIntegers(a,s),this._core.selectLines(a,s)},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,s){this._core.write(a,s)},t.prototype.writeUtf8=function(a,s){this._core.write(a,s)},t.prototype.writeln=function(a,s){this._core.write(a),this._core.write(`\r
`,s)},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,s){this._core.optionsService.setOption(a,s)},t.prototype.refresh=function(a,s){this._verifyIntegers(a,s),this._core.refresh(a,s)},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 g},enumerable:!1,configurable:!0}),t.prototype._verifyIntegers=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];for(var u=0,h=a;u<h.length;u++){var p=h[u];if(p===1/0||isNaN(p)||p%1!=0)throw new Error("This API only accepts integers")}},t}();x.Terminal=o;var r=function(){function t(a,s){this._buffer=a,this.type=s}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 s=this._buffer.lines.get(a);if(s)return new n(s)},t.prototype.getNullCell=function(){return new A.CellData},t}(),i=function(){function t(a){var s=this;this._buffers=a,this._onBufferChange=new f.EventEmitter,this._normal=new r(this._buffers.normal,"normal"),this._alternate=new r(this._buffers.alt,"alternate"),this._buffers.onBufferActivate(function(){return s._onBufferChange.fire(s.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,s){if(!(a<0||a>=this._line.length))return s?(this._line.loadCell(a,s),s):this._line.loadCell(a,new A.CellData)},t.prototype.translateToString=function(a,s,u){return this._line.translateToString(a,s,u)},t}(),e=function(){function t(a){this._core=a}return t.prototype.registerCsiHandler=function(a,s){return this._core.addCsiHandler(a,function(u){return s(u.toArray())})},t.prototype.addCsiHandler=function(a,s){return this.registerCsiHandler(a,s)},t.prototype.registerDcsHandler=function(a,s){return this._core.addDcsHandler(a,function(u,h){return s(u,h.toArray())})},t.prototype.addDcsHandler=function(a,s){return this.registerDcsHandler(a,s)},t.prototype.registerEscHandler=function(a,s){return this._core.addEscHandler(a,s)},t.prototype.addEscHandler=function(a,s){return this.registerEscHandler(a,s)},t.prototype.registerOscHandler=function(a,s){return this._core.addOscHandler(a,s)},t.prototype.addOscHandler=function(a,s){return this.registerOscHandler(a,s)},t}(),l=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(s){this._core.unicodeService.activeVersion=s},enumerable:!1,configurable:!0}),t}()},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(M,U){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,j){B.__proto__=j}||function(B,j){for(var W in j)j.hasOwnProperty(W)&&(B[W]=j[W])})(M,U)},function(F,M){function U(){this.constructor=F}A(F,M),F.prototype=M===null?Object.create(M):(U.prototype=M.prototype,new U)});Object.defineProperty(x,"__esModule",{value:!0}),x.Terminal=void 0;var g=C(36),f=C(37),c=C(38),o=C(12),r=C(19),i=C(40),n=C(50),e=C(51),l=C(11),t=C(7),a=C(18),s=C(54),u=C(55),h=C(56),p=C(57),m=C(59),v=C(0),y=C(16),E=C(27),T=C(60),w=C(5),S=C(61),_=C(62),I=C(63),L=C(64),N=C(65),R=typeof window!="undefined"?window.document:null,D=function(F){function M(U){U===void 0&&(U={});var B=F.call(this,U)||this;return B.browser=l,B._keyDownHandled=!1,B._onCursorMove=new v.EventEmitter,B._onKey=new v.EventEmitter,B._onRender=new v.EventEmitter,B._onSelectionChange=new v.EventEmitter,B._onTitleChange=new v.EventEmitter,B._onFocus=new v.EventEmitter,B._onBlur=new v.EventEmitter,B._onA11yCharEmitter=new v.EventEmitter,B._onA11yTabEmitter=new v.EventEmitter,B._setup(),B.linkifier=B._instantiationService.createInstance(n.Linkifier),B.linkifier2=B.register(B._instantiationService.createInstance(I.Linkifier2)),B.register(B._inputHandler.onRequestBell(function(){return B.bell()})),B.register(B._inputHandler.onRequestRefreshRows(function(j,W){return B.refresh(j,W)})),B.register(B._inputHandler.onRequestReset(function(){return B.reset()})),B.register(B._inputHandler.onRequestScroll(function(j,W){return B.scroll(j,W||void 0)})),B.register(B._inputHandler.onRequestWindowsOptionsReport(function(j){return B._reportWindowsOptions(j)})),B.register(v.forwardEvent(B._inputHandler.onCursorMove,B._onCursorMove)),B.register(v.forwardEvent(B._inputHandler.onTitleChange,B._onTitleChange)),B.register(v.forwardEvent(B._inputHandler.onA11yChar,B._onA11yCharEmitter)),B.register(v.forwardEvent(B._inputHandler.onA11yTab,B._onA11yTabEmitter)),B.register(B._bufferService.onResize(function(j){return B._afterResize(j.cols,j.rows)})),B}return b(M,F),Object.defineProperty(M.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(M.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),M.prototype.dispose=function(){var U,B,j;this._isDisposed||(F.prototype.dispose.call(this),(U=this._renderService)===null||U===void 0||U.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(j=(B=this.element)===null||B===void 0?void 0:B.parentNode)===null||j===void 0||j.removeChild(this.element))},M.prototype._setup=function(){F.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(M.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),M.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},M.prototype._updateOptions=function(U){var B,j,W,V;switch(F.prototype._updateOptions.call(this,U),U){case"fontFamily":case"fontSize":(B=this._renderService)===null||B===void 0||B.clear(),(j=this._charSizeService)===null||j===void 0||j.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":(W=this.viewport)===null||W===void 0||W.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new h.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)}},M.prototype._onTextAreaFocus=function(U){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[I"),this.updateCursorStyle(U),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},M.prototype.blur=function(){var U;return(U=this.textarea)===null||U===void 0?void 0:U.blur()},M.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},M.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var U=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),B=this._bufferService.buffer.y*U,j=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=j+"px",this.textarea.style.top=B+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=U+"px",this.textarea.style.lineHeight=U+"px",this.textarea.style.zIndex="-5"}},M.prototype._initGlobal=function(){var U=this;this._bindKeys(),this.register(t.addDisposableDomListener(this.element,"copy",function(j){U.hasSelection()&&c.copyHandler(j,U._selectionService)}));var B=function(W){return c.handlePasteEvent(W,U.textarea,U._coreService)};this.register(t.addDisposableDomListener(this.textarea,"paste",B)),this.register(t.addDisposableDomListener(this.element,"paste",B)),l.isFirefox?this.register(t.addDisposableDomListener(this.element,"mousedown",function(j){j.button===2&&c.rightClickHandler(j,U.textarea,U.screenElement,U._selectionService,U.options.rightClickSelectsWord)})):this.register(t.addDisposableDomListener(this.element,"contextmenu",function(j){c.rightClickHandler(j,U.textarea,U.screenElement,U._selectionService,U.options.rightClickSelectsWord)})),l.isLinux&&this.register(t.addDisposableDomListener(this.element,"auxclick",function(j){j.button===1&&c.moveTextAreaUnderMouseCursor(j,U.textarea,U.screenElement)}))},M.prototype._bindKeys=function(){var U=this;this.register(t.addDisposableDomListener(this.textarea,"keyup",function(B){return U._keyUp(B)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keydown",function(B){return U._keyDown(B)},!0)),this.register(t.addDisposableDomListener(this.textarea,"keypress",function(B){return U._keyPress(B)},!0)),this.register(t.addDisposableDomListener(this.textarea,"compositionstart",function(){return U._compositionHelper.compositionstart()})),this.register(t.addDisposableDomListener(this.textarea,"compositionupdate",function(B){return U._compositionHelper.compositionupdate(B)})),this.register(t.addDisposableDomListener(this.textarea,"compositionend",function(){return U._compositionHelper.compositionend()})),this.register(this.onRender(function(){return U._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(B){return U._queueLinkification(B.start,B.end)}))},M.prototype.open=function(U){var B=this;if(!U)throw new Error("Terminal requires a parent element.");R.body.contains(U)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=U.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),U.appendChild(this.element);var j=R.createDocumentFragment();this._viewportElement=R.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),j.appendChild(this._viewportElement),this._viewportScrollArea=R.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=R.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=R.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),j.appendChild(this.screenElement),this.textarea=R.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 B._onTextAreaFocus(z)})),this.register(t.addDisposableDomListener(this.textarea,"blur",function(){return B._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var W=this._instantiationService.createInstance(L.CoreBrowserService,this.textarea);this._instantiationService.setService(w.ICoreBrowserService,W),this._charSizeService=this._instantiationService.createInstance(S.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(w.ICharSizeService,this._charSizeService),this._compositionView=R.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(g.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(j),this._theme=this.options.theme||this._theme,this._colorManager=new E.ColorManager(R,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(z){return B._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(w.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(z){return B._onRender.fire(z)})),this.onResize(function(z){return B._renderService.resize(z.cols,z.rows)}),this._soundService=this._instantiationService.createInstance(s.SoundService),this._instantiationService.setService(w.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(_.MouseService),this._instantiationService.setService(w.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(f.Viewport,function(z,J){return B.scrollLines(z,J)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return B.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){B._renderService.onCursorMove(),B._syncTextArea()})),this.register(this.onResize(function(){return B._renderService.onResize(B.cols,B.rows)})),this.register(this.onBlur(function(){return B._renderService.onBlur()})),this.register(this.onFocus(function(){return B._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return B.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(e.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(w.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(z){return B.scrollLines(z.amount,z.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return B._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(z){return B._renderService.onSelectionChanged(z.start,z.end,z.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(z){B.textarea.value=z,B.textarea.focus(),B.textarea.select()})),this.register(this.onScroll(function(){B.viewport.syncScrollArea(),B._selectionService.refresh()})),this.register(t.addDisposableDomListener(this._viewportElement,"scroll",function(){return B._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(u.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return B._mouseZoneManager.clearAll()})),this.linkifier.attachToDom(this.element,this._mouseZoneManager),this.linkifier2.attachToDom(this.element,this._mouseService,this._renderService),this.register(t.addDisposableDomListener(this.element,"mousedown",function(z){return B._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 h.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},M.prototype._createRenderer=function(){switch(this.options.rendererType){case"canvas":return this._instantiationService.createInstance(i.Renderer,this._colorManager.colors,this.screenElement,this.linkifier,this.linkifier2);case"dom":return this._instantiationService.createInstance(p.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},M.prototype._setTheme=function(U){var B,j,W;this._theme=U,(B=this._colorManager)===null||B===void 0||B.setTheme(U),(j=this._renderService)===null||j===void 0||j.setColors(this._colorManager.colors),(W=this.viewport)===null||W===void 0||W.onThemeChange(this._colorManager.colors)},M.prototype.bindMouse=function(){var U=this,B=this,j=this.element;function W(ae){var ve,_e,Ie=B._mouseService.getRawByteCoords(ae,B.screenElement,B.cols,B.rows);if(!Ie)return!1;switch(ae.overrideType||ae.type){case"mousemove":_e=32,ae.buttons===void 0?(ve=3,ae.button!==void 0&&(ve=ae.button<3?ae.button:3)):ve=1&ae.buttons?0:4&ae.buttons?1:2&ae.buttons?2:3;break;case"mouseup":_e=0,ve=ae.button<3?ae.button:3;break;case"mousedown":_e=1,ve=ae.button<3?ae.button:3;break;case"wheel":ae.deltaY!==0&&(_e=ae.deltaY<0?0:1),ve=4;break;default:return!1}return!(_e===void 0||ve===void 0||ve>4)&&B._coreMouseService.triggerMouseEvent({col:Ie.x-33,row:Ie.y-33,button:ve,action:_e,ctrl:ae.ctrlKey,alt:ae.altKey,shift:ae.shiftKey})}var V={mouseup:null,wheel:null,mousedrag:null,mousemove:null},z=function(ve){return W(ve),ve.buttons||(U._document.removeEventListener("mouseup",V.mouseup),V.mousedrag&&U._document.removeEventListener("mousemove",V.mousedrag)),U.cancel(ve)},J=function(ve){return W(ve),ve.preventDefault(),U.cancel(ve)},q=function(ve){ve.buttons&&W(ve)},de=function(ve){ve.buttons||W(ve)};this.register(this._coreMouseService.onProtocolChange(function(ae){ae?(U.optionsService.options.logLevel==="debug"&&U._logService.debug("Binding to mouse events:",U._coreMouseService.explainEvents(ae)),U.element.classList.add("enable-mouse-events"),U._selectionService.disable()):(U._logService.debug("Unbinding from mouse events."),U.element.classList.remove("enable-mouse-events"),U._selectionService.enable()),8&ae?V.mousemove||(j.addEventListener("mousemove",de),V.mousemove=de):(j.removeEventListener("mousemove",V.mousemove),V.mousemove=null),16&ae?V.wheel||(j.addEventListener("wheel",J,{passive:!1}),V.wheel=J):(j.removeEventListener("wheel",V.wheel),V.wheel=null),2&ae?V.mouseup||(V.mouseup=z):(U._document.removeEventListener("mouseup",V.mouseup),V.mouseup=null),4&ae?V.mousedrag||(V.mousedrag=q):(U._document.removeEventListener("mousemove",V.mousedrag),V.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(t.addDisposableDomListener(j,"mousedown",function(ae){if(ae.preventDefault(),U.focus(),U._coreMouseService.areMouseEventsActive&&!U._selectionService.shouldForceSelection(ae))return W(ae),V.mouseup&&U._document.addEventListener("mouseup",V.mouseup),V.mousedrag&&U._document.addEventListener("mousemove",V.mousedrag),U.cancel(ae)})),this.register(t.addDisposableDomListener(j,"wheel",function(ae){if(!V.wheel){if(!U.buffer.hasScrollback){var ve=U.viewport.getLinesScrolled(ae);if(ve===0)return;for(var _e=o.C0.ESC+(U._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(ae.deltaY<0?"A":"B"),Ie="",He=0;He<Math.abs(ve);He++)Ie+=_e;U._coreService.triggerDataEvent(Ie,!0)}}},{passive:!0})),this.register(t.addDisposableDomListener(j,"wheel",function(ae){if(!V.wheel)return U.viewport.onWheel(ae)?void 0:U.cancel(ae)},{passive:!1})),this.register(t.addDisposableDomListener(j,"touchstart",function(ae){if(!U._coreMouseService.areMouseEventsActive)return U.viewport.onTouchStart(ae),U.cancel(ae)},{passive:!0})),this.register(t.addDisposableDomListener(j,"touchmove",function(ae){if(!U._coreMouseService.areMouseEventsActive)return U.viewport.onTouchMove(ae)?void 0:U.cancel(ae)},{passive:!1}))},M.prototype.refresh=function(U,B){var j;(j=this._renderService)===null||j===void 0||j.refreshRows(U,B)},M.prototype._queueLinkification=function(U,B){var j;(j=this.linkifier)===null||j===void 0||j.linkifyRows(U,B)},M.prototype.updateCursorStyle=function(U){this._selectionService&&this._selectionService.shouldColumnSelect(U)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},M.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},M.prototype.scrollLines=function(U,B){F.prototype.scrollLines.call(this,U,B),this.refresh(0,this.rows-1)},M.prototype.paste=function(U){c.paste(U,this.textarea,this._coreService)},M.prototype.attachCustomKeyEventHandler=function(U){this._customKeyEventHandler=U},M.prototype.registerLinkMatcher=function(U,B,j){var W=this.linkifier.registerLinkMatcher(U,B,j);return this.refresh(0,this.rows-1),W},M.prototype.deregisterLinkMatcher=function(U){this.linkifier.deregisterLinkMatcher(U)&&this.refresh(0,this.rows-1)},M.prototype.registerLinkProvider=function(U){return this.linkifier2.registerLinkProvider(U)},M.prototype.registerCharacterJoiner=function(U){var B=this._renderService.registerCharacterJoiner(U);return this.refresh(0,this.rows-1),B},M.prototype.deregisterCharacterJoiner=function(U){this._renderService.deregisterCharacterJoiner(U)&&this.refresh(0,this.rows-1)},Object.defineProperty(M.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),M.prototype.addMarker=function(U){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+U)},M.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},M.prototype.select=function(U,B,j){this._selectionService.setSelection(U,B,j)},M.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},M.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]}},M.prototype.clearSelection=function(){var U;(U=this._selectionService)===null||U===void 0||U.clearSelection()},M.prototype.selectAll=function(){var U;(U=this._selectionService)===null||U===void 0||U.selectAll()},M.prototype.selectLines=function(U,B){var j;(j=this._selectionService)===null||j===void 0||j.selectLines(U,B)},M.prototype._keyDown=function(U){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1)return!1;if(!this._compositionHelper.keydown(U))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var B=m.evaluateKeyboardEvent(U,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(U),B.type===3||B.type===2){var j=this.rows-1;return this.scrollLines(B.type===2?-j:j),this.cancel(U,!0)}return B.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,U)||(B.cancel&&this.cancel(U,!0),!B.key||(B.key!==o.C0.ETX&&B.key!==o.C0.CR||(this.textarea.value=""),this._onKey.fire({key:B.key,domEvent:U}),this._showCursor(),this._coreService.triggerDataEvent(B.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(U,!0)))},M.prototype._isThirdLevelShift=function(U,B){var j=U.isMac&&!this.options.macOptionIsMeta&&B.altKey&&!B.ctrlKey&&!B.metaKey||U.isWindows&&B.altKey&&B.ctrlKey&&!B.metaKey;return B.type==="keypress"?j:j&&(!B.keyCode||B.keyCode>47)},M.prototype._keyUp=function(U){this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1||(function(B){return B.keyCode===16||B.keyCode===17||B.keyCode===18}(U)||this.focus(),this.updateCursorStyle(U))},M.prototype._keyPress=function(U){var B;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(U)===!1)return!1;if(this.cancel(U),U.charCode)B=U.charCode;else if(U.which===null||U.which===void 0)B=U.keyCode;else{if(U.which===0||U.charCode===0)return!1;B=U.which}return!(!B||(U.altKey||U.ctrlKey||U.metaKey)&&!this._isThirdLevelShift(this.browser,U))&&(B=String.fromCharCode(B),this._onKey.fire({key:B,domEvent:U}),this._showCursor(),this._coreService.triggerDataEvent(B,!0),!0)},M.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},M.prototype.resize=function(U,B){U!==this.cols||B!==this.rows?F.prototype.resize.call(this,U,B):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},M.prototype._afterResize=function(U,B){var j,W;(j=this._charSizeService)===null||j===void 0||j.measure(),(W=this.viewport)===null||W===void 0||W.syncScrollArea(!0)},M.prototype.clear=function(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(var U=1;U<this.rows;U++)this.buffer.lines.push(this.buffer.getBlankLine(y.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},M.prototype.reset=function(){var U,B;this.options.rows=this.rows,this.options.cols=this.cols;var j=this._customKeyEventHandler;this._setup(),F.prototype.reset.call(this),(U=this._selectionService)===null||U===void 0||U.reset(),this._customKeyEventHandler=j,this.refresh(0,this.rows-1),(B=this.viewport)===null||B===void 0||B.syncScrollArea()},M.prototype._reportWindowsOptions=function(U){if(this._renderService)switch(U){case r.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var B=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),j=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[4;"+j+";"+B+"t");break;case r.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var W=this._renderService.dimensions.scaledCellWidth.toFixed(0),V=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[6;"+V+";"+W+"t")}},M.prototype.cancel=function(U,B){if(this.options.cancelEvents||B)return U.preventDefault(),U.stopPropagation(),!1},M.prototype._visualBell=function(){return!1},M.prototype._soundBell=function(){return this.options.bellStyle==="sound"},M}(N.CoreTerminal);x.Terminal=D},function(O,x,C){"use strict";var A=this&&this.__decorate||function(o,r,i,n){var e,l=arguments.length,t=l<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,r,i,n);else for(var a=o.length-1;a>=0;a--)(e=o[a])&&(t=(l<3?e(t):l>3?e(r,i,t):e(r,i))||t);return l>3&&t&&Object.defineProperty(r,i,t),t},b=this&&this.__param||function(o,r){return function(i,n){r(i,n,o)}};Object.defineProperty(x,"__esModule",{value:!0}),x.CompositionHelper=void 0;var g=C(5),f=C(1),c=function(){function o(r,i,n,e,l,t){this._textarea=r,this._compositionView=i,this._bufferService=n,this._optionsService=e,this._charSizeService=l,this._coreService=t,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(o.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),o.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},o.prototype.compositionupdate=function(r){var i=this;this._compositionView.textContent=r.data,this.updateCompositionElements(),setTimeout(function(){i._compositionPosition.end=i._textarea.value.length},0)},o.prototype.compositionend=function(){this._finalizeComposition(!0)},o.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)},o.prototype._finalizeComposition=function(r){var i=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,r){var n={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(function(){if(i._isSendingComposition){i._isSendingComposition=!1;var l=void 0;l=i._isComposing?i._textarea.value.substring(n.start,n.end):i._textarea.value.substring(n.start),i._coreService.triggerDataEvent(l,!0)}},0)}else{this._isSendingComposition=!1;var e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}},o.prototype._handleAnyTextareaChanges=function(){var r=this,i=this._textarea.value;setTimeout(function(){if(!r._isComposing){var n=r._textarea.value.replace(i,"");n.length>0&&r._coreService.triggerDataEvent(n,!0)}},0)},o.prototype.updateCompositionElements=function(r){var i=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var n=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),e=this._bufferService.buffer.y*n,l=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=l+"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=l+"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 i.updateCompositionElements(!0)},0)}},o=A([b(2,f.IBufferService),b(3,f.IOptionsService),b(4,g.ICharSizeService),b(5,f.ICoreService)],o)}();x.CompositionHelper=c},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),g=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},f=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.Viewport=void 0;var c=C(2),o=C(7),r=C(5),i=C(1),n=function(e){function l(t,a,s,u,h,p,m){var v=e.call(this)||this;return v._scrollLines=t,v._viewportElement=a,v._scrollArea=s,v._bufferService=u,v._optionsService=h,v._charSizeService=p,v._renderService=m,v.scrollBarWidth=0,v._currentRowHeight=0,v._lastRecordedBufferLength=0,v._lastRecordedViewportHeight=0,v._lastRecordedBufferHeight=0,v._lastTouchY=0,v._lastScrollTop=0,v._wheelPartialScroll=0,v._refreshAnimationFrame=null,v._ignoreNextScrollEvent=!1,v.scrollBarWidth=v._viewportElement.offsetWidth-v._scrollArea.offsetWidth||15,v.register(o.addDisposableDomListener(v._viewportElement,"scroll",v._onScroll.bind(v))),setTimeout(function(){return v.syncScrollArea()},0),v}return b(l,e),l.prototype.onThemeChange=function(t){this._viewportElement.style.backgroundColor=t.background.css},l.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()}))},l.prototype._innerRefresh=function(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.scaledCellHeight/window.devicePixelRatio,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;var t=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.canvasHeight);this._lastRecordedBufferHeight!==t&&(this._lastRecordedBufferHeight=t,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}var a=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==a&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=a),this._refreshAnimationFrame=null},l.prototype.syncScrollArea=function(t){if(t===void 0&&(t=!1),this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(t);if(this._lastRecordedViewportHeight===this._renderService.dimensions.canvasHeight){var 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)},l.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)}},l.prototype._bubbleScroll=function(t,a){var s=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(a<0&&this._viewportElement.scrollTop!==0||a>0&&s<this._lastRecordedBufferHeight)||(t.cancelable&&t.preventDefault(),!1)},l.prototype.onWheel=function(t){var a=this._getPixelsScrolled(t);return a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(t,a))},l.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},l.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},l.prototype._applyScrollModifier=function(t,a){var s=this._optionsService.options.fastScrollModifier;return s==="alt"&&a.altKey||s==="ctrl"&&a.ctrlKey||s==="shift"&&a.shiftKey?t*this._optionsService.options.fastScrollSensitivity*this._optionsService.options.scrollSensitivity:t*this._optionsService.options.scrollSensitivity},l.prototype.onTouchStart=function(t){this._lastTouchY=t.touches[0].pageY},l.prototype.onTouchMove=function(t){var a=this._lastTouchY-t.touches[0].pageY;return this._lastTouchY=t.touches[0].pageY,a!==0&&(this._viewportElement.scrollTop+=a,this._bubbleScroll(t,a))},l=g([f(3,i.IBufferService),f(4,i.IOptionsService),f(5,r.ICharSizeService),f(6,r.IRenderService)],l)}(c.Disposable);x.Viewport=n},function(O,x,C){"use strict";function A(c){return c.replace(/\r?\n/g,"\r")}function b(c,o){return o?"[200~"+c+"[201~":c}function g(c,o,r){c=b(c=A(c),r.decPrivateModes.bracketedPasteMode),r.triggerDataEvent(c,!0),o.value=""}function f(c,o,r){var i=r.getBoundingClientRect(),n=c.clientX-i.left-10,e=c.clientY-i.top-10;o.style.width="20px",o.style.height="20px",o.style.left=n+"px",o.style.top=e+"px",o.style.zIndex="1000",o.focus()}Object.defineProperty(x,"__esModule",{value:!0}),x.rightClickHandler=x.moveTextAreaUnderMouseCursor=x.paste=x.handlePasteEvent=x.copyHandler=x.bracketTextForPaste=x.prepareTextForTerminal=void 0,x.prepareTextForTerminal=A,x.bracketTextForPaste=b,x.copyHandler=function(c,o){c.clipboardData&&c.clipboardData.setData("text/plain",o.selectionText),c.preventDefault()},x.handlePasteEvent=function(c,o,r){c.stopPropagation(),c.clipboardData&&g(c.clipboardData.getData("text/plain"),o,r)},x.paste=g,x.moveTextAreaUnderMouseCursor=f,x.rightClickHandler=function(c,o,r,i,n){f(c,o,r),n&&!i.isClickInSelection(c)&&i.selectWordAtCursor(c),o.value=i.selectionText,o.select()}},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)});Object.defineProperty(x,"__esModule",{value:!0}),x.EscapeSequenceParser=x.VT500_TRANSITION_TABLE=x.TransitionTable=void 0;var g=C(2),f=C(15),c=C(21),o=C(22),r=C(24),i=function(){function e(l){this.table=new Uint8Array(l)}return e.prototype.setDefault=function(l,t){f.fill(this.table,l<<4|t)},e.prototype.add=function(l,t,a,s){this.table[t<<8|l]=a<<4|s},e.prototype.addMany=function(l,t,a,s){for(var u=0;u<l.length;u++)this.table[t<<8|l[u]]=a<<4|s},e}();x.TransitionTable=i,x.VT500_TRANSITION_TABLE=function(){var e=new i(4095),l=Array.apply(null,Array(256)).map(function(p,m){return m}),t=function(m,v){return l.slice(m,v)},a=t(32,127),s=t(0,24);s.push(25),s.push.apply(s,t(28,32));var u,h=t(0,14);for(u in e.setDefault(1,0),e.addMany(a,0,2,0),h)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(s,0,3,0),e.addMany(s,1,3,1),e.add(127,1,0,1),e.addMany(s,8,0,8),e.addMany(s,3,3,3),e.add(127,3,0,3),e.addMany(s,4,3,4),e.add(127,4,0,4),e.addMany(s,6,3,6),e.addMany(s,5,3,5),e.add(127,5,0,5),e.addMany(s,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(s,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(s,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(s,11,0,11),e.addMany(t(32,128),11,0,11),e.addMany(t(28,32),11,0,11),e.addMany(s,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(s,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(s,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 l(t){t===void 0&&(t=x.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(s,u,h){},a._executeHandlerFb=function(s){},a._csiHandlerFb=function(s,u){},a._escHandlerFb=function(s){},a._errorHandlerFb=function(s){return s},a._printHandler=a._printHandlerFb,a._executeHandlers=Object.create(null),a._csiHandlers=Object.create(null),a._escHandlers=Object.create(null),a._oscParser=new o.OscParser,a._dcsParser=new r.DcsParser,a._errorHandler=a._errorHandlerFb,a.setEscHandler({final:"\\"},function(){}),a}return b(l,e),l.prototype._identifier=function(t,a){a===void 0&&(a=[64,126]);var s=0;if(t.prefix){if(t.prefix.length>1)throw new Error("only one byte as prefix supported");if((s=t.prefix.charCodeAt(0))&&60>s||s>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 h=t.intermediates.charCodeAt(u);if(32>h||h>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");s<<=8,s|=h}}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 s<<=8,s|=p},l.prototype.identToString=function(t){for(var a=[];t;)a.push(String.fromCharCode(255&t)),t>>=8;return a.reverse().join("")},l.prototype.dispose=function(){this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null),this._oscParser.dispose(),this._dcsParser.dispose()},l.prototype.setPrintHandler=function(t){this._printHandler=t},l.prototype.clearPrintHandler=function(){this._printHandler=this._printHandlerFb},l.prototype.addEscHandler=function(t,a){var s=this._identifier(t,[48,126]);this._escHandlers[s]===void 0&&(this._escHandlers[s]=[]);var u=this._escHandlers[s];return u.push(a),{dispose:function(){var p=u.indexOf(a);p!==-1&&u.splice(p,1)}}},l.prototype.setEscHandler=function(t,a){this._escHandlers[this._identifier(t,[48,126])]=[a]},l.prototype.clearEscHandler=function(t){this._escHandlers[this._identifier(t,[48,126])]&&delete this._escHandlers[this._identifier(t,[48,126])]},l.prototype.setEscHandlerFallback=function(t){this._escHandlerFb=t},l.prototype.setExecuteHandler=function(t,a){this._executeHandlers[t.charCodeAt(0)]=a},l.prototype.clearExecuteHandler=function(t){this._executeHandlers[t.charCodeAt(0)]&&delete this._executeHandlers[t.charCodeAt(0)]},l.prototype.setExecuteHandlerFallback=function(t){this._executeHandlerFb=t},l.prototype.addCsiHandler=function(t,a){var s=this._identifier(t);this._csiHandlers[s]===void 0&&(this._csiHandlers[s]=[]);var u=this._csiHandlers[s];return u.push(a),{dispose:function(){var p=u.indexOf(a);p!==-1&&u.splice(p,1)}}},l.prototype.setCsiHandler=function(t,a){this._csiHandlers[this._identifier(t)]=[a]},l.prototype.clearCsiHandler=function(t){this._csiHandlers[this._identifier(t)]&&delete this._csiHandlers[this._identifier(t)]},l.prototype.setCsiHandlerFallback=function(t){this._csiHandlerFb=t},l.prototype.addDcsHandler=function(t,a){return this._dcsParser.addHandler(this._identifier(t),a)},l.prototype.setDcsHandler=function(t,a){this._dcsParser.setHandler(this._identifier(t),a)},l.prototype.clearDcsHandler=function(t){this._dcsParser.clearHandler(this._identifier(t))},l.prototype.setDcsHandlerFallback=function(t){this._dcsParser.setHandlerFallback(t)},l.prototype.addOscHandler=function(t,a){return this._oscParser.addHandler(t,a)},l.prototype.setOscHandler=function(t,a){this._oscParser.setHandler(t,a)},l.prototype.clearOscHandler=function(t){this._oscParser.clearHandler(t)},l.prototype.setOscHandlerFallback=function(t){this._oscParser.setHandlerFallback(t)},l.prototype.setErrorHandler=function(t){this._errorHandler=t},l.prototype.clearErrorHandler=function(){this._errorHandler=this._errorHandlerFb},l.prototype.reset=function(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0},l.prototype.parse=function(t,a){for(var s=0,u=0,h=this.currentState,p=this._oscParser,m=this._dcsParser,v=this._collect,y=this._params,E=this._transitions.table,T=0;T<a;++T){switch((u=E[h<<8|((s=t[T])<160?s:160)])>>4){case 2:for(var w=T+1;;++w){if(w>=a||(s=t[w])<32||s>126&&s<160){this._printHandler(t,T,w),T=w-1;break}if(++w>=a||(s=t[w])<32||s>126&&s<160){this._printHandler(t,T,w),T=w-1;break}if(++w>=a||(s=t[w])<32||s>126&&s<160){this._printHandler(t,T,w),T=w-1;break}if(++w>=a||(s=t[w])<32||s>126&&s<160){this._printHandler(t,T,w),T=w-1;break}}break;case 3:this._executeHandlers[s]?this._executeHandlers[s]():this._executeHandlerFb(s),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:T,code:s,currentState:h,collect:v,params:y,abort:!1}).abort)return;break;case 7:for(var S=this._csiHandlers[v<<8|s],_=S?S.length-1:-1;_>=0&&S[_](y)===!1;_--);_<0&&this._csiHandlerFb(v<<8|s,y),this.precedingCodepoint=0;break;case 8:do switch(s){case 59:y.addParam(0);break;case 58:y.addSubParam(-1);break;default:y.addDigit(s-48)}while(++T<a&&(s=t[T])>47&&s<60);T--;break;case 9:v<<=8,v|=s;break;case 10:for(var I=this._escHandlers[v<<8|s],L=I?I.length-1:-1;L>=0&&I[L]()===!1;L--);L<0&&this._escHandlerFb(v<<8|s),this.precedingCodepoint=0;break;case 11:y.reset(),y.addParam(0),v=0;break;case 12:m.hook(v<<8|s,y);break;case 13:for(var N=T+1;;++N)if(N>=a||(s=t[N])===24||s===26||s===27||s>127&&s<160){m.put(t,T,N),T=N-1;break}break;case 14:m.unhook(s!==24&&s!==26),s===27&&(u|=1),y.reset(),y.addParam(0),v=0,this.precedingCodepoint=0;break;case 4:p.start();break;case 5:for(var R=T+1;;R++)if(R>=a||(s=t[R])<32||s>127&&s<=159){p.put(t,T,R),T=R-1;break}break;case 6:p.end(s!==24&&s!==26),s===27&&(u|=1),y.reset(),y.addParam(0),v=0,this.precedingCodepoint=0}h=15&u}this._collect=v,this.currentState=h},l}(g.Disposable);x.EscapeSequenceParser=n},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(m,v){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var T in E)E.hasOwnProperty(T)&&(y[T]=E[T])})(m,v)},function(p,m){function v(){this.constructor=p}A(p,m),p.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}),g=this&&this.__decorate||function(p,m,v,y){var E,T=arguments.length,w=T<3?m:y===null?y=Object.getOwnPropertyDescriptor(m,v):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(p,m,v,y);else for(var S=p.length-1;S>=0;S--)(E=p[S])&&(w=(T<3?E(w):T>3?E(m,v,w):E(m,v))||w);return T>3&&w&&Object.defineProperty(m,v,w),w},f=this&&this.__param||function(p,m){return function(v,y){m(v,y,p)}};Object.defineProperty(x,"__esModule",{value:!0}),x.Renderer=void 0;var c=C(41),o=C(47),r=C(48),i=C(49),n=C(29),e=C(2),l=C(5),t=C(1),a=C(25),s=C(0),u=1,h=function(p){function m(v,y,E,T,w,S,_,I,L){var N=p.call(this)||this;N._colors=v,N._screenElement=y,N._bufferService=w,N._charSizeService=S,N._optionsService=_,N._id=u++,N._onRequestRedraw=new s.EventEmitter;var R=N._optionsService.options.allowTransparency;return N._characterJoinerRegistry=new n.CharacterJoinerRegistry(N._bufferService),N._renderLayers=[new c.TextRenderLayer(N._screenElement,0,N._colors,N._characterJoinerRegistry,R,N._id,N._bufferService,_),new o.SelectionRenderLayer(N._screenElement,1,N._colors,N._id,N._bufferService,_),new i.LinkRenderLayer(N._screenElement,2,N._colors,N._id,E,T,N._bufferService,_),new r.CursorRenderLayer(N._screenElement,3,N._colors,N._id,N._onRequestRedraw,N._bufferService,_,I,L)],N.dimensions={scaledCharWidth:0,scaledCharHeight:0,scaledCellWidth:0,scaledCellHeight:0,scaledCharLeft:0,scaledCharTop:0,scaledCanvasWidth:0,scaledCanvasHeight:0,canvasWidth:0,canvasHeight:0,actualCellWidth:0,actualCellHeight:0},N._devicePixelRatio=window.devicePixelRatio,N._updateDimensions(),N.onOptionsChanged(),N}return b(m,p),Object.defineProperty(m.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),m.prototype.dispose=function(){for(var v=0,y=this._renderLayers;v<y.length;v++)y[v].dispose();p.prototype.dispose.call(this),a.removeTerminalFromCache(this._id)},m.prototype.onDevicePixelRatioChange=function(){this._devicePixelRatio!==window.devicePixelRatio&&(this._devicePixelRatio=window.devicePixelRatio,this.onResize(this._bufferService.cols,this._bufferService.rows))},m.prototype.setColors=function(v){this._colors=v;for(var y=0,E=this._renderLayers;y<E.length;y++){var T=E[y];T.setColors(this._colors),T.reset()}},m.prototype.onResize=function(v,y){this._updateDimensions();for(var E=0,T=this._renderLayers;E<T.length;E++)T[E].resize(this.dimensions);this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},m.prototype.onCharSizeChanged=function(){this.onResize(this._bufferService.cols,this._bufferService.rows)},m.prototype.onBlur=function(){this._runOperation(function(v){return v.onBlur()})},m.prototype.onFocus=function(){this._runOperation(function(v){return v.onFocus()})},m.prototype.onSelectionChanged=function(v,y,E){E===void 0&&(E=!1),this._runOperation(function(T){return T.onSelectionChanged(v,y,E)})},m.prototype.onCursorMove=function(){this._runOperation(function(v){return v.onCursorMove()})},m.prototype.onOptionsChanged=function(){this._runOperation(function(v){return v.onOptionsChanged()})},m.prototype.clear=function(){this._runOperation(function(v){return v.reset()})},m.prototype._runOperation=function(v){for(var y=0,E=this._renderLayers;y<E.length;y++)v(E[y])},m.prototype.renderRows=function(v,y){for(var E=0,T=this._renderLayers;E<T.length;E++)T[E].onGridChanged(v,y)},m.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)},m.prototype.registerCharacterJoiner=function(v){return this._characterJoinerRegistry.registerCharacterJoiner(v)},m.prototype.deregisterCharacterJoiner=function(v){return this._characterJoinerRegistry.deregisterCharacterJoiner(v)},m=g([f(4,t.IBufferService),f(5,l.ICharSizeService),f(6,t.IOptionsService),f(7,t.ICoreService),f(8,l.ICoreBrowserService)],m)}(e.Disposable);x.Renderer=h},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)});Object.defineProperty(x,"__esModule",{value:!0}),x.TextRenderLayer=void 0;var g=C(42),f=C(13),c=C(6),o=C(3),r=C(29),i=C(4),n=function(e){function l(t,a,s,u,h,p,m,v){var y=e.call(this,t,"text",a,h,s,p,m,v)||this;return y._characterWidth=0,y._characterFont="",y._characterOverlapCache={},y._workCell=new i.CellData,y._state=new g.GridCache,y._characterJoinerRegistry=u,y}return b(l,e),l.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)},l.prototype.reset=function(){this._state.clear(),this._clearAll()},l.prototype._forEachCell=function(t,a,s,u){for(var h=t;h<=a;h++)for(var p=h+this._bufferService.buffer.ydisp,m=this._bufferService.buffer.lines.get(p),v=s?s.getJoinedCharacters(p):[],y=0;y<this._bufferService.cols;y++){m.loadCell(y,this._workCell);var E=this._workCell,T=!1,w=y;if(E.getWidth()!==0){if(v.length>0&&y===v[0][0]){T=!0;var S=v.shift();E=new r.JoinedCellData(this._workCell,m.translateToString(!0,S[0],S[1]),S[1]-S[0]),w=S[1]-1}!T&&this._isOverlapping(E)&&w<m.length-1&&m.getCodePoint(w+1)===o.NULL_CELL_CODE&&(E.content&=-12582913,E.content|=2<<22),u(E,y,h),y=w}}},l.prototype._drawBackground=function(t,a){var s=this,u=this._ctx,h=this._bufferService.cols,p=0,m=0,v=null;u.save(),this._forEachCell(t,a,null,function(y,E,T){var w=null;y.isInverse()?w=y.isFgDefault()?s._colors.foreground.css:y.isFgRGB()?"rgb("+c.AttributeData.toColorRGB(y.getFgColor()).join(",")+")":s._colors.ansi[y.getFgColor()].css:y.isBgRGB()?w="rgb("+c.AttributeData.toColorRGB(y.getBgColor()).join(",")+")":y.isBgPalette()&&(w=s._colors.ansi[y.getBgColor()].css),v===null&&(p=E,m=T),T!==m?(u.fillStyle=v||"",s._fillCells(p,m,h-p,1),p=E,m=T):v!==w&&(u.fillStyle=v||"",s._fillCells(p,m,E-p,1),p=E,m=T),v=w}),v!==null&&(u.fillStyle=v,this._fillCells(p,m,h-p,1)),u.restore()},l.prototype._drawForeground=function(t,a){var s=this;this._forEachCell(t,a,this._characterJoinerRegistry,function(u,h,p){if(!u.isInvisible()&&(s._drawChars(u,h,p),u.isUnderline())){if(s._ctx.save(),u.isInverse())if(u.isBgDefault())s._ctx.fillStyle=s._colors.background.css;else if(u.isBgRGB())s._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(u.getBgColor()).join(",")+")";else{var m=u.getBgColor();s._optionsService.options.drawBoldTextInBrightColors&&u.isBold()&&m<8&&(m+=8),s._ctx.fillStyle=s._colors.ansi[m].css}else if(u.isFgDefault())s._ctx.fillStyle=s._colors.foreground.css;else if(u.isFgRGB())s._ctx.fillStyle="rgb("+c.AttributeData.toColorRGB(u.getFgColor()).join(",")+")";else{var v=u.getFgColor();s._optionsService.options.drawBoldTextInBrightColors&&u.isBold()&&v<8&&(v+=8),s._ctx.fillStyle=s._colors.ansi[v].css}s._fillBottomLineAtCells(h,p,u.getWidth()),s._ctx.restore()}})},l.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))},l.prototype.onOptionsChanged=function(){this._setTransparency(this._optionsService.options.allowTransparency)},l.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 s=Math.floor(this._ctx.measureText(a).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[a]=s,s},l}(f.BaseRenderLayer);x.TextRenderLayer=n},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.GridCache=void 0;var A=function(){function b(){this.cache=[]}return b.prototype.resize=function(g,f){for(var c=0;c<g;c++){this.cache.length<=c&&this.cache.push([]);for(var o=this.cache[c].length;o<f;o++)this.cache[c].push(void 0);this.cache[c].length=f}this.cache.length=g},b.prototype.clear=function(){for(var g=0;g<this.cache.length;g++)for(var f=0;f<this.cache[g].length;f++)this.cache[g][f]=void 0},b}();x.GridCache=A},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(u,h){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var v in m)m.hasOwnProperty(v)&&(p[v]=m[v])})(u,h)},function(s,u){function h(){this.constructor=s}A(s,u),s.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)});Object.defineProperty(x,"__esModule",{value:!0}),x.NoneCharAtlas=x.DynamicCharAtlas=x.getGlyphCacheKey=void 0;var g=C(9),f=C(44),c=C(27),o=C(46),r=C(11),i=C(28),n=C(10),e={css:"rgba(0, 0, 0, 0)",rgba:0};function l(s){return s.code<<21|s.bg<<12|s.fg<<3|(s.bold?0:4)+(s.dim?0:2)+(s.italic?0:1)}x.getGlyphCacheKey=l;var t=function(s){function u(h,p){var m=s.call(this)||this;m._config=p,m._drawToCacheCount=0,m._glyphsWaitingOnBitmap=[],m._bitmapCommitTimeout=null,m._bitmap=null,m._cacheCanvas=h.createElement("canvas"),m._cacheCanvas.width=1024,m._cacheCanvas.height=1024,m._cacheCtx=i.throwIfFalsy(m._cacheCanvas.getContext("2d",{alpha:!0}));var v=h.createElement("canvas");v.width=m._config.scaledCharWidth,v.height=m._config.scaledCharHeight,m._tmpCtx=i.throwIfFalsy(v.getContext("2d",{alpha:m._config.allowTransparency})),m._width=Math.floor(1024/m._config.scaledCharWidth),m._height=Math.floor(1024/m._config.scaledCharHeight);var y=m._width*m._height;return m._cacheMap=new o.LRUMap(y),m._cacheMap.prealloc(y),m}return b(u,s),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(h,p,m,v){if(p.code===32)return!0;if(!this._canCache(p))return!1;var y=l(p),E=this._cacheMap.get(y);if(E!=null)return this._drawFromCache(h,E,m,v),!0;if(this._drawToCacheCount<100){var T=void 0;T=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var w=this._drawToCache(p,T);return this._cacheMap.set(y,w),this._drawFromCache(h,w,m,v),!0}return!1},u.prototype._canCache=function(h){return h.code<256},u.prototype._toCoordinateX=function(h){return h%this._width*this._config.scaledCharWidth},u.prototype._toCoordinateY=function(h){return Math.floor(h/this._width)*this._config.scaledCharHeight},u.prototype._drawFromCache=function(h,p,m,v){if(!p.isEmpty){var y=this._toCoordinateX(p.index),E=this._toCoordinateY(p.index);h.drawImage(p.inBitmap?this._bitmap:this._cacheCanvas,y,E,this._config.scaledCharWidth,this._config.scaledCharHeight,m,v,this._config.scaledCharWidth,this._config.scaledCharHeight)}},u.prototype._getColorFromAnsiIndex=function(h){return h<this._config.colors.ansi.length?this._config.colors.ansi[h]:c.DEFAULT_ANSI_COLORS[h]},u.prototype._getBackgroundColor=function(h){return this._config.allowTransparency?e:h.bg===g.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:h.bg<256?this._getColorFromAnsiIndex(h.bg):this._config.colors.background},u.prototype._getForegroundColor=function(h){return h.fg===g.INVERTED_DEFAULT_COLOR?n.color.opaque(this._config.colors.background):h.fg<256?this._getColorFromAnsiIndex(h.fg):this._config.colors.foreground},u.prototype._drawToCache=function(h,p){this._drawToCacheCount++,this._tmpCtx.save();var m=this._getBackgroundColor(h);this._tmpCtx.globalCompositeOperation="copy",this._tmpCtx.fillStyle=m.css,this._tmpCtx.fillRect(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),this._tmpCtx.globalCompositeOperation="source-over";var v=h.bold?this._config.fontWeightBold:this._config.fontWeight,y=h.italic?"italic":"";this._tmpCtx.font=y+" "+v+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(h).css,h.dim&&(this._tmpCtx.globalAlpha=g.DIM_OPACITY),this._tmpCtx.fillText(h.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var E=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),T=!1;this._config.allowTransparency||(T=function(I,L){for(var N=!0,R=L.rgba>>>24,D=L.rgba>>>16&255,F=L.rgba>>>8&255,M=0;M<I.data.length;M+=4)I.data[M]===R&&I.data[M+1]===D&&I.data[M+2]===F?I.data[M+3]=0:N=!1;return N}(E,m));var w=this._toCoordinateX(p),S=this._toCoordinateY(p);this._cacheCtx.putImageData(E,w,S);var _={index:p,isEmpty:T,inBitmap:!1};return this._addGlyphToBitmap(_),_},u.prototype._addGlyphToBitmap=function(h){var p=this;!("createImageBitmap"in window)||r.isFirefox||r.isSafari||(this._glyphsWaitingOnBitmap.push(h),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return p._generateBitmap()},100)))},u.prototype._generateBitmap=function(){var h=this,p=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(m){h._bitmap=m;for(var v=0;v<p.length;v++)p[v].inBitmap=!0}),this._bitmapCommitTimeout=null},u}(f.BaseCharAtlas);x.DynamicCharAtlas=t;var a=function(s){function u(h,p){return s.call(this)||this}return b(u,s),u.prototype.draw=function(h,p,m,v){return!1},u}(f.BaseCharAtlas);x.NoneCharAtlas=a},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.BaseCharAtlas=void 0;var A=function(){function b(){this._didWarmUp=!1}return b.prototype.dispose=function(){},b.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},b.prototype._doWarmUp=function(){},b.prototype.beginFrame=function(){},b}();x.BaseCharAtlas=A},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.ColorContrastCache=void 0;var A=function(){function b(){this._color={},this._rgba={}}return b.prototype.clear=function(){this._color={},this._rgba={}},b.prototype.setCss=function(g,f,c){this._rgba[g]||(this._rgba[g]={}),this._rgba[g][f]=c},b.prototype.getCss=function(g,f){return this._rgba[g]?this._rgba[g][f]:void 0},b.prototype.setColor=function(g,f,c){this._color[g]||(this._color[g]={}),this._color[g][f]=c},b.prototype.getColor=function(g,f){return this._color[g]?this._color[g][f]:void 0},b}();x.ColorContrastCache=A},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.LRUMap=void 0;var A=function(){function b(g){this.capacity=g,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return b.prototype._unlinkNode=function(g){var f=g.prev,c=g.next;g===this._head&&(this._head=c),g===this._tail&&(this._tail=f),f!==null&&(f.next=c),c!==null&&(c.prev=f)},b.prototype._appendNode=function(g){var f=this._tail;f!==null&&(f.next=g),g.prev=f,g.next=null,this._tail=g,this._head===null&&(this._head=g)},b.prototype.prealloc=function(g){for(var f=this._nodePool,c=0;c<g;c++)f.push({prev:null,next:null,key:null,value:null})},b.prototype.get=function(g){var f=this._map[g];return f!==void 0?(this._unlinkNode(f),this._appendNode(f),f.value):null},b.prototype.peekValue=function(g){var f=this._map[g];return f!==void 0?f.value:null},b.prototype.peek=function(){var g=this._head;return g===null?null:g.value},b.prototype.set=function(g,f){var c=this._map[g];if(c!==void 0)c=this._map[g],this._unlinkNode(c),c.value=f;else if(this.size>=this.capacity)c=this._head,this._unlinkNode(c),delete this._map[c.key],c.key=g,c.value=f,this._map[g]=c;else{var o=this._nodePool;o.length>0?((c=o.pop()).key=g,c.value=f):c={prev:null,next:null,key:g,value:f},this._map[g]=c,this.size++}this._appendNode(c)},b}();x.LRUMap=A},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(c,o){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)i.hasOwnProperty(n)&&(r[n]=i[n])})(c,o)},function(f,c){function o(){this.constructor=f}A(f,c),f.prototype=c===null?Object.create(c):(o.prototype=c.prototype,new o)});Object.defineProperty(x,"__esModule",{value:!0}),x.SelectionRenderLayer=void 0;var g=function(f){function c(o,r,i,n,e,l){var t=f.call(this,o,"selection",r,!0,i,n,e,l)||this;return t._clearState(),t}return b(c,f),c.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},c.prototype.resize=function(o){f.prototype.resize.call(this,o),this._clearState()},c.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},c.prototype.onSelectionChanged=function(o,r,i){if(this._didStateChange(o,r,i,this._bufferService.buffer.ydisp))if(this._clearAll(),o&&r){var n=o[1]-this._bufferService.buffer.ydisp,e=r[1]-this._bufferService.buffer.ydisp,l=Math.max(n,0),t=Math.min(e,this._bufferService.rows-1);if(!(l>=this._bufferService.rows||t<0)){if(this._ctx.fillStyle=this._colors.selectionTransparent.css,i){var a=o[0],s=r[0]-a,u=t-l+1;this._fillCells(a,l,s,u)}else{a=n===l?o[0]:0;var h=l===t?r[0]:this._bufferService.cols;this._fillCells(a,l,h-a,1);var p=Math.max(t-l-1,0);if(this._fillCells(0,l+1,this._bufferService.cols,p),l!==t){var m=e===t?r[0]:this._bufferService.cols;this._fillCells(0,t,m,1)}}this._state.start=[o[0],o[1]],this._state.end=[r[0],r[1]],this._state.columnSelectMode=i,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},c.prototype._didStateChange=function(o,r,i,n){return!this._areCoordinatesEqual(o,this._state.start)||!this._areCoordinatesEqual(r,this._state.end)||i!==this._state.columnSelectMode||n!==this._state.ydisp},c.prototype._areCoordinatesEqual=function(o,r){return!(!o||!r)&&o[0]===r[0]&&o[1]===r[1]},c}(C(13).BaseRenderLayer);x.SelectionRenderLayer=g},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(i,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var t in l)l.hasOwnProperty(t)&&(e[t]=l[t])})(i,n)},function(r,i){function n(){this.constructor=r}A(r,i),r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(x,"__esModule",{value:!0}),x.CursorRenderLayer=void 0;var g=C(13),f=C(4),c=function(r){function i(n,e,l,t,a,s,u,h,p){var m=r.call(this,n,"cursor",e,!0,l,t,s,u)||this;return m._onRequestRedraw=a,m._coreService=h,m._coreBrowserService=p,m._cell=new f.CellData,m._state={x:0,y:0,isFocused:!1,style:"",width:0},m._cursorRenderers={bar:m._renderBarCursor.bind(m),block:m._renderBlockCursor.bind(m),underline:m._renderUnderlineCursor.bind(m)},m}return b(i,r),i.prototype.resize=function(n){r.prototype.resize.call(this,n),this._state={x:0,y:0,isFocused:!1,style:"",width:0}},i.prototype.reset=function(){this._clearCursor(),this._cursorBlinkStateManager&&(this._cursorBlinkStateManager.dispose(),this._cursorBlinkStateManager=void 0,this.onOptionsChanged())},i.prototype.onBlur=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onFocus=function(){this._cursorBlinkStateManager?this._cursorBlinkStateManager.resume():this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})},i.prototype.onOptionsChanged=function(){var n,e=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new o(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})},i.prototype.onCursorMove=function(){this._cursorBlinkStateManager&&this._cursorBlinkStateManager.restartBlinkAnimation()},i.prototype.onGridChanged=function(n,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},i.prototype._render=function(n){if(this._coreService.isCursorInitialized&&!this._coreService.isCursorHidden){var e=this._bufferService.buffer.ybase+this._bufferService.buffer.y,l=e-this._bufferService.buffer.ydisp;if(l<0||l>=this._bufferService.rows)this._clearCursor();else{var 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,l,this._cell):this._renderBlurCursor(t,l,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=l,this._state.isFocused=!1,this._state.style=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===l&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.options.cursorStyle||"block"](t,l,this._cell),this._ctx.restore(),this._state.x=t,this._state.y=l,this._state.isFocused=!1,this._state.style=this._optionsService.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}}else this._clearCursor()},i.prototype._clearCursor=function(){this._state&&(this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})},i.prototype._renderBarCursor=function(n,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(n,e,this._optionsService.options.cursorWidth),this._ctx.restore()},i.prototype._renderBlockCursor=function(n,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(n,e,l.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(l,n,e),this._ctx.restore()},i.prototype._renderUnderlineCursor=function(n,e,l){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(n,e),this._ctx.restore()},i.prototype._renderBlurCursor=function(n,e,l){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(n,e,l.getWidth(),1),this._ctx.restore()},i}(g.BaseRenderLayer);x.CursorRenderLayer=c;var o=function(){function r(i,n){this._renderCallback=n,this.isCursorVisible=!0,i&&this._restartInterval()}return Object.defineProperty(r.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),r.prototype.dispose=function(){this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},r.prototype.restartBlinkAnimation=function(){var i=this;this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=window.requestAnimationFrame(function(){i._renderCallback(),i._animationFrame=void 0})))},r.prototype._restartInterval=function(i){var n=this;i===void 0&&(i=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(n._animationTimeRestarted){var 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 l=600-(Date.now()-n._animationTimeRestarted);return n._animationTimeRestarted=void 0,void n._restartInterval(l)}n.isCursorVisible=!n.isCursorVisible,n._animationFrame=window.requestAnimationFrame(function(){n._renderCallback(),n._animationFrame=void 0})},600)},i)},r.prototype.pause=function(){this.isCursorVisible=!0,this._blinkInterval&&(window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},r.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},r}()},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(i,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,l){e.__proto__=l}||function(e,l){for(var t in l)l.hasOwnProperty(t)&&(e[t]=l[t])})(i,n)},function(r,i){function n(){this.constructor=r}A(r,i),r.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)});Object.defineProperty(x,"__esModule",{value:!0}),x.LinkRenderLayer=void 0;var g=C(13),f=C(9),c=C(26),o=function(r){function i(n,e,l,t,a,s,u,h){var p=r.call(this,n,"link",e,!0,l,t,u,h)||this;return a.onShowLinkUnderline(function(m){return p._onShowLinkUnderline(m)}),a.onHideLinkUnderline(function(m){return p._onHideLinkUnderline(m)}),s.onShowLinkUnderline(function(m){return p._onShowLinkUnderline(m)}),s.onHideLinkUnderline(function(m){return p._onHideLinkUnderline(m)}),p}return b(i,r),i.prototype.resize=function(n){r.prototype.resize.call(this,n),this._state=void 0},i.prototype.reset=function(){this._clearCurrentLink()},i.prototype._clearCurrentLink=function(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);var n=this._state.y2-this._state.y1-1;n>0&&this._clearCells(0,this._state.y1+1,this._state.cols,n),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},i.prototype._onShowLinkUnderline=function(n){if(n.fg===f.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},i.prototype._onHideLinkUnderline=function(n){this._clearCurrentLink()},i}(g.BaseRenderLayer);x.LinkRenderLayer=o},function(O,x,C){"use strict";var A=this&&this.__decorate||function(r,i,n,e){var l,t=arguments.length,a=t<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,n):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,i,n,e);else for(var s=r.length-1;s>=0;s--)(l=r[s])&&(a=(t<3?l(a):t>3?l(i,n,a):l(i,n))||a);return t>3&&a&&Object.defineProperty(i,n,a),a},b=this&&this.__param||function(r,i){return function(n,e){i(n,e,r)}};Object.defineProperty(x,"__esModule",{value:!0}),x.MouseZone=x.Linkifier=void 0;var g=C(0),f=C(1),c=function(){function r(i,n,e){this._bufferService=i,this._logService=n,this._unicodeService=e,this._linkMatchers=[],this._nextLinkMatcherId=0,this._onShowLinkUnderline=new g.EventEmitter,this._onHideLinkUnderline=new g.EventEmitter,this._onLinkTooltip=new g.EventEmitter,this._rowsToLinkify={start:void 0,end:void 0}}return Object.defineProperty(r.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),r.prototype.attachToDom=function(i,n){this._element=i,this._mouseZoneManager=n},r.prototype.linkifyRows=function(i,n){var e=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=i,this._rowsToLinkify.end=n):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,i),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,n)),this._mouseZoneManager.clearAll(i,n),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return e._linkifyRows()},r._timeBeforeLatency))},r.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var i=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var n=i.ydisp+this._rowsToLinkify.start;if(!(n>=i.lines.length)){for(var e=i.ydisp+Math.min(this._rowsToLinkify.end,this._bufferService.rows)+1,l=Math.ceil(2e3/this._bufferService.cols),t=this._bufferService.buffer.iterator(!1,n,e,l,l);t.hasNext();)for(var a=t.next(),s=0;s<this._linkMatchers.length;s++)this._doLinkifyRow(a.range.first,a.content,this._linkMatchers[s]);this._rowsToLinkify.start=void 0,this._rowsToLinkify.end=void 0}}else this._logService.debug("_rowToLinkify was unset before _linkifyRows was called")},r.prototype.registerLinkMatcher=function(i,n,e){if(e===void 0&&(e={}),!n)throw new Error("handler must be defined");var l={id:this._nextLinkMatcherId++,regex:i,handler:n,matchIndex:e.matchIndex,validationCallback:e.validationCallback,hoverTooltipCallback:e.tooltipCallback,hoverLeaveCallback:e.leaveCallback,willLinkActivate:e.willLinkActivate,priority:e.priority||0};return this._addLinkMatcherToList(l),l.id},r.prototype._addLinkMatcherToList=function(i){if(this._linkMatchers.length!==0){for(var n=this._linkMatchers.length-1;n>=0;n--)if(i.priority<=this._linkMatchers[n].priority)return void this._linkMatchers.splice(n+1,0,i);this._linkMatchers.splice(0,0,i)}else this._linkMatchers.push(i)},r.prototype.deregisterLinkMatcher=function(i){for(var n=0;n<this._linkMatchers.length;n++)if(this._linkMatchers[n].id===i)return this._linkMatchers.splice(n,1),!0;return!1},r.prototype._doLinkifyRow=function(i,n,e){for(var l,t=this,a=new RegExp(e.regex.source,(e.regex.flags||"")+"g"),s=-1,u=function(){var m=l[typeof e.matchIndex!="number"?0:e.matchIndex];if(!m)return h._logService.debug("match found without corresponding matchIndex",l,e),"break";if(s=n.indexOf(m,s+1),a.lastIndex=s+m.length,s<0)return"break";var v=h._bufferService.buffer.stringIndexToBufferIndex(i,s);if(v[0]<0)return"break";var y=h._bufferService.buffer.lines.get(v[0]);if(!y)return"break";var E=y.getFg(v[1]),T=E?E>>9&511:void 0;e.validationCallback?e.validationCallback(m,function(w){t._rowsTimeoutId||w&&t._addLink(v[1],v[0]-t._bufferService.buffer.ydisp,m,e,T)}):h._addLink(v[1],v[0]-h._bufferService.buffer.ydisp,m,e,T)},h=this;(l=a.exec(n))!==null&&!(u()==="break"););},r.prototype._addLink=function(i,n,e,l,t){var a=this;if(this._mouseZoneManager&&this._element){var s=this._unicodeService.getStringCellWidth(e),u=i%this._bufferService.cols,h=n+Math.floor(i/this._bufferService.cols),p=(u+s)%this._bufferService.cols,m=h+Math.floor((u+s)/this._bufferService.cols);p===0&&(p=this._bufferService.cols,m--),this._mouseZoneManager.add(new o(u+1,h+1,p+1,m+1,function(v){if(l.handler)return l.handler(v,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,h,p,m,t)),a._element.classList.add("xterm-cursor-pointer")},function(v){a._onLinkTooltip.fire(a._createLinkHoverEvent(u,h,p,m,t)),l.hoverTooltipCallback&&l.hoverTooltipCallback(v,e,{start:{x:u,y:h},end:{x:p,y:m}})},function(){a._onHideLinkUnderline.fire(a._createLinkHoverEvent(u,h,p,m,t)),a._element.classList.remove("xterm-cursor-pointer"),l.hoverLeaveCallback&&l.hoverLeaveCallback()},function(v){return!l.willLinkActivate||l.willLinkActivate(v,e)}))}},r.prototype._createLinkHoverEvent=function(i,n,e,l,t){return{x1:i,y1:n,x2:e,y2:l,cols:this._bufferService.cols,fg:t}},r._timeBeforeLatency=200,r=A([b(0,f.IBufferService),b(1,f.ILogService),b(2,f.IUnicodeService)],r)}();x.Linkifier=c;var o=function(i,n,e,l,t,a,s,u,h){this.x1=i,this.y1=n,this.x2=e,this.y2=l,this.clickCallback=t,this.hoverCallback=a,this.tooltipCallback=s,this.leaveCallback=u,this.willLinkActivate=h};x.MouseZone=o},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(m,v){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var T in E)E.hasOwnProperty(T)&&(y[T]=E[T])})(m,v)},function(p,m){function v(){this.constructor=p}A(p,m),p.prototype=m===null?Object.create(m):(v.prototype=m.prototype,new v)}),g=this&&this.__decorate||function(p,m,v,y){var E,T=arguments.length,w=T<3?m:y===null?y=Object.getOwnPropertyDescriptor(m,v):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(p,m,v,y);else for(var S=p.length-1;S>=0;S--)(E=p[S])&&(w=(T<3?E(w):T>3?E(m,v,w):E(m,v))||w);return T>3&&w&&Object.defineProperty(m,v,w),w},f=this&&this.__param||function(p,m){return function(v,y){m(v,y,p)}};Object.defineProperty(x,"__esModule",{value:!0}),x.SelectionService=void 0;var c=C(11),o=C(52),r=C(4),i=C(0),n=C(5),e=C(1),l=C(30),t=C(53),a=C(2),s=String.fromCharCode(160),u=new RegExp(s,"g"),h=function(p){function m(v,y,E,T,w,S,_){var I=p.call(this)||this;return I._element=v,I._screenElement=y,I._bufferService=E,I._coreService=T,I._mouseService=w,I._optionsService=S,I._renderService=_,I._dragScrollAmount=0,I._enabled=!0,I._workCell=new r.CellData,I._mouseDownTimeStamp=0,I._onLinuxMouseSelection=I.register(new i.EventEmitter),I._onRedrawRequest=I.register(new i.EventEmitter),I._onSelectionChange=I.register(new i.EventEmitter),I._onRequestScrollLines=I.register(new i.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 o.SelectionModel(I._bufferService),I._activeSelectionMode=0,I}return b(m,p),Object.defineProperty(m.prototype,"onLinuxMouseSelection",{get:function(){return this._onLinuxMouseSelection.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onRequestRedraw",{get:function(){return this._onRedrawRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"onRequestScrollLines",{get:function(){return this._onRequestScrollLines.event},enumerable:!1,configurable:!0}),m.prototype.dispose=function(){this._removeMouseDownListeners()},m.prototype.reset=function(){this.clearSelection()},m.prototype.disable=function(){this.clearSelection(),this._enabled=!1},m.prototype.enable=function(){this._enabled=!0},Object.defineProperty(m.prototype,"selectionStart",{get:function(){return this._model.finalSelectionStart},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"selectionEnd",{get:function(){return this._model.finalSelectionEnd},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"hasSelection",{get:function(){var y=this._model.finalSelectionStart,E=this._model.finalSelectionEnd;return!(!y||!E)&&(y[0]!==E[0]||y[1]!==E[1])},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"selectionText",{get:function(){var y=this._model.finalSelectionStart,E=this._model.finalSelectionEnd;if(!y||!E)return"";var T=this._bufferService.buffer,w=[];if(this._activeSelectionMode===3){if(y[0]===E[0])return"";for(var S=y[1];S<=E[1];S++){var _=T.translateBufferLineToString(S,!0,y[0],E[0]);w.push(_)}}else{var I=y[1]===E[1]?E[0]:void 0;for(w.push(T.translateBufferLineToString(y[1],!0,y[0],I)),S=y[1]+1;S<=E[1]-1;S++){var L=T.lines.get(S);_=T.translateBufferLineToString(S,!0),L&&L.isWrapped?w[w.length-1]+=_:w.push(_)}y[1]!==E[1]&&(L=T.lines.get(E[1]),_=T.translateBufferLineToString(E[1],!0,0,E[0]),L&&L.isWrapped?w[w.length-1]+=_:w.push(_))}return w.map(function(N){return N.replace(u," ")}).join(c.isWindows?`\r
`:`
`)},enumerable:!1,configurable:!0}),m.prototype.clearSelection=function(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()},m.prototype.refresh=function(v){var y=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return y._refresh()})),c.isLinux&&v)&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)},m.prototype._refresh=function(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})},m.prototype.isClickInSelection=function(v){var y=this._getMouseBufferCoords(v),E=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!!(E&&T&&y)&&this._areCoordsInSelection(y,E,T)},m.prototype._areCoordsInSelection=function(v,y,E){return v[1]>y[1]&&v[1]<E[1]||y[1]===E[1]&&v[1]===y[1]&&v[0]>=y[0]&&v[0]<E[0]||y[1]<E[1]&&v[1]===E[1]&&v[0]<E[0]||y[1]<E[1]&&v[1]===y[1]&&v[0]>=y[0]},m.prototype.selectWordAtCursor=function(v){var y=this._getMouseBufferCoords(v);y&&(this._selectWordAt(y,!1),this._model.selectionEnd=void 0,this.refresh(!0))},m.prototype.selectAll=function(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()},m.prototype.selectLines=function(v,y){this._model.clearSelection(),v=Math.max(v,0),y=Math.min(y,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,v],this._model.selectionEnd=[this._bufferService.cols,y],this.refresh(),this._onSelectionChange.fire()},m.prototype._onTrim=function(v){this._model.onTrim(v)&&this.refresh()},m.prototype._getMouseBufferCoords=function(v){var y=this._mouseService.getCoords(v,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(y)return y[0]--,y[1]--,y[1]+=this._bufferService.buffer.ydisp,y},m.prototype._getMouseEventScrollAmount=function(v){var y=l.getCoordsRelativeToElement(v,this._screenElement)[1],E=this._renderService.dimensions.canvasHeight;return y>=0&&y<=E?0:(y>E&&(y-=E),y=Math.min(Math.max(y,-50),50),(y/=50)/Math.abs(y)+Math.round(14*y))},m.prototype.shouldForceSelection=function(v){return c.isMac?v.altKey&&this._optionsService.options.macOptionClickForcesSelection:v.shiftKey},m.prototype.onMouseDown=function(v){if(this._mouseDownTimeStamp=v.timeStamp,(v.button!==2||!this.hasSelection)&&v.button===0){if(!this._enabled){if(!this.shouldForceSelection(v))return;v.stopPropagation()}v.preventDefault(),this._dragScrollAmount=0,this._enabled&&v.shiftKey?this._onIncrementalClick(v):v.detail===1?this._onSingleClick(v):v.detail===2?this._onDoubleClick(v):v.detail===3&&this._onTripleClick(v),this._addMouseDownListeners(),this.refresh(!0)}},m.prototype._addMouseDownListeners=function(){var v=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return v._dragScroll()},50)},m.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},m.prototype._onIncrementalClick=function(v){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(v))},m.prototype._onSingleClick=function(v){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(v)?3:0,this._model.selectionStart=this._getMouseBufferCoords(v),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]++}},m.prototype._onDoubleClick=function(v){var y=this._getMouseBufferCoords(v);y&&(this._activeSelectionMode=1,this._selectWordAt(y,!0))},m.prototype._onTripleClick=function(v){var y=this._getMouseBufferCoords(v);y&&(this._activeSelectionMode=2,this._selectLineAt(y[1]))},m.prototype.shouldColumnSelect=function(v){return v.altKey&&!(c.isMac&&this._optionsService.options.macOptionClickForcesSelection)},m.prototype._onMouseMove=function(v){if(v.stopImmediatePropagation(),this._model.selectionStart){var y=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(v),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(v),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));var E=this._bufferService.buffer;if(this._model.selectionEnd[1]<E.lines.length){var T=E.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)}},m.prototype._dragScroll=function(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});var v=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(v.ydisp+this._bufferService.rows,v.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=v.ydisp),this.refresh()}},m.prototype._onMouseUp=function(v){var y=v.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&y<500&&v.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var E=this._mouseService.getCoords(v,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(E&&E[0]!==void 0&&E[1]!==void 0){var T=t.moveToCellSequence(E[0]-1,E[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(T,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},m.prototype._onBufferActivate=function(v){var y=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=v.activeBuffer.lines.onTrim(function(E){return y._onTrim(E)})},m.prototype._convertViewportColToCharacterIndex=function(v,y){for(var E=y[0],T=0;y[0]>=T;T++){var w=v.loadCell(T,this._workCell).getChars().length;this._workCell.getWidth()===0?E--:w>1&&y[0]!==T&&(E+=w-1)}return E},m.prototype.setSelection=function(v,y,E){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[v,y],this._model.selectionStartLength=E,this.refresh()},m.prototype._getWordAt=function(v,y,E,T){if(E===void 0&&(E=!0),T===void 0&&(T=!0),!(v[0]>=this._bufferService.cols)){var w=this._bufferService.buffer,S=w.lines.get(v[1]);if(S){var _=w.translateBufferLineToString(v[1],!1),I=this._convertViewportColToCharacterIndex(S,v),L=I,N=v[0]-I,R=0,D=0,F=0,M=0;if(_.charAt(I)===" "){for(;I>0&&_.charAt(I-1)===" ";)I--;for(;L<_.length&&_.charAt(L+1)===" ";)L++}else{var U=v[0],B=v[0];S.getWidth(U)===0&&(R++,U--),S.getWidth(B)===2&&(D++,B++);var j=S.getString(B).length;for(j>1&&(M+=j-1,L+=j-1);U>0&&I>0&&!this._isCharWordSeparator(S.loadCell(U-1,this._workCell));){S.loadCell(U-1,this._workCell);var W=this._workCell.getChars().length;this._workCell.getWidth()===0?(R++,U--):W>1&&(F+=W-1,I-=W-1),I--,U--}for(;B<S.length&&L+1<_.length&&!this._isCharWordSeparator(S.loadCell(B+1,this._workCell));){S.loadCell(B+1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===2?(D++,B++):V>1&&(M+=V-1,L+=V-1),L++,B++}}L++;var z=I+N-R+F,J=Math.min(this._bufferService.cols,L-I+R+D-F-M);if(y||_.slice(I,L).trim()!==""){if(E&&z===0&&S.getCodePoint(0)!==32){var q=w.lines.get(v[1]-1);if(q&&S.isWrapped&&q.getCodePoint(this._bufferService.cols-1)!==32){var de=this._getWordAt([this._bufferService.cols-1,v[1]-1],!1,!0,!1);if(de){var ae=this._bufferService.cols-de.start;z-=ae,J+=ae}}}if(T&&z+J===this._bufferService.cols&&S.getCodePoint(this._bufferService.cols-1)!==32){var ve=w.lines.get(v[1]+1);if(ve&&ve.isWrapped&&ve.getCodePoint(0)!==32){var _e=this._getWordAt([0,v[1]+1],!1,!1,!0);_e&&(J+=_e.length)}}return{start:z,length:J}}}}},m.prototype._selectWordAt=function(v,y){var E=this._getWordAt(v,y);if(E){for(;E.start<0;)E.start+=this._bufferService.cols,v[1]--;this._model.selectionStart=[E.start,v[1]],this._model.selectionStartLength=E.length}},m.prototype._selectToWordAt=function(v){var y=this._getWordAt(v,!0);if(y){for(var E=v[1];y.start<0;)y.start+=this._bufferService.cols,E--;if(!this._model.areSelectionValuesReversed())for(;y.start+y.length>this._bufferService.cols;)y.length-=this._bufferService.cols,E++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?y.start:y.start+y.length,E]}},m.prototype._isCharWordSeparator=function(v){return v.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(v.getChars())>=0},m.prototype._selectLineAt=function(v){var y=this._bufferService.buffer.getWrappedRangeForLine(v);this._model.selectionStart=[0,y.first],this._model.selectionEnd=[this._bufferService.cols,y.last],this._model.selectionStartLength=0},m=g([f(2,e.IBufferService),f(3,e.ICoreService),f(4,n.IMouseService),f(5,e.IOptionsService),f(6,n.IRenderService)],m)}(a.Disposable);x.SelectionService=h},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.SelectionModel=void 0;var A=function(){function b(g){this._bufferService=g,this.isSelectAllActive=!1,this.selectionStartLength=0}return b.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(b.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(b.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 f=this.selectionStart[0]+this.selectionStartLength;return f>this._bufferService.cols?[f%this._bufferService.cols,this.selectionStart[1]+Math.floor(f/this._bufferService.cols)]:[f,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}),b.prototype.areSelectionValuesReversed=function(){var g=this.selectionStart,f=this.selectionEnd;return!(!g||!f)&&(g[1]>f[1]||g[1]===f[1]&&g[0]>f[0])},b.prototype.onTrim=function(g){return this.selectionStart&&(this.selectionStart[1]-=g),this.selectionEnd&&(this.selectionEnd[1]-=g),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)},b}();x.SelectionModel=A},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.moveToCellSequence=void 0;var A=C(12);function b(i,n,e,l){var t=i-g(e,i),a=n-g(e,n);return r(Math.abs(t-a)-function(s,u,h){for(var p=0,m=s-g(h,s),v=u-g(h,u),y=0;y<Math.abs(m-v);y++){var E=f(s,u)==="A"?-1:1,T=h.buffer.lines.get(m+E*y);T&&T.isWrapped&&p++}return p}(i,n,e),o(f(i,n),l))}function g(i,n){for(var e=0,l=i.buffer.lines.get(n),t=l&&l.isWrapped;t&&n>=0&&n<i.rows;)e++,t=(l=i.buffer.lines.get(--n))&&l.isWrapped;return e}function f(i,n){return i>n?"A":"B"}function c(i,n,e,l,t,a){for(var s=i,u=n,h="";s!==e||u!==l;)s+=t?1:-1,t&&s>a.cols-1?(h+=a.buffer.translateBufferLineToString(u,!1,i,s),s=0,i=0,u++):!t&&s<0&&(h+=a.buffer.translateBufferLineToString(u,!1,0,i+1),i=s=a.cols-1,u--);return h+a.buffer.translateBufferLineToString(u,!1,i,s)}function o(i,n){var e=n?"O":"[";return A.C0.ESC+e+i}function r(i,n){i=Math.floor(i);for(var e="",l=0;l<i;l++)e+=n;return e}x.moveToCellSequence=function(i,n,e,l){var t,a=e.buffer.x,s=e.buffer.y;if(!e.buffer.hasScrollback)return function(h,p,m,v,y,E){return b(p,v,y,E).length===0?"":r(c(h,p,h,p-g(y,p),!1,y).length,o("D",E))}(a,s,0,n,e,l)+b(s,n,e,l)+function(h,p,m,v,y,E){var T;T=b(p,v,y,E).length>0?v-g(y,v):p;var w=v,S=function(_,I,L,N,R,D){var F;return F=b(L,N,R,D).length>0?N-g(R,N):I,_<L&&F<=N||_>=L&&F<N?"C":"D"}(h,p,m,v,y,E);return r(c(h,T,m,w,S==="C",y).length,o(S,E))}(a,s,i,n,e,l);if(s===n)return t=a>i?"D":"C",r(Math.abs(a-i),o(t,l));t=s>n?"D":"C";var u=Math.abs(s-n);return r(function(h,p){return p.cols-h}(s>n?i:a,e)+(u-1)*e.cols+1+((s>n?a:i)-1),o(t,l))}},function(O,x,C){"use strict";var A=this&&this.__decorate||function(c,o,r,i){var n,e=arguments.length,l=e<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(c,o,r,i);else for(var t=c.length-1;t>=0;t--)(n=c[t])&&(l=(e<3?n(l):e>3?n(o,r,l):n(o,r))||l);return e>3&&l&&Object.defineProperty(o,r,l),l},b=this&&this.__param||function(c,o){return function(r,i){o(r,i,c)}};Object.defineProperty(x,"__esModule",{value:!0}),x.SoundService=void 0;var g=C(1),f=function(){function c(o){this._optionsService=o}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 o=c.audioContext;if(o){var r=o.createBufferSource();o.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(i){r.buffer=i,r.connect(o.destination),r.start(0)})}},c.prototype._base64ToArrayBuffer=function(o){for(var r=window.atob(o),i=r.length,n=new Uint8Array(i),e=0;e<i;e++)n[e]=r.charCodeAt(e);return n.buffer},c.prototype._removeMimeType=function(o){return o.split(",")[1]},c=A([b(0,g.IOptionsService)],c)}();x.SoundService=f},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),g=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},f=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.MouseZoneManager=void 0;var c=C(2),o=C(7),r=C(5),i=C(1),n=function(e){function l(t,a,s,u,h,p){var m=e.call(this)||this;return m._element=t,m._screenElement=a,m._bufferService=s,m._mouseService=u,m._selectionService=h,m._optionsService=p,m._zones=[],m._areZonesActive=!1,m._lastHoverCoords=[void 0,void 0],m._initialSelectionLength=0,m.register(o.addDisposableDomListener(m._element,"mousedown",function(v){return m._onMouseDown(v)})),m._mouseMoveListener=function(v){return m._onMouseMove(v)},m._mouseLeaveListener=function(v){return m._onMouseLeave(v)},m._clickListener=function(v){return m._onClick(v)},m}return b(l,e),l.prototype.dispose=function(){e.prototype.dispose.call(this),this._deactivate()},l.prototype.add=function(t){this._zones.push(t),this._zones.length===1&&this._activate()},l.prototype.clearAll=function(t,a){if(this._zones.length!==0){t&&a||(t=0,a=this._bufferService.rows-1);for(var s=0;s<this._zones.length;s++){var u=this._zones[s];(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(s--,1))}this._zones.length===0&&this._deactivate()}},l.prototype._activate=function(){this._areZonesActive||(this._areZonesActive=!0,this._element.addEventListener("mousemove",this._mouseMoveListener),this._element.addEventListener("mouseleave",this._mouseLeaveListener),this._element.addEventListener("click",this._clickListener))},l.prototype._deactivate=function(){this._areZonesActive&&(this._areZonesActive=!1,this._element.removeEventListener("mousemove",this._mouseMoveListener),this._element.removeEventListener("mouseleave",this._mouseLeaveListener),this._element.removeEventListener("click",this._clickListener))},l.prototype._onMouseMove=function(t){this._lastHoverCoords[0]===t.pageX&&this._lastHoverCoords[1]===t.pageY||(this._onHover(t),this._lastHoverCoords=[t.pageX,t.pageY])},l.prototype._onHover=function(t){var a=this,s=this._findZoneEventAt(t);s!==this._currentZone&&(this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout)),s&&(this._currentZone=s,s.hoverCallback&&s.hoverCallback(t),this._tooltipTimeout=window.setTimeout(function(){return a._onTooltip(t)},this._optionsService.options.linkTooltipHoverDuration)))},l.prototype._onTooltip=function(t){this._tooltipTimeout=void 0;var a=this._findZoneEventAt(t);a&&a.tooltipCallback&&a.tooltipCallback(t)},l.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())}},l.prototype._onMouseLeave=function(t){this._currentZone&&(this._currentZone.leaveCallback(),this._currentZone=void 0,this._tooltipTimeout&&clearTimeout(this._tooltipTimeout))},l.prototype._onClick=function(t){var a=this._findZoneEventAt(t),s=this._getSelectionLength();a&&s===this._initialSelectionLength&&(a.clickCallback(t),t.preventDefault(),t.stopImmediatePropagation())},l.prototype._getSelectionLength=function(){var t=this._selectionService.selectionText;return t?t.length:0},l.prototype._findZoneEventAt=function(t){var a=this._mouseService.getCoords(t,this._screenElement,this._bufferService.cols,this._bufferService.rows);if(a)for(var s=a[0],u=a[1],h=0;h<this._zones.length;h++){var p=this._zones[h];if(p.y1===p.y2){if(u===p.y1&&s>=p.x1&&s<p.x2)return p}else if(u===p.y1&&s>=p.x1||u===p.y2&&s<p.x2||u>p.y1&&u<p.y2)return p}},l=g([f(2,i.IBufferService),f(3,r.IMouseService),f(4,r.ISelectionService),f(5,i.IOptionsService)],l)}(c.Disposable);x.MouseZoneManager=n},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(t,a){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var h in u)u.hasOwnProperty(h)&&(s[h]=u[h])})(t,a)},function(l,t){function a(){this.constructor=l}A(l,t),l.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(x,"__esModule",{value:!0}),x.AccessibilityManager=void 0;var g=C(18),f=C(11),c=C(31),o=C(7),r=C(2),i=C(32),n=C(17),e=function(l){function t(a,s){var u=l.call(this)||this;u._terminal=a,u._renderService=s,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 h=0;h<u._terminal.rows;h++)u._rowElements[h]=u._createAccessibilityTreeNode(),u._rowContainer.appendChild(u._rowElements[h]);if(u._topBoundaryFocusListener=function(p){return u._onBoundaryFocus(p,0)},u._bottomBoundaryFocusListener=function(p){return u._onBoundaryFocus(p,1)},u._rowElements[0].addEventListener("focus",u._topBoundaryFocusListener),u._rowElements[u._rowElements.length-1].addEventListener("focus",u._bottomBoundaryFocusListener),u._refreshRowsDimensions(),u._accessibilityTreeRoot.appendChild(u._rowContainer),u._renderRowsDebouncer=new c.RenderDebouncer(u._renderRows.bind(u)),u._refreshRows(),u._liveRegion=document.createElement("div"),u._liveRegion.classList.add("live-region"),u._liveRegion.setAttribute("aria-live","assertive"),u._accessibilityTreeRoot.appendChild(u._liveRegion),!u._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");return u._terminal.element.insertAdjacentElement("afterbegin",u._accessibilityTreeRoot),u.register(u._renderRowsDebouncer),u.register(u._terminal.onResize(function(p){return u._onResize(p.rows)})),u.register(u._terminal.onRender(function(p){return u._refreshRows(p.start,p.end)})),u.register(u._terminal.onScroll(function(){return u._refreshRows()})),u.register(u._terminal.onA11yChar(function(p){return u._onChar(p)})),u.register(u._terminal.onLineFeed(function(){return u._onChar(`
`)})),u.register(u._terminal.onA11yTab(function(p){return u._onTab(p)})),u.register(u._terminal.onKey(function(p){return u._onKey(p.key)})),u.register(u._terminal.onBlur(function(){return u._clearLiveRegion()})),u.register(u._renderService.onDimensionsChange(function(){return u._refreshRowsDimensions()})),u._screenDprMonitor=new i.ScreenDprMonitor,u.register(u._screenDprMonitor),u._screenDprMonitor.setListener(function(){return u._refreshRowsDimensions()}),u.register(o.addDisposableDomListener(window,"resize",function(){return u._refreshRowsDimensions()})),u}return b(t,l),t.prototype.dispose=function(){l.prototype.dispose.call(this),n.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},t.prototype._onBoundaryFocus=function(a,s){var u=a.target,h=this._rowElements[s===0?1:this._rowElements.length-2];if(u.getAttribute("aria-posinset")!==(s===0?"1":""+this._terminal.buffer.lines.length)&&a.relatedTarget===h){var p,m;if(s===0?(p=u,m=this._rowElements.pop(),this._rowContainer.removeChild(m)):(p=this._rowElements.shift(),m=u,this._rowContainer.removeChild(p)),p.removeEventListener("focus",this._topBoundaryFocusListener),m.removeEventListener("focus",this._bottomBoundaryFocusListener),s===0){var v=this._createAccessibilityTreeNode();this._rowElements.unshift(v),this._rowContainer.insertAdjacentElement("afterbegin",v)}else v=this._createAccessibilityTreeNode(),this._rowElements.push(v),this._rowContainer.appendChild(v);this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(s===0?-1:1),this._rowElements[s===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 s=this._rowContainer.children.length;s<this._terminal.rows;s++)this._rowElements[s]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[s]);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 s=0;s<a;s++)this._onChar(" ")},t.prototype._onChar=function(a){var s=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+=g.tooMuchOutput)),f.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(function(){s._accessibilityTreeRoot.appendChild(s._liveRegion)},0))},t.prototype._clearLiveRegion=function(){this._liveRegion.textContent="",this._liveRegionLineCount=0,f.isMac&&n.removeElementFromParent(this._liveRegion)},t.prototype._onKey=function(a){this._clearLiveRegion(),this._charsToConsume.push(a)},t.prototype._refreshRows=function(a,s){this._renderRowsDebouncer.refresh(a,s,this._terminal.rows)},t.prototype._renderRows=function(a,s){for(var u=this._terminal.buffer,h=u.lines.length.toString(),p=a;p<=s;p++){var m=u.translateBufferLineToString(u.ydisp+p,!0),v=(u.ydisp+p+1).toString(),y=this._rowElements[p];y&&(m.length===0?y.innerHTML="&nbsp;":y.textContent=m,y.setAttribute("aria-posinset",v),y.setAttribute("aria-setsize",h))}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);x.AccessibilityManager=e},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(h,p){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,v){m.__proto__=v}||function(m,v){for(var y in v)v.hasOwnProperty(y)&&(m[y]=v[y])})(h,p)},function(u,h){function p(){this.constructor=u}A(u,h),u.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}),g=this&&this.__decorate||function(u,h,p,m){var v,y=arguments.length,E=y<3?h:m===null?m=Object.getOwnPropertyDescriptor(h,p):m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(u,h,p,m);else for(var T=u.length-1;T>=0;T--)(v=u[T])&&(E=(y<3?v(E):y>3?v(h,p,E):v(h,p))||E);return y>3&&E&&Object.defineProperty(h,p,E),E},f=this&&this.__param||function(u,h){return function(p,m){h(p,m,u)}};Object.defineProperty(x,"__esModule",{value:!0}),x.DomRenderer=void 0;var c=C(58),o=C(9),r=C(2),i=C(5),n=C(1),e=C(0),l=C(10),t=C(17),a=1,s=function(u){function h(p,m,v,y,E,T,w,S,_){var I=u.call(this)||this;return I._colors=p,I._element=m,I._screenElement=v,I._viewportElement=y,I._linkifier=E,I._linkifier2=T,I._charSizeService=w,I._optionsService=S,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 b(h,u),Object.defineProperty(h.prototype,"onRequestRedraw",{get:function(){return new e.EventEmitter().event},enumerable:!1,configurable:!0}),h.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)},h.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,m=this._rowElements;p<m.length;p++){var v=m[p];v.style.width=this.dimensions.canvasWidth+"px",v.style.height=this.dimensions.actualCellHeight+"px",v.style.lineHeight=this.dimensions.actualCellHeight+"px",v.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"},h.prototype.setColors=function(p){this._colors=p,this._injectCss()},h.prototype._injectCss=function(){var p=this;this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));var m=this._terminalSelector+" .xterm-rows { color: "+this._colors.foreground.css+"; font-family: "+this._optionsService.options.fontFamily+"; font-size: "+this._optionsService.options.fontSize+"px;}";m+=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;}",m+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",m+="@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+"; }}",m+=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;}",m+=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(v,y){m+=p._terminalSelector+" .xterm-fg-"+y+" { color: "+v.css+"; }"+p._terminalSelector+" .xterm-bg-"+y+" { background-color: "+v.css+"; }"}),m+=this._terminalSelector+" .xterm-fg-"+o.INVERTED_DEFAULT_COLOR+" { color: "+l.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+o.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=m},h.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},h.prototype._refreshRowElements=function(p,m){for(var v=this._rowElements.length;v<=m;v++){var y=document.createElement("div");this._rowContainer.appendChild(y),this._rowElements.push(y)}for(;this._rowElements.length>m;)this._rowContainer.removeChild(this._rowElements.pop())},h.prototype.onResize=function(p,m){this._refreshRowElements(p,m),this._updateDimensions()},h.prototype.onCharSizeChanged=function(){this._updateDimensions()},h.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},h.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},h.prototype.onSelectionChanged=function(p,m,v){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(p&&m){var y=p[1]-this._bufferService.buffer.ydisp,E=m[1]-this._bufferService.buffer.ydisp,T=Math.max(y,0),w=Math.min(E,this._bufferService.rows-1);if(!(T>=this._bufferService.rows||w<0)){var S=document.createDocumentFragment();if(v)S.appendChild(this._createSelectionElement(T,p[0],m[0],w-T+1));else{var _=y===T?p[0]:0,I=T===w?m[0]:this._bufferService.cols;S.appendChild(this._createSelectionElement(T,_,I));var L=w-T-1;if(S.appendChild(this._createSelectionElement(T+1,0,this._bufferService.cols,L)),T!==w){var N=E===w?m[0]:this._bufferService.cols;S.appendChild(this._createSelectionElement(w,0,N))}}this._selectionContainer.appendChild(S)}}},h.prototype._createSelectionElement=function(p,m,v,y){y===void 0&&(y=1);var E=document.createElement("div");return E.style.height=y*this.dimensions.actualCellHeight+"px",E.style.top=p*this.dimensions.actualCellHeight+"px",E.style.left=m*this.dimensions.actualCellWidth+"px",E.style.width=this.dimensions.actualCellWidth*(v-m)+"px",E},h.prototype.onCursorMove=function(){},h.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},h.prototype.clear=function(){for(var p=0,m=this._rowElements;p<m.length;p++)m[p].innerHTML=""},h.prototype.renderRows=function(p,m){for(var v=this._bufferService.buffer.ybase+this._bufferService.buffer.y,y=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),E=this._optionsService.options.cursorBlink,T=p;T<=m;T++){var w=this._rowElements[T];w.innerHTML="";var S=T+this._bufferService.buffer.ydisp,_=this._bufferService.buffer.lines.get(S),I=this._optionsService.options.cursorStyle;w.appendChild(this._rowFactory.createRow(_,S===v,I,y,E,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(h.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),h.prototype.registerCharacterJoiner=function(p){return-1},h.prototype.deregisterCharacterJoiner=function(p){return!1},h.prototype._onLinkHover=function(p){this._setCellUnderline(p.x1,p.x2,p.y1,p.y2,p.cols,!0)},h.prototype._onLinkLeave=function(p){this._setCellUnderline(p.x1,p.x2,p.y1,p.y2,p.cols,!1)},h.prototype._setCellUnderline=function(p,m,v,y,E,T){for(;p!==m||v!==y;){var w=this._rowElements[v];if(!w)return;var S=w.children[p];S&&(S.style.textDecoration=T?"underline":"none"),++p>=E&&(p=0,v++)}},h=g([f(6,i.ICharSizeService),f(7,n.IOptionsService),f(8,n.IBufferService)],h)}(r.Disposable);x.DomRenderer=s},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.DomRendererRowFactory=x.CURSOR_STYLE_UNDERLINE_CLASS=x.CURSOR_STYLE_BAR_CLASS=x.CURSOR_STYLE_BLOCK_CLASS=x.CURSOR_BLINK_CLASS=x.CURSOR_CLASS=x.UNDERLINE_CLASS=x.ITALIC_CLASS=x.DIM_CLASS=x.BOLD_CLASS=void 0;var A=C(9),b=C(3),g=C(4),f=C(10);x.BOLD_CLASS="xterm-bold",x.DIM_CLASS="xterm-dim",x.ITALIC_CLASS="xterm-italic",x.UNDERLINE_CLASS="xterm-underline",x.CURSOR_CLASS="xterm-cursor",x.CURSOR_BLINK_CLASS="xterm-cursor-blink",x.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",x.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",x.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var c=function(){function r(i,n,e){this._document=i,this._optionsService=n,this._colors=e,this._workCell=new g.CellData}return r.prototype.setColors=function(i){this._colors=i},r.prototype.createRow=function(i,n,e,l,t,a,s){for(var u=this._document.createDocumentFragment(),h=0,p=Math.min(i.length,s)-1;p>=0;p--)if(i.loadCell(p,this._workCell).getCode()!==b.NULL_CELL_CODE||n&&p===l){h=p+1;break}for(p=0;p<h;p++){i.loadCell(p,this._workCell);var m=this._workCell.getWidth();if(m!==0){var v=this._document.createElement("span");if(m>1&&(v.style.width=a*m+"px"),n&&p===l)switch(v.classList.add(x.CURSOR_CLASS),t&&v.classList.add(x.CURSOR_BLINK_CLASS),e){case"bar":v.classList.add(x.CURSOR_STYLE_BAR_CLASS);break;case"underline":v.classList.add(x.CURSOR_STYLE_UNDERLINE_CLASS);break;default:v.classList.add(x.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&v.classList.add(x.BOLD_CLASS),this._workCell.isItalic()&&v.classList.add(x.ITALIC_CLASS),this._workCell.isDim()&&v.classList.add(x.DIM_CLASS),this._workCell.isUnderline()&&v.classList.add(x.UNDERLINE_CLASS),this._workCell.isInvisible()?v.textContent=b.WHITESPACE_CELL_CHAR:v.textContent=this._workCell.getChars()||b.WHITESPACE_CELL_CHAR;var y=this._workCell.getFgColor(),E=this._workCell.getFgColorMode(),T=this._workCell.getBgColor(),w=this._workCell.getBgColorMode(),S=!!this._workCell.isInverse();if(S){var _=y;y=T,T=_;var I=E;E=w,w=I}switch(E){case 16777216:case 33554432:this._workCell.isBold()&&y<8&&this._optionsService.options.drawBoldTextInBrightColors&&(y+=8),this._applyMinimumContrast(v,this._colors.background,this._colors.ansi[y])||v.classList.add("xterm-fg-"+y);break;case 50331648:var L=f.rgba.toColor(y>>16&255,y>>8&255,255&y);this._applyMinimumContrast(v,this._colors.background,L)||this._addStyle(v,"color:#"+o(y.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(v,this._colors.background,this._colors.foreground)||S&&v.classList.add("xterm-fg-"+A.INVERTED_DEFAULT_COLOR)}switch(w){case 16777216:case 33554432:v.classList.add("xterm-bg-"+T);break;case 50331648:this._addStyle(v,"background-color:#"+o(T.toString(16),"0",6));break;case 0:default:S&&v.classList.add("xterm-bg-"+A.INVERTED_DEFAULT_COLOR)}u.appendChild(v)}}return u},r.prototype._applyMinimumContrast=function(i,n,e){if(this._optionsService.options.minimumContrastRatio===1)return!1;var l=this._colors.contrastCache.getColor(this._workCell.bg,this._workCell.fg);return l===void 0&&(l=f.color.ensureContrastRatio(n,e,this._optionsService.options.minimumContrastRatio),this._colors.contrastCache.setColor(this._workCell.bg,this._workCell.fg,l!=null?l:null)),!!l&&(this._addStyle(i,"color:"+l.css),!0)},r.prototype._addStyle=function(i,n){i.setAttribute("style",""+(i.getAttribute("style")||"")+n+";")},r}();function o(r,i,n){for(;r.length<n;)r=i+r;return r}x.DomRendererRowFactory=c},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.evaluateKeyboardEvent=void 0;var A=C(12),b={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:["'",'"']};x.evaluateKeyboardEvent=function(g,f,c,o){var r={type:0,cancel:!1,key:void 0},i=(g.shiftKey?1:0)|(g.altKey?2:0)|(g.ctrlKey?4:0)|(g.metaKey?8:0);switch(g.keyCode){case 0:g.key==="UIKeyInputUpArrow"?r.key=f?A.C0.ESC+"OA":A.C0.ESC+"[A":g.key==="UIKeyInputLeftArrow"?r.key=f?A.C0.ESC+"OD":A.C0.ESC+"[D":g.key==="UIKeyInputRightArrow"?r.key=f?A.C0.ESC+"OC":A.C0.ESC+"[C":g.key==="UIKeyInputDownArrow"&&(r.key=f?A.C0.ESC+"OB":A.C0.ESC+"[B");break;case 8:if(g.shiftKey){r.key=A.C0.BS;break}if(g.altKey){r.key=A.C0.ESC+A.C0.DEL;break}r.key=A.C0.DEL;break;case 9:if(g.shiftKey){r.key=A.C0.ESC+"[Z";break}r.key=A.C0.HT,r.cancel=!0;break;case 13:r.key=g.altKey?A.C0.ESC+A.C0.CR:A.C0.CR,r.cancel=!0;break;case 27:r.key=A.C0.ESC,g.altKey&&(r.key=A.C0.ESC+A.C0.ESC),r.cancel=!0;break;case 37:if(g.metaKey)break;i?(r.key=A.C0.ESC+"[1;"+(i+1)+"D",r.key===A.C0.ESC+"[1;3D"&&(r.key=A.C0.ESC+(c?"b":"[1;5D"))):r.key=f?A.C0.ESC+"OD":A.C0.ESC+"[D";break;case 39:if(g.metaKey)break;i?(r.key=A.C0.ESC+"[1;"+(i+1)+"C",r.key===A.C0.ESC+"[1;3C"&&(r.key=A.C0.ESC+(c?"f":"[1;5C"))):r.key=f?A.C0.ESC+"OC":A.C0.ESC+"[C";break;case 38:if(g.metaKey)break;i?(r.key=A.C0.ESC+"[1;"+(i+1)+"A",c||r.key!==A.C0.ESC+"[1;3A"||(r.key=A.C0.ESC+"[1;5A")):r.key=f?A.C0.ESC+"OA":A.C0.ESC+"[A";break;case 40:if(g.metaKey)break;i?(r.key=A.C0.ESC+"[1;"+(i+1)+"B",c||r.key!==A.C0.ESC+"[1;3B"||(r.key=A.C0.ESC+"[1;5B")):r.key=f?A.C0.ESC+"OB":A.C0.ESC+"[B";break;case 45:g.shiftKey||g.ctrlKey||(r.key=A.C0.ESC+"[2~");break;case 46:r.key=i?A.C0.ESC+"[3;"+(i+1)+"~":A.C0.ESC+"[3~";break;case 36:r.key=i?A.C0.ESC+"[1;"+(i+1)+"H":f?A.C0.ESC+"OH":A.C0.ESC+"[H";break;case 35:r.key=i?A.C0.ESC+"[1;"+(i+1)+"F":f?A.C0.ESC+"OF":A.C0.ESC+"[F";break;case 33:g.shiftKey?r.type=2:r.key=A.C0.ESC+"[5~";break;case 34:g.shiftKey?r.type=3:r.key=A.C0.ESC+"[6~";break;case 112:r.key=i?A.C0.ESC+"[1;"+(i+1)+"P":A.C0.ESC+"OP";break;case 113:r.key=i?A.C0.ESC+"[1;"+(i+1)+"Q":A.C0.ESC+"OQ";break;case 114:r.key=i?A.C0.ESC+"[1;"+(i+1)+"R":A.C0.ESC+"OR";break;case 115:r.key=i?A.C0.ESC+"[1;"+(i+1)+"S":A.C0.ESC+"OS";break;case 116:r.key=i?A.C0.ESC+"[15;"+(i+1)+"~":A.C0.ESC+"[15~";break;case 117:r.key=i?A.C0.ESC+"[17;"+(i+1)+"~":A.C0.ESC+"[17~";break;case 118:r.key=i?A.C0.ESC+"[18;"+(i+1)+"~":A.C0.ESC+"[18~";break;case 119:r.key=i?A.C0.ESC+"[19;"+(i+1)+"~":A.C0.ESC+"[19~";break;case 120:r.key=i?A.C0.ESC+"[20;"+(i+1)+"~":A.C0.ESC+"[20~";break;case 121:r.key=i?A.C0.ESC+"[21;"+(i+1)+"~":A.C0.ESC+"[21~";break;case 122:r.key=i?A.C0.ESC+"[23;"+(i+1)+"~":A.C0.ESC+"[23~";break;case 123:r.key=i?A.C0.ESC+"[24;"+(i+1)+"~":A.C0.ESC+"[24~";break;default:if(!g.ctrlKey||g.shiftKey||g.altKey||g.metaKey)if(c&&!o||!g.altKey||g.metaKey)c&&!g.altKey&&!g.ctrlKey&&g.metaKey?g.keyCode===65&&(r.type=1):g.key&&!g.ctrlKey&&!g.altKey&&!g.metaKey&&g.keyCode>=48&&g.key.length===1?r.key=g.key:g.key&&g.ctrlKey&&g.key==="_"&&(r.key=A.C0.US);else{var n=b[g.keyCode],e=n&&n[g.shiftKey?1:0];if(e)r.key=A.C0.ESC+e;else if(g.keyCode>=65&&g.keyCode<=90){var l=g.ctrlKey?g.keyCode-64:g.keyCode+32;r.key=A.C0.ESC+String.fromCharCode(l)}}else g.keyCode>=65&&g.keyCode<=90?r.key=String.fromCharCode(g.keyCode-64):g.keyCode===32?r.key=A.C0.NUL:g.keyCode>=51&&g.keyCode<=55?r.key=String.fromCharCode(g.keyCode-51+27):g.keyCode===56?r.key=A.C0.DEL:g.keyCode===219?r.key=A.C0.ESC:g.keyCode===220?r.key=A.C0.FS:g.keyCode===221&&(r.key=A.C0.GS)}return r}},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(s,u){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var m in p)p.hasOwnProperty(m)&&(h[m]=p[m])})(s,u)},function(a,s){function u(){this.constructor=a}A(a,s),a.prototype=s===null?Object.create(s):(u.prototype=s.prototype,new u)}),g=this&&this.__decorate||function(a,s,u,h){var p,m=arguments.length,v=m<3?s:h===null?h=Object.getOwnPropertyDescriptor(s,u):h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(a,s,u,h);else for(var y=a.length-1;y>=0;y--)(p=a[y])&&(v=(m<3?p(v):m>3?p(s,u,v):p(s,u))||v);return m>3&&v&&Object.defineProperty(s,u,v),v},f=this&&this.__param||function(a,s){return function(u,h){s(u,h,a)}};Object.defineProperty(x,"__esModule",{value:!0}),x.RenderService=void 0;var c=C(31),o=C(0),r=C(2),i=C(32),n=C(7),e=C(1),l=C(5),t=function(a){function s(u,h,p,m,v,y){var E=a.call(this)||this;if(E._renderer=u,E._rowCount=h,E._isPaused=!1,E._needsFullRefresh=!1,E._isNextRenderRedrawOnly=!0,E._needsSelectionRefresh=!1,E._canvasWidth=0,E._canvasHeight=0,E._selectionState={start:void 0,end:void 0,columnSelectMode:!1},E._onDimensionsChange=new o.EventEmitter,E._onRender=new o.EventEmitter,E._onRefreshRequest=new o.EventEmitter,E.register({dispose:function(){return E._renderer.dispose()}}),E._renderDebouncer=new c.RenderDebouncer(function(w,S){return E._renderRows(w,S)}),E.register(E._renderDebouncer),E._screenDprMonitor=new i.ScreenDprMonitor,E._screenDprMonitor.setListener(function(){return E.onDevicePixelRatioChange()}),E.register(E._screenDprMonitor),E.register(y.onResize(function(w){return E._fullRefresh()})),E.register(m.onOptionChange(function(){return E._renderer.onOptionsChanged()})),E.register(v.onCharSizeChange(function(){return E.onCharSizeChanged()})),E._renderer.onRequestRedraw(function(w){return E.refreshRows(w.start,w.end,!0)}),E.register(n.addDisposableDomListener(window,"resize",function(){return E.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var T=new IntersectionObserver(function(w){return E._onIntersectionChange(w[w.length-1])},{threshold:0});T.observe(p),E.register({dispose:function(){return T.disconnect()}})}return E}return b(s,a),Object.defineProperty(s.prototype,"onDimensionsChange",{get:function(){return this._onDimensionsChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onRenderedBufferChange",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onRefreshRequest",{get:function(){return this._onRefreshRequest.event},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dimensions",{get:function(){return this._renderer.dimensions},enumerable:!1,configurable:!0}),s.prototype._onIntersectionChange=function(u){this._isPaused=u.intersectionRatio===0,!this._isPaused&&this._needsFullRefresh&&(this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)},s.prototype.refreshRows=function(u,h,p){p===void 0&&(p=!1),this._isPaused?this._needsFullRefresh=!0:(p||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(u,h,this._rowCount))},s.prototype._renderRows=function(u,h){this._renderer.renderRows(u,h),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:h}),this._isNextRenderRedrawOnly=!0},s.prototype.resize=function(u,h){this._rowCount=h,this._fireOnCanvasResize()},s.prototype.changeOptions=function(){this._renderer.onOptionsChanged(),this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize()},s.prototype._fireOnCanvasResize=function(){this._renderer.dimensions.canvasWidth===this._canvasWidth&&this._renderer.dimensions.canvasHeight===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions)},s.prototype.dispose=function(){a.prototype.dispose.call(this)},s.prototype.setRenderer=function(u){var h=this;this._renderer.dispose(),this._renderer=u,this._renderer.onRequestRedraw(function(p){return h.refreshRows(p.start,p.end,!0)}),this._needsSelectionRefresh=!0,this._fullRefresh()},s.prototype._fullRefresh=function(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)},s.prototype.setColors=function(u){this._renderer.setColors(u),this._fullRefresh()},s.prototype.onDevicePixelRatioChange=function(){this._renderer.onDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1)},s.prototype.onResize=function(u,h){this._renderer.onResize(u,h),this._fullRefresh()},s.prototype.onCharSizeChanged=function(){this._renderer.onCharSizeChanged()},s.prototype.onBlur=function(){this._renderer.onBlur()},s.prototype.onFocus=function(){this._renderer.onFocus()},s.prototype.onSelectionChanged=function(u,h,p){this._selectionState.start=u,this._selectionState.end=h,this._selectionState.columnSelectMode=p,this._renderer.onSelectionChanged(u,h,p)},s.prototype.onCursorMove=function(){this._renderer.onCursorMove()},s.prototype.clear=function(){this._renderer.clear()},s.prototype.registerCharacterJoiner=function(u){return this._renderer.registerCharacterJoiner(u)},s.prototype.deregisterCharacterJoiner=function(u){return this._renderer.deregisterCharacterJoiner(u)},s=g([f(3,e.IOptionsService),f(4,l.ICharSizeService),f(5,e.IBufferService)],s)}(r.Disposable);x.RenderService=t},function(O,x,C){"use strict";var A=this&&this.__decorate||function(r,i,n,e){var l,t=arguments.length,a=t<3?i:e===null?e=Object.getOwnPropertyDescriptor(i,n):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,i,n,e);else for(var s=r.length-1;s>=0;s--)(l=r[s])&&(a=(t<3?l(a):t>3?l(i,n,a):l(i,n))||a);return t>3&&a&&Object.defineProperty(i,n,a),a},b=this&&this.__param||function(r,i){return function(n,e){i(n,e,r)}};Object.defineProperty(x,"__esModule",{value:!0}),x.CharSizeService=void 0;var g=C(1),f=C(0),c=function(){function r(i,n,e){this._optionsService=e,this.width=0,this.height=0,this._onCharSizeChange=new f.EventEmitter,this._measureStrategy=new o(i,n,this._optionsService)}return Object.defineProperty(r.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),r.prototype.measure=function(){var i=this._measureStrategy.measure();i.width===this.width&&i.height===this.height||(this.width=i.width,this.height=i.height,this._onCharSizeChange.fire())},r=A([b(2,g.IOptionsService)],r)}();x.CharSizeService=c;var o=function(){function r(i,n,e){this._document=i,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 i=this._measureElement.getBoundingClientRect();return i.width!==0&&i.height!==0&&(this._result.width=i.width,this._result.height=Math.ceil(i.height)),this._result},r}()},function(O,x,C){"use strict";var A=this&&this.__decorate||function(o,r,i,n){var e,l=arguments.length,t=l<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,i):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,r,i,n);else for(var a=o.length-1;a>=0;a--)(e=o[a])&&(t=(l<3?e(t):l>3?e(r,i,t):e(r,i))||t);return l>3&&t&&Object.defineProperty(r,i,t),t},b=this&&this.__param||function(o,r){return function(i,n){r(i,n,o)}};Object.defineProperty(x,"__esModule",{value:!0}),x.MouseService=void 0;var g=C(5),f=C(30),c=function(){function o(r,i){this._renderService=r,this._charSizeService=i}return o.prototype.getCoords=function(r,i,n,e,l){return f.getCoords(r,i,n,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,l)},o.prototype.getRawByteCoords=function(r,i,n,e){var l=this.getCoords(r,i,n,e);return f.getRawByteCoords(l)},o=A([b(0,g.IRenderService),b(1,g.ICharSizeService)],o)}();x.MouseService=c},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),g=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},f=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.Linkifier2=void 0;var c=C(1),o=C(0),r=C(2),i=C(7),n=function(e){function l(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 o.EventEmitter),a._onHideLinkUnderline=a.register(new o.EventEmitter),a.register(r.getDisposeArrayDisposable(a._linkCacheDisposables)),a}return b(l,e),Object.defineProperty(l.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),l.prototype.registerLinkProvider=function(t){var a=this;return this._linkProviders.push(t),{dispose:function(){var u=a._linkProviders.indexOf(t);u!==-1&&a._linkProviders.splice(u,1)}}},l.prototype.attachToDom=function(t,a,s){var u=this;this._element=t,this._mouseService=a,this._renderService=s,this.register(i.addDisposableDomListener(this._element,"mouseleave",function(){u._isMouseOut=!0,u._clearCurrentLink()})),this.register(i.addDisposableDomListener(this._element,"mousemove",this._onMouseMove.bind(this))),this.register(i.addDisposableDomListener(this._element,"click",this._onClick.bind(this)))},l.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 s=t.composedPath(),u=0;u<s.length;u++){var h=s[u];if(h.classList.contains("xterm"))break;if(h.classList.contains("xterm-hover"))return}this._lastBufferCell&&a.x===this._lastBufferCell.x&&a.y===this._lastBufferCell.y||(this._onHover(a),this._lastBufferCell=a)}}},l.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))},l.prototype._askForLink=function(t,a){var s=this;this._activeProviderReplies&&a||(this._activeProviderReplies=new Map,this._activeLine=t.y);var u=!1;this._linkProviders.forEach(function(h,p){var m;a?((m=s._activeProviderReplies)===null||m===void 0?void 0:m.get(p))&&(u=s._checkLinkProviderResult(p,t,u)):h.provideLinks(t.y,function(v){var y,E;if(!s._isMouseOut){var T=v==null?void 0:v.map(function(w){return{link:w}});(y=s._activeProviderReplies)===null||y===void 0||y.set(p,T),u=s._checkLinkProviderResult(p,t,u),((E=s._activeProviderReplies)===null||E===void 0?void 0:E.size)===s._linkProviders.length&&s._removeIntersectingLinks(t.y,s._activeProviderReplies)}})})},l.prototype._removeIntersectingLinks=function(t,a){for(var s=new Set,u=0;u<a.size;u++){var h=a.get(u);if(h)for(var p=0;p<h.length;p++)for(var m=h[p],v=m.link.range.start.y<t?0:m.link.range.start.x,y=m.link.range.end.y>t?this._bufferService.cols:m.link.range.end.x,E=v;E<=y;E++){if(s.has(E)){h.splice(p--,1);break}s.add(E)}}},l.prototype._checkLinkProviderResult=function(t,a,s){var u,h=this;if(!this._activeProviderReplies)return s;for(var p=this._activeProviderReplies.get(t),m=!1,v=0;v<t;v++)this._activeProviderReplies.has(v)&&!this._activeProviderReplies.get(v)||(m=!0);if(!m&&p){var y=p.find(function(T){return h._linkAtPosition(T.link,a)});y&&(s=!0,this._handleNewLink(y))}if(this._activeProviderReplies.size===this._linkProviders.length&&!s)for(v=0;v<this._activeProviderReplies.size;v++){var E=(u=this._activeProviderReplies.get(v))===null||u===void 0?void 0:u.find(function(T){return h._linkAtPosition(T.link,a)});if(E){s=!0,this._handleNewLink(E);break}}return s},l.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)}},l.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))},l.prototype._handleNewLink=function(t){var a=this;if(this._element&&this._lastMouseEvent&&this._mouseService){var s=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);s&&this._linkAtPosition(t.link,s)&&(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 h,p;return(p=(h=a._currentLink)===null||h===void 0?void 0:h.state)===null||p===void 0?void 0:p.decorations.pointerCursor},set:function(h){var p,m;((p=a._currentLink)===null||p===void 0?void 0:p.state)&&a._currentLink.state.decorations.pointerCursor!==h&&(a._currentLink.state.decorations.pointerCursor=h,a._currentLink.state.isHovered&&((m=a._element)===null||m===void 0||m.classList.toggle("xterm-cursor-pointer",h)))}},underline:{get:function(){var h,p;return(p=(h=a._currentLink)===null||h===void 0?void 0:h.state)===null||p===void 0?void 0:p.decorations.underline},set:function(h){var p,m,v;((p=a._currentLink)===null||p===void 0?void 0:p.state)&&((v=(m=a._currentLink)===null||m===void 0?void 0:m.state)===null||v===void 0?void 0:v.decorations.underline)!==h&&(a._currentLink.state.decorations.underline=h,a._currentLink.state.isHovered&&a._fireUnderlineEvent(t.link,h))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(u){var h=u.start===0?0:u.start+1+a._bufferService.buffer.ydisp;a._clearCurrentLink(h,u.end+1+a._bufferService.buffer.ydisp)})))}},l.prototype._linkHover=function(t,a,s){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(s,a.text)},l.prototype._fireUnderlineEvent=function(t,a){var s=t.range,u=this._bufferService.buffer.ydisp,h=this._createLinkUnderlineEvent(s.start.x-1,s.start.y-u-1,s.end.x,s.end.y-u-1,void 0);(a?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(h)},l.prototype._linkLeave=function(t,a,s){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(s,a.text)},l.prototype._linkAtPosition=function(t,a){var s=t.range.start.y===t.range.end.y,u=t.range.start.y<a.y,h=t.range.end.y>a.y;return(s&&t.range.start.x<=a.x&&t.range.end.x>=a.x||u&&t.range.end.x>=a.x||h&&t.range.start.x<=a.x||u&&h)&&t.range.start.y<=a.y&&t.range.end.y>=a.y},l.prototype._positionFromMouseEvent=function(t,a,s){var u=s.getCoords(t,a,this._bufferService.cols,this._bufferService.rows);if(u)return{x:u[0],y:u[1]+this._bufferService.buffer.ydisp}},l.prototype._createLinkUnderlineEvent=function(t,a,s,u,h){return{x1:t,y1:a,x2:s,y2:u,cols:this._bufferService.cols,fg:h}},l=g([f(0,c.IBufferService)],l)}(r.Disposable);x.Linkifier2=n},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CoreBrowserService=void 0;var A=function(){function b(g){this._textarea=g}return Object.defineProperty(b.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),b}();x.CoreBrowserService=A},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(y,E){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,w){T.__proto__=w}||function(T,w){for(var S in w)w.hasOwnProperty(S)&&(T[S]=w[S])})(y,E)},function(v,y){function E(){this.constructor=v}A(v,y),v.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(x,"__esModule",{value:!0}),x.CoreTerminal=void 0;var g=C(2),f=C(1),c=C(66),o=C(67),r=C(68),i=C(74),n=C(75),e=C(0),l=C(76),t=C(77),a=C(78),s=C(80),u=C(81),h=C(19),p=C(82),m=function(v){function y(E){var T=v.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 i.OptionsService(E),T._instantiationService.setService(f.IOptionsService,T.optionsService),T._bufferService=T.register(T._instantiationService.createInstance(r.BufferService)),T._instantiationService.setService(f.IBufferService,T._bufferService),T._logService=T._instantiationService.createInstance(o.LogService),T._instantiationService.setService(f.ILogService,T._logService),T._coreService=T.register(T._instantiationService.createInstance(n.CoreService,function(){return T.scrollToBottom()})),T._instantiationService.setService(f.ICoreService,T._coreService),T._coreMouseService=T._instantiationService.createInstance(l.CoreMouseService),T._instantiationService.setService(f.ICoreMouseService,T._coreMouseService),T._dirtyRowService=T._instantiationService.createInstance(t.DirtyRowService),T._instantiationService.setService(f.IDirtyRowService,T._dirtyRowService),T.unicodeService=T._instantiationService.createInstance(a.UnicodeService),T._instantiationService.setService(f.IUnicodeService,T.unicodeService),T._charsetService=T._instantiationService.createInstance(s.CharsetService),T._instantiationService.setService(f.ICharsetService,T._charsetService),T._inputHandler=new h.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(w){return T._updateOptions(w)})),T._writeBuffer=new p.WriteBuffer(function(w){return T._inputHandler.parse(w)}),T}return b(y,v),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 E;this._isDisposed||(v.prototype.dispose.call(this),(E=this._windowsMode)===null||E===void 0||E.dispose(),this._windowsMode=void 0)},y.prototype.write=function(E,T){this._writeBuffer.write(E,T)},y.prototype.writeSync=function(E){this._writeBuffer.writeSync(E)},y.prototype.resize=function(E,T){isNaN(E)||isNaN(T)||(E=Math.max(E,r.MINIMUM_COLS),T=Math.max(T,r.MINIMUM_ROWS),this._bufferService.resize(E,T))},y.prototype.scroll=function(E,T){T===void 0&&(T=!1);var w,S=this._bufferService.buffer;(w=this._cachedBlankLine)&&w.length===this.cols&&w.getFg(0)===E.fg&&w.getBg(0)===E.bg||(w=S.getBlankLine(E,T),this._cachedBlankLine=w),w.isWrapped=T;var _=S.ybase+S.scrollTop,I=S.ybase+S.scrollBottom;if(S.scrollTop===0){var L=S.lines.isFull;I===S.lines.length-1?L?S.lines.recycle().copyFrom(w):S.lines.push(w.clone()):S.lines.splice(I+1,0,w.clone()),L?this._bufferService.isUserScrolling&&(S.ydisp=Math.max(S.ydisp-1,0)):(S.ybase++,this._bufferService.isUserScrolling||S.ydisp++)}else{var N=I-_+1;S.lines.shiftElements(_+1,N-1,-1),S.lines.set(I,w.clone())}this._bufferService.isUserScrolling||(S.ydisp=S.ybase),this._dirtyRowService.markRangeDirty(S.scrollTop,S.scrollBottom),this._onScroll.fire(S.ydisp)},y.prototype.scrollLines=function(E,T){var w=this._bufferService.buffer;if(E<0){if(w.ydisp===0)return;this._bufferService.isUserScrolling=!0}else E+w.ydisp>=w.ybase&&(this._bufferService.isUserScrolling=!1);var S=w.ydisp;w.ydisp=Math.max(Math.min(w.ydisp+E,w.ybase),0),S!==w.ydisp&&(T||this._onScroll.fire(w.ydisp))},y.prototype.scrollPages=function(E){this.scrollLines(E*(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(E){var T=E-this._bufferService.buffer.ydisp;T!==0&&this.scrollLines(T)},y.prototype.addEscHandler=function(E,T){return this._inputHandler.addEscHandler(E,T)},y.prototype.addDcsHandler=function(E,T){return this._inputHandler.addDcsHandler(E,T)},y.prototype.addCsiHandler=function(E,T){return this._inputHandler.addCsiHandler(E,T)},y.prototype.addOscHandler=function(E,T){return this._inputHandler.addOscHandler(E,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(E){var T;switch(E){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 E=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(E._bufferService),!1})),this._windowsMode={dispose:function(){for(var S=0,_=T;S<_.length;S++)_[S].dispose()}}}},y}(g.Disposable);x.CoreTerminal=m},function(O,x,C){"use strict";var A=this&&this.__spreadArrays||function(){for(var o=0,r=0,i=arguments.length;r<i;r++)o+=arguments[r].length;var n=Array(o),e=0;for(r=0;r<i;r++)for(var l=arguments[r],t=0,a=l.length;t<a;t++,e++)n[e]=l[t];return n};Object.defineProperty(x,"__esModule",{value:!0}),x.InstantiationService=x.ServiceCollection=void 0;var b=C(1),g=C(14),f=function(){function o(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._entries=new Map;for(var n=0,e=r;n<e.length;n++){var l=e[n],t=l[0],a=l[1];this.set(t,a)}}return o.prototype.set=function(r,i){var n=this._entries.get(r);return this._entries.set(r,i),n},o.prototype.forEach=function(r){this._entries.forEach(function(i,n){return r(n,i)})},o.prototype.has=function(r){return this._entries.has(r)},o.prototype.get=function(r){return this._entries.get(r)},o}();x.ServiceCollection=f;var c=function(){function o(){this._services=new f,this._services.set(b.IInstantiationService,this)}return o.prototype.setService=function(r,i){this._services.set(r,i)},o.prototype.getService=function(r){return this._services.get(r)},o.prototype.createInstance=function(r){for(var i=[],n=1;n<arguments.length;n++)i[n-1]=arguments[n];for(var e=g.getServiceDependencies(r).sort(function(p,m){return p.index-m.index}),l=[],t=0,a=e;t<a.length;t++){var s=a[t],u=this._services.get(s.id);if(!u)throw new Error("[createInstance] "+r.name+" depends on UNKNOWN service "+s.id+".");l.push(u)}var h=e.length>0?e[0].index:i.length;if(i.length!==h)throw new Error("[createInstance] First service dependency of "+r.name+" at position "+(h+1)+" conflicts with "+i.length+" static arguments");return new(r.bind.apply(r,A([void 0],A(i,l))))},o}();x.InstantiationService=c},function(O,x,C){"use strict";var A=this&&this.__decorate||function(i,n,e,l){var t,a=arguments.length,s=a<3?n:l===null?l=Object.getOwnPropertyDescriptor(n,e):l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(i,n,e,l);else for(var u=i.length-1;u>=0;u--)(t=i[u])&&(s=(a<3?t(s):a>3?t(n,e,s):t(n,e))||s);return a>3&&s&&Object.defineProperty(n,e,s),s},b=this&&this.__param||function(i,n){return function(e,l){n(e,l,i)}},g=this&&this.__spreadArrays||function(){for(var i=0,n=0,e=arguments.length;n<e;n++)i+=arguments[n].length;var l=Array(i),t=0;for(n=0;n<e;n++)for(var a=arguments[n],s=0,u=a.length;s<u;s++,t++)l[t]=a[s];return l};Object.defineProperty(x,"__esModule",{value:!0}),x.LogService=x.LogLevel=void 0;var f,c=C(1);!function(i){i[i.DEBUG=0]="DEBUG",i[i.INFO=1]="INFO",i[i.WARN=2]="WARN",i[i.ERROR=3]="ERROR",i[i.OFF=4]="OFF"}(f=x.LogLevel||(x.LogLevel={}));var o={debug:f.DEBUG,info:f.INFO,warn:f.WARN,error:f.ERROR,off:f.OFF},r=function(){function i(n){var e=this;this._optionsService=n,this._updateLogLevel(),this._optionsService.onOptionChange(function(l){l==="logLevel"&&e._updateLogLevel()})}return i.prototype._updateLogLevel=function(){this._logLevel=o[this._optionsService.options.logLevel]},i.prototype._evalLazyOptionalParams=function(n){for(var e=0;e<n.length;e++)typeof n[e]=="function"&&(n[e]=n[e]())},i.prototype._log=function(n,e,l){this._evalLazyOptionalParams(l),n.call.apply(n,g([console,"xterm.js: "+e],l))},i.prototype.debug=function(n){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=f.DEBUG&&this._log(console.log,n,e)},i.prototype.info=function(n){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=f.INFO&&this._log(console.info,n,e)},i.prototype.warn=function(n){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=f.WARN&&this._log(console.warn,n,e)},i.prototype.error=function(n){for(var e=[],l=1;l<arguments.length;l++)e[l-1]=arguments[l];this._logLevel<=f.ERROR&&this._log(console.error,n,e)},i=A([b(0,c.IOptionsService)],i)}();x.LogService=r},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(l,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var u in s)s.hasOwnProperty(u)&&(a[u]=s[u])})(l,t)},function(e,l){function t(){this.constructor=e}A(e,l),e.prototype=l===null?Object.create(l):(t.prototype=l.prototype,new t)}),g=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},f=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.BufferService=x.MINIMUM_ROWS=x.MINIMUM_COLS=void 0;var c=C(1),o=C(69),r=C(0),i=C(2);x.MINIMUM_COLS=2,x.MINIMUM_ROWS=1;var n=function(e){function l(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,x.MINIMUM_COLS),a.rows=Math.max(t.options.rows,x.MINIMUM_ROWS),a.buffers=new o.BufferSet(t,a),a}return b(l,e),Object.defineProperty(l.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),l.prototype.dispose=function(){e.prototype.dispose.call(this),this.buffers.dispose()},l.prototype.resize=function(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})},l.prototype.reset=function(){this.buffers.dispose(),this.buffers=new o.BufferSet(this._optionsService,this),this.isUserScrolling=!1},l=g([f(0,c.IOptionsService)],l)}(i.Disposable);x.BufferService=n},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(r,i){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var l in e)e.hasOwnProperty(l)&&(n[l]=e[l])})(r,i)},function(o,r){function i(){this.constructor=o}A(o,r),o.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)});Object.defineProperty(x,"__esModule",{value:!0}),x.BufferSet=void 0;var g=C(70),f=C(0),c=function(o){function r(i,n){var e=o.call(this)||this;return e._onBufferActivate=e.register(new f.EventEmitter),e._normal=new g.Buffer(!0,i,n),e._normal.fillViewportRows(),e._alt=new g.Buffer(!1,i,n),e._activeBuffer=e._normal,e.setupTabStops(),e}return b(r,o),Object.defineProperty(r.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),r.prototype.activateNormalBuffer=function(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))},r.prototype.activateAltBuffer=function(i){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(i),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))},r.prototype.resize=function(i,n){this._normal.resize(i,n),this._alt.resize(i,n)},r.prototype.setupTabStops=function(i){this._normal.setupTabStops(i),this._alt.setupTabStops(i)},r}(C(2).Disposable);x.BufferSet=c},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.BufferStringIterator=x.Buffer=x.MAX_BUFFER_SIZE=void 0;var A=C(71),b=C(16),g=C(4),f=C(3),c=C(72),o=C(73),r=C(20),i=C(6);x.MAX_BUFFER_SIZE=4294967295;var n=function(){function l(t,a,s){this._hasScrollback=t,this._optionsService=a,this._bufferService=s,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.savedY=0,this.savedX=0,this.savedCurAttrData=b.DEFAULT_ATTR_DATA.clone(),this.savedCharset=r.DEFAULT_CHARSET,this.markers=[],this._nullCell=g.CellData.fromCharData([0,f.NULL_CELL_CHAR,f.NULL_CELL_WIDTH,f.NULL_CELL_CODE]),this._whitespaceCell=g.CellData.fromCharData([0,f.WHITESPACE_CELL_CHAR,f.WHITESPACE_CELL_WIDTH,f.WHITESPACE_CELL_CODE]),this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new A.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}return l.prototype.getNullCell=function(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 i.ExtendedAttrs),this._nullCell},l.prototype.getWhitespaceCell=function(t){return t?(this._whitespaceCell.fg=t.fg,this._whitespaceCell.bg=t.bg,this._whitespaceCell.extended=t.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new i.ExtendedAttrs),this._whitespaceCell},l.prototype.getBlankLine=function(t,a){return new b.BufferLine(this._bufferService.cols,this.getNullCell(t),a)},Object.defineProperty(l.prototype,"hasScrollback",{get:function(){return this._hasScrollback&&this.lines.maxLength>this._rows},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isCursorInViewport",{get:function(){var a=this.ybase+this.y-this.ydisp;return a>=0&&a<this._rows},enumerable:!1,configurable:!0}),l.prototype._getCorrectBufferLength=function(t){if(!this._hasScrollback)return t;var a=t+this._optionsService.options.scrollback;return a>x.MAX_BUFFER_SIZE?x.MAX_BUFFER_SIZE:a},l.prototype.fillViewportRows=function(t){if(this.lines.length===0){t===void 0&&(t=b.DEFAULT_ATTR_DATA);for(var a=this._rows;a--;)this.lines.push(this.getBlankLine(t))}},l.prototype.clear=function(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new A.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()},l.prototype.resize=function(t,a){var s=this.getNullCell(b.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 h=0;h<this.lines.length;h++)this.lines.get(h).resize(t,s);var p=0;if(this._rows<a)for(var m=this._rows;m<a;m++)this.lines.length<a+this.ybase&&(this._optionsService.options.windowsMode?this.lines.push(new b.BufferLine(t,s)):this.ybase>0&&this.lines.length<=this.ybase+this.y+p+1?(this.ybase--,p++,this.ydisp>0&&this.ydisp--):this.lines.push(new b.BufferLine(t,s)));else for(m=this._rows;m>a;m--)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 v=this.lines.length-u;v>0&&(this.lines.trimStart(v),this.ybase=Math.max(this.ybase-v,0),this.ydisp=Math.max(this.ydisp-v,0),this.savedY=Math.max(this.savedY-v,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(h=0;h<this.lines.length;h++)this.lines.get(h).resize(t,s);this._cols=t,this._rows=a},Object.defineProperty(l.prototype,"_isReflowEnabled",{get:function(){return this._hasScrollback&&!this._optionsService.options.windowsMode},enumerable:!1,configurable:!0}),l.prototype._reflow=function(t,a){this._cols!==t&&(t>this._cols?this._reflowLarger(t,a):this._reflowSmaller(t,a))},l.prototype._reflowLarger=function(t,a){var s=c.reflowLargerGetLinesToRemove(this.lines,this._cols,t,this.ybase+this.y,this.getNullCell(b.DEFAULT_ATTR_DATA));if(s.length>0){var u=c.reflowLargerCreateNewLayout(this.lines,s);c.reflowLargerApplyNewLayout(this.lines,u.layout),this._reflowLargerAdjustViewport(t,a,u.countRemoved)}},l.prototype._reflowLargerAdjustViewport=function(t,a,s){for(var u=this.getNullCell(b.DEFAULT_ATTR_DATA),h=s;h-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<a&&this.lines.push(new b.BufferLine(t,u))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-s,0)},l.prototype._reflowSmaller=function(t,a){for(var s=this.getNullCell(b.DEFAULT_ATTR_DATA),u=[],h=0,p=this.lines.length-1;p>=0;p--){var m=this.lines.get(p);if(!(!m||!m.isWrapped&&m.getTrimmedLength()<=t)){for(var v=[m];m.isWrapped&&p>0;)m=this.lines.get(--p),v.unshift(m);var y=this.ybase+this.y;if(!(y>=p&&y<p+v.length)){var E=v[v.length-1].getTrimmedLength(),T=c.reflowSmallerGetNewLineLengths(v,this._cols,t),w=T.length-v.length,S=void 0;S=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+w):Math.max(0,this.lines.length-this.lines.maxLength+w);for(var _=[],I=0;I<w;I++){var L=this.getBlankLine(b.DEFAULT_ATTR_DATA,!0);_.push(L)}_.length>0&&(u.push({start:p+v.length+h,newLines:_}),h+=_.length),v.push.apply(v,_);var N=T.length-1,R=T[N];R===0&&(R=T[--N]);for(var D=v.length-w-1,F=E;D>=0;){var M=Math.min(F,R);if(v[N].copyCellsFrom(v[D],F-M,R-M,M,!0),(R-=M)===0&&(R=T[--N]),(F-=M)===0){D--;var U=Math.max(D,0);F=c.getWrappedLineTrimmedLength(v,U,this._cols)}}for(I=0;I<v.length;I++)T[I]<t&&v[I].setCell(T[I],s);for(var B=w-S;B-- >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+h)-a&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+w,this.ybase+a-1)}}}if(u.length>0){var j=[],W=[];for(I=0;I<this.lines.length;I++)W.push(this.lines.get(I));var V=this.lines.length,z=V-1,J=0,q=u[J];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+h);var de=0;for(I=Math.min(this.lines.maxLength-1,V+h-1);I>=0;I--)if(q&&q.start>z+de){for(var ae=q.newLines.length-1;ae>=0;ae--)this.lines.set(I--,q.newLines[ae]);I++,j.push({index:z+1,amount:q.newLines.length}),de+=q.newLines.length,q=u[++J]}else this.lines.set(I,W[z--]);var ve=0;for(I=j.length-1;I>=0;I--)j[I].index+=ve,this.lines.onInsertEmitter.fire(j[I]),ve+=j[I].amount;var _e=Math.max(0,V+h-this.lines.maxLength);_e>0&&this.lines.onTrimEmitter.fire(_e)}},l.prototype.stringIndexToBufferIndex=function(t,a,s){for(s===void 0&&(s=!1);a;){var u=this.lines.get(t);if(!u)return[-1,-1];for(var h=s?u.getTrimmedLength():u.length,p=0;p<h;++p)if(u.get(p)[f.CHAR_DATA_WIDTH_INDEX]&&(a-=u.get(p)[f.CHAR_DATA_CHAR_INDEX].length||1),a<0)return[t,p];t++}return[t,0]},l.prototype.translateBufferLineToString=function(t,a,s,u){s===void 0&&(s=0);var h=this.lines.get(t);return h?h.translateToString(a,s,u):""},l.prototype.getWrappedRangeForLine=function(t){for(var a=t,s=t;a>0&&this.lines.get(a).isWrapped;)a--;for(;s+1<this.lines.length&&this.lines.get(s+1).isWrapped;)s++;return{first:a,last:s}},l.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},l.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},l.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},l.prototype.addMarker=function(t){var a=this,s=new o.Marker(t);return this.markers.push(s),s.register(this.lines.onTrim(function(u){s.line-=u,s.line<0&&s.dispose()})),s.register(this.lines.onInsert(function(u){s.line>=u.index&&(s.line+=u.amount)})),s.register(this.lines.onDelete(function(u){s.line>=u.index&&s.line<u.index+u.amount&&s.dispose(),s.line>u.index&&(s.line-=u.amount)})),s.register(s.onDispose(function(){return a._removeMarker(s)})),s},l.prototype._removeMarker=function(t){this.markers.splice(this.markers.indexOf(t),1)},l.prototype.iterator=function(t,a,s,u,h){return new e(this,t,a,s,u,h)},l}();x.Buffer=n;var e=function(){function l(t,a,s,u,h,p){s===void 0&&(s=0),u===void 0&&(u=t.lines.length),h===void 0&&(h=0),p===void 0&&(p=0),this._buffer=t,this._trimRight=a,this._startIndex=s,this._endIndex=u,this._startOverscan=h,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 l.prototype.hasNext=function(){return this._current<this._endIndex},l.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="",s=t.first;s<=t.last;++s)a+=this._buffer.translateBufferLineToString(s,this._trimRight);return this._current=t.last+1,{range:t,content:a}},l}();x.BufferStringIterator=e},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CircularList=void 0;var A=C(0),b=function(){function g(f){this._maxLength=f,this.onDeleteEmitter=new A.EventEmitter,this.onInsertEmitter=new A.EventEmitter,this.onTrimEmitter=new A.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(g.prototype,"onDelete",{get:function(){return this.onDeleteEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onInsert",{get:function(){return this.onInsertEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"onTrim",{get:function(){return this.onTrimEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"maxLength",{get:function(){return this._maxLength},set:function(c){if(this._maxLength!==c){for(var o=new Array(c),r=0;r<Math.min(c,this.length);r++)o[r]=this._array[this._getCyclicIndex(r)];this._array=o,this._maxLength=c,this._startIndex=0}},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"length",{get:function(){return this._length},set:function(c){if(c>this._length)for(var o=this._length;o<c;o++)this._array[o]=void 0;this._length=c},enumerable:!1,configurable:!0}),g.prototype.get=function(f){return this._array[this._getCyclicIndex(f)]},g.prototype.set=function(f,c){this._array[this._getCyclicIndex(f)]=c},g.prototype.push=function(f){this._array[this._getCyclicIndex(this._length)]=f,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++},g.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(g.prototype,"isFull",{get:function(){return this._length===this._maxLength},enumerable:!1,configurable:!0}),g.prototype.pop=function(){return this._array[this._getCyclicIndex(this._length---1)]},g.prototype.splice=function(f,c){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];if(c){for(var i=f;i<this._length-c;i++)this._array[this._getCyclicIndex(i)]=this._array[this._getCyclicIndex(i+c)];this._length-=c}for(i=this._length-1;i>=f;i--)this._array[this._getCyclicIndex(i+o.length)]=this._array[this._getCyclicIndex(i)];for(i=0;i<o.length;i++)this._array[this._getCyclicIndex(f+i)]=o[i];if(this._length+o.length>this._maxLength){var n=this._length+o.length-this._maxLength;this._startIndex+=n,this._length=this._maxLength,this.onTrimEmitter.fire(n)}else this._length+=o.length},g.prototype.trimStart=function(f){f>this._length&&(f=this._length),this._startIndex+=f,this._length-=f,this.onTrimEmitter.fire(f)},g.prototype.shiftElements=function(f,c,o){if(!(c<=0)){if(f<0||f>=this._length)throw new Error("start argument out of range");if(f+o<0)throw new Error("Cannot shift elements in list beyond index 0");if(o>0){for(var r=c-1;r>=0;r--)this.set(f+r+o,this.get(f+r));var i=f+c+o-this._length;if(i>0)for(this._length+=i;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(r=0;r<c;r++)this.set(f+r+o,this.get(f+r))}},g.prototype._getCyclicIndex=function(f){return(this._startIndex+f)%this._maxLength},g}();x.CircularList=b},function(O,x,C){"use strict";function A(b,g,f){if(g===b.length-1)return b[g].getTrimmedLength();var c=!b[g].hasContent(f-1)&&b[g].getWidth(f-1)===1,o=b[g+1].getWidth(0)===2;return c&&o?f-1:f}Object.defineProperty(x,"__esModule",{value:!0}),x.getWrappedLineTrimmedLength=x.reflowSmallerGetNewLineLengths=x.reflowLargerApplyNewLayout=x.reflowLargerCreateNewLayout=x.reflowLargerGetLinesToRemove=void 0,x.reflowLargerGetLinesToRemove=function(b,g,f,c,o){for(var r=[],i=0;i<b.length-1;i++){var n=i,e=b.get(++n);if(e.isWrapped){for(var l=[b.get(i)];n<b.length&&e.isWrapped;)l.push(e),e=b.get(++n);if(c>=i&&c<n)i+=l.length-1;else{for(var t=0,a=A(l,t,g),s=1,u=0;s<l.length;){var h=A(l,s,g),p=h-u,m=f-a,v=Math.min(p,m);l[t].copyCellsFrom(l[s],u,a,v,!1),(a+=v)===f&&(t++,a=0),(u+=v)===h&&(s++,u=0),a===0&&t!==0&&l[t-1].getWidth(f-1)===2&&(l[t].copyCellsFrom(l[t-1],f-1,a++,1,!1),l[t-1].setCell(f-1,o))}l[t].replaceCells(a,f,o);for(var y=0,E=l.length-1;E>0&&(E>t||l[E].getTrimmedLength()===0);E--)y++;y>0&&(r.push(i+l.length-y),r.push(y)),i+=l.length-1}}}return r},x.reflowLargerCreateNewLayout=function(b,g){for(var f=[],c=0,o=g[c],r=0,i=0;i<b.length;i++)if(o===i){var n=g[++c];b.onDeleteEmitter.fire({index:i-r,amount:n}),i+=n-1,r+=n,o=g[++c]}else f.push(i);return{layout:f,countRemoved:r}},x.reflowLargerApplyNewLayout=function(b,g){for(var f=[],c=0;c<g.length;c++)f.push(b.get(g[c]));for(c=0;c<f.length;c++)b.set(c,f[c]);b.length=g.length},x.reflowSmallerGetNewLineLengths=function(b,g,f){for(var c=[],o=b.map(function(a,s){return A(b,s,g)}).reduce(function(a,s){return a+s}),r=0,i=0,n=0;n<o;){if(o-n<f){c.push(o-n);break}r+=f;var e=A(b,i,g);r>e&&(r-=e,i++);var l=b[i].getWidth(r-1)===2;l&&r--;var t=l?f-1:f;c.push(t),n+=t}return c},x.getWrappedLineTrimmedLength=A},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(o,r){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var e in n)n.hasOwnProperty(e)&&(i[e]=n[e])})(o,r)},function(c,o){function r(){this.constructor=c}A(c,o),c.prototype=o===null?Object.create(o):(r.prototype=o.prototype,new r)});Object.defineProperty(x,"__esModule",{value:!0}),x.Marker=void 0;var g=C(0),f=function(c){function o(r){var i=c.call(this)||this;return i.line=r,i._id=o._nextId++,i.isDisposed=!1,i._onDispose=new g.EventEmitter,i}return b(o,c),Object.defineProperty(o.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),o.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},o._nextId=1,o}(C(2).Disposable);x.Marker=f},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.OptionsService=x.DEFAULT_OPTIONS=x.DEFAULT_BELL_SOUND=void 0;var A=C(0),b=C(11),g=C(33);x.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",x.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:x.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:b.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var f=["cols","rows"],c=function(){function o(r){this._onOptionChange=new A.EventEmitter,this.options=g.clone(x.DEFAULT_OPTIONS);for(var i=0,n=Object.keys(r);i<n.length;i++){var e=n[i];if(e in this.options){var l=r[e];this.options[e]=l}}}return Object.defineProperty(o.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),o.prototype.setOption=function(r,i){if(!(r in x.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');if(f.indexOf(r)!==-1)throw new Error('Option "'+r+'" can only be set in the constructor');this.options[r]!==i&&(i=this._sanitizeAndValidateOption(r,i),this.options[r]!==i&&(this.options[r]=i,this._onOptionChange.fire(r)))},o.prototype._sanitizeAndValidateOption=function(r,i){switch(r){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":i||(i=x.DEFAULT_OPTIONS[r]);break;case"cursorWidth":i=Math.floor(i);case"lineHeight":case"tabStopWidth":if(i<1)throw new Error(r+" cannot be less than 1, value: "+i);break;case"minimumContrastRatio":i=Math.max(1,Math.min(21,Math.round(10*i)/10));break;case"scrollback":if((i=Math.min(i,4294967295))<0)throw new Error(r+" cannot be less than 0, value: "+i);break;case"fastScrollSensitivity":case"scrollSensitivity":if(i<=0)throw new Error(r+" cannot be less than or equal to 0, value: "+i)}return i},o.prototype.getOption=function(r){if(!(r in x.DEFAULT_OPTIONS))throw new Error('No option with key "'+r+'"');return this.options[r]},o}();x.OptionsService=c},function(O,x,C){"use strict";var A,b=this&&this.__extends||(A=function(a,s){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var p in h)h.hasOwnProperty(p)&&(u[p]=h[p])})(a,s)},function(t,a){function s(){this.constructor=t}A(t,a),t.prototype=a===null?Object.create(a):(s.prototype=a.prototype,new s)}),g=this&&this.__decorate||function(t,a,s,u){var h,p=arguments.length,m=p<3?a:u===null?u=Object.getOwnPropertyDescriptor(a,s):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")m=Reflect.decorate(t,a,s,u);else for(var v=t.length-1;v>=0;v--)(h=t[v])&&(m=(p<3?h(m):p>3?h(a,s,m):h(a,s))||m);return p>3&&m&&Object.defineProperty(a,s,m),m},f=this&&this.__param||function(t,a){return function(s,u){a(s,u,t)}};Object.defineProperty(x,"__esModule",{value:!0}),x.CoreService=void 0;var c=C(1),o=C(0),r=C(33),i=C(2),n=Object.freeze({insertMode:!1}),e=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),l=function(t){function a(s,u,h,p){var m=t.call(this)||this;return m._bufferService=u,m._logService=h,m._optionsService=p,m.isCursorInitialized=!1,m.isCursorHidden=!1,m._onData=m.register(new o.EventEmitter),m._onUserInput=m.register(new o.EventEmitter),m._onBinary=m.register(new o.EventEmitter),m._scrollToBottom=s,m.register({dispose:function(){return m._scrollToBottom=void 0}}),m.modes=r.clone(n),m.decPrivateModes=r.clone(e),m}return b(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(s,u){if(u===void 0&&(u=!1),!this._optionsService.options.disableStdin){var h=this._bufferService.buffer;h.ybase!==h.ydisp&&this._scrollToBottom(),u&&this._onUserInput.fire(),this._logService.debug('sending data "'+s+'"',function(){return s.split("").map(function(p){return p.charCodeAt(0)})}),this._onData.fire(s)}},a.prototype.triggerBinaryEvent=function(s){this._optionsService.options.disableStdin||(this._logService.debug('sending binary "'+s+'"',function(){return s.split("").map(function(u){return u.charCodeAt(0)})}),this._onBinary.fire(s))},a=g([f(1,c.IBufferService),f(2,c.ILogService),f(3,c.IOptionsService)],a)}(i.Disposable);x.CoreService=l},function(O,x,C){"use strict";var A=this&&this.__decorate||function(e,l,t,a){var s,u=arguments.length,h=u<3?l:a===null?a=Object.getOwnPropertyDescriptor(l,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")h=Reflect.decorate(e,l,t,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(h=(u<3?s(h):u>3?s(l,t,h):s(l,t))||h);return u>3&&h&&Object.defineProperty(l,t,h),h},b=this&&this.__param||function(e,l){return function(t,a){l(t,a,e)}};Object.defineProperty(x,"__esModule",{value:!0}),x.CoreMouseService=void 0;var g=C(1),f=C(0),c={NONE:{events:0,restrict:function(){return!1}},X10:{events:1,restrict:function(l){return l.button!==4&&l.action===1&&(l.ctrl=!1,l.alt=!1,l.shift=!1,!0)}},VT200:{events:19,restrict:function(l){return l.action!==32}},DRAG:{events:23,restrict:function(l){return l.action!==32||l.button!==3}},ANY:{events:31,restrict:function(l){return!0}}};function o(e,l){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||l||(t|=3)),t}var r=String.fromCharCode,i={DEFAULT:function(l){var t=[o(l,!1)+32,l.col+32,l.row+32];return t[0]>255||t[1]>255||t[2]>255?"":""+r(t[0])+r(t[1])+r(t[2])},SGR:function(l){var t=l.action===0&&l.button!==4?"m":"M";return"[<"+o(l,!0)+";"+l.col+";"+l.row+t}},n=function(){function e(l,t){this._bufferService=l,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._onProtocolChange=new f.EventEmitter,this._lastEvent=null;for(var a=0,s=Object.keys(c);a<s.length;a++){var u=s[a];this.addProtocol(u,c[u])}for(var h=0,p=Object.keys(i);h<p.length;h++){var m=p[h];this.addEncoding(m,i[m])}this.reset()}return e.prototype.addProtocol=function(l,t){this._protocols[l]=t},e.prototype.addEncoding=function(l,t){this._encodings[l]=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(l){if(l.col<0||l.col>=this._bufferService.cols||l.row<0||l.row>=this._bufferService.rows)return!1;if(l.button===4&&l.action===32)return!1;if(l.button===3&&l.action!==32)return!1;if(l.button!==4&&(l.action===2||l.action===3))return!1;if(l.col++,l.row++,l.action===32&&this._lastEvent&&this._compareEvents(this._lastEvent,l))return!1;if(!this._protocols[this._activeProtocol].restrict(l))return!1;var t=this._encodings[this._activeEncoding](l);return t&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=l,!0},e.prototype.explainEvents=function(l){return{down:!!(1&l),up:!!(2&l),drag:!!(4&l),move:!!(8&l),wheel:!!(16&l)}},e.prototype._compareEvents=function(l,t){return l.col===t.col&&l.row===t.row&&l.button===t.button&&l.action===t.action&&l.ctrl===t.ctrl&&l.alt===t.alt&&l.shift===t.shift},e=A([b(0,g.IBufferService),b(1,g.ICoreService)],e)}();x.CoreMouseService=n},function(O,x,C){"use strict";var A=this&&this.__decorate||function(c,o,r,i){var n,e=arguments.length,l=e<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(c,o,r,i);else for(var t=c.length-1;t>=0;t--)(n=c[t])&&(l=(e<3?n(l):e>3?n(o,r,l):n(o,r))||l);return e>3&&l&&Object.defineProperty(o,r,l),l},b=this&&this.__param||function(c,o){return function(r,i){o(r,i,c)}};Object.defineProperty(x,"__esModule",{value:!0}),x.DirtyRowService=void 0;var g=C(1),f=function(){function c(o){this._bufferService=o,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(o){o<this._start?this._start=o:o>this._end&&(this._end=o)},c.prototype.markRangeDirty=function(o,r){if(o>r){var i=o;o=r,r=i}o<this._start&&(this._start=o),r>this._end&&(this._end=r)},c.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},c=A([b(0,g.IBufferService)],c)}();x.DirtyRowService=f},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.UnicodeService=void 0;var A=C(0),b=C(79),g=function(){function f(){this._providers=Object.create(null),this._active="",this._onChange=new A.EventEmitter;var c=new b.UnicodeV6;this.register(c),this._active=c.version,this._activeProvider=c}return Object.defineProperty(f.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"versions",{get:function(){return Object.keys(this._providers)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"activeVersion",{get:function(){return this._active},set:function(o){if(!this._providers[o])throw new Error('unknown Unicode version "'+o+'"');this._active=o,this._activeProvider=this._providers[o],this._onChange.fire(o)},enumerable:!1,configurable:!0}),f.prototype.register=function(c){this._providers[c.version]=c},f.prototype.wcwidth=function(c){return this._activeProvider.wcwidth(c)},f.prototype.getStringCellWidth=function(c){for(var o=0,r=c.length,i=0;i<r;++i){var n=c.charCodeAt(i);if(55296<=n&&n<=56319){if(++i>=r)return o+this.wcwidth(n);var e=c.charCodeAt(i);56320<=e&&e<=57343?n=1024*(n-55296)+e-56320+65536:o+=this.wcwidth(e)}o+=this.wcwidth(n)}return o},f}();x.UnicodeService=g},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.UnicodeV6=void 0;var A,b=C(15),g=[[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]],f=[[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 o(){if(this.version="6",!A){A=new Uint8Array(65536),b.fill(A,1),A[0]=0,b.fill(A,0,1,32),b.fill(A,0,127,160),b.fill(A,2,4352,4448),A[9001]=2,A[9002]=2,b.fill(A,2,11904,42192),A[12351]=1,b.fill(A,2,44032,55204),b.fill(A,2,63744,64256),b.fill(A,2,65040,65050),b.fill(A,2,65072,65136),b.fill(A,2,65280,65377),b.fill(A,2,65504,65511);for(var r=0;r<g.length;++r)b.fill(A,0,g[r][0],g[r][1]+1)}}return o.prototype.wcwidth=function(r){return r<32?0:r<127?1:r<65536?A[r]:function(i,n){var e,l=0,t=n.length-1;if(i<n[0][0]||i>n[t][1])return!1;for(;t>=l;)if(i>n[e=l+t>>1][1])l=e+1;else{if(!(i<n[e][0]))return!0;t=e-1}return!1}(r,f)?0:r>=131072&&r<=196605||r>=196608&&r<=262141?2:1},o}();x.UnicodeV6=c},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.CharsetService=void 0;var A=function(){function b(){this.glevel=0,this._charsets=[]}return b.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},b.prototype.setgLevel=function(g){this.glevel=g,this.charset=this._charsets[g]},b.prototype.setgCharset=function(g,f){this._charsets[g]=f,this.glevel===g&&(this.charset=f)},b}();x.CharsetService=A},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.updateWindowsModeWrappedState=void 0;var A=C(3);x.updateWindowsModeWrappedState=function(b){var g=b.buffer.lines.get(b.buffer.ybase+b.buffer.y-1),f=g==null?void 0:g.get(b.cols-1),c=b.buffer.lines.get(b.buffer.ybase+b.buffer.y);c&&f&&(c.isWrapped=f[A.CHAR_DATA_CODE_INDEX]!==A.NULL_CELL_CODE&&f[A.CHAR_DATA_CODE_INDEX]!==A.WHITESPACE_CELL_CODE)}},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.WriteBuffer=void 0;var A=function(){function b(g){this._action=g,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return b.prototype.writeSync=function(g){if(this._writeBuffer.length){for(var f=this._bufferOffset;f<this._writeBuffer.length;++f){var c=this._writeBuffer[f],o=this._callbacks[f];this._action(c),o&&o()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(g)},b.prototype.write=function(g,f){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+=g.length,this._writeBuffer.push(g),this._callbacks.push(f)},b.prototype._innerWrite=function(){for(var g=this,f=Date.now();this._writeBuffer.length>this._bufferOffset;){var c=this._writeBuffer[this._bufferOffset],o=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(c),this._pendingData-=c.length,o&&o(),Date.now()-f>=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 g._innerWrite()},0)):(this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0)},b}();x.WriteBuffer=A},function(O,x,C){"use strict";Object.defineProperty(x,"__esModule",{value:!0}),x.AddonManager=void 0;var A=function(){function b(){this._addons=[]}return b.prototype.dispose=function(){for(var g=this._addons.length-1;g>=0;g--)this._addons[g].instance.dispose()},b.prototype.loadAddon=function(g,f){var c=this,o={instance:f,dispose:f.dispose,isDisposed:!1};this._addons.push(o),f.dispose=function(){return c._wrappedAddonDispose(o)},f.activate(g)},b.prototype._wrappedAddonDispose=function(g){if(!g.isDisposed){for(var f=-1,c=0;c<this._addons.length;c++)if(this._addons[c]===g){f=c;break}if(f===-1)throw new Error("Could not dispose an addon that has not been loaded");g.isDisposed=!0,g.dispose.apply(g.instance),this._addons.splice(f,1)}},b}();x.AddonManager=A}])})},"/SeX":function(H,k,d){var O=d("knOB"),x=d("qZFw"),C=function(b){this.name=b||"",this.cx=0,this.cy=0,this._radiusAxis=new O,this._angleAxis=new x,this._radiusAxis.polar=this._angleAxis.polar=this};C.prototype={type:"polar",axisPointerEnabled:!0,constructor:C,dimensions:["radius","angle"],model:null,containPoint:function(b){var g=this.pointToCoord(b);return this._radiusAxis.contain(g[0])&&this._angleAxis.contain(g[1])},containData:function(b){return this._radiusAxis.containData(b[0])&&this._angleAxis.containData(b[1])},getAxis:function(b){return this["_"+b+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(b){var g=[],f=this._angleAxis,c=this._radiusAxis;return f.scale.type===b&&g.push(f),c.scale.type===b&&g.push(c),g},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(b){var g=this._angleAxis;return b===g?this._radiusAxis:g},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(b){var g=b!=null&&b!=="auto"?this.getAxis(b):this.getBaseAxis();return{baseAxes:[g],otherAxes:[this.getOtherAxis(g)]}},dataToPoint:function(b,g){return this.coordToPoint([this._radiusAxis.dataToRadius(b[0],g),this._angleAxis.dataToAngle(b[1],g)])},pointToData:function(b,g){var f=this.pointToCoord(b);return[this._radiusAxis.radiusToData(f[0],g),this._angleAxis.angleToData(f[1],g)]},pointToCoord:function(b){var g=b[0]-this.cx,f=b[1]-this.cy,c=this.getAngleAxis(),o=c.getExtent(),r=Math.min(o[0],o[1]),i=Math.max(o[0],o[1]);c.inverse?r=i-360:i=r+360;var n=Math.sqrt(g*g+f*f);g/=n,f/=n;for(var e=Math.atan2(-f,g)/Math.PI*180,l=e<r?1:-1;e<r||e>i;)e+=l*360;return[n,e]},coordToPoint:function(b){var g=b[0],f=b[1]/180*Math.PI,c=Math.cos(f)*g+this.cx,o=-Math.sin(f)*g+this.cy;return[c,o]},getArea:function(){var b=this.getAngleAxis(),g=this.getRadiusAxis(),f=g.getExtent().slice();f[0]>f[1]&&f.reverse();var c=b.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:f[0],r:f[1],startAngle:-c[0]*o,endAngle:-c[1]*o,clockwise:b.inverse,contain:function(r,i){var n=r-this.cx,e=i-this.cy,l=n*n+e*e,t=this.r,a=this.r0;return l<=t*t&&l>=a*a}}}};var A=C;H.exports=A},"/WM3":function(H,k,d){var O=d("QuXc"),x=d("bYtY"),C=x.isFunction,A={createOnAllSeries:!0,performRawSeries:!0,reset:function(b,g){var f=b.getData(),c=(b.visualColorAccessPath||"itemStyle.color").split("."),o=b.get(c),r=C(o)&&!(o instanceof O)?o:null;(!o||r)&&(o=b.getColorFromPalette(b.name,null,g.getSeriesCount())),f.setVisual("color",o);var i=(b.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),n=b.get(i);if(f.setVisual("borderColor",n),!g.isSeriesFiltered(b)){r&&f.each(function(l){f.setItemVisual(l,"color",r(b.getDataParams(l)))});var e=function(l,t){var a=l.getItemModel(t),s=a.get(c,!0),u=a.get(i,!0);s!=null&&l.setItemVisual(t,"color",s),u!=null&&l.setItemVisual(t,"borderColor",u)};return{dataEach:f.hasItemOption?e:null}}}};H.exports=A},"/d5a":function(H,k){var d={average:function(C){for(var A=0,b=0,g=0;g<C.length;g++)isNaN(C[g])||(A+=C[g],b++);return b===0?NaN:A/b},sum:function(C){for(var A=0,b=0;b<C.length;b++)A+=C[b]||0;return A},max:function(C){for(var A=-Infinity,b=0;b<C.length;b++)C[b]>A&&(A=C[b]);return isFinite(A)?A:NaN},min:function(C){for(var A=Infinity,b=0;b<C.length;b++)C[b]<A&&(A=C[b]);return isFinite(A)?A:NaN},nearest:function(C){return C[0]}},O=function(C,A){return Math.round(C.length/2)};function x(C){return{seriesType:C,modifyOutputEnd:!0,reset:function(A,b,g){var f=A.getData(),c=A.get("sampling"),o=A.coordinateSystem;if(o.type==="cartesian2d"&&c){var r=o.getBaseAxis(),i=o.getOtherAxis(r),n=r.getExtent(),e=n[1]-n[0],l=Math.round(f.count()/e);if(l>1){var t;typeof c=="string"?t=d[c]:typeof c=="function"&&(t=c),t&&A.setData(f.downSample(f.mapDimension(i.dim),1/l,t,O))}}}}}H.exports=x},"/ezw":function(H,k,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),b=d("cDf5"),g=d.n(b),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=function(B){var j=B.prefixCls,W=B.className,V=B.width,z=B.style;return f.createElement("h3",{className:o()(j,W),style:A()({width:V},z)})},i=r,n=d("RIqP"),e=d.n(n),l=function(B){var j=function(ae){var ve=B.width,_e=B.rows,Ie=_e===void 0?2:_e;return Array.isArray(ve)?ve[ae]:Ie-1===ae?ve:void 0},W=B.prefixCls,V=B.className,z=B.style,J=B.rows,q=e()(Array(J)).map(function(de,ae){return f.createElement("li",{key:ae,style:{width:j(ae)}})});return f.createElement("ul",{className:o()(W,V),style:z},q)},t=l,a=d("H84U"),s=function(B){var j,W,V=B.prefixCls,z=B.className,J=B.style,q=B.size,de=B.shape,ae=o()((j={},x()(j,"".concat(V,"-lg"),q==="large"),x()(j,"".concat(V,"-sm"),q==="small"),j)),ve=o()((W={},x()(W,"".concat(V,"-circle"),de==="circle"),x()(W,"".concat(V,"-square"),de==="square"),x()(W,"".concat(V,"-round"),de==="round"),W)),_e=typeof q=="number"?{width:q,height:q,lineHeight:"".concat(q,"px")}:{};return f.createElement("span",{className:o()(V,z,ae,ve),style:A()(A()({},_e),J)})},u=s,h=d("BGR+"),p=function(B){var j=function(V){var z=V.getPrefixCls,J=B.prefixCls,q=B.className,de=B.active,ae=z("skeleton",J),ve=Object(h.default)(B,["prefixCls"]),_e=o()(ae,q,"".concat(ae,"-element"),x()({},"".concat(ae,"-active"),de));return f.createElement("div",{className:_e},f.createElement(u,A()({prefixCls:"".concat(ae,"-avatar")},ve)))};return f.createElement(a.a,null,j)};p.defaultProps={size:"default",shape:"circle"};var m=p,v=function(B){var j=function(V){var z=V.getPrefixCls,J=B.prefixCls,q=B.className,de=B.active,ae=z("skeleton",J),ve=Object(h.default)(B,["prefixCls"]),_e=o()(ae,q,"".concat(ae,"-element"),x()({},"".concat(ae,"-active"),de));return f.createElement("div",{className:_e},f.createElement(u,A()({prefixCls:"".concat(ae,"-button")},ve)))};return f.createElement(a.a,null,j)};v.defaultProps={size:"default"};var y=v,E=function(B){var j=function(V){var z=V.getPrefixCls,J=B.prefixCls,q=B.className,de=B.active,ae=z("skeleton",J),ve=Object(h.default)(B,["prefixCls"]),_e=o()(ae,q,"".concat(ae,"-element"),x()({},"".concat(ae,"-active"),de));return f.createElement("div",{className:_e},f.createElement(u,A()({prefixCls:"".concat(ae,"-input")},ve)))};return f.createElement(a.a,null,j)};E.defaultProps={size:"default"};var T=E,w="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",S=function(B){var j=function(V){var z=V.getPrefixCls,J=B.prefixCls,q=B.className,de=B.style,ae=z("skeleton",J),ve=o()(ae,q,"".concat(ae,"-element"));return f.createElement("div",{className:ve},f.createElement("div",{className:o()("".concat(ae,"-image"),q),style:de},f.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(ae,"-image-svg")},f.createElement("path",{d:w,className:"".concat(ae,"-image-path")}))))};return f.createElement(a.a,null,j)},_=S;function I(U){return U&&g()(U)==="object"?U:{}}function L(U,B){return U&&!B?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function N(U,B){return!U&&B?{width:"38%"}:U&&B?{width:"50%"}:{}}function R(U,B){var j={};return(!U||!B)&&(j.width="61%"),!U&&B?j.rows=3:j.rows=2,j}var D=function(B){var j=function(V){var z=V.getPrefixCls,J=V.direction,q=B.prefixCls,de=B.loading,ae=B.className,ve=B.children,_e=B.avatar,Ie=B.title,He=B.paragraph,me=B.active,ke=B.round,se=z("skeleton",q);if(de||!("loading"in B)){var te,Ge=!!_e,oe=!!Ie,Y=!!He,G;if(Ge){var Q=A()(A()({prefixCls:"".concat(se,"-avatar")},L(oe,Y)),I(_e));G=f.createElement("div",{className:"".concat(se,"-header")},f.createElement(u,Q))}var ye;if(oe||Y){var ce;if(oe){var Te=A()(A()({prefixCls:"".concat(se,"-title")},N(Ge,Y)),I(Ie));ce=f.createElement(i,Te)}var Se;if(Y){var le=A()(A()({prefixCls:"".concat(se,"-paragraph")},R(Ge,oe)),I(He));Se=f.createElement(t,le)}ye=f.createElement("div",{className:"".concat(se,"-content")},ce,Se)}var fe=o()(se,ae,(te={},x()(te,"".concat(se,"-with-avatar"),Ge),x()(te,"".concat(se,"-active"),me),x()(te,"".concat(se,"-rtl"),J==="rtl"),x()(te,"".concat(se,"-round"),ke),te));return f.createElement("div",{className:fe},G,ye)}return ve};return f.createElement(a.a,null,j)};D.defaultProps={avatar:!1,title:!0,paragraph:!0},D.Button=y,D.Avatar=m,D.Input=T,D.Image=_;var F=D,M=k.a=F},"/iHx":function(H,k,d){var O=d("6GrX"),x=d("IwbS"),C=["textStyle","color"],A={getTextColor:function(b){var g=this.ecModel;return this.getShallow("color")||(!b&&g?g.get(C):null)},getFont:function(){return x.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(b){return O.getBoundingRect(b,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};H.exports=A},"/ry/":function(H,k,d){var O=d("bYtY"),x=d("T4UG"),C=d("5GhG"),A=C.seriesModelMixin,b=x.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(b,A,!0);var g=b;H.exports=g},"/stD":function(H,k,d){var O=d("bYtY"),x=d("IUWy"),C=d("Kagy"),A=C.toolbox.brush;function b(c,o,r){this.model=c,this.ecModel=o,this.api=r,this._brushType,this._brushMode}b.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(A.title)};var g=b.prototype;g.render=g.updateView=function(c,o,r){var i,n,e;o.eachComponent({mainType:"brush"},function(l){i=l.brushType,n=l.brushOption.brushMode||"single",e|=l.areas.length}),this._brushType=i,this._brushMode=n,O.each(c.get("type",!0),function(l){c.setIconStatus(l,(l==="keep"?n==="multiple":l==="clear"?e:l===i)?"emphasis":"normal")})},g.getIcons=function(){var c=this.model,o=c.get("icon",!0),r={};return O.each(c.get("type",!0),function(i){o[i]&&(r[i]=o[i])}),r},g.onclick=function(c,o,r){var i=this._brushType,n=this._brushMode;r==="clear"?(o.dispatchAction({type:"axisAreaSelect",intervals:[]}),o.dispatchAction({type:"brush",command:"clear",areas:[]})):o.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:r==="keep"?i:i===r?!1:r,brushMode:r==="keep"?n==="multiple"?"single":"multiple":n}})},x.register("brush",b);var f=b;H.exports=f},"/wGt":function(H,k,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),b=d("lwsE"),g=d.n(b),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),l=d.n(e),t=d("q1tI"),a=d("Ff2n"),s=d("1OyB"),u=d("vuIU"),h=d("Ji7U"),p=d("md7G"),m=d("foSv"),v=d("1W/9"),y=d("rePB"),E=d("JX7q"),T=d("TSYQ"),w=d.n(T),S=d("qx4F"),_=d("4IlW");function I(ce){return Array.isArray(ce)?ce:[ce]}var L={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},N=Object.keys(L).filter(function(ce){if(typeof document=="undefined")return!1;var Te=document.getElementsByTagName("html")[0];return ce in(Te?Te.style:{})})[0],R=L[N];function D(ce,Te,Se,le){ce.addEventListener?ce.addEventListener(Te,Se,le):ce.attachEvent&&ce.attachEvent("on".concat(Te),Se)}function F(ce,Te,Se,le){ce.removeEventListener?ce.removeEventListener(Te,Se,le):ce.attachEvent&&ce.detachEvent("on".concat(Te),Se)}function M(ce,Te){var Se=typeof ce=="function"?ce(Te):ce;return Array.isArray(Se)?Se.length===2?Se:[Se[0],Se[1]]:[Se]}var U=function(Te){return!isNaN(parseFloat(Te))&&isFinite(Te)},B=!(typeof window!="undefined"&&window.document&&window.document.createElement),j=function ce(Te,Se,le,fe){if(!Se||Se===document||Se instanceof Document)return!1;if(Se===Te.parentNode)return!0;var Ee=Math.max(Math.abs(le),Math.abs(fe))===Math.abs(fe),Ve=Math.max(Math.abs(le),Math.abs(fe))===Math.abs(le),vt=Se.scrollHeight-Se.clientHeight,et=Se.scrollWidth-Se.clientWidth,Oe=document.defaultView.getComputedStyle(Se),Tt=Oe.overflowY==="auto"||Oe.overflowY==="scroll",Je=Oe.overflowX==="auto"||Oe.overflowX==="scroll",St=vt&&Tt,Mt=et&&Je;return Ee&&(!St||St&&(Se.scrollTop>=vt&&fe<0||Se.scrollTop<=0&&fe>0))||Ve&&(!Mt||Mt&&(Se.scrollLeft>=et&&le<0||Se.scrollLeft<=0&&le>0))?ce(Te,Se.parentNode,le,fe):!1};function W(ce){var Te=V();return function(){var le=Object(m.a)(ce),fe;if(Te){var Ee=Object(m.a)(this).constructor;fe=Reflect.construct(le,arguments,Ee)}else fe=le.apply(this,arguments);return Object(p.a)(this,fe)}}function V(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ce){return!1}}var z={},J=function(ce){Object(h.a)(Se,ce);var Te=W(Se);function Se(le){var fe;return Object(s.a)(this,Se),fe=Te.call(this,le),fe.domFocus=function(){fe.dom&&fe.dom.focus()},fe.removeStartHandler=function(Ee){if(Ee.touches.length>1)return;fe.startPos={x:Ee.touches[0].clientX,y:Ee.touches[0].clientY}},fe.removeMoveHandler=function(Ee){if(Ee.changedTouches.length>1)return;var Ve=Ee.currentTarget,vt=Ee.changedTouches[0].clientX-fe.startPos.x,et=Ee.changedTouches[0].clientY-fe.startPos.y;(Ve===fe.maskDom||Ve===fe.handlerDom||Ve===fe.contentDom&&j(Ve,Ee.target,vt,et))&&Ee.cancelable&&Ee.preventDefault()},fe.transitionEnd=function(Ee){var Ve=Ee.target;F(Ve,R,fe.transitionEnd),Ve.style.transition=""},fe.onKeyDown=function(Ee){if(Ee.keyCode===_.a.ESC){var Ve=fe.props.onClose;Ee.stopPropagation(),Ve&&Ve(Ee)}},fe.onWrapperTransitionEnd=function(Ee){var Ve=fe.props,vt=Ve.open,et=Ve.afterVisibleChange;Ee.target===fe.contentWrapper&&Ee.propertyName.match(/transform$/)&&(fe.dom.style.transition="",!vt&&fe.getCurrentDrawerSome()&&(document.body.style.overflowX="",fe.maskDom&&(fe.maskDom.style.left="",fe.maskDom.style.width="")),et&&et(!!vt))},fe.openLevelTransition=function(){var Ee=fe.props,Ve=Ee.open,vt=Ee.width,et=Ee.height,Oe=fe.getHorizontalBoolAndPlacementName(),Tt=Oe.isHorizontal,Je=Oe.placementName,St=fe.contentDom?fe.contentDom.getBoundingClientRect()[Tt?"width":"height"]:0,Mt=(Tt?vt:et)||St;fe.setLevelAndScrolling(Ve,Je,Mt)},fe.setLevelTransform=function(Ee,Ve,vt,et){var Oe=fe.props,Tt=Oe.placement,Je=Oe.levelMove,St=Oe.duration,Mt=Oe.ease,er=Oe.showMask;fe.levelDom.forEach(function(It){It.style.transition="transform ".concat(St," ").concat(Mt),D(It,R,fe.transitionEnd);var _t=Ee?vt:0;if(Je){var Xe=M(Je,{target:It,open:Ee});_t=Ee?Xe[0]:Xe[1]||0}var ie=typeof _t=="number"?"".concat(_t,"px"):_t,X=Tt==="left"||Tt==="top"?ie:"-".concat(ie);X=er&&Tt==="right"&&et?"calc(".concat(X," + ").concat(et,"px)"):X,It.style.transform=_t?"".concat(Ve,"(").concat(X,")"):""})},fe.setLevelAndScrolling=function(Ee,Ve,vt){var et=fe.props.onChange;if(!B){var Oe=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(S.a)(!0):0;fe.setLevelTransform(Ee,Ve,vt,Oe),fe.toggleScrollingToDrawerAndBody(Oe)}et&&et(Ee)},fe.toggleScrollingToDrawerAndBody=function(Ee){var Ve=fe.props,vt=Ve.getOpenCount,et=Ve.getContainer,Oe=Ve.showMask,Tt=Ve.open,Je=et&&et(),St=vt&&vt();if(Je&&Je.parentNode===document.body&&Oe){var Mt=["touchstart"],er=[document.body,fe.maskDom,fe.handlerDom,fe.contentDom];Tt&&document.body.style.overflow!=="hidden"?(Ee&&fe.addScrollingEffect(Ee),St===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",er.forEach(function(It,_t){if(!It)return;D(It,Mt[_t]||"touchmove",_t?fe.removeMoveHandler:fe.removeStartHandler,fe.passive)})):fe.getCurrentDrawerSome()&&(St||(document.body.style.overflow=""),document.body.style.touchAction="",Ee&&fe.remScrollingEffect(Ee),er.forEach(function(It,_t){if(!It)return;F(It,Mt[_t]||"touchmove",_t?fe.removeMoveHandler:fe.removeStartHandler,fe.passive)}))}},fe.addScrollingEffect=function(Ee){var Ve=fe.props,vt=Ve.placement,et=Ve.duration,Oe=Ve.ease,Tt=Ve.getOpenCount,Je=Ve.switchScrollingEffect,St=Tt&&Tt();St===1&&Je();var Mt="width ".concat(et," ").concat(Oe),er="transform ".concat(et," ").concat(Oe);fe.dom.style.transition="none";switch(vt){case"right":fe.dom.style.transform="translateX(-".concat(Ee,"px)");break;case"top":case"bottom":fe.dom.style.width="calc(100% - ".concat(Ee,"px)"),fe.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(fe.timeout),fe.timeout=setTimeout(function(){fe.dom&&(fe.dom.style.transition="".concat(er,",").concat(Mt),fe.dom.style.width="",fe.dom.style.transform="")})},fe.remScrollingEffect=function(Ee){var Ve=fe.props,vt=Ve.placement,et=Ve.duration,Oe=Ve.ease,Tt=Ve.getOpenCount,Je=Ve.switchScrollingEffect,St=Tt&&Tt();St||Je(!0),N&&(document.body.style.overflowX="hidden"),fe.dom.style.transition="none";var Mt,er="width ".concat(et," ").concat(Oe),It="transform ".concat(et," ").concat(Oe);switch(vt){case"left":{fe.dom.style.width="100%",er="width 0s ".concat(Oe," ").concat(et);break}case"right":{fe.dom.style.transform="translateX(".concat(Ee,"px)"),fe.dom.style.width="100%",er="width 0s ".concat(Oe," ").concat(et),fe.maskDom&&(fe.maskDom.style.left="-".concat(Ee,"px"),fe.maskDom.style.width="calc(100% + ".concat(Ee,"px)"));break}case"top":case"bottom":{fe.dom.style.width="calc(100% + ".concat(Ee,"px)"),fe.dom.style.height="100%",fe.dom.style.transform="translateZ(0)",Mt="height 0s ".concat(Oe," ").concat(et);break}default:break}clearTimeout(fe.timeout),fe.timeout=setTimeout(function(){fe.dom&&(fe.dom.style.transition="".concat(It,",").concat(Mt?"".concat(Mt,","):"").concat(er),fe.dom.style.transform="",fe.dom.style.width="",fe.dom.style.height="")})},fe.getCurrentDrawerSome=function(){return!Object.keys(z).some(function(Ee){return z[Ee]})},fe.getLevelDom=function(Ee){var Ve=Ee.level,vt=Ee.getContainer;if(B)return;var et=vt&&vt(),Oe=et?et.parentNode:null;if(fe.levelDom=[],Ve==="all"){var Tt=Oe?Array.prototype.slice.call(Oe.children):[];Tt.forEach(function(Je){Je.nodeName!=="SCRIPT"&&Je.nodeName!=="STYLE"&&Je.nodeName!=="LINK"&&Je!==et&&fe.levelDom.push(Je)})}else Ve&&I(Ve).forEach(function(Je){document.querySelectorAll(Je).forEach(function(St){fe.levelDom.push(St)})})},fe.getHorizontalBoolAndPlacementName=function(){var Ee=fe.props.placement,Ve=Ee==="left"||Ee==="right",vt="translate".concat(Ve?"X":"Y");return{isHorizontal:Ve,placementName:vt}},fe.state={_self:Object(E.a)(fe)},fe}return Object(u.a)(Se,[{key:"componentDidMount",value:function(){var fe=this;if(!B){var Ee=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Ee=!0,null}}))}catch(Tt){}this.passive=Ee?{passive:!1}:!1}var Ve=this.props,vt=Ve.open,et=Ve.getContainer,Oe=et&&et();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),vt&&(Oe&&Oe.parentNode===document.body&&(z[this.drawerId]=vt),this.openLevelTransition(),this.forceUpdate(function(){fe.domFocus()}))}},{key:"componentDidUpdate",value:function(fe){var Ee=this.props,Ve=Ee.open,vt=Ee.getContainer,et=vt&&vt();Ve!==fe.open&&(Ve&&this.domFocus(),et&&et.parentNode===document.body&&(z[this.drawerId]=!!Ve),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var fe=this.props,Ee=fe.getOpenCount,Ve=fe.open,vt=fe.switchScrollingEffect,et=typeof Ee=="function"&&Ee();delete z[this.drawerId],Ve&&(this.setLevelTransform(!1),document.body.style.touchAction=""),et||(document.body.style.overflow="",vt(!0))}},{key:"render",value:function(){var fe,Ee=this,Ve=this.props,vt=Ve.className,et=Ve.children,Oe=Ve.style,Tt=Ve.width,Je=Ve.height,St=Ve.defaultOpen,Mt=Ve.open,er=Ve.prefixCls,It=Ve.placement,_t=Ve.level,Xe=Ve.levelMove,ie=Ve.ease,X=Ve.duration,Be=Ve.getContainer,Ce=Ve.handler,Z=Ve.onChange,nt=Ve.afterVisibleChange,ct=Ve.showMask,Qe=Ve.maskClosable,dt=Ve.maskStyle,Ft=Ve.onClose,Lr=Ve.onHandleClick,Wt=Ve.keyboard,ar=Ve.getOpenCount,Ut=Ve.switchScrollingEffect,kt=Object(a.a)(Ve,["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"]),st=this.dom?Mt:!1,Rr=w()(er,(fe={},Object(y.a)(fe,"".concat(er,"-").concat(It),!0),Object(y.a)(fe,"".concat(er,"-open"),st),Object(y.a)(fe,vt||"",!!vt),Object(y.a)(fe,"no-mask",!ct),fe)),on=this.getHorizontalBoolAndPlacementName(),Sn=on.placementName,zn=It==="left"||It==="top"?"-100%":"100%",Ii=st?"":"".concat(Sn,"(").concat(zn,")"),yn=Ce&&t.cloneElement(Ce,{onClick:function(jt){Ce.props.onClick&&Ce.props.onClick(),Lr&&Lr(jt)},ref:function(jt){Ee.handlerDom=jt}});return t.createElement("div",Object.assign({},kt,{tabIndex:-1,className:Rr,style:Oe,ref:function(jt){Ee.dom=jt},onKeyDown:st&&Wt?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),ct&&t.createElement("div",{className:"".concat(er,"-mask"),onClick:Qe?Ft:void 0,style:dt,ref:function(jt){Ee.maskDom=jt}}),t.createElement("div",{className:"".concat(er,"-content-wrapper"),style:{transform:Ii,msTransform:Ii,width:U(Tt)?"".concat(Tt,"px"):Tt,height:U(Je)?"".concat(Je,"px"):Je},ref:function(jt){Ee.contentWrapper=jt}},t.createElement("div",{className:"".concat(er,"-content"),ref:function(jt){Ee.contentDom=jt},onTouchStart:st&&ct?this.removeStartHandler:void 0,onTouchMove:st&&ct?this.removeMoveHandler:void 0},et),yn))}}],[{key:"getDerivedStateFromProps",value:function(fe,Ee){var Ve=Ee.prevProps,vt=Ee._self,et={prevProps:fe};if(Ve!==void 0){var Oe=fe.placement,Tt=fe.level;Oe!==Ve.placement&&(vt.contentDom=null),Tt!==Ve.level&&vt.getLevelDom(fe)}return et}}]),Se}(t.Component);J.defaultProps={switchScrollingEffect:function(){}};var q=J;function de(ce){var Te=ae();return function(){var le=Object(m.a)(ce),fe;if(Te){var Ee=Object(m.a)(this).constructor;fe=Reflect.construct(le,arguments,Ee)}else fe=le.apply(this,arguments);return Object(p.a)(this,fe)}}function ae(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ce){return!1}}var ve=function(ce){Object(h.a)(Se,ce);var Te=de(Se);function Se(le){var fe;Object(s.a)(this,Se),fe=Te.call(this,le),fe.onHandleClick=function(Ve){var vt=fe.props,et=vt.onHandleClick,Oe=vt.open;if(et&&et(Ve),typeof Oe=="undefined"){var Tt=fe.state.open;fe.setState({open:!Tt})}},fe.onClose=function(Ve){var vt=fe.props,et=vt.onClose,Oe=vt.open;et&&et(Ve),typeof Oe=="undefined"&&fe.setState({open:!1})};var Ee=typeof le.open!="undefined"?le.open:!!le.defaultOpen;return fe.state={open:Ee},"onMaskClick"in le&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),fe}return Object(u.a)(Se,[{key:"render",value:function(){var fe=this,Ee=this.props,Ve=Ee.defaultOpen,vt=Ee.getContainer,et=Ee.wrapperClassName,Oe=Ee.forceRender,Tt=Ee.handler,Je=Object(a.a)(Ee,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),St=this.state.open;if(!vt)return t.createElement("div",{className:et,ref:function(It){fe.dom=It}},t.createElement(q,Object.assign({},Je,{open:St,handler:Tt,getContainer:function(){return fe.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Mt=!!Tt||Oe;return t.createElement(v.a,{visible:St,forceRender:Mt,getContainer:vt,wrapperClassName:et},function(er){var It=er.visible,_t=er.afterClose,Xe=Object(a.a)(er,["visible","afterClose"]);return t.createElement(q,Object.assign({},Je,Xe,{open:It!==void 0?It:St,afterVisibleChange:_t!==void 0?_t:Je.afterVisibleChange,handler:Tt,onClose:fe.onClose,onHandleClick:fe.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(fe,Ee){var Ve=Ee.prevProps,vt={prevProps:fe};return typeof Ve!="undefined"&&fe.open!==Ve.open&&(vt.open=fe.open),vt}}]),Se}(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 _e=ve,Ie=_e,He=d("V/uB"),me=d.n(He),ke=d("BGR+"),se=d("H84U"),te=d("CWQg"),Ge=function(ce,Te){var Se={};for(var le in ce)Object.prototype.hasOwnProperty.call(ce,le)&&Te.indexOf(le)<0&&(Se[le]=ce[le]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,le=Object.getOwnPropertySymbols(ce);fe<le.length;fe++)Te.indexOf(le[fe])<0&&Object.prototype.propertyIsEnumerable.call(ce,le[fe])&&(Se[le[fe]]=ce[le[fe]]);return Se},oe=t.createContext(null),Y=Object(te.a)("top","right","bottom","left"),G={distance:180},Q=function(ce){n()(Se,ce);var Te=l()(Se);function Se(){var le;return g()(this,Se),le=Te.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 fe=le.getDestroyOnClose();if(!fe)return;le.props.visible||(le.destroyClose=!0,le.forceUpdate())},le.getDestroyOnClose=function(){return le.props.destroyOnClose&&!le.props.visible},le.getPushDistance=function(){var fe=le.props.push,Ee;return typeof fe=="boolean"?Ee=fe?G.distance:0:Ee=fe.distance,parseFloat(String(Ee||0))},le.getPushTransform=function(fe){var Ee=le.getPushDistance();if(fe==="left"||fe==="right")return"translateX(".concat(fe==="left"?Ee:-Ee,"px)");if(fe==="top"||fe==="bottom")return"translateY(".concat(fe==="top"?Ee:-Ee,"px)")},le.getRcDrawerStyle=function(){var fe=le.props,Ee=fe.zIndex,Ve=fe.placement,vt=fe.mask,et=fe.style,Oe=le.state.push,Tt=vt?{}:le.getOffsetStyle();return A()(A()({zIndex:Ee,transform:Oe?le.getPushTransform(Ve):void 0},Tt),et)},le.renderBody=function(){var fe=le.props,Ee=fe.bodyStyle,Ve=fe.drawerStyle,vt=fe.prefixCls,et=fe.visible;if(le.destroyClose&&!et)return null;le.destroyClose=!1;var Oe={},Tt=le.getDestroyOnClose();return Tt&&(Oe.opacity=0,Oe.transition="opacity .3s"),t.createElement("div",{className:"".concat(vt,"-wrapper-body"),style:A()(A()({},Oe),Ve),onTransitionEnd:le.onDestroyTransitionEnd},le.renderHeader(),t.createElement("div",{className:"".concat(vt,"-body"),style:Ee},le.props.children),le.renderFooter())},le.renderProvider=function(fe){return le.parentDrawer=fe,t.createElement(se.a,null,function(Ee){var Ve=Ee.getPopupContainer,vt=Ee.getPrefixCls,et=le.props,Oe=et.prefixCls,Tt=et.placement,Je=et.className,St=et.mask,Mt=et.direction,er=et.visible,It=Ge(et,["prefixCls","placement","className","mask","direction","visible"]),_t=vt("select",Oe),Xe=w()(Je,x()({"no-mask":!St},"".concat(_t,"-rtl"),Mt==="rtl")),ie=St?le.getOffsetStyle():{};return t.createElement(oe.Provider,{value:r()(le)},t.createElement(Ie,A()({handler:!1},Object(ke.default)(It,["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:It.getContainer===void 0&&Ve?function(){return Ve(document.body)}:It.getContainer},ie,{prefixCls:_t,open:er,showMask:St,placement:Tt,style:le.getRcDrawerStyle(),className:Xe}),le.renderBody()))})},le}return c()(Se,[{key:"componentDidMount",value:function(){var fe=this.props.visible;fe&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(fe){var Ee=this.props.visible;fe.visible!==Ee&&this.parentDrawer&&(Ee?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var fe=this.props,Ee=fe.placement,Ve=fe.width,vt=fe.height,et=fe.visible,Oe=fe.mask;if(!et&&!Oe)return{};var Tt={};return Ee==="left"||Ee==="right"?Tt.width=Ve:Tt.height=vt,Tt}},{key:"renderHeader",value:function(){var fe=this.props,Ee=fe.title,Ve=fe.prefixCls,vt=fe.closable,et=fe.headerStyle;if(!Ee&&!vt)return null;var Oe=Ee?"".concat(Ve,"-header"):"".concat(Ve,"-header-no-title");return t.createElement("div",{className:Oe,style:et},Ee&&t.createElement("div",{className:"".concat(Ve,"-title")},Ee),vt&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var fe=this.props,Ee=fe.footer,Ve=fe.footerStyle,vt=fe.prefixCls;if(!Ee)return null;var et="".concat(vt,"-footer");return t.createElement("div",{className:et,style:Ve},Ee)}},{key:"renderCloseIcon",value:function(){var fe=this.props,Ee=fe.closable,Ve=fe.closeIcon,vt=Ve===void 0?t.createElement(me.a,null):Ve,et=fe.prefixCls,Oe=fe.onClose;return Ee&&t.createElement("button",{onClick:Oe,"aria-label":"Close",className:"".concat(et,"-close"),style:{"--scroll-bar":"".concat(Object(S.a)(),"px")}},vt)}},{key:"render",value:function(){return t.createElement(oe.Consumer,null,this.renderProvider)}}]),Se}(t.Component);Q.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:G};var ye=k.a=Object(se.c)({prefixCls:"drawer"})(Q)},"/y7N":function(H,k,d){var O=d("bYtY"),x=d("IwbS"),C=d("6GrX"),A=d("7aKB"),b=d("Fofx"),g=d("aX7z"),f=d("+rIm");function c(s){var u=s.get("type"),h=s.getModel(u+"Style"),p;return u==="line"?(p=h.getLineStyle(),p.fill=null):u==="shadow"&&(p=h.getAreaStyle(),p.stroke=null),p}function o(s,u,h,p,m){var v=h.get("value"),y=i(v,u.axis,u.ecModel,h.get("seriesDataIndices"),{precision:h.get("label.precision"),formatter:h.get("label.formatter")}),E=h.getModel("label"),T=A.normalizeCssArray(E.get("padding")||0),w=E.getFont(),S=C.getBoundingRect(y,w),_=m.position,I=S.width+T[1]+T[3],L=S.height+T[0]+T[2],N=m.align;N==="right"&&(_[0]-=I),N==="center"&&(_[0]-=I/2);var R=m.verticalAlign;R==="bottom"&&(_[1]-=L),R==="middle"&&(_[1]-=L/2),r(_,I,L,p);var D=E.get("backgroundColor");(!D||D==="auto")&&(D=u.get("axisLine.lineStyle.color")),s.label={shape:{x:0,y:0,width:I,height:L,r:E.get("borderRadius")},position:_.slice(),style:{text:y,textFont:w,textFill:E.getTextColor(),textPosition:"inside",textPadding:T,fill:D,stroke:E.get("borderColor")||"transparent",lineWidth:E.get("borderWidth")||0,shadowBlur:E.get("shadowBlur"),shadowColor:E.get("shadowColor"),shadowOffsetX:E.get("shadowOffsetX"),shadowOffsetY:E.get("shadowOffsetY")},z2:10}}function r(s,u,h,p){var m=p.getWidth(),v=p.getHeight();s[0]=Math.min(s[0]+u,m)-u,s[1]=Math.min(s[1]+h,v)-h,s[0]=Math.max(s[0],0),s[1]=Math.max(s[1],0)}function i(s,u,h,p,m){s=u.scale.parse(s);var v=u.scale.getLabel(s,{precision:m.precision}),y=m.formatter;if(y){var E={value:g.getAxisRawValue(u,s),axisDimension:u.dim,axisIndex:u.index,seriesData:[]};O.each(p,function(T){var w=h.getSeriesByIndex(T.seriesIndex),S=T.dataIndexInside,_=w&&w.getDataParams(S);_&&E.seriesData.push(_)}),O.isString(y)?v=y.replace("{value}",v):O.isFunction(y)&&(v=y(E))}return v}function n(s,u,h){var p=b.create();return b.rotate(p,p,h.rotation),b.translate(p,p,h.position),x.applyTransform([s.dataToCoord(u),(h.labelOffset||0)+(h.labelDirection||1)*(h.labelMargin||0)],p)}function e(s,u,h,p,m,v){var y=f.innerTextLayout(h.rotation,0,h.labelDirection);h.labelMargin=m.get("label.margin"),o(u,p,m,v,{position:n(p.axis,s,h),align:y.textAlign,verticalAlign:y.textVerticalAlign})}function l(s,u,h){return h=h||0,{x1:s[h],y1:s[1-h],x2:u[h],y2:u[1-h]}}function t(s,u,h){return h=h||0,{x:s[h],y:s[1-h],width:u[h],height:u[1-h]}}function a(s,u,h,p,m,v){return{cx:s,cy:u,r0:h,r:p,startAngle:m,endAngle:v,clockwise:!0}}k.buildElStyle=c,k.buildLabelElOption=o,k.getValueLabel=i,k.getTransformedPosition=n,k.buildCartesianSingleLabelElOption=e,k.makeLineShape=l,k.makeRectShape=t,k.makeSectorShape=a},"/zsF":function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("bE4E"),A=d.n(C)},"0/Rx":function(H,k){function d(O){return{seriesType:O,reset:function(x,C){var A=C.findComponents({mainType:"legend"});if(!A||!A.length)return;var b=x.getData();b.filterSelf(function(g){for(var f=b.getName(g),c=0;c<A.length;c++)if(!A[c].isSelected(f))return!1;return!0})}}}H.exports=d},"01d+":function(H,k,d){var O=d("bYtY"),x=O.each,C=d("HF/U"),A=C.simpleLayout,b=C.simpleLayoutEdge;function g(f,c){f.eachSeriesByType("graph",function(o){var r=o.get("layout"),i=o.coordinateSystem;if(i&&i.type!=="view"){var n=o.getData(),e=[];x(i.dimensions,function(h){e=e.concat(n.mapDimension(h,!0))});for(var l=0;l<n.count();l++){for(var t=[],a=!1,s=0;s<e.length;s++){var u=n.get(e[s],l);isNaN(u)||(a=!0),t.push(u)}a?n.setItemLayout(l,i.dataToPoint(t)):n.setItemLayout(l,[NaN,NaN])}b(n.graph)}else(!r||r==="none")&&A(o)})}H.exports=g},"06DH":function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("Kagy"),A=d("IUWy"),b=C.toolbox.magicType,g="__ec_magicType_stack__";function f(n){this.model=n}f.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:x.clone(b.title),option:{},seriesIndex:{}};var c=f.prototype;c.getIcons=function(){var n=this.model,e=n.get("icon"),l={};return x.each(n.get("type"),function(t){e[t]&&(l[t]=e[t])}),l};var o={line:function(n,e,l,t){if(n==="bar")return x.merge({id:e,type:"line",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},t.get("option.line")||{},!0)},bar:function(n,e,l,t){if(n==="line")return x.merge({id:e,type:"bar",data:l.get("data"),stack:l.get("stack"),markPoint:l.get("markPoint"),markLine:l.get("markLine")},t.get("option.bar")||{},!0)},stack:function(n,e,l,t){var a=l.get("stack")===g;if(n==="line"||n==="bar")return t.setIconStatus("stack",a?"normal":"emphasis"),x.merge({id:e,stack:a?"":g},t.get("option.stack")||{},!0)}},r=[["line","bar"],["stack"]];c.onclick=function(n,e,l){var t=this.model,a=t.get("seriesIndex."+l);if(!o[l])return;var s={series:[]},u=function(m){var v=m.subType,y=m.id,E=o[l](v,y,m,t);E&&(x.defaults(E,m.option),s.series.push(E));var T=m.coordinateSystem;if(T&&T.type==="cartesian2d"&&(l==="line"||l==="bar")){var w=T.getAxesByScale("ordinal")[0];if(w){var S=w.dim,_=S+"Axis",I=n.queryComponents({mainType:_,index:m.get(name+"Index"),id:m.get(name+"Id")})[0],L=I.componentIndex;s[_]=s[_]||[];for(var N=0;N<=L;N++)s[_][L]=s[_][L]||{};s[_][L].boundaryGap=l==="bar"}}};x.each(r,function(m){x.indexOf(m,l)>=0&&x.each(m,function(v){t.setIconStatus(v,"normal")})}),t.setIconStatus(l,"emphasis"),n.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},u);var h;if(l==="stack"){var p=s.series&&s.series[0]&&s.series[0].stack===g;h=p?x.merge({stack:b.title.tiled},b.title):x.clone(b.title)}e.dispatchAction({type:"changeMagicType",currentType:l,newOption:s,newTitle:h,featureName:"magicType"})},O.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)}),A.register("magicType",f);var i=f;H.exports=i},"06Qe":function(H,k,d){var O=d("ItGF"),x="urn:schemas-microsoft-com:vml",C=typeof window=="undefined"?null:window,A=!1,b=C&&C.document;function g(o){return f(o)}var f;if(b&&!O.canvasSupported)try{!b.namespaces.zrvml&&b.namespaces.add("zrvml",x),f=function(r){return b.createElement("<zrvml:"+r+' class="zrvml">')}}catch(o){f=function(i){return b.createElement("<"+i+' xmlns="'+x+'" class="zrvml">')}}function c(){if(A||!b)return;A=!0;var o=b.styleSheets;o.length<31?b.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):o[0].addRule(".zrvml","behavior:url(#default#VML)")}k.doc=b,k.createNode=g,k.initVML=c},"09Wf":function(H,k,d){"use strict";d.d(k,"b",function(){return x}),d.d(k,"a",function(){return C});var O=d("CWQg"),x=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(H,k,d){var O=d("T4UG"),x=d("I3/A"),C=d("7aKB"),A=C.encodeHTML,b=d("Qxkt"),g=d("Tghj"),f=g.__DEV__,c=O.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(r,i){for(var n=r.edges||r.links,e=r.data||r.nodes,l=r.levels,t=this.levelModels={},a=0;a<l.length;a++)l[a].depth!=null&&l[a].depth>=0&&(t[l[a].depth]=new b(l[a],this,i));if(e&&n){var s=x(e,n,this,!0,u);return s.data}function u(h,p){h.wrapMethod("getItemModel",function(m,v){return m.customizeGetParent(function(y){var E=this.parentModel,T=E.getData().getItemLayout(v).depth,w=E.levelModels[T];return w||this.parentModel}),m}),p.wrapMethod("getItemModel",function(m,v){return m.customizeGetParent(function(y){var E=this.parentModel,T=E.getGraph().getEdgeByIndex(v),w=T.node1.getLayout().depth,S=E.levelModels[w];return S||this.parentModel}),m})}},setNodePosition:function(r,i){var n=this.option.data[r];n.localX=i[0],n.localY=i[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(r,i,n){if(n==="edge"){var e=this.getDataParams(r,n),l=e.data,t=l.source+" -- "+l.target;return e.value&&(t+=" : "+e.value),A(t)}else if(n==="node"){var a=this.getGraph().getNodeByIndex(r),s=a.getLayout().value,u=this.getDataParams(r,n).data.name;if(s)var t=u+" : "+s;return A(t)}return c.superCall(this,"formatTooltip",r,i)},optionUpdated:function(){var r=this.option;r.focusNodeAdjacency===!0&&(r.focusNodeAdjacency="allEdges")},getDataParams:function(r,i){var n=c.superCall(this,"getDataParams",r,i);if(n.value==null&&i==="node"){var e=this.getGraph().getNodeByIndex(r),l=e.getLayout().value;n.value=l}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}}),o=c;H.exports=o},"0HBW":function(H,k,d){var O=d("ProS"),x=d("bYtY");d("Hxpc"),d("7uqq"),d("dmGj"),d("SehX");function C(A,b){b.update="updateView",O.registerAction(b,function(g,f){var c={};return f.eachComponent({mainType:"geo",query:g},function(o){o[A](g.name);var r=o.coordinateSystem;x.each(r.regions,function(i){c[i.name]=o.isSelected(i.name)||!1})}),{selected:c,name:g.name}})}C("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),C("select",{type:"geoSelect",event:"geoselected"}),C("unSelect",{type:"geoUnSelect",event:"geounselected"})},"0JAE":function(H,k,d){var O=d("bYtY"),x=d("+TT/"),C=d("OELB"),A=d("IDmD"),b=864e5;function g(o,r,i){this._model=o}g.prototype={constructor:g,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(o){o=C.parseDate(o);var r=o.getFullYear(),i=o.getMonth()+1;i=i<10?"0"+i:i;var n=o.getDate();n=n<10?"0"+n:n;var e=o.getDay();return e=Math.abs((e+7-this.getFirstDayOfWeek())%7),{y:r,m:i,d:n,day:e,time:o.getTime(),formatedDate:r+"-"+i+"-"+n,date:o}},getNextNDay:function(o,r){return r=r||0,r===0?this.getDateInfo(o):(o=new Date(this.getDateInfo(o).time),o.setDate(o.getDate()+r),this.getDateInfo(o))},update:function(o,r){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,n=["width","height"],e=this._model.get("cellSize").slice(),l=this._model.getBoxLayoutParams(),t=this._orient==="horizontal"?[i,7]:[7,i];O.each([0,1],function(h){u(e,h)&&(l[n[h]]=e[h]*t[h])});var a={width:r.getWidth(),height:r.getHeight()},s=this._rect=x.getLayoutRect(l,a);O.each([0,1],function(h){u(e,h)||(e[h]=s[n[h]]/t[h])});function u(h,p){return h[p]!=null&&h[p]!=="auto"}this._sw=e[0],this._sh=e[1]},dataToPoint:function(o,r){O.isArray(o)&&(o=o[0]),r==null&&(r=!0);var i=this.getDateInfo(o),n=this._rangeInfo,e=i.formatedDate;if(r&&!(i.time>=n.start.time&&i.time<n.end.time+b))return[NaN,NaN];var l=i.day,t=this._getRangeInfo([n.start.time,e]).nthWeek;return this._orient==="vertical"?[this._rect.x+l*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+l*this._sh+this._sh/2]},pointToData:function(o){var r=this.pointToDate(o);return r&&r.time},dataToRect:function(o,r){var i=this.dataToPoint(o,r);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},pointToDate:function(o){var r=Math.floor((o[0]-this._rect.x)/this._sw)+1,i=Math.floor((o[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,r-1,n):this._getDateByWeeksAndDay(r,i-1,n)},convertToPixel:O.curry(f,"dataToPoint"),convertFromPixel:O.curry(f,"pointToData"),_initRangeOption:function(){var o=this._model.get("range"),r=o;if(O.isArray(r)&&r.length===1&&(r=r[0]),/^\d{4}$/.test(r)&&(o=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var i=this.getDateInfo(r),n=i.date;n.setMonth(n.getMonth()+1);var e=this.getNextNDay(n,-1);o=[i.formatedDate,e.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(o=[r,r]);var l=this._getRangeInfo(o);return l.start.time>l.end.time&&o.reverse(),o},_getRangeInfo:function(o){o=[this.getDateInfo(o[0]),this.getDateInfo(o[1])];var r;o[0].time>o[1].time&&(r=!0,o.reverse());var i=Math.floor(o[1].time/b)-Math.floor(o[0].time/b)+1,n=new Date(o[0].time),e=n.getDate(),l=o[1].date.getDate();n.setDate(e+i-1);var t=n.getDate();if(t!==l)for(var a=n.getTime()-o[1].time>0?1:-1;(t=n.getDate())!==l&&(n.getTime()-o[1].time)*a>0;)i-=a,n.setDate(t-a);var s=Math.floor((i+o[0].day+6)/7),u=r?-s+1:s-1;return r&&o.reverse(),{range:[o[0].formatedDate,o[1].formatedDate],start:o[0],end:o[1],allDay:i,weeks:s,nthWeek:u,fweek:o[0].day,lweek:o[1].day}},_getDateByWeeksAndDay:function(o,r,i){var n=this._getRangeInfo(i);if(o>n.weeks||o===0&&r<n.fweek||o===n.weeks&&r>n.lweek)return!1;var e=(o-1)*7-n.fweek+r,l=new Date(n.start.time);return l.setDate(n.start.d+e),this.getDateInfo(l)}},g.dimensions=g.prototype.dimensions,g.getDimensionsInfo=g.prototype.getDimensionsInfo,g.create=function(o,r){var i=[];return o.eachComponent("calendar",function(n){var e=new g(n,o,r);i.push(e),n.coordinateSystem=e}),o.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=i[n.get("calendarIndex")||0])}),i};function f(o,r,i,n){var e=i.calendarModel,l=i.seriesModel,t=e?e.coordinateSystem:l?l.coordinateSystem:null;return t===this?t[o](n):null}A.register("calendar",g);var c=g;H.exports=c},"0JQy":function(H,k){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",x="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",A=O+x+C,b="\\ufe0e\\ufe0f",g="["+d+"]",f="["+A+"]",c="\\ud83c[\\udffb-\\udfff]",o="(?:"+f+"|"+c+")",r="[^"+d+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",l=o+"?",t="["+b+"]?",a="(?:"+e+"(?:"+[r,i,n].join("|")+")"+t+l+")*",s=t+l+a,u="(?:"+[r+f+"?",f,i,n,g].join("|")+")",h=RegExp(c+"(?="+c+")|"+u+s,"g");function p(m){return m.match(h)||[]}H.exports=p},"0NbB":function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="CaretDownOutlined";var f=k.a=x.forwardRef(g)},"0V0F":function(H,k,d){var O=d("bYtY"),x=O.createHashMap,C=O.each;function A(g){var f=x();g.eachSeries(function(c){var o=c.get("stack");if(o){var r=f.get(o)||f.set(o,[]),i=c.getData(),n={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:c};if(!n.stackedDimension||!(n.isStackedByIndex||n.stackedByDimension))return;r.length&&i.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(n)}}),f.each(b)}function b(g){C(g,function(f,c){var o=[],r=[NaN,NaN],i=[f.stackResultDimension,f.stackedOverDimension],n=f.data,e=f.isStackedByIndex,l=n.map(i,function(t,a,s){var u=n.get(f.stackedDimension,s);if(isNaN(u))return r;var h,p;e?p=n.getRawIndex(s):h=n.get(f.stackedByDimension,s);for(var m=NaN,v=c-1;v>=0;v--){var y=g[v];if(e||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var E=y.data.getByRawIndex(y.stackResultDimension,p);if(u>=0&&E>0||u<=0&&E<0){u+=E,m=E;break}}}return o[0]=u,o[1]=m,o});n.hostModel.setData(l),f.data=l})}H.exports=A},"0XgM":function(H,k,d){},"0fbx":function(H,k,d){},"0o9m":function(H,k,d){var O=d("ProS");d("hNWo"),d("RlCK"),d("XpcN");var x=d("kDyi"),C=d("bLfw");O.registerProcessor(O.PRIORITY.PROCESSOR.SERIES_FILTER,x),C.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(H,k,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(H,k){var d=arguments[3],O=arguments[4],x=arguments[5],C=JSON.stringify;H.exports=function(A,b){for(var g,f=Object.keys(x),c=0,o=f.length;c<o;c++){var r=f[c],i=x[r].exports;if(i===A||i&&i.default===A){g=r;break}}if(!g){g=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var n={},c=0,o=f.length;c<o;c++){var r=f[c];n[r]=r}O[g]=["function(require,module,exports){"+A+"(self); }",n]}var e=Math.floor(Math.pow(16,8)*Math.random()).toString(16),l={};l[g]=g,O[e]=["function(require,module,exports){var f = require("+C(g)+");(f.default ? f.default : f)(self);}",l];var t={};a(e);function a(v){t[v]=!0;for(var y in O[v][1]){var E=O[v][1][y];t[E]||a(E)}}var s="("+d+")({"+Object.keys(t).map(function(v){return C(v)+":["+O[v][0]+","+C(O[v][1])+"]"}).join(",")+"},{},["+C(e)+"])",u=window.URL||window.webkitURL||window.mozURL||window.msURL,h=new Blob([s],{type:"text/javascript"});if(b&&b.bare)return h;var p=u.createObjectURL(h),m=new Worker(p);return m.objectURL=p,m}},"0s+r":function(H,k,d){var O=d("bYtY"),x=d("QBsz"),C=d("y23F"),A=d("H6uX"),b=d("YH21"),g=d("C0SR"),f="silent";function c(a,s,u){return{type:a,event:u,target:s.target,topTarget:s.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:o}}function o(){b.stop(this.event)}function r(){}r.prototype.dispose=function(){};var i=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],n=function(s,u,h,p){A.call(this),this.storage=s,this.painter=u,this.painterRoot=p,h=h||new r,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,C.call(this),this.setHandlerProxy(h)};n.prototype={constructor:n,setHandlerProxy:function(s){this.proxy&&this.proxy.dispose(),s&&(O.each(i,function(u){s.on&&s.on(u,this[u],this)},this),s.handler=this),this.proxy=s},mousemove:function(s){var u=s.zrX,h=s.zrY,p=l(this,u,h),m=this._hovered,v=m.target;v&&!v.__zr&&(m=this.findHover(m.x,m.y),v=m.target);var y=this._hovered=p?{x:u,y:h}:this.findHover(u,h),E=y.target,T=this.proxy;T.setCursor&&T.setCursor(E?E.cursor:"default"),v&&E!==v&&this.dispatchToElement(m,"mouseout",s),this.dispatchToElement(y,"mousemove",s),E&&E!==v&&this.dispatchToElement(y,"mouseover",s)},mouseout:function(s){var u=s.zrEventControl,h=s.zrIsToLocalDOM;u!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",s),u!=="no_globalout"&&(!h&&this.trigger("globalout",{type:"globalout",event:s}))},resize:function(s){this._hovered={}},dispatch:function(s,u){var h=this[s];h&&h.call(this,u)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(s){var u=this.proxy;u.setCursor&&u.setCursor(s)},dispatchToElement:function(s,u,h){s=s||{};var p=s.target;if(p&&p.silent)return;for(var m="on"+u,v=c(u,s,h);p&&!(p[m]&&(v.cancelBubble=p[m].call(p,v)),p.trigger(u,v),p=p.parent,v.cancelBubble););v.cancelBubble||(this.trigger(u,v),this.painter&&this.painter.eachOtherLayer(function(y){typeof y[m]=="function"&&y[m].call(y,v),y.trigger&&y.trigger(u,v)}))},findHover:function(s,u,h){for(var p=this.storage.getDisplayList(),m={x:s,y:u},v=p.length-1;v>=0;v--){var y;if(p[v]!==h&&!p[v].ignore&&(y=e(p[v],s,u))&&(!m.topTarget&&(m.topTarget=p[v]),y!==f)){m.target=p[v];break}}return m},processGesture:function(s,u){this._gestureMgr||(this._gestureMgr=new g);var h=this._gestureMgr;u==="start"&&h.clear();var p=h.recognize(s,this.findHover(s.zrX,s.zrY,null).target,this.proxy.dom);if(u==="end"&&h.clear(),p){var m=p.type;s.gestureEvent=m,this.dispatchToElement({target:p.target},m,p.event)}}},O.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){n.prototype[a]=function(s){var u=s.zrX,h=s.zrY,p=l(this,u,h),m,v;if((a!=="mouseup"||!p)&&(m=this.findHover(u,h),v=m.target),a==="mousedown")this._downEl=v,this._downPoint=[s.zrX,s.zrY],this._upEl=v;else if(a==="mouseup")this._upEl=v;else if(a==="click"){if(this._downEl!==this._upEl||!this._downPoint||x.dist(this._downPoint,[s.zrX,s.zrY])>4)return;this._downPoint=null}this.dispatchToElement(m,a,s)}});function e(a,s,u){if(a[a.rectHover?"rectContain":"contain"](s,u)){for(var h=a,p;h;){if(h.clipPath&&!h.clipPath.contain(s,u))return!1;h.silent&&(p=!0),h=h.parent}return p?f:!0}return!1}function l(a,s,u){var h=a.painter;return s<0||s>h.getWidth()||u<0||u>h.getHeight()}O.mixin(n,A),O.mixin(n,C);var t=n;H.exports=t},"10cm":function(H,k,d){var O=d("ProS"),x=d("2B6p"),C=x.updateCenterAndZoom;d("0qV/");var A={type:"graphRoam",event:"graphRoam",update:"none"};O.registerAction(A,function(b,g){g.eachComponent({mainType:"series",query:b},function(f){var c=f.coordinateSystem,o=C(c,b);f.setCenter&&f.setCenter(o.center),f.setZoom&&f.setZoom(o.zoom)})})},"15/o":function(H,k,d){},"19Vz":function(H,k,d){(function(O){O(d("VrN/"))})(function(O){O.defineOption("placeholder","",function(c,o,r){var i=r&&r!=O.Init;if(o&&!i)c.on("blur",b),c.on("change",g),c.on("swapDoc",g),O.on(c.getInputField(),"compositionupdate",c.state.placeholderCompose=function(){A(c)}),g(c);else if(!o&&i){c.off("blur",b),c.off("change",g),c.off("swapDoc",g),O.off(c.getInputField(),"compositionupdate",c.state.placeholderCompose),x(c);var n=c.getWrapperElement();n.className=n.className.replace(" CodeMirror-empty","")}o&&!c.hasFocus()&&b(c)});function x(c){c.state.placeholder&&(c.state.placeholder.parentNode.removeChild(c.state.placeholder),c.state.placeholder=null)}function C(c){x(c);var o=c.state.placeholder=document.createElement("pre");o.style.cssText="height: 0; overflow: visible",o.style.direction=c.getOption("direction"),o.className="CodeMirror-placeholder CodeMirror-line-like";var r=c.getOption("placeholder");typeof r=="string"&&(r=document.createTextNode(r)),o.appendChild(r),c.display.lineSpace.insertBefore(o,c.display.lineSpace.firstChild)}function A(c){setTimeout(function(){var o=!1,r=c.getInputField();r.nodeName=="TEXTAREA"?o=!r.value:c.lineCount()==1&&(o=!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)),o?C(c):x(c)},20)}function b(c){f(c)&&C(c)}function g(c){var o=c.getWrapperElement(),r=f(c);o.className=o.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?C(c):x(c)}function f(c){return c.lineCount()===1&&c.getLine(0)===""}})},"1Jh7":function(H,k,d){var O=d("y+Vt"),x=d("T6xi"),C=O.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(b,g){x.buildPath(b,g,!1)}});H.exports=C},"1LEl":function(H,k,d){var O=d("ProS"),x=d("F9bG"),C=O.extendComponentView({type:"axisPointer",render:function(b,g,f){var c=g.getComponent("tooltip"),o=b.get("triggerOn")||c&&c.get("triggerOn")||"mousemove|click";x.register("axisPointer",f,function(r,i,n){o!=="none"&&(r==="leave"||o.indexOf(r)>=0)&&n({type:"updateAxisPointer",currTrigger:r,x:i&&i.offsetX,y:i&&i.offsetY})})},remove:function(b,g){x.unregister(g.getZr(),"axisPointer"),C.superApply(this._model,"remove",arguments)},dispose:function(b,g){x.unregister("axisPointer",g),C.superApply(this._model,"dispose",arguments)}}),A=C;H.exports=A},"1MYJ":function(H,k,d){var O=d("y+Vt"),x=O.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var A=this.__dirtyPath,b=this.shape.paths,g=0;g<b.length;g++)A=A||b[g].__dirtyPath;this.__dirtyPath=A,this.__dirty=this.__dirty||A},beforeBrush:function(){this._updatePathDirty();for(var A=this.shape.paths||[],b=this.getGlobalScale(),g=0;g<A.length;g++)A[g].path||A[g].createPathProxy(),A[g].path.setScale(b[0],b[1],A[g].segmentIgnoreThreshold)},buildPath:function(A,b){for(var g=b.paths||[],f=0;f<g.length;f++)g[f].buildPath(A,g[f].shape,!0)},afterBrush:function(){for(var A=this.shape.paths||[],b=0;b<A.length;b++)A[b].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),O.prototype.getBoundingRect.call(this)}});H.exports=x},"1NG9":function(H,k,d){var O=d("y+Vt"),x=d("QBsz"),C=d("iXp4"),A=x.min,b=x.max,g=x.scaleAndAdd,f=x.copy,c=[],o=[],r=[];function i(u){return isNaN(u[0])||isNaN(u[1])}function n(u,h,p,m,v,y,E,T,w,S,_){return S==="none"||!S?l.apply(this,arguments):e.apply(this,arguments)}function e(u,h,p,m,v,y,E,T,w,S,_){for(var I=0,L=p,N=0;N<m;N++){var R=h[L];if(L>=v||L<0)break;if(i(R)){if(_){L+=y;continue}break}if(L===p)u[y>0?"moveTo":"lineTo"](R[0],R[1]);else if(w>0){var D=h[I],F=S==="y"?1:0,M=(R[F]-D[F])*w;f(o,D),o[F]=D[F]+M,f(r,R),r[F]=R[F]-M,u.bezierCurveTo(o[0],o[1],r[0],r[1],R[0],R[1])}else u.lineTo(R[0],R[1]);I=L,L+=y}return N}function l(u,h,p,m,v,y,E,T,w,S,_){for(var I=0,L=p,N=0;N<m;N++){var R=h[L];if(L>=v||L<0)break;if(i(R)){if(_){L+=y;continue}break}if(L===p)u[y>0?"moveTo":"lineTo"](R[0],R[1]),f(o,R);else if(w>0){var D=L+y,F=h[D];if(_)for(;F&&i(h[D]);)D+=y,F=h[D];var M=.5,U=h[I],F=h[D];if(!F||i(F))f(r,R);else{i(F)&&!_&&(F=R),x.sub(c,F,U);var B,j;if(S==="x"||S==="y"){var W=S==="x"?0:1;B=Math.abs(R[W]-U[W]),j=Math.abs(R[W]-F[W])}else B=x.dist(R,U),j=x.dist(R,F);M=j/(j+B),g(r,R,c,-w*(1-M))}A(o,o,T),b(o,o,E),A(r,r,T),b(r,r,E),u.bezierCurveTo(o[0],o[1],r[0],r[1],R[0],R[1]),g(o,R,c,w*M)}else u.lineTo(R[0],R[1]);I=L,L+=y}return N}function t(u,h){var p=[Infinity,Infinity],m=[-Infinity,-Infinity];if(h)for(var v=0;v<u.length;v++){var y=u[v];y[0]<p[0]&&(p[0]=y[0]),y[1]<p[1]&&(p[1]=y[1]),y[0]>m[0]&&(m[0]=y[0]),y[1]>m[1]&&(m[1]=y[1])}return{min:h?p:m,max:h?m: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,h){var p=h.points,m=0,v=p.length,y=t(p,h.smoothConstraint);if(h.connectNulls){for(;v>0&&i(p[v-1]);v--);for(;m<v&&i(p[m]);m++);}for(;m<v;)m+=n(u,p,m,v,v,1,y.min,y.max,h.smooth,h.smoothMonotone,h.connectNulls)+1}}),s=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,h){var p=h.points,m=h.stackedOnPoints,v=0,y=p.length,E=h.smoothMonotone,T=t(p,h.smoothConstraint),w=t(m,h.smoothConstraint);if(h.connectNulls){for(;y>0&&i(p[y-1]);y--);for(;v<y&&i(p[v]);v++);}for(;v<y;){var S=n(u,p,v,y,y,1,T.min,T.max,h.smooth,E,h.connectNulls);n(u,m,v+S-1,S,y,-1,w.min,w.max,h.stackedOnSmooth,E,h.connectNulls),v+=S+1,u.closePath()}}});k.Polyline=a,k.Polygon=s},"1RvN":function(H,k){var d=function(){this.head=null,this.tail=null,this._len=0},O=d.prototype;O.insert=function(g){var f=new x(g);return this.insertEntry(f),f},O.insertEntry=function(g){this.head?(this.tail.next=g,g.prev=this.tail,g.next=null,this.tail=g):this.head=this.tail=g,this._len++},O.remove=function(g){var f=g.prev,c=g.next;f?f.next=c:this.head=c,c?c.prev=f:this.tail=f,g.next=g.prev=null,this._len--},O.len=function(){return this._len},O.clear=function(){this.head=this.tail=null,this._len=0};var x=function(f){this.value=f,this.next,this.prev},C=function(f){this._list=new d,this._map={},this._maxSize=f||10,this._lastRemovedEntry=null},A=C.prototype;A.put=function(g,f){var c=this._list,o=this._map,r=null;if(o[g]==null){var i=c.len(),n=this._lastRemovedEntry;if(i>=this._maxSize&&i>0){var e=c.head;c.remove(e),delete o[e.key],r=e.value,this._lastRemovedEntry=e}n?n.value=f:n=new x(f),n.key=g,c.insertEntry(n),o[g]=n}return r},A.get=function(g){var f=this._map[g],c=this._list;if(f!=null)return f!==c.tail&&(c.remove(f),c.insertEntry(f)),f.value},A.clear=function(){this._list.clear(),this._map={}};var b=C;H.exports=b},"1bdT":function(H,k,d){var O=d("3gBT"),x=d("H6uX"),C=d("DN4a"),A=d("vWvF"),b=d("bYtY"),g=function(o){C.call(this,o),x.call(this,o),A.call(this,o),this.id=o.id||O()};g.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(o,r){switch(this.draggable){case"horizontal":r=0;break;case"vertical":o=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=o,i[5]+=r,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(o,r){},attrKV:function(o,r){if(o==="position"||o==="scale"||o==="origin"){if(r){var i=this[o];i||(i=this[o]=[]),i[0]=r[0],i[1]=r[1]}}else this[o]=r},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(o,r){if(typeof o=="string")this.attrKV(o,r);else if(b.isObject(o))for(var i in o)o.hasOwnProperty(i)&&this.attrKV(i,o[i]);return this.dirty(!1),this},setClipPath:function(o){var r=this.__zr;r&&o.addSelfToZr(r),this.clipPath&&this.clipPath!==o&&this.removeClipPath(),this.clipPath=o,o.__zr=r,o.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var o=this.clipPath;o&&(o.__zr&&o.removeSelfFromZr(o.__zr),o.__zr=null,o.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(o){this.__zr=o;var r=this.animators;if(r)for(var i=0;i<r.length;i++)o.animation.addAnimator(r[i]);this.clipPath&&this.clipPath.addSelfToZr(o)},removeSelfFromZr:function(o){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)o.animation.removeAnimator(r[i]);this.clipPath&&this.clipPath.removeSelfFromZr(o)}},b.mixin(g,A),b.mixin(g,C),b.mixin(g,x);var f=g;H.exports=f},"1dTM":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=d("GQ8N"),x=S(d("Lo0S")),C=d("VSMT"),A=d("GdRQ"),b=d("SZEN"),g=d("vewr"),f=T(d("YJ9k")),c=T(d("MZdM")),o=T(d("ItS6")),r=T(d("whVF")),i=T(d("Fv0C")),n=T(d("LCi9")),e=T(d("rwxt")),l=T(d("Mmt2")),t=T(d("iUHT")),a=T(d("mHUz")),s=T(d("P2ho")),u=d("NBmB");d("mdZa");var h=T(d("34/K")),p=T(d("hXwI")),m=T(d("SgaC")),v=T(d("3690")),y=T(d("8K/p")),E=T(d("xO64"));function T(ye){return ye&&ye.__esModule?ye:{default:ye}}function w(){if(typeof WeakMap!="function")return null;var ye=new WeakMap;return w=function(){return ye},ye}function S(ye){if(ye&&ye.__esModule)return ye;if(ye===null||_(ye)!=="object"&&typeof ye!="function")return{default:ye};var ce=w();if(ce&&ce.has(ye))return ce.get(ye);var Te={},Se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var le in ye)if(Object.prototype.hasOwnProperty.call(ye,le)){var fe=Se?Object.getOwnPropertyDescriptor(ye,le):null;fe&&(fe.get||fe.set)?Object.defineProperty(Te,le,fe):Te[le]=ye[le]}return Te.default=ye,ce&&ce.set(ye,Te),Te}function _(ye){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(Te){return typeof Te}:_=function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},_(ye)}function I(ye,ce){if(!(ye instanceof ce))throw new TypeError("Cannot call a class as a function")}function L(ye,ce){for(var Te=0;Te<ce.length;Te++){var Se=ce[Te];Se.enumerable=Se.enumerable||!1,Se.configurable=!0,"value"in Se&&(Se.writable=!0),Object.defineProperty(ye,Se.key,Se)}}function N(ye,ce,Te){return ce&&L(ye.prototype,ce),Te&&L(ye,Te),ye}function R(ye,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function");ye.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ye,writable:!0,configurable:!0}}),ce&&D(ye,ce)}function D(ye,ce){return D=Object.setPrototypeOf||function(Se,le){return Se.__proto__=le,Se},D(ye,ce)}function F(ye){var ce=B();return function(){var Se=j(ye),le;if(ce){var fe=j(this).constructor;le=Reflect.construct(Se,arguments,fe)}else le=Se.apply(this,arguments);return M(this,le)}}function M(ye,ce){return ce&&(_(ce)==="object"||typeof ce=="function")?ce:U(ye)}function U(ye){if(ye===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye}function B(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ye){return!1}}function j(ye){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(Te){return Te.__proto__||Object.getPrototypeOf(Te)},j(ye)}var W=3,V="rgb(40, 40, 40)",z=17,J=50,q=19,de=75,ae=50,ve=1e3,_e=50,Ie=1,He=1<<1,me=1<<2,ke=1<<3,se=1<<4,te=1<<24,Ge=1<<25,oe=1<<26,Y=1<<27,G=1<<28,Q=function(ye){R(Te,ye);var ce=F(Te);function Te(Se,le,fe){var Ee;if(I(this,Te),!Se)throw new Error("Must specify target");if(!le)throw new Error("Must specify URL");Ee=ce.call(this),Ee._target=Se,Ee._url=le,fe=fe||{},Ee._rfbCredentials=fe.credentials||{},Ee._shared="shared"in fe?!!fe.shared:!0,Ee._repeaterID=fe.repeaterID||"",Ee._wsProtocols=fe.wsProtocols||[],Ee._rfbConnectionState="",Ee._rfbInitState="",Ee._rfbAuthScheme=-1,Ee._rfbCleanDisconnect=!0,Ee._rfbVersion=0,Ee._rfbMaxVersion=3.8,Ee._rfbTightVNC=!1,Ee._rfbVeNCryptState=0,Ee._rfbXvpVer=0,Ee._fbWidth=0,Ee._fbHeight=0,Ee._fbName="",Ee._capabilities={power:!1},Ee._supportsFence=!1,Ee._supportsContinuousUpdates=!1,Ee._enabledContinuousUpdates=!1,Ee._supportsSetDesktopSize=!1,Ee._screenID=0,Ee._screenFlags=0,Ee._qemuExtKeyEventSupported=!1,Ee._clipboardText=null,Ee._clipboardServerCapabilitiesActions={},Ee._clipboardServerCapabilitiesFormats={},Ee._sock=null,Ee._display=null,Ee._flushing=!1,Ee._keyboard=null,Ee._gestures=null,Ee._disconnTimer=null,Ee._resizeTimeout=null,Ee._mouseMoveTimer=null,Ee._decoders={},Ee._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},Ee._mousePos={},Ee._mouseButtonMask=0,Ee._mouseLastMoveTime=0,Ee._viewportDragging=!1,Ee._viewportDragPos={},Ee._viewportHasMoved=!1,Ee._accumulatedWheelDeltaX=0,Ee._accumulatedWheelDeltaY=0,Ee._gestureLastTapTime=null,Ee._gestureFirstDoubleTapEv=null,Ee._gestureLastMagnitudeX=0,Ee._gestureLastMagnitudeY=0,Ee._eventHandlers={focusCanvas:Ee._focusCanvas.bind(U(Ee)),windowResize:Ee._windowResize.bind(U(Ee)),handleMouse:Ee._handleMouse.bind(U(Ee)),handleWheel:Ee._handleWheel.bind(U(Ee)),handleGesture:Ee._handleGesture.bind(U(Ee))},x.Debug(">> RFB.constructor"),Ee._screen=document.createElement("div"),Ee._screen.style.display="flex",Ee._screen.style.width="100%",Ee._screen.style.height="100%",Ee._screen.style.overflow="auto",Ee._screen.style.background=V,Ee._canvas=document.createElement("canvas"),Ee._canvas.style.margin="auto",Ee._canvas.style.outline="none",Ee._canvas.style.flexShrink="0",Ee._canvas.width=0,Ee._canvas.height=0,Ee._canvas.tabIndex=-1,Ee._screen.appendChild(Ee._canvas),Ee._cursor=new e.default,Ee._cursorImage=Te.cursors.none,Ee._decoders[u.encodings.encodingRaw]=new h.default,Ee._decoders[u.encodings.encodingCopyRect]=new p.default,Ee._decoders[u.encodings.encodingRRE]=new m.default,Ee._decoders[u.encodings.encodingHextile]=new v.default,Ee._decoders[u.encodings.encodingTight]=new y.default,Ee._decoders[u.encodings.encodingTightPNG]=new E.default;try{Ee._display=new c.default(Ee._canvas)}catch(Ve){throw x.Error("Display exception: "+Ve),Ve}return Ee._display.onflush=Ee._onFlush.bind(U(Ee)),Ee._keyboard=new i.default(Ee._canvas),Ee._keyboard.onkeyevent=Ee._handleKeyEvent.bind(U(Ee)),Ee._gestures=new n.default,Ee._sock=new l.default,Ee._sock.on("message",function(){Ee._handleMessage()}),Ee._sock.on("open",function(){Ee._rfbConnectionState==="connecting"&&Ee._rfbInitState===""?(Ee._rfbInitState="ProtocolVersion",x.Debug("Starting VNC handshake")):Ee._fail("Unexpected server connection while "+Ee._rfbConnectionState)}),Ee._sock.on("close",function(Ve){x.Debug("WebSocket on-close event");var vt="";Ve.code&&(vt="(code: "+Ve.code,Ve.reason&&(vt+=", reason: "+Ve.reason),vt+=")");switch(Ee._rfbConnectionState){case"connecting":Ee._fail("Connection closed "+vt);break;case"connected":Ee._updateConnectionState("disconnecting"),Ee._updateConnectionState("disconnected");break;case"disconnecting":Ee._updateConnectionState("disconnected");break;case"disconnected":Ee._fail("Unexpected server disconnect when already disconnected "+vt);break;default:Ee._fail("Unexpected server disconnect before connecting "+vt);break}Ee._sock.off("close")}),Ee._sock.on("error",function(Ve){return x.Warn("WebSocket on-error event")}),setTimeout(Ee._updateConnectionState.bind(U(Ee),"connecting")),x.Debug("<< RFB.constructor"),Ee.dragViewport=!1,Ee.focusOnClick=!0,Ee._viewOnly=!1,Ee._clipViewport=!1,Ee._scaleViewport=!1,Ee._resizeSession=!1,Ee._showDotCursor=!1,fe.showDotCursor!==void 0&&(x.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Ee._showDotCursor=fe.showDotCursor),Ee._qualityLevel=6,Ee._compressionLevel=2,Ee}return N(Te,[{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;x.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,fe,Ee){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Ee===void 0){this.sendKey(le,fe,!0),this.sendKey(le,fe,!1);return}var Ve=s.default[fe];if(this._qemuExtKeyEventSupported&&Ve)le=le||0,x.Info("Sending key ("+(Ee?"down":"up")+"): keysym "+le+", scancode "+Ve),Te.messages.QEMUExtendedKeyEvent(this._sock,le,Ee,Ve);else{if(!le)return;x.Info("Sending keysym ("+(Ee?"down":"up")+"): "+le),Te.messages.keyEvent(this._sock,le,Ee?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[Ie]&&this._clipboardServerCapabilitiesActions[Y])this._clipboardText=le,Te.messages.extendedClipboardNotify(this._sock,[Ie]);else{for(var fe=new Uint8Array(le.length),Ee=0;Ee<le.length;Ee++)fe[Ee]=le.charCodeAt(Ee);Te.messages.clientCutText(this._sock,fe)}}},{key:"_connect",value:function(){x.Debug(">> RFB.connect"),x.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),x.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){x.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),x.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 fe=this;window.requestAnimationFrame(function(){fe._updateClip(),fe._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var le=this._display.clipViewport,fe=this._clipViewport;if(this._scaleViewport&&(fe=!1),le!==fe&&(this._display.clipViewport=fe),fe){var Ee=this._screenSize();this._display.viewportChangeSize(Ee.w,Ee.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();Te.messages.setDesktopSize(this._sock,Math.floor(le.w),Math.floor(le.h),this._screenID,this._screenFlags),x.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 fe=this,Ee=this._rfbConnectionState;if(le===Ee){x.Debug("Already in state '"+le+"', ignoring");return}if(Ee==="disconnected"){x.Error("Tried changing state of a disconnected RFB object");return}switch(le){case"connected":if(Ee!=="connecting"){x.Error("Bad transition to connected state, previous connection state: "+Ee);return}break;case"disconnected":if(Ee!=="disconnecting"){x.Error("Bad transition to disconnected state, previous connection state: "+Ee);return}break;case"connecting":if(Ee!==""){x.Error("Bad transition to connecting state, previous connection state: "+Ee);return}break;case"disconnecting":if(Ee!=="connected"&&Ee!=="connecting"){x.Error("Bad transition to disconnecting state, previous connection state: "+Ee);return}break;default:x.Error("Unknown connection state: "+le);return}this._rfbConnectionState=le,x.Debug("New state '"+le+"', was '"+Ee+"'."),this._disconnTimer&&le!=="disconnecting"&&(x.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(){x.Error("Disconnection timed out."),fe._updateConnectionState("disconnected")},W*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(le){switch(this._rfbConnectionState){case"disconnecting":x.Error("Failed when disconnecting: "+le);break;case"connected":x.Error("Failed while connected: "+le);break;case"connecting":x.Error("Failed when connecting: "+le);break;default:x.Error("RFB failure: "+le);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(le,fe){this._capabilities[le]=fe,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){x.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":x.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,fe,Ee){this.sendKey(le,fe,Ee)}},{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 fe=(0,b.clientToElement)(le.clientX,le.clientY,this._canvas);switch(le.type){case"mousedown":(0,g.setCapture)(this._canvas),this._handleMouseButton(fe.x,fe.y,!0,1<<le.button);break;case"mouseup":this._handleMouseButton(fe.x,fe.y,!1,1<<le.button);break;case"mousemove":this._handleMouseMove(fe.x,fe.y);break}}},{key:"_handleMouseButton",value:function(le,fe,Ee,Ve){if(this.dragViewport)if(Ee&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:le,y:fe},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(le,fe,Ve)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(le,fe,this._mouseButtonMask)),Ee?this._mouseButtonMask|=Ve:this._mouseButtonMask&=~Ve,this._sendMouse(le,fe,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(le,fe){var Ee=this;if(this._viewportDragging){var Ve=this._viewportDragPos.x-le,vt=this._viewportDragPos.y-fe;(this._viewportHasMoved||Math.abs(Ve)>A.dragThreshold||Math.abs(vt)>A.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:le,y:fe},this._display.viewportChangePos(Ve,vt));return}if(this._mousePos={x:le,y:fe},this._mouseMoveTimer==null){var et=Date.now()-this._mouseLastMoveTime;et>z?(this._sendMouse(le,fe,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Ee._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,fe,Ee){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Te.messages.pointerEvent(this._sock,this._display.absX(le),this._display.absY(fe),Ee)}},{key:"_handleWheel",value:function(le){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;le.stopPropagation(),le.preventDefault();var fe=(0,b.clientToElement)(le.clientX,le.clientY,this._canvas),Ee=le.deltaX,Ve=le.deltaY;le.deltaMode!==0&&(Ee*=q,Ve*=q),this._accumulatedWheelDeltaX+=Ee,this._accumulatedWheelDeltaY+=Ve,Math.abs(this._accumulatedWheelDeltaX)>=J&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(fe.x,fe.y,!0,1<<5),this._handleMouseButton(fe.x,fe.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(fe.x,fe.y,!0,1<<6),this._handleMouseButton(fe.x,fe.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=J&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(fe.x,fe.y,!0,1<<3),this._handleMouseButton(fe.x,fe.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(fe.x,fe.y,!0,1<<4),this._handleMouseButton(fe.x,fe.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(le,fe,Ee){this._handleMouseMove(fe,Ee),this._cursor.move(le.detail.clientX,le.detail.clientY)}},{key:"_handleTapEvent",value:function(le,fe){var Ee=(0,b.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 Ve=this._gestureFirstDoubleTapEv.detail.clientX-le.detail.clientX,vt=this._gestureFirstDoubleTapEv.detail.clientY-le.detail.clientY,et=Math.hypot(Ve,vt);et<_e?Ee=(0,b.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,Ee.x,Ee.y),this._handleMouseButton(Ee.x,Ee.y,!0,fe),this._handleMouseButton(Ee.x,Ee.y,!1,fe)}},{key:"_handleGesture",value:function(le){var fe,Ee=(0,b.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,Ee.x,Ee.y),this._handleMouseButton(Ee.x,Ee.y,!0,1);break;case"longpress":this._fakeMouseMove(le,Ee.x,Ee.y),this._handleMouseButton(Ee.x,Ee.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=le.detail.magnitudeX,this._gestureLastMagnitudeY=le.detail.magnitudeY,this._fakeMouseMove(le,Ee.x,Ee.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(le.detail.magnitudeX,le.detail.magnitudeY),this._fakeMouseMove(le,Ee.x,Ee.y);break}break;case"gesturemove":switch(le.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(le,Ee.x,Ee.y);break;case"twodrag":for(this._fakeMouseMove(le,Ee.x,Ee.y);le.detail.magnitudeY-this._gestureLastMagnitudeY>ae;)this._handleMouseButton(Ee.x,Ee.y,!0,8),this._handleMouseButton(Ee.x,Ee.y,!1,8),this._gestureLastMagnitudeY+=ae;for(;le.detail.magnitudeY-this._gestureLastMagnitudeY<-ae;)this._handleMouseButton(Ee.x,Ee.y,!0,16),this._handleMouseButton(Ee.x,Ee.y,!1,16),this._gestureLastMagnitudeY-=ae;for(;le.detail.magnitudeX-this._gestureLastMagnitudeX>ae;)this._handleMouseButton(Ee.x,Ee.y,!0,32),this._handleMouseButton(Ee.x,Ee.y,!1,32),this._gestureLastMagnitudeX+=ae;for(;le.detail.magnitudeX-this._gestureLastMagnitudeX<-ae;)this._handleMouseButton(Ee.x,Ee.y,!0,64),this._handleMouseButton(Ee.x,Ee.y,!1,64),this._gestureLastMagnitudeX-=ae;break;case"pinch":if(this._fakeMouseMove(le,Ee.x,Ee.y),fe=Math.hypot(le.detail.magnitudeX,le.detail.magnitudeY),Math.abs(fe-this._gestureLastMagnitudeX)>de){for(this._handleKeyEvent(a.default.XK_Control_L,"ControlLeft",!0);fe-this._gestureLastMagnitudeX>de;)this._handleMouseButton(Ee.x,Ee.y,!0,8),this._handleMouseButton(Ee.x,Ee.y,!1,8),this._gestureLastMagnitudeX+=de;for(;fe-this._gestureLastMagnitudeX<-de;)this._handleMouseButton(Ee.x,Ee.y,!0,16),this._handleMouseButton(Ee.x,Ee.y,!1,16),this._gestureLastMagnitudeX-=de}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,Ee.x,Ee.y),this._handleMouseButton(Ee.x,Ee.y,!1,1);break;case"longpress":this._fakeMouseMove(le,Ee.x,Ee.y),this._handleMouseButton(Ee.x,Ee.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);x.Info("Server ProtocolVersion: "+le);var fe=0;switch(le){case"000.000":fe=1;break;case"003.003":case"003.006":case"003.889":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+le)}if(fe){for(var Ee="ID:"+this._repeaterID;Ee.length<250;)Ee+="\0";return this._sock.sendString(Ee),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var Ve="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+Ve+`
`),x.Debug("Sent ProtocolVersion: "+Ve),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function le(Ve,vt){for(var et=0;et<vt.length;et++)if(vt[et]===Ve)return!0;return!1}if(this._rfbVersion>=3.7){var fe=this._sock.rQshift8();if(this._sock.rQwait("security type",fe,1))return!1;if(fe===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var Ee=this._sock.rQshiftBytes(fe);if(x.Debug("Server security types: "+Ee),le(1,Ee))this._rfbAuthScheme=1;else if(le(22,Ee))this._rfbAuthScheme=22;else if(le(16,Ee))this._rfbAuthScheme=16;else if(le(2,Ee))this._rfbAuthScheme=2;else if(le(19,Ee))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+Ee+")");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",x.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(),fe="";if(le>0){if(this._sock.rQwait("reason",le,4))return!1;fe=this._sock.rQshiftStr(le)}return fe!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:fe}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+fe+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}},{key:"_negotiateXvpAuth",value:function(){if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0||this._rfbCredentials.target===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;var 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(),fe=this._sock.rQshift8();if(!(le==0&&fe==2))return this._fail("Unsupported VeNCrypt version "+le+"."+fe);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var Ee=this._sock.rQshift8();if(Ee!=0)return this._fail("VeNCrypt failure "+Ee);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var Ve=this._sock.rQshift8();if(Ve<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=Ve,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var vt=[],et=0;et<this._rfbVeNCryptSubtypesLength;et++)vt.push(this._sock.rQshift32());if(vt.indexOf(256)!=-1)this._sock.send([0,0,1,0]),this._rfbVeNCryptState=4;else return this._fail("VeNCrypt Plain subtype not offered by server")}if(this._rfbVeNCryptState==4){if(!this._rfbCredentials.username||!this._rfbCredentials.password)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;var Oe=(0,C.encodeUTF8)(this._rfbCredentials.username),Tt=(0,C.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Oe.length]),this._sock.send([0,0,0,Tt.length]),this._sock.sendString(Oe),this._sock.sendString(Tt),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)),fe=Te.genDES(this._rfbCredentials.password,le);return this._sock.send(fe),this._rfbInitState="SecurityResult",!0}},{key:"_negotiateTightUnixAuth",value:function(){return this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0?(this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1):(this._sock.send([0,0,0,this._rfbCredentials.username.length]),this._sock.send([0,0,0,this._rfbCredentials.password.length]),this._sock.sendString(this._rfbCredentials.username),this._sock.sendString(this._rfbCredentials.password),this._rfbInitState="SecurityResult",!0)}},{key:"_negotiateTightTunnels",value:function(le){for(var fe={0:{vendor:"TGHT",signature:"NOTUNNEL"}},Ee={},Ve=0;Ve<le;Ve++){var vt=this._sock.rQshift32(),et=this._sock.rQshiftStr(4),Oe=this._sock.rQshiftStr(8);Ee[vt]={vendor:et,signature:Oe}}return x.Debug("Server Tight tunnel types: "+Ee),Ee[1]&&Ee[1].vendor==="SICR"&&Ee[1].signature==="SCHANNEL"&&(x.Debug("Detected Siemens server. Assuming NOTUNNEL support."),Ee[0]={vendor:"TGHT",signature:"NOTUNNEL"}),Ee[0]?Ee[0].vendor!=fe[0].vendor||Ee[0].signature!=fe[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(x.Debug("Selected tunnel type: "+fe[0]),this._sock.send([0,0,0,0]),!1):this._fail("Server wanted tunnels, but doesn't support the notunnel type")}},{key:"_negotiateTightAuth",value:function(){if(!this._rfbTightVNC){if(this._sock.rQwait("num tunnels",4))return!1;var 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 fe=this._sock.rQshift32();if(fe===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*fe,4))return!1;for(var Ee={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},Ve=[],vt=0;vt<fe;vt++){this._sock.rQshift32();var et=this._sock.rQshiftStr(12);Ve.push(et)}x.Debug("Server Tight authentication types: "+Ve);for(var Oe in Ee)if(Ve.indexOf(Oe)!=-1){this._sock.send([0,0,0,Ee[Oe]]),x.Debug("Selected authentication type: "+Oe);switch(Oe){case"STDVNOAUTH__":return this._rfbInitState="SecurityResult",!0;case"STDVVNCAUTH_":return this._rfbAuthScheme=2,this._initMsg();case"TGHTULGNAUTH":return this._rfbAuthScheme=129,this._initMsg();default:return this._fail("Unsupported tiny auth scheme (scheme: "+Oe+")")}}return this._fail("No supported sub-auth types!")}},{key:"_negotiateAuthentication",value:function(){switch(this._rfbAuthScheme){case 1:return this._rfbVersion>=3.8?(this._rfbInitState="SecurityResult",!0):(this._rfbInitState="ClientInitialisation",this._initMsg());case 22:return this._negotiateXvpAuth();case 2:return this._negotiateStdVNCAuth();case 16:return this._negotiateTightAuth();case 19:return this._negotiateVeNCryptAuth();case 129:return this._negotiateTightUnixAuth();default:return this._fail("Unsupported auth scheme (scheme: "+this._rfbAuthScheme+")")}}},{key:"_handleSecurityResult",value:function(){if(this._sock.rQwait("VNC auth response ",4))return!1;var le=this._sock.rQshift32();return le===0?(this._rfbInitState="ClientInitialisation",x.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(),fe=this._sock.rQshift16(),Ee=this._sock.rQshift8(),Ve=this._sock.rQshift8(),vt=this._sock.rQshift8(),et=this._sock.rQshift8(),Oe=this._sock.rQshift16(),Tt=this._sock.rQshift16(),Je=this._sock.rQshift16(),St=this._sock.rQshift8(),Mt=this._sock.rQshift8(),er=this._sock.rQshift8();this._sock.rQskipBytes(3);var It=this._sock.rQshift32();if(this._sock.rQwait("server init name",It,24))return!1;var _t=this._sock.rQshiftStr(It);if(_t=(0,C.decodeUTF8)(_t,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+It))return!1;var Xe=this._sock.rQshift16(),ie=this._sock.rQshift16(),X=this._sock.rQshift16();this._sock.rQskipBytes(2);var Be=(Xe+ie+X)*16;if(this._sock.rQwait("TightVNC extended server init header",Be,32+It))return!1;this._sock.rQskipBytes(16*Xe),this._sock.rQskipBytes(16*ie),this._sock.rQskipBytes(16*X)}return x.Info("Screen: "+le+"x"+fe+", bpp: "+Ee+", depth: "+Ve+", bigEndian: "+vt+", trueColor: "+et+", redMax: "+Oe+", greenMax: "+Tt+", blueMax: "+Je+", redShift: "+St+", greenShift: "+Mt+", blueShift: "+er),this._setDesktopName(_t),this._resize(le,fe),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(x.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Te.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Te.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)),Te.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 x.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(x.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 fe=this._sock.rQshiftStr(le);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:fe}}))}else{le=Math.abs(le);var Ee=this._sock.rQshift32(),Ve=Ee&65535,vt=Ee&4278190080,et=!!(vt&te);if(et){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Oe=0;Oe<=15;Oe++){var Tt=1<<Oe;Ve&Tt&&(this._clipboardServerCapabilitiesFormats[Tt]=!0,this._sock.rQshift32())}for(var Je=24;Je<=31;Je++){var St=1<<Je;this._clipboardServerCapabilitiesActions[St]=!!(vt&St)}var Mt=[te,Ge,oe,Y,G];Te.messages.extendedClipboardCaps(this._sock,Mt,{extendedClipboardFormatText:0})}else if(vt===Ge){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[G]&&(Ve&Ie&&Te.messages.extendedClipboardProvide(this._sock,[Ie],[this._clipboardText]))}else if(vt===oe){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Y]&&(this._clipboardText!=null?Te.messages.extendedClipboardNotify(this._sock,[Ie]):Te.messages.extendedClipboardNotify(this._sock,[]))}else if(vt===Y){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Ge]&&(Ve&Ie&&Te.messages.extendedClipboardRequest(this._sock,[Ie]))}else if(vt===G){if(this._viewOnly)return!0;if(!(Ve&Ie))return!0;this._clipboardText=null;var er=this._sock.rQshiftBytes(le-4),It=new o.default,_t=null;It.setInput(er);for(var Xe=0;Xe<=15;Xe++){var ie=1<<Xe;if(Ve&ie){var X=0,Be=It.inflate(4);X|=Be[0]<<24,X|=Be[1]<<16,X|=Be[2]<<8,X|=Be[3];var Ce=It.inflate(X);ie===Ie&&(_t=Ce)}}if(It.setInput(null),_t!==null){for(var Z="",nt=0;nt<_t.length;nt++)Z+=String.fromCharCode(_t[nt]);_t=Z,_t=(0,C.decodeUTF8)(_t),_t.length>0&&_t.charAt(_t.length-1)==="\0"&&(_t=_t.slice(0,-1)),_t=_t.replace(`\r
`,`
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:_t}}))}}else return this._fail("Unexpected action in extended clipboard message: "+vt)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var le=this._sock.rQshift32(),fe=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",fe,9))return!1;fe>64&&(x.Warn("Bad payload length ("+fe+") in fence response"),fe=64);var Ee=this._sock.rQshiftStr(fe);return this._supportsFence=!0,le&1<<31?(le&=1<<0|1<<1,Te.messages.clientFence(this._sock,le,Ee),!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(),fe=this._sock.rQshift8();switch(fe){case 0:x.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=le,x.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+fe+")");break}return!0}},{key:"_normalMsg",value:function(){var le;this._FBU.rects>0?le=0:le=this._sock.rQshift8();var fe,Ee;switch(le){case 0:return Ee=this._framebufferUpdate(),Ee&&!this._enabledContinuousUpdates&&Te.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Ee;case 1:return this._handleSetColourMapMsg();case 2:return x.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return fe=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,fe&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),x.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+le+")"),x.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(fe){}return!0;case u.encodings.pseudoEncodingDesktopName:return this._handleDesktopName();case u.encodings.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case u.encodings.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}},{key:"_handleVMwareCursor",value:function(){var le=this._FBU.x,fe=this._FBU.y,Ee=this._FBU.width,Ve=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var vt=this._sock.rQshift8();this._sock.rQshift8();var et,Oe=4;if(vt==0){var Tt=4294967040|0;if(et=new Array(Ee*Ve*Oe),this._sock.rQwait("VMware cursor classic encoding",Ee*Ve*Oe*2,2))return!1;for(var Je=new Array(Ee*Ve),St=0;St<Ee*Ve;St++)Je[St]=this._sock.rQshift32();for(var Mt=new Array(Ee*Ve),er=0;er<Ee*Ve;er++)Mt[er]=this._sock.rQshift32();for(var It=0;It<Ee*Ve;It++)if(Je[It]==0){var _t=Mt[It],Xe=_t>>8&255,ie=_t>>16&255,X=_t>>24&255;et[It*Oe]=Xe,et[It*Oe+1]=ie,et[It*Oe+2]=X,et[It*Oe+3]=255}else(Je[It]&Tt)==Tt?Mt[It]==0?(et[It*Oe]=0,et[It*Oe+1]=0,et[It*Oe+2]=0,et[It*Oe+3]=0):((Mt[It]&Tt)==Tt,et[It*Oe]=0,et[It*Oe+1]=0,et[It*Oe+2]=0,et[It*Oe+3]=255):(et[It*Oe]=0,et[It*Oe+1]=0,et[It*Oe+2]=0,et[It*Oe+3]=255)}else if(vt==1){if(this._sock.rQwait("VMware cursor alpha encoding",Ee*Ve*4,2))return!1;et=new Array(Ee*Ve*Oe);for(var Be=0;Be<Ee*Ve;Be++){var Ce=this._sock.rQshift32();et[Be*4]=Ce>>24&255,et[Be*4+1]=Ce>>16&255,et[Be*4+2]=Ce>>8&255,et[Be*4+3]=Ce&255}}else return x.Warn("The given cursor type is not supported: "+vt+" given."),!1;return this._updateCursor(et,le,fe,Ee,Ve),!0}},{key:"_handleCursor",value:function(){var le=this._FBU.x,fe=this._FBU.y,Ee=this._FBU.width,Ve=this._FBU.height,vt=Ee*Ve*4,et=Math.ceil(Ee/8)*Ve,Oe=vt+et;if(this._sock.rQwait("cursor encoding",Oe))return!1;for(var Tt=this._sock.rQshiftBytes(vt),Je=this._sock.rQshiftBytes(et),St=new Uint8Array(Ee*Ve*4),Mt=0,er=0;er<Ve;er++)for(var It=0;It<Ee;It++){var _t=er*Math.ceil(Ee/8)+Math.floor(It/8),Xe=Je[_t]<<It%8&128?255:0;St[Mt]=Tt[Mt+2],St[Mt+1]=Tt[Mt+1],St[Mt+2]=Tt[Mt],St[Mt+3]=Xe,Mt+=4}return this._updateCursor(St,le,fe,Ee,Ve),!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 fe=this._sock.rQshiftStr(le);return fe=(0,C.decodeUTF8)(fe,!0),this._setDesktopName(fe),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var le=this._sock.rQpeek8(),fe=4+le*16;if(this._sock.rQwait("ExtendedDesktopSize",fe))return!1;var Ee=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,Ee&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var Ve=0;Ve<le;Ve+=1)Ve===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 vt="";switch(this._FBU.y){case 1:vt="Resize is administratively prohibited";break;case 2:vt="Out of resources";break;case 3:vt="Invalid screen layout";break;default:vt="Unknown reason";break}x.Warn("Server did not accept the resize request: "+vt)}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(fe){return this._fail("Error decoding rect: "+fe),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;Te.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(le,fe){this._fbWidth=le,this._fbHeight=fe,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(le,fe){if(this._rfbXvpVer<le)return;x.Info("Sending XVP operation "+fe+" (version "+le+")"),Te.messages.xvpOp(this._sock,le,fe)}},{key:"_updateCursor",value:function(le,fe,Ee,Ve,vt){this._cursorImage={rgbaPixels:le,hotx:fe,hoty:Ee,w:Ve,h:vt},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()?Te.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){x.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){x.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){x.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,fe){var Ee=le.split("").map(function(Ve){return Ve.charCodeAt(0)});return new t.default(Ee).encrypt(fe)}}]),Te}(f.default);k.default=Q,Q.messages={keyEvent:function(ce,Te,Se){var le=ce._sQ,fe=ce._sQlen;le[fe]=4,le[fe+1]=Se,le[fe+2]=0,le[fe+3]=0,le[fe+4]=Te>>24,le[fe+5]=Te>>16,le[fe+6]=Te>>8,le[fe+7]=Te,ce._sQlen+=8,ce.flush()},QEMUExtendedKeyEvent:function(ce,Te,Se,le){function fe(et){var Oe=le>>8,Tt=le&255;return Oe===224&&Tt<127?Tt|128:et}var Ee=ce._sQ,Ve=ce._sQlen;Ee[Ve]=255,Ee[Ve+1]=0,Ee[Ve+2]=Se>>8,Ee[Ve+3]=Se,Ee[Ve+4]=Te>>24,Ee[Ve+5]=Te>>16,Ee[Ve+6]=Te>>8,Ee[Ve+7]=Te;var vt=fe(le);Ee[Ve+8]=vt>>24,Ee[Ve+9]=vt>>16,Ee[Ve+10]=vt>>8,Ee[Ve+11]=vt,ce._sQlen+=12,ce.flush()},pointerEvent:function(ce,Te,Se,le){var fe=ce._sQ,Ee=ce._sQlen;fe[Ee]=5,fe[Ee+1]=le,fe[Ee+2]=Te>>8,fe[Ee+3]=Te,fe[Ee+4]=Se>>8,fe[Ee+5]=Se,ce._sQlen+=6,ce.flush()},_buildExtendedClipboardFlags:function(ce,Te){for(var Se=new Uint8Array(4),le=0,fe=0,Ee=0;Ee<ce.length;Ee++)fe|=ce[Ee];for(var Ve=0;Ve<Te.length;Ve++)le|=Te[Ve];return Se[0]=fe>>24,Se[1]=0,Se[2]=0,Se[3]=le,Se},extendedClipboardProvide:function(ce,Te,Se){for(var le=new r.default,fe=[],Ee=0;Ee<Te.length;Ee++){if(Te[Ee]!=Ie)throw new Error("Unsupported extended clipboard format for Provide message.");Se[Ee]=Se[Ee].replace(/\r\n|\r|\n/gm,`\r
`);var Ve=(0,C.encodeUTF8)(Se[Ee]+"\0");fe.push(Ve.length>>24&255,Ve.length>>16&255,Ve.length>>8&255,Ve.length&255);for(var vt=0;vt<Ve.length;vt++)fe.push(Ve.charCodeAt(vt))}var et=le.deflate(new Uint8Array(fe)),Oe=new Uint8Array(4+et.length);Oe.set(Q.messages._buildExtendedClipboardFlags([G],Te)),Oe.set(et,4),Q.messages.clientCutText(ce,Oe,!0)},extendedClipboardNotify:function(ce,Te){var Se=Q.messages._buildExtendedClipboardFlags([Y],Te);Q.messages.clientCutText(ce,Se,!0)},extendedClipboardRequest:function(ce,Te){var Se=Q.messages._buildExtendedClipboardFlags([Ge],Te);Q.messages.clientCutText(ce,Se,!0)},extendedClipboardCaps:function(ce,Te,Se){var le=Object.keys(Se),fe=new Uint8Array(4+4*le.length);le.map(function(vt){return parseInt(vt)}),le.sort(function(vt,et){return vt-et}),fe.set(Q.messages._buildExtendedClipboardFlags(Te,[]));for(var Ee=4,Ve=0;Ve<le.length;Ve++)fe[Ee]=Se[le[Ve]]>>24,fe[Ee+1]=Se[le[Ve]]>>16,fe[Ee+2]=Se[le[Ve]]>>8,fe[Ee+3]=Se[le[Ve]]>>0,Ee+=4,fe[3]|=1<<le[Ve];Q.messages.clientCutText(ce,fe,!0)},clientCutText:function(ce,Te){var Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,le=ce._sQ,fe=ce._sQlen;le[fe]=6,le[fe+1]=0,le[fe+2]=0,le[fe+3]=0;var Ee;Se?Ee=(0,O.toUnsigned32bit)(-Te.length):Ee=Te.length,le[fe+4]=Ee>>24,le[fe+5]=Ee>>16,le[fe+6]=Ee>>8,le[fe+7]=Ee,ce._sQlen+=8;for(var Ve=0,vt=Te.length;vt>0;){for(var et=Math.min(vt,ce._sQbufferSize-ce._sQlen),Oe=0;Oe<et;Oe++)le[ce._sQlen+Oe]=Te[Ve+Oe];ce._sQlen+=et,ce.flush(),vt-=et,Ve+=et}},setDesktopSize:function(ce,Te,Se,le,fe){var Ee=ce._sQ,Ve=ce._sQlen;Ee[Ve]=251,Ee[Ve+1]=0,Ee[Ve+2]=Te>>8,Ee[Ve+3]=Te,Ee[Ve+4]=Se>>8,Ee[Ve+5]=Se,Ee[Ve+6]=1,Ee[Ve+7]=0,Ee[Ve+8]=le>>24,Ee[Ve+9]=le>>16,Ee[Ve+10]=le>>8,Ee[Ve+11]=le,Ee[Ve+12]=0,Ee[Ve+13]=0,Ee[Ve+14]=0,Ee[Ve+15]=0,Ee[Ve+16]=Te>>8,Ee[Ve+17]=Te,Ee[Ve+18]=Se>>8,Ee[Ve+19]=Se,Ee[Ve+20]=fe>>24,Ee[Ve+21]=fe>>16,Ee[Ve+22]=fe>>8,Ee[Ve+23]=fe,ce._sQlen+=24,ce.flush()},clientFence:function(ce,Te,Se){var le=ce._sQ,fe=ce._sQlen;le[fe]=248,le[fe+1]=0,le[fe+2]=0,le[fe+3]=0,le[fe+4]=Te>>24,le[fe+5]=Te>>16,le[fe+6]=Te>>8,le[fe+7]=Te;var Ee=Se.length;le[fe+8]=Ee;for(var Ve=0;Ve<Ee;Ve++)le[fe+9+Ve]=Se.charCodeAt(Ve);ce._sQlen+=9+Ee,ce.flush()},enableContinuousUpdates:function(ce,Te,Se,le,fe,Ee){var Ve=ce._sQ,vt=ce._sQlen;Ve[vt]=150,Ve[vt+1]=Te,Ve[vt+2]=Se>>8,Ve[vt+3]=Se,Ve[vt+4]=le>>8,Ve[vt+5]=le,Ve[vt+6]=fe>>8,Ve[vt+7]=fe,Ve[vt+8]=Ee>>8,Ve[vt+9]=Ee,ce._sQlen+=10,ce.flush()},pixelFormat:function(ce,Te,Se){var le=ce._sQ,fe=ce._sQlen,Ee;Te>16?Ee=32:Te>8?Ee=16:Ee=8;var Ve=Math.floor(Te/3);le[fe]=0,le[fe+1]=0,le[fe+2]=0,le[fe+3]=0,le[fe+4]=Ee,le[fe+5]=Te,le[fe+6]=0,le[fe+7]=Se?1:0,le[fe+8]=0,le[fe+9]=(1<<Ve)-1,le[fe+10]=0,le[fe+11]=(1<<Ve)-1,le[fe+12]=0,le[fe+13]=(1<<Ve)-1,le[fe+14]=Ve*2,le[fe+15]=Ve*1,le[fe+16]=Ve*0,le[fe+17]=0,le[fe+18]=0,le[fe+19]=0,ce._sQlen+=20,ce.flush()},clientEncodings:function(ce,Te){var Se=ce._sQ,le=ce._sQlen;Se[le]=2,Se[le+1]=0,Se[le+2]=Te.length>>8,Se[le+3]=Te.length;for(var fe=le+4,Ee=0;Ee<Te.length;Ee++){var Ve=Te[Ee];Se[fe]=Ve>>24,Se[fe+1]=Ve>>16,Se[fe+2]=Ve>>8,Se[fe+3]=Ve,fe+=4}ce._sQlen+=fe-le,ce.flush()},fbUpdateRequest:function(ce,Te,Se,le,fe,Ee){var Ve=ce._sQ,vt=ce._sQlen;typeof Se=="undefined"&&(Se=0),typeof le=="undefined"&&(le=0),Ve[vt]=3,Ve[vt+1]=Te?1:0,Ve[vt+2]=Se>>8&255,Ve[vt+3]=Se&255,Ve[vt+4]=le>>8&255,Ve[vt+5]=le&255,Ve[vt+6]=fe>>8&255,Ve[vt+7]=fe&255,Ve[vt+8]=Ee>>8&255,Ve[vt+9]=Ee&255,ce._sQlen+=10,ce.flush()},xvpOp:function(ce,Te,Se){var le=ce._sQ,fe=ce._sQlen;le[fe]=250,le[fe+1]=0,le[fe+2]=Te,le[fe+3]=Se,ce._sQlen+=4,ce.flush()}},Q.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}}},"1eCo":function(H,k,d){(function(O){O(d("VrN/"))})(function(O){"use strict";var x={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(A,b){var g=A.indentUnit,f={},c=b.htmlMode?x:C;for(var o in c)f[o]=c[o];for(var o in b)f[o]=b[o];var r,i;function n(I,L){function N(F){return L.tokenize=F,F(I,L)}var R=I.next();if(R=="<")return I.eat("!")?I.eat("[")?I.match("CDATA[")?N(t("atom","]]>")):null:I.match("--")?N(t("comment","-->")):I.match("DOCTYPE",!0,!0)?(I.eatWhile(/[\w\._\-]/),N(a(1))):null:I.eat("?")?(I.eatWhile(/[\w\._\-]/),L.tokenize=t("meta","?>"),"meta"):(r=I.eat("/")?"closeTag":"openTag",L.tokenize=e,"tag bracket");if(R=="&"){var D;return I.eat("#")?I.eat("x")?D=I.eatWhile(/[a-fA-F\d]/)&&I.eat(";"):D=I.eatWhile(/[\d]/)&&I.eat(";"):D=I.eatWhile(/[\w\.\-:]/)&&I.eat(";"),D?"atom":"error"}else return I.eatWhile(/[^&<]/),null}n.isInText=!0;function e(I,L){var N=I.next();if(N==">"||N=="/"&&I.eat(">"))return L.tokenize=n,r=N==">"?"endTag":"selfcloseTag","tag bracket";if(N=="=")return r="equals",null;if(N=="<"){L.tokenize=n,L.state=p,L.tagName=L.tagStart=null;var R=L.tokenize(I,L);return R?R+" tag error":"tag error"}else return/[\'\"]/.test(N)?(L.tokenize=l(N),L.stringStartCol=I.column(),L.tokenize(I,L)):(I.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(I){var L=function(R,D){for(;!R.eol();)if(R.next()==I){D.tokenize=e;break}return"string"};return L.isInAttribute=!0,L}function t(I,L){return function(N,R){for(;!N.eol();){if(N.match(L)){R.tokenize=n;break}N.next()}return I}}function a(I){return function(L,N){for(var R;(R=L.next())!=null;){if(R=="<")return N.tokenize=a(I+1),N.tokenize(L,N);if(R==">")if(I==1){N.tokenize=n;break}else return N.tokenize=a(I-1),N.tokenize(L,N)}return"meta"}}function s(I,L,N){this.prev=I.context,this.tagName=L,this.indent=I.indented,this.startOfLine=N,(f.doNotIndent.hasOwnProperty(L)||I.context&&I.context.noIndent)&&(this.noIndent=!0)}function u(I){I.context&&(I.context=I.context.prev)}function h(I,L){for(var N;;){if(!I.context)return;if(N=I.context.tagName,!f.contextGrabbers.hasOwnProperty(N)||!f.contextGrabbers[N].hasOwnProperty(L))return;u(I)}}function p(I,L,N){return I=="openTag"?(N.tagStart=L.column(),m):I=="closeTag"?v:p}function m(I,L,N){return I=="word"?(N.tagName=L.current(),i="tag",T):f.allowMissingTagName&&I=="endTag"?(i="tag bracket",T(I,L,N)):(i="error",m)}function v(I,L,N){if(I=="word"){var R=L.current();return N.context&&N.context.tagName!=R&&f.implicitlyClosed.hasOwnProperty(N.context.tagName)&&u(N),N.context&&N.context.tagName==R||f.matchClosing===!1?(i="tag",y):(i="tag error",E)}else return f.allowMissingTagName&&I=="endTag"?(i="tag bracket",y(I,L,N)):(i="error",E)}function y(I,L,N){return I!="endTag"?(i="error",y):(u(N),p)}function E(I,L,N){return i="error",y(I,L,N)}function T(I,L,N){if(I=="word")return i="attribute",w;if(I=="endTag"||I=="selfcloseTag"){var R=N.tagName,D=N.tagStart;return N.tagName=N.tagStart=null,I=="selfcloseTag"||f.autoSelfClosers.hasOwnProperty(R)?h(N,R):(h(N,R),N.context=new s(N,R,D==N.indented)),p}return i="error",T}function w(I,L,N){return I=="equals"?S:(f.allowMissing||(i="error"),T(I,L,N))}function S(I,L,N){return I=="string"?_:I=="word"&&f.allowUnquoted?(i="string",T):(i="error",T(I,L,N))}function _(I,L,N){return I=="string"?_:T(I,L,N)}return{startState:function(L){var N={tokenize:n,state:p,indented:L||0,tagName:null,tagStart:null,context:null};return L!=null&&(N.baseIndent=L),N},token:function(L,N){if(!N.tagName&&L.sol()&&(N.indented=L.indentation()),L.eatSpace())return null;r=null;var R=N.tokenize(L,N);return(R||r)&&R!="comment"&&(i=null,N.state=N.state(r||R,L,N),i&&(R=i=="error"?R+" error":i)),R},indent:function(L,N,R){var D=L.context;if(L.tokenize.isInAttribute)return L.tagStart==L.indented?L.stringStartCol+1:L.indented+g;if(D&&D.noIndent)return O.Pass;if(L.tokenize!=e&&L.tokenize!=n)return R?R.match(/^(\s*)/)[0].length:0;if(L.tagName)return f.multilineTagIndentPastTag!==!1?L.tagStart+L.tagName.length+2:L.tagStart+g*(f.multilineTagIndentFactor||1);if(f.alignCDATA&&/<!\[CDATA\[/.test(N))return 0;var F=N&&/^<(\/)?([\w_:\.-]*)/.exec(N);if(F&&F[1])for(;D;)if(D.tagName==F[2]){D=D.prev;break}else if(f.implicitlyClosed.hasOwnProperty(D.tagName))D=D.prev;else break;else if(F)for(;D;){var M=f.contextGrabbers[D.tagName];if(M&&M.hasOwnProperty(F[2]))D=D.prev;else break}for(;D&&D.prev&&!D.startOfLine;)D=D.prev;return D?D.indent+g:L.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:f.htmlMode?"html":"xml",helperType:f.htmlMode?"html":"xml",skipAttribute:function(L){L.state==S&&(L.state=T)},xmlCurrentTag:function(L){return L.tagName?{name:L.tagName,close:L.type=="closeTag"}:null},xmlCurrentContext:function(L){for(var N=[],R=L.context;R;R=R.prev)R.tagName&&N.push(R.tagName);return N.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(H,k,d){(function(O,x){/*!
* html2pdf.js v0.10.1
* Copyright (c) 2021 Erik Koopmans
* Released under the MIT License.
*/(function(A,b){H.exports=b(d("dtIV"),d("wOnQ"))})(self,function(C,A){return function(){var b={"./src/plugin/hyperlinks.js":function(r,i,n){"use strict";n.r(i);var e=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),l=n.n(e),t=n("./node_modules/core-js/modules/es.string.link.js"),a=n.n(t),s=n("./src/worker.js"),u=n("./src/utils.js"),h=[],p={toContainer:s.default.prototype.toContainer,toPdf:s.default.prototype.toPdf};s.default.prototype.toContainer=function(){return p.toContainer.call(this).then(function(){if(this.opt.enableLinks){var y=this.prop.container,E=y.querySelectorAll("a"),T=(0,u.unitConvert)(y.getBoundingClientRect(),this.prop.pageSize.k);h=[],Array.prototype.forEach.call(E,function(w){for(var S=w.getClientRects(),_=0;_<S.length;_++){var I=(0,u.unitConvert)(S[_],this.prop.pageSize.k);I.left-=T.left,I.top-=T.top;var L=Math.floor(I.top/this.prop.pageSize.inner.height)+1,N=this.opt.margin[0]+I.top%this.prop.pageSize.inner.height,R=this.opt.margin[1]+I.left;h.push({page:L,top:N,left:R,clientRect:I,link:w})}},this)}})},s.default.prototype.toPdf=function(){return p.toPdf.call(this).then(function(){if(this.opt.enableLinks){h.forEach(function(E){this.prop.pdf.setPage(E.page),this.prop.pdf.link(E.left,E.top,E.clientRect.width,E.clientRect.height,{url:E.link.href})},this);var y=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(y)}})}},"./src/plugin/jspdf-plugin.js":function(r,i,n){"use strict";n.r(i);var e=n("./node_modules/core-js/modules/es.symbol.js"),l=n.n(e),t=n("./node_modules/core-js/modules/es.symbol.description.js"),a=n.n(t),s=n("./node_modules/core-js/modules/es.object.to-string.js"),u=n.n(s),h=n("./node_modules/core-js/modules/es.symbol.iterator.js"),p=n.n(h),m=n("./node_modules/core-js/modules/es.array.iterator.js"),v=n.n(m),y=n("./node_modules/core-js/modules/es.string.iterator.js"),E=n.n(y),T=n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),w=n.n(T),S=n("jspdf"),_=n.n(S);function I(L){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(R){return typeof R}:I=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},I(L)}S.jsPDF.getPageSize=function(L,N,R){if(I(L)==="object"){var D=L;L=D.orientation,N=D.unit||N,R=D.format||R}N=N||"mm",R=R||"a4",L=(""+(L||"P")).toLowerCase();var F=(""+R).toLowerCase(),M={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(N){case"pt":var U=1;break;case"mm":var U=72/25.4;break;case"cm":var U=72/2.54;break;case"in":var U=72;break;case"px":var U=72/96;break;case"pc":var U=12;break;case"em":var U=12;break;case"ex":var U=6;break;default:throw"Invalid unit: "+N}if(M.hasOwnProperty(F))var B=M[F][1]/U,j=M[F][0]/U;else try{var B=R[1],j=R[0]}catch(z){throw new Error("Invalid format: "+R)}if(L==="p"||L==="portrait"){if(L="p",j>B){var W=j;j=B,B=W}}else if(L==="l"||L==="landscape"){if(L="l",B>j){var W=j;j=B,B=W}}else throw"Invalid orientation: "+L;var V={width:j,height:B,unit:N,k:U};return V},i.default=S.jsPDF},"./src/plugin/pagebreaks.js":function(r,i,n){"use strict";n.r(i);var e=n("./node_modules/core-js/modules/es.array.concat.js"),l=n.n(e),t=n("./node_modules/core-js/modules/es.array.slice.js"),a=n.n(t),s=n("./node_modules/core-js/modules/es.array.join.js"),u=n.n(s),h=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),p=n.n(h),m=n("./node_modules/core-js/modules/es.object.keys.js"),v=n.n(m),y=n("./src/worker.js"),E=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),N={avoidAll:L.indexOf("avoid-all")!==-1,css:L.indexOf("css")!==-1,legacy:L.indexOf("legacy")!==-1},R={},D=this;["before","after","avoid"].forEach(function(U){var B=N.avoidAll&&U==="avoid";R[U]=B?[]:[].concat(D.opt.pagebreak[U]||[]),R[U].length>0&&(R[U]=Array.prototype.slice.call(_.querySelectorAll(R[U].join(", "))))});var F=_.querySelectorAll(".html2pdf__page-break");F=Array.prototype.slice.call(F);var M=_.querySelectorAll("*");Array.prototype.forEach.call(M,function(B){var j={before:!1,after:N.legacy&&F.indexOf(B)!==-1,avoid:N.avoidAll};if(N.css){var W=window.getComputedStyle(B),V=["always","page","left","right"],z=["avoid","avoid-page"];j={before:j.before||V.indexOf(W.breakBefore||W.pageBreakBefore)!==-1,after:j.after||V.indexOf(W.breakAfter||W.pageBreakAfter)!==-1,avoid:j.avoid||z.indexOf(W.breakInside||W.pageBreakInside)!==-1}}Object.keys(j).forEach(function(_e){j[_e]=j[_e]||R[_e].indexOf(B)!==-1});var J=B.getBoundingClientRect();if(j.avoid&&!j.before){var q=Math.floor(J.top/I),de=Math.floor(J.bottom/I),ae=Math.abs(J.bottom-J.top)/I;de!==q&&ae<=1&&(j.before=!0)}if(j.before){var ve=(0,E.createElement)("div",{style:{display:"block",height:I-J.top%I+"px"}});B.parentNode.insertBefore(ve,B)}if(j.after){var ve=(0,E.createElement)("div",{style:{display:"block",height:I-J.bottom%I+"px"}});B.parentNode.insertBefore(ve,B.nextSibling)}})})}},"./src/utils.js":function(r,i,n){"use strict";n.r(i),n.d(i,{objType:function(){return L},createElement:function(){return N},cloneNode:function(){return R},unitConvert:function(){return D},toPx:function(){return F}});var e=n("./node_modules/core-js/modules/es.number.constructor.js"),l=n.n(e),t=n("./node_modules/core-js/modules/es.symbol.js"),a=n.n(t),s=n("./node_modules/core-js/modules/es.symbol.description.js"),u=n.n(s),h=n("./node_modules/core-js/modules/es.object.to-string.js"),p=n.n(h),m=n("./node_modules/core-js/modules/es.symbol.iterator.js"),v=n.n(m),y=n("./node_modules/core-js/modules/es.array.iterator.js"),E=n.n(y),T=n("./node_modules/core-js/modules/es.string.iterator.js"),w=n.n(T),S=n("./node_modules/core-js/modules/web.dom-collections.iterator.js"),_=n.n(S);function I(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(B){return typeof B}:I=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},I(M)}var L=function(U){var B=I(U);return B==="undefined"?"undefined":B==="string"||U instanceof String?"string":B==="number"||U instanceof Number?"number":B==="function"||U instanceof Function?"function":!!U&&U.constructor===Array?"array":U&&U.nodeType===1?"element":B==="object"?"object":"unknown"},N=function(U,B){var j=document.createElement(U);if(B.className&&(j.className=B.className),B.innerHTML){j.innerHTML=B.innerHTML;for(var W=j.getElementsByTagName("script"),V=W.length;V-- >0;null)W[V].parentNode.removeChild(W[V])}for(var z in B.style)j.style[z]=B.style[z];return j},R=function M(U,B){for(var j=U.nodeType===3?document.createTextNode(U.nodeValue):U.cloneNode(!1),W=U.firstChild;W;W=W.nextSibling)(B===!0||W.nodeType!==1||W.nodeName!=="SCRIPT")&&j.appendChild(M(W,B));return U.nodeType===1&&(U.nodeName==="CANVAS"?(j.width=U.width,j.height=U.height,j.getContext("2d").drawImage(U,0,0)):(U.nodeName==="TEXTAREA"||U.nodeName==="SELECT")&&(j.value=U.value),j.addEventListener("load",function(){j.scrollTop=U.scrollTop,j.scrollLeft=U.scrollLeft},!0)),j},D=function(U,B){if(L(U)==="number")return U*72/96/B;var j={};for(var W in U)j[W]=U[W]*72/96/B;return j},F=function(U,B){return Math.floor(U*B/72*96)}},"./src/worker.js":function(r,i,n){"use strict";n.r(i);var e=n("./node_modules/core-js/modules/es.object.assign.js"),l=n.n(e),t=n("./node_modules/core-js/modules/es.array.map.js"),a=n.n(t),s=n("./node_modules/core-js/modules/es.object.keys.js"),u=n.n(s),h=n("./node_modules/core-js/modules/es.array.concat.js"),p=n.n(h),m=n("./node_modules/core-js/modules/es.object.to-string.js"),v=n.n(m),y=n("./node_modules/core-js/modules/es.regexp.to-string.js"),E=n.n(y),T=n("./node_modules/core-js/modules/es.function.name.js"),w=n.n(T),S=n("./node_modules/core-js/modules/web.dom-collections.for-each.js"),_=n.n(S),I=n("jspdf"),L=n.n(I),N=n("html2canvas"),R=n.n(N),D=n("./src/utils.js"),F=n("./node_modules/es6-promise/dist/es6-promise.js"),M=n.n(F),U=M().Promise,B=function j(W){var V=Object.assign(j.convert(U.resolve()),JSON.parse(JSON.stringify(j.template))),z=j.convert(U.resolve(),V);return z=z.setProgress(1,j,1,[j]),z=z.set(W),z};B.prototype=Object.create(U.prototype),B.prototype.constructor=B,B.convert=function(W,V){return W.__proto__=V||B.prototype,W},B.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},B.prototype.from=function(W,V){function z(J){switch((0,D.objType)(J)){case"string":return"string";case"element":return J.nodeName.toLowerCase==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){V=V||z(W);switch(V){case"string":return this.set({src:(0,D.createElement)("div",{innerHTML:W})});case"element":return this.set({src:W});case"canvas":return this.set({canvas:W});case"img":return this.set({img:W});default:return this.error("Unknown source type.")}})},B.prototype.to=function(W){switch(W){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},B.prototype.toContainer=function(){var W=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(W).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)"},J={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,D.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,D.createElement)("div",{className:"html2pdf__overlay",style:z}),this.prop.container=(0,D.createElement)("div",{className:"html2pdf__container",style:J}),this.prop.container.appendChild(q),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},B.prototype.toCanvas=function(){var W=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(W).then(function(){var z=Object.assign({},this.opt.html2canvas);return delete z.onrendered,N(this.prop.container,z)}).then(function(z){var J=this.opt.html2canvas.onrendered||function(){};J(z),this.prop.canvas=z,document.body.removeChild(this.prop.overlay)})},B.prototype.toImg=function(){var W=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(W).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})},B.prototype.toPdf=function(){var W=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(W).then(function(){var z=this.prop.canvas,J=this.opt,q=z.height,de=Math.floor(z.width*this.prop.pageSize.inner.ratio),ae=Math.ceil(q/de),ve=this.prop.pageSize.inner.height,_e=document.createElement("canvas"),Ie=_e.getContext("2d");_e.width=z.width,_e.height=de,this.prop.pdf=this.prop.pdf||new I.jsPDF(J.jsPDF);for(var He=0;He<ae;He++){He===ae-1&&q%de!==0&&(_e.height=q%de,ve=_e.height*this.prop.pageSize.inner.width/_e.width);var me=_e.width,ke=_e.height;Ie.fillStyle="white",Ie.fillRect(0,0,me,ke),Ie.drawImage(z,0,He*de,me,ke,0,0,me,ke),He&&this.prop.pdf.addPage();var se=_e.toDataURL("image/"+J.image.type,J.image.quality);this.prop.pdf.addImage(se,J.image.type,J.margin[1],J.margin[0],this.prop.pageSize.inner.width,ve)}})},B.prototype.output=function(W,V,z){return z=z||"pdf",z.toLowerCase()==="img"||z.toLowerCase()==="image"?this.outputImg(W,V):this.outputPdf(W,V)},B.prototype.outputPdf=function(W,V){var z=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(z).then(function(){return this.prop.pdf.output(W,V)})},B.prototype.outputImg=function(W,V){var z=[function(){return this.prop.img||this.toImg()}];return this.thenList(z).then(function(){switch(W){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 "'+W+'" is not supported.'}})},B.prototype.save=function(W){var V=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(V).set(W?{filename:W}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},B.prototype.set=function(W){if((0,D.objType)(W)!=="object")return this;var V=Object.keys(W||{}).map(function(z){switch(z){case"margin":return this.setMargin.bind(this,W.margin);case"jsPDF":return function(){return this.opt.jsPDF=W.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,W.pageSize);default:return z in B.template.prop?function(){this.prop[z]=W[z]}:function(){this.opt[z]=W[z]}}},this);return this.then(function(){return this.thenList(V)})},B.prototype.get=function(W,V){return this.then(function(){var J=W in B.template.prop?this.prop[W]:this.opt[W];return V?V(J):J})},B.prototype.setMargin=function(W){return this.then(function(){switch((0,D.objType)(W)){case"number":W=[W,W,W,W];case"array":if(W.length===2&&(W=[W[0],W[1],W[0],W[1]]),W.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=W}).then(this.setPageSize)},B.prototype.setPageSize=function(W){return this.then(function(){W=W||I.jsPDF.getPageSize(this.opt.jsPDF),W.hasOwnProperty("inner")||(W.inner={width:W.width-this.opt.margin[1]-this.opt.margin[3],height:W.height-this.opt.margin[0]-this.opt.margin[2]},W.inner.px={width:(0,D.toPx)(W.inner.width,W.k),height:(0,D.toPx)(W.inner.height,W.k)},W.inner.ratio=W.inner.height/W.inner.width),this.prop.pageSize=W})},B.prototype.setProgress=function(W,V,z,J){return W!=null&&(this.progress.val=W),V!=null&&(this.progress.state=V),z!=null&&(this.progress.n=z),J!=null&&(this.progress.stack=J),this.progress.ratio=this.progress.val/this.progress.state,this},B.prototype.updateProgress=function(W,V,z,J){return this.setProgress(W?this.progress.val+W:null,V||null,z?this.progress.n+z:null,J?this.progress.stack.concat(J):null)},B.prototype.then=function(W,V){var z=this;return this.thenCore(W,V,function(q,de){return z.updateProgress(null,null,1,[q]),U.prototype.then.call(this,function(ve){return z.updateProgress(null,q),ve}).then(q,de).then(function(ve){return z.updateProgress(1),ve})})},B.prototype.thenCore=function(W,V,z){z=z||U.prototype.then;var J=this;W&&(W=W.bind(J)),V&&(V=V.bind(J));var q=U.toString().indexOf("[native code]")!==-1&&U.name==="Promise",de=q?J:B.convert(Object.assign({},J),U.prototype),ae=z.call(de,W,V);return B.convert(ae,J.__proto__)},B.prototype.thenExternal=function(W,V){return U.prototype.then.call(this,W,V)},B.prototype.thenList=function(W){var V=this;return W.forEach(function(J){V=V.thenCore(J)}),V},B.prototype.catch=function(j){j&&(j=j.bind(this));var W=U.prototype.catch.call(this,j);return B.convert(W,this)},B.prototype.catchExternal=function(W){return U.prototype.catch.call(this,W)},B.prototype.error=function(W){return this.then(function(){throw new Error(W)})},B.prototype.using=B.prototype.set,B.prototype.saveAs=B.prototype.save,B.prototype.export=B.prototype.output,B.prototype.run=B.prototype.then,i.default=B},"./node_modules/core-js/internals/a-function.js":function(r){r.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"./node_modules/core-js/internals/a-possible-prototype.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(l){if(!e(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"./node_modules/core-js/internals/add-to-unscopables.js":function(r,i,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js"),l=n("./node_modules/core-js/internals/object-create.js"),t=n("./node_modules/core-js/internals/object-define-property.js"),a=e("unscopables"),s=Array.prototype;s[a]==null&&t.f(s,a,{configurable:!0,value:l(null)}),r.exports=function(u){s[a][u]=!0}},"./node_modules/core-js/internals/an-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(l){if(!e(l))throw TypeError(String(l)+" is not an object");return l}},"./node_modules/core-js/internals/array-for-each.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/array-iteration.js").forEach,l=n("./node_modules/core-js/internals/array-method-is-strict.js"),t=l("forEach");r.exports=t?[].forEach:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-indexed-object.js"),l=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(h,p,m){var v=e(h),y=l(v.length),E=t(m,y),T;if(u&&p!=p){for(;y>E;)if(T=v[E++],T!=T)return!0}else for(;y>E;E++)if((u||E in v)&&v[E]===p)return u||E||0;return!u&&-1}};r.exports={includes:a(!0),indexOf:a(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(r,i,n){var e=n("./node_modules/core-js/internals/function-bind-context.js"),l=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"),s=n("./node_modules/core-js/internals/array-species-create.js"),u=[].push,h=function(m){var v=m==1,y=m==2,E=m==3,T=m==4,w=m==6,S=m==7,_=m==5||w;return function(I,L,N,R){for(var D=t(I),F=l(D),M=e(L,N,3),U=a(F.length),B=0,j=R||s,W=v?j(I,U):y||S?j(I,0):void 0,V,z;U>B;B++)if((_||B in F)&&(V=F[B],z=M(V,B,D),m))if(v)W[B]=z;else if(z)switch(m){case 3:return!0;case 5:return V;case 6:return B;case 2:u.call(W,V)}else switch(m){case 4:return!1;case 7:u.call(W,V)}return w?-1:E||T?T:W}};r.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6),filterReject:h(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/well-known-symbol.js"),t=n("./node_modules/core-js/internals/engine-v8-version.js"),a=l("species");r.exports=function(s){return t>=51||!e(function(){var u=[],h=u.constructor={};return h[a]=function(){return{foo:1}},u[s](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/fails.js");r.exports=function(l,t){var a=[][l];return!!a&&e(function(){a.call(null,t||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js"),l=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(s){var u;return l(s)&&(u=s.constructor,typeof u=="function"&&(u===Array||l(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,i,n){var e=n("./node_modules/core-js/internals/array-species-constructor.js");r.exports=function(l,t){return new(e(l))(t===0?0:t)}},"./node_modules/core-js/internals/classof-raw.js":function(r){var i={}.toString;r.exports=function(n){return i.call(n).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),l=n("./node_modules/core-js/internals/classof-raw.js"),t=n("./node_modules/core-js/internals/well-known-symbol.js"),a=t("toStringTag"),s=l(function(){return arguments}())=="Arguments",u=function(p,m){try{return p[m]}catch(v){}};r.exports=e?l:function(h){var p,m,v;return h===void 0?"Undefined":h===null?"Null":typeof(m=u(p=Object(h),a))=="string"?m:s?l(p):(v=l(p))=="Object"&&typeof p.callee=="function"?"Arguments":v}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(r,i,n){var e=n("./node_modules/core-js/internals/has.js"),l=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(s,u){for(var h=l(u),p=a.f,m=t.f,v=0;v<h.length;v++){var y=h[v];e(s,y)||p(s,y,m(u,y))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js");r.exports=!e(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},"./node_modules/core-js/internals/create-html.js":function(r,i,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js"),l=n("./node_modules/core-js/internals/to-string.js"),t=/"/g;r.exports=function(a,s,u,h){var p=l(e(a)),m="<"+s;return u!==""&&(m+=" "+u+'="'+l(h).replace(t,"&quot;")+'"'),m+">"+p+"</"+s+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,l=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"),s=n("./node_modules/core-js/internals/iterators.js"),u=function(){return this};r.exports=function(h,p,m){var v=p+" Iterator";return h.prototype=l(e,{next:t(1,m)}),a(h,v,!1,!0),s[v]=u,h}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=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,s,u){return l.f(a,s,t(1,u))}:function(a,s,u){return a[s]=u,a}},"./node_modules/core-js/internals/create-property-descriptor.js":function(r){r.exports=function(i,n){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:n}}},"./node_modules/core-js/internals/create-property.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/to-property-key.js"),l=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,s,u){var h=e(s);h in a?l.f(a,h,t(0,u)):a[h]=u}},"./node_modules/core-js/internals/define-iterator.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=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"),s=n("./node_modules/core-js/internals/set-to-string-tag.js"),u=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),h=n("./node_modules/core-js/internals/redefine.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),m=n("./node_modules/core-js/internals/is-pure.js"),v=n("./node_modules/core-js/internals/iterators.js"),y=n("./node_modules/core-js/internals/iterators-core.js"),E=y.IteratorPrototype,T=y.BUGGY_SAFARI_ITERATORS,w=p("iterator"),S="keys",_="values",I="entries",L=function(){return this};r.exports=function(N,R,D,F,M,U,B){l(D,R,F);var j=function(He){if(He===M&&q)return q;if(!T&&He in z)return z[He];switch(He){case S:return function(){return new D(this,He)};case _:return function(){return new D(this,He)};case I:return function(){return new D(this,He)}}return function(){return new D(this)}},W=R+" Iterator",V=!1,z=N.prototype,J=z[w]||z["@@iterator"]||M&&z[M],q=!T&&J||j(M),de=R=="Array"&&z.entries||J,ae,ve,_e;if(de&&(ae=t(de.call(new N)),E!==Object.prototype&&ae.next&&(!m&&t(ae)!==E&&(a?a(ae,E):typeof ae[w]!="function"&&u(ae,w,L)),s(ae,W,!0,!0),m&&(v[W]=L))),M==_&&J&&J.name!==_&&(V=!0,q=function(){return J.call(this)}),(!m||B)&&z[w]!==q&&u(z,w,q),v[R]=q,M)if(ve={values:j(_),keys:U?q:j(S),entries:j(I)},B)for(_e in ve)(T||V||!(_e in z))&&h(z,_e,ve[_e]);else e({target:R,proto:!0,forced:T||V},ve);return ve}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(r,i,n){var e=n("./node_modules/core-js/internals/path.js"),l=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(s){var u=e.Symbol||(e.Symbol={});l(u,s)||a(u,s,{value:t.f(s)})}},"./node_modules/core-js/internals/descriptors.js":function(r,i,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,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/is-object.js"),t=e.document,a=l(t)&&l(t.createElement);r.exports=function(s){return a?t.createElement(s):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(r){r.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(r,i,n){var 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,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/engine-user-agent.js"),t=e.process,a=e.Deno,s=t&&t.versions||a&&a.version,u=s&&s.v8,h,p;u?(h=u.split("."),p=h[0]<4?1:h[0]+h[1]):l&&(h=l.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=l.match(/Chrome\/(\d+)/),h&&(p=h[1]))),r.exports=p&&+p},"./node_modules/core-js/internals/enum-bug-keys.js":function(r){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=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"),s=n("./node_modules/core-js/internals/set-global.js"),u=n("./node_modules/core-js/internals/copy-constructor-properties.js"),h=n("./node_modules/core-js/internals/is-forced.js");r.exports=function(p,m){var v=p.target,y=p.global,E=p.stat,T,w,S,_,I,L;if(y?w=e:E?w=e[v]||s(v,{}):w=(e[v]||{}).prototype,w)for(S in m){if(I=m[S],p.noTargetGet?(L=l(w,S),_=L&&L.value):_=w[S],T=h(y?S:v+(E?".":"#")+S,p.forced),!T&&_!==void 0){if(typeof I===typeof _)continue;u(I,_)}(p.sham||_&&_.sham)&&t(I,"sham",!0),a(w,S,I,p)}}},"./node_modules/core-js/internals/fails.js":function(r){r.exports=function(i){try{return!!i()}catch(n){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(r,i,n){var e=n("./node_modules/core-js/internals/a-function.js");r.exports=function(l,t,a){if(e(l),t===void 0)return l;switch(a){case 0:return function(){return l.call(t)};case 1:return function(s){return l.call(t,s)};case 2:return function(s,u){return l.call(t,s,u)};case 3:return function(s,u,h){return l.call(t,s,u,h)}}return function(){return l.apply(t,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=function(a){return typeof a=="function"?a:void 0};r.exports=function(t,a){return arguments.length<2?l(e[t]):e[t]&&e[t][a]}},"./node_modules/core-js/internals/global.js":function(r){var i=function(e){return e&&e.Math==Math&&e};r.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof O=="object"&&O)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-object.js"),l={}.hasOwnProperty;r.exports=Object.hasOwn||function(a,s){return l.call(e(a),s)}},"./node_modules/core-js/internals/hidden-keys.js":function(r){r.exports={}},"./node_modules/core-js/internals/html.js":function(r,i,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,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/fails.js"),t=n("./node_modules/core-js/internals/document-create-element.js");r.exports=!e&&!l(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/fails.js"),l=n("./node_modules/core-js/internals/classof-raw.js"),t="".split;r.exports=e(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return l(a)=="String"?t.call(a,""):Object(a)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js"),l=n("./node_modules/core-js/internals/object-set-prototype-of.js");r.exports=function(t,a,s){var u,h;return l&&typeof(u=a.constructor)=="function"&&u!==s&&e(h=u.prototype)&&h!==s.prototype&&l(t,h),t}},"./node_modules/core-js/internals/inspect-source.js":function(r,i,n){var e=n("./node_modules/core-js/internals/shared-store.js"),l=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(t){return l.call(t)}),r.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(r,i,n){var e=n("./node_modules/core-js/internals/native-weak-map.js"),l=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"),s=n("./node_modules/core-js/internals/has.js"),u=n("./node_modules/core-js/internals/shared-store.js"),h=n("./node_modules/core-js/internals/shared-key.js"),p=n("./node_modules/core-js/internals/hidden-keys.js"),m="Object already initialized",v=l.WeakMap,y,E,T,w=function(F){return T(F)?E(F):y(F,{})},S=function(F){return function(M){var U;if(!t(M)||(U=E(M)).type!==F)throw TypeError("Incompatible receiver, "+F+" required");return U}};if(e||u.state){var _=u.state||(u.state=new v),I=_.get,L=_.has,N=_.set;y=function(F,M){if(L.call(_,F))throw new TypeError(m);return M.facade=F,N.call(_,F,M),M},E=function(F){return I.call(_,F)||{}},T=function(F){return L.call(_,F)}}else{var R=h("state");p[R]=!0,y=function(F,M){if(s(F,R))throw new TypeError(m);return M.facade=F,a(F,R,M),M},E=function(F){return s(F,R)?F[R]:{}},T=function(F){return s(F,R)}}r.exports={set:y,get:E,has:T,enforce:w,getterFor:S}},"./node_modules/core-js/internals/is-array.js":function(r,i,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,i,n){var e=n("./node_modules/core-js/internals/fails.js"),l=/#|\.prototype\./,t=function(m,v){var y=s[a(m)];return y==h?!0:y==u?!1:typeof v=="function"?e(v):!!v},a=t.normalize=function(p){return String(p).replace(l,".").toLowerCase()},s=t.data={},u=t.NATIVE="N",h=t.POLYFILL="P";r.exports=t},"./node_modules/core-js/internals/is-object.js":function(r){r.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},"./node_modules/core-js/internals/is-pure.js":function(r){r.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(r,i,n){var e=n("./node_modules/core-js/internals/get-built-in.js"),l=n("./node_modules/core-js/internals/use-symbol-as-uid.js");r.exports=l?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,i,n){"use strict";var e=n("./node_modules/core-js/internals/fails.js"),l=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"),s=n("./node_modules/core-js/internals/well-known-symbol.js"),u=n("./node_modules/core-js/internals/is-pure.js"),h=s("iterator"),p=!1,m=function(){return this},v,y,E;[].keys&&(E=[].keys(),"next"in E?(y=l(l(E)),y!==Object.prototype&&(v=y)):p=!0);var T=v==null||e(function(){var w={};return v[h].call(w)!==w});T&&(v={}),(!u||T)&&!a(v,h)&&t(v,h,m),r.exports={IteratorPrototype:v,BUGGY_SAFARI_ITERATORS:p}},"./node_modules/core-js/internals/iterators.js":function(r){r.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(r,i,n){var e=n("./node_modules/core-js/internals/engine-v8-version.js"),l=n("./node_modules/core-js/internals/fails.js");r.exports=!!Object.getOwnPropertySymbols&&!l(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,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/inspect-source.js"),t=e.WeakMap;r.exports=typeof t=="function"&&/native code/.test(l(t))},"./node_modules/core-js/internals/object-assign.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/descriptors.js"),l=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"),s=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),u=n("./node_modules/core-js/internals/to-object.js"),h=n("./node_modules/core-js/internals/indexed-object.js"),p=Object.assign,m=Object.defineProperty;r.exports=!p||l(function(){if(e&&p({b:1},p(m({},"a",{enumerable:!0,get:function(){m(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},y={},E=Symbol(),T="abcdefghijklmnopqrst";return v[E]=7,T.split("").forEach(function(w){y[w]=w}),p({},v)[E]!=7||t(p({},y)).join("")!=T})?function(y,E){for(var T=u(y),w=arguments.length,S=1,_=a.f,I=s.f;w>S;)for(var L=h(arguments[S++]),N=_?t(L).concat(_(L)):t(L),R=N.length,D=0,F;R>D;)F=N[D++],(!e||I.call(L,F))&&(T[F]=L[F]);return T}:p},"./node_modules/core-js/internals/object-create.js":function(r,i,n){var e=n("./node_modules/core-js/internals/an-object.js"),l=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"),s=n("./node_modules/core-js/internals/html.js"),u=n("./node_modules/core-js/internals/document-create-element.js"),h=n("./node_modules/core-js/internals/shared-key.js"),p=">",m="<",v="prototype",y="script",E=h("IE_PROTO"),T=function(){},w=function(R){return m+y+p+R+m+"/"+y+p},S=function(R){R.write(w("")),R.close();var D=R.parentWindow.Object;return R=null,D},_=function(){var R=u("iframe"),D="java"+y+":",F;if(R.style)return R.style.display="none",s.appendChild(R),R.src=String(D),F=R.contentWindow.document,F.open(),F.write(w("document.F=Object")),F.close(),F.F},I,L=function(){try{I=new ActiveXObject("htmlfile")}catch(D){}L=document.domain&&I?S(I):_()||S(I);for(var R=t.length;R--;)delete L[v][t[R]];return L()};a[E]=!0,r.exports=Object.create||function(R,D){var F;return R!==null?(T[v]=e(R),F=new T,T[v]=null,F[E]=R):F=L(),D===void 0?F:l(F,D)}},"./node_modules/core-js/internals/object-define-properties.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=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,h){t(u);for(var p=a(h),m=p.length,v=0,y;m>v;)l.f(u,y=p[v++],h[y]);return u}},"./node_modules/core-js/internals/object-define-property.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=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"),s=Object.defineProperty;i.f=e?s:function(h,p,m){if(t(h),p=a(p),t(m),l)try{return s(h,p,m)}catch(v){}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(h[p]=m.value),h}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=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"),s=n("./node_modules/core-js/internals/to-property-key.js"),u=n("./node_modules/core-js/internals/has.js"),h=n("./node_modules/core-js/internals/ie8-dom-define.js"),p=Object.getOwnPropertyDescriptor;i.f=e?p:function(v,y){if(v=a(v),y=s(y),h)try{return p(v,y)}catch(E){}if(u(v,y))return t(!l.f.call(v,y),v[y])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-indexed-object.js"),l=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):[],s=function(h){try{return l(h)}catch(p){return a.slice()}};r.exports.f=function(h){return a&&t.call(h)=="[object Window]"?s(h):l(e(h))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(r,i,n){var e=n("./node_modules/core-js/internals/object-keys-internal.js"),l=n("./node_modules/core-js/internals/enum-bug-keys.js"),t=l.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(s){return e(s,t)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(r,i){i.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(r,i,n){var e=n("./node_modules/core-js/internals/has.js"),l=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"),s=t("IE_PROTO"),u=Object.prototype;r.exports=a?Object.getPrototypeOf:function(h){return h=l(h),e(h,s)?h[s]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?u:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(r,i,n){var e=n("./node_modules/core-js/internals/has.js"),l=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(s,u){var h=l(s),p=0,m=[],v;for(v in h)!e(a,v)&&e(h,v)&&m.push(v);for(;u.length>p;)e(h,v=u[p++])&&(~t(m,v)||m.push(v));return m}},"./node_modules/core-js/internals/object-keys.js":function(r,i,n){var e=n("./node_modules/core-js/internals/object-keys-internal.js"),l=n("./node_modules/core-js/internals/enum-bug-keys.js");r.exports=Object.keys||function(a){return e(a,l)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(r,i){"use strict";var n={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,l=e&&!n.call({1:2},1);i.f=l?function(a){var s=e(this,a);return!!s&&s.enumerable}:n},"./node_modules/core-js/internals/object-set-prototype-of.js":function(r,i,n){var e=n("./node_modules/core-js/internals/an-object.js"),l=n("./node_modules/core-js/internals/a-possible-prototype.js");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,a={},s;try{s=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,s.call(a,[]),t=a instanceof Array}catch(u){}return function(h,p){return e(h),l(p),t?s.call(h,p):h.__proto__=p,h}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),l=n("./node_modules/core-js/internals/classof.js");r.exports=e?{}.toString:function(){return"[object "+l(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js");r.exports=function(l,t){var a,s;if(t==="string"&&typeof(a=l.toString)=="function"&&!e(s=a.call(l)))return s;if(typeof(a=l.valueOf)=="function"&&!e(s=a.call(l)))return s;if(t!=="string"&&typeof(a=l.toString)=="function"&&!e(s=a.call(l)))return s;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(r,i,n){var e=n("./node_modules/core-js/internals/get-built-in.js"),l=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 h=l.f(a(u)),p=t.f;return p?h.concat(p(u)):h}},"./node_modules/core-js/internals/path.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js");r.exports=e},"./node_modules/core-js/internals/redefine.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=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"),s=n("./node_modules/core-js/internals/inspect-source.js"),u=n("./node_modules/core-js/internals/internal-state.js"),h=u.get,p=u.enforce,m=String(String).split("String");(r.exports=function(v,y,E,T){var w=T?!!T.unsafe:!1,S=T?!!T.enumerable:!1,_=T?!!T.noTargetGet:!1,I;if(typeof E=="function"&&(typeof y=="string"&&!t(E,"name")&&l(E,"name",y),I=p(E),I.source||(I.source=m.join(typeof y=="string"?y:""))),v===e){S?v[y]=E:a(y,E);return}else w?!_&&v[y]&&(S=!0):delete v[y];S?v[y]=E:l(v,y,E)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||s(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/an-object.js");r.exports=function(){var l=e(this),t="";return l.global&&(t+="g"),l.ignoreCase&&(t+="i"),l.multiline&&(t+="m"),l.dotAll&&(t+="s"),l.unicode&&(t+="u"),l.sticky&&(t+="y"),t}},"./node_modules/core-js/internals/require-object-coercible.js":function(r){r.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"./node_modules/core-js/internals/set-global.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js");r.exports=function(l,t){try{Object.defineProperty(e,l,{value:t,configurable:!0,writable:!0})}catch(a){e[l]=t}return t}},"./node_modules/core-js/internals/set-to-string-tag.js":function(r,i,n){var e=n("./node_modules/core-js/internals/object-define-property.js").f,l=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(s,u,h){s&&!l(s=h?s:s.prototype,a)&&e(s,a,{configurable:!0,value:u})}},"./node_modules/core-js/internals/shared-key.js":function(r,i,n){var e=n("./node_modules/core-js/internals/shared.js"),l=n("./node_modules/core-js/internals/uid.js"),t=e("keys");r.exports=function(a){return t[a]||(t[a]=l(a))}},"./node_modules/core-js/internals/shared-store.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=n("./node_modules/core-js/internals/set-global.js"),t="__core-js_shared__",a=e[t]||l(t,{});r.exports=a},"./node_modules/core-js/internals/shared.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-pure.js"),l=n("./node_modules/core-js/internals/shared-store.js");(r.exports=function(t,a){return l[t]||(l[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,i,n){var e=n("./node_modules/core-js/internals/fails.js");r.exports=function(l){return e(function(){var t=""[l]('"');return t!==t.toLowerCase()||t.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-integer.js"),l=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(h,p){var m=l(t(h)),v=e(p),y=m.length,E,T;return v<0||v>=y?u?"":void 0:(E=m.charCodeAt(v),E<55296||E>56319||v+1===y||(T=m.charCodeAt(v+1))<56320||T>57343?u?m.charAt(v):E:u?m.slice(v,v+2):(E-55296<<10)+(T-56320)+65536)}};r.exports={codeAt:a(!1),charAt:a(!0)}},"./node_modules/core-js/internals/string-trim.js":function(r,i,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js"),l=n("./node_modules/core-js/internals/to-string.js"),t=n("./node_modules/core-js/internals/whitespaces.js"),a="["+t+"]",s=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),h=function(m){return function(v){var y=l(e(v));return m&1&&(y=y.replace(s,"")),m&2&&(y=y.replace(u,"")),y}};r.exports={start:h(1),end:h(2),trim:h(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-integer.js"),l=Math.max,t=Math.min;r.exports=function(a,s){var u=e(a);return u<0?l(u+s,0):t(u,s)}},"./node_modules/core-js/internals/to-indexed-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/indexed-object.js"),l=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(t){return e(l(t))}},"./node_modules/core-js/internals/to-integer.js":function(r){var i=Math.ceil,n=Math.floor;r.exports=function(e){return isNaN(e=+e)?0:(e>0?n:i)(e)}},"./node_modules/core-js/internals/to-length.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-integer.js"),l=Math.min;r.exports=function(t){return t>0?l(e(t),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(r,i,n){var e=n("./node_modules/core-js/internals/require-object-coercible.js");r.exports=function(l){return Object(e(l))}},"./node_modules/core-js/internals/to-primitive.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-object.js"),l=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"),s=a("toPrimitive");r.exports=function(u,h){if(!e(u)||l(u))return u;var p=u[s],m;if(p!==void 0){if(h===void 0&&(h="default"),m=p.call(u,h),!e(m)||l(m))return m;throw TypeError("Can't convert object to primitive value")}return h===void 0&&(h="number"),t(u,h)}},"./node_modules/core-js/internals/to-property-key.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-primitive.js"),l=n("./node_modules/core-js/internals/is-symbol.js");r.exports=function(t){var a=e(t,"string");return l(a)?a:String(a)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(r,i,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js"),l=e("toStringTag"),t={};t[l]="z",r.exports=String(t)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(r,i,n){var e=n("./node_modules/core-js/internals/is-symbol.js");r.exports=function(l){if(e(l))throw TypeError("Cannot convert a Symbol value to a string");return String(l)}},"./node_modules/core-js/internals/uid.js":function(r){var i=0,n=Math.random();r.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++i+n).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(r,i,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,i,n){var e=n("./node_modules/core-js/internals/well-known-symbol.js");i.f=e},"./node_modules/core-js/internals/well-known-symbol.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=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"),s=n("./node_modules/core-js/internals/native-symbol.js"),u=n("./node_modules/core-js/internals/use-symbol-as-uid.js"),h=l("wks"),p=e.Symbol,m=u?p:p&&p.withoutSetter||a;r.exports=function(v){return(!t(h,v)||!(s||typeof h[v]=="string"))&&(s&&t(p,v)?h[v]=p[v]:h[v]=m("Symbol."+v)),h[v]}},"./node_modules/core-js/internals/whitespaces.js":function(r){r.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=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"),s=n("./node_modules/core-js/internals/to-object.js"),u=n("./node_modules/core-js/internals/to-length.js"),h=n("./node_modules/core-js/internals/create-property.js"),p=n("./node_modules/core-js/internals/array-species-create.js"),m=n("./node_modules/core-js/internals/array-method-has-species-support.js"),v=n("./node_modules/core-js/internals/well-known-symbol.js"),y=n("./node_modules/core-js/internals/engine-v8-version.js"),E=v("isConcatSpreadable"),T=9007199254740991,w="Maximum allowed index exceeded",S=y>=51||!l(function(){var N=[];return N[E]=!1,N.concat()[0]!==N}),_=m("concat"),I=function(R){if(!a(R))return!1;var D=R[E];return D!==void 0?!!D:t(R)},L=!S||!_;e({target:"Array",proto:!0,forced:L},{concat:function(R){var D=s(this),F=p(D,0),M=0,U,B,j,W,V;for(U=-1,j=arguments.length;U<j;U++)if(V=U===-1?D:arguments[U],I(V)){if(W=u(V.length),M+W>T)throw TypeError(w);for(B=0;B<W;B++,M++)B in V&&h(F,M,V[B])}else{if(M>=T)throw TypeError(w);h(F,M++,V)}return F.length=M,F}})},"./node_modules/core-js/modules/es.array.iterator.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/to-indexed-object.js"),l=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"),s=n("./node_modules/core-js/internals/define-iterator.js"),u="Array Iterator",h=a.set,p=a.getterFor(u);r.exports=s(Array,"Array",function(m,v){h(this,{type:u,target:e(m),index:0,kind:v})},function(){var m=p(this),v=m.target,y=m.kind,E=m.index++;return!v||E>=v.length?(m.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:E,done:!1}:y=="values"?{value:v[E],done:!1}:{value:[E,v[E]],done:!1}},"values"),t.Arguments=t.Array,l("keys"),l("values"),l("entries")},"./node_modules/core-js/modules/es.array.join.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=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"),s=[].join,u=l!=Object,h=a("join",",");e({target:"Array",proto:!0,forced:u||!h},{join:function(m){return s.call(t(this),m===void 0?",":m)}})},"./node_modules/core-js/modules/es.array.map.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=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 l(this,u,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=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"),s=n("./node_modules/core-js/internals/to-length.js"),u=n("./node_modules/core-js/internals/to-indexed-object.js"),h=n("./node_modules/core-js/internals/create-property.js"),p=n("./node_modules/core-js/internals/well-known-symbol.js"),m=n("./node_modules/core-js/internals/array-method-has-species-support.js"),v=m("slice"),y=p("species"),E=[].slice,T=Math.max;e({target:"Array",proto:!0,forced:!v},{slice:function(S,_){var I=u(this),L=s(I.length),N=a(S,L),R=a(_===void 0?L:_,L),D,F,M;if(t(I)&&(D=I.constructor,typeof D=="function"&&(D===Array||t(D.prototype))?D=void 0:l(D)&&(D=D[y],D===null&&(D=void 0)),D===Array||D===void 0))return E.call(I,N,R);for(F=new(D===void 0?Array:D)(T(R-N,0)),M=0;N<R;N++,M++)N in I&&h(F,M,I[N]);return F.length=M,F}})},"./node_modules/core-js/modules/es.function.name.js":function(r,i,n){var e=n("./node_modules/core-js/internals/descriptors.js"),l=n("./node_modules/core-js/internals/object-define-property.js").f,t=Function.prototype,a=t.toString,s=/^\s*function ([^ (]*)/,u="name";e&&!(u in t)&&l(t,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(p){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/descriptors.js"),l=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"),s=n("./node_modules/core-js/internals/has.js"),u=n("./node_modules/core-js/internals/classof-raw.js"),h=n("./node_modules/core-js/internals/inherit-if-required.js"),p=n("./node_modules/core-js/internals/is-symbol.js"),m=n("./node_modules/core-js/internals/to-primitive.js"),v=n("./node_modules/core-js/internals/fails.js"),y=n("./node_modules/core-js/internals/object-create.js"),E=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,w=n("./node_modules/core-js/internals/object-define-property.js").f,S=n("./node_modules/core-js/internals/string-trim.js").trim,_="Number",I=l[_],L=I.prototype,N=u(y(L))==_,R=function(j){if(p(j))throw TypeError("Cannot convert a Symbol value to a number");var W=m(j,"number"),V,z,J,q,de,ae,ve,_e;if(typeof W=="string"&&W.length>2){if(W=S(W),V=W.charCodeAt(0),V===43||V===45){if(z=W.charCodeAt(2),z===88||z===120)return NaN}else if(V===48){switch(W.charCodeAt(1)){case 66:case 98:J=2,q=49;break;case 79:case 111:J=8,q=55;break;default:return+W}for(de=W.slice(2),ae=de.length,ve=0;ve<ae;ve++)if(_e=de.charCodeAt(ve),_e<48||_e>q)return NaN;return parseInt(de,J)}}return+W};if(t(_,!I(" 0o1")||!I("0b1")||I("+0x1"))){for(var D=function(j){var W=arguments.length<1?0:j,V=this;return V instanceof D&&(N?v(function(){L.valueOf.call(V)}):u(V)!=_)?h(new I(R(W)),V,D):R(W)},F=e?E(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(","),M=0,U;F.length>M;M++)s(I,U=F[M])&&!s(D,U)&&w(D,U,T(I,U));D.prototype=L,L.constructor=D,a(l,_,D)}},"./node_modules/core-js/modules/es.object.assign.js":function(r,i,n){var e=n("./node_modules/core-js/internals/export.js"),l=n("./node_modules/core-js/internals/object-assign.js");e({target:"Object",stat:!0,forced:Object.assign!==l},{assign:l})},"./node_modules/core-js/modules/es.object.keys.js":function(r,i,n){var e=n("./node_modules/core-js/internals/export.js"),l=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"),s=a(function(){t(1)});e({target:"Object",stat:!0,forced:s},{keys:function(h){return t(l(h))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(r,i,n){var e=n("./node_modules/core-js/internals/to-string-tag-support.js"),l=n("./node_modules/core-js/internals/redefine.js"),t=n("./node_modules/core-js/internals/object-to-string.js");e||l(Object.prototype,"toString",t,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/redefine.js"),l=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"),s=n("./node_modules/core-js/internals/regexp-flags.js"),u="toString",h=RegExp.prototype,p=h[u],m=a(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),v=p.name!=u;(m||v)&&e(RegExp.prototype,u,function(){var E=l(this),T=t(E.source),w=E.flags,S=t(w===void 0&&E instanceof RegExp&&!("flags"in h)?s.call(E):w);return"/"+T+"/"+S},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/string-multibyte.js").charAt,l=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"),s="String Iterator",u=t.set,h=t.getterFor(s);a(String,"String",function(p){u(this,{type:s,string:l(p),index:0})},function(){var m=h(this),v=m.string,y=m.index,E;return y>=v.length?{value:void 0,done:!0}:(E=e(v,y),m.index+=E.length,{value:E,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=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(s){return l(this,"a","href",s)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(r,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=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"),s=n("./node_modules/core-js/internals/is-object.js"),u=n("./node_modules/core-js/internals/object-define-property.js").f,h=n("./node_modules/core-js/internals/copy-constructor-properties.js"),p=t.Symbol;if(l&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var m={},v=function(){var _=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof v?new p(_):_===void 0?p():p(_);return _===""&&(m[I]=!0),I};h(v,p);var y=v.prototype=p.prototype;y.constructor=v;var E=y.toString,T=String(p("test"))=="Symbol(test)",w=/^Symbol\((.*)\)[^)]+$/;u(y,"description",{configurable:!0,get:function(){var _=s(this)?this.valueOf():this,I=E.call(_);if(a(m,_))return"";var L=T?I.slice(7,-1):I.replace(w,"$1");return L===""?void 0:L}}),e({global:!0,forced:!0},{Symbol:v})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(r,i,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,i,n){"use strict";var e=n("./node_modules/core-js/internals/export.js"),l=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"),s=n("./node_modules/core-js/internals/descriptors.js"),u=n("./node_modules/core-js/internals/native-symbol.js"),h=n("./node_modules/core-js/internals/fails.js"),p=n("./node_modules/core-js/internals/has.js"),m=n("./node_modules/core-js/internals/is-array.js"),v=n("./node_modules/core-js/internals/is-object.js"),y=n("./node_modules/core-js/internals/is-symbol.js"),E=n("./node_modules/core-js/internals/an-object.js"),T=n("./node_modules/core-js/internals/to-object.js"),w=n("./node_modules/core-js/internals/to-indexed-object.js"),S=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"),N=n("./node_modules/core-js/internals/object-keys.js"),R=n("./node_modules/core-js/internals/object-get-own-property-names.js"),D=n("./node_modules/core-js/internals/object-get-own-property-names-external.js"),F=n("./node_modules/core-js/internals/object-get-own-property-symbols.js"),M=n("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),U=n("./node_modules/core-js/internals/object-define-property.js"),B=n("./node_modules/core-js/internals/object-property-is-enumerable.js"),j=n("./node_modules/core-js/internals/create-non-enumerable-property.js"),W=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"),J=n("./node_modules/core-js/internals/hidden-keys.js"),q=n("./node_modules/core-js/internals/uid.js"),de=n("./node_modules/core-js/internals/well-known-symbol.js"),ae=n("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),ve=n("./node_modules/core-js/internals/define-well-known-symbol.js"),_e=n("./node_modules/core-js/internals/set-to-string-tag.js"),Ie=n("./node_modules/core-js/internals/internal-state.js"),He=n("./node_modules/core-js/internals/array-iteration.js").forEach,me=z("hidden"),ke="Symbol",se="prototype",te=de("toPrimitive"),Ge=Ie.set,oe=Ie.getterFor(ke),Y=Object[se],G=l.Symbol,Q=t("JSON","stringify"),ye=M.f,ce=U.f,Te=D.f,Se=B.f,le=V("symbols"),fe=V("op-symbols"),Ee=V("string-to-symbol-registry"),Ve=V("symbol-to-string-registry"),vt=V("wks"),et=l.QObject,Oe=!et||!et[se]||!et[se].findChild,Tt=s&&h(function(){return L(ce({},"a",{get:function(){return ce(this,"a",{value:7}).a}})).a!=7})?function(Be,Ce,Z){var nt=ye(Y,Ce);nt&&delete Y[Ce],ce(Be,Ce,Z),nt&&Be!==Y&&ce(Y,Ce,nt)}:ce,Je=function(Ce,Z){var nt=le[Ce]=L(G[se]);return Ge(nt,{type:ke,tag:Ce,description:Z}),s||(nt.description=Z),nt},St=function(Ce,Z,nt){Ce===Y&&St(fe,Z,nt),E(Ce);var ct=S(Z);return E(nt),p(le,ct)?(nt.enumerable?(p(Ce,me)&&Ce[me][ct]&&(Ce[me][ct]=!1),nt=L(nt,{enumerable:I(0,!1)})):(p(Ce,me)||ce(Ce,me,I(1,{})),Ce[me][ct]=!0),Tt(Ce,ct,nt)):ce(Ce,ct,nt)},Mt=function(Ce,Z){E(Ce);var nt=w(Z),ct=N(nt).concat(ie(nt));return He(ct,function(Qe){(!s||It.call(nt,Qe))&&St(Ce,Qe,nt[Qe])}),Ce},er=function(Ce,Z){return Z===void 0?L(Ce):Mt(L(Ce),Z)},It=function(Ce){var Z=S(Ce),nt=Se.call(this,Z);return this===Y&&p(le,Z)&&!p(fe,Z)?!1:nt||!p(this,Z)||!p(le,Z)||p(this,me)&&this[me][Z]?nt:!0},_t=function(Ce,Z){var nt=w(Ce),ct=S(Z);if(nt===Y&&p(le,ct)&&!p(fe,ct))return;var Qe=ye(nt,ct);return Qe&&p(le,ct)&&!(p(nt,me)&&nt[me][ct])&&(Qe.enumerable=!0),Qe},Xe=function(Ce){var Z=Te(w(Ce)),nt=[];return He(Z,function(ct){!p(le,ct)&&!p(J,ct)&&nt.push(ct)}),nt},ie=function(Ce){var Z=Ce===Y,nt=Te(Z?fe:w(Ce)),ct=[];return He(nt,function(Qe){p(le,Qe)&&(!Z||p(Y,Qe))&&ct.push(le[Qe])}),ct};if(u||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var Ce=!arguments.length||arguments[0]===void 0?void 0:_(arguments[0]),Z=q(Ce),nt=function ct(Qe){this===Y&&ct.call(fe,Qe),p(this,me)&&p(this[me],Z)&&(this[me][Z]=!1),Tt(this,Z,I(1,Qe))};return s&&Oe&&Tt(Y,Z,{configurable:!0,set:nt}),Je(Z,Ce)},W(G[se],"toString",function(){return oe(this).tag}),W(G,"withoutSetter",function(Be){return Je(q(Be),Be)}),B.f=It,U.f=St,M.f=_t,R.f=D.f=Xe,F.f=ie,ae.f=function(Be){return Je(de(Be),Be)},s&&(ce(G[se],"description",{configurable:!0,get:function(){return oe(this).description}}),a||W(Y,"propertyIsEnumerable",It,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),He(N(vt),function(Be){ve(Be)}),e({target:ke,stat:!0,forced:!u},{for:function(Ce){var Z=_(Ce);if(p(Ee,Z))return Ee[Z];var nt=G(Z);return Ee[Z]=nt,Ve[nt]=Z,nt},keyFor:function(Ce){if(!y(Ce))throw TypeError(Ce+" is not a symbol");if(p(Ve,Ce))return Ve[Ce]},useSetter:function(){Oe=!0},useSimple:function(){Oe=!1}}),e({target:"Object",stat:!0,forced:!u,sham:!s},{create:er,defineProperty:St,defineProperties:Mt,getOwnPropertyDescriptor:_t}),e({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:Xe,getOwnPropertySymbols:ie}),e({target:"Object",stat:!0,forced:h(function(){F.f(1)})},{getOwnPropertySymbols:function(Ce){return F.f(T(Ce))}}),Q){var X=!u||h(function(){var Be=G();return Q([Be])!="[null]"||Q({a:Be})!="{}"||Q(Object(Be))!="{}"});e({target:"JSON",stat:!0,forced:X},{stringify:function(Ce,Z,nt){for(var ct=[Ce],Qe=1,dt;arguments.length>Qe;)ct.push(arguments[Qe++]);return dt=Z,!v(Z)&&Ce===void 0||y(Ce)?void 0:(m(Z)||(Z=function(Lr,Wt){if(typeof dt=="function"&&(Wt=dt.call(this,Lr,Wt)),!y(Wt))return Wt}),ct[1]=Z,Q.apply(null,ct))}})}G[se][te]||j(G[se],te,G[se].valueOf),_e(G,ke),J[me]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=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 s in l){var u=e[s],h=u&&u.prototype;if(h&&h.forEach!==t)try{a(h,"forEach",t)}catch(p){h.forEach=t}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(r,i,n){var e=n("./node_modules/core-js/internals/global.js"),l=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"),s=n("./node_modules/core-js/internals/well-known-symbol.js"),u=s("iterator"),h=s("toStringTag"),p=t.values;for(var m in l){var v=e[m],y=v&&v.prototype;if(y){if(y[u]!==p)try{a(y,u,p)}catch(T){y[u]=p}if(y[h]||a(y,h,m),l[m]){for(var E in t)if(y[E]!==t[E])try{a(y,E,t[E])}catch(T){y[E]=t[E]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(r){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/(function(i,n){r.exports=n()})(this,function(){"use strict";function i(et){var Oe=typeof et;return et!==null&&(Oe==="object"||Oe==="function")}function n(et){return typeof et=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(Oe){return Object.prototype.toString.call(Oe)==="[object Array]"};var l=e,t=0,a=void 0,s=void 0,u=function(Oe,Tt){N[t]=Oe,N[t+1]=Tt,t+=2,t===2&&(s?s(R):F())};function h(et){s=et}function p(et){u=et}var m=typeof window!="undefined"?window:void 0,v=m||{},y=v.MutationObserver||v.WebKitMutationObserver,E=typeof self=="undefined"&&typeof x!="undefined"&&{}.toString.call(x)==="[object process]",T=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function w(){return function(){return x.nextTick(R)}}function S(){return typeof a!="undefined"?function(){a(R)}:L()}function _(){var et=0,Oe=new y(R),Tt=document.createTextNode("");return Oe.observe(Tt,{characterData:!0}),function(){Tt.data=et=++et%2}}function I(){var et=new MessageChannel;return et.port1.onmessage=R,function(){return et.port2.postMessage(0)}}function L(){var et=setTimeout;return function(){return et(R,1)}}var N=new Array(1e3);function R(){for(var et=0;et<t;et+=2){var Oe=N[et],Tt=N[et+1];Oe(Tt),N[et]=void 0,N[et+1]=void 0}t=0}function D(){try{var et=Function("return this")().require("vertx");return a=et.runOnLoop||et.runOnContext,S()}catch(Oe){return L()}}var F=void 0;E?F=w():y?F=_():T?F=I():m===void 0&&!0?F=D():F=L();function M(et,Oe){var Tt=this,Je=new this.constructor(j);Je[B]===void 0&&Q(Je);var St=Tt._state;if(St){var Mt=arguments[St-1];u(function(){return Ge(St,Je,Mt,Tt._result)})}else se(Tt,Je,et,Oe);return Je}function U(et){var Oe=this;if(et&&typeof et=="object"&&et.constructor===Oe)return et;var Tt=new Oe(j);return Ie(Tt,et),Tt}var B=Math.random().toString(36).substring(2);function j(){}var W=void 0,V=1,z=2;function J(){return new TypeError("You cannot resolve a promise with itself")}function q(){return new TypeError("A promises callback cannot return that same promise.")}function de(et,Oe,Tt,Je){try{et.call(Oe,Tt,Je)}catch(St){return St}}function ae(et,Oe,Tt){u(function(Je){var St=!1,Mt=de(Tt,Oe,function(er){if(St)return;St=!0,Oe!==er?Ie(Je,er):me(Je,er)},function(er){if(St)return;St=!0,ke(Je,er)},"Settle: "+(Je._label||" unknown promise"));!St&&Mt&&(St=!0,ke(Je,Mt))},et)}function ve(et,Oe){Oe._state===V?me(et,Oe._result):Oe._state===z?ke(et,Oe._result):se(Oe,void 0,function(Tt){return Ie(et,Tt)},function(Tt){return ke(et,Tt)})}function _e(et,Oe,Tt){Oe.constructor===et.constructor&&Tt===M&&Oe.constructor.resolve===U?ve(et,Oe):Tt===void 0?me(et,Oe):n(Tt)?ae(et,Oe,Tt):me(et,Oe)}function Ie(et,Oe){if(et===Oe)ke(et,J());else if(i(Oe)){var Tt=void 0;try{Tt=Oe.then}catch(Je){ke(et,Je);return}_e(et,Oe,Tt)}else me(et,Oe)}function He(et){et._onerror&&et._onerror(et._result),te(et)}function me(et,Oe){if(et._state!==W)return;et._result=Oe,et._state=V,et._subscribers.length!==0&&u(te,et)}function ke(et,Oe){if(et._state!==W)return;et._state=z,et._result=Oe,u(He,et)}function se(et,Oe,Tt,Je){var St=et._subscribers,Mt=St.length;et._onerror=null,St[Mt]=Oe,St[Mt+V]=Tt,St[Mt+z]=Je,Mt===0&&et._state&&u(te,et)}function te(et){var Oe=et._subscribers,Tt=et._state;if(Oe.length===0)return;for(var Je=void 0,St=void 0,Mt=et._result,er=0;er<Oe.length;er+=3)Je=Oe[er],St=Oe[er+Tt],Je?Ge(Tt,Je,St,Mt):St(Mt);et._subscribers.length=0}function Ge(et,Oe,Tt,Je){var St=n(Tt),Mt=void 0,er=void 0,It=!0;if(St){try{Mt=Tt(Je)}catch(_t){It=!1,er=_t}if(Oe===Mt){ke(Oe,q());return}}else Mt=Je;Oe._state!==W||(St&&It?Ie(Oe,Mt):It===!1?ke(Oe,er):et===V?me(Oe,Mt):et===z&&ke(Oe,Mt))}function oe(et,Oe){try{Oe(function(Je){Ie(et,Je)},function(Je){ke(et,Je)})}catch(Tt){ke(et,Tt)}}var Y=0;function G(){return Y++}function Q(et){et[B]=Y++,et._state=void 0,et._result=void 0,et._subscribers=[]}function ye(){return new Error("Array Methods must be provided an Array")}var ce=function(){function et(Oe,Tt){this._instanceConstructor=Oe,this.promise=new Oe(j),this.promise[B]||Q(this.promise),l(Tt)?(this.length=Tt.length,this._remaining=Tt.length,this._result=new Array(this.length),this.length===0?me(this.promise,this._result):(this.length=this.length||0,this._enumerate(Tt),this._remaining===0&&me(this.promise,this._result))):ke(this.promise,ye())}return et.prototype._enumerate=function(Tt){for(var Je=0;this._state===W&&Je<Tt.length;Je++)this._eachEntry(Tt[Je],Je)},et.prototype._eachEntry=function(Tt,Je){var St=this._instanceConstructor,Mt=St.resolve;if(Mt===U){var er=void 0,It=void 0,_t=!1;try{er=Tt.then}catch(ie){_t=!0,It=ie}if(er===M&&Tt._state!==W)this._settledAt(Tt._state,Je,Tt._result);else if(typeof er!="function")this._remaining--,this._result[Je]=Tt;else if(St===Ve){var Xe=new St(j);_t?ke(Xe,It):_e(Xe,Tt,er),this._willSettleAt(Xe,Je)}else this._willSettleAt(new St(function(ie){return ie(Tt)}),Je)}else this._willSettleAt(Mt(Tt),Je)},et.prototype._settledAt=function(Tt,Je,St){var Mt=this.promise;Mt._state===W&&(this._remaining--,Tt===z?ke(Mt,St):this._result[Je]=St),this._remaining===0&&me(Mt,this._result)},et.prototype._willSettleAt=function(Tt,Je){var St=this;se(Tt,void 0,function(Mt){return St._settledAt(V,Je,Mt)},function(Mt){return St._settledAt(z,Je,Mt)})},et}();function Te(et){return new ce(this,et).promise}function Se(et){var Oe=this;return l(et)?new Oe(function(Tt,Je){for(var St=et.length,Mt=0;Mt<St;Mt++)Oe.resolve(et[Mt]).then(Tt,Je)}):new Oe(function(Tt,Je){return Je(new TypeError("You must pass an array to race."))})}function le(et){var Oe=this,Tt=new Oe(j);return ke(Tt,et),Tt}function fe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Ee(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var Ve=function(){function et(Oe){this[B]=G(),this._result=this._state=void 0,this._subscribers=[],j!==Oe&&(typeof Oe!="function"&&fe(),this instanceof et?oe(this,Oe):Ee())}return et.prototype.catch=function(Tt){return this.then(null,Tt)},et.prototype.finally=function(Tt){var Je=this,St=Je.constructor;return n(Tt)?Je.then(function(Mt){return St.resolve(Tt()).then(function(){return Mt})},function(Mt){return St.resolve(Tt()).then(function(){throw Mt})}):Je.then(Tt,Tt)},et}();Ve.prototype.then=M,Ve.all=Te,Ve.race=Se,Ve.resolve=U,Ve.reject=le,Ve._setScheduler=h,Ve._setAsap=p,Ve._asap=u;function vt(){var et=void 0;if(typeof O!="undefined")et=O;else if(typeof self!="undefined")et=self;else try{et=Function("return this")()}catch(Je){throw new Error("polyfill failed because global object is unavailable in this environment")}var Oe=et.Promise;if(Oe){var Tt=null;try{Tt=Object.prototype.toString.call(Oe.resolve())}catch(Je){}if(Tt==="[object Promise]"&&!Oe.cast)return}et.Promise=Ve}return Ve.polyfill=vt,Ve.Promise=Ve,Ve})},html2canvas:function(r){"use strict";r.exports=A},jspdf:function(r){"use strict";r.exports=C}},g={};function f(o){var r=g[o];if(r!==void 0)return r.exports;var i=g[o]={exports:{}};return b[o].call(i.exports,i,i.exports,f),i.exports}!function(){f.n=function(o){var r=o&&o.__esModule?function(){return o.default}:function(){return o};return f.d(r,{a:r}),r}}(),!function(){f.d=function(o,r){for(var i in r)f.o(r,i)&&!f.o(o,i)&&Object.defineProperty(o,i,{enumerable:!0,get:r[i]})}}(),!function(){f.o=function(o,r){return Object.prototype.hasOwnProperty.call(o,r)}}(),!function(){f.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}}();var c={};return!function(){"use strict";/*!**********************!*\
!*** ./src/index.js ***!
\**********************/f.r(c);var o=f("./src/worker.js"),r=f("./src/plugin/jspdf-plugin.js"),i=f("./src/plugin/pagebreaks.js"),n=f("./src/plugin/hyperlinks.js"),e=function l(t,a){var s=new l.Worker(a);return t?s.from(t).save():s};e.Worker=o.default,c.default=e}(),c=c.default,c}()})}).call(this,d("yLpj"),d("Q2Ig"))},"1q3G":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=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(H,k,d){var O=d("MBQ8"),x=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(A){return A.stack=null,x.superApply(this,"getInitialData",arguments)}}),C=x;H.exports=C},"1u/T":function(H,k,d){var O=d("ProS"),x={type:"selectDataRange",event:"dataRangeSelected",update:"update"};O.registerAction(x,function(C,A){A.eachComponent({mainType:"visualMap",query:C},function(b){b.setSelected(C.selected)})})},"1uat":function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("MlIO"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.Hasher,b=x.x64,g=b.Word,f=b.WordArray,c=x.algo;function o(){return g.create.apply(g,arguments)}var r=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],i=[];(function(){for(var e=0;e<80;e++)i[e]=o()})();var n=c.SHA512=A.extend({_doReset:function(){this._hash=new f.init([new g.init(1779033703,4089235720),new g.init(3144134277,2227873595),new g.init(1013904242,4271175723),new g.init(2773480762,1595750129),new g.init(1359893119,2917565137),new g.init(2600822924,725511199),new g.init(528734635,4215389547),new g.init(1541459225,327033209)])},_doProcessBlock:function(l,t){for(var a=this._hash.words,s=a[0],u=a[1],h=a[2],p=a[3],m=a[4],v=a[5],y=a[6],E=a[7],T=s.high,w=s.low,S=u.high,_=u.low,I=h.high,L=h.low,N=p.high,R=p.low,D=m.high,F=m.low,M=v.high,U=v.low,B=y.high,j=y.low,W=E.high,V=E.low,z=T,J=w,q=S,de=_,ae=I,ve=L,_e=N,Ie=R,He=D,me=F,ke=M,se=U,te=B,Ge=j,oe=W,Y=V,G=0;G<80;G++){var Q,ye,ce=i[G];if(G<16)ye=ce.high=l[t+G*2]|0,Q=ce.low=l[t+G*2+1]|0;else{var Te=i[G-15],Se=Te.high,le=Te.low,fe=(Se>>>1|le<<31)^(Se>>>8|le<<24)^Se>>>7,Ee=(le>>>1|Se<<31)^(le>>>8|Se<<24)^(le>>>7|Se<<25),Ve=i[G-2],vt=Ve.high,et=Ve.low,Oe=(vt>>>19|et<<13)^(vt<<3|et>>>29)^vt>>>6,Tt=(et>>>19|vt<<13)^(et<<3|vt>>>29)^(et>>>6|vt<<26),Je=i[G-7],St=Je.high,Mt=Je.low,er=i[G-16],It=er.high,_t=er.low;Q=Ee+Mt,ye=fe+St+(Q>>>0<Ee>>>0?1:0),Q=Q+Tt,ye=ye+Oe+(Q>>>0<Tt>>>0?1:0),Q=Q+_t,ye=ye+It+(Q>>>0<_t>>>0?1:0),ce.high=ye,ce.low=Q}var Xe=He&ke^~He&te,ie=me&se^~me&Ge,X=z&q^z&ae^q&ae,Be=J&de^J&ve^de&ve,Ce=(z>>>28|J<<4)^(z<<30|J>>>2)^(z<<25|J>>>7),Z=(J>>>28|z<<4)^(J<<30|z>>>2)^(J<<25|z>>>7),nt=(He>>>14|me<<18)^(He>>>18|me<<14)^(He<<23|me>>>9),ct=(me>>>14|He<<18)^(me>>>18|He<<14)^(me<<23|He>>>9),Qe=r[G],dt=Qe.high,Ft=Qe.low,Lr=Y+ct,Wt=oe+nt+(Lr>>>0<Y>>>0?1:0),Lr=Lr+ie,Wt=Wt+Xe+(Lr>>>0<ie>>>0?1:0),Lr=Lr+Ft,Wt=Wt+dt+(Lr>>>0<Ft>>>0?1:0),Lr=Lr+Q,Wt=Wt+ye+(Lr>>>0<Q>>>0?1:0),ar=Z+Be,Ut=Ce+X+(ar>>>0<Z>>>0?1:0);oe=te,Y=Ge,te=ke,Ge=se,ke=He,se=me,me=Ie+Lr|0,He=_e+Wt+(me>>>0<Ie>>>0?1:0)|0,_e=ae,Ie=ve,ae=q,ve=de,q=z,de=J,J=Lr+ar|0,z=Wt+Ut+(J>>>0<Lr>>>0?1:0)|0}w=s.low=w+J,s.high=T+z+(w>>>0<J>>>0?1:0),_=u.low=_+de,u.high=S+q+(_>>>0<de>>>0?1:0),L=h.low=L+ve,h.high=I+ae+(L>>>0<ve>>>0?1:0),R=p.low=R+Ie,p.high=N+_e+(R>>>0<Ie>>>0?1:0),F=m.low=F+me,m.high=D+He+(F>>>0<me>>>0?1:0),U=v.low=U+se,v.high=M+ke+(U>>>0<se>>>0?1:0),j=y.low=j+Ge,y.high=B+te+(j>>>0<Ge>>>0?1:0),V=E.low=V+Y,E.high=W+oe+(V>>>0<Y>>>0?1:0)},_doFinalize:function(){var l=this._data,t=l.words,a=this._nDataBytes*8,s=l.sigBytes*8;t[s>>>5]|=128<<24-s%32,t[(s+128>>>10<<5)+30]=Math.floor(a/4294967296),t[(s+128>>>10<<5)+31]=a,l.sigBytes=t.length*4,this._process();var u=this._hash.toX32();return u},clone:function(){var l=A.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:1024/32});x.SHA512=A._createHelper(n),x.HmacSHA512=A._createHmacHelper(n)}(),O.SHA512})},"1vzs":function(H,k,d){"use strict";d.d(k,"a",function(){return t});var O=d("q1tI"),x=d.n(O),C=d("HQEm"),A=d.n(C),b=d("gZBC"),g=d.n(b),f=d("NAnI"),c=d.n(f),o=d("V/uB"),r=d.n(o),i=d("kbBi"),n=d.n(i),e=d("w6Tc"),l=d.n(e);function t(a){var s=a.suffixIcon,u=a.clearIcon,h=a.menuItemSelectedIcon,p=a.removeIcon,m=a.loading,v=a.multiple,y=a.prefixCls,E=u;u||(E=O.createElement(n.a,null));var T=null;if(s!==void 0)T=s;else if(m)T=O.createElement(g.a,{spin:!0});else{var w="".concat(y,"-suffix");T=function(L){var N=L.open,R=L.showSearch;return N&&R?O.createElement(l.a,{className:w}):O.createElement(A.a,{className:w})}}var S=null;h!==void 0?S=h:v?S=O.createElement(c.a,null):S=null;var _=null;return p!==void 0?_=p:_=O.createElement(r.a,null),{clearIcon:E,suffixIcon:T,itemIcon:S,removeIcon:_}}},"1xaR":function(H,k,d){var O=d("ProS"),x=d("bYtY");d("qgGe"),d("NA0q"),d("RPvy");var C=d("mOdp"),A=d("y3NT"),b=d("0/Rx");O.registerVisual(x.curry(C,"sunburst")),O.registerLayout(x.curry(A,"sunburst")),O.registerProcessor(x.curry(b,"sunburst"))},"24YM":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.SensorTabIndex=k.SensorClassName=k.SizeSensorId=void 0;var O="size-sensor-id";k.SizeSensorId=O;var x="size-sensor-object";k.SensorClassName=x;var C="-1";k.SensorTabIndex=C},"2548":function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("6GrX"),A=d("IUWy"),b=d("IwbS"),g=d("Qxkt"),f=d("gPAo"),c=d("eRkO"),o=O.extendComponentView({type:"toolbox",render:function(i,n,e,l){var t=this.group;if(t.removeAll(),!i.get("show"))return;var a=+i.get("itemSize"),s=i.get("feature")||{},u=this._features||(this._features={}),h=[];x.each(s,function(v,y){h.push(y)}),new f(this._featureNames||[],h).add(p).update(p).remove(x.curry(p,null)).execute(),this._featureNames=h;function p(v,y){var E=h[v],T=h[y],w=s[E],S=new g(w,i,i.ecModel),_;if(l&&l.newTitle!=null&&l.featureName===E&&(w.title=l.newTitle),E&&!T){if(r(E))_={model:S,onclick:S.option.onclick,featureName:E};else{var I=A.get(E);if(!I)return;_=new I(S,n,e)}u[E]=_}else{if(_=u[T],!_)return;_.model=S,_.ecModel=n,_.api=e}if(!E&&T){_.dispose&&_.dispose(n,e);return}if(!S.get("show")||_.unusable){_.remove&&_.remove(n,e);return}m(S,_,E),S.setIconStatus=function(L,N){var R=this.option,D=this.iconPaths;R.iconStatus=R.iconStatus||{},R.iconStatus[L]=N,D[L]&&D[L].trigger(N)},_.render&&_.render(S,n,e,l)}function m(v,y,E){var T=v.getModel("iconStyle"),w=v.getModel("emphasis.iconStyle"),S=y.getIcons?y.getIcons():v.get("icon"),_=v.get("title")||{};if(typeof S=="string"){var I=S,L=_;S={},_={},S[E]=I,_[E]=L}var N=v.iconPaths={};x.each(S,function(R,D){var F=b.createIcon(R,{},{x:-a/2,y:-a/2,width:a,height:a});F.setStyle(T.getItemStyle()),F.hoverStyle=w.getItemStyle(),F.setStyle({text:_[D],textAlign:w.get("textAlign"),textBorderRadius:w.get("textBorderRadius"),textPadding:w.get("textPadding"),textFill:null});var M=i.getModel("tooltip");M&&M.get("show")&&F.attr("tooltip",x.extend({content:_[D],formatter:M.get("formatter",!0)||function(){return _[D]},formatterParams:{componentType:"toolbox",name:D,title:_[D],$vars:["name","title"]},position:M.get("position",!0)||"bottom"},M.option)),b.setHoverStyle(F),i.get("showTitle")&&(F.__title=_[D],F.on("mouseover",function(){var U=w.getItemStyle(),B=i.get("orient")==="vertical"?i.get("right")==null?"right":"left":i.get("bottom")==null?"bottom":"top";F.setStyle({textFill:w.get("textFill")||U.fill||U.stroke||"#000",textBackgroundColor:w.get("textBackgroundColor"),textPosition:w.get("textPosition")||B})}).on("mouseout",function(){F.setStyle({textFill:null,textBackgroundColor:null})})),F.trigger(v.get("iconStatus."+D)||"normal"),t.add(F),F.on("click",x.bind(y.onclick,y,n,e,D)),N[D]=F})}c.layout(t,i,e),t.add(c.makeBackground(t.getBoundingRect(),i)),t.eachChild(function(v){var y=v.__title,E=v.hoverStyle;if(E&&y){var T=C.getBoundingRect(y,C.makeFont(E)),w=v.position[0]+t.position[0],S=v.position[1]+t.position[1]+a,_=!1;S+T.height>e.getHeight()&&(E.textPosition="top",_=!0);var I=_?-5-T.height:a+8;w+T.width/2>e.getWidth()?(E.textPosition=["100%",I],E.textAlign="right"):w-T.width/2<0&&(E.textPosition=[0,I],E.textAlign="left")}})},updateView:function(i,n,e,l){x.each(this._features,function(t){t.updateView&&t.updateView(t.model,n,e,l)})},remove:function(i,n){x.each(this._features,function(e){e.remove&&e.remove(i,n)}),this.group.removeAll()},dispose:function(i,n){x.each(this._features,function(e){e.dispose&&e.dispose(i,n)})}});function r(i){return i.indexOf("my")===0}H.exports=o},"2B6p":function(H,k){function d(O,x,C){var A=O.getZoom(),b=O.getCenter(),g=x.zoom,f=O.dataToPoint(b);if(x.dx!=null&&x.dy!=null){f[0]-=x.dx,f[1]-=x.dy;var b=O.pointToData(f);O.setCenter(b)}if(g!=null){if(C){var c=C.min||0,o=C.max||Infinity;g=Math.max(Math.min(A*g,o),c)/A}O.scale[0]*=g,O.scale[1]*=g;var r=O.position,i=(x.originX-r[0])*(g-1),n=(x.originY-r[1])*(g-1);r[0]-=i,r[1]-=n,O.updateTransform();var b=O.pointToData(f);O.setCenter(b),O.setZoom(g*A)}return{center:O.getCenter(),zoom:O.getZoom()}}k.updateCenterAndZoom=d},"2BaD":function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="CloseCircleOutlined";var f=k.a=x.forwardRef(g)},"2DNl":function(H,k,d){var O=d("IMiH"),x=d("loD1"),C=d("59Ip"),A=d("aKvl"),b=d("n1HI"),g=d("hX1E"),f=g.normalizeRadian,c=d("Sj9i"),o=d("hyiK"),r=O.CMD,i=Math.PI*2,n=1e-4;function e(y,E){return Math.abs(y-E)<n}var l=[-1,-1,-1],t=[-1,-1];function a(){var y=t[0];t[0]=t[1],t[1]=y}function s(y,E,T,w,S,_,I,L,N,R){if(R>E&&R>w&&R>_&&R>L||R<E&&R<w&&R<_&&R<L)return 0;var D=c.cubicRootAt(E,w,_,L,R,l);if(D===0)return 0;for(var F=0,M=-1,U,B,j=0;j<D;j++){var W=l[j],V=W===0||W===1?.5:1,z=c.cubicAt(y,T,S,I,W);if(z<N)continue;M<0&&(M=c.cubicExtrema(E,w,_,L,t),t[1]<t[0]&&M>1&&a(),U=c.cubicAt(E,w,_,L,t[0]),M>1&&(B=c.cubicAt(E,w,_,L,t[1]))),M===2?W<t[0]?F+=U<E?V:-V:W<t[1]?F+=B<U?V:-V:F+=L<B?V:-V:W<t[0]?F+=U<E?V:-V:F+=L<U?V:-V}return F}function u(y,E,T,w,S,_,I,L){if(L>E&&L>w&&L>_||L<E&&L<w&&L<_)return 0;var N=c.quadraticRootAt(E,w,_,L,l);if(N===0)return 0;var R=c.quadraticExtremum(E,w,_);if(R>=0&&R<=1){for(var D=0,F=c.quadraticAt(E,w,_,R),M=0;M<N;M++){var U=l[M]===0||l[M]===1?.5:1,B=c.quadraticAt(y,T,S,l[M]);if(B<I)continue;l[M]<R?D+=F<E?U:-U:D+=_<F?U:-U}return D}else{var U=l[0]===0||l[0]===1?.5:1,B=c.quadraticAt(y,T,S,l[0]);return B<I?0:_<E?U:-U}}function h(y,E,T,w,S,_,I,L){if(L-=E,L>T||L<-T)return 0;var N=Math.sqrt(T*T-L*L);l[0]=-N,l[1]=N;var R=Math.abs(w-S);if(R<1e-4)return 0;if(R%i<1e-4){w=0,S=i;var D=_?1:-1;return I>=l[0]+y&&I<=l[1]+y?D:0}if(_){var N=w;w=f(S),S=f(N)}else w=f(w),S=f(S);w>S&&(S+=i);for(var F=0,M=0;M<2;M++){var U=l[M];if(U+y>I){var B=Math.atan2(L,U),D=_?1:-1;B<0&&(B=i+B),(B>=w&&B<=S||B+i>=w&&B+i<=S)&&(B>Math.PI/2&&B<Math.PI*1.5&&(D=-D),F+=D)}}return F}function p(y,E,T,w,S){for(var _=0,I=0,L=0,N=0,R=0,D=0;D<y.length;){var F=y[D++];F===r.M&&D>1&&(T||(_+=o(I,L,N,R,w,S))),D===1&&(I=y[D],L=y[D+1],N=I,R=L);switch(F){case r.M:N=y[D++],R=y[D++],I=N,L=R;break;case r.L:if(T){if(x.containStroke(I,L,y[D],y[D+1],E,w,S))return!0}else _+=o(I,L,y[D],y[D+1],w,S)||0;I=y[D++],L=y[D++];break;case r.C:if(T){if(C.containStroke(I,L,y[D++],y[D++],y[D++],y[D++],y[D],y[D+1],E,w,S))return!0}else _+=s(I,L,y[D++],y[D++],y[D++],y[D++],y[D],y[D+1],w,S)||0;I=y[D++],L=y[D++];break;case r.Q:if(T){if(A.containStroke(I,L,y[D++],y[D++],y[D],y[D+1],E,w,S))return!0}else _+=u(I,L,y[D++],y[D++],y[D],y[D+1],w,S)||0;I=y[D++],L=y[D++];break;case r.A:var M=y[D++],U=y[D++],B=y[D++],j=y[D++],W=y[D++],V=y[D++];D+=1;var z=1-y[D++],J=Math.cos(W)*B+M,q=Math.sin(W)*j+U;D>1?_+=o(I,L,J,q,w,S):(N=J,R=q);var de=(w-M)*j/B+M;if(T){if(b.containStroke(M,U,j,W,W+V,z,E,de,S))return!0}else _+=h(M,U,j,W,W+V,z,de,S);I=Math.cos(W+V)*B+M,L=Math.sin(W+V)*j+U;break;case r.R:N=I=y[D++],R=L=y[D++];var ae=y[D++],ve=y[D++],J=N+ae,q=R+ve;if(T){if(x.containStroke(N,R,J,R,E,w,S)||x.containStroke(J,R,J,q,E,w,S)||x.containStroke(J,q,N,q,E,w,S)||x.containStroke(N,q,N,R,E,w,S))return!0}else _+=o(J,R,J,q,w,S),_+=o(N,q,N,R,w,S);break;case r.Z:if(T){if(x.containStroke(I,L,N,R,E,w,S))return!0}else _+=o(I,L,N,R,w,S);I=N,L=R;break}}return!T&&!e(L,R)&&(_+=o(I,L,N,R,w,S)||0),_!==0}function m(y,E,T){return p(y,0,!1,E,T)}function v(y,E,T,w){return p(y,E,!0,T,w)}k.contain=m,k.containStroke=v},"2dDv":function(H,k,d){var O=d("bYtY"),x=d("Fofx"),C=d("+TT/"),A=d("aX7z"),b=d("D1WM"),g=d("IwbS"),f=d("OELB"),c=d("72pK"),o=O.each,r=Math.min,i=Math.max,n=Math.floor,e=Math.ceil,l=f.round,t=Math.PI;function a(m,v,y){this._axesMap=O.createHashMap(),this._axesLayout={},this.dimensions=m.dimensions,this._rect,this._model=m,this._init(m,v,y)}a.prototype={type:"parallel",constructor:a,_init:function(m,v,y){var E=m.dimensions,T=m.parallelAxisIndex;o(E,function(w,S){var _=T[S],I=v.getComponent("parallelAxis",_),L=this._axesMap.set(w,new b(w,A.createScaleByModel(I),[0,0],I.get("type"),_)),N=L.type==="category";L.onBand=N&&I.get("boundaryGap"),L.inverse=I.get("inverse"),I.axis=L,L.model=I,L.coordinateSystem=I.coordinateSystem=this},this)},update:function(m,v){this._updateAxesFromSeries(this._model,m)},containPoint:function(m){var v=this._makeLayoutInfo(),y=v.axisBase,E=v.layoutBase,T=v.pixelDimIndex,w=m[1-T],S=m[T];return w>=y&&w<=y+v.axisLength&&S>=E&&S<=E+v.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(m,v){v.eachSeries(function(y){if(!m.contains(y,v))return;var E=y.getData();o(this.dimensions,function(T){var w=this._axesMap.get(T);w.scale.unionExtentFromData(E,E.mapDimension(T)),A.niceScaleExtent(w.scale,w.model)},this)},this)},resize:function(m,v){this._rect=C.getLayoutRect(m.getBoxLayoutParams(),{width:v.getWidth(),height:v.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var m=this._model,v=this._rect,y=["x","y"],E=["width","height"],T=m.get("layout"),w=T==="horizontal"?0:1,S=v[E[w]],_=[0,S],I=this.dimensions.length,L=s(m.get("axisExpandWidth"),_),N=s(m.get("axisExpandCount")||0,[0,I]),R=m.get("axisExpandable")&&I>3&&I>N&&N>1&&L>0&&S>0,D=m.get("axisExpandWindow"),F;if(D)F=s(D[1]-D[0],_),D[1]=D[0]+F;else{F=s(L*(N-1),_);var M=m.get("axisExpandCenter")||n(I/2);D=[L*M-F/2],D[1]=D[0]+F}var U=(S-F)/(I-N);U<3&&(U=0);var B=[n(l(D[0]/L,1))+1,e(l(D[1]/L,1))-1],j=U/L*D[0];return{layout:T,pixelDimIndex:w,layoutBase:v[y[w]],layoutLength:S,axisBase:v[y[1-w]],axisLength:v[E[1-w]],axisExpandable:R,axisExpandWidth:L,axisCollapseWidth:U,axisExpandWindow:D,axisCount:I,winInnerIndices:B,axisExpandWindow0Pos:j}},_layoutAxes:function(){var m=this._rect,v=this._axesMap,y=this.dimensions,E=this._makeLayoutInfo(),T=E.layout;v.each(function(w){var S=[0,E.axisLength],_=w.inverse?1:0;w.setExtent(S[_],S[1-_])}),o(y,function(w,S){var _=(E.axisExpandable?h:u)(S,E),I={horizontal:{x:_.position,y:E.axisLength},vertical:{x:0,y:_.position}},L={horizontal:t/2,vertical:0},N=[I[T].x+m.x,I[T].y+m.y],R=L[T],D=x.create();x.rotate(D,D,R),x.translate(D,D,N),this._axesLayout[w]={position:N,rotation:R,transform:D,axisNameAvailableWidth:_.axisNameAvailableWidth,axisLabelShow:_.axisLabelShow,nameTruncateMaxWidth:_.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(m){return this._axesMap.get(m)},dataToPoint:function(m,v){return this.axisCoordToPoint(this._axesMap.get(v).dataToCoord(m),v)},eachActiveState:function(m,v,y,E){y==null&&(y=0),E==null&&(E=m.count());var T=this._axesMap,w=this.dimensions,S=[],_=[];O.each(w,function(U){S.push(m.mapDimension(U)),_.push(T.get(U).model)});for(var I=this.hasAxisBrushed(),L=y;L<E;L++){var N;if(!I)N="normal";else{N="active";for(var R=m.getValues(S,L),D=0,F=w.length;D<F;D++){var M=_[D].getActiveState(R[D]);if(M==="inactive"){N="inactive";break}}}v(N,L)}},hasAxisBrushed:function(){for(var m=this.dimensions,v=this._axesMap,y=!1,E=0,T=m.length;E<T;E++)v.get(m[E]).model.getActiveState()!=="normal"&&(y=!0);return y},axisCoordToPoint:function(m,v){var y=this._axesLayout[v];return g.applyTransform([m,0],y.transform)},getAxisLayout:function(m){return O.clone(this._axesLayout[m])},getSlidedAxisExpandWindow:function(m){var v=this._makeLayoutInfo(),y=v.pixelDimIndex,E=v.axisExpandWindow.slice(),T=E[1]-E[0],w=[0,v.axisExpandWidth*(v.axisCount-1)];if(!this.containPoint(m))return{behavior:"none",axisExpandWindow:E};var S=m[y]-v.layoutBase-v.axisExpandWindow0Pos,_,I="slide",L=v.axisCollapseWidth,N=this._model.get("axisExpandSlideTriggerArea"),R=N[0]!=null;if(L)R&&L&&S<T*N[0]?(I="jump",_=S-T*N[2]):R&&L&&S>T*(1-N[0])?(I="jump",_=S-T*(1-N[2])):(_=S-T*N[1])>=0&&(_=S-T*(1-N[1]))<=0&&(_=0),_*=v.axisExpandWidth/L,_?c(_,E,w,"all"):I="none";else{var T=E[1]-E[0],D=w[1]*S/T;E=[i(0,D-T/2)],E[1]=r(w[1],E[0]+T),E[0]=E[1]-T}return{axisExpandWindow:E,behavior:I}}};function s(m,v){return r(i(m,v[0]),v[1])}function u(m,v){var y=v.layoutLength/(v.axisCount-1);return{position:y*m,axisNameAvailableWidth:y,axisLabelShow:!0}}function h(m,v){var y=v.layoutLength,E=v.axisExpandWidth,T=v.axisCount,w=v.axisCollapseWidth,S=v.winInnerIndices,_,I=w,L=!1,N;return m<S[0]?(_=m*w,N=w):m<=S[1]?(_=v.axisExpandWindow0Pos+m*E-v.axisExpandWindow[0],I=E,L=!0):(_=y-(T-1-m)*w,N=w),{position:_,axisNameAvailableWidth:I,axisLabelShow:L,nameTruncateMaxWidth:N}}var p=a;H.exports=p},"2fGM":function(H,k,d){var O=d("bYtY"),x=d("bLfw"),C=d("nkfE"),A=d("ICMv"),b=x.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});O.merge(b.prototype,A);var g={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function f(c,o){return o.type||(o.data?"category":"value")}C("angle",b,f,g.angle),C("radius",b,f,g.radius)},"2fM7":function(H,k,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),b=d("lwsE"),g=d.n(b),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),l=d("BGR+"),t=d("TSYQ"),a=d.n(t),s=d("1OyB"),u=d("vuIU"),h=d("Ji7U"),p=d("LK+K"),m=d("rePB"),v=d("Ff2n"),y=d("ODXe"),E=d("4IlW"),T=d("VTBJ"),w=`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`,S=`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`,_="".concat(w," ").concat(S).split(/[\s\n]+/),I="aria-",L="data-";function N(xt,Lt){return xt.indexOf(Lt)===0}function R(xt){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gr;Lt===!1?gr={aria:!0,data:!0,attr:!0}:Lt===!0?gr={aria:!0}:gr=Object(T.a)({},Lt);var Br={};return Object.keys(xt).forEach(function(Et){(gr.aria&&(Et==="role"||N(Et,I))||gr.data&&N(Et,L)||gr.attr&&_.includes(Et))&&(Br[Et]=xt[Et])}),Br}var D=d("YrtM"),F=d("+nKL"),M=function(Lt){var gr=Lt.className,Br=Lt.customizeIcon,Et=Lt.customizeIconProps,it=Lt.onMouseDown,rt=Lt.onClick,Pt=Lt.children,Ht;return typeof Br=="function"?Ht=Br(Et):Ht=Br,e.createElement("span",{className:gr,onMouseDown:function(Gt){Gt.preventDefault(),it&&it(Gt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:rt,"aria-hidden":!0},Ht!==void 0?Ht:e.createElement("span",{className:a()(gr.split(/\s+/).map(function(bt){return"".concat(bt,"-icon")}))},Pt))},U=M,B=function(Lt,gr){var Br=Lt.prefixCls,Et=Lt.id,it=Lt.flattenOptions,rt=Lt.childrenAsData,Pt=Lt.values,Ht=Lt.searchValue,bt=Lt.multiple,Gt=Lt.defaultActiveFirstOption,ut=Lt.height,Kt=Lt.itemHeight,Ar=Lt.notFoundContent,ir=Lt.open,pr=Lt.menuItemSelectedIcon,tn=Lt.virtual,fn=Lt.onSelect,Mn=Lt.onToggleOpen,Yn=Lt.onActiveValue,si=Lt.onScroll,vi=Lt.onMouseEnter,xi="".concat(Br,"-item"),_i=Object(D.a)(function(){return it},[ir,it],function(Sr,jr){return jr[0]&&Sr[1]!==jr[1]}),Ze=e.useRef(null),we=function(jr){jr.preventDefault()},Ne=function(jr){Ze.current&&Ze.current.scrollTo({index:jr})},Fe=function(jr){for(var tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,gn=_i.length,sr=0;sr<gn;sr+=1){var un=(jr+sr*tr+gn)%gn,an=_i[un],Pr=an.group,In=an.data;if(!Pr&&!In.disabled)return un}return-1},Ye=e.useState(function(){return Fe(0)}),We=Object(y.a)(Ye,2),qe=We[0],yt=We[1],ot=function(jr){yt(jr);var tr=_i[jr];if(!tr){Yn(null,-1);return}Yn(tr.data.value,jr)};e.useEffect(function(){ot(Gt!==!1?Fe(0):-1)},[_i.length,Ht]),e.useEffect(function(){var Sr=setTimeout(function(){if(!bt&&ir&&Pt.size===1){var jr=Array.from(Pt)[0],tr=_i.findIndex(function(gn){var sr=gn.data;return sr.value===jr});ot(tr),Ne(tr)}});return function(){return clearTimeout(Sr)}},[ir]);var $t=function(jr){jr!==void 0&&fn(jr,{selected:!Pt.has(jr)}),bt||Mn(!1)};if(e.useImperativeHandle(gr,function(){return{onKeyDown:function(jr){var tr=jr.which;switch(tr){case E.a.UP:case E.a.DOWN:{var gn=0;if(tr===E.a.UP?gn=-1:tr===E.a.DOWN&&(gn=1),gn!==0){var sr=Fe(qe+gn,gn);Ne(sr),ot(sr)}break}case E.a.ENTER:{var un=_i[qe];un&&!un.data.disabled?$t(un.data.value):$t(void 0),ir&&jr.preventDefault();break}case E.a.ESC:Mn(!1)}},onKeyUp:function(){},scrollTo:function(jr){Ne(jr)}}}),_i.length===0)return e.createElement("div",{role:"listbox",id:"".concat(Et,"_list"),className:"".concat(xi,"-empty"),onMouseDown:we},Ar);function Mr(Sr){var jr=_i[Sr];if(!jr)return null;var tr=jr.data||{},gn=tr.value,sr=tr.label,un=tr.children,an=R(tr,!0),Pr=rt?un:sr;return jr?e.createElement("div",Object.assign({"aria-label":typeof Pr=="string"?Pr:null},an,{key:Sr,role:"option",id:"".concat(Et,"_list_").concat(Sr),"aria-selected":Pt.has(gn)}),gn):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(Et,"_list"),style:{height:0,width:0,overflow:"hidden"}},Mr(qe-1),Mr(qe),Mr(qe+1)),e.createElement(F.a,{itemKey:"key",ref:Ze,data:_i,height:ut,itemHeight:Kt,fullHeight:!1,onMouseDown:we,onScroll:si,virtual:tn,onMouseEnter:vi},function(Sr,jr){var tr,gn=Sr.group,sr=Sr.groupOption,un=Sr.data,an=un.label,Pr=un.key;if(gn)return e.createElement("div",{className:a()(xi,"".concat(xi,"-group"))},an!==void 0?an:Pr);var In=un.disabled,ci=un.value,Ui=un.title,ki=un.children,Ri=un.style,Ki=un.className,Hr=Object(v.a)(un,["disabled","value","title","children","style","className"]),Cn=Pt.has(ci),kr="".concat(xi,"-option"),mr=a()(xi,kr,Ki,(tr={},Object(m.a)(tr,"".concat(kr,"-grouped"),sr),Object(m.a)(tr,"".concat(kr,"-active"),qe===jr&&!In),Object(m.a)(tr,"".concat(kr,"-disabled"),In),Object(m.a)(tr,"".concat(kr,"-selected"),Cn),tr)),Cr=rt?ki:an,Nt=!pr||typeof pr=="function"||Cn;return e.createElement("div",Object.assign({},Hr,{"aria-selected":Cn,className:mr,title:Ui,onMouseMove:function(){if(qe===jr||In)return;ot(jr)},onClick:function(){In||$t(ci)},style:Ri}),e.createElement("div",{className:"".concat(kr,"-content")},Cr||ci),e.isValidElement(pr)||Cn,Nt&&e.createElement(U,{className:"".concat(xi,"-option-state"),customizeIcon:pr,customizeIconProps:{isSelected:Cn}},Cn?"\u2713":null))}))},j=e.forwardRef(B);j.displayName="OptionList";var W=j,V=function(){return null};V.isSelectOption=!0;var z=V,J=function(){return null};J.isSelectOptGroup=!0;var q=J,de=d("Zm9Q");function ae(xt){var Lt=xt.key,gr=xt.props,Br=gr.children,Et=gr.value,it=Object(v.a)(gr,["children","value"]);return Object(T.a)({key:Lt,value:Et!==void 0?Et:Lt,children:Br},it)}function ve(xt){var Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(de.a)(xt).map(function(gr,Br){if(!e.isValidElement(gr)||!gr.type)return null;var Et=gr.type.isSelectOptGroup,it=gr.key,rt=gr.props,Pt=rt.children,Ht=Object(v.a)(rt,["children"]);return Lt||!Et?ae(gr):Object(T.a)(Object(T.a)({key:"__RC_SELECT_GRP__".concat(it===null?Br:it,"__"),label:it},Ht),{},{options:ve(Pt)})}).filter(function(gr){return gr})}var _e=d("KQm4"),Ie=d("T5bk"),He=d("U8pU"),me=d("Kwbf");function ke(xt){return Array.isArray(xt)?xt:xt!==void 0?[xt]:[]}function se(xt,Lt){var gr=Lt.labelInValue,Br=Lt.combobox;if(xt===void 0||xt===""&&Br)return[];var Et=Array.isArray(xt)?xt:[xt];return gr?Et.map(function(it){var rt=it.key,Pt=it.value;return Pt!==void 0?Pt:rt}):Et}function te(xt,Lt){var gr=Lt.optionLabelProp,Br=Lt.labelInValue,Et=Lt.prevValue,it=Lt.options,rt=Lt.getLabeledValue,Pt=xt;return Br&&(Pt=Pt.map(function(Ht){return rt(Ht,{options:it,prevValue:Et,labelInValue:Br,optionLabelProp:gr})})),Pt}function Ge(xt,Lt){var gr=Object(_e.a)(Lt),Br;for(Br=xt.length-1;Br>=0&&xt[Br].disabled;Br-=1);var Et=null;return Br!==-1&&(Et=gr[Br],gr.splice(Br,1)),{values:gr,removedValue:Et}}var oe=typeof window!="undefined"&&window.document&&window.document.documentElement,Y=oe,G=0;function Q(){var xt;return Y?(xt=G,G+=1):xt="TEST_OR_SSR",xt}function ye(xt,Lt){var gr=xt.key,Br;return"value"in xt&&(Br=xt.value),gr!=null?gr:Br!==void 0?Br:"rc-index-key-".concat(Lt)}function ce(xt){var Lt=[];function gr(Br,Et){Br.forEach(function(it){Et||!("options"in it)?Lt.push({key:ye(it,Lt.length),groupOption:Et,data:it}):(Lt.push({key:ye(it,Lt.length),group:!0,data:it}),gr(it.options,!0))})}return gr(xt,!1),Lt}function Te(xt){var Lt=Object(T.a)({},xt);return"props"in Lt||Object.defineProperty(Lt,"props",{get:function(){return Object(me.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Lt}}),Lt}function Se(xt,Lt){var gr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Br=gr.prevValueOptions,Et=Br===void 0?[]:Br,it=new Map;return Lt.forEach(function(rt){if(!rt.group){var Pt=rt.data;it.set(Pt.value,Pt)}}),xt.map(function(rt){var Pt=it.get(rt);return Pt||(Pt=Object(T.a)({},Et.find(function(Ht){return Ht._INTERNAL_OPTION_VALUE_===rt}))),Te(Pt)})}var le=function(Lt,gr){var Br=gr.options,Et=gr.prevValue,it=gr.labelInValue,rt=gr.optionLabelProp,Pt=Se([Lt],Br)[0],Ht={value:Lt},bt,Gt=ke(Et);return it&&(bt=Gt.find(function(ut){return Object(He.a)(ut)==="object"&&"value"in ut?ut.value===Lt:ut.key===Lt})),bt&&Object(He.a)(bt)==="object"&&"label"in bt?(Ht.label=bt.label,Pt&&typeof bt.label=="string"&&typeof Pt[rt]=="string"&&bt.label.trim()!==Pt[rt].trim()&&Object(me.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Pt&&rt in Pt?Ht.label=Pt[rt]:Ht.label=Lt,Ht.key=Ht.value,Ht};function fe(xt){return ke(xt).join("")}function Ee(xt){return function(Lt,gr){var Br=Lt.toLowerCase();if("options"in gr)return fe(gr.label).toLowerCase().includes(Br);var Et=gr[xt],it=fe(Et).toLowerCase();return it.includes(Br)}}function Ve(xt,Lt,gr){var Br=gr.optionFilterProp,Et=gr.filterOption,it=[],rt;return Et===!1?Lt:(typeof Et=="function"?rt=Et:rt=Ee(Br),Lt.forEach(function(Pt){if("options"in Pt){var Ht=rt(xt,Pt);if(Ht)it.push(Pt);else{var bt=Pt.options.filter(function(Gt){return rt(xt,Gt)});bt.length&&it.push(Object(T.a)(Object(T.a)({},Pt),{},{options:bt}))}return}rt(xt,Te(Pt))&&it.push(Pt)}),it)}function vt(xt,Lt){if(!Lt||!Lt.length)return null;var gr=!1;function Br(it,rt){var Pt=Object(Ie.a)(rt),Ht=Pt[0],bt=Pt.slice(1);if(!Ht)return[it];var Gt=it.split(Ht);return gr=gr||Gt.length>1,Gt.reduce(function(ut,Kt){return[].concat(Object(_e.a)(ut),Object(_e.a)(Br(Kt,bt)))},[]).filter(function(ut){return ut})}var Et=Br(xt,Lt);return gr?Et:null}function et(xt,Lt){var gr=Se([xt],Lt)[0];return gr.disabled}function Oe(xt,Lt,gr,Br){var Et=ke(Lt).slice().sort(),it=Object(_e.a)(xt),rt=new Set;return xt.forEach(function(Pt){Pt.options?Pt.options.forEach(function(Ht){rt.add(Ht.value)}):rt.add(Pt.value)}),Et.forEach(function(Pt){var Ht=Br?Pt.value:Pt;if(!rt.has(Ht)){var bt;it.push(Br?(bt={},Object(m.a)(bt,gr,Pt.label),Object(m.a)(bt,"value",Ht),bt):{value:Ht})}}),it}var Tt=d("6cGi"),Je=d("HTfv"),St=d("c+Xe"),Mt=function(Lt,gr){var Br=Lt.prefixCls,Et=Lt.id,it=Lt.inputElement,rt=Lt.disabled,Pt=Lt.tabIndex,Ht=Lt.autoFocus,bt=Lt.autoComplete,Gt=Lt.editable,ut=Lt.accessibilityIndex,Kt=Lt.value,Ar=Lt.onKeyDown,ir=Lt.onMouseDown,pr=Lt.onChange,tn=Lt.onPaste,fn=Lt.onCompositionStart,Mn=Lt.onCompositionEnd,Yn=Lt.open,si=Lt.attrs,vi=it||e.createElement("input",null),xi=vi,_i=xi.ref,Ze=xi.props,we=Ze.onKeyDown,Ne=Ze.onChange,Fe=Ze.onMouseDown,Ye=Ze.onCompositionStart,We=Ze.onCompositionEnd,qe=Ze.style;return vi=e.cloneElement(vi,Object(T.a)(Object(T.a)({id:Et,ref:Object(St.a)(gr,_i),disabled:rt,tabIndex:Pt,autoComplete:bt||"off",autoFocus:Ht,className:"".concat(Br,"-selection-search-input"),style:Object(T.a)(Object(T.a)({},qe),{},{opacity:Gt?null:0}),role:"combobox","aria-expanded":Yn,"aria-haspopup":"listbox","aria-owns":"".concat(Et,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Et,"_list"),"aria-activedescendant":"".concat(Et,"_list_").concat(ut)},si),{},{value:Gt?Kt:"",readOnly:!Gt,unselectable:Gt?null:"on",onKeyDown:function(ot){Ar(ot),we&&we(ot)},onMouseDown:function(ot){ir(ot),Fe&&Fe(ot)},onChange:function(ot){pr(ot),Ne&&Ne(ot)},onCompositionStart:function(ot){fn(ot),Ye&&Ye(ot)},onCompositionEnd:function(ot){Mn(ot),We&&We(ot)},onPaste:tn})),vi},er=e.forwardRef(Mt);er.displayName="Input";var It=er;function _t(xt,Lt){Y?e.useLayoutEffect(xt,Lt):e.useEffect(xt,Lt)}var Xe="__RC_SELECT_MAX_REST_COUNT__",ie=function(Lt){var gr=Lt.id,Br=Lt.prefixCls,Et=Lt.values,it=Lt.open,rt=Lt.searchValue,Pt=Lt.inputRef,Ht=Lt.placeholder,bt=Lt.disabled,Gt=Lt.mode,ut=Lt.showSearch,Kt=Lt.autoFocus,Ar=Lt.autoComplete,ir=Lt.accessibilityIndex,pr=Lt.tabIndex,tn=Lt.removeIcon,fn=Lt.choiceTransitionName,Mn=Lt.maxTagCount,Yn=Lt.maxTagTextLength,si=Lt.maxTagPlaceholder,vi=si===void 0?function(ci){return"+ ".concat(ci.length," ...")}:si,xi=Lt.tagRender,_i=Lt.onSelect,Ze=Lt.onInputChange,we=Lt.onInputPaste,Ne=Lt.onInputKeyDown,Fe=Lt.onInputMouseDown,Ye=Lt.onInputCompositionStart,We=Lt.onInputCompositionEnd,qe=e.useState(!1),yt=Object(y.a)(qe,2),ot=yt[0],$t=yt[1],Mr=e.useRef(null),Sr=e.useState(0),jr=Object(y.a)(Sr,2),tr=jr[0],gn=jr[1];e.useEffect(function(){$t(!0)},[]);var sr=it||Gt==="tags"?rt:"",un=Gt==="tags"||it&&ut;_t(function(){gn(Mr.current.scrollWidth)},[sr]);var an=Et,Pr;typeof Mn=="number"&&(Pr=Et.length-Mn,an=Et.slice(0,Mn)),typeof Yn=="number"&&(an=an.map(function(ci){var Ui=ci.label,ki=Object(v.a)(ci,["label"]),Ri=Ui;if(typeof Ui=="string"||typeof Ui=="number"){var Ki=String(Ri);Ki.length>Yn&&(Ri="".concat(Ki.slice(0,Yn),"..."))}return Object(T.a)(Object(T.a)({},ki),{},{label:Ri})})),Pr>0&&an.push({key:Xe,label:typeof vi=="function"?vi(Et.slice(Mn)):vi});var In=e.createElement(Je.CSSMotionList,{component:!1,keys:an,motionName:fn,motionAppear:ot},function(ci){var Ui=ci.key,ki=ci.label,Ri=ci.value,Ki=ci.disabled,Hr=ci.className,Cn=ci.style,kr=Ui||Ri,mr=Ui!==Xe&&!Ki,Cr=function(Gr){Gr.preventDefault(),Gr.stopPropagation()},Nt=function(Gr){Gr&&Gr.stopPropagation(),_i(Ri,{selected:!1})};return typeof xi=="function"?e.createElement("span",{key:kr,onMouseDown:Cr,className:Hr,style:Cn},xi({label:ki,value:Ri,disabled:Ki,closable:mr,onClose:Nt})):e.createElement("span",{key:kr,className:a()(Hr,"".concat(Br,"-selection-item"),Object(m.a)({},"".concat(Br,"-selection-item-disabled"),Ki)),style:Cn},e.createElement("span",{className:"".concat(Br,"-selection-item-content")},ki),mr&&e.createElement(U,{className:"".concat(Br,"-selection-item-remove"),onMouseDown:Cr,onClick:Nt,customizeIcon:tn},"\xD7"))});return e.createElement(e.Fragment,null,In,e.createElement("span",{className:"".concat(Br,"-selection-search"),style:{width:tr}},e.createElement(It,{ref:Pt,open:it,prefixCls:Br,id:gr,inputElement:null,disabled:bt,autoFocus:Kt,autoComplete:Ar,editable:un,accessibilityIndex:ir,value:sr,onKeyDown:Ne,onMouseDown:Fe,onChange:Ze,onPaste:we,onCompositionStart:Ye,onCompositionEnd:We,tabIndex:pr,attrs:R(Lt,!0)}),e.createElement("span",{ref:Mr,className:"".concat(Br,"-selection-search-mirror"),"aria-hidden":!0},sr,"\xA0")),!Et.length&&!sr&&e.createElement("span",{className:"".concat(Br,"-selection-placeholder")},Ht))},X=ie,Be=function(Lt){var gr=Lt.inputElement,Br=Lt.prefixCls,Et=Lt.id,it=Lt.inputRef,rt=Lt.disabled,Pt=Lt.autoFocus,Ht=Lt.autoComplete,bt=Lt.accessibilityIndex,Gt=Lt.mode,ut=Lt.open,Kt=Lt.values,Ar=Lt.placeholder,ir=Lt.tabIndex,pr=Lt.showSearch,tn=Lt.searchValue,fn=Lt.activeValue,Mn=Lt.onInputKeyDown,Yn=Lt.onInputMouseDown,si=Lt.onInputChange,vi=Lt.onInputPaste,xi=Lt.onInputCompositionStart,_i=Lt.onInputCompositionEnd,Ze=e.useState(!1),we=Object(y.a)(Ze,2),Ne=we[0],Fe=we[1],Ye=Gt==="combobox",We=Ye||pr&&ut,qe=Kt[0],yt=tn||"";Ye&&fn&&!Ne&&(yt=fn),e.useEffect(function(){Ye&&Fe(!1)},[Ye,fn]);var ot=Gt!=="combobox"&&!ut?!1:!!yt,$t=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(Br,"-selection-search")},e.createElement(It,{ref:it,prefixCls:Br,id:Et,open:ut,inputElement:gr,disabled:rt,autoFocus:Pt,autoComplete:Ht,editable:We,accessibilityIndex:bt,value:yt,onKeyDown:Mn,onMouseDown:Yn,onChange:function(Sr){Fe(!0),si(Sr)},onPaste:vi,onCompositionStart:xi,onCompositionEnd:_i,tabIndex:ir,attrs:R(Lt,!0)})),!Ye&&qe&&!ot&&e.createElement("span",{className:"".concat(Br,"-selection-item"),title:$t},qe.label),!qe&&!ot&&e.createElement("span",{className:"".concat(Br,"-selection-placeholder")},Ar))},Ce=Be;function Z(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Lt=e.useRef(null),gr=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(gr.current)}},[]);function Br(Et){(Et||Lt.current===null)&&(Lt.current=Et),window.clearTimeout(gr.current),gr.current=window.setTimeout(function(){Lt.current=null},xt)}return[function(){return Lt.current},Br]}var nt=function(Lt,gr){var Br=Object(e.useRef)(null),Et=Object(e.useRef)(!1),it=Lt.prefixCls,rt=Lt.multiple,Pt=Lt.open,Ht=Lt.mode,bt=Lt.showSearch,Gt=Lt.tokenWithEnter,ut=Lt.onSearch,Kt=Lt.onSearchSubmit,Ar=Lt.onToggleOpen,ir=Lt.onInputKeyDown,pr=Lt.domRef;e.useImperativeHandle(gr,function(){return{focus:function(){Br.current.focus()},blur:function(){Br.current.blur()}}});var tn=Z(0),fn=Object(y.a)(tn,2),Mn=fn[0],Yn=fn[1],si=function(ot){var $t=ot.which;($t===E.a.UP||$t===E.a.DOWN)&&ot.preventDefault(),ir&&ir(ot),$t===E.a.ENTER&&Ht==="tags"&&!Et.current&&!Pt&&Kt(ot.target.value),[E.a.SHIFT,E.a.TAB,E.a.BACKSPACE,E.a.ESC].includes($t)||Ar(!0)},vi=function(){Yn(!0)},xi=Object(e.useRef)(null),_i=function(ot){ut(ot,!0,Et.current)!==!1&&Ar(!0)},Ze=function(){Et.current=!0},we=function(){Et.current=!1},Ne=function(ot){var $t=ot.target.value;if(Gt&&xi.current&&/[\r\n]/.test(xi.current)){var Mr=xi.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");$t=$t.replace(Mr,xi.current)}xi.current=null,_i($t)},Fe=function(ot){var $t=ot.clipboardData,Mr=$t.getData("text");xi.current=Mr},Ye=function(ot){var $t=Mn();if(ot.target!==Br.current){$t||ot.preventDefault();var Mr=document.body.style.msTouchAction!==void 0;Mr?setTimeout(function(){Br.current.focus()}):Br.current.focus()}(Ht!=="combobox"&&(!bt||!$t)||!Pt)&&(Pt&&ut("",!0,!1),Ar())},We={inputRef:Br,onInputKeyDown:si,onInputMouseDown:vi,onInputChange:Ne,onInputPaste:Fe,onInputCompositionStart:Ze,onInputCompositionEnd:we},qe=rt?e.createElement(X,Object.assign({},Lt,We)):e.createElement(Ce,Object.assign({},Lt,We));return e.createElement("div",{ref:pr,className:"".concat(it,"-selector"),onMouseDown:Ye},qe)},ct=e.forwardRef(nt);ct.displayName="Selector";var Qe=ct,dt=d("Uaa1"),Ft=function(Lt){var gr=typeof Lt!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:gr,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:gr,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:gr,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:gr,adjustY:1}}}},Lr=function(Lt,gr){var Br=Lt.prefixCls,Et=Lt.disabled,it=Lt.visible,rt=Lt.children,Pt=Lt.popupElement,Ht=Lt.containerWidth,bt=Lt.animation,Gt=Lt.transitionName,ut=Lt.dropdownStyle,Kt=Lt.dropdownClassName,Ar=Lt.direction,ir=Ar===void 0?"ltr":Ar,pr=Lt.dropdownMatchSelectWidth,tn=pr===void 0?!0:pr,fn=Lt.dropdownRender,Mn=Lt.dropdownAlign,Yn=Lt.getPopupContainer,si=Lt.empty,vi=Lt.getTriggerDOMNode,xi=Object(v.a)(Lt,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),_i="".concat(Br,"-dropdown"),Ze=Pt;fn&&(Ze=fn(Pt));var we=e.useMemo(function(){return Ft(tn)},[tn]),Ne=bt?"".concat(_i,"-").concat(bt):Gt,Fe=e.useRef(null);e.useImperativeHandle(gr,function(){return{getPopupElement:function(){return Fe.current}}});var Ye=Object(T.a)({minWidth:Ht},ut);return typeof tn=="number"?Ye.width=tn:tn&&(Ye.width=Ht),e.createElement(dt.a,Object.assign({},xi,{showAction:[],hideAction:[],popupPlacement:ir==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:we,prefixCls:_i,popupTransitionName:Ne,popup:e.createElement("div",{ref:Fe},Ze),popupAlign:Mn,popupVisible:it,getPopupContainer:Yn,popupClassName:a()(Kt,Object(m.a)({},"".concat(_i,"-empty"),si)),popupStyle:Ye,getTriggerDOMNode:vi}),rt)},Wt=e.forwardRef(Lr);Wt.displayName="SelectTrigger";var ar=Wt,Ut="RC_SELECT_INTERNAL_PROPS_MARK";function kt(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Lt=e.useState(!1),gr=Object(y.a)(Lt,2),Br=gr[0],Et=gr[1],it=e.useRef(null),rt=function(){window.clearTimeout(it.current)};e.useEffect(function(){return rt},[]);var Pt=function(bt,Gt){rt(),it.current=window.setTimeout(function(){Et(bt),Gt&&Gt()},xt)};return[Br,Pt,rt]}function st(xt,Lt,gr){var Br=e.useRef(null);Br.current={elements:xt.filter(function(Et){return Et}),open:Lt,triggerOpen:gr},e.useEffect(function(){function Et(it){var rt=it.target;Br.current.open&&Br.current.elements.every(function(Pt){return!Pt.contains(rt)&&Pt!==rt})&&Br.current.triggerOpen(!1)}return window.addEventListener("mousedown",Et),function(){return window.removeEventListener("mousedown",Et)}},[])}function Rr(xt){var Lt=e.useRef(xt),gr=e.useMemo(function(){var Br=new Map;Lt.current.forEach(function(it){var rt=it.value,Pt=it.label;rt!==Pt&&Br.set(rt,Pt)});var Et=xt.map(function(it){var rt=Br.get(it.value);return it.value===it.label&&rt?Object(T.a)(Object(T.a)({},it),{},{label:rt}):it});return Lt.current=Et,Et},[xt]);return gr}function on(xt,Lt){var gr=e.useRef(null),Br=e.useMemo(function(){var it=new Map;return Lt.forEach(function(rt){var Pt=rt.data.value;it.set(Pt,rt)}),it},[xt,Lt]);gr.current=Br;var Et=function(rt){return rt.map(function(Pt){return gr.current.get(Pt)}).filter(Boolean)};return Et}var Sn=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function zn(xt){var Lt=xt.prefixCls,gr=xt.components.optionList,Br=xt.convertChildrenToData,Et=xt.flattenOptions,it=xt.getLabeledValue,rt=xt.filterOptions,Pt=xt.isValueDisabled,Ht=xt.findValueOption,bt=xt.warningProps,Gt=xt.fillOptionsWithMissingValue,ut=xt.omitDOMProps;function Kt(ir,pr){var tn,fn=ir.prefixCls,Mn=fn===void 0?Lt:fn,Yn=ir.className,si=ir.id,vi=ir.open,xi=ir.defaultOpen,_i=ir.options,Ze=ir.children,we=ir.mode,Ne=ir.value,Fe=ir.defaultValue,Ye=ir.labelInValue,We=ir.showSearch,qe=ir.inputValue,yt=ir.searchValue,ot=ir.filterOption,$t=ir.optionFilterProp,Mr=$t===void 0?"value":$t,Sr=ir.autoClearSearchValue,jr=Sr===void 0?!0:Sr,tr=ir.onSearch,gn=ir.allowClear,sr=ir.clearIcon,un=ir.showArrow,an=ir.inputIcon,Pr=ir.menuItemSelectedIcon,In=ir.disabled,ci=ir.loading,Ui=ir.defaultActiveFirstOption,ki=ir.notFoundContent,Ri=ki===void 0?"Not Found":ki,Ki=ir.optionLabelProp,Hr=ir.backfill,Cn=ir.getInputElement,kr=ir.getPopupContainer,mr=ir.listHeight,Cr=mr===void 0?200:mr,Nt=ir.listItemHeight,wr=Nt===void 0?20:Nt,Gr=ir.animation,Kr=ir.transitionName,qr=ir.virtual,oi=ir.dropdownStyle,Gn=ir.dropdownClassName,Ti=ir.dropdownMatchSelectWidth,hn=ir.dropdownRender,_r=ir.dropdownAlign,En=ir.showAction,Fn=En===void 0?[]:En,Vn=ir.direction,qn=ir.tokenSeparators,Oi=ir.tagRender,Ni=ir.onPopupScroll,Mi=ir.onDropdownVisibleChange,Ji=ir.onFocus,ma=ir.onBlur,la=ir.onKeyUp,qa=ir.onKeyDown,bi=ir.onMouseDown,xn=ir.onChange,zi=ir.onSelect,oa=ir.onDeselect,Yi=ir.onClear,ca=ir.internalProps,Hi=ca===void 0?{}:ca,Ia=Object(v.a)(ir,["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"]),Da=Hi.mark===Ut,Qa=ut?ut(Ia):Ia;Sn.forEach(function(ta){delete Qa[ta]});var Wo=Object(e.useRef)(null),po=Object(e.useRef)(null),Mo=Object(e.useRef)(null),Fo=Object(e.useRef)(null),yo=Object(e.useMemo)(function(){return(qn||[]).some(function(ta){return[`
`,`\r
`].includes(ta)})},[qn]),Oo=kt(),sa=Object(y.a)(Oo,3),hs=sa[0],Jo=sa[1],wo=sa[2],_o=Object(e.useState)(),Bo=Object(y.a)(_o,2),Ds=Bo[0],Dr=Bo[1];Object(e.useEffect)(function(){Dr("rc_select_".concat(Q()))},[]);var rn=si||Ds,Tn=Ki;Tn===void 0&&(Tn=_i?"label":"children");var en=we==="combobox"?!1:Ye,ur=we==="tags"||we==="multiple",sn=We!==void 0?We:ur||we==="combobox",Bn=Object(e.useRef)(null);e.useImperativeHandle(pr,function(){return{focus:Mo.current.focus,blur:Mo.current.blur}});var Hn=Object(Tt.a)(Fe,{value:Ne}),Li=Object(y.a)(Hn,2),Ci=Li[0],Jn=Li[1],mi=Object(e.useMemo)(function(){return se(Ci,{labelInValue:en,combobox:we==="combobox"})},[Ci,en]),yi=Object(e.useMemo)(function(){return new Set(mi)},[mi]),da=Object(e.useState)(null),ha=Object(y.a)(da,2),Pa=ha[0],Ra=ha[1],so=Object(e.useState)(""),La=Object(y.a)(so,2),lo=La[0],So=La[1],Qt=lo;we==="combobox"&&Ci!==void 0?Qt=Ci:yt!==void 0?Qt=yt:qe&&(Qt=qe);var Vr=Object(e.useMemo)(function(){var ta=_i;return ta===void 0&&(ta=Br(Ze)),we==="tags"&&Gt&&(ta=Gt(ta,Ci,Tn,Ye)),ta||[]},[_i,Ze,we,Ci]),cn=Object(e.useMemo)(function(){return Et(Vr,ir)},[Vr]),vn=on(mi,cn),ni=Object(e.useMemo)(function(){if(!Qt||!sn)return Object(_e.a)(Vr);var ta=rt(Qt,Vr,{optionFilterProp:Mr,filterOption:we==="combobox"&&ot===void 0?function(){return!0}:ot});return we==="tags"&&ta.every(function(ra){return ra[Mr]!==Qt})&&ta.unshift({value:Qt,label:Qt,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),ta},[Vr,Qt,we,sn]),li=Object(e.useMemo)(function(){return Et(ni,ir)},[ni]);Object(e.useEffect)(function(){Fo.current&&Fo.current.scrollTo&&Fo.current.scrollTo(0)},[Qt]);var fi=Object(e.useMemo)(function(){var ta=mi.map(function(ra){var _a=vn([ra]),Ka=it(ra,{options:_a,prevValue:Ci,labelInValue:en,optionLabelProp:Tn});return Object(T.a)(Object(T.a)({},Ka),{},{disabled:Pt(ra,_a)})});return!we&&ta.length===1&&ta[0].value===null&&ta[0].label===null?[]:ta},[Ci,Vr,we]);fi=Rr(fi);var di=function(ra,_a,Ka){var bo=vn([ra]),ga=Ht([ra],bo)[0];if(!Hi.skipTriggerSelect){var go=en?it(ra,{options:bo,prevValue:Ci,labelInValue:en,optionLabelProp:Tn}):ra;_a&&zi?zi(go,ga):!_a&&oa&&oa(go,ga)}Da&&(_a&&Hi.onRawSelect?Hi.onRawSelect(ra,ga,Ka):!_a&&Hi.onRawDeselect&&Hi.onRawDeselect(ra,ga,Ka))},Jt=Object(e.useState)([]),Ot=Object(y.a)(Jt,2),yr=Ot[0],ft=Ot[1],qt=function(ra){if(Da&&Hi.skipTriggerChange)return;var _a=vn(ra),Ka=te(Array.from(ra),{labelInValue:en,options:_a,getLabeledValue:it,prevValue:Ci,optionLabelProp:Tn}),bo=ur?Ka:Ka[0];if(xn&&(mi.length!==0||Ka.length!==0)){var ga=Ht(ra,_a,{prevValueOptions:yr});ft(ga.map(function(go,Sa){var Va=Object(T.a)({},go);return Object.defineProperty(Va,"_INTERNAL_OPTION_VALUE_",{get:function(){return ra[Sa]}}),Va})),xn(bo,ur?ga:ga[0])}Jn(bo)},dr=function(ra,_a){var Ka=_a.selected,bo=_a.source;if(In)return;var ga;ur?(ga=new Set(mi),Ka?ga.add(ra):ga.delete(ra)):(ga=new Set,ga.add(ra)),(ur||!ur&&Array.from(mi)[0]!==ra)&&qt(Array.from(ga)),di(ra,!ur||Ka,bo),we==="combobox"?(So(String(ra)),Ra("")):(!ur||jr)&&(So(""),Ra(""))},Nr=function(ra,_a){dr(ra,Object(T.a)(Object(T.a)({},_a),{},{source:"option"}))},Zr=function(ra,_a){dr(ra,Object(T.a)(Object(T.a)({},_a),{},{source:"selection"}))},pn=we==="combobox"&&Cn&&Cn()||null,_n=Object(Tt.a)(void 0,{defaultValue:xi,value:vi}),Dn=Object(y.a)(_n,2),Zn=Dn[0],ii=Dn[1],pi=Zn,ri=!Ri&&!ni.length;(In||ri&&pi&&we==="combobox")&&(pi=!1);var ji=ri?!1:pi,ei=function(ra){var _a=ra!==void 0?ra:!pi;Zn!==_a&&!In&&(ii(_a),Mi&&Mi(_a))};st([Wo.current,po.current&&po.current.getPopupElement()],ji,ei);var $e=function(ra,_a,Ka){var bo=!0,ga=ra;Ra(null);var go=Ka?null:vt(ra,qn),Sa=go;if(we==="combobox")_a&&qt([ga]);else if(go){ga="",we!=="tags"&&(Sa=go.map(function(uo){var No=cn.find(function(Po){var to=Po.data;return to[Tn]===uo});return No?No.data.value:null}).filter(function(uo){return uo!==null}));var Va=Array.from(new Set([].concat(Object(_e.a)(mi),Object(_e.a)(Sa))));qt(Va),Va.forEach(function(uo){di(uo,!0,"input")}),ei(!1),bo=!1}return So(ga),tr&&Qt!==ga&&tr(ga),bo},Yt=function(ra){var _a=Array.from(new Set([].concat(Object(_e.a)(mi),[ra])));qt(_a),_a.forEach(function(Ka){di(Ka,!0,"input")}),So("")};Object(e.useEffect)(function(){Zn&&!!In&&ii(!1)},[In]),Object(e.useEffect)(function(){!pi&&!ur&&we!=="combobox"&&$e("",!1,!1)},[pi]);var vr=Z(),fr=Object(y.a)(vr,2),Xr=fr[0],Fr=fr[1],hr=function(ra){var _a=Xr(),Ka=ra.which;if(!pi&&Ka===E.a.ENTER&&ei(!0),Fr(!!Qt),Ka===E.a.BACKSPACE&&!_a&&ur&&!Qt&&mi.length){var bo=Ge(fi,mi);bo.removedValue!==null&&(qt(bo.values),di(bo.removedValue,!1,"input"))}for(var ga=arguments.length,go=new Array(ga>1?ga-1:0),Sa=1;Sa<ga;Sa++)go[Sa-1]=arguments[Sa];if(pi&&Fo.current){var Va;(Va=Fo.current).onKeyDown.apply(Va,[ra].concat(go))}qa&&qa.apply(void 0,[ra].concat(go))},An=function(ra){for(var _a=arguments.length,Ka=new Array(_a>1?_a-1:0),bo=1;bo<_a;bo++)Ka[bo-1]=arguments[bo];if(pi&&Fo.current){var ga;(ga=Fo.current).onKeyUp.apply(ga,[ra].concat(Ka))}la&&la.apply(void 0,[ra].concat(Ka))},br=Object(e.useRef)(!1),mn=function(){Jo(!0),In||(Ji&&!br.current&&Ji.apply(void 0,arguments),Fn.includes("focus")&&ei(!0)),br.current=!0},Kn=function(){if(Jo(!1,function(){br.current=!1,ei(!1)}),In)return;Qt&&(we==="tags"?($e("",!1,!1),qt(Array.from(new Set([].concat(Object(_e.a)(mi),[Qt]))))):we==="multiple"&&So("")),ma&&ma.apply(void 0,arguments)},Wn=[];Object(e.useEffect)(function(){return function(){Wn.forEach(function(ta){return clearTimeout(ta)}),Wn.splice(0,Wn.length)}},[]);var Ln=function(ra){var _a=ra.target,Ka=po.current&&po.current.getPopupElement();if(Ka&&Ka.contains(_a)){var bo=setTimeout(function(){var Va=Wn.indexOf(bo);Va!==-1&&Wn.splice(Va,1),wo(),Ka.contains(document.activeElement)||Mo.current.focus()});Wn.push(bo)}if(bi){for(var ga=arguments.length,go=new Array(ga>1?ga-1:0),Sa=1;Sa<ga;Sa++)go[Sa-1]=arguments[Sa];bi.apply(void 0,[ra].concat(go))}},$n=Object(e.useState)(0),Un=Object(y.a)($n,2),ti=Un[0],Xn=Un[1],wi=Ui!==void 0?Ui:we!=="combobox",Ei=function(ra,_a){Xn(_a),Hr&&we==="combobox"&&ra!==null&&Ra(String(ra))},Zi=Object(e.useState)(null),ua=Object(y.a)(Zi,2),Xi=ua[0],Gi=ua[1],wa=Object(e.useState)({}),na=Object(y.a)(wa,2),mo=na[1];function Ca(){mo({})}_t(function(){if(ji){var ta=Math.ceil(Wo.current.offsetWidth);Xi!==ta&&Gi(ta)}},[ji]);var qi=e.createElement(gr,{ref:Fo,prefixCls:Mn,id:rn,open:pi,childrenAsData:!_i,options:ni,flattenOptions:li,multiple:ur,values:yi,height:Cr,itemHeight:wr,onSelect:Nr,onToggleOpen:ei,onActiveValue:Ei,defaultActiveFirstOption:wi,notFoundContent:Ri,onScroll:Ni,searchValue:Qt,menuItemSelectedIcon:Pr,virtual:qr!==!1&&Ti!==!1,onMouseEnter:Ca}),aa,$i=function(){Da&&Hi.onClear&&Hi.onClear(),Yi&&Yi(),qt([]),$e("",!1,!1)};!In&&gn&&(mi.length||Qt)&&(aa=e.createElement(U,{className:"".concat(Mn,"-clear"),onMouseDown:$i,customizeIcon:sr},"\xD7"));var Aa=un!==void 0?un:ci||!ur&&we!=="combobox",ya;Aa&&(ya=e.createElement(U,{className:a()("".concat(Mn,"-arrow"),Object(m.a)({},"".concat(Mn,"-arrow-loading"),ci)),customizeIcon:an,customizeIconProps:{loading:ci,searchValue:Qt,open:pi,focused:hs,showSearch:sn}}));var Ha=a()(Mn,Yn,(tn={},Object(m.a)(tn,"".concat(Mn,"-focused"),hs),Object(m.a)(tn,"".concat(Mn,"-multiple"),ur),Object(m.a)(tn,"".concat(Mn,"-single"),!ur),Object(m.a)(tn,"".concat(Mn,"-allow-clear"),gn),Object(m.a)(tn,"".concat(Mn,"-show-arrow"),Aa),Object(m.a)(tn,"".concat(Mn,"-disabled"),In),Object(m.a)(tn,"".concat(Mn,"-loading"),ci),Object(m.a)(tn,"".concat(Mn,"-open"),pi),Object(m.a)(tn,"".concat(Mn,"-customize-input"),pn),Object(m.a)(tn,"".concat(Mn,"-show-search"),sn),tn));return e.createElement("div",Object.assign({className:Ha},Qa,{ref:Wo,onMouseDown:Ln,onKeyDown:hr,onKeyUp:An,onFocus:mn,onBlur:Kn}),hs&&!pi&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(mi.join(", "))),e.createElement(ar,{ref:po,disabled:In,prefixCls:Mn,visible:ji,popupElement:qi,containerWidth:Xi,animation:Gr,transitionName:Kr,dropdownStyle:oi,dropdownClassName:Gn,direction:Vn,dropdownMatchSelectWidth:Ti,dropdownRender:hn,dropdownAlign:_r,getPopupContainer:kr,empty:!Vr.length,getTriggerDOMNode:function(){return Bn.current}},e.createElement(Qe,Object.assign({},ir,{domRef:Bn,prefixCls:Mn,inputElement:pn,ref:Mo,id:rn,showSearch:sn,mode:we,accessibilityIndex:ti,multiple:ur,tagRender:Oi,values:fi,open:pi,onToggleOpen:ei,searchValue:Qt,activeValue:Pa,onSearch:$e,onSearchSubmit:Yt,onSelect:Zr,tokenWithEnter:yo}))),ya,aa)}var Ar=e.forwardRef(Kt);return Ar}function Ii(xt){var Lt=xt.mode,gr=xt.options,Br=xt.children,Et=xt.backfill,it=xt.allowClear,rt=xt.placeholder,Pt=xt.getInputElement,Ht=xt.showSearch,bt=xt.onSearch,Gt=xt.defaultOpen,ut=xt.autoFocus,Kt=xt.labelInValue,Ar=xt.value,ir=xt.inputValue,pr=xt.optionLabelProp,tn=Lt==="multiple"||Lt==="tags",fn=Ht!==void 0?Ht:tn||Lt==="combobox",Mn=gr||ve(Br);if(Object(me.a)(Lt!=="tags"||Mn.every(function(xi){return!xi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Lt==="tags"||Lt==="combobox"){var Yn=Mn.some(function(xi){return xi.options?xi.options.some(function(_i){return typeof("value"in _i?_i.value:_i.key)=="number"}):typeof("value"in xi?xi.value:xi.key)=="number"});Object(me.a)(!Yn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(me.a)(Lt!=="combobox"||!pr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(me.a)(Lt==="combobox"||!Et,"`backfill` only works with `combobox` mode."),Object(me.a)(Lt==="combobox"||!Pt,"`getInputElement` only work with `combobox` mode."),Object(me.b)(Lt!=="combobox"||!Pt||!it||!rt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),bt&&!fn&&Lt!=="combobox"&&Lt!=="tags"&&Object(me.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(me.b)(!Gt||ut,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ar!=null){var si=ke(Ar);Object(me.a)(!Kt||si.every(function(xi){return Object(He.a)(xi)==="object"&&("key"in xi||"value"in xi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(me.a)(!tn||Array.isArray(Ar),"`value` should be array when `mode` is `multiple` or `tags`")}if(Br){var vi=null;Object(de.a)(Br).some(function(xi){if(!e.isValidElement(xi)||!xi.type)return!1;var _i=xi.type;if(_i.isSelectOption)return!1;if(_i.isSelectOptGroup){var Ze=Object(de.a)(xi.props.children).every(function(we){return!e.isValidElement(we)||!xi.type||we.type.isSelectOption?!0:(vi=we.type,!1)});return!Ze}return vi=_i,!0}),vi&&Object(me.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(vi.displayName||vi.name||vi,"`.")),Object(me.a)(ir===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var yn=Ii,Nn=zn({prefixCls:"rc-select",components:{optionList:W},convertChildrenToData:ve,flattenOptions:ce,getLabeledValue:le,filterOptions:Ve,isValueDisabled:et,findValueOption:Se,warningProps:yn,fillOptionsWithMissingValue:Oe}),jt=function(xt){Object(h.a)(gr,xt);var Lt=Object(p.a)(gr);function gr(){var Br;return Object(s.a)(this,gr),Br=Lt.apply(this,arguments),Br.selectRef=e.createRef(),Br.focus=function(){Br.selectRef.current.focus()},Br.blur=function(){Br.selectRef.current.blur()},Br}return Object(u.a)(gr,[{key:"render",value:function(){return e.createElement(Nn,Object.assign({ref:this.selectRef},this.props))}}]),gr}(e.Component);jt.Option=z,jt.OptGroup=q;var At=jt,Re=At,Ke=d("H84U"),Pe=d("1vzs"),at=d("3Nzz"),wt=function(xt){r()(gr,xt);var Lt=n()(gr);function gr(){var Br;return g()(this,gr),Br=Lt.apply(this,arguments),Br.selectRef=e.createRef(),Br.focus=function(){Br.selectRef.current&&Br.selectRef.current.focus()},Br.blur=function(){Br.selectRef.current&&Br.selectRef.current.blur()},Br.getMode=function(){var Et=Br.props.mode;return Et==="combobox"?void 0:Et===gr.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":Et},Br.renderSelect=function(Et){var it=Et.getPopupContainer,rt=Et.getPrefixCls,Pt=Et.renderEmpty,Ht=Et.direction,bt=Et.virtual,Gt=Et.dropdownMatchSelectWidth,ut=Br.props,Kt=ut.prefixCls,Ar=ut.notFoundContent,ir=ut.className,pr=ut.size,tn=ut.listHeight,fn=tn===void 0?256:tn,Mn=ut.listItemHeight,Yn=Mn===void 0?24:Mn,si=ut.getPopupContainer,vi=ut.dropdownClassName,xi=ut.bordered,_i=rt("select",Kt),Ze=Br.getMode(),we=Ze==="multiple"||Ze==="tags",Ne;Ar!==void 0?Ne=Ar:Ze==="combobox"?Ne=null:Ne=Pt("Select");var Fe=Object(Pe.a)(A()(A()({},Br.props),{multiple:we,prefixCls:_i})),Ye=Fe.suffixIcon,We=Fe.itemIcon,qe=Fe.removeIcon,yt=Fe.clearIcon,ot=Object(l.default)(Br.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),$t=a()(vi,x()({},"".concat(_i,"-dropdown-").concat(Ht),Ht==="rtl"));return e.createElement(at.b.Consumer,null,function(Mr){var Sr,jr=pr||Mr,tr=a()(ir,(Sr={},x()(Sr,"".concat(_i,"-lg"),jr==="large"),x()(Sr,"".concat(_i,"-sm"),jr==="small"),x()(Sr,"".concat(_i,"-rtl"),Ht==="rtl"),x()(Sr,"".concat(_i,"-borderless"),!xi),Sr));return e.createElement(Re,A()({ref:Br.selectRef,virtual:bt,dropdownMatchSelectWidth:Gt},ot,{listHeight:fn,listItemHeight:Yn,mode:Ze,prefixCls:_i,direction:Ht,inputIcon:Ye,menuItemSelectedIcon:We,removeIcon:qe,clearIcon:yt,notFoundContent:Ne,className:tr,getPopupContainer:si||it,dropdownClassName:$t}))})},Br}return c()(gr,[{key:"render",value:function(){return e.createElement(Ke.a,null,this.renderSelect)}}]),gr}(e.Component);wt.Option=z,wt.OptGroup=q,wt.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",wt.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var Rt=k.a=wt},"2fw6":function(H,k,d){var O=d("y+Vt"),x=O.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(A,b,g){g&&A.moveTo(b.cx+b.r,b.cy),A.arc(b.cx,b.cy,b.r,0,Math.PI*2,!0)}});H.exports=x},"2jpz":function(H,k,d){"use strict";d.d(k,"a",function(){return u});var O=d("cDf5"),x=d.n(O),C=d("q1tI"),A=d.n(C),b=d("TSYQ"),g=d.n(b),f=d("gZBC"),c=d.n(f),o=d("vk+C"),r=d.n(o),i=d("pG52"),n=d.n(i),e=d("Csr3"),l=d.n(e),t=d("e5VY"),a=d.n(t),s=d("0n0R");function u(h,p,m,v){var y=v.isLeaf,E=v.expanded,T=v.loading;if(T)return C.createElement(c.a,{className:"".concat(h,"-switcher-loading-icon")});var w;if(m&&x()(m)==="object"&&(w=m.showLeafIcon),y)return m?x()(m)==="object"&&!w?C.createElement("span",{className:"".concat(h,"-switcher-leaf-line")}):C.createElement(r.a,{className:"".concat(h,"-switcher-line-icon")}):null;var S="".concat(h,"-switcher-icon");return Object(s.b)(p)?Object(s.a)(p,{className:g()(p.props.className||"",S)}):p||(m?E?C.createElement(n.a,{className:"".concat(h,"-switcher-line-icon")}):C.createElement(l.a,{className:"".concat(h,"-switcher-line-icon")}):C.createElement(a.a,{className:S}))}},"2oIt":function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},"2uGb":function(H,k,d){var O=d("ProS");d("ko1b"),d("s2lz"),d("RBEP");var x=d("kMLO"),C=d("nKiI");O.registerVisual(x),O.registerLayout(C)},"2w7y":function(H,k,d){var O=d("ProS");d("qMZE"),d("g0SD"),O.registerPreprocessor(function(x){x.markPoint=x.markPoint||{}})},"33Ds":function(H,k,d){var O=d("ProS"),x=d("b9oc"),C=d("Kagy"),A=d("IUWy"),b=C.toolbox.restore;function g(o){this.model=o}g.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:b.title};var f=g.prototype;f.onclick=function(o,r,i){x.clear(o),r.dispatchAction({type:"restore",from:this.uid})},A.register("restore",g),O.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(o,r){r.resetOption("recreate")});var c=g;H.exports=c},"34/K":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;function O(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function x(b,g){for(var f=0;f<g.length;f++){var c=g[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(b,c.key,c)}}function C(b,g,f){return g&&x(b.prototype,g),f&&x(b,f),b}var A=function(){function b(){O(this,b),this._lines=0}return C(b,[{key:"decodeRect",value:function(f,c,o,r,i,n,e){this._lines===0&&(this._lines=r);var l=e==8?1:4,t=o*l;if(i.rQwait("RAW",t))return!1;var a=c+(r-this._lines),s=Math.min(this._lines,Math.floor(i.rQlen/t)),u=i.rQ,h=i.rQi;if(e==8){for(var p=o*s,m=new Uint8Array(p*4),v=0;v<p;v++)m[v*4+0]=(u[h+v]>>0&3)*255/3,m[v*4+1]=(u[h+v]>>2&3)*255/3,m[v*4+2]=(u[h+v]>>4&3)*255/3,m[v*4+4]=0;u=m,h=0}return n.blitImage(f,a,o,s,u,h),i.rQskipBytes(s*t),this._lines-=s,!(this._lines>0)}}]),b}();k.default=A},"3690":function(H,k,d){"use strict";function O(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(i){return typeof i}:O=function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},O(o)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var x=A(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return C=function(){return o},o}function A(o){if(o&&o.__esModule)return o;if(o===null||O(o)!=="object"&&typeof o!="function")return{default:o};var r=C();if(r&&r.has(o))return r.get(o);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in o)if(Object.prototype.hasOwnProperty.call(o,e)){var l=n?Object.getOwnPropertyDescriptor(o,e):null;l&&(l.get||l.set)?Object.defineProperty(i,e,l):i[e]=o[e]}return i.default=o,r&&r.set(o,i),i}function b(o,r){if(!(o instanceof r))throw new TypeError("Cannot call a class as a function")}function g(o,r){for(var i=0;i<r.length;i++){var n=r[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}function f(o,r,i){return r&&g(o.prototype,r),i&&g(o,i),o}var c=function(){function o(){b(this,o),this._tiles=0,this._lastsubencoding=0}return f(o,[{key:"decodeRect",value:function(i,n,e,l,t,a,s){for(this._tiles===0&&(this._tilesX=Math.ceil(e/16),this._tilesY=Math.ceil(l/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){var u=1;if(t.rQwait("HEXTILE",u))return!1;var h=t.rQ,p=t.rQi,m=h[p];if(m>30)throw new Error("Illegal hextile subencoding (subencoding: "+m+")");var v=this._totalTiles-this._tiles,y=v%this._tilesX,E=Math.floor(v/this._tilesX),T=i+y*16,w=n+E*16,S=Math.min(16,i+e-T),_=Math.min(16,n+l-w);if(m&1)u+=S*_*4;else if(m&2&&(u+=4),m&4&&(u+=4),m&8){if(u++,t.rQwait("HEXTILE",u))return!1;var I=h[p+u-1];m&16?u+=I*(4+2):u+=I*2}if(t.rQwait("HEXTILE",u))return!1;if(p++,m===0)this._lastsubencoding&1?x.Debug(" Ignoring blank after RAW"):a.fillRect(T,w,S,_,this._background);else if(m&1)a.blitImage(T,w,S,_,h,p),p+=u-1;else{if(m&2&&(this._background=[h[p],h[p+1],h[p+2],h[p+3]],p+=4),m&4&&(this._foreground=[h[p],h[p+1],h[p+2],h[p+3]],p+=4),a.startTile(T,w,S,_,this._background),m&8){var L=h[p];p++;for(var N=0;N<L;N++){var R=void 0;m&16?(R=[h[p],h[p+1],h[p+2],h[p+3]],p+=4):R=this._foreground;var D=h[p];p++;var F=D>>4,M=D&15,U=h[p];p++;var B=(U>>4)+1,j=(U&15)+1;a.subTile(F,M,B,j,R)}}a.finishTile()}t.rQi=p,this._lastsubencoding=m,this._tiles--}return!0}}]),o}();k.default=c},"3C/r":function(H,k){var d=function(C,A){this.image=C,this.repeat=A,this.type="pattern"};d.prototype.getCanvasPattern=function(x){return x.createPattern(this.image,this.repeat||"repeat")};var O=d;H.exports=O},"3CBa":function(H,k,d){var O=d("hydK"),x=O.createElement,C=d("bYtY"),A=d("SUKs"),b=d("y+Vt"),g=d("Dagg"),f=d("dqUG"),c=d("DBLp"),o=d("sW+o"),r=d("n6Mw"),i=d("vKoX"),n=d("P47w"),e=n.path,l=n.image,t=n.text;function a(S){return parseInt(S,10)}function s(S){return S instanceof b?e:S instanceof g?l:S instanceof f?t:e}function u(S,_){return _&&S&&_.parentNode!==S}function h(S,_,I){if(u(S,_)&&I){var L=I.nextSibling;L?S.insertBefore(_,L):S.appendChild(_)}}function p(S,_){if(u(S,_)){var I=S.firstChild;I?S.insertBefore(_,I):S.appendChild(_)}}function m(S,_){_&&S&&_.parentNode===S&&S.removeChild(_)}function v(S){return S.__textSvgEl}function y(S){return S.__svgEl}var E=function(_,I,L,N){this.root=_,this.storage=I,this._opts=L=C.extend({},L||{});var R=x("svg");R.setAttribute("xmlns","http://www.w3.org/2000/svg"),R.setAttribute("version","1.1"),R.setAttribute("baseProfile","full"),R.style.cssText="user-select:none;position:absolute;left:0;top:0;";var D=x("g");R.appendChild(D);var F=x("g");R.appendChild(F),this.gradientManager=new o(N,F),this.clipPathManager=new r(N,F),this.shadowManager=new i(N,F);var M=document.createElement("div");M.style.cssText="overflow:hidden;position:relative",this._svgDom=R,this._svgRoot=F,this._backgroundRoot=D,this._viewport=M,_.appendChild(M),M.appendChild(R),this.resize(L.width,L.height),this._visibleList=[]};E.prototype={constructor:E,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=x("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,N=_.length,R=[],D;for(D=0;D<N;D++){var F=_[D],M=s(F),U=y(F)||v(F);F.invisible||(F.__dirty&&(M&&M.brush(F),this.clipPathManager.update(F),F.style&&(this.gradientManager.update(F.style.fill),this.gradientManager.update(F.style.stroke),this.shadowManager.update(U,F)),F.__dirty=!1),R.push(F))}var B=c(L,R),j;for(D=0;D<B.length;D++){var W=B[D];if(W.removed)for(var V=0;V<W.count;V++){var F=L[W.indices[V]],U=y(F),z=v(F);m(I,U),m(I,z)}}for(D=0;D<B.length;D++){var W=B[D];if(W.added)for(var V=0;V<W.count;V++){var F=R[W.indices[V]],U=y(F),z=v(F);j?h(I,U,j):p(I,U),U?h(I,z,U):j?h(I,z,j):p(I,z),h(I,z,U),j=z||U||j,this.gradientManager.addWithoutUpdate(U||z,F),this.shadowManager.addWithoutUpdate(U||z,F),this.clipPathManager.markUsed(F)}else if(!W.removed)for(var V=0;V<W.count;V++){var F=R[W.indices[V]],U=y(F),z=v(F),U=y(F),z=v(F);this.gradientManager.markUsed(F),this.gradientManager.addWithoutUpdate(U||z,F),this.shadowManager.markUsed(F),this.shadowManager.addWithoutUpdate(U||z,F),this.clipPathManager.markUsed(F),z&&h(I,z,U),j=U||z||j}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=R},_getDefs:function(_){var I=this._svgDom,L=I.getElementsByTagName("defs");if(L.length===0)if(_){var L=I.insertBefore(x("defs"),I.firstChild);return L.contains||(L.contains=function(R){var D=L.children;if(!D)return!1;for(var F=D.length-1;F>=0;--F)if(D[F]===R)return!0;return!1}),L}else return null;else return L[0]},resize:function(_,I){var L=this._viewport;L.style.display="none";var N=this._opts;if(_!=null&&(N.width=_),I!=null&&(N.height=I),_=this._getSize(0),I=this._getSize(1),L.style.display="",this._width!==_||this._height!==I){this._width=_,this._height=I;var R=L.style;R.width=_+"px",R.height=I+"px";var D=this._svgDom;D.setAttribute("width",_),D.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"][_],N=["clientWidth","clientHeight"][_],R=["paddingLeft","paddingTop"][_],D=["paddingRight","paddingBottom"][_];if(I[L]!=null&&I[L]!=="auto")return parseFloat(I[L]);var F=this.root,M=document.defaultView.getComputedStyle(F);return(F[N]||a(M[L])||a(F.style[L]))-(a(M[R])||0)-(a(M[D])||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(S){return function(){A('In SVG mode painter not support method "'+S+'"')}}C.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(S){E.prototype[S]=T(S)});var w=E;H.exports=w},"3LNs":function(H,k,d){var O=d("bYtY"),x=d("Yl7c"),C=d("IwbS"),A=d("zTMp"),b=d("YH21"),g=d("iLNv"),f=d("4NO4"),c=f.makeInner,o=c(),r=O.clone,i=O.bind;function n(){}n.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(h,p,m,v){var y=p.get("value"),E=p.get("status");if(this._axisModel=h,this._axisPointerModel=p,this._api=m,!v&&this._lastValue===y&&this._lastStatus===E)return;this._lastValue=y,this._lastStatus=E;var T=this._group,w=this._handle;if(!E||E==="hide"){T&&T.hide(),w&&w.hide();return}T&&T.show(),w&&w.show();var S={};this.makeElOption(S,y,h,p,m);var _=S.graphicKey;_!==this._lastGraphicKey&&this.clear(m),this._lastGraphicKey=_;var I=this._moveAnimation=this.determineAnimation(h,p);if(!T)T=this._group=new C.Group,this.createPointerEl(T,S,h,p),this.createLabelEl(T,S,h,p),m.getZr().add(T);else{var L=O.curry(e,p,I);this.updatePointerEl(T,S,L,p),this.updateLabelEl(T,S,L,p)}s(T,p,!0),this._renderHandle(y)},remove:function(h){this.clear(h)},dispose:function(h){this.clear(h)},determineAnimation:function(h,p){var m=p.get("animation"),v=h.axis,y=v.type==="category",E=p.get("snap");if(!E&&!y)return!1;if(m==="auto"||m==null){var T=this.animationThreshold;if(y&&v.getBandWidth()>T)return!0;if(E){var w=A.getAxisInfo(h).seriesDataCount,S=v.getExtent();return Math.abs(S[0]-S[1])/w>T}return!1}return m===!0},makeElOption:function(h,p,m,v,y){},createPointerEl:function(h,p,m,v){var y=p.pointer;if(y){var E=o(h).pointerEl=new C[y.type](r(p.pointer));h.add(E)}},createLabelEl:function(h,p,m,v){if(p.label){var y=o(h).labelEl=new C.Rect(r(p.label));h.add(y),t(y,v)}},updatePointerEl:function(h,p,m){var v=o(h).pointerEl;v&&p.pointer&&(v.setStyle(p.pointer.style),m(v,{shape:p.pointer.shape}))},updateLabelEl:function(h,p,m,v){var y=o(h).labelEl;y&&(y.setStyle(p.label.style),m(y,{shape:p.label.shape,position:p.label.position}),t(y,v))},_renderHandle:function(h){if(this._dragging||!this.updateHandleTransform)return;var p=this._axisPointerModel,m=this._api.getZr(),v=this._handle,y=p.getModel("handle"),E=p.get("status");if(!y.get("show")||!E||E==="hide"){v&&m.remove(v),this._handle=null;return}var T;this._handle||(T=!0,v=this._handle=C.createIcon(y.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(_){b.stop(_.event)},onmousedown:i(this._onHandleDragMove,this,0,0),drift:i(this._onHandleDragMove,this),ondragend:i(this._onHandleDragEnd,this)}),m.add(v)),s(v,p,!1);var w=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];v.setStyle(y.getItemStyle(null,w));var S=y.get("size");O.isArray(S)||(S=[S,S]),v.attr("scale",[S[0]/2,S[1]/2]),g.createOrUpdate(this,"_doDispatchAxisPointer",y.get("throttle")||0,"fixRate"),this._moveHandleToValue(h,T)},_moveHandleToValue:function(h,p){e(this._axisPointerModel,!p&&this._moveAnimation,this._handle,a(this.getHandleTransform(h,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(h,p){var m=this._handle;if(!m)return;this._dragging=!0;var v=this.updateHandleTransform(a(m),[h,p],this._axisModel,this._axisPointerModel);this._payloadInfo=v,m.stopAnimation(),m.attr(a(v)),o(m).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var h=this._handle;if(!h)return;var p=this._payloadInfo,m=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:p.cursorPoint[0],y:p.cursorPoint[1],tooltipOption:p.tooltipOption,axesInfo:[{axisDim:m.axis.dim,axisIndex:m.componentIndex}]})},_onHandleDragEnd:function(h){this._dragging=!1;var p=this._handle;if(!p)return;var m=this._axisPointerModel.get("value");this._moveHandleToValue(m),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(h){this._lastValue=null,this._lastStatus=null;var p=h.getZr(),m=this._group,v=this._handle;p&&m&&(this._lastGraphicKey=null,m&&p.remove(m),v&&p.remove(v),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(h,p,m){return m=m||0,{x:h[m],y:h[1-m],width:p[m],height:p[1-m]}}},n.prototype.constructor=n;function e(h,p,m,v){l(o(m).lastProp,v)||(o(m).lastProp=v,p?C.updateProps(m,v,h):(m.stopAnimation(),m.attr(v)))}function l(h,p){if(O.isObject(h)&&O.isObject(p)){var m=!0;return O.each(p,function(v,y){m=m&&l(h[y],v)}),!!m}else return h===p}function t(h,p){h[p.get("label.show")?"show":"hide"]()}function a(h){return{position:h.position.slice(),rotation:h.rotation||0}}function s(h,p,m){var v=p.get("z"),y=p.get("zlevel");h&&h.traverse(function(E){E.type!=="group"&&(v!=null&&(E.z=v),y!=null&&(E.zlevel=y),E.silent=m)})}x.enableClassExtend(n);var u=n;H.exports=u},"3OrL":function(H,k,d){var O=d("bYtY"),x=d("6Ic6"),C=d("IwbS"),A=d("y+Vt"),b=["itemStyle"],g=["emphasis","itemStyle"],f=x.extend({type:"boxplot",render:function(e,l,t){var a=e.getData(),s=this.group,u=this._data;this._data||s.removeAll();var h=e.get("layout")==="horizontal"?1:0;a.diff(u).add(function(p){if(a.hasValue(p)){var m=a.getItemLayout(p),v=o(m,a,p,h,!0);a.setItemGraphicEl(p,v),s.add(v)}}).update(function(p,m){var v=u.getItemGraphicEl(m);if(!a.hasValue(p)){s.remove(v);return}var y=a.getItemLayout(p);v?r(y,v,a,p):v=o(y,a,p,h),s.add(v),a.setItemGraphicEl(p,v)}).remove(function(p){var m=u.getItemGraphicEl(p);m&&s.remove(m)}).execute(),this._data=a},remove:function(e){var l=this.group,t=this._data;this._data=null,t&&t.eachItemGraphicEl(function(a){a&&l.remove(a)})},dispose:O.noop}),c=A.extend({type:"boxplotBoxPath",shape:{},buildPath:function(e,l){var t=l.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 o(e,l,t,a,s){var u=e.ends,h=new c({shape:{points:s?i(u,a,e):u}});return r(e,h,l,t,s),h}function r(e,l,t,a,s){var u=t.hostModel,h=C[s?"initProps":"updateProps"];h(l,{shape:{points:e.ends}},u,a);var p=t.getItemModel(a),m=p.getModel(b),v=t.getItemVisual(a,"color"),y=m.getItemStyle(["borderColor"]);y.stroke=v,y.strokeNoScale=!0,l.useStyle(y),l.z2=100;var E=p.getModel(g).getItemStyle();C.setHoverStyle(l,E)}function i(e,l,t){return O.map(e,function(a){return a=a.slice(),a[l]=t.initBaseline,a})}var n=f;H.exports=n},"3S7+":function(H,k,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("J4zp"),A=d.n(C),b=d("pVnL"),g=d.n(b),f=d("q1tI"),c=d.n(f),o=d("U8pU"),r=d("VTBJ"),i=d("Ff2n"),n=d("1OyB"),e=d("vuIU"),l=d("JX7q"),t=d("Ji7U"),a=d("LK+K"),s=d("i8i4"),u=d.n(s),h=d("l4aY"),p=d("m+aA"),m=d("c+Xe"),v=d("zT1h"),y=d("QC+M"),E=d("TSYQ"),T=d.n(E);function w(yn,Nn,jt){return jt?yn[0]===Nn[0]:yn[0]===Nn[0]&&yn[1]===Nn[1]}function S(yn,Nn,jt){var At=yn[Nn]||{};return Object(r.a)(Object(r.a)({},At),jt)}function _(yn,Nn,jt,At){for(var Re=jt.points,Ke=Object.keys(yn),Pe=0;Pe<Ke.length;Pe+=1){var at=Ke[Pe];if(w(yn[at].points,Re,At))return"".concat(Nn,"-placement-").concat(at)}return""}var I=d("xEkU"),L=d.n(I),N=d("9mu1"),R=d("rePB"),D=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function F(yn,Nn){var jt={};return jt[yn.toLowerCase()]=Nn.toLowerCase(),jt["Webkit".concat(yn)]="webkit".concat(Nn),jt["Moz".concat(yn)]="moz".concat(Nn),jt["ms".concat(yn)]="MS".concat(Nn),jt["O".concat(yn)]="o".concat(Nn.toLowerCase()),jt}function M(yn,Nn){var jt={animationend:F("Animation","AnimationEnd"),transitionend:F("Transition","TransitionEnd")};return yn&&("AnimationEvent"in Nn||delete jt.animationend.animation,"TransitionEvent"in Nn||delete jt.transitionend.transition),jt}var U=M(D,typeof window!="undefined"?window:{}),B={};if(D){var j=document.createElement("div");B=j.style}var W={};function V(yn){if(W[yn])return W[yn];var Nn=U[yn];if(Nn)for(var jt=Object.keys(Nn),At=jt.length,Re=0;Re<At;Re+=1){var Ke=jt[Re];if(Object.prototype.hasOwnProperty.call(Nn,Ke)&&Ke in B)return W[yn]=Nn[Ke],W[yn]}return""}var z=V("animationend"),J=V("transitionend"),q=!!(z&&J);function de(yn,Nn){if(!yn)return null;if(Object(o.a)(yn)==="object"){var jt=Nn.replace(/-\w/g,function(At){return At[1].toUpperCase()});return yn[jt]}return"".concat(yn,"-").concat(Nn)}var ae="none",ve="appear",_e="enter",Ie="leave";function He(yn){var Nn=yn,jt=!!f.forwardRef;Object(o.a)(yn)==="object"&&(Nn=yn.transitionSupport,jt="forwardRef"in yn?yn.forwardRef:jt);function At(Ke){return!!(Ke.motionName&&Nn)}var Re=function(Ke){Object(t.a)(at,Ke);var Pe=Object(a.a)(at);function at(){var wt;return Object(n.a)(this,at),wt=Pe.apply(this,arguments),wt.$cacheEle=null,wt.node=null,wt.raf=null,wt.destroyed=!1,wt.deadlineId=null,wt.state={status:ae,statusActive:!1,newStatus:!1,statusStyle:null},wt.onDomUpdate=function(){var Rt=wt.state,xt=Rt.status,Lt=Rt.newStatus,gr=wt.props,Br=gr.onAppearStart,Et=gr.onEnterStart,it=gr.onLeaveStart,rt=gr.onAppearActive,Pt=gr.onEnterActive,Ht=gr.onLeaveActive,bt=gr.motionAppear,Gt=gr.motionEnter,ut=gr.motionLeave;if(!At(wt.props))return;var Kt=wt.getElement();wt.$cacheEle!==Kt&&(wt.removeEventListener(wt.$cacheEle),wt.addEventListener(Kt),wt.$cacheEle=Kt),Lt&&xt===ve&&bt?wt.updateStatus(Br,null,null,function(){wt.updateActiveStatus(rt,ve)}):Lt&&xt===_e&&Gt?wt.updateStatus(Et,null,null,function(){wt.updateActiveStatus(Pt,_e)}):Lt&&xt===Ie&&ut&&wt.updateStatus(it,null,null,function(){wt.updateActiveStatus(Ht,Ie)})},wt.onMotionEnd=function(Rt){if(Rt&&!Rt.deadline&&Rt.target!==wt.getElement())return;var xt=wt.state,Lt=xt.status,gr=xt.statusActive,Br=wt.props,Et=Br.onAppearEnd,it=Br.onEnterEnd,rt=Br.onLeaveEnd;Lt===ve&&gr?wt.updateStatus(Et,{status:ae},Rt):Lt===_e&&gr?wt.updateStatus(it,{status:ae},Rt):Lt===Ie&&gr&&wt.updateStatus(rt,{status:ae},Rt)},wt.setNodeRef=function(Rt){var xt=wt.props.internalRef;wt.node=Rt,Object(m.b)(xt,Rt)},wt.getElement=function(){try{return Object(p.a)(wt.node||Object(l.a)(wt))}catch(Rt){return wt.$cacheEle}},wt.addEventListener=function(Rt){if(!Rt)return;Rt.addEventListener(J,wt.onMotionEnd),Rt.addEventListener(z,wt.onMotionEnd)},wt.removeEventListener=function(Rt){if(!Rt)return;Rt.removeEventListener(J,wt.onMotionEnd),Rt.removeEventListener(z,wt.onMotionEnd)},wt.updateStatus=function(Rt,xt,Lt,gr){var Br=Rt?Rt(wt.getElement(),Lt):null;if(Br===!1||wt.destroyed)return;var Et;gr&&(Et=function(){wt.nextFrame(gr)}),wt.setState(Object(r.a)({statusStyle:Object(o.a)(Br)==="object"?Br:null,newStatus:!1},xt),Et)},wt.updateActiveStatus=function(Rt,xt){wt.nextFrame(function(){var Lt=wt.state.status;if(Lt!==xt)return;var gr=wt.props.motionDeadline;wt.updateStatus(Rt,{statusActive:!0}),gr>0&&(wt.deadlineId=setTimeout(function(){wt.onMotionEnd({deadline:!0})},gr))})},wt.nextFrame=function(Rt){wt.cancelNextFrame(),wt.raf=L()(Rt)},wt.cancelNextFrame=function(){wt.raf&&(L.a.cancel(wt.raf),wt.raf=null)},wt}return Object(e.a)(at,[{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 Rt,xt=this.state,Lt=xt.status,gr=xt.statusActive,Br=xt.statusStyle,Et=this.props,it=Et.children,rt=Et.motionName,Pt=Et.visible,Ht=Et.removeOnLeave,bt=Et.leavedClassName,Gt=Et.eventProps;return it?Lt===ae||!At(this.props)?Pt?it(Object(r.a)({},Gt),this.setNodeRef):Ht?null:it(Object(r.a)(Object(r.a)({},Gt),{},{className:bt}),this.setNodeRef):it(Object(r.a)(Object(r.a)({},Gt),{},{className:T()(de(rt,Lt),(Rt={},Object(R.a)(Rt,de(rt,"".concat(Lt,"-active")),gr),Object(R.a)(Rt,rt,typeof rt=="string"),Rt)),style:Br}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Rt,xt){var Lt=xt.prevProps,gr=xt.status;if(!At(Rt))return{};var Br=Rt.visible,Et=Rt.motionAppear,it=Rt.motionEnter,rt=Rt.motionLeave,Pt=Rt.motionLeaveImmediately,Ht={prevProps:Rt};return(gr===ve&&!Et||gr===_e&&!it||gr===Ie&&!rt)&&(Ht.status=ae,Ht.statusActive=!1,Ht.newStatus=!1),!Lt&&Br&&Et&&(Ht.status=ve,Ht.statusActive=!1,Ht.newStatus=!0),Lt&&!Lt.visible&&Br&&it&&(Ht.status=_e,Ht.statusActive=!1,Ht.newStatus=!0),(Lt&&Lt.visible&&!Br&&rt||!Lt&&Pt&&!Br&&rt)&&(Ht.status=Ie,Ht.statusActive=!1,Ht.newStatus=!0),Ht}}]),at}(f.Component);return Re.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},jt?f.forwardRef(function(Ke,Pe){return f.createElement(Re,Object.assign({internalRef:Pe},Ke))}):Re}var me=He(q),ke="add",se="keep",te="remove",Ge="removed";function oe(yn){var Nn;return yn&&Object(o.a)(yn)==="object"&&"key"in yn?Nn=yn:Nn={key:yn},Object(r.a)(Object(r.a)({},Nn),{},{key:String(Nn.key)})}function Y(){var yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return yn.map(oe)}function G(){var yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],jt=[],At=0,Re=Nn.length,Ke=Y(yn),Pe=Y(Nn);Ke.forEach(function(Rt){for(var xt=!1,Lt=At;Lt<Re;Lt+=1){var gr=Pe[Lt];if(gr.key===Rt.key){At<Lt&&(jt=jt.concat(Pe.slice(At,Lt).map(function(Br){return Object(r.a)(Object(r.a)({},Br),{},{status:ke})})),At=Lt),jt.push(Object(r.a)(Object(r.a)({},gr),{},{status:se})),At+=1,xt=!0;break}}xt||jt.push(Object(r.a)(Object(r.a)({},Rt),{},{status:te}))}),At<Re&&(jt=jt.concat(Pe.slice(At).map(function(Rt){return Object(r.a)(Object(r.a)({},Rt),{},{status:ke})})));var at={};jt.forEach(function(Rt){var xt=Rt.key;at[xt]=(at[xt]||0)+1});var wt=Object.keys(at).filter(function(Rt){return at[Rt]>1});return wt.forEach(function(Rt){jt=jt.filter(function(xt){var Lt=xt.key,gr=xt.status;return Lt!==Rt||gr!==te}),jt.forEach(function(xt){xt.key===Rt&&(xt.status=se)})}),jt}var Q=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ye(yn){var Nn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:me,jt=function(At){Object(t.a)(Ke,At);var Re=Object(a.a)(Ke);function Ke(){var Pe;return Object(n.a)(this,Ke),Pe=Re.apply(this,arguments),Pe.state={keyEntities:[]},Pe.removeKey=function(at){Pe.setState(function(wt){var Rt=wt.keyEntities;return{keyEntities:Rt.map(function(xt){return xt.key!==at?xt:Object(r.a)(Object(r.a)({},xt),{},{status:Ge})})}})},Pe}return Object(e.a)(Ke,[{key:"render",value:function(){var at=this,wt=this.state.keyEntities,Rt=this.props,xt=Rt.component,Lt=Rt.children,gr=Object(i.a)(Rt,["component","children"]),Br=xt||f.Fragment,Et={};return Q.forEach(function(it){Et[it]=gr[it],delete gr[it]}),delete gr.keys,f.createElement(Br,Object.assign({},gr),wt.map(function(it){var rt=it.status,Pt=Object(i.a)(it,["status"]),Ht=rt===ke||rt===se;return f.createElement(Nn,Object.assign({},Et,{key:Pt.key,visible:Ht,eventProps:Pt,onLeaveEnd:function(){Et.onLeaveEnd&&Et.onLeaveEnd.apply(Et,arguments),at.removeKey(Pt.key)}}),Lt)}))}}],[{key:"getDerivedStateFromProps",value:function(at,wt){var Rt=at.keys,xt=wt.keyEntities,Lt=Y(Rt);if(!yn)return{keyEntities:Lt.map(function(Et){return Object(r.a)(Object(r.a)({},Et),{},{status:se})})};var gr=G(xt,Lt),Br=xt.length;return{keyEntities:gr.filter(function(Et){for(var it=null,rt=0;rt<Br;rt+=1){var Pt=xt[rt];if(Pt.key===Et.key){it=Pt;break}}return!(it&&it.status===Ge&&Et.status===te)})}}}]),Ke}(f.Component);return jt.defaultProps={component:"div"},jt}var ce=ye(q),Te=me,Se=function(Nn,jt){var At=Nn.prefixCls,Re=Nn.className,Ke=Nn.style,Pe=Nn.children,at=Nn.onMouseEnter,wt=Nn.onMouseLeave,Rt=Nn.onMouseDown,xt=Nn.onTouchStart,Lt=Pe;return f.Children.count(Pe)>1&&(Lt=f.createElement("div",{className:"".concat(At,"-content")},Pe)),f.createElement("div",{ref:jt,className:Re,onMouseEnter:at,onMouseLeave:wt,onMouseDown:Rt,onTouchStart:xt,style:Ke},Lt)},le=f.forwardRef(Se);le.displayName="PopupInner";var fe=le;function Ee(yn){var Nn=yn.prefixCls,jt=yn.motion,At=yn.animation,Re=yn.transitionName;return jt||(At?{motionName:"".concat(Nn,"-").concat(At)}:Re?{motionName:Re}:null)}function Ve(yn){return yn&&yn.motionName}var vt=function(yn){Object(t.a)(jt,yn);var Nn=Object(a.a)(jt);function jt(){var At;return Object(n.a)(this,jt),At=Nn.apply(this,arguments),At.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},At.popupRef=c.a.createRef(),At.alignRef=c.a.createRef(),At.nextFrameState=null,At.nextFrameId=null,At.onAlign=function(Re,Ke){var Pe=At.state.status,at=At.props,wt=at.getClassNameFromAlign,Rt=at.onAlign,xt=wt(Ke);Pe==="align"?At.setState({alignClassName:xt,status:"aligned"},function(){At.alignRef.current.forceAlign()}):Pe==="aligned"?(At.setState({alignClassName:xt,status:"afterAlign"}),Rt(Re,Ke)):At.setState({alignClassName:xt})},At.onMotionEnd=function(){var Re=At.props.visible;At.setState({status:Re?"AfterMotion":"stable",inMotion:!1})},At.setStateOnNextFrame=function(Re){At.cancelFrameState(),At.nextFrameState=Object(r.a)(Object(r.a)({},At.nextFrameState),Re),At.nextFrameId=L()(function(){var Ke=Object(r.a)({},At.nextFrameState);At.nextFrameState=null,At.setState(Ke)})},At.getMotion=function(){return Object(r.a)({},Ee(At.props))},At.getAlignTarget=function(){var Re=At.props,Ke=Re.point,Pe=Re.getRootDomNode;return Ke||Pe},At.cancelFrameState=function(){L.a.cancel(At.nextFrameId)},At.renderPopupElement=function(){var Re=At.state,Ke=Re.status,Pe=Re.targetHeight,at=Re.targetWidth,wt=Re.alignClassName,Rt=At.props,xt=Rt.prefixCls,Lt=Rt.className,gr=Rt.style,Br=Rt.stretch,Et=Rt.visible,it=Rt.align,rt=Rt.destroyPopupOnHide,Pt=Rt.onMouseEnter,Ht=Rt.onMouseLeave,bt=Rt.onMouseDown,Gt=Rt.onTouchStart,ut=Rt.children,Kt=T()(xt,Lt,wt),Ar="".concat(xt,"-hidden"),ir={};Br&&(Br.indexOf("height")!==-1?ir.height=Pe:Br.indexOf("minHeight")!==-1&&(ir.minHeight=Pe),Br.indexOf("width")!==-1?ir.width=at:Br.indexOf("minWidth")!==-1&&(ir.minWidth=at));var pr=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},ir),At.getZIndexStyle()),gr),{},{opacity:Ke==="stable"||!Et?void 0:0,pointerEvents:Ke==="stable"||!Et?void 0:"none"}),tn=At.getMotion(),fn=Et;Et&&Ke!=="beforeMotion"&&Ke!=="motion"&&Ke!=="stable"&&(tn.motionAppear=!1,tn.motionEnter=!1,tn.motionLeave=!1),(Ke==="afterAlign"||Ke==="beforeMotion")&&(fn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(si){var vi=tn==null?void 0:tn[si];tn[si]=function(){for(var xi=arguments.length,_i=new Array(xi),Ze=0;Ze<xi;Ze++)_i[Ze]=arguments[Ze];vi==null||vi.apply(void 0,_i),At.setState({inMotion:!0})}});var Mn=!Et||Ke!=="align"&&Ke!=="aligned"&&Ke!=="stable",Yn=!0;return Ke==="stable"&&(Yn=Et),rt&&!Yn?null:c.a.createElement(Te,Object.assign({visible:fn},tn,{removeOnLeave:!1,onEnterEnd:At.onMotionEnd,onLeaveEnd:At.onMotionEnd,leavedClassName:Ar}),function(si,vi){var xi=si.style,_i=si.className;return c.a.createElement(N.a,{target:At.getAlignTarget(),key:"popup",ref:At.alignRef,monitorWindowResize:!0,disabled:Mn,align:it,onAlign:At.onAlign},c.a.createElement(fe,{prefixCls:xt,className:T()(Kt,_i),ref:Object(m.a)(vi,At.popupRef),onMouseEnter:Pt,onMouseLeave:Ht,onMouseDown:bt,onTouchStart:Gt,style:Object(r.a)(Object(r.a)({},pr),xi)},ut))})},At.renderMaskElement=function(){var Re=At.props,Ke=Re.mask,Pe=Re.maskMotion,at=Re.maskTransitionName,wt=Re.maskAnimation,Rt=Re.prefixCls,xt=Re.visible;if(!Ke)return null;var Lt={};return Pe&&Pe.motionName&&(Lt=Object(r.a)({motionAppear:!0},Ee({motion:Pe,prefixCls:Rt,transitionName:at,animation:wt}))),c.a.createElement(Te,Object.assign({},Lt,{visible:xt,removeOnLeave:!0}),function(gr){var Br=gr.className;return c.a.createElement("div",{style:At.getZIndexStyle(),key:"mask",className:T()("".concat(Rt,"-mask"),Br)})})},At}return Object(e.a)(jt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Re=this.state.status,Ke=this.props,Pe=Ke.getRootDomNode,at=Ke.visible,wt=Ke.stretch;if(this.cancelFrameState(),at&&Re!=="stable")switch(Re){case null:{this.setStateOnNextFrame({status:wt?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Ve(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Rt=["measure","align",null,"beforeMotion","motion"],xt=Rt.indexOf(Re),Lt=Rt[xt+1];xt!==-1&&Lt&&this.setStateOnNextFrame({status:Lt})}}if(Re==="measure"){var gr=Pe();gr&&this.setStateOnNextFrame({targetHeight:gr.offsetHeight,targetWidth:gr.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Re=this.props.zIndex;return{zIndex:Re}}},{key:"render",value:function(){return c.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Re,Ke){var Pe=Re.visible,at=Object(i.a)(Re,["visible"]),wt=Ke.prevVisible,Rt=Ke.status,xt=Ke.inMotion,Lt={prevVisible:Pe,status:Rt},gr=Ee(at);return wt===null&&Pe===!1?(Lt.status="stable",Lt.inMotion=!1):Pe!==wt&&(Lt.inMotion=!1,Pe||Ve(gr)&&xt?Lt.status=null:Lt.status="stable",Pe&&(Lt.alignClassName=null)),Lt}}]),jt}(f.Component),et=vt,Oe=f.createContext(null),Tt=Oe;function Je(){}function St(){return""}function Mt(){return window.document}var er=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function It(yn){var Nn=function(jt){Object(t.a)(Re,jt);var At=Object(a.a)(Re);function Re(Ke){var Pe;Object(n.a)(this,Re),Pe=At.call(this,Ke),Pe.popupRef=c.a.createRef(),Pe.triggerRef=c.a.createRef(),Pe.onMouseEnter=function(wt){var Rt=Pe.props.mouseEnterDelay;Pe.fireEvents("onMouseEnter",wt),Pe.delaySetPopupVisible(!0,Rt,Rt?null:wt)},Pe.onMouseMove=function(wt){Pe.fireEvents("onMouseMove",wt),Pe.setPoint(wt)},Pe.onMouseLeave=function(wt){Pe.fireEvents("onMouseLeave",wt),Pe.delaySetPopupVisible(!1,Pe.props.mouseLeaveDelay)},Pe.onPopupMouseEnter=function(){Pe.clearDelayTimer()},Pe.onPopupMouseLeave=function(wt){if(wt.relatedTarget&&!wt.relatedTarget.setTimeout&&Pe.popupRef.current&&Pe.popupRef.current.popupRef.current&&Object(h.a)(Pe.popupRef.current.popupRef.current,wt.relatedTarget))return;Pe.delaySetPopupVisible(!1,Pe.props.mouseLeaveDelay)},Pe.onFocus=function(wt){Pe.fireEvents("onFocus",wt),Pe.clearDelayTimer(),Pe.isFocusToShow()&&(Pe.focusTime=Date.now(),Pe.delaySetPopupVisible(!0,Pe.props.focusDelay))},Pe.onMouseDown=function(wt){Pe.fireEvents("onMouseDown",wt),Pe.preClickTime=Date.now()},Pe.onTouchStart=function(wt){Pe.fireEvents("onTouchStart",wt),Pe.preTouchTime=Date.now()},Pe.onBlur=function(wt){Pe.fireEvents("onBlur",wt),Pe.clearDelayTimer(),Pe.isBlurToHide()&&Pe.delaySetPopupVisible(!1,Pe.props.blurDelay)},Pe.onContextMenu=function(wt){wt.preventDefault(),Pe.fireEvents("onContextMenu",wt),Pe.setPopupVisible(!0,wt)},Pe.onContextMenuClose=function(){Pe.isContextMenuToShow()&&Pe.close()},Pe.onClick=function(wt){if(Pe.fireEvents("onClick",wt),Pe.focusTime){var Rt;if(Pe.preClickTime&&Pe.preTouchTime?Rt=Math.min(Pe.preClickTime,Pe.preTouchTime):Pe.preClickTime?Rt=Pe.preClickTime:Pe.preTouchTime&&(Rt=Pe.preTouchTime),Math.abs(Rt-Pe.focusTime)<20)return;Pe.focusTime=0}Pe.preClickTime=0,Pe.preTouchTime=0,Pe.isClickToShow()&&(Pe.isClickToHide()||Pe.isBlurToHide())&&wt&&wt.preventDefault&&wt.preventDefault();var xt=!Pe.state.popupVisible;(Pe.isClickToHide()&&!xt||xt&&Pe.isClickToShow())&&Pe.setPopupVisible(!Pe.state.popupVisible,wt)},Pe.onPopupMouseDown=function(){if(Pe.hasPopupMouseDown=!0,clearTimeout(Pe.mouseDownTimeout),Pe.mouseDownTimeout=window.setTimeout(function(){Pe.hasPopupMouseDown=!1},0),Pe.context){var wt;(wt=Pe.context).onPopupMouseDown.apply(wt,arguments)}},Pe.onDocumentClick=function(wt){if(Pe.props.mask&&!Pe.props.maskClosable)return;var Rt=wt.target,xt=Pe.getRootDomNode(),Lt=Pe.getPopupDomNode();!Object(h.a)(xt,Rt)&&!Object(h.a)(Lt,Rt)&&!Pe.hasPopupMouseDown&&Pe.close()},Pe.getRootDomNode=function(){var wt=Pe.props.getTriggerDOMNode;if(wt)return wt(Pe.triggerRef.current);try{var Rt=Object(p.a)(Pe.triggerRef.current);if(Rt)return Rt}catch(xt){}return u.a.findDOMNode(Object(l.a)(Pe))},Pe.getPopupClassNameFromAlign=function(wt){var Rt=[],xt=Pe.props,Lt=xt.popupPlacement,gr=xt.builtinPlacements,Br=xt.prefixCls,Et=xt.alignPoint,it=xt.getPopupClassNameFromAlign;return Lt&&gr&&Rt.push(_(gr,Br,wt,Et)),it&&Rt.push(it(wt)),Rt.join(" ")},Pe.getComponent=function(){var wt=Pe.props,Rt=wt.prefixCls,xt=wt.destroyPopupOnHide,Lt=wt.popupClassName,gr=wt.onPopupAlign,Br=wt.popupMotion,Et=wt.popupAnimation,it=wt.popupTransitionName,rt=wt.popupStyle,Pt=wt.mask,Ht=wt.maskAnimation,bt=wt.maskTransitionName,Gt=wt.maskMotion,ut=wt.zIndex,Kt=wt.popup,Ar=wt.stretch,ir=wt.alignPoint,pr=Pe.state,tn=pr.popupVisible,fn=pr.point,Mn=Pe.getPopupAlign(),Yn={};return Pe.isMouseEnterToShow()&&(Yn.onMouseEnter=Pe.onPopupMouseEnter),Pe.isMouseLeaveToHide()&&(Yn.onMouseLeave=Pe.onPopupMouseLeave),Yn.onMouseDown=Pe.onPopupMouseDown,Yn.onTouchStart=Pe.onPopupMouseDown,c.a.createElement(et,Object.assign({prefixCls:Rt,destroyPopupOnHide:xt,visible:tn,point:ir&&fn,className:Lt,align:Mn,onAlign:gr,animation:Et,getClassNameFromAlign:Pe.getPopupClassNameFromAlign},Yn,{stretch:Ar,getRootDomNode:Pe.getRootDomNode,style:rt,mask:Pt,zIndex:ut,transitionName:it,maskAnimation:Ht,maskTransitionName:bt,maskMotion:Gt,ref:Pe.popupRef,motion:Br}),typeof Kt=="function"?Kt():Kt)},Pe.getContainer=function(){var wt=Object(l.a)(Pe),Rt=wt.props,xt=document.createElement("div");xt.style.position="absolute",xt.style.top="0",xt.style.left="0",xt.style.width="100%";var Lt=Rt.getPopupContainer?Rt.getPopupContainer(Pe.getRootDomNode()):Rt.getDocument().body;return Lt.appendChild(xt),xt},Pe.setPoint=function(wt){var Rt=Pe.props.alignPoint;if(!Rt||!wt)return;Pe.setState({point:{pageX:wt.pageX,pageY:wt.pageY}})},Pe.handlePortalUpdate=function(){Pe.state.prevPopupVisible!==Pe.state.popupVisible&&Pe.props.afterPopupVisibleChange(Pe.state.popupVisible)};var at;return"popupVisible"in Ke?at=!!Ke.popupVisible:at=!!Ke.defaultPopupVisible,Pe.state={prevPopupVisible:at,popupVisible:at},er.forEach(function(wt){Pe["fire".concat(wt)]=function(Rt){Pe.fireEvents(wt,Rt)}}),Pe}return Object(e.a)(Re,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Pe=this.props,at=this.state;if(at.popupVisible){var wt;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(wt=Pe.getDocument(),this.clickOutsideHandler=Object(v.a)(wt,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(wt=wt||Pe.getDocument(),this.touchOutsideHandler=Object(v.a)(wt,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(wt=wt||Pe.getDocument(),this.contextMenuOutsideHandler1=Object(v.a)(wt,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(v.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 Pe=this.props,at=Pe.popupPlacement,wt=Pe.popupAlign,Rt=Pe.builtinPlacements;return at&&Rt?S(Rt,at,wt):wt}},{key:"setPopupVisible",value:function(Pe,at){var wt=this.props.alignPoint,Rt=this.state.popupVisible;this.clearDelayTimer(),Rt!==Pe&&("popupVisible"in this.props||this.setState({popupVisible:Pe,prevPopupVisible:Rt}),this.props.onPopupVisibleChange(Pe)),wt&&at&&this.setPoint(at)}},{key:"delaySetPopupVisible",value:function(Pe,at,wt){var Rt=this,xt=at*1e3;if(this.clearDelayTimer(),xt){var Lt=wt?{pageX:wt.pageX,pageY:wt.pageY}:null;this.delayTimer=window.setTimeout(function(){Rt.setPopupVisible(Pe,Lt),Rt.clearDelayTimer()},xt)}else this.setPopupVisible(Pe,wt)}},{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(Pe){var at=this.props.children.props,wt=this.props;return at[Pe]&&wt[Pe]?this["fire".concat(Pe)]:at[Pe]||wt[Pe]}},{key:"isClickToShow",value:function(){var Pe=this.props,at=Pe.action,wt=Pe.showAction;return at.indexOf("click")!==-1||wt.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Pe=this.props,at=Pe.action,wt=Pe.showAction;return at.indexOf("contextMenu")!==-1||wt.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Pe=this.props,at=Pe.action,wt=Pe.hideAction;return at.indexOf("click")!==-1||wt.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Pe=this.props,at=Pe.action,wt=Pe.showAction;return at.indexOf("hover")!==-1||wt.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Pe=this.props,at=Pe.action,wt=Pe.hideAction;return at.indexOf("hover")!==-1||wt.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Pe=this.props,at=Pe.action,wt=Pe.showAction;return at.indexOf("focus")!==-1||wt.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Pe=this.props,at=Pe.action,wt=Pe.hideAction;return at.indexOf("focus")!==-1||wt.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(Pe,at){var wt=this.props.children.props[Pe];wt&&wt(at);var Rt=this.props[Pe];Rt&&Rt(at)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Pe=this.state.popupVisible,at=this.props,wt=at.children,Rt=at.forceRender,xt=at.alignPoint,Lt=at.className,gr=at.autoDestroy,Br=c.a.Children.only(wt),Et={key:"trigger"};this.isContextMenuToShow()?Et.onContextMenu=this.onContextMenu:Et.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Et.onClick=this.onClick,Et.onMouseDown=this.onMouseDown,Et.onTouchStart=this.onTouchStart):(Et.onClick=this.createTwoChains("onClick"),Et.onMouseDown=this.createTwoChains("onMouseDown"),Et.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Et.onMouseEnter=this.onMouseEnter,xt&&(Et.onMouseMove=this.onMouseMove)):Et.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Et.onMouseLeave=this.onMouseLeave:Et.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Et.onFocus=this.onFocus,Et.onBlur=this.onBlur):(Et.onFocus=this.createTwoChains("onFocus"),Et.onBlur=this.createTwoChains("onBlur"));var it=T()(Br&&Br.props&&Br.props.className,Lt);it&&(Et.className=it);var rt=Object(r.a)({},Et);Object(m.c)(Br)&&(rt.ref=Object(m.a)(this.triggerRef,Br.ref));var Pt=c.a.cloneElement(Br,rt),Ht;return(Pe||this.popupRef.current||Rt)&&(Ht=c.a.createElement(yn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Pe&&gr&&(Ht=null),c.a.createElement(Tt.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Pt,Ht)}}],[{key:"getDerivedStateFromProps",value:function(Pe,at){var wt=Pe.popupVisible,Rt={};return wt!==void 0&&at.popupVisible!==wt&&(Rt.popupVisible=wt,Rt.prevPopupVisible=at.popupVisible),Rt}}]),Re}(c.a.Component);return Nn.contextType=Tt,Nn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:St,getDocument:Mt,onPopupVisibleChange:Je,afterPopupVisibleChange:Je,onPopupAlign:Je,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Nn}var _t=It(y.a),Xe={adjustX:1,adjustY:1},ie=[0,0],X={left:{points:["cr","cl"],overflow:Xe,offset:[-4,0],targetOffset:ie},right:{points:["cl","cr"],overflow:Xe,offset:[4,0],targetOffset:ie},top:{points:["bc","tc"],overflow:Xe,offset:[0,-4],targetOffset:ie},bottom:{points:["tc","bc"],overflow:Xe,offset:[0,4],targetOffset:ie},topLeft:{points:["bl","tl"],overflow:Xe,offset:[0,-4],targetOffset:ie},leftTop:{points:["tr","tl"],overflow:Xe,offset:[-4,0],targetOffset:ie},topRight:{points:["br","tr"],overflow:Xe,offset:[0,-4],targetOffset:ie},rightTop:{points:["tl","tr"],overflow:Xe,offset:[4,0],targetOffset:ie},bottomRight:{points:["tr","br"],overflow:Xe,offset:[0,4],targetOffset:ie},rightBottom:{points:["bl","br"],overflow:Xe,offset:[4,0],targetOffset:ie},bottomLeft:{points:["tl","bl"],overflow:Xe,offset:[0,4],targetOffset:ie},leftBottom:{points:["br","bl"],overflow:Xe,offset:[-4,0],targetOffset:ie}},Be=X,Ce=function(Nn){var jt=Nn.overlay,At=Nn.prefixCls,Re=Nn.id,Ke=Nn.overlayInnerStyle;return f.createElement("div",{className:"".concat(At,"-inner"),id:Re,role:"tooltip",style:Ke},typeof jt=="function"?jt():jt)},Z=Ce,nt=function(Nn,jt){var At=Nn.overlayClassName,Re=Nn.trigger,Ke=Re===void 0?["hover"]:Re,Pe=Nn.mouseEnterDelay,at=Pe===void 0?0:Pe,wt=Nn.mouseLeaveDelay,Rt=wt===void 0?.1:wt,xt=Nn.overlayStyle,Lt=Nn.prefixCls,gr=Lt===void 0?"rc-tooltip":Lt,Br=Nn.children,Et=Nn.onVisibleChange,it=Nn.afterVisibleChange,rt=Nn.transitionName,Pt=Nn.animation,Ht=Nn.placement,bt=Ht===void 0?"right":Ht,Gt=Nn.align,ut=Gt===void 0?{}:Gt,Kt=Nn.destroyTooltipOnHide,Ar=Kt===void 0?!1:Kt,ir=Nn.defaultVisible,pr=Nn.getTooltipContainer,tn=Nn.overlayInnerStyle,fn=Object(i.a)(Nn,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),Mn=Object(f.useRef)(null);Object(f.useImperativeHandle)(jt,function(){return Mn.current});var Yn=Object(r.a)({},fn);"visible"in Nn&&(Yn.popupVisible=Nn.visible);var si=function(){var we=Nn.arrowContent,Ne=we===void 0?null:we,Fe=Nn.overlay,Ye=Nn.id;return[f.createElement("div",{className:"".concat(gr,"-arrow"),key:"arrow"},Ne),f.createElement(Z,{key:"content",prefixCls:gr,id:Ye,overlay:Fe,overlayInnerStyle:tn})]},vi=!1,xi=!1;if(typeof Ar=="boolean")vi=Ar;else if(Ar&&Object(o.a)(Ar)==="object"){var _i=Ar.keepParent;vi=_i===!0,xi=_i===!1}return f.createElement(_t,Object.assign({popupClassName:At,prefixCls:gr,popup:si,action:Ke,builtinPlacements:X,popupPlacement:bt,ref:Mn,popupAlign:ut,getPopupContainer:pr,onPopupVisibleChange:Et,afterPopupVisibleChange:it,popupTransitionName:rt,popupAnimation:Pt,defaultPopupVisible:ir,destroyPopupOnHide:vi,autoDestroy:xi,mouseLeaveDelay:Rt,popupStyle:xt,mouseEnterDelay:at},Yn),Br)},ct=Object(f.forwardRef)(nt),Qe=ct,dt={adjustX:1,adjustY:1},Ft={adjustX:0,adjustY:0},Lr=[0,0];function Wt(yn){return typeof yn=="boolean"?yn?dt:Ft:g()(g()({},Ft),yn)}function ar(yn){var Nn=yn.arrowWidth,jt=Nn===void 0?5:Nn,At=yn.horizontalArrowShift,Re=At===void 0?16:At,Ke=yn.verticalArrowShift,Pe=Ke===void 0?8:Ke,at=yn.autoAdjustOverflow,wt={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:[-(Re+jt),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Pe+jt)]},topRight:{points:["br","tc"],offset:[Re+jt,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Pe+jt)]},bottomRight:{points:["tr","bc"],offset:[Re+jt,4]},rightBottom:{points:["bl","cr"],offset:[4,Pe+jt]},bottomLeft:{points:["tl","bc"],offset:[-(Re+jt),4]},leftBottom:{points:["br","cl"],offset:[-4,Pe+jt]}};return Object.keys(wt).forEach(function(Rt){wt[Rt]=yn.arrowPointAtCenter?g()(g()({},wt[Rt]),{overflow:Wt(at),targetOffset:Lr}):g()(g()({},X[Rt]),{overflow:Wt(at)}),wt[Rt].ignoreShake=!0}),wt}var Ut=d("0n0R"),kt=d("H84U"),st=d("09Wf"),Rr=function(Nn,jt){var At={},Re=g()({},Nn);return jt.forEach(function(Ke){Nn&&Ke in Nn&&(At[Ke]=Nn[Ke],delete Re[Ke])}),{picked:At,omitted:Re}},on=new RegExp("^(".concat(st.a.join("|"),")(-inverse)?$"));function Sn(yn,Nn){var jt=yn.type;if((jt.__ANT_BUTTON===!0||jt.__ANT_SWITCH===!0||jt.__ANT_CHECKBOX===!0||yn.type==="button")&&yn.props.disabled){var At=Rr(yn.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Re=At.picked,Ke=At.omitted,Pe=g()(g()({display:"inline-block"},Re),{cursor:"not-allowed",width:yn.props.block?"100%":null}),at=g()(g()({},Ke),{pointerEvents:"none"}),wt=Object(Ut.a)(yn,{style:at,className:null});return f.createElement("span",{style:Pe,className:T()(yn.props.className,"".concat(Nn,"-disabled-compatible-wrapper"))},wt)}return yn}var zn=f.forwardRef(function(yn,Nn){var jt,At=f.useContext(kt.b),Re=At.getPopupContainer,Ke=At.getPrefixCls,Pe=At.direction,at=f.useState(!!yn.visible||!!yn.defaultVisible),wt=A()(at,2),Rt=wt[0],xt=wt[1];f.useEffect(function(){"visible"in yn&&xt(yn.visible)},[yn.visible]);var Lt=function(){var _i=yn.title,Ze=yn.overlay;return!_i&&!Ze&&_i!==0},gr=function(_i){"visible"in yn||xt(Lt()?!1:_i),yn.onVisibleChange&&!Lt()&&yn.onVisibleChange(_i)},Br=function(){var _i=yn.builtinPlacements,Ze=yn.arrowPointAtCenter,we=yn.autoAdjustOverflow;return _i||ar({arrowPointAtCenter:Ze,autoAdjustOverflow:we})},Et=function(_i,Ze){var we=Br(),Ne=Object.keys(we).filter(function(We){return we[We].points[0]===Ze.points[0]&&we[We].points[1]===Ze.points[1]})[0];if(!Ne)return;var Fe=_i.getBoundingClientRect(),Ye={top:"50%",left:"50%"};Ne.indexOf("top")>=0||Ne.indexOf("Bottom")>=0?Ye.top="".concat(Fe.height-Ze.offset[1],"px"):(Ne.indexOf("Top")>=0||Ne.indexOf("bottom")>=0)&&(Ye.top="".concat(-Ze.offset[1],"px")),Ne.indexOf("left")>=0||Ne.indexOf("Right")>=0?Ye.left="".concat(Fe.width-Ze.offset[0],"px"):(Ne.indexOf("right")>=0||Ne.indexOf("Left")>=0)&&(Ye.left="".concat(-Ze.offset[0],"px")),_i.style.transformOrigin="".concat(Ye.left," ").concat(Ye.top)},it=function(){var _i=yn.title,Ze=yn.overlay;return _i===0?_i:Ze||_i||""},rt=yn.prefixCls,Pt=yn.openClassName,Ht=yn.getPopupContainer,bt=yn.getTooltipContainer,Gt=yn.overlayClassName,ut=yn.color,Kt=yn.overlayInnerStyle,Ar=yn.children,ir=Ke("tooltip",rt),pr=Rt;!("visible"in yn)&&Lt()&&(pr=!1);var tn=Sn(Object(Ut.b)(Ar)?Ar:f.createElement("span",null,Ar),ir),fn=tn.props,Mn=T()(fn.className,x()({},Pt||"".concat(ir,"-open"),!0)),Yn=T()(Gt,(jt={},x()(jt,"".concat(ir,"-rtl"),Pe==="rtl"),x()(jt,"".concat(ir,"-").concat(ut),ut&&on.test(ut)),jt)),si,vi;return ut&&!on.test(ut)&&(si=g()(g()({},Kt),{background:ut}),vi={background:ut}),f.createElement(Qe,g()({},yn,{prefixCls:ir,overlayClassName:Yn,getTooltipContainer:Ht||bt||Re,ref:Nn,builtinPlacements:Br(),overlay:it(),visible:pr,onVisibleChange:gr,onPopupAlign:Et,overlayInnerStyle:si,arrowContent:f.createElement("span",{className:"".concat(ir,"-arrow-content"),style:vi})}),pr?Object(Ut.a)(tn,{className:Mn}):tn)});zn.displayName="Tooltip",zn.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var Ii=k.a=zn},"3TkU":function(H,k,d){d("aTJb"),d("OlYY"),d("fc+c"),d("QUw5"),d("Swgg"),d("LBfv"),d("noeP")},"3X6L":function(H,k,d){var O=d("bYtY"),x=d("7a+S"),C=d("OKJ2"),A=x.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(A,C);var b=A;H.exports=b},"3e3G":function(H,k,d){var O=d("bYtY"),x=d("QuXc"),C=function(g,f,c,o,r){this.x=g==null?.5:g,this.y=f==null?.5:f,this.r=c==null?.5:c,this.type="radial",this.global=r||!1,x.call(this,o)};C.prototype={constructor:C},O.inherits(C,x);var A=C;H.exports=A},"3gBT":function(H,k){var d=2311;function O(){return d++}H.exports=O},"3hzK":function(H,k){var d={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}};H.exports=d},"3m61":function(H,k){function d(x){return x instanceof Array||(x=[x,x]),x}function O(x){x.eachSeriesByType("graph",function(C){var A=C.getGraph(),b=C.getEdgeData(),g=d(C.get("edgeSymbol")),f=d(C.get("edgeSymbolSize")),c="lineStyle.color".split("."),o="lineStyle.opacity".split(".");b.setVisual("fromSymbol",g&&g[0]),b.setVisual("toSymbol",g&&g[1]),b.setVisual("fromSymbolSize",f&&f[0]),b.setVisual("toSymbolSize",f&&f[1]),b.setVisual("color",C.get(c)),b.setVisual("opacity",C.get(o)),b.each(function(r){var i=b.getItemModel(r),n=A.getEdgeByIndex(r),e=d(i.getShallow("symbol",!0)),l=d(i.getShallow("symbolSize",!0)),t=i.get(c),a=i.get(o);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]),l[0]&&n.setVisual("fromSymbolSize",l[0]),l[1]&&n.setVisual("toSymbolSize",l[1]),n.setVisual("color",t),n.setVisual("opacity",a)})})}H.exports=O},"3ouR":function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="CloseSquareOutlined";var f=k.a=x.forwardRef(g)},"3y9D":function(H,k,d){(function(O,x){H.exports=k=x(d("Ib8C"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.WordArray,b=C.Hasher,g=x.algo,f=[],c=g.SHA1=b.extend({_doReset:function(){this._hash=new A.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(r,i){for(var n=this._hash.words,e=n[0],l=n[1],t=n[2],a=n[3],s=n[4],u=0;u<80;u++){if(u<16)f[u]=r[i+u]|0;else{var h=f[u-3]^f[u-8]^f[u-14]^f[u-16];f[u]=h<<1|h>>>31}var p=(e<<5|e>>>27)+s+f[u];u<20?p+=(l&t|~l&a)+1518500249:u<40?p+=(l^t^a)+1859775393:u<60?p+=(l&t|l&a|t&a)-1894007588:p+=(l^t^a)-899497514,s=a,a=t,t=l<<30|l>>>2,l=e,e=p}n[0]=n[0]+e|0,n[1]=n[1]+l|0,n[2]=n[2]+t|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0},_doFinalize:function(){var r=this._data,i=r.words,n=this._nDataBytes*8,e=r.sigBytes*8;return i[e>>>5]|=128<<24-e%32,i[(e+64>>>9<<4)+14]=Math.floor(n/4294967296),i[(e+64>>>9<<4)+15]=n,r.sigBytes=i.length*4,this._process(),this._hash},clone:function(){var r=b.clone.call(this);return r._hash=this._hash.clone(),r}});x.SHA1=b._createHelper(c),x.HmacSHA1=b._createHmacHelper(c)}(),O.SHA1})},"3zoK":function(H,k,d){var O=d("bYtY"),x=d("bLfw"),C=d("KCsZ"),A=d("nkfE"),b=d("OELB"),g=d("ICMv"),f=x.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(i){var n=this.activeIntervals=O.clone(i);if(n)for(var e=n.length-1;e>=0;e--)b.asc(n[e])},getActiveState:function(i){var n=this.activeIntervals;if(!n.length)return"normal";if(i==null||isNaN(i))return"inactive";if(n.length===1){var e=n[0];if(e[0]<=i&&i<=e[1])return"active"}else for(var l=0,t=n.length;l<t;l++)if(n[l][0]<=i&&i<=n[l][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(f.prototype,g);function o(i,n){return n.type||(n.data?"category":"value")}A("parallel",f,o,c);var r=f;H.exports=r},"49sm":function(H,k){var d={}.toString;H.exports=Array.isArray||function(O){return d.call(O)=="[object Array]"}},"4Feb":function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("IwbS"),b=d("x3X8"),g=b.getDefaultLabel,f=d("MwEJ"),c=d("nVfU"),o=c.getLayoutOnAxis,r=d("gPAo"),i=d("T4UG"),n=d("Qxkt"),e=d("6Ic6"),l=d("sK/D"),t=l.createClipPath,a=d("qj72"),s=d("ANjR"),u=d("MHtr"),h=d("6usn"),p=d("Rx6q"),m=A.CACHED_LABEL_STYLE_PROPERTIES,v=["itemStyle"],y=["emphasis","itemStyle"],E=["label"],T=["emphasis","label"],w="e\0\0",S={cartesian2d:a,geo:s,singleAxis:u,polar:h,calendar:p};i.extend({type:"series.custom",dependencies:["grid","polar","geo","singleAxis","calendar"],defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,useTransform:!0,clip:!1},getInitialData:function(ae,ve){return f(this.getSource(),this)},getDataParams:function(ae,ve,_e){var Ie=i.prototype.getDataParams.apply(this,arguments);return _e&&(Ie.info=_e.info),Ie}}),e.extend({type:"custom",_data:null,render:function(ae,ve,_e,Ie){var He=this._data,me=ae.getData(),ke=this.group,se=N(ae,me,ve,_e);me.diff(He).add(function(Ge){D(null,Ge,se(Ge,Ie),ae,ke,me)}).update(function(Ge,oe){var Y=He.getItemGraphicEl(oe);D(Y,Ge,se(Ge,Ie),ae,ke,me)}).remove(function(Ge){var oe=He.getItemGraphicEl(Ge);oe&&ke.remove(oe)}).execute();var te=ae.get("clip",!0)?t(ae.coordinateSystem,!1,ae):null;te?ke.setClipPath(te):ke.removeClipPath(),this._data=me},incrementalPrepareRender:function(ae,ve,_e){this.group.removeAll(),this._data=null},incrementalRender:function(ae,ve,_e,Ie,He){var me=ve.getData(),ke=N(ve,me,_e,Ie);function se(oe){oe.isGroup||(oe.incremental=!0,oe.useHoverLayer=!0)}for(var te=ae.start;te<ae.end;te++){var Ge=D(null,te,ke(te,He),ve,this.group,me);Ge.traverse(se)}},dispose:C.noop,filterForExposedEvent:function(ae,ve,_e,Ie){var He=ve.element;if(He==null||_e.name===He)return!0;for(;(_e=_e.parent)&&_e!==this.group;)if(_e.name===He)return!0;return!1}});function _(ae){var ve=ae.type,_e;if(ve==="path"){var Ie=ae.shape,He=Ie.width!=null&&Ie.height!=null?{x:Ie.x||0,y:Ie.y||0,width:Ie.width,height:Ie.height}:null,me=J(Ie);_e=A.makePath(me,null,He,Ie.layout||"center"),_e.__customPathData=me}else if(ve==="image")_e=new A.Image({}),_e.__customImagePath=ae.style.image;else if(ve==="text")_e=new A.Text({}),_e.__customText=ae.style.text;else if(ve==="group")_e=new A.Group;else{if(ve==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var ke=A.getShapeClass(ve);_e=new ke}return _e.__customGraphicType=ve,_e.name=ae.name,_e}function I(ae,ve,_e,Ie,He,me,ke){var se={},te=_e.style||{};if(_e.shape&&(se.shape=C.clone(_e.shape)),_e.position&&(se.position=_e.position.slice()),_e.scale&&(se.scale=_e.scale.slice()),_e.origin&&(se.origin=_e.origin.slice()),_e.rotation&&(se.rotation=_e.rotation),ae.type==="image"&&_e.style){var Ge=se.style={};C.each(["x","y","width","height"],function(G){L(G,Ge,te,ae.style,me)})}if(ae.type==="text"&&_e.style){var Ge=se.style={};C.each(["x","y"],function(Q){L(Q,Ge,te,ae.style,me)}),!te.hasOwnProperty("textFill")&&te.fill&&(te.textFill=te.fill),!te.hasOwnProperty("textStroke")&&te.stroke&&(te.textStroke=te.stroke)}if(ae.type!=="group"&&(ae.useStyle(te),me)){ae.style.opacity=0;var oe=te.opacity;oe==null&&(oe=1),A.initProps(ae,{style:{opacity:oe}},Ie,ve)}me?ae.attr(se):A.updateProps(ae,se,Ie,ve),_e.hasOwnProperty("z2")&&ae.attr("z2",_e.z2||0),_e.hasOwnProperty("silent")&&ae.attr("silent",_e.silent),_e.hasOwnProperty("invisible")&&ae.attr("invisible",_e.invisible),_e.hasOwnProperty("ignore")&&ae.attr("ignore",_e.ignore),_e.hasOwnProperty("info")&&ae.attr("info",_e.info);var Y=_e.styleEmphasis;A.setElementHoverStyle(ae,Y),ke&&A.setAsHighDownDispatcher(ae,Y!==!1)}function L(ae,ve,_e,Ie,He){_e[ae]!=null&&!He&&(ve[ae]=_e[ae],_e[ae]=Ie[ae])}function N(ae,ve,_e,Ie){var He=ae.get("renderItem"),me=ae.coordinateSystem,ke={};me&&(ke=me.prepareCustoms?me.prepareCustoms():S[me.type](me));var se=C.defaults({getWidth:Ie.getWidth,getHeight:Ie.getHeight,getZr:Ie.getZr,getDevicePixelRatio:Ie.getDevicePixelRatio,value:Te,style:Se,styleEmphasis:le,visual:fe,barLayout:Ee,currentSeriesIndices:Ve,font:vt},ke.api||{}),te={context:{},seriesId:ae.id,seriesName:ae.name,seriesIndex:ae.seriesIndex,coordSys:ke.coordSys,dataInsideLength:ve.count(),encode:R(ae.getData())},Ge,oe=!0,Y,G,Q,ye;return function(et,Oe){return Ge=et,oe=!0,He&&He(C.defaults({dataIndexInside:et,dataIndex:ve.getRawIndex(et),actionType:Oe?Oe.type:null},te),se)};function ce(et){et==null&&(et=Ge),oe&&(Y=ve.getItemModel(et),G=Y.getModel(E),Q=Y.getModel(T),ye=ve.getItemVisual(et,"color"),oe=!1)}function Te(et,Oe){return Oe==null&&(Oe=Ge),ve.get(ve.getDimension(et||0),Oe)}function Se(et,Oe){Oe==null&&(Oe=Ge),ce(Oe);var Tt=Y.getModel(v).getItemStyle();ye!=null&&(Tt.fill=ye);var Je=ve.getItemVisual(Oe,"opacity");Je!=null&&(Tt.opacity=Je);var St=et?W(et,G):G;return A.setTextStyle(Tt,St,null,{autoColor:ye,isRectText:!0}),Tt.text=St.getShallow("show")?C.retrieve2(ae.getFormattedLabel(Oe,"normal"),g(ve,Oe)):null,et&&V(Tt,et),Tt}function le(et,Oe){Oe==null&&(Oe=Ge),ce(Oe);var Tt=Y.getModel(y).getItemStyle(),Je=et?W(et,Q):Q;return A.setTextStyle(Tt,Je,null,{isRectText:!0},!0),Tt.text=Je.getShallow("show")?C.retrieve3(ae.getFormattedLabel(Oe,"emphasis"),ae.getFormattedLabel(Oe,"normal"),g(ve,Oe)):null,et&&V(Tt,et),Tt}function fe(et,Oe){return Oe==null&&(Oe=Ge),ve.getItemVisual(Oe,et)}function Ee(et){if(me.getBaseAxis){var Oe=me.getBaseAxis();return o(C.defaults({axis:Oe},et),Ie)}}function Ve(){return _e.getCurrentSeriesIndices()}function vt(et){return A.getFont(et,_e)}}function R(ae){var ve={};return C.each(ae.dimensions,function(_e,Ie){var He=ae.getDimensionInfo(_e);if(!He.isExtraCoord){var me=He.coordDim,ke=ve[me]=ve[me]||[];ke[He.coordDimIndex]=Ie}}),ve}function D(ae,ve,_e,Ie,He,me){return ae=F(ae,ve,_e,Ie,He,me,!0),ae&&me.setItemGraphicEl(ve,ae),ae}function F(ae,ve,_e,Ie,He,me,ke){var se=!_e;_e=_e||{};var te=_e.type,Ge=_e.shape,oe=_e.style;if(ae&&(se||te!=null&&te!==ae.__customGraphicType||te==="path"&&q(Ge)&&J(Ge)!==ae.__customPathData||te==="image"&&de(oe,"image")&&oe.image!==ae.__customImagePath||te==="text"&&de(Ge,"text")&&oe.text!==ae.__customText)&&(He.remove(ae),ae=null),se)return;var Y=!ae;return!ae&&(ae=_(_e)),I(ae,ve,_e,Ie,me,Y,ke),te==="group"&&M(ae,ve,_e,Ie,me),He.add(ae),ae}function M(ae,ve,_e,Ie,He){var me=_e.children,ke=me?me.length:0,se=_e.$mergeChildren,te=se==="byName"||_e.diffChildrenByName,Ge=se===!1;if(!ke&&!te&&!Ge)return;if(te){U({oldChildren:ae.children()||[],newChildren:me||[],dataIndex:ve,animatableModel:Ie,group:ae,data:He});return}Ge&&ae.removeAll();for(var oe=0;oe<ke;oe++)me[oe]&&F(ae.childAt(oe),ve,me[oe],Ie,ae,He)}function U(ae){new r(ae.oldChildren,ae.newChildren,B,B,ae).add(j).update(j).remove(z).execute()}function B(ae,ve){var _e=ae&&ae.name;return _e!=null?_e:w+ve}function j(ae,ve){var _e=this.context,Ie=ae!=null?_e.newChildren[ae]:null,He=ve!=null?_e.oldChildren[ve]:null;F(He,_e.dataIndex,Ie,_e.animatableModel,_e.group,_e.data)}function W(ae,ve){var _e=new n({},ve);return C.each(m,function(Ie,He){ae.hasOwnProperty(Ie)&&(_e.option[He]=ae[Ie])}),_e}function V(ae,ve){for(var _e in ve)(ve.hasOwnProperty(_e)||!m.hasOwnProperty(_e))&&(ae[_e]=ve[_e])}function z(ae){var ve=this.context,_e=ve.oldChildren[ae];_e&&ve.group.remove(_e)}function J(ae){return ae&&(ae.pathData||ae.d)}function q(ae){return ae&&(ae.hasOwnProperty("pathData")||ae.hasOwnProperty("d"))}function de(ae,ve){return ae&&ae.hasOwnProperty(ve)}},"4HMb":function(H,k,d){var O=d("bYtY"),x=d("6GrX"),C=d("4NO4"),A=C.makeInner,b=d("aX7z"),g=b.makeLabelFormatter,f=b.getOptionCategoryInterval,c=b.shouldShowAllLabels,o=A();function r(E){return E.type==="category"?n(E):t(E)}function i(E,T){return E.type==="category"?l(E,T):{ticks:E.scale.getTicks()}}function n(E){var T=E.getLabelModel(),w=e(E,T);return!T.get("show")||E.scale.isBlank()?{labels:[],labelCategoryInterval:w.labelCategoryInterval}:w}function e(E,T){var w=a(E,"labels"),S=f(T),_=s(w,S);if(_)return _;var I,L;return O.isFunction(S)?I=y(E,S):(L=S==="auto"?h(E):S,I=v(E,L)),u(w,S,{labels:I,labelCategoryInterval:L})}function l(E,T){var w=a(E,"ticks"),S=f(T),_=s(w,S);if(_)return _;var I,L;if((!T.get("show")||E.scale.isBlank())&&(I=[]),O.isFunction(S))I=y(E,S,!0);else if(S==="auto"){var N=e(E,E.getLabelModel());L=N.labelCategoryInterval,I=O.map(N.labels,function(R){return R.tickValue})}else L=S,I=v(E,L,!0);return u(w,S,{ticks:I,tickCategoryInterval:L})}function t(E){var T=E.scale.getTicks(),w=g(E);return{labels:O.map(T,function(S,_){return{formattedLabel:w(S,_),rawLabel:E.scale.getLabel(S),tickValue:S}})}}function a(E,T){return o(E)[T]||(o(E)[T]=[])}function s(E,T){for(var w=0;w<E.length;w++)if(E[w].key===T)return E[w].value}function u(E,T,w){return E.push({key:T,value:w}),w}function h(E){var T=o(E).autoInterval;return T!=null?T:o(E).autoInterval=E.calculateCategoryInterval()}function p(E){var T=m(E),w=g(E),S=(T.axisRotate-T.labelRotate)/180*Math.PI,_=E.scale,I=_.getExtent(),L=_.count();if(I[1]-I[0]<1)return 0;var N=1;L>40&&(N=Math.max(1,Math.floor(L/40)));for(var R=I[0],D=E.dataToCoord(R+1)-E.dataToCoord(R),F=Math.abs(D*Math.cos(S)),M=Math.abs(D*Math.sin(S)),U=0,B=0;R<=I[1];R+=N){var j=0,W=0,V=x.getBoundingRect(w(R),T.font,"center","top");j=V.width*1.3,W=V.height*1.3,U=Math.max(U,j,7),B=Math.max(B,W,7)}var z=U/F,J=B/M;isNaN(z)&&(z=Infinity),isNaN(J)&&(J=Infinity);var q=Math.max(0,Math.floor(Math.min(z,J))),de=o(E.model),ae=E.getExtent(),ve=de.lastAutoInterval,_e=de.lastTickCount;return ve!=null&&_e!=null&&Math.abs(ve-q)<=1&&Math.abs(_e-L)<=1&&ve>q&&de.axisExtend0===ae[0]&&de.axisExtend1===ae[1]?q=ve:(de.lastTickCount=L,de.lastAutoInterval=q,de.axisExtend0=ae[0],de.axisExtend1=ae[1]),q}function m(E){var T=E.getLabelModel();return{axisRotate:E.getRotate?E.getRotate():E.isHorizontal&&!E.isHorizontal()?90:0,labelRotate:T.get("rotate")||0,font:T.getFont()}}function v(E,T,w){var S=g(E),_=E.scale,I=_.getExtent(),L=E.getLabelModel(),N=[],R=Math.max((T||0)+1,1),D=I[0],F=_.count();D!==0&&R>1&&F/R>2&&(D=Math.round(Math.ceil(D/R)*R));var M=c(E),U=L.get("showMinLabel")||M,B=L.get("showMaxLabel")||M;U&&D!==I[0]&&W(I[0]);for(var j=D;j<=I[1];j+=R)W(j);B&&j-R!==I[1]&&W(I[1]);function W(V){N.push(w?V:{formattedLabel:S(V),rawLabel:_.getLabel(V),tickValue:V})}return N}function y(E,T,w){var S=E.scale,_=g(E),I=[];return O.each(S.getTicks(),function(L){var N=S.getLabel(L);T(L,N)&&I.push(w?L:{formattedLabel:_(L),rawLabel:N,tickValue:L})}),I}k.createAxisLabels=r,k.createAxisTicks=i,k.calculateCategoryInterval=p},"4NO4":function(H,k,d){var O=d("bYtY"),x=d("ItGF"),C=O.each,A=O.isObject,b=O.isArray,g="series\0";function f(w){return w instanceof Array?w:w==null?[]:[w]}function c(w,S,_){if(w){w[S]=w[S]||{},w.emphasis=w.emphasis||{},w.emphasis[S]=w.emphasis[S]||{};for(var I=0,L=_.length;I<L;I++){var N=_[I];!w.emphasis[S].hasOwnProperty(N)&&w[S].hasOwnProperty(N)&&(w.emphasis[S][N]=w[S][N])}}}var o=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function r(w){return A(w)&&!b(w)&&!(w instanceof Date)?w.value:w}function i(w){return A(w)&&!(w instanceof Array)}function n(w,S){S=(S||[]).slice();var _=O.map(w||[],function(I,L){return{exist:I}});return C(S,function(I,L){if(!A(I))return;for(var N=0;N<_.length;N++)if(!_[N].option&&I.id!=null&&_[N].exist.id===I.id+""){_[N].option=I,S[L]=null;return}for(var N=0;N<_.length;N++){var R=_[N].exist;if(!_[N].option&&(R.id==null||I.id==null)&&I.name!=null&&!t(I)&&!t(R)&&R.name===I.name+""){_[N].option=I,S[L]=null;return}}}),C(S,function(I,L){if(!A(I))return;for(var N=0;N<_.length;N++){var R=_[N].exist;if(!_[N].option&&!t(R)&&I.id==null){_[N].option=I;break}}N>=_.length&&_.push({option:I})}),_}function e(w){var S=O.createHashMap();C(w,function(_,I){var L=_.exist;L&&S.set(L.id,_)}),C(w,function(_,I){var L=_.option;O.assert(!L||L.id==null||!S.get(L.id)||S.get(L.id)===_,"id duplicates: "+(L&&L.id)),L&&L.id!=null&&S.set(L.id,_),!_.keyInfo&&(_.keyInfo={})}),C(w,function(_,I){var L=_.exist,N=_.option,R=_.keyInfo;if(!A(N))return;if(R.name=N.name!=null?N.name+"":L?L.name:g+I,L)R.id=L.id;else if(N.id!=null)R.id=N.id+"";else{var D=0;do R.id="\0"+R.name+"\0"+D++;while(S.get(R.id))}S.set(R.id,_)})}function l(w){var S=w.name;return!!(S&&S.indexOf(g))}function t(w){return A(w)&&w.id&&(w.id+"").indexOf("\0_ec_\0")===0}function a(w,S){var _={},I={};return L(w||[],_),L(S||[],I,_),[N(_),N(I)];function L(R,D,F){for(var M=0,U=R.length;M<U;M++)for(var B=R[M].seriesId,j=f(R[M].dataIndex),W=F&&F[B],V=0,z=j.length;V<z;V++){var J=j[V];W&&W[J]?W[J]=null:(D[B]||(D[B]={}))[J]=1}}function N(R,D){var F=[];for(var M in R)if(R.hasOwnProperty(M)&&R[M]!=null)if(D)F.push(+M);else{var U=N(R[M],!0);U.length&&F.push({seriesId:M,dataIndex:U})}return F}}function s(w,S){if(S.dataIndexInside!=null)return S.dataIndexInside;if(S.dataIndex!=null)return O.isArray(S.dataIndex)?O.map(S.dataIndex,function(_){return w.indexOfRawIndex(_)}):w.indexOfRawIndex(S.dataIndex);if(S.name!=null)return O.isArray(S.name)?O.map(S.name,function(_){return w.indexOfName(_)}):w.indexOfName(S.name)}function u(){var w="__\0ec_inner_"+h+++"_"+Math.random().toFixed(5);return function(S){return S[w]||(S[w]={})}}var h=0;function p(w,S,_){if(O.isString(S)){var I={};I[S+"Index"]=0,S=I}var L=_&&_.defaultMainType;L&&!m(S,L+"Index")&&!m(S,L+"Id")&&!m(S,L+"Name")&&(S[L+"Index"]=0);var N={};return C(S,function(R,D){var R=S[D];if(D==="dataIndex"||D==="dataIndexInside"){N[D]=R;return}var F=D.match(/^(\w+)(Index|Id|Name)$/)||[],M=F[1],U=(F[2]||"").toLowerCase();if(!M||!U||R==null||U==="index"&&R==="none"||_&&_.includeMainTypes&&O.indexOf(_.includeMainTypes,M)<0)return;var B={mainType:M};(U!=="index"||R!=="all")&&(B[U]=R);var j=w.queryComponents(B);N[M+"Models"]=j,N[M+"Model"]=j[0]}),N}function m(w,S){return w&&w.hasOwnProperty(S)}function v(w,S,_){w.setAttribute?w.setAttribute(S,_):w[S]=_}function y(w,S){return w.getAttribute?w.getAttribute(S):w[S]}function E(w){return w==="auto"?x.domSupported?"html":"richText":w||"html"}function T(w,S){var _=O.createHashMap(),I=[];return O.each(w,function(L){var N=S(L);(_.get(N)||(I.push(N),_.set(N,[]))).push(L)}),{keys:I,buckets:_}}k.normalizeToArray=f,k.defaultEmphasis=c,k.TEXT_STYLE_OPTIONS=o,k.getDataItemValue=r,k.isDataItemOption=i,k.mappingToExists=n,k.makeIdAndName=e,k.isNameSpecified=l,k.isIdInner=t,k.compressBatches=a,k.queryDataIndex=s,k.makeInner=u,k.parseFinder=p,k.setAttribute=v,k.getAttribute=y,k.getTooltipRenderMode=E,k.groupData=T},"4NgU":function(H,k,d){var O=d("Yl7c");function x(A){this._setting=A||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}x.prototype.parse=function(A){return A},x.prototype.getSetting=function(A){return this._setting[A]},x.prototype.contain=function(A){var b=this._extent;return A>=b[0]&&A<=b[1]},x.prototype.normalize=function(A){var b=this._extent;return b[1]===b[0]?.5:(A-b[0])/(b[1]-b[0])},x.prototype.scale=function(A){var b=this._extent;return A*(b[1]-b[0])+b[0]},x.prototype.unionExtent=function(A){var b=this._extent;A[0]<b[0]&&(b[0]=A[0]),A[1]>b[1]&&(b[1]=A[1])},x.prototype.unionExtentFromData=function(A,b){this.unionExtent(A.getApproximateExtent(b))},x.prototype.getExtent=function(){return this._extent.slice()},x.prototype.setExtent=function(A,b){var g=this._extent;isNaN(A)||(g[0]=A),isNaN(b)||(g[1]=b)},x.prototype.isBlank=function(){return this._isBlank},x.prototype.setBlank=function(A){this._isBlank=A},x.prototype.getLabel=null,O.enableClassExtend(x),O.enableClassManagement(x,{registerWhenExtend:!0});var C=x;H.exports=C},"4fz+":function(H,k,d){var O=d("bYtY"),x=d("1bdT"),C=d("mFDi"),A=function(f){f=f||{},x.call(this,f);for(var c in f)f.hasOwnProperty(c)&&(this[c]=f[c]);this._children=[],this.__storage=null,this.__dirty=!0};A.prototype={constructor:A,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(f){return this._children[f]},childOfName:function(f){for(var c=this._children,o=0;o<c.length;o++)if(c[o].name===f)return c[o]},childCount:function(){return this._children.length},add:function(f){return f&&f!==this&&f.parent!==this&&(this._children.push(f),this._doAdd(f)),this},addBefore:function(f,c){if(f&&f!==this&&f.parent!==this&&c&&c.parent===this){var o=this._children,r=o.indexOf(c);r>=0&&(o.splice(r,0,f),this._doAdd(f))}return this},_doAdd:function(f){f.parent&&f.parent.remove(f),f.parent=this;var c=this.__storage,o=this.__zr;c&&c!==f.__storage&&(c.addToStorage(f),f instanceof A&&f.addChildrenToStorage(c)),o&&o.refresh()},remove:function(f){var c=this.__zr,o=this.__storage,r=this._children,i=O.indexOf(r,f);return i<0?this:(r.splice(i,1),f.parent=null,o&&(o.delFromStorage(f),f instanceof A&&f.delChildrenFromStorage(o)),c&&c.refresh(),this)},removeAll:function(){var f=this._children,c=this.__storage,o,r;for(r=0;r<f.length;r++)o=f[r],c&&(c.delFromStorage(o),o instanceof A&&o.delChildrenFromStorage(c)),o.parent=null;return f.length=0,this},eachChild:function(f,c){for(var o=this._children,r=0;r<o.length;r++){var i=o[r];f.call(c,i,r)}return this},traverse:function(f,c){for(var o=0;o<this._children.length;o++){var r=this._children[o];f.call(c,r),r.type==="group"&&r.traverse(f,c)}return this},addChildrenToStorage:function(f){for(var c=0;c<this._children.length;c++){var o=this._children[c];f.addToStorage(o),o instanceof A&&o.addChildrenToStorage(f)}},delChildrenFromStorage:function(f){for(var c=0;c<this._children.length;c++){var o=this._children[c];f.delFromStorage(o),o instanceof A&&o.delChildrenFromStorage(f)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(f){for(var c=null,o=new C(0,0,0,0),r=f||this._children,i=[],n=0;n<r.length;n++){var e=r[n];if(e.ignore||e.invisible)continue;var l=e.getBoundingRect(),t=e.getLocalTransform(i);t?(o.copy(l),o.applyTransform(t),c=c||o.clone(),c.union(o)):(c=c||l.clone(),c.union(l))}return c||o}},O.inherits(A,x);var b=A;H.exports=b},"4i/N":function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="CloseOutlined";var f=k.a=x.forwardRef(g)},"4mN7":function(H,k,d){var O=d("QBsz"),x=d("Sj9i"),C=Math.min,A=Math.max,b=Math.sin,g=Math.cos,f=Math.PI*2,c=O.create(),o=O.create(),r=O.create();function i(u,h,p){if(u.length===0)return;var m=u[0],v=m[0],y=m[0],E=m[1],T=m[1],w;for(w=1;w<u.length;w++)m=u[w],v=C(v,m[0]),y=A(y,m[0]),E=C(E,m[1]),T=A(T,m[1]);h[0]=v,h[1]=E,p[0]=y,p[1]=T}function n(u,h,p,m,v,y){v[0]=C(u,p),v[1]=C(h,m),y[0]=A(u,p),y[1]=A(h,m)}var e=[],l=[];function t(u,h,p,m,v,y,E,T,w,S){var _=x.cubicExtrema,I=x.cubicAt,L,N=_(u,p,v,E,e);for(w[0]=Infinity,w[1]=Infinity,S[0]=-Infinity,S[1]=-Infinity,L=0;L<N;L++){var R=I(u,p,v,E,e[L]);w[0]=C(R,w[0]),S[0]=A(R,S[0])}for(N=_(h,m,y,T,l),L=0;L<N;L++){var D=I(h,m,y,T,l[L]);w[1]=C(D,w[1]),S[1]=A(D,S[1])}w[0]=C(u,w[0]),S[0]=A(u,S[0]),w[0]=C(E,w[0]),S[0]=A(E,S[0]),w[1]=C(h,w[1]),S[1]=A(h,S[1]),w[1]=C(T,w[1]),S[1]=A(T,S[1])}function a(u,h,p,m,v,y,E,T){var w=x.quadraticExtremum,S=x.quadraticAt,_=A(C(w(u,p,v),1),0),I=A(C(w(h,m,y),1),0),L=S(u,p,v,_),N=S(h,m,y,I);E[0]=C(u,v,L),E[1]=C(h,y,N),T[0]=A(u,v,L),T[1]=A(h,y,N)}function s(u,h,p,m,v,y,E,T,w){var S=O.min,_=O.max,I=Math.abs(v-y);if(I%f<1e-4&&I>1e-4){T[0]=u-p,T[1]=h-m,w[0]=u+p,w[1]=h+m;return}if(c[0]=g(v)*p+u,c[1]=b(v)*m+h,o[0]=g(y)*p+u,o[1]=b(y)*m+h,S(T,c,o),_(w,c,o),v=v%f,v<0&&(v=v+f),y=y%f,y<0&&(y=y+f),v>y&&!E?y+=f:v<y&&E&&(v+=f),E){var L=y;y=v,v=L}for(var N=0;N<y;N+=Math.PI/2)N>v&&(r[0]=g(N)*p+u,r[1]=b(N)*m+h,S(T,r,T),_(w,r,w))}k.fromPoints=i,k.fromLine=n,k.fromCubic=t,k.fromQuadratic=a,k.fromArc=s},"4vCz":function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("X2/X")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="PlusSquareOutlined";var c=A.forwardRef(f);k.default=c},"4xFK":function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},"56rv":function(H,k,d){var O=d("IwbS"),x=d("x3X8"),C=x.getDefaultLabel;function A(g,f,c,o,r,i,n){var e=c.getModel("label"),l=c.getModel("emphasis.label");O.setLabelStyle(g,f,e,l,{labelFetcher:r,labelDataIndex:i,defaultText:C(r.getData(),i),isRectText:!0,autoColor:o}),b(g),b(f)}function b(g,f){g.textPosition==="outside"&&(g.textPosition=f)}k.setLabel=A},"59Ip":function(H,k,d){var O=d("Sj9i");function x(C,A,b,g,f,c,o,r,i,n,e){if(i===0)return!1;var l=i;if(e>A+l&&e>g+l&&e>c+l&&e>r+l||e<A-l&&e<g-l&&e<c-l&&e<r-l||n>C+l&&n>b+l&&n>f+l&&n>o+l||n<C-l&&n<b-l&&n<f-l&&n<o-l)return!1;var t=O.cubicProjectPoint(C,A,b,g,f,c,o,r,n,e,null);return t<=l/2}k.containStroke=x},"5Dmo":function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("5YgA"),A=d.n(C)},"5GOC":function(H,k,d){"use strict";var O=d("cIOH"),x=d("b56q"),C=d("15/o")},"5GhG":function(H,k,d){var O=d("5GtS"),x=d("bYtY"),C=d("L0Ub"),A=C.getDimensionTypeByAxis,b=d("D5nY"),g=b.makeSeriesEncodeForAxisCoordSys,f={_baseAxisDim:null,getInitialData:function(c,o){var r,i=o.getComponent("xAxis",this.get("xAxisIndex")),n=o.getComponent("yAxis",this.get("yAxisIndex")),e=i.get("type"),l=n.get("type"),t;e==="category"?(c.layout="horizontal",r=i.getOrdinalMeta(),t=!0):l==="category"?(c.layout="vertical",r=n.getOrdinalMeta(),t=!0):c.layout=c.layout||"horizontal";var a=["x","y"],s=c.layout==="horizontal"?0:1,u=this._baseAxisDim=a[s],h=a[1-s],p=[i,n],m=p[s].get("type"),v=p[1-s].get("type"),y=c.data;if(y&&t){var E=[];x.each(y,function(S,_){var I;S.value&&x.isArray(S.value)?(I=S.value.slice(),S.value.unshift(_)):x.isArray(S)?(I=S.slice(),S.unshift(_)):I=S,E.push(I)}),c.data=E}var T=this.defaultValueDimensions,w=[{name:u,type:A(m),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:A(v),dimsDef:T.slice()}];return O(this,{coordDimensions:w,dimensionsCount:T.length+1,encodeDefaulter:x.curry(g,w,this)})},getBaseAxis:function(){var c=this._baseAxisDim;return this.ecModel.getComponent(c+"Axis",this.get(c+"AxisIndex")).axis}};k.seriesModelMixin=f},"5GtS":function(H,k,d){var O=d("sdST"),x=d("YXkt"),C=d("bYtY"),A=C.extend,b=C.isArray;function g(f,c,o){c=b(c)&&{coordDimensions:c}||A({},c);var r=f.getSource(),i=O(r,c),n=new x(i,f);return n.initData(r,o),n}H.exports=g},"5Hur":function(H,k,d){var O=d("4NO4"),x=O.makeInner,C=O.normalizeToArray,A=x();function b(f,c){for(var o=f.length,r=0;r<o;r++)if(f[r].length>c)return f[r];return f[o-1]}var g={clearColorPalette:function(){A(this).colorIdx=0,A(this).colorNameMap={}},getColorFromPalette:function(f,c,o){c=c||this;var r=A(c),i=r.colorIdx||0,n=r.colorNameMap=r.colorNameMap||{};if(n.hasOwnProperty(f))return n[f];var e=C(this.get("color",!0)),l=this.get("colorLayer",!0),t=o==null||!l?e:b(l,o);if(t=t||e,!t||!t.length)return;var a=t[i];return f&&(n[f]=a),r.colorIdx=(i+1)%t.length,a}};H.exports=g},"5NDa":function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("OnYD"),A=d.n(C),b=d("+L6B")},"5NHt":function(H,k,d){d("aTJb"),d("OlYY"),d("fc+c"),d("N5BQ"),d("IyUQ"),d("LBfv"),d("noeP")},"5OYt":function(H,k,d){"use strict";var O=d("J4zp"),x=d.n(O),C=d("q1tI"),A=d.n(C),b=d("ACnJ");function g(){var f=Object(C.useState)({}),c=x()(f,2),o=c[0],r=c[1];return Object(C.useEffect)(function(){var i=b.a.subscribe(function(n){r(n)});return function(){return b.a.unsubscribe(i)}},[]),o}k.a=g},"5RzL":function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),b=d("lwsE"),g=d.n(b),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),l=d.n(e),t=d("1OyB"),a=d("vuIU"),s=d("Ji7U"),u=d("LK+K"),h=d("KQm4"),p=d("U8pU"),m=d("ODXe"),v=d("VTBJ"),y=d("rePB"),E=d("Ff2n"),T={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ot){var yr=Ot.keyCode;if(Ot.altKey&&!Ot.ctrlKey||Ot.metaKey||yr>=T.F1&&yr<=T.F12)return!1;switch(yr){case T.ALT:case T.CAPS_LOCK:case T.CONTEXT_MENU:case T.CTRL:case T.DOWN:case T.END:case T.ESC:case T.HOME:case T.INSERT:case T.LEFT:case T.MAC_FF_META:case T.META:case T.NUMLOCK:case T.NUM_CENTER:case T.PAGE_DOWN:case T.PAGE_UP:case T.PAUSE:case T.PRINT_SCREEN:case T.RIGHT:case T.SHIFT:case T.UP:case T.WIN_KEY:case T.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ot){if(Ot>=T.ZERO&&Ot<=T.NINE)return!0;if(Ot>=T.NUM_ZERO&&Ot<=T.NUM_MULTIPLY)return!0;if(Ot>=T.A&&Ot<=T.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&Ot===0)return!0;switch(Ot){case T.SPACE:case T.QUESTION_MARK:case T.NUM_PLUS:case T.NUM_MINUS:case T.NUM_PERIOD:case T.NUM_DIVISION:case T.SEMICOLON:case T.DASH:case T.EQUALS:case T.COMMA:case T.PERIOD:case T.SLASH:case T.APOSTROPHE:case T.SINGLE_QUOTE:case T.OPEN_SQUARE_BRACKET:case T.BACKSLASH:case T.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},w=T,S=d("TSYQ"),_=d.n(S);function I(Jt){var Ot=e.useRef();Ot.current=Jt;var yr=e.useCallback(function(){for(var ft,qt=arguments.length,dr=new Array(qt),Nr=0;Nr<qt;Nr++)dr[Nr]=arguments[Nr];return(ft=Ot.current)===null||ft===void 0?void 0:ft.call.apply(ft,[Ot].concat(dr))},[]);return yr}function L(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var N=L()?e.useLayoutEffect:e.useEffect,R=N;function D(Jt){var Ot=e.useRef(!1),yr=e.useState(Jt),ft=Object(m.a)(yr,2),qt=ft[0],dr=ft[1];e.useEffect(function(){return Ot.current=!1,function(){Ot.current=!0}},[]);function Nr(Zr,pn){if(pn&&Ot.current)return;dr(Zr)}return[qt,Nr]}var F;(function(Jt){Jt[Jt.INNER=0]="INNER",Jt[Jt.PROP=1]="PROP"})(F||(F={}));var M=function(Ot,yr){var ft=e.useRef(!0);R(function(){if(!ft.current)return Ot()},yr),R(function(){return ft.current=!1,function(){ft.current=!0}},[])};function U(Jt){return Jt!==void 0}function B(Jt,Ot){var yr=Ot||{},ft=yr.defaultValue,qt=yr.value,dr=yr.onChange,Nr=yr.postState,Zr=D(function(){var ei=void 0,$e;return U(qt)?(ei=qt,$e=F.PROP):U(ft)?(ei=typeof ft=="function"?ft():ft,$e=F.PROP):(ei=typeof Jt=="function"?Jt():Jt,$e=F.INNER),[ei,$e,ei]}),pn=Object(m.a)(Zr,2),_n=pn[0],Dn=pn[1],Zn=U(qt)?qt:_n[0],ii=Nr?Nr(Zn):Zn;M(function(){Dn(function(ei){var $e=Object(m.a)(ei,1),Yt=$e[0];return[qt,F.PROP,Yt]})},[qt]);var pi=e.useRef(),ri=I(function(ei,$e){Dn(function(Yt){var vr=Object(m.a)(Yt,3),fr=vr[0],Xr=vr[1],Fr=vr[2],hr=typeof ei=="function"?ei(fr):ei;if(hr===fr)return Yt;var An=Xr===F.INNER&&pi.current!==Fr?Fr:fr;return[hr,F.INNER,An]},$e)}),ji=I(dr);return R(function(){var ei=Object(m.a)(_n,3),$e=ei[0],Yt=ei[1],vr=ei[2];$e!==vr&&Yt===F.INNER&&(ji($e,vr),pi.current=vr)},[_n]),[ii,ri]}var j=`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`,W=`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(j," ").concat(W).split(/[\s\n]+/),z="aria-",J="data-";function q(Jt,Ot){return Jt.indexOf(Ot)===0}function de(Jt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,yr;Ot===!1?yr={aria:!0,data:!0,attr:!0}:Ot===!0?yr={aria:!0}:yr=Object(v.a)({},Ot);var ft={};return Object.keys(Jt).forEach(function(qt){(yr.aria&&(qt==="role"||q(qt,z))||yr.data&&q(qt,J)||yr.attr&&V.includes(qt))&&(ft[qt]=Jt[qt])}),ft}var ae=d("8XRh"),ve=function(Ot){var yr=Ot.className,ft=Ot.customizeIcon,qt=Ot.customizeIconProps,dr=Ot.onMouseDown,Nr=Ot.onClick,Zr=Ot.children,pn;return typeof ft=="function"?pn=ft(qt):pn=ft,e.createElement("span",{className:yr,onMouseDown:function(Dn){Dn.preventDefault(),dr&&dr(Dn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Nr,"aria-hidden":!0},pn!==void 0?pn:e.createElement("span",{className:_()(yr.split(/\s+/).map(function(_n){return"".concat(_n,"-icon")}))},Zr))},_e=ve,Ie=d("TOwV");function He(Jt,Ot,yr){var ft=e.useRef({});return(!("value"in ft.current)||yr(ft.current.condition,Ot))&&(ft.current.value=Jt(),ft.current.condition=Ot),ft.current.value}function me(Jt,Ot){typeof Jt=="function"?Jt(Ot):Object(p.a)(Jt)==="object"&&Jt&&"current"in Jt&&(Jt.current=Ot)}function ke(){for(var Jt=arguments.length,Ot=new Array(Jt),yr=0;yr<Jt;yr++)Ot[yr]=arguments[yr];var ft=Ot.filter(function(qt){return qt});return ft.length<=1?ft[0]:function(qt){Ot.forEach(function(dr){me(dr,qt)})}}function se(){for(var Jt=arguments.length,Ot=new Array(Jt),yr=0;yr<Jt;yr++)Ot[yr]=arguments[yr];return He(function(){return ke.apply(void 0,Ot)},Ot,function(ft,qt){return ft.length===qt.length&&ft.every(function(dr,Nr){return dr===qt[Nr]})})}function te(Jt){var Ot,yr,ft=Object(Ie.isMemo)(Jt)?Jt.type.type:Jt.type;return typeof ft=="function"&&!((Ot=ft.prototype)===null||Ot===void 0?void 0:Ot.render)?!1:!(typeof Jt=="function"&&!((yr=Jt.prototype)===null||yr===void 0?void 0:yr.render))}var Ge=function(Ot,yr){var ft=Ot.prefixCls,qt=Ot.id,dr=Ot.inputElement,Nr=Ot.disabled,Zr=Ot.tabIndex,pn=Ot.autoFocus,_n=Ot.autoComplete,Dn=Ot.editable,Zn=Ot.accessibilityIndex,ii=Ot.value,pi=Ot.maxLength,ri=Ot.onKeyDown,ji=Ot.onMouseDown,ei=Ot.onChange,$e=Ot.onPaste,Yt=Ot.onCompositionStart,vr=Ot.onCompositionEnd,fr=Ot.open,Xr=Ot.attrs,Fr=dr||e.createElement("input",null),hr=Fr,An=hr.ref,br=hr.props,mn=br.onKeyDown,Kn=br.onChange,Wn=br.onMouseDown,Ln=br.onCompositionStart,$n=br.onCompositionEnd,Un=br.style;return Fr=e.cloneElement(Fr,Object(v.a)(Object(v.a)({id:qt,ref:ke(yr,An),disabled:Nr,tabIndex:Zr,autoComplete:_n||"off",type:"search",autoFocus:pn,className:"".concat(ft,"-selection-search-input"),style:Object(v.a)(Object(v.a)({},Un),{},{opacity:Dn?null:0}),role:"combobox","aria-expanded":fr,"aria-haspopup":"listbox","aria-owns":"".concat(qt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(qt,"_list"),"aria-activedescendant":"".concat(qt,"_list_").concat(Zn)},Xr),{},{value:Dn?ii:"",maxLength:pi,readOnly:!Dn,unselectable:Dn?null:"on",onKeyDown:function(Xn){ri(Xn),mn&&mn(Xn)},onMouseDown:function(Xn){ji(Xn),Wn&&Wn(Xn)},onChange:function(Xn){ei(Xn),Kn&&Kn(Xn)},onCompositionStart:function(Xn){Yt(Xn),Ln&&Ln(Xn)},onCompositionEnd:function(Xn){vr(Xn),$n&&$n(Xn)},onPaste:$e})),Fr},oe=e.forwardRef(Ge);oe.displayName="Input";var Y=oe;function G(Jt){return Array.isArray(Jt)?Jt:Jt!==void 0?[Jt]:[]}function Q(Jt,Ot){var yr=Ot.labelInValue,ft=Ot.combobox;if(Jt===void 0||Jt===""&&ft)return[];var qt=Array.isArray(Jt)?Jt:[Jt];return yr?qt.map(function(dr){var Nr=dr.key,Zr=dr.value;return Zr!==void 0?Zr:Nr}):qt}function ye(Jt,Ot){var yr=Ot.optionLabelProp,ft=Ot.labelInValue,qt=Ot.prevValue,dr=Ot.options,Nr=Ot.getLabeledValue,Zr=Jt;return ft&&(Zr=Zr.map(function(pn){return Nr(pn,{options:dr,prevValue:qt,labelInValue:ft,optionLabelProp:yr})})),Zr}function ce(Jt,Ot){var yr=Object(h.a)(Ot),ft;for(ft=Jt.length-1;ft>=0&&Jt[ft].disabled;ft-=1);var qt=null;return ft!==-1&&(qt=yr[ft],yr.splice(ft,1)),{values:yr,removedValue:qt}}var Te=typeof window!="undefined"&&window.document&&window.document.documentElement,Se=Te,le=0;function fe(){var Jt;return Se?(Jt=le,le+=1):Jt="TEST_OR_SSR",Jt}function Ee(Jt,Ot){Se?e.useLayoutEffect(Jt,Ot):e.useEffect(Jt,Ot)}var Ve="__RC_SELECT_MAX_REST_COUNT__",vt=function(Ot){var yr=Ot.id,ft=Ot.prefixCls,qt=Ot.values,dr=Ot.open,Nr=Ot.searchValue,Zr=Ot.inputRef,pn=Ot.placeholder,_n=Ot.disabled,Dn=Ot.mode,Zn=Ot.showSearch,ii=Ot.autoFocus,pi=Ot.autoComplete,ri=Ot.accessibilityIndex,ji=Ot.tabIndex,ei=Ot.removeIcon,$e=Ot.choiceTransitionName,Yt=Ot.maxTagCount,vr=Ot.maxTagTextLength,fr=Ot.maxTagPlaceholder,Xr=fr===void 0?function(ya){return"+ ".concat(ya.length," ...")}:fr,Fr=Ot.tagRender,hr=Ot.onSelect,An=Ot.onInputChange,br=Ot.onInputPaste,mn=Ot.onInputKeyDown,Kn=Ot.onInputMouseDown,Wn=Ot.onInputCompositionStart,Ln=Ot.onInputCompositionEnd,$n=Object(e.useState)(!1),Un=Object(m.a)($n,2),ti=Un[0],Xn=Un[1],wi=e.useRef(null),Ei=Object(e.useState)(0),Zi=Object(m.a)(Ei,2),ua=Zi[0],Xi=Zi[1],Gi=Object(e.useState)(!1),wa=Object(m.a)(Gi,2),na=wa[0],mo=wa[1];e.useEffect(function(){Xn(!0)},[]);var Ca=dr||Dn==="tags"?Nr:"",qi=Dn==="tags"||Zn&&(dr||na);Ee(function(){Xi(wi.current.scrollWidth)},[Ca]);var aa=qt,$i;typeof Yt=="number"&&($i=qt.length-Yt,aa=qt.slice(0,Yt)),typeof vr=="number"&&(aa=aa.map(function(ya){var Ha=ya.label,ta=Object(E.a)(ya,["label"]),ra=Ha;if(typeof Ha=="string"||typeof Ha=="number"){var _a=String(ra);_a.length>vr&&(ra="".concat(_a.slice(0,vr),"..."))}return Object(v.a)(Object(v.a)({},ta),{},{label:ra})})),$i>0&&aa.push({key:Ve,label:typeof Xr=="function"?Xr(qt.slice(Yt)):Xr});var Aa=e.createElement(ae.a,{component:!1,keys:aa,motionName:$e,motionAppear:ti},function(ya){var Ha=ya.key,ta=ya.label,ra=ya.value,_a=ya.disabled,Ka=ya.className,bo=ya.style,ga=Ha||ra,go=!_n&&Ha!==Ve&&!_a,Sa=function(No){No.preventDefault(),No.stopPropagation()},Va=function(No){No&&No.stopPropagation(),hr(ra,{selected:!1})};return typeof Fr=="function"?e.createElement("span",{key:ga,onMouseDown:Sa,className:Ka,style:bo},Fr({label:ta,value:ra,disabled:_a,closable:go,onClose:Va})):e.createElement("span",{key:ga,className:_()(Ka,"".concat(ft,"-selection-item"),Object(y.a)({},"".concat(ft,"-selection-item-disabled"),_a)),style:bo},e.createElement("span",{className:"".concat(ft,"-selection-item-content")},ta),go&&e.createElement(_e,{className:"".concat(ft,"-selection-item-remove"),onMouseDown:Sa,onClick:Va,customizeIcon:ei},"\xD7"))});return e.createElement(e.Fragment,null,Aa,e.createElement("span",{className:"".concat(ft,"-selection-search"),style:{width:ua},onFocus:function(){mo(!0)},onBlur:function(){mo(!1)}},e.createElement(Y,{ref:Zr,open:dr,prefixCls:ft,id:yr,inputElement:null,disabled:_n,autoFocus:ii,autoComplete:pi,editable:qi,accessibilityIndex:ri,value:Ca,onKeyDown:mn,onMouseDown:Kn,onChange:An,onPaste:br,onCompositionStart:Wn,onCompositionEnd:Ln,tabIndex:ji,attrs:de(Ot,!0)}),e.createElement("span",{ref:wi,className:"".concat(ft,"-selection-search-mirror"),"aria-hidden":!0},Ca,"\xA0")),!qt.length&&!Ca&&e.createElement("span",{className:"".concat(ft,"-selection-placeholder")},pn))},et=vt,Oe=function(Ot){var yr=Ot.inputElement,ft=Ot.prefixCls,qt=Ot.id,dr=Ot.inputRef,Nr=Ot.disabled,Zr=Ot.autoFocus,pn=Ot.autoComplete,_n=Ot.accessibilityIndex,Dn=Ot.mode,Zn=Ot.open,ii=Ot.values,pi=Ot.placeholder,ri=Ot.tabIndex,ji=Ot.showSearch,ei=Ot.searchValue,$e=Ot.activeValue,Yt=Ot.maxLength,vr=Ot.onInputKeyDown,fr=Ot.onInputMouseDown,Xr=Ot.onInputChange,Fr=Ot.onInputPaste,hr=Ot.onInputCompositionStart,An=Ot.onInputCompositionEnd,br=e.useState(!1),mn=Object(m.a)(br,2),Kn=mn[0],Wn=mn[1],Ln=Dn==="combobox",$n=Ln||ji,Un=ii[0],ti=ei||"";Ln&&$e&&!Kn&&(ti=$e),e.useEffect(function(){Ln&&Wn(!1)},[Ln,$e]);var Xn=Dn!=="combobox"&&!Zn?!1:!!ti,wi=Un&&(typeof Un.label=="string"||typeof Un.label=="number")?Un.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(ft,"-selection-search")},e.createElement(Y,{ref:dr,prefixCls:ft,id:qt,open:Zn,inputElement:yr,disabled:Nr,autoFocus:Zr,autoComplete:pn,editable:$n,accessibilityIndex:_n,value:ti,onKeyDown:vr,onMouseDown:fr,onChange:function(Zi){Wn(!0),Xr(Zi)},onPaste:Fr,onCompositionStart:hr,onCompositionEnd:An,tabIndex:ri,attrs:de(Ot,!0),maxLength:Ln?Yt:void 0})),!Ln&&Un&&!Xn&&e.createElement("span",{className:"".concat(ft,"-selection-item"),title:wi},Un.label),!Un&&!Xn&&e.createElement("span",{className:"".concat(ft,"-selection-placeholder")},pi))},Tt=Oe;function Je(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ot=e.useRef(null),yr=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(yr.current)}},[]);function ft(qt){(qt||Ot.current===null)&&(Ot.current=qt),window.clearTimeout(yr.current),yr.current=window.setTimeout(function(){Ot.current=null},Jt)}return[function(){return Ot.current},ft]}var St=function(Ot,yr){var ft=Object(e.useRef)(null),qt=Object(e.useRef)(!1),dr=Ot.prefixCls,Nr=Ot.multiple,Zr=Ot.open,pn=Ot.mode,_n=Ot.showSearch,Dn=Ot.tokenWithEnter,Zn=Ot.onSearch,ii=Ot.onSearchSubmit,pi=Ot.onToggleOpen,ri=Ot.onInputKeyDown,ji=Ot.domRef;e.useImperativeHandle(yr,function(){return{focus:function(){ft.current.focus()},blur:function(){ft.current.blur()}}});var ei=Je(0),$e=Object(m.a)(ei,2),Yt=$e[0],vr=$e[1],fr=function(Xn){var wi=Xn.which;(wi===w.UP||wi===w.DOWN)&&Xn.preventDefault(),ri&&ri(Xn),wi===w.ENTER&&pn==="tags"&&!qt.current&&!Zr&&ii(Xn.target.value),[w.SHIFT,w.TAB,w.BACKSPACE,w.ESC].includes(wi)||pi(!0)},Xr=function(){vr(!0)},Fr=Object(e.useRef)(null),hr=function(Xn){Zn(Xn,!0,qt.current)!==!1&&pi(!0)},An=function(){qt.current=!0},br=function(){qt.current=!1},mn=function(Xn){var wi=Xn.target.value;if(Dn&&Fr.current&&/[\r\n]/.test(Fr.current)){var Ei=Fr.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");wi=wi.replace(Ei,Fr.current)}Fr.current=null,hr(wi)},Kn=function(Xn){var wi=Xn.clipboardData,Ei=wi.getData("text");Fr.current=Ei},Wn=function(Xn){var wi=Xn.target;if(wi!==ft.current){var Ei=document.body.style.msTouchAction!==void 0;Ei?setTimeout(function(){ft.current.focus()}):ft.current.focus()}},Ln=function(Xn){var wi=Yt();Xn.target!==ft.current&&!wi&&Xn.preventDefault(),(pn!=="combobox"&&(!_n||!wi)||!Zr)&&(Zr&&Zn("",!0,!1),pi())},$n={inputRef:ft,onInputKeyDown:fr,onInputMouseDown:Xr,onInputChange:mn,onInputPaste:Kn,onInputCompositionStart:An,onInputCompositionEnd:br},Un=Nr?e.createElement(et,Object.assign({},Ot,$n)):e.createElement(Tt,Object.assign({},Ot,$n));return e.createElement("div",{ref:ji,className:"".concat(dr,"-selector"),onClick:Wn,onMouseDown:Ln},Un)},Mt=e.forwardRef(St);Mt.displayName="Selector";var er=Mt,It=d("uciX"),_t=function(Ot){var yr=typeof Ot!="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}}}},Xe=function(Ot,yr){var ft=Ot.prefixCls,qt=Ot.disabled,dr=Ot.visible,Nr=Ot.children,Zr=Ot.popupElement,pn=Ot.containerWidth,_n=Ot.animation,Dn=Ot.transitionName,Zn=Ot.dropdownStyle,ii=Ot.dropdownClassName,pi=Ot.direction,ri=pi===void 0?"ltr":pi,ji=Ot.dropdownMatchSelectWidth,ei=ji===void 0?!0:ji,$e=Ot.dropdownRender,Yt=Ot.dropdownAlign,vr=Ot.getPopupContainer,fr=Ot.empty,Xr=Ot.getTriggerDOMNode,Fr=Object(E.a)(Ot,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),hr="".concat(ft,"-dropdown"),An=Zr;$e&&(An=$e(Zr));var br=e.useMemo(function(){return _t(ei)},[ei]),mn=_n?"".concat(hr,"-").concat(_n):Dn,Kn=e.useRef(null);e.useImperativeHandle(yr,function(){return{getPopupElement:function(){return Kn.current}}});var Wn=Object(v.a)({minWidth:pn},Zn);return typeof ei=="number"?Wn.width=ei:ei&&(Wn.width=pn),e.createElement(It.a,Object.assign({},Fr,{showAction:[],hideAction:[],popupPlacement:ri==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:br,prefixCls:hr,popupTransitionName:mn,popup:e.createElement("div",{ref:Kn},An),popupAlign:Yt,popupVisible:dr,getPopupContainer:vr,popupClassName:_()(ii,Object(y.a)({},"".concat(hr,"-empty"),fr)),popupStyle:Wn,getTriggerDOMNode:Xr}),Nr)},ie=e.forwardRef(Xe);ie.displayName="SelectTrigger";var X=ie,Be="RC_SELECT_INTERNAL_PROPS_MARK";function Ce(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ot=e.useState(!1),yr=Object(m.a)(Ot,2),ft=yr[0],qt=yr[1],dr=e.useRef(null),Nr=function(){window.clearTimeout(dr.current)};e.useEffect(function(){return Nr},[]);var Zr=function(_n,Dn){Nr(),dr.current=window.setTimeout(function(){qt(_n),Dn&&Dn()},Jt)};return[ft,Zr,Nr]}var Z=d("T5bk"),nt={};function ct(Jt,Ot){}function Qe(Jt,Ot){}function dt(){nt={}}function Ft(Jt,Ot,yr){!Ot&&!nt[yr]&&(Jt(!1,yr),nt[yr]=!0)}function Lr(Jt,Ot){Ft(ct,Jt,Ot)}function Wt(Jt,Ot){Ft(Qe,Jt,Ot)}var ar=Lr;function Ut(Jt,Ot){var yr=Jt.key,ft;return"value"in Jt&&(ft=Jt.value),yr!=null?yr:ft!==void 0?ft:"rc-index-key-".concat(Ot)}function kt(Jt){var Ot=[];function yr(ft,qt){ft.forEach(function(dr){qt||!("options"in dr)?Ot.push({key:Ut(dr,Ot.length),groupOption:qt,data:dr}):(Ot.push({key:Ut(dr,Ot.length),group:!0,data:dr}),yr(dr.options,!0))})}return yr(Jt,!1),Ot}function st(Jt){var Ot=Object(v.a)({},Jt);return"props"in Ot||Object.defineProperty(Ot,"props",{get:function(){return ar(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ot}}),Ot}function Rr(Jt,Ot){var yr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ft=yr.prevValueOptions,qt=ft===void 0?[]:ft,dr=new Map;return Ot.forEach(function(Nr){if(!Nr.group){var Zr=Nr.data;dr.set(Zr.value,Zr)}}),Jt.map(function(Nr){var Zr=dr.get(Nr);return Zr||(Zr=Object(v.a)({},qt.find(function(pn){return pn._INTERNAL_OPTION_VALUE_===Nr}))),st(Zr)})}var on=function(Ot,yr){var ft=yr.options,qt=yr.prevValue,dr=yr.labelInValue,Nr=yr.optionLabelProp,Zr=Rr([Ot],ft)[0],pn={value:Ot},_n,Dn=G(qt);return dr&&(_n=Dn.find(function(Zn){return Object(p.a)(Zn)==="object"&&"value"in Zn?Zn.value===Ot:Zn.key===Ot})),_n&&Object(p.a)(_n)==="object"&&"label"in _n?(pn.label=_n.label,Zr&&typeof _n.label=="string"&&typeof Zr[Nr]=="string"&&_n.label.trim()!==Zr[Nr].trim()&&ar(!1,"`label` of `value` is not same as `label` in Select options.")):Zr&&Nr in Zr?pn.label=Zr[Nr]:pn.label=Ot,pn.key=pn.value,pn};function Sn(Jt){return G(Jt).join("")}function zn(Jt){return function(Ot,yr){var ft=Ot.toLowerCase();if("options"in yr)return Sn(yr.label).toLowerCase().includes(ft);var qt=yr[Jt],dr=Sn(qt).toLowerCase();return dr.includes(ft)}}function Ii(Jt,Ot,yr){var ft=yr.optionFilterProp,qt=yr.filterOption,dr=[],Nr;return qt===!1?Object(h.a)(Ot):(typeof qt=="function"?Nr=qt:Nr=zn(ft),Ot.forEach(function(Zr){if("options"in Zr){var pn=Nr(Jt,Zr);if(pn)dr.push(Zr);else{var _n=Zr.options.filter(function(Dn){return Nr(Jt,Dn)});_n.length&&dr.push(Object(v.a)(Object(v.a)({},Zr),{},{options:_n}))}return}Nr(Jt,st(Zr))&&dr.push(Zr)}),dr)}function yn(Jt,Ot){if(!Ot||!Ot.length)return null;var yr=!1;function ft(dr,Nr){var Zr=Object(Z.a)(Nr),pn=Zr[0],_n=Zr.slice(1);if(!pn)return[dr];var Dn=dr.split(pn);return yr=yr||Dn.length>1,Dn.reduce(function(Zn,ii){return[].concat(Object(h.a)(Zn),Object(h.a)(ft(ii,_n)))},[]).filter(function(Zn){return Zn})}var qt=ft(Jt,Ot);return yr?qt:null}function Nn(Jt,Ot){var yr=Rr([Jt],Ot)[0];return yr.disabled}function jt(Jt,Ot,yr,ft){var qt=G(Ot).slice().sort(),dr=Object(h.a)(Jt),Nr=new Set;return Jt.forEach(function(Zr){Zr.options?Zr.options.forEach(function(pn){Nr.add(pn.value)}):Nr.add(Zr.value)}),qt.forEach(function(Zr){var pn=ft?Zr.value:Zr;if(!Nr.has(pn)){var _n;dr.push(ft?(_n={},Object(y.a)(_n,yr,Zr.label),Object(y.a)(_n,"value",pn),_n):{value:pn})}}),dr}function At(Jt,Ot,yr){var ft=e.useRef(null);ft.current={elements:Jt.filter(function(qt){return qt}),open:Ot,triggerOpen:yr},e.useEffect(function(){function qt(dr){var Nr=dr.target;ft.current.open&&ft.current.elements.every(function(Zr){return!Zr.contains(Nr)&&Zr!==Nr})&&ft.current.triggerOpen(!1)}return window.addEventListener("mousedown",qt),function(){return window.removeEventListener("mousedown",qt)}},[])}function Re(Jt){var Ot=e.useRef(Jt),yr=e.useMemo(function(){var ft=new Map;Ot.current.forEach(function(dr){var Nr=dr.value,Zr=dr.label;Nr!==Zr&&ft.set(Nr,Zr)});var qt=Jt.map(function(dr){var Nr=ft.get(dr.value);return dr.value===dr.label&&Nr?Object(v.a)(Object(v.a)({},dr),{},{label:Nr}):dr});return Ot.current=qt,qt},[Jt]);return yr}function Ke(Jt,Ot){var yr=e.useRef(null),ft=e.useMemo(function(){var dr=new Map;return Ot.forEach(function(Nr){var Zr=Nr.data.value;dr.set(Zr,Nr)}),dr},[Jt,Ot]);yr.current=ft;var qt=function(Nr){return Nr.map(function(Zr){return yr.current.get(Zr)}).filter(Boolean)};return qt}var Pe=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function at(Jt){var Ot=Jt.prefixCls,yr=Jt.components.optionList,ft=Jt.convertChildrenToData,qt=Jt.flattenOptions,dr=Jt.getLabeledValue,Nr=Jt.filterOptions,Zr=Jt.isValueDisabled,pn=Jt.findValueOption,_n=Jt.warningProps,Dn=Jt.fillOptionsWithMissingValue,Zn=Jt.omitDOMProps;function ii(ri,ji){var ei,$e=ri.prefixCls,Yt=$e===void 0?Ot:$e,vr=ri.className,fr=ri.id,Xr=ri.open,Fr=ri.defaultOpen,hr=ri.options,An=ri.children,br=ri.mode,mn=ri.value,Kn=ri.defaultValue,Wn=ri.labelInValue,Ln=ri.showSearch,$n=ri.inputValue,Un=ri.searchValue,ti=ri.filterOption,Xn=ri.filterSort,wi=ri.optionFilterProp,Ei=wi===void 0?"value":wi,Zi=ri.autoClearSearchValue,ua=Zi===void 0?!0:Zi,Xi=ri.onSearch,Gi=ri.allowClear,wa=ri.clearIcon,na=ri.showArrow,mo=ri.inputIcon,Ca=ri.menuItemSelectedIcon,qi=ri.disabled,aa=ri.loading,$i=ri.defaultActiveFirstOption,Aa=ri.notFoundContent,ya=Aa===void 0?"Not Found":Aa,Ha=ri.optionLabelProp,ta=ri.backfill,ra=ri.getInputElement,_a=ri.getPopupContainer,Ka=ri.listHeight,bo=Ka===void 0?200:Ka,ga=ri.listItemHeight,go=ga===void 0?20:ga,Sa=ri.animation,Va=ri.transitionName,uo=ri.virtual,No=ri.dropdownStyle,Po=ri.dropdownClassName,to=ri.dropdownMatchSelectWidth,Uo=ri.dropdownRender,co=ri.dropdownAlign,fa=ri.showAction,ro=fa===void 0?[]:fa,Wa=ri.direction,Ea=ri.tokenSeparators,Jr=ri.tagRender,za=ri.onPopupScroll,rs=ri.onDropdownVisibleChange,Vo=ri.onFocus,Go=ri.onBlur,Qo=ri.onKeyUp,Yo=ri.onKeyDown,vo=ri.onMouseDown,Io=ri.onChange,zo=ri.onSelect,Fa=ri.onDeselect,Ja=ri.onClear,ho=ri.internalProps,Ao=ho===void 0?{}:ho,$o=Object(E.a)(ri,["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"]),ps=Ao.mark===Be,is=Zn?Zn($o):$o;Pe.forEach(function(jo){delete is[jo]});var Za=Object(e.useRef)(null),Ct=Object(e.useRef)(null),Bt=Object(e.useRef)(null),Wr=Object(e.useRef)(null),Pn=Object(e.useMemo)(function(){return(Ea||[]).some(function(jo){return[`
`,`\r
`].includes(jo)})},[Ea]),ht=Ce(),ne=Object(m.a)(ht,3),pe=ne[0],be=ne[1],Ue=ne[2],pt=Object(e.useState)(),Xt=Object(m.a)(pt,2),Or=Xt[0],Qr=Xt[1];Object(e.useEffect)(function(){Qr("rc_select_".concat(fe()))},[]);var dn=fr||Or,jn=Ha;jn===void 0&&(jn=hr?"label":"children");var ai=br==="combobox"?!1:Wn,Qn=br==="tags"||br==="multiple",Di=Ln!==void 0?Ln:Qn||br==="combobox",Vi=Object(e.useRef)(null);e.useImperativeHandle(ji,function(){return{focus:Bt.current.focus,blur:Bt.current.blur}});var Ta=B(Kn,{value:mn}),Ga=Object(m.a)(Ta,2),ao=Ga[0],Do=Ga[1],fo=Object(e.useMemo)(function(){return Q(ao,{labelInValue:ai,combobox:br==="combobox"})},[ao,ai]),as=Object(e.useMemo)(function(){return new Set(fo)},[fo]),io=Object(e.useState)(null),Xa=Object(m.a)(io,2),Ya=Xa[0],ka=Xa[1],os=Object(e.useState)(""),Es=Object(m.a)(os,2),qo=Es[0],pa=Es[1],ls=qo;br==="combobox"&&ao!==void 0?ls=ao:Un!==void 0?ls=Un:$n&&(ls=$n);var Os=Object(e.useMemo)(function(){var jo=hr;return jo===void 0&&(jo=ft(An)),br==="tags"&&Dn&&(jo=Dn(jo,ao,jn,Wn)),jo||[]},[hr,An,br,ao]),ys=Object(e.useMemo)(function(){return qt(Os,ri)},[Os]),ms=Ke(fo,ys),ws=Object(e.useMemo)(function(){if(!ls||!Di)return Object(h.a)(Os);var jo=Nr(ls,Os,{optionFilterProp:Ei,filterOption:br==="combobox"&&ti===void 0?function(){return!0}:ti});return br==="tags"&&jo.every(function(Ho){return Ho[Ei]!==ls})&&jo.unshift({value:ls,label:ls,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),Xn&&Array.isArray(jo)?Object(h.a)(jo).sort(Xn):jo},[Os,ls,br,Di,Xn]),Pl=Object(e.useMemo)(function(){return qt(ws,ri)},[ws]);Object(e.useEffect)(function(){Wr.current&&Wr.current.scrollTo&&Wr.current.scrollTo(0)},[ls]);var ml=Object(e.useMemo)(function(){var jo=fo.map(function(Ho){var us=ms([Ho]),cs=dr(Ho,{options:us,prevValue:ao,labelInValue:ai,optionLabelProp:jn});return Object(v.a)(Object(v.a)({},cs),{},{disabled:Zr(Ho,us)})});return!br&&jo.length===1&&jo[0].value===null&&jo[0].label===null?[]:jo},[ao,Os,br]);ml=Re(ml);var Ws=function(Ho,us,cs){var Cs=ms([Ho]),ds=pn([Ho],Cs)[0];if(!Ao.skipTriggerSelect){var Js=ai?dr(Ho,{options:Cs,prevValue:ao,labelInValue:ai,optionLabelProp:jn}):Ho;us&&zo?zo(Js,ds):!us&&Fa&&Fa(Js,ds)}ps&&(us&&Ao.onRawSelect?Ao.onRawSelect(Ho,ds,cs):!us&&Ao.onRawDeselect&&Ao.onRawDeselect(Ho,ds,cs))},fs=Object(e.useState)([]),_s=Object(m.a)(fs,2),gl=_s[0],Bs=_s[1],Us=function(Ho){if(ps&&Ao.skipTriggerChange)return;var us=ms(Ho),cs=ye(Array.from(Ho),{labelInValue:ai,options:us,getLabeledValue:dr,prevValue:ao,optionLabelProp:jn}),Cs=Qn?cs:cs[0];if(Io&&(fo.length!==0||cs.length!==0)){var ds=pn(Ho,us,{prevValueOptions:gl});Bs(ds.map(function(Js,ss){var Is=Object(v.a)({},Js);return Object.defineProperty(Is,"_INTERNAL_OPTION_VALUE_",{get:function(){return Ho[ss]}}),Is})),Io(Cs,Qn?ds:ds[0])}Do(Cs)},Qs=function(Ho,us){var cs=us.selected,Cs=us.source;if(qi)return;var ds;Qn?(ds=new Set(fo),cs?ds.add(Ho):ds.delete(Ho)):(ds=new Set,ds.add(Ho)),(Qn||!Qn&&Array.from(fo)[0]!==Ho)&&Us(Array.from(ds)),Ws(Ho,!Qn||cs,Cs),br==="combobox"?(pa(String(Ho)),ka("")):(!Qn||ua)&&(pa(""),ka(""))},al=function(Ho,us){Qs(Ho,Object(v.a)(Object(v.a)({},us),{},{source:"option"}))},El=function(Ho,us){Qs(Ho,Object(v.a)(Object(v.a)({},us),{},{source:"selection"}))},bl=br==="combobox"&&ra&&ra()||null,ol=B(void 0,{defaultValue:Fr,value:Xr}),Gs=Object(m.a)(ol,2),zs=Gs[0],vl=Gs[1],Xs=zs,sl=!ya&&!ws.length;(qi||sl&&Xs&&br==="combobox")&&(Xs=!1);var dl=sl?!1:Xs,rl=function(Ho){var us=Ho!==void 0?Ho:!Xs;zs!==us&&!qi&&(vl(us),rs&&rs(us))};At([Za.current,Ct.current&&Ct.current.getPopupElement()],dl,rl);var nl=function(Ho,us,cs){var Cs=!0,ds=Ho;ka(null);var Js=cs?null:yn(Ho,Ea),ss=Js;if(br==="combobox")us&&Us([ds]);else if(Js){ds="",br!=="tags"&&(ss=Js.map(function(Al){var lu=ys.find(function(uu){var Yl=uu.data;return Yl[jn]===Al});return lu?lu.data.value:null}).filter(function(Al){return Al!==null}));var Is=Array.from(new Set([].concat(Object(h.a)(fo),Object(h.a)(ss))));Us(Is),Is.forEach(function(Al){Ws(Al,!0,"input")}),rl(!1),Cs=!1}return pa(ds),Xi&&ls!==ds&&Xi(ds),Cs},Tl=function(Ho){var us=Array.from(new Set([].concat(Object(h.a)(fo),[Ho])));Us(us),us.forEach(function(cs){Ws(cs,!0,"input")}),pa("")};Object(e.useEffect)(function(){zs&&!!qi&&vl(!1)},[qi]),Object(e.useEffect)(function(){!Xs&&!Qn&&br!=="combobox"&&nl("",!1,!1)},[Xs]);var Rs=Je(),bs=Object(m.a)(Rs,2),Ms=bs[0],Ts=bs[1],Zs=function(Ho){var us=Ms(),cs=Ho.which;if(!Xs&&cs===w.ENTER&&rl(!0),Ts(!!ls),cs===w.BACKSPACE&&!us&&Qn&&!ls&&fo.length){var Cs=ce(ml,fo);Cs.removedValue!==null&&(Us(Cs.values),Ws(Cs.removedValue,!1,"input"))}for(var ds=arguments.length,Js=new Array(ds>1?ds-1:0),ss=1;ss<ds;ss++)Js[ss-1]=arguments[ss];if(Xs&&Wr.current){var Is;(Is=Wr.current).onKeyDown.apply(Is,[Ho].concat(Js))}Yo&&Yo.apply(void 0,[Ho].concat(Js))},hl=function(Ho){for(var us=arguments.length,cs=new Array(us>1?us-1:0),Cs=1;Cs<us;Cs++)cs[Cs-1]=arguments[Cs];if(Xs&&Wr.current){var ds;(ds=Wr.current).onKeyUp.apply(ds,[Ho].concat(cs))}Qo&&Qo.apply(void 0,[Ho].concat(cs))},wl=Object(e.useRef)(!1),Kl=function(){be(!0),qi||(Vo&&!wl.current&&Vo.apply(void 0,arguments),ro.includes("focus")&&rl(!0)),wl.current=!0},il=function(){if(be(!1,function(){wl.current=!1,rl(!1)}),qi)return;ls&&(br==="tags"?(nl("",!1,!1),Us(Array.from(new Set([].concat(Object(h.a)(fo),[ls]))))):br==="multiple"&&pa("")),Go&&Go.apply(void 0,arguments)},fl=[];Object(e.useEffect)(function(){return function(){fl.forEach(function(jo){return clearTimeout(jo)}),fl.splice(0,fl.length)}},[]);var kl=function(Ho){var us=Ho.target,cs=Ct.current&&Ct.current.getPopupElement();if(cs&&cs.contains(us)){var Cs=setTimeout(function(){var Is=fl.indexOf(Cs);Is!==-1&&fl.splice(Is,1),Ue(),cs.contains(document.activeElement)||Bt.current.focus()});fl.push(Cs)}if(vo){for(var ds=arguments.length,Js=new Array(ds>1?ds-1:0),ss=1;ss<ds;ss++)Js[ss-1]=arguments[ss];vo.apply(void 0,[Ho].concat(Js))}},gu=Object(e.useState)(0),Jl=Object(m.a)(gu,2),Zl=Jl[0],$l=Jl[1],Gl=$i!==void 0?$i:br!=="combobox",$s=function(Ho,us){var cs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Cs=cs.source,ds=Cs===void 0?"keyboard":Cs;$l(us),ta&&br==="combobox"&&Ho!==null&&ds==="keyboard"&&ka(String(Ho))},ll=Object(e.useState)(null),pl=Object(m.a)(ll,2),Nl=pl[0],ou=pl[1],ql=Object(e.useState)({}),eu=Object(m.a)(ql,2),el=eu[1];function tu(){el({})}Ee(function(){if(dl){var jo=Math.ceil(Za.current.offsetWidth);Nl!==jo&&ou(jo)}},[dl]);var ru=e.createElement(yr,{ref:Wr,prefixCls:Yt,id:dn,open:Xs,childrenAsData:!hr,options:ws,flattenOptions:Pl,multiple:Qn,values:as,height:bo,itemHeight:go,onSelect:al,onToggleOpen:rl,onActiveValue:$s,defaultActiveFirstOption:Gl,notFoundContent:ya,onScroll:za,searchValue:ls,menuItemSelectedIcon:Ca,virtual:uo!==!1&&to!==!1,onMouseEnter:tu}),su,Cl=function(){ps&&Ao.onClear&&Ao.onClear(),Ja&&Ja(),Us([]),nl("",!1,!1)};!qi&&Gi&&(fo.length||ls)&&(su=e.createElement(_e,{className:"".concat(Yt,"-clear"),onMouseDown:Cl,customizeIcon:wa},"\xD7"));var Dl=na!==void 0?na:aa||!Qn&&br!=="combobox",Fl;Dl&&(Fl=e.createElement(_e,{className:_()("".concat(Yt,"-arrow"),Object(y.a)({},"".concat(Yt,"-arrow-loading"),aa)),customizeIcon:mo,customizeIconProps:{loading:aa,searchValue:ls,open:Xs,focused:pe,showSearch:Di}}));var Xl=_()(Yt,vr,(ei={},Object(y.a)(ei,"".concat(Yt,"-focused"),pe),Object(y.a)(ei,"".concat(Yt,"-multiple"),Qn),Object(y.a)(ei,"".concat(Yt,"-single"),!Qn),Object(y.a)(ei,"".concat(Yt,"-allow-clear"),Gi),Object(y.a)(ei,"".concat(Yt,"-show-arrow"),Dl),Object(y.a)(ei,"".concat(Yt,"-disabled"),qi),Object(y.a)(ei,"".concat(Yt,"-loading"),aa),Object(y.a)(ei,"".concat(Yt,"-open"),Xs),Object(y.a)(ei,"".concat(Yt,"-customize-input"),bl),Object(y.a)(ei,"".concat(Yt,"-show-search"),Di),ei));return e.createElement("div",Object.assign({className:Xl},is,{ref:Za,onMouseDown:kl,onKeyDown:Zs,onKeyUp:hl,onFocus:Kl,onBlur:il}),pe&&!Xs&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(fo.join(", "))),e.createElement(X,{ref:Ct,disabled:qi,prefixCls:Yt,visible:dl,popupElement:ru,containerWidth:Nl,animation:Sa,transitionName:Va,dropdownStyle:No,dropdownClassName:Po,direction:Wa,dropdownMatchSelectWidth:to,dropdownRender:Uo,dropdownAlign:co,getPopupContainer:_a,empty:!Os.length,getTriggerDOMNode:function(){return Vi.current}},e.createElement(er,Object.assign({},ri,{domRef:Vi,prefixCls:Yt,inputElement:bl,ref:Bt,id:dn,showSearch:Di,mode:br,accessibilityIndex:Zl,multiple:Qn,tagRender:Jr,values:ml,open:Xs,onToggleOpen:rl,searchValue:ls,activeValue:Ya,onSearch:nl,onSearchSubmit:Tl,onSelect:El,tokenWithEnter:Pn}))),Fl,su)}var pi=e.forwardRef(ii);return pi}function wt(Jt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yr=[];return l.a.Children.forEach(Jt,function(ft){if(ft==null&&!Ot.keepEmpty)return;Array.isArray(ft)?yr=yr.concat(wt(ft)):Object(Ie.isFragment)(ft)&&ft.props?yr=yr.concat(wt(ft.props.children,Ot)):yr.push(ft)}),yr}var Rt={};function xt(Jt,Ot){}function Lt(Jt,Ot){}function gr(){Rt={}}function Br(Jt,Ot,yr){!Ot&&!Rt[yr]&&(Jt(!1,yr),Rt[yr]=!0)}function Et(Jt,Ot){Br(xt,Jt,Ot)}function it(Jt,Ot){Br(Lt,Jt,Ot)}var rt=Et,Pt=d("JX7q"),Ht=e.createContext(null),bt=function(Ot){var yr=Ot.prefixCls,ft=Ot.level,qt=Ot.isStart,dr=Ot.isEnd;if(!ft)return null;for(var Nr="".concat(yr,"-indent-unit"),Zr=[],pn=0;pn<ft;pn+=1){var _n;Zr.push(e.createElement("span",{key:pn,className:_()(Nr,(_n={},Object(y.a)(_n,"".concat(Nr,"-start"),qt[pn]),Object(y.a)(_n,"".concat(Nr,"-end"),dr[pn]),_n))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(yr,"-indent")},Zr)},Gt=bt,ut="open",Kt="close",Ar="---",ir=function(Jt){Object(s.a)(yr,Jt);var Ot=Object(u.a)(yr);function yr(){var ft;return Object(t.a)(this,yr),ft=Ot.apply(this,arguments),ft.state={dragNodeHighlight:!1},ft.onSelectorClick=function(qt){var dr=ft.props.context.onNodeClick;dr(qt,sr(ft.props)),ft.isSelectable()?ft.onSelect(qt):ft.onCheck(qt)},ft.onSelectorDoubleClick=function(qt){var dr=ft.props.context.onNodeDoubleClick;dr(qt,sr(ft.props))},ft.onSelect=function(qt){if(ft.isDisabled())return;var dr=ft.props.context.onNodeSelect;qt.preventDefault(),dr(qt,sr(ft.props))},ft.onCheck=function(qt){if(ft.isDisabled())return;var dr=ft.props,Nr=dr.disableCheckbox,Zr=dr.checked,pn=ft.props.context.onNodeCheck;if(!ft.isCheckable()||Nr)return;qt.preventDefault();var _n=!Zr;pn(qt,sr(ft.props),_n)},ft.onMouseEnter=function(qt){var dr=ft.props.context.onNodeMouseEnter;dr(qt,sr(ft.props))},ft.onMouseLeave=function(qt){var dr=ft.props.context.onNodeMouseLeave;dr(qt,sr(ft.props))},ft.onContextMenu=function(qt){var dr=ft.props.context.onNodeContextMenu;dr(qt,sr(ft.props))},ft.onDragStart=function(qt){var dr=ft.props.context.onNodeDragStart;qt.stopPropagation(),ft.setState({dragNodeHighlight:!0}),dr(qt,Object(Pt.a)(ft));try{qt.dataTransfer.setData("text/plain","")}catch(Nr){}},ft.onDragEnter=function(qt){var dr=ft.props.context.onNodeDragEnter;qt.preventDefault(),qt.stopPropagation(),dr(qt,Object(Pt.a)(ft))},ft.onDragOver=function(qt){var dr=ft.props.context.onNodeDragOver;qt.preventDefault(),qt.stopPropagation(),dr(qt,Object(Pt.a)(ft))},ft.onDragLeave=function(qt){var dr=ft.props.context.onNodeDragLeave;qt.stopPropagation(),dr(qt,Object(Pt.a)(ft))},ft.onDragEnd=function(qt){var dr=ft.props.context.onNodeDragEnd;qt.stopPropagation(),ft.setState({dragNodeHighlight:!1}),dr(qt,Object(Pt.a)(ft))},ft.onDrop=function(qt){var dr=ft.props.context.onNodeDrop;qt.preventDefault(),qt.stopPropagation(),ft.setState({dragNodeHighlight:!1}),dr(qt,Object(Pt.a)(ft))},ft.onExpand=function(qt){var dr=ft.props.context.onNodeExpand;dr(qt,sr(ft.props))},ft.setSelectHandle=function(qt){ft.selectHandle=qt},ft.getNodeState=function(){var qt=ft.props.expanded;return ft.isLeaf()?null:qt?ut:Kt},ft.hasChildren=function(){var qt=ft.props.eventKey,dr=ft.props.context.keyEntities,Nr=dr[qt]||{},Zr=Nr.children;return!!(Zr||[]).length},ft.isLeaf=function(){var qt=ft.props,dr=qt.isLeaf,Nr=qt.loaded,Zr=ft.props.context.loadData,pn=ft.hasChildren();return dr===!1?!1:dr||!Zr&&!pn||Zr&&Nr&&!pn},ft.isDisabled=function(){var qt=ft.props.disabled,dr=ft.props.context.disabled;return!!(dr||qt)},ft.isCheckable=function(){var qt=ft.props.checkable,dr=ft.props.context.checkable;return!dr||qt===!1?!1:dr},ft.syncLoadData=function(qt){var dr=qt.expanded,Nr=qt.loading,Zr=qt.loaded,pn=ft.props.context,_n=pn.loadData,Dn=pn.onNodeLoad;if(Nr)return;_n&&dr&&!ft.isLeaf()&&(!ft.hasChildren()&&!Zr&&Dn(sr(ft.props)))},ft.renderSwitcher=function(){var qt=ft.props,dr=qt.expanded,Nr=qt.switcherIcon,Zr=ft.props.context,pn=Zr.prefixCls,_n=Zr.switcherIcon,Dn=Nr||_n;if(ft.isLeaf())return e.createElement("span",{className:_()("".concat(pn,"-switcher"),"".concat(pn,"-switcher-noop"))},typeof Dn=="function"?Dn(Object(v.a)(Object(v.a)({},ft.props),{},{isLeaf:!0})):Dn);var Zn=_()("".concat(pn,"-switcher"),"".concat(pn,"-switcher_").concat(dr?ut:Kt));return e.createElement("span",{onClick:ft.onExpand,className:Zn},typeof Dn=="function"?Dn(Object(v.a)(Object(v.a)({},ft.props),{},{isLeaf:!1})):Dn)},ft.renderCheckbox=function(){var qt=ft.props,dr=qt.checked,Nr=qt.halfChecked,Zr=qt.disableCheckbox,pn=ft.props.context.prefixCls,_n=ft.isDisabled(),Dn=ft.isCheckable();if(!Dn)return null;var Zn=typeof Dn!="boolean"?Dn:null;return e.createElement("span",{className:_()("".concat(pn,"-checkbox"),dr&&"".concat(pn,"-checkbox-checked"),!dr&&Nr&&"".concat(pn,"-checkbox-indeterminate"),(_n||Zr)&&"".concat(pn,"-checkbox-disabled")),onClick:ft.onCheck},Zn)},ft.renderIcon=function(){var qt=ft.props.loading,dr=ft.props.context.prefixCls;return e.createElement("span",{className:_()("".concat(dr,"-iconEle"),"".concat(dr,"-icon__").concat(ft.getNodeState()||"docu"),qt&&"".concat(dr,"-icon_loading"))})},ft.renderSelector=function(){var qt=ft.state.dragNodeHighlight,dr=ft.props,Nr=dr.title,Zr=dr.selected,pn=dr.icon,_n=dr.loading,Dn=dr.data,Zn=ft.props.context,ii=Zn.prefixCls,pi=Zn.showIcon,ri=Zn.icon,ji=Zn.draggable,ei=Zn.loadData,$e=Zn.titleRender,Yt=ft.isDisabled(),vr="".concat(ii,"-node-content-wrapper"),fr;if(pi){var Xr=pn||ri;fr=Xr?e.createElement("span",{className:_()("".concat(ii,"-iconEle"),"".concat(ii,"-icon__customize"))},typeof Xr=="function"?Xr(ft.props):Xr):ft.renderIcon()}else ei&&_n&&(fr=ft.renderIcon());var Fr;typeof Nr=="function"?Fr=Nr(Dn):$e?Fr=$e(Dn):Fr=Nr;var hr=e.createElement("span",{className:"".concat(ii,"-title")},Fr);return e.createElement("span",{ref:ft.setSelectHandle,title:typeof Nr=="string"?Nr:"",className:_()("".concat(vr),"".concat(vr,"-").concat(ft.getNodeState()||"normal"),!Yt&&(Zr||qt)&&"".concat(ii,"-node-selected"),!Yt&&ji&&"draggable"),draggable:!Yt&&ji||void 0,"aria-grabbed":!Yt&&ji||void 0,onMouseEnter:ft.onMouseEnter,onMouseLeave:ft.onMouseLeave,onContextMenu:ft.onContextMenu,onClick:ft.onSelectorClick,onDoubleClick:ft.onSelectorDoubleClick,onDragStart:ji?ft.onDragStart:void 0},fr,hr)},ft}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 qt=this.props.selectable,dr=this.props.context.selectable;return typeof qt=="boolean"?qt:dr}},{key:"render",value:function(){var qt,dr=this.props,Nr=dr.eventKey,Zr=dr.className,pn=dr.style,_n=dr.dragOver,Dn=dr.dragOverGapTop,Zn=dr.dragOverGapBottom,ii=dr.isLeaf,pi=dr.isStart,ri=dr.isEnd,ji=dr.expanded,ei=dr.selected,$e=dr.checked,Yt=dr.halfChecked,vr=dr.loading,fr=dr.domRef,Xr=dr.active,Fr=dr.onMouseMove,hr=Object(E.a)(dr,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),An=this.props.context,br=An.prefixCls,mn=An.filterTreeNode,Kn=An.draggable,Wn=An.keyEntities,Ln=this.isDisabled(),$n=yt(hr),Un=Wn[Nr]||{},ti=Un.level,Xn=ri[ri.length-1];return e.createElement("div",Object.assign({ref:fr,className:_()(Zr,"".concat(br,"-treenode"),(qt={},Object(y.a)(qt,"".concat(br,"-treenode-disabled"),Ln),Object(y.a)(qt,"".concat(br,"-treenode-switcher-").concat(ji?"open":"close"),!ii),Object(y.a)(qt,"".concat(br,"-treenode-checkbox-checked"),$e),Object(y.a)(qt,"".concat(br,"-treenode-checkbox-indeterminate"),Yt),Object(y.a)(qt,"".concat(br,"-treenode-selected"),ei),Object(y.a)(qt,"".concat(br,"-treenode-loading"),vr),Object(y.a)(qt,"".concat(br,"-treenode-active"),Xr),Object(y.a)(qt,"".concat(br,"-treenode-leaf-last"),Xn),Object(y.a)(qt,"drag-over",!Ln&&_n),Object(y.a)(qt,"drag-over-gap-top",!Ln&&Dn),Object(y.a)(qt,"drag-over-gap-bottom",!Ln&&Zn),Object(y.a)(qt,"filter-node",mn&&mn(sr(this.props))),qt)),style:pn,onDragEnter:Kn?this.onDragEnter:void 0,onDragOver:Kn?this.onDragOver:void 0,onDragLeave:Kn?this.onDragLeave:void 0,onDrop:Kn?this.onDrop:void 0,onDragEnd:Kn?this.onDragEnd:void 0,onMouseMove:Fr},$n),e.createElement(Gt,{prefixCls:br,level:ti,isStart:pi,isEnd:ri}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),yr}(e.Component),pr=function(Ot){return e.createElement(Ht.Consumer,null,function(yr){return e.createElement(ir,Object.assign({},Ot,{context:yr}))})};pr.displayName="TreeNode",pr.defaultProps={title:Ar},pr.isTreeNode=1;var tn=pr,fn=.25,Mn=2;function Yn(Jt,Ot){var yr=Jt.slice(),ft=yr.indexOf(Ot);return ft>=0&&yr.splice(ft,1),yr}function si(Jt,Ot){var yr=Jt.slice();return yr.indexOf(Ot)===-1&&yr.push(Ot),yr}function vi(Jt){return Jt.split("-")}function xi(Jt,Ot){return"".concat(Jt,"-").concat(Ot)}function _i(Jt){return Jt&&Jt.type&&Jt.type.isTreeNode}function Ze(Jt,Ot){var yr=[Jt],ft=Ot[Jt];function qt(){var dr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];dr.forEach(function(Nr){var Zr=Nr.key,pn=Nr.children;yr.push(Zr),qt(pn)})}return qt(ft.children),yr}function we(Jt,Ot){var yr=Jt.clientY,ft=Ot.selectHandle.getBoundingClientRect(),qt=ft.top,dr=ft.bottom,Nr=ft.height,Zr=Math.max(Nr*fn,Mn);return yr<=qt+Zr?-1:yr>=dr-Zr?1:0}function Ne(Jt,Ot){if(!Jt)return;var yr=Ot.multiple;return yr?Jt.slice():Jt.length?[Jt[0]]:Jt}var Fe=function(Ot){return Ot};function Ye(Jt,Ot){if(!Jt)return[];var yr=Ot||{},ft=yr.processProps,qt=ft===void 0?Fe:ft,dr=Array.isArray(Jt)?Jt:[Jt];return dr.map(function(Nr){var Zr=Nr.children,pn=Object(E.a)(Nr,["children"]),_n=Ye(Zr,Ot);return l.a.createElement(tn,Object.assign({},qt(pn)),_n)})}function We(Jt){if(!Jt)return null;var Ot;if(Array.isArray(Jt))Ot={checkedKeys:Jt,halfCheckedKeys:void 0};else if(Object(p.a)(Jt)==="object")Ot={checkedKeys:Jt.checked||void 0,halfCheckedKeys:Jt.halfChecked||void 0};else return rt(!1,"`checkedKeys` is not an array or an object"),null;return Ot}function qe(Jt,Ot){var yr=new Set;function ft(qt){if(yr.has(qt))return;var dr=Ot[qt];if(!dr)return;yr.add(qt);var Nr=dr.parent,Zr=dr.node;if(Zr.disabled)return;Nr&&ft(Nr.key)}return(Jt||[]).forEach(function(qt){ft(qt)}),Object(h.a)(yr)}function yt(Jt){var Ot={};return Object.keys(Jt).forEach(function(yr){(yr.startsWith("data-")||yr.startsWith("aria-"))&&(Ot[yr]=Jt[yr])}),Ot}function ot(Jt,Ot){return Jt!=null?Jt:Ot}function $t(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ot=new Map;function yr(ft){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ft||[]).forEach(function(dr){var Nr=dr.key,Zr=dr.children;rt(Nr!=null,"Tree node must have a certain key: [".concat(qt).concat(Nr,"]"));var pn=String(Nr);rt(!Ot.has(pn)||Nr===null||Nr===void 0,"Same 'key' exist in the Tree: ".concat(pn)),Ot.set(pn,!0),yr(Zr,"".concat(qt).concat(pn," > "))})}yr(Jt)}function Mr(Jt){function Ot(yr){var ft=wt(yr);return ft.map(function(qt){if(!_i(qt))return rt(!qt,"Tree/TreeNode can only accept TreeNode as children."),null;var dr=qt.key,Nr=qt.props,Zr=Nr.children,pn=Object(E.a)(Nr,["children"]),_n=Object(v.a)({key:dr},pn),Dn=Ot(Zr);return Dn.length&&(_n.children=Dn),_n}).filter(function(qt){return qt})}return Ot(Jt)}function Sr(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yr=new Set(Ot===!0?[]:Ot),ft=[];function qt(dr){var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return dr.map(function(Zr,pn){var _n=xi(Nr?Nr.pos:"0",pn),Dn=ot(Zr.key,_n),Zn=Object(v.a)(Object(v.a)({},Zr),{},{parent:Nr,pos:_n,children:null,data:Zr,isStart:[].concat(Object(h.a)(Nr?Nr.isStart:[]),[pn===0]),isEnd:[].concat(Object(h.a)(Nr?Nr.isEnd:[]),[pn===dr.length-1])});return ft.push(Zn),Ot===!0||yr.has(Dn)?Zn.children=qt(Zr.children||[],Zn):Zn.children=[],Zn})}return qt(Jt),ft}function jr(Jt,Ot,yr){var ft;yr?typeof yr=="string"?ft=function(Nr){return Nr[yr]}:typeof yr=="function"&&(ft=function(Nr){return yr(Nr)}):ft=function(Nr,Zr){return ot(Nr.key,Zr)};function qt(dr,Nr,Zr){var pn=dr?dr.children:Jt,_n=dr?xi(Zr.pos,Nr):"0";if(dr){var Dn=ft(dr,_n),Zn={node:dr,index:Nr,pos:_n,key:Dn,parentPos:Zr.node?Zr.pos:null,level:Zr.level+1};Ot(Zn)}pn&&pn.forEach(function(ii,pi){qt(ii,pi,{node:dr,pos:_n,level:Zr?Zr.level+1:-1})})}qt(null)}function tr(Jt){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yr=Ot.initWrapper,ft=Ot.processEntity,qt=Ot.onProcessFinished,dr=arguments.length>2?arguments[2]:void 0,Nr={},Zr={},pn={posEntities:Nr,keyEntities:Zr};return yr&&(pn=yr(pn)||pn),jr(Jt,function(_n){var Dn=_n.node,Zn=_n.index,ii=_n.pos,pi=_n.key,ri=_n.parentPos,ji=_n.level,ei={node:Dn,index:Zn,key:pi,pos:ii,level:ji},$e=ot(pi,ii);Nr[ii]=ei,Zr[$e]=ei,ei.parent=Nr[ri],ei.parent&&(ei.parent.children=ei.parent.children||[],ei.parent.children.push(ei)),ft&&ft(ei,pn)},dr),qt&&qt(pn),pn}function gn(Jt,Ot){var yr=Ot.expandedKeys,ft=Ot.selectedKeys,qt=Ot.loadedKeys,dr=Ot.loadingKeys,Nr=Ot.checkedKeys,Zr=Ot.halfCheckedKeys,pn=Ot.dragOverNodeKey,_n=Ot.dropPosition,Dn=Ot.keyEntities,Zn=Dn[Jt],ii={eventKey:Jt,expanded:yr.indexOf(Jt)!==-1,selected:ft.indexOf(Jt)!==-1,loaded:qt.indexOf(Jt)!==-1,loading:dr.indexOf(Jt)!==-1,checked:Nr.indexOf(Jt)!==-1,halfChecked:Zr.indexOf(Jt)!==-1,pos:String(Zn?Zn.pos:""),dragOver:pn===Jt&&_n===0,dragOverGapTop:pn===Jt&&_n===-1,dragOverGapBottom:pn===Jt&&_n===1};return ii}function sr(Jt){var Ot=Jt.data,yr=Jt.expanded,ft=Jt.selected,qt=Jt.checked,dr=Jt.loaded,Nr=Jt.loading,Zr=Jt.halfChecked,pn=Jt.dragOver,_n=Jt.dragOverGapTop,Dn=Jt.dragOverGapBottom,Zn=Jt.pos,ii=Jt.active,pi=Object(v.a)(Object(v.a)({},Ot),{},{expanded:yr,selected:ft,checked:qt,loaded:dr,loading:Nr,halfChecked:Zr,dragOver:pn,dragOverGapTop:_n,dragOverGapBottom:Dn,pos:Zn,active:ii});return"props"in pi||Object.defineProperty(pi,"props",{get:function(){return rt(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Jt}}),pi}function un(Jt,Ot){var yr=new Set;return Jt.forEach(function(ft){Ot.has(ft)||yr.add(ft)}),yr}function an(Jt){var Ot=Jt||{},yr=Ot.disabled,ft=Ot.disableCheckbox,qt=Ot.checkable;return!!(yr||ft)||qt===!1}function Pr(Jt,Ot,yr,ft){for(var qt=new Set(Jt),dr=new Set,Nr=0;Nr<=yr;Nr+=1){var Zr=Ot.get(Nr)||new Set;Zr.forEach(function(Zn){var ii=Zn.key,pi=Zn.node,ri=Zn.children,ji=ri===void 0?[]:ri;qt.has(ii)&&!ft(pi)&&ji.filter(function(ei){return!ft(ei.node)}).forEach(function(ei){qt.add(ei.key)})})}for(var pn=new Set,_n=yr;_n>=0;_n-=1){var Dn=Ot.get(_n)||new Set;Dn.forEach(function(Zn){var ii=Zn.parent,pi=Zn.node;if(ft(pi)||!Zn.parent||pn.has(Zn.parent.key))return;if(ft(Zn.parent.node)){pn.add(ii.key);return}var ri=!0,ji=!1;(ii.children||[]).filter(function(ei){return!ft(ei.node)}).forEach(function(ei){var $e=ei.key,Yt=qt.has($e);ri&&!Yt&&(ri=!1),!ji&&(Yt||dr.has($e))&&(ji=!0)}),ri&&qt.add(ii.key),ji&&dr.add(ii.key),pn.add(ii.key)})}return{checkedKeys:Array.from(qt),halfCheckedKeys:Array.from(un(dr,qt))}}function In(Jt,Ot,yr,ft,qt){for(var dr=new Set(Jt),Nr=new Set(Ot),Zr=0;Zr<=ft;Zr+=1){var pn=yr.get(Zr)||new Set;pn.forEach(function(ii){var pi=ii.key,ri=ii.node,ji=ii.children,ei=ji===void 0?[]:ji;!dr.has(pi)&&!Nr.has(pi)&&!qt(ri)&&ei.filter(function($e){return!qt($e.node)}).forEach(function($e){dr.delete($e.key)})})}Nr=new Set;for(var _n=new Set,Dn=ft;Dn>=0;Dn-=1){var Zn=yr.get(Dn)||new Set;Zn.forEach(function(ii){var pi=ii.parent,ri=ii.node;if(qt(ri)||!ii.parent||_n.has(ii.parent.key))return;if(qt(ii.parent.node)){_n.add(pi.key);return}var ji=!0,ei=!1;(pi.children||[]).filter(function($e){return!qt($e.node)}).forEach(function($e){var Yt=$e.key,vr=dr.has(Yt);ji&&!vr&&(ji=!1),!ei&&(vr||Nr.has(Yt))&&(ei=!0)}),ji||dr.delete(pi.key),ei&&Nr.add(pi.key),_n.add(pi.key)})}return{checkedKeys:Array.from(dr),halfCheckedKeys:Array.from(un(Nr,dr))}}function ci(Jt,Ot,yr,ft){var qt=[],dr;ft?dr=ft:dr=an;var Nr=new Set(Jt.filter(function(Dn){var Zn=!!yr[Dn];return Zn||qt.push(Dn),Zn})),Zr=new Map,pn=0;Object.keys(yr).forEach(function(Dn){var Zn=yr[Dn],ii=Zn.level,pi=Zr.get(ii);pi||(pi=new Set,Zr.set(ii,pi)),pi.add(Zn),pn=Math.max(pn,ii)}),rt(!qt.length,"Tree missing follow keys: ".concat(qt.slice(0,100).map(function(Dn){return"'".concat(Dn,"'")}).join(", ")));var _n;return Ot===!0?_n=Pr(Nr,Zr,pn,dr):_n=In(Nr,Ot.halfCheckedKeys,Zr,pn,dr),_n}function Ui(Jt){var Ot=e.useRef();Ot.current=Jt;var yr=e.useCallback(function(){for(var ft,qt=arguments.length,dr=new Array(qt),Nr=0;Nr<qt;Nr++)dr[Nr]=arguments[Nr];return(ft=Ot.current)===null||ft===void 0?void 0:ft.call.apply(ft,[Ot].concat(dr))},[]);return yr}function ki(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ri=ki()?e.useLayoutEffect:e.useEffect,Ki=Ri,Hr=function(Ot,yr){var ft=e.useRef(!0);Ri(function(){if(!ft.current)return Ot()},yr),Ri(function(){return ft.current=!1,function(){ft.current=!0}},[])};function Cn(Jt){var Ot=e.useRef(!1),yr=e.useState(Jt),ft=Object(m.a)(yr,2),qt=ft[0],dr=ft[1];e.useEffect(function(){return Ot.current=!1,function(){Ot.current=!0}},[]);function Nr(Zr,pn){if(pn&&Ot.current)return;dr(Zr)}return[qt,Nr]}var kr;(function(Jt){Jt[Jt.INNER=0]="INNER",Jt[Jt.PROP=1]="PROP"})(kr||(kr={}));function mr(Jt){return Jt!==void 0}function Cr(Jt,Ot){var yr=Ot||{},ft=yr.defaultValue,qt=yr.value,dr=yr.onChange,Nr=yr.postState,Zr=Cn(function(){var ei=void 0,$e;return mr(qt)?(ei=qt,$e=kr.PROP):mr(ft)?(ei=typeof ft=="function"?ft():ft,$e=kr.PROP):(ei=typeof Jt=="function"?Jt():Jt,$e=kr.INNER),[ei,$e,ei]}),pn=Object(m.a)(Zr,2),_n=pn[0],Dn=pn[1],Zn=mr(qt)?qt:_n[0],ii=Nr?Nr(Zn):Zn;Hr(function(){Dn(function(ei){var $e=Object(m.a)(ei,1),Yt=$e[0];return[qt,kr.PROP,Yt]})},[qt]);var pi=e.useRef(),ri=Ui(function(ei,$e){Dn(function(Yt){var vr=Object(m.a)(Yt,3),fr=vr[0],Xr=vr[1],Fr=vr[2],hr=typeof ei=="function"?ei(fr):ei;if(hr===fr)return Yt;var An=Xr===kr.INNER&&pi.current!==Fr?Fr:fr;return[hr,kr.INNER,An]},$e)}),ji=Ui(dr);return Ki(function(){var ei=Object(m.a)(_n,3),$e=ei[0],Yt=ei[1],vr=ei[2];$e!==vr&&Yt===kr.INNER&&(ji($e,vr),pi.current=vr)},[_n]),[ii,ri]}var Nt={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Ot){var yr=Ot.keyCode;if(Ot.altKey&&!Ot.ctrlKey||Ot.metaKey||yr>=Nt.F1&&yr<=Nt.F12)return!1;switch(yr){case Nt.ALT:case Nt.CAPS_LOCK:case Nt.CONTEXT_MENU:case Nt.CTRL:case Nt.DOWN:case Nt.END:case Nt.ESC:case Nt.HOME:case Nt.INSERT:case Nt.LEFT:case Nt.MAC_FF_META:case Nt.META:case Nt.NUMLOCK:case Nt.NUM_CENTER:case Nt.PAGE_DOWN:case Nt.PAGE_UP:case Nt.PAUSE:case Nt.PRINT_SCREEN:case Nt.RIGHT:case Nt.SHIFT:case Nt.UP:case Nt.WIN_KEY:case Nt.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Ot){if(Ot>=Nt.ZERO&&Ot<=Nt.NINE)return!0;if(Ot>=Nt.NUM_ZERO&&Ot<=Nt.NUM_MULTIPLY)return!0;if(Ot>=Nt.A&&Ot<=Nt.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&Ot===0)return!0;switch(Ot){case Nt.SPACE:case Nt.QUESTION_MARK:case Nt.NUM_PLUS:case Nt.NUM_MINUS:case Nt.NUM_PERIOD:case Nt.NUM_DIVISION:case Nt.SEMICOLON:case Nt.DASH:case Nt.EQUALS:case Nt.COMMA:case Nt.PERIOD:case Nt.SLASH:case Nt.APOSTROPHE:case Nt.SINGLE_QUOTE:case Nt.OPEN_SQUARE_BRACKET:case Nt.BACKSLASH:case Nt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},wr=Nt;function Gr(Jt,Ot,yr){var ft=e.useRef({});return(!("value"in ft.current)||yr(ft.current.condition,Ot))&&(ft.current.value=Jt(),ft.current.condition=Ot),ft.current.value}var Kr=d("+nKL"),qr=function(Ot,yr){var ft=Ot.className,qt=Ot.style,dr=Ot.motion,Nr=Ot.motionNodes,Zr=Ot.motionType,pn=Ot.onMotionStart,_n=Ot.onMotionEnd,Dn=Ot.active,Zn=Ot.treeNodeRequiredProps,ii=Object(E.a)(Ot,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),pi=e.useState(!0),ri=Object(m.a)(pi,2),ji=ri[0],ei=ri[1],$e=e.useContext(Ht),Yt=$e.prefixCls,vr=e.useRef(!1),fr=function(){vr.current||_n(),vr.current=!0};return Object(e.useEffect)(function(){Nr&&Zr==="hide"&&ji&&ei(!1)},[Nr]),Object(e.useEffect)(function(){return Nr&&pn(),function(){Nr&&fr()}},[]),Nr?e.createElement(ae.b,Object.assign({ref:yr,visible:ji},dr,{motionAppear:Zr==="show",onAppearEnd:fr,onLeaveEnd:fr}),function(Xr,Fr){var hr=Xr.className,An=Xr.style;return e.createElement("div",{ref:Fr,className:_()("".concat(Yt,"-treenode-motion"),hr),style:An},Nr.map(function(br){var mn=br.data,Kn=mn.key,Wn=Object(E.a)(mn,["key"]),Ln=br.isStart,$n=br.isEnd;delete Wn.children;var Un=gn(Kn,Zn);return e.createElement(tn,Object.assign({},Wn,Un,{active:Dn,data:br.data,key:Kn,isStart:Ln,isEnd:$n}))}))}):e.createElement(tn,Object.assign({domRef:yr,className:ft,style:qt},ii,{active:Dn}))};qr.displayName="MotionTreeNode";var oi=e.forwardRef(qr),Gn=oi;function Ti(){var Jt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yr=Jt.length,ft=Ot.length;if(Math.abs(yr-ft)!==1)return{add:!1,key:null};function qt(dr,Nr){var Zr=new Map;dr.forEach(function(_n){Zr.set(_n,!0)});var pn=Nr.filter(function(_n){return!Zr.has(_n)});return pn.length===1?pn[0]:null}return yr<ft?{add:!0,key:qt(Jt,Ot)}:{add:!1,key:qt(Ot,Jt)}}function hn(Jt,Ot,yr){var ft=Jt.findIndex(function(Zr){var pn=Zr.data;return pn.key===yr}),qt=Jt[ft+1],dr=Ot.findIndex(function(Zr){var pn=Zr.data;return pn.key===yr});if(qt){var Nr=Ot.findIndex(function(Zr){var pn=Zr.data;return pn.key===qt.data.key});return Ot.slice(dr+1,Nr)}return Ot.slice(dr+1)}var _r={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},En=function(){},Fn="RC_TREE_MOTION_".concat(Math.random()),Vn={key:Fn},qn={key:Fn,level:0,index:0,pos:"0",node:Vn},Oi={parent:null,children:[],pos:qn.pos,data:Vn,isStart:[],isEnd:[]};function Ni(Jt,Ot,yr,ft){return Ot===!1||!yr?Jt:Jt.slice(0,Math.ceil(yr/ft)+1)}function Mi(Jt){var Ot=Jt.data.key,yr=Jt.pos;return ot(Ot,yr)}function Ji(Jt){for(var Ot=String(Jt.data.key),yr=Jt;yr.parent;)yr=yr.parent,Ot="".concat(yr.data.key," > ").concat(Ot);return Ot}var ma=function(Ot,yr){var ft=Ot.prefixCls,qt=Ot.data,dr=Ot.selectable,Nr=Ot.checkable,Zr=Ot.expandedKeys,pn=Ot.selectedKeys,_n=Ot.checkedKeys,Dn=Ot.loadedKeys,Zn=Ot.loadingKeys,ii=Ot.halfCheckedKeys,pi=Ot.keyEntities,ri=Ot.disabled,ji=Ot.dragging,ei=Ot.dragOverNodeKey,$e=Ot.dropPosition,Yt=Ot.motion,vr=Ot.height,fr=Ot.itemHeight,Xr=Ot.virtual,Fr=Ot.focusable,hr=Ot.activeItem,An=Ot.focused,br=Ot.tabIndex,mn=Ot.onKeyDown,Kn=Ot.onFocus,Wn=Ot.onBlur,Ln=Ot.onActiveChange,$n=Ot.onListChangeStart,Un=Ot.onListChangeEnd,ti=Object(E.a)(Ot,["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"]),Xn=e.useRef(null);e.useImperativeHandle(yr,function(){return{scrollTo:function(Va){Xn.current.scrollTo(Va)}}});var wi=e.useState(Zr),Ei=Object(m.a)(wi,2),Zi=Ei[0],ua=Ei[1],Xi=e.useState(qt),Gi=Object(m.a)(Xi,2),wa=Gi[0],na=Gi[1],mo=e.useState(qt),Ca=Object(m.a)(mo,2),qi=Ca[0],aa=Ca[1],$i=e.useState([]),Aa=Object(m.a)($i,2),ya=Aa[0],Ha=Aa[1],ta=e.useState(null),ra=Object(m.a)(ta,2),_a=ra[0],Ka=ra[1];function bo(){na(qt),aa(qt),Ha([]),Ka(null),Un()}e.useEffect(function(){ua(Zr);var Sa=Ti(Zi,Zr);if(Sa.key!==null)if(Sa.add){var Va=wa.findIndex(function(co){var fa=co.data.key;return fa===Sa.key}),uo=Ni(hn(wa,qt,Sa.key),Xr,vr,fr),No=wa.slice();No.splice(Va+1,0,Oi),aa(No),Ha(uo),Ka("show")}else{var Po=qt.findIndex(function(co){var fa=co.data.key;return fa===Sa.key}),to=Ni(hn(qt,wa,Sa.key),Xr,vr,fr),Uo=qt.slice();Uo.splice(Po+1,0,Oi),aa(Uo),Ha(to),Ka("hide")}else wa!==qt&&(na(qt),aa(qt))},[Zr,qt]),e.useEffect(function(){ji||bo()},[ji]);var ga=Yt?qi:qt,go={expandedKeys:Zr,selectedKeys:pn,loadedKeys:Dn,loadingKeys:Zn,checkedKeys:_n,halfCheckedKeys:ii,dragOverNodeKey:ei,dropPosition:$e,keyEntities:pi};return e.createElement(e.Fragment,null,An&&hr&&e.createElement("span",{style:_r,"aria-live":"assertive"},Ji(hr)),e.createElement("div",{role:"tree"},e.createElement("input",{style:_r,disabled:Fr===!1||ri,tabIndex:Fr!==!1?br:null,onKeyDown:mn,onFocus:Kn,onBlur:Wn,value:"",onChange:En})),e.createElement(Kr.a,Object.assign({},ti,{data:ga,itemKey:Mi,height:vr,fullHeight:!1,virtual:Xr,itemHeight:fr,prefixCls:"".concat(ft,"-list"),ref:Xn}),function(Sa){var Va=Sa.pos,uo=Sa.data,No=uo.key,Po=Object(E.a)(uo,["key"]),to=Sa.isStart,Uo=Sa.isEnd,co=ot(No,Va);delete Po.children;var fa=gn(co,go);return e.createElement(Gn,Object.assign({},Po,fa,{active:hr&&No===hr.data.key,pos:Va,data:Sa.data,isStart:to,isEnd:Uo,motion:Yt,motionNodes:No===Fn?ya:null,motionType:_a,onMotionStart:$n,onMotionEnd:bo,treeNodeRequiredProps:go,onMouseMove:function(){Ln(null)}}))}))},la=e.forwardRef(ma);la.displayName="NodeList";var qa=la,bi=function(Jt){Object(s.a)(yr,Jt);var Ot=Object(u.a)(yr);function yr(){var ft;return Object(t.a)(this,yr),ft=Ot.apply(this,arguments),ft.destroyed=!1,ft.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},ft.listRef=e.createRef(),ft.onNodeDragStart=function(qt,dr){var Nr=ft.state,Zr=Nr.expandedKeys,pn=Nr.keyEntities,_n=ft.props.onDragStart,Dn=dr.props.eventKey;ft.dragNode=dr;var Zn=Yn(Zr,Dn);ft.setState({dragging:!0,dragNodesKeys:Ze(Dn,pn)}),ft.setExpandedKeys(Zn),_n&&_n({event:qt,node:sr(dr.props)})},ft.onNodeDragEnter=function(qt,dr){var Nr=ft.state,Zr=Nr.expandedKeys,pn=Nr.keyEntities,_n=Nr.dragNodesKeys,Dn=ft.props.onDragEnter,Zn=dr.props,ii=Zn.pos,pi=Zn.eventKey;if(!ft.dragNode||_n.indexOf(pi)!==-1)return;var ri=we(qt,dr);if(ft.dragNode.props.eventKey===pi&&ri===0){ft.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ft.setState({dragOverNodeKey:pi,dropPosition:ri}),ft.delayedDragEnterLogic||(ft.delayedDragEnterLogic={}),Object.keys(ft.delayedDragEnterLogic).forEach(function(ji){clearTimeout(ft.delayedDragEnterLogic[ji])}),ft.delayedDragEnterLogic[ii]=window.setTimeout(function(){if(!ft.state.dragging)return;var ji=Object(h.a)(Zr),ei=pn[pi];ei&&(ei.children||[]).length&&(ji=si(Zr,pi)),"expandedKeys"in ft.props||ft.setExpandedKeys(ji),Dn&&Dn({event:qt,node:sr(dr.props),expandedKeys:ji})},400)},0)},ft.onNodeDragOver=function(qt,dr){var Nr=ft.state.dragNodesKeys,Zr=ft.props.onDragOver,pn=dr.props.eventKey;if(Nr.indexOf(pn)!==-1)return;if(ft.dragNode&&pn===ft.state.dragOverNodeKey){var _n=we(qt,dr);if(_n===ft.state.dropPosition)return;ft.setState({dropPosition:_n})}Zr&&Zr({event:qt,node:sr(dr.props)})},ft.onNodeDragLeave=function(qt,dr){var Nr=ft.props.onDragLeave;ft.setState({dragOverNodeKey:""}),Nr&&Nr({event:qt,node:sr(dr.props)})},ft.onNodeDragEnd=function(qt,dr){var Nr=ft.props.onDragEnd;ft.setState({dragOverNodeKey:""}),ft.cleanDragState(),Nr&&Nr({event:qt,node:sr(dr.props)}),ft.dragNode=null},ft.onNodeDrop=function(qt,dr){var Nr=ft.state,Zr=Nr.dragNodesKeys,pn=Zr===void 0?[]:Zr,_n=Nr.dropPosition,Dn=ft.props.onDrop,Zn=dr.props,ii=Zn.eventKey,pi=Zn.pos;if(ft.setState({dragOverNodeKey:""}),ft.cleanDragState(),pn.indexOf(ii)!==-1){rt(!1,"Can not drop to dragNode(include it's children node)");return}var ri=vi(pi),ji={event:qt,node:sr(dr.props),dragNode:ft.dragNode?sr(ft.dragNode.props):null,dragNodesKeys:pn.slice(),dropPosition:_n+Number(ri[ri.length-1]),dropToGap:!1};_n!==0&&(ji.dropToGap=!0),Dn&&Dn(ji),ft.dragNode=null},ft.cleanDragState=function(){var qt=ft.state.dragging;qt&&ft.setState({dragging:!1})},ft.onNodeClick=function(qt,dr){var Nr=ft.props.onClick;Nr&&Nr(qt,dr)},ft.onNodeDoubleClick=function(qt,dr){var Nr=ft.props.onDoubleClick;Nr&&Nr(qt,dr)},ft.onNodeSelect=function(qt,dr){var Nr=ft.state.selectedKeys,Zr=ft.state.keyEntities,pn=ft.props,_n=pn.onSelect,Dn=pn.multiple,Zn=dr.selected,ii=dr.key,pi=!Zn;pi?Dn?Nr=si(Nr,ii):Nr=[ii]:Nr=Yn(Nr,ii);var ri=Nr.map(function(ji){var ei=Zr[ji];return ei?ei.node:null}).filter(function(ji){return ji});ft.setUncontrolledState({selectedKeys:Nr}),_n&&_n(Nr,{event:"select",selected:pi,node:dr,selectedNodes:ri,nativeEvent:qt.nativeEvent})},ft.onNodeCheck=function(qt,dr,Nr){var Zr=ft.state,pn=Zr.keyEntities,_n=Zr.checkedKeys,Dn=Zr.halfCheckedKeys,Zn=ft.props,ii=Zn.checkStrictly,pi=Zn.onCheck,ri=dr.key,ji,ei={event:"check",node:dr,checked:Nr,nativeEvent:qt.nativeEvent};if(ii){var $e=Nr?si(_n,ri):Yn(_n,ri),Yt=Yn(Dn,ri);ji={checked:$e,halfChecked:Yt},ei.checkedNodes=$e.map(function(An){return pn[An]}).filter(function(An){return An}).map(function(An){return An.node}),ft.setUncontrolledState({checkedKeys:$e})}else{var vr=ci([].concat(Object(h.a)(_n),[ri]),!0,pn),fr=vr.checkedKeys,Xr=vr.halfCheckedKeys;if(!Nr){var Fr=new Set(fr);Fr.delete(ri);var hr=ci(Array.from(Fr),{checked:!1,halfCheckedKeys:Xr},pn);fr=hr.checkedKeys,Xr=hr.halfCheckedKeys}ji=fr,ei.checkedNodes=[],ei.checkedNodesPositions=[],ei.halfCheckedKeys=Xr,fr.forEach(function(An){var br=pn[An];if(!br)return;var mn=br.node,Kn=br.pos;ei.checkedNodes.push(mn),ei.checkedNodesPositions.push({node:mn,pos:Kn})}),ft.setUncontrolledState({checkedKeys:fr},!1,{halfCheckedKeys:Xr})}pi&&pi(ji,ei)},ft.onNodeLoad=function(qt){return new Promise(function(dr){ft.setState(function(Nr){var Zr=Nr.loadedKeys,pn=Zr===void 0?[]:Zr,_n=Nr.loadingKeys,Dn=_n===void 0?[]:_n,Zn=ft.props,ii=Zn.loadData,pi=Zn.onLoad,ri=qt.key;if(!ii||pn.indexOf(ri)!==-1||Dn.indexOf(ri)!==-1)return{};var ji=ii(qt);return ji.then(function(){var ei=ft.state,$e=ei.loadedKeys,Yt=ei.loadingKeys,vr=si($e,ri),fr=Yn(Yt,ri);pi&&pi(vr,{event:"load",node:qt}),ft.setUncontrolledState({loadedKeys:vr}),ft.setState({loadingKeys:fr}),dr()}),{loadingKeys:si(Dn,ri)}})})},ft.onNodeMouseEnter=function(qt,dr){var Nr=ft.props.onMouseEnter;Nr&&Nr({event:qt,node:dr})},ft.onNodeMouseLeave=function(qt,dr){var Nr=ft.props.onMouseLeave;Nr&&Nr({event:qt,node:dr})},ft.onNodeContextMenu=function(qt,dr){var Nr=ft.props.onRightClick;Nr&&(qt.preventDefault(),Nr({event:qt,node:dr}))},ft.onFocus=function(){var qt=ft.props.onFocus;ft.setState({focused:!0}),qt&&qt.apply(void 0,arguments)},ft.onBlur=function(){var qt=ft.props.onBlur;ft.setState({focused:!1}),ft.onActiveChange(null),qt&&qt.apply(void 0,arguments)},ft.getTreeNodeRequiredProps=function(){var qt=ft.state,dr=qt.expandedKeys,Nr=qt.selectedKeys,Zr=qt.loadedKeys,pn=qt.loadingKeys,_n=qt.checkedKeys,Dn=qt.halfCheckedKeys,Zn=qt.dragOverNodeKey,ii=qt.dropPosition,pi=qt.keyEntities;return{expandedKeys:dr||[],selectedKeys:Nr||[],loadedKeys:Zr||[],loadingKeys:pn||[],checkedKeys:_n||[],halfCheckedKeys:Dn||[],dragOverNodeKey:Zn,dropPosition:ii,keyEntities:pi}},ft.setExpandedKeys=function(qt){var dr=ft.state.treeData,Nr=Sr(dr,qt);ft.setUncontrolledState({expandedKeys:qt,flattenNodes:Nr},!0)},ft.onNodeExpand=function(qt,dr){var Nr=ft.state.expandedKeys,Zr=ft.state.listChanging,pn=ft.props,_n=pn.onExpand,Dn=pn.loadData,Zn=dr.key,ii=dr.expanded;if(Zr)return;var pi=Nr.indexOf(Zn),ri=!ii;if(rt(ii&&pi!==-1||!ii&&pi===-1,"Expand state not sync with index check"),ri?Nr=si(Nr,Zn):Nr=Yn(Nr,Zn),ft.setExpandedKeys(Nr),_n&&_n(Nr,{node:dr,expanded:ri,nativeEvent:qt.nativeEvent}),ri&&Dn){var ji=ft.onNodeLoad(dr);ji&&ji.then(function(){var ei=Sr(ft.state.treeData,Nr);ft.setUncontrolledState({flattenNodes:ei})})}},ft.onListChangeStart=function(){ft.setUncontrolledState({listChanging:!0})},ft.onListChangeEnd=function(){setTimeout(function(){ft.setUncontrolledState({listChanging:!1})})},ft.onActiveChange=function(qt){var dr=ft.state.activeKey,Nr=ft.props.onActiveChange;if(dr===qt)return;ft.setState({activeKey:qt}),qt!==null&&ft.scrollTo({key:qt}),Nr&&Nr(qt)},ft.getActiveItem=function(){var qt=ft.state,dr=qt.activeKey,Nr=qt.flattenNodes;return dr===null?null:Nr.find(function(Zr){var pn=Zr.data.key;return pn===dr})||null},ft.offsetActiveKey=function(qt){var dr=ft.state,Nr=dr.flattenNodes,Zr=dr.activeKey,pn=Nr.findIndex(function(Zn){var ii=Zn.data.key;return ii===Zr});pn===-1&&qt<0&&(pn=Nr.length),pn=(pn+qt+Nr.length)%Nr.length;var _n=Nr[pn];if(_n){var Dn=_n.data.key;ft.onActiveChange(Dn)}else ft.onActiveChange(null)},ft.onKeyDown=function(qt){var dr=ft.state,Nr=dr.activeKey,Zr=dr.expandedKeys,pn=dr.checkedKeys,_n=ft.props,Dn=_n.onKeyDown,Zn=_n.checkable,ii=_n.selectable;switch(qt.which){case wr.UP:{ft.offsetActiveKey(-1),qt.preventDefault();break}case wr.DOWN:{ft.offsetActiveKey(1),qt.preventDefault();break}}var pi=ft.getActiveItem();if(pi&&pi.data){var ri=ft.getTreeNodeRequiredProps(),ji=pi.data.isLeaf===!1||!!(pi.data.children||[]).length,ei=sr(Object(v.a)(Object(v.a)({},gn(Nr,ri)),{},{data:pi.data,active:!0}));switch(qt.which){case wr.LEFT:{ji&&Zr.includes(Nr)?ft.onNodeExpand({},ei):pi.parent&&ft.onActiveChange(pi.parent.data.key),qt.preventDefault();break}case wr.RIGHT:{ji&&!Zr.includes(Nr)?ft.onNodeExpand({},ei):pi.children&&pi.children.length&&ft.onActiveChange(pi.children[0].data.key),qt.preventDefault();break}case wr.ENTER:case wr.SPACE:{Zn&&!ei.disabled&&ei.checkable!==!1&&!ei.disableCheckbox?ft.onNodeCheck({},ei,!pn.includes(Nr)):!Zn&&ii&&!ei.disabled&&ei.selectable!==!1&&ft.onNodeSelect({},ei);break}}}Dn&&Dn(qt)},ft.setUncontrolledState=function(qt){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(ft.destroyed)return;var Zr=!1,pn=!0,_n={};Object.keys(qt).forEach(function(Dn){if(Dn in ft.props){pn=!1;return}Zr=!0,_n[Dn]=qt[Dn]}),Zr&&(!dr||pn)&&ft.setState(Object(v.a)(Object(v.a)({},_n),Nr))},ft.scrollTo=function(qt){ft.listRef.current.scrollTo(qt)},ft}return Object(a.a)(yr,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var qt,dr=this.state,Nr=dr.focused,Zr=dr.flattenNodes,pn=dr.keyEntities,_n=dr.dragging,Dn=dr.activeKey,Zn=this.props,ii=Zn.prefixCls,pi=Zn.className,ri=Zn.style,ji=Zn.showLine,ei=Zn.focusable,$e=Zn.tabIndex,Yt=$e===void 0?0:$e,vr=Zn.selectable,fr=Zn.showIcon,Xr=Zn.icon,Fr=Zn.switcherIcon,hr=Zn.draggable,An=Zn.checkable,br=Zn.checkStrictly,mn=Zn.disabled,Kn=Zn.motion,Wn=Zn.loadData,Ln=Zn.filterTreeNode,$n=Zn.height,Un=Zn.itemHeight,ti=Zn.virtual,Xn=Zn.titleRender,wi=Zn.onContextMenu,Ei=yt(this.props);return e.createElement(Ht.Provider,{value:{prefixCls:ii,selectable:vr,showIcon:fr,icon:Xr,switcherIcon:Fr,draggable:hr,checkable:An,checkStrictly:br,disabled:mn,keyEntities:pn,loadData:Wn,filterTreeNode:Ln,titleRender:Xn,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:_()(ii,pi,(qt={},Object(y.a)(qt,"".concat(ii,"-show-line"),ji),Object(y.a)(qt,"".concat(ii,"-focused"),Nr),Object(y.a)(qt,"".concat(ii,"-active-focused"),Dn!==null),qt))},e.createElement(qa,Object.assign({ref:this.listRef,prefixCls:ii,style:ri,data:Zr,disabled:mn,selectable:vr,checkable:!!An,motion:Kn,dragging:_n,height:$n,itemHeight:Un,virtual:ti,focusable:ei,focused:Nr,tabIndex:Yt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:wi},this.getTreeNodeRequiredProps(),Ei))))}}],[{key:"getDerivedStateFromProps",value:function(qt,dr){var Nr=dr.prevProps,Zr={prevProps:qt};function pn(Xr){return!Nr&&Xr in qt||Nr&&Nr[Xr]!==qt[Xr]}var _n;if(pn("treeData")?_n=qt.treeData:pn("children")&&(rt(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),_n=Mr(qt.children)),_n){Zr.treeData=_n;var Dn=tr(_n);Zr.keyEntities=Object(v.a)(Object(y.a)({},Fn,qn),Dn.keyEntities)}var Zn=Zr.keyEntities||dr.keyEntities;if(pn("expandedKeys")||Nr&&pn("autoExpandParent"))Zr.expandedKeys=qt.autoExpandParent||!Nr&&qt.defaultExpandParent?qe(qt.expandedKeys,Zn):qt.expandedKeys;else if(!Nr&&qt.defaultExpandAll){var ii=Object(v.a)({},Zn);delete ii[Fn],Zr.expandedKeys=Object.keys(ii).map(function(Xr){return ii[Xr].key})}else!Nr&&qt.defaultExpandedKeys&&(Zr.expandedKeys=qt.autoExpandParent||qt.defaultExpandParent?qe(qt.defaultExpandedKeys,Zn):qt.defaultExpandedKeys);if(Zr.expandedKeys||delete Zr.expandedKeys,_n||Zr.expandedKeys){var pi=Sr(_n||dr.treeData,Zr.expandedKeys||dr.expandedKeys);Zr.flattenNodes=pi}if(qt.selectable&&(pn("selectedKeys")?Zr.selectedKeys=Ne(qt.selectedKeys,qt):!Nr&&qt.defaultSelectedKeys&&(Zr.selectedKeys=Ne(qt.defaultSelectedKeys,qt))),qt.checkable){var ri;if(pn("checkedKeys")?ri=We(qt.checkedKeys)||{}:!Nr&&qt.defaultCheckedKeys?ri=We(qt.defaultCheckedKeys)||{}:_n&&(ri=We(qt.checkedKeys)||{checkedKeys:dr.checkedKeys,halfCheckedKeys:dr.halfCheckedKeys}),ri){var ji=ri,ei=ji.checkedKeys,$e=ei===void 0?[]:ei,Yt=ji.halfCheckedKeys,vr=Yt===void 0?[]:Yt;if(!qt.checkStrictly){var fr=ci($e,!0,Zn);$e=fr.checkedKeys,vr=fr.halfCheckedKeys}Zr.checkedKeys=$e,Zr.halfCheckedKeys=vr}}return pn("loadedKeys")&&(Zr.loadedKeys=qt.loadedKeys),Zr}}]),yr}(e.Component);bi.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:[]},bi.TreeNode=tn;var xn=bi,zi=xn,oa=e.createContext(null);function Yi(Jt,Ot){if(!Jt)return!0;var yr=Jt.data,ft=yr.disabled,qt=yr.disableCheckbox;switch(Ot){case"select":return ft;case"checkbox":return ft||qt}return!1}function ca(Jt,Ot){var yr=e.useCallback(function(qt){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Nr=arguments.length>2?arguments[2]:void 0,Zr=Jt.get(qt);return!Nr&&Yi(Zr,dr)?null:Zr},[Jt]),ft=e.useCallback(function(qt){var dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",Nr=arguments.length>2?arguments[2]:void 0,Zr=Ot.get(qt);return!Nr&&Yi(Zr,dr)?null:Zr},[Ot]);return[yr,ft]}function Hi(Jt){return e.useMemo(function(){var Ot=new Map,yr=new Map;return Jt.forEach(function(ft){Ot.set(ft.key,ft),yr.set(ft.data.value,ft)}),[Ot,yr]},[Jt])}var Ia={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Da=function(Ot,yr){var ft=Ot.prefixCls,qt=Ot.height,dr=Ot.itemHeight,Nr=Ot.virtual,Zr=Ot.options,pn=Ot.flattenOptions,_n=Ot.multiple,Dn=Ot.searchValue,Zn=Ot.onSelect,ii=Ot.onToggleOpen,pi=Ot.open,ri=Ot.notFoundContent,ji=Ot.onMouseEnter,ei=e.useContext(oa),$e=ei.checkable,Yt=ei.checkedKeys,vr=ei.halfCheckedKeys,fr=ei.treeExpandedKeys,Xr=ei.treeDefaultExpandAll,Fr=ei.treeDefaultExpandedKeys,hr=ei.onTreeExpand,An=ei.treeIcon,br=ei.showTreeIcon,mn=ei.switcherIcon,Kn=ei.treeLine,Wn=ei.treeNodeFilterProp,Ln=ei.loadData,$n=ei.treeLoadedKeys,Un=ei.treeMotion,ti=ei.onTreeLoad,Xn=e.useRef(),wi=Gr(function(){return Zr},[pi,Zr],function(fa,ro){return ro[0]&&fa[1]!==ro[1]}),Ei=Hi(pn),Zi=Object(m.a)(Ei,2),ua=Zi[0],Xi=Zi[1],Gi=ca(ua,Xi),wa=Object(m.a)(Gi,2),na=wa[0],mo=wa[1],Ca=e.useMemo(function(){return Yt.map(function(fa){var ro=mo(fa);return ro?ro.key:null})},[Yt]),qi=e.useMemo(function(){return $e?{checked:Ca,halfChecked:vr}:null},[Ca,vr,$e]);e.useEffect(function(){if(pi&&!_n&&Ca.length){var fa;(fa=Xn.current)===null||fa===void 0||fa.scrollTo({key:Ca[0]})}},[pi]);var aa=String(Dn).toLowerCase(),$i=function(ro){return aa?String(ro[Wn]).toLowerCase().includes(aa):!1},Aa=e.useState(Fr),ya=Object(m.a)(Aa,2),Ha=ya[0],ta=ya[1],ra=e.useState(null),_a=Object(m.a)(ra,2),Ka=_a[0],bo=_a[1],ga=e.useMemo(function(){return fr?Object(h.a)(fr):Dn?Ka:Ha},[Ha,Ka,aa,fr]);e.useEffect(function(){Dn&&bo(pn.map(function(fa){return fa.key}))},[Dn]);var go=function(ro){ta(ro),bo(ro),hr&&hr(ro)},Sa=function(ro){ro.preventDefault()},Va=function(ro,Wa){var Ea=Wa.node.key,Jr=na(Ea,$e?"checkbox":"select");Jr!==null&&Zn(Jr.data.value,{selected:!Yt.includes(Jr.data.value)}),_n||ii(!1)},uo=e.useState(null),No=Object(m.a)(uo,2),Po=No[0],to=No[1],Uo=na(Po);if(e.useImperativeHandle(yr,function(){return{onKeyDown:function(ro){var Wa,Ea=ro.which;switch(Ea){case wr.UP:case wr.DOWN:case wr.LEFT:case wr.RIGHT:(Wa=Xn.current)===null||Wa===void 0||Wa.onKeyDown(ro);break;case wr.ENTER:{Uo!==null&&Va(null,{node:{key:Po},selected:!Yt.includes(Uo.data.value)});break}case wr.ESC:ii(!1)}},onKeyUp:function(){}}}),wi.length===0)return e.createElement("div",{role:"listbox",className:"".concat(ft,"-empty"),onMouseDown:Sa},ri);var co={};return $n&&(co.loadedKeys=$n),ga&&(co.expandedKeys=ga),e.createElement("div",{onMouseDown:Sa,onMouseEnter:ji},Uo&&pi&&e.createElement("span",{style:Ia,"aria-live":"assertive"},Uo.data.value),e.createElement(zi,Object.assign({ref:Xn,focusable:!1,prefixCls:"".concat(ft,"-tree"),treeData:wi,height:qt,itemHeight:dr,virtual:Nr,multiple:_n,icon:An,showIcon:br,switcherIcon:mn,showLine:Kn,loadData:Dn?null:Ln,motion:Un,checkable:$e,checkStrictly:!0,checkedKeys:qi,selectedKeys:$e?[]:Ca,defaultExpandAll:Xr},co,{onActiveChange:to,onSelect:Va,onCheck:Va,onExpand:go,onLoad:ti,filterTreeNode:$i})))},Qa=e.forwardRef(Da);Qa.displayName="OptionList";var Wo=Qa,po=function(){return null},Mo=po;function Fo(Jt){return wt(Jt).map(function(Ot){if(!e.isValidElement(Ot)||!Ot.type)return null;var yr=Ot.key,ft=Ot.props,qt=ft.children,dr=ft.value,Nr=Object(E.a)(ft,["children","value"]),Zr=Object(v.a)({key:yr,value:dr},Nr),pn=Fo(qt);return pn.length&&(Zr.children=pn),Zr}).filter(function(Ot){return Ot})}function yo(Jt){if(!Jt)return Jt;var Ot=Object(v.a)({},Jt);return"props"in Ot||Object.defineProperty(Ot,"props",{get:function(){return rt(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Ot}}),Ot}function Oo(Jt,Ot,yr,ft,qt){var dr=null,Nr=null;function Zr(){function pn(_n){var Dn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Zn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return _n.map(function(ii,pi){var ri="".concat(Dn,"-").concat(pi),ji=yr.includes(ii.value),ei=pn(ii.children||[],ri,ji),$e=e.createElement(Mo,Object.assign({},ii),ei.map(function(vr){return vr.node}));if(Ot===ii.value&&(dr=$e),ji){var Yt={pos:ri,node:$e,children:ei};return Zn||Nr.push(Yt),Yt}return null}).filter(function(ii){return ii})}Nr||(Nr=[],pn(ft),Nr.sort(function(_n,Dn){var Zn=_n.node.props.value,ii=Dn.node.props.value,pi=yr.indexOf(Zn),ri=yr.indexOf(ii);return pi-ri}))}Object.defineProperty(Jt,"triggerNode",{get:function(){return rt(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Zr(),dr}}),Object.defineProperty(Jt,"allCheckedNodes",{get:function(){return rt(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Zr(),qt?Nr:Nr.map(function(_n){var Dn=_n.node;return Dn})}})}function sa(Jt){return Array.isArray(Jt)?Jt:Jt!==void 0?[Jt]:[]}function hs(Jt,Ot){var yr=new Map;return Ot.forEach(function(ft){var qt=ft.data;yr.set(qt.value,qt)}),Jt.map(function(ft){return yo(yr.get(ft))})}function Jo(Jt,Ot){var yr=hs([Jt],Ot)[0];return yr?yr.disabled:!1}function wo(Jt){return Jt.disabled||Jt.disableCheckbox||Jt.checkable===!1}function _o(Jt){for(var Ot=Jt.parent,yr=0,ft=Ot;ft;)ft=ft.parent,yr+=1;return yr}function Bo(Jt){function Ot(ft){return(ft||[]).map(function(qt){var dr=qt.value,Nr=qt.key,Zr=qt.children,pn=Object(v.a)(Object(v.a)({},qt),{},{key:"key"in qt?Nr:dr});return Zr&&(pn.children=Ot(Zr)),pn})}var yr=Sr(Ot(Jt),!0);return yr.map(function(ft){return{key:ft.data.key,data:ft.data,level:_o(ft)}})}function Ds(Jt){return function(Ot,yr){var ft=yr[Jt];return String(ft).toLowerCase().includes(String(Ot).toLowerCase())}}function Dr(Jt,Ot,yr){var ft=yr.optionFilterProp,qt=yr.filterOption;if(qt===!1)return Ot;var dr;typeof qt=="function"?dr=qt:dr=Ds(ft);function Nr(Zr){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Zr.map(function(_n){var Dn=_n.children,Zn=pn||dr(Jt,yo(_n)),ii=Nr(Dn||[],Zn);return Zn||ii.length?Object(v.a)(Object(v.a)({},_n),{},{children:ii}):null}).filter(function(_n){return _n})}return Nr(Ot)}function rn(Jt,Ot,yr,ft){var qt=new Map;return sa(Ot).forEach(function(dr){dr&&Object(p.a)(dr)==="object"&&"value"in dr&&qt.set(dr.value,dr)}),Jt.map(function(dr){var Nr={value:dr},Zr=yr(dr,"select",!0),pn=Zr?ft(Zr.data):dr;if(qt.has(dr)){var _n=qt.get(dr);Nr.label="label"in _n?_n.label:pn,"halfChecked"in _n&&(Nr.halfChecked=_n.halfChecked)}else Nr.label=pn;return Nr})}function Tn(Jt,Ot){var yr=new Set(Jt);return yr.add(Ot),Array.from(yr)}function en(Jt,Ot){var yr=new Set(Jt);return yr.delete(Ot),Array.from(yr)}function ur(Jt){var Ot=Jt.searchPlaceholder,yr=Jt.treeCheckStrictly,ft=Jt.treeCheckable,qt=Jt.labelInValue,dr=Jt.value,Nr=Jt.multiple;rt(!Ot,"`searchPlaceholder` has been removed."),yr&&qt===!1&&rt(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(qt||yr)&&rt(sa(dr).every(function(Zr){return Zr&&Object(p.a)(Zr)==="object"&&"value"in Zr}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),yr||Nr||ft?rt(!dr||Array.isArray(dr),"`value` should be an array when `TreeSelect` is checkable or multiple."):rt(!Array.isArray(dr),"`value` should not be array when `TreeSelect` is single mode.")}var sn=ur,Bn=10;function Hn(Jt,Ot){var yr=Ot.id,ft=Ot.pId,qt=Ot.rootPId,dr={},Nr=[],Zr=Jt.map(function(pn){var _n=Object(v.a)({},pn),Dn=_n[yr];return dr[Dn]=_n,_n.key=_n.key||Dn,_n});return Zr.forEach(function(pn){var _n=pn[ft],Dn=dr[_n];Dn&&(Dn.children=Dn.children||[],Dn.children.push(pn)),(_n===qt||!Dn&&qt===null)&&Nr.push(pn)}),Nr}function Li(Jt,Ot){var yr=0,ft=new Set;function qt(dr){return(dr||[]).map(function(Nr){var Zr=Nr.key,pn=Nr.value,_n=Nr.children,Dn=Object(E.a)(Nr,["key","value","children"]),Zn="value"in Nr?pn:Zr,ii=Object(v.a)(Object(v.a)({},Dn),{},{key:Zr!=null?Zr:Zn,value:Zn,title:Ot(Nr)});return"children"in Nr&&(ii.children=qt(_n)),ii})}return qt(Jt)}function Ci(Jt,Ot,yr){var ft=yr.getLabelProp,qt=yr.simpleMode,dr=e.useRef({});return Jt?(dr.current.formatTreeData=dr.current.treeData===Jt?dr.current.formatTreeData:Li(qt?Hn(Jt,Object(v.a)({id:"id",pId:"pId",rootPId:null},qt!==!0?qt:{})):Jt,ft),dr.current.treeData=Jt):dr.current.formatTreeData=dr.current.children===Ot?dr.current.formatTreeData:Li(Fo(Ot),ft),dr.current.formatTreeData}var Jn="SHOW_ALL",mi="SHOW_PARENT",yi="SHOW_CHILD";function da(Jt,Ot,yr){var ft=new Set(Jt);return Ot===yi?Jt.filter(function(qt){var dr=yr[qt];return!(dr&&dr.children&&dr.children.every(function(Nr){var Zr=Nr.node;return wo(Zr)||ft.has(Zr.key)}))}):Ot===mi?Jt.filter(function(qt){var dr=yr[qt],Nr=dr?dr.parent:null;return!(Nr&&!wo(Nr.node)&&ft.has(Nr.node.key))}):Jt}function ha(Jt,Ot){var yr=Ot.value,ft=Ot.getEntityByValue,qt=Ot.getEntityByKey,dr=Ot.treeConduction,Nr=Ot.showCheckedStrategy,Zr=Ot.conductKeyEntities,pn=Ot.getLabelProp;return e.useMemo(function(){var _n=Jt;if(dr){var Dn=da(Jt.map(function(Zn){var ii=ft(Zn);return ii?ii.key:Zn}),Nr,Zr);_n=Dn.map(function(Zn){var ii=qt(Zn);return ii?ii.data.value:Zn})}return rn(_n,yr,ft,pn)},[Jt,yr,dr,Nr,ft])}var Pa=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],Ra=at({prefixCls:"rc-tree-select",components:{optionList:Wo},convertChildrenToData:function(){return null},flattenOptions:Bo,getLabeledValue:on,filterOptions:Dr,isValueDisabled:Jo,findValueOption:hs,omitDOMProps:function(Ot){var yr=Object(v.a)({},Ot);return Pa.forEach(function(ft){delete yr[ft]}),yr}});Ra.displayName="Select";var so=e.forwardRef(function(Jt,Ot){var yr=Jt.multiple,ft=Jt.treeCheckable,qt=Jt.treeCheckStrictly,dr=Jt.showCheckedStrategy,Nr=dr===void 0?"SHOW_CHILD":dr,Zr=Jt.labelInValue,pn=Jt.loadData,_n=Jt.treeLoadedKeys,Dn=Jt.treeNodeFilterProp,Zn=Dn===void 0?"value":Dn,ii=Jt.treeNodeLabelProp,pi=Jt.treeDataSimpleMode,ri=Jt.treeData,ji=Jt.treeExpandedKeys,ei=Jt.treeDefaultExpandedKeys,$e=Jt.treeDefaultExpandAll,Yt=Jt.children,vr=Jt.treeIcon,fr=Jt.showTreeIcon,Xr=Jt.switcherIcon,Fr=Jt.treeLine,hr=Jt.treeMotion,An=Jt.filterTreeNode,br=Jt.dropdownPopupAlign,mn=Jt.onChange,Kn=Jt.onTreeExpand,Wn=Jt.onTreeLoad,Ln=Jt.onDropdownVisibleChange,$n=Jt.onSelect,Un=Jt.onDeselect,ti=ft||qt,Xn=yr||ti,wi=ft&&!qt,Ei=qt||Zr,Zi=e.useRef(null);e.useImperativeHandle(Ot,function(){return{focus:Zi.current.focus,blur:Zi.current.blur}});var ua=function(Ea){return ri&&Ea.label||Ea.title},Xi=function(Ea){return ii?Ea[ii]:ua(Ea)},Gi=Ci(ri,Yt,{getLabelProp:ua,simpleMode:pi}),wa=Object(e.useMemo)(function(){return Bo(Gi)},[Gi]),na=Hi(wa),mo=Object(m.a)(na,2),Ca=mo[0],qi=mo[1],aa=ca(Ca,qi),$i=Object(m.a)(aa,2),Aa=$i[0],ya=$i[1],Ha=Object(e.useMemo)(function(){return wi?tr(Gi):{keyEntities:null}},[Gi,ft,qt]),ta=Ha.keyEntities,ra=Cr(Jt.defaultValue,{value:Jt.value}),_a=Object(m.a)(ra,2),Ka=_a[0],bo=_a[1],ga=function(Ea){var Jr=[],za=[];return Ea.forEach(function(rs){ya(rs)?za.push(rs):Jr.push(rs)}),{missingRawValues:Jr,existRawValues:za}},go=Object(e.useMemo)(function(){var Wa=[],Ea=[];if(sa(Ka).forEach(function(vo){if(vo&&Object(p.a)(vo)==="object"&&"value"in vo)if(vo.halfChecked&&qt){var Io=ya(vo.value);Wa.push(Io?Io.key:vo.value)}else Ea.push(vo.value);else Ea.push(vo)}),wi){var Jr=ga(Ea),za=Jr.missingRawValues,rs=Jr.existRawValues,Vo=rs.map(function(vo){return ya(vo).key}),Go=ci(Vo,!0,ta),Qo=Go.checkedKeys,Yo=Go.halfCheckedKeys;return[[].concat(Object(h.a)(za),Object(h.a)(Qo.map(function(vo){return Aa(vo).data.value}))),Yo]}return[Ea,Wa]},[Ka,Xn,Ei,ft,qt]),Sa=Object(m.a)(go,2),Va=Sa[0],uo=Sa[1],No=ha(Va,{treeConduction:wi,value:Ka,showCheckedStrategy:Nr,conductKeyEntities:ta,getEntityByValue:ya,getEntityByKey:Aa,getLabelProp:Xi}),Po=function(Ea,Jr,za){if(bo(Xn?Ea:Ea[0]),mn){var rs=Ea;if(wi&&Nr!=="SHOW_ALL"){var Vo=Ea.map(function(ho){var Ao=ya(ho);return Ao?Ao.key:ho}),Go=da(Vo,Nr,ta);rs=Go.map(function(ho){var Ao=Aa(ho);return Ao?Ao.data.value:ho})}var Qo=Jr||{triggerValue:void 0,selected:void 0},Yo=Qo.triggerValue,vo=Qo.selected,Io=Ei?rn(rs,Ka,ya,Xi):rs;if(qt){var zo=uo.map(function(ho){var Ao=Aa(ho);return Ao?Ao.data.value:ho}).filter(function(ho){return!rs.includes(ho)});Io=[].concat(Object(h.a)(Io),Object(h.a)(rn(zo,Ka,ya,Xi)))}var Fa={preValue:No,triggerValue:Yo},Ja=!0;(qt||za==="selection"&&!vo)&&(Ja=!1),Oo(Fa,Yo,Ea,Gi,Ja),ti?Fa.checked=vo:Fa.selected=vo,mn(Xn?Io:Io[0],Ei?null:rs.map(function(ho){var Ao=ya(ho);return Ao?Xi(Ao.data):null}),Fa)}},to=function(Ea,Jr,za){var rs=Ea;if(!Xn)Po([Ea],{selected:!0,triggerValue:Ea},za);else{var Vo=Tn(Va,Ea);if(wi){var Go=ga(Vo),Qo=Go.missingRawValues,Yo=Go.existRawValues,vo=Yo.map(function(Fa){return ya(Fa).key}),Io=ci(vo,!0,ta),zo=Io.checkedKeys;Vo=[].concat(Object(h.a)(Qo),Object(h.a)(zo.map(function(Fa){return Aa(Fa).data.value})))}Po(Vo,{selected:!0,triggerValue:Ea},za)}$n&&$n(rs,Jr)},Uo=function(Ea,Jr,za){var rs=Ea,Vo=en(Va,Ea);if(wi){var Go=ga(Vo),Qo=Go.missingRawValues,Yo=Go.existRawValues,vo=Yo.map(function(Fa){return ya(Fa).key}),Io=ci(vo,{checked:!1,halfCheckedKeys:uo},ta),zo=Io.checkedKeys;Vo=[].concat(Object(h.a)(Qo),Object(h.a)(zo.map(function(Fa){return Aa(Fa).data.value})))}Po(Vo,{selected:!1,triggerValue:Ea},za),Un&&Un(rs,Jr)},co=function(){Po([],null,"clear")},fa=e.useCallback(function(Wa){if(Ln){var Ea={};Object.defineProperty(Ea,"documentClickClose",{get:function(){return rt(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Ln(Wa,Ea)}},[Ln]),ro={optionLabelProp:null,optionFilterProp:Zn,dropdownAlign:br,internalProps:{mark:Be,onClear:co,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:to,onRawDeselect:Uo}};return"filterTreeNode"in Jt&&(ro.filterOption=An),e.createElement(oa.Provider,{value:{checkable:ti,loadData:pn,treeLoadedKeys:_n,onTreeLoad:Wn,checkedKeys:Va,halfCheckedKeys:uo,treeDefaultExpandAll:$e,treeExpandedKeys:ji,treeDefaultExpandedKeys:ei,onTreeExpand:Kn,treeIcon:vr,treeMotion:hr,showTreeIcon:fr,switcherIcon:Xr,treeLine:Fr,treeNodeFilterProp:Zn}},e.createElement(Ra,Object.assign({ref:Zi,mode:Xn?"multiple":null},Jt,ro,{value:No,labelInValue:!0,options:Gi,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:fa})))}),La=function(Jt){Object(s.a)(yr,Jt);var Ot=Object(u.a)(yr);function yr(){var ft;return Object(t.a)(this,yr),ft=Ot.apply(this,arguments),ft.selectRef=e.createRef(),ft.focus=function(){ft.selectRef.current.focus()},ft.blur=function(){ft.selectRef.current.blur()},ft}return Object(a.a)(yr,[{key:"render",value:function(){return e.createElement(so,Object.assign({ref:this.selectRef},this.props))}}]),yr}(e.Component);La.TreeNode=Mo,La.SHOW_ALL=Jn,La.SHOW_PARENT=mi,La.SHOW_CHILD=yi;var lo=La,So=lo,Qt=d("BGR+"),Vr=d("H84U"),cn=d("uaoM"),vn=d("1vzs"),ni=d("2jpz"),li=d("3Nzz"),fi=function(Jt){r()(yr,Jt);var Ot=n()(yr);function yr(ft){var qt;return g()(this,yr),qt=Ot.call(this,ft),qt.selectRef=e.createRef(),qt.renderTreeSelect=function(dr){var Nr=dr.getPopupContainer,Zr=dr.getPrefixCls,pn=dr.renderEmpty,_n=dr.direction,Dn=dr.virtual,Zn=dr.dropdownMatchSelectWidth,ii=qt.props,pi=ii.prefixCls,ri=ii.size,ji=ii.className,ei=ii.treeCheckable,$e=ii.multiple,Yt=ii.listHeight,vr=Yt===void 0?256:Yt,fr=ii.listItemHeight,Xr=fr===void 0?26:fr,Fr=ii.notFoundContent,hr=ii.switcherIcon,An=ii.treeLine,br=ii.getPopupContainer,mn=ii.dropdownClassName,Kn=ii.bordered,Wn=ii.treeIcon,Ln=Wn===void 0?!1:Wn,$n=Zr("select",pi),Un=Zr("select-tree",pi),ti=Zr("tree-select",pi),Xn=_()(mn,"".concat(ti,"-dropdown"),A()({},"".concat(ti,"-dropdown-rtl"),_n==="rtl")),wi=!!(ei||$e),Ei=Object(vn.a)(x()(x()({},qt.props),{multiple:wi,prefixCls:$n})),Zi=Ei.suffixIcon,ua=Ei.itemIcon,Xi=Ei.removeIcon,Gi=Ei.clearIcon,wa;Fr!==void 0?wa=Fr:wa=pn("Select");var na=Object(Qt.default)(qt.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(li.b.Consumer,null,function(mo){var Ca,qi=ri||mo,aa=_()(!pi&&ti,(Ca={},A()(Ca,"".concat($n,"-lg"),qi==="large"),A()(Ca,"".concat($n,"-sm"),qi==="small"),A()(Ca,"".concat($n,"-rtl"),_n==="rtl"),A()(Ca,"".concat($n,"-borderless"),!Kn),Ca),ji);return e.createElement(So,x()({virtual:Dn,dropdownMatchSelectWidth:Zn},na,{ref:qt.selectRef,prefixCls:$n,className:aa,listHeight:vr,listItemHeight:Xr,treeCheckable:ei&&e.createElement("span",{className:"".concat($n,"-tree-checkbox-inner")}),inputIcon:Zi,menuItemSelectedIcon:ua,removeIcon:Xi,clearIcon:Gi,switcherIcon:function(Aa){return Object(ni.a)(Un,hr,An,Aa)},showTreeIcon:Ln,notFoundContent:wa,getPopupContainer:br||Nr,treeMotion:null,dropdownClassName:Xn}))})},Object(cn.a)(ft.multiple!==!1||!ft.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),qt}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(Vr.a,null,this.renderTreeSelect)}}]),yr}(e.Component);fi.TreeNode=Mo,fi.SHOW_ALL=Jn,fi.SHOW_PARENT=mi,fi.SHOW_CHILD=yi,fi.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var di=k.a=fi},"5Uyt":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("KmBX"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},"5YOS":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("xb2K"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},"5YgA":function(H,k,d){},"5bA4":function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="LeftOutlined";var f=k.a=x.forwardRef(g)},"5hvy":function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("MlIO"))})(this,function(O){return function(x){var C=O,A=C.lib,b=A.WordArray,g=A.Hasher,f=C.x64,c=f.Word,o=C.algo,r=[],i=[],n=[];(function(){for(var t=1,a=0,s=0;s<24;s++){r[t+5*a]=(s+1)*(s+2)/2%64;var u=a%5,h=(2*t+3*a)%5;t=u,a=h}for(var t=0;t<5;t++)for(var a=0;a<5;a++)i[t+5*a]=a+(2*t+3*a)%5*5;for(var p=1,m=0;m<24;m++){for(var v=0,y=0,E=0;E<7;E++){if(p&1){var T=(1<<E)-1;T<32?y^=1<<T:v^=1<<T-32}p&128?p=p<<1^113:p<<=1}n[m]=c.create(v,y)}})();var e=[];(function(){for(var t=0;t<25;t++)e[t]=c.create()})();var l=o.SHA3=g.extend({cfg:g.cfg.extend({outputLength:512}),_doReset:function(){for(var a=this._state=[],s=0;s<25;s++)a[s]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(a,s){for(var u=this._state,h=this.blockSize/2,p=0;p<h;p++){var m=a[s+2*p],v=a[s+2*p+1];m=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,v=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360;var y=u[p];y.high^=v,y.low^=m}for(var E=0;E<24;E++){for(var T=0;T<5;T++){for(var w=0,S=0,_=0;_<5;_++){var y=u[T+5*_];w^=y.high,S^=y.low}var I=e[T];I.high=w,I.low=S}for(var T=0;T<5;T++)for(var L=e[(T+4)%5],N=e[(T+1)%5],R=N.high,D=N.low,w=L.high^(R<<1|D>>>31),S=L.low^(D<<1|R>>>31),_=0;_<5;_++){var y=u[T+5*_];y.high^=w,y.low^=S}for(var F=1;F<25;F++){var w,S,y=u[F],M=y.high,U=y.low,B=r[F];B<32?(w=M<<B|U>>>32-B,S=U<<B|M>>>32-B):(w=U<<B-32|M>>>64-B,S=M<<B-32|U>>>64-B);var j=e[i[F]];j.high=w,j.low=S}var W=e[0],V=u[0];W.high=V.high,W.low=V.low;for(var T=0;T<5;T++)for(var _=0;_<5;_++){var F=T+5*_,y=u[F],z=e[F],J=e[(T+1)%5+5*_],q=e[(T+2)%5+5*_];y.high=z.high^~J.high&q.high,y.low=z.low^~J.low&q.low}var y=u[0],de=n[E];y.high^=de.high,y.low^=de.low}},_doFinalize:function(){var a=this._data,s=a.words,u=this._nDataBytes*8,h=a.sigBytes*8,p=this.blockSize*32;s[h>>>5]|=1<<24-h%32,s[(x.ceil((h+1)/p)*p>>>5)-1]|=128,a.sigBytes=s.length*4,this._process();for(var m=this._state,v=this.cfg.outputLength/8,y=v/8,E=[],T=0;T<y;T++){var w=m[T],S=w.high,_=w.low;S=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,E.push(_),E.push(S)}return new b.init(E,v)},clone:function(){for(var a=g.clone.call(this),s=a._state=this._state.slice(0),u=0;u<25;u++)s[u]=s[u].clone();return a}});C.SHA3=g._createHelper(l),C.HmacSHA3=g._createHmacHelper(l)}(Math),O.SHA3})},"5nXd":function(H,k,d){var O=d("MFOe"),x=O.slice,C=O.pluck,A=O.each,b=O.bind,g=O.create,f=O.isList,c=O.isFunction,o=O.isObject;H.exports={createStore:n};var r={version:"2.0.12",enabled:!1,get:function(l,t){var a=this.storage.read(this._namespacePrefix+l);return this._deserialize(a,t)},set:function(l,t){return t===void 0?this.remove(l):(this.storage.write(this._namespacePrefix+l,this._serialize(t)),t)},remove:function(l){this.storage.remove(this._namespacePrefix+l)},each:function(l){var t=this;this.storage.each(function(a,s){l.call(t,t._deserialize(a),(s||"").replace(t._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(l){return this._namespacePrefix=="__storejs_"+l+"_"},createStore:function(){return n.apply(this,arguments)},addPlugin:function(l){this._addPlugin(l)},namespace:function(l){return n(this.storage,this.plugins,l)}};function i(){var e=typeof console=="undefined"?null:console;if(!e)return;var l=e.warn?e.warn:e.log;l.apply(e,arguments)}function n(e,l,t){t||(t=""),e&&!f(e)&&(e=[e]),l&&!f(l)&&(l=[l]);var a=t?"__storejs_"+t+"_":"",s=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 h={_namespacePrefix:a,_namespaceRegexp:s,_testStorage:function(v){try{var y="__storejs__test__";v.write(y,y);var E=v.read(y)===y;return v.remove(y),E}catch(T){return!1}},_assignPluginFnProp:function(v,y){var E=this[y];this[y]=function(){var w=x(arguments,0),S=this;function _(){return E?(A(arguments,function(L,N){w[N]=L}),E.apply(S,w)):void 0}var I=[_].concat(w);return v.apply(S,I)}},_serialize:function(v){return JSON.stringify(v)},_deserialize:function(v,y){if(!v)return y;var E="";try{E=JSON.parse(v)}catch(T){E=v}return E!==void 0?E:y},_addStorage:function(v){if(this.enabled)return;this._testStorage(v)&&(this.storage=v,this.enabled=!0)},_addPlugin:function(v){var y=this;if(f(v)){A(v,function(w){y._addPlugin(w)});return}var E=C(this.plugins,function(w){return v===w});if(E)return;if(this.plugins.push(v),!c(v))throw new Error("Plugins must be function values that return objects");var T=v.call(this);if(!o(T))throw new Error("Plugins must return an object of function properties");A(T,function(w,S){if(!c(w))throw new Error("Bad plugin property: "+S+" from plugin "+v.name+". Plugins should only return functions.");y._assignPluginFnProp(w,S)})},addStorage:function(v){i("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(v)}},p=g(h,r,{plugins:[]});return p.raw={},A(p,function(m,v){c(m)&&(p.raw[v]=b(p,m))}),A(e,function(m){p._addStorage(m)}),A(l,function(m){p._addPlugin(m)}),p}},"5rEg":function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lwsE"),A=d.n(C),b=d("W8MJ"),g=d.n(b),f=d("7W2i"),c=d.n(f),o=d("LQ03"),r=d.n(o),i=d("lSNA"),n=d.n(i),e=d("q1tI"),l=d("TSYQ"),t=d.n(l),a=d("BGR+"),s=d("kbBi"),u=d.n(s),h=d("CWQg"),p=d("0n0R"),m=Object(h.a)("text","input");function v(Q){return!!(Q.prefix||Q.suffix||Q.allowClear)}var y=function(Q){c()(ce,Q);var ye=r()(ce);function ce(){var Te;return A()(this,ce),Te=ye.apply(this,arguments),Te.containerRef=e.createRef(),Te.onInputMouseUp=function(Se){var le;if((le=Te.containerRef.current)===null||le===void 0?void 0:le.contains(Se.target)){var fe=Te.props.triggerFocus;fe()}},Te}return g()(ce,[{key:"renderClearIcon",value:function(Se){var le=this.props,fe=le.allowClear,Ee=le.value,Ve=le.disabled,vt=le.readOnly,et=le.inputType,Oe=le.handleReset;if(!fe)return null;var Tt=!Ve&&!vt&&Ee,Je=et===m[0]?"".concat(Se,"-textarea-clear-icon"):"".concat(Se,"-clear-icon");return e.createElement(u.a,{onClick:Oe,className:t()(Je,n()({},"".concat(Je,"-hidden"),!Tt)),role:"button"})}},{key:"renderSuffix",value:function(Se){var le=this.props,fe=le.suffix,Ee=le.allowClear;return fe||Ee?e.createElement("span",{className:"".concat(Se,"-suffix")},this.renderClearIcon(Se),fe):null}},{key:"renderLabeledIcon",value:function(Se,le){var fe,Ee=this.props,Ve=Ee.focused,vt=Ee.value,et=Ee.prefix,Oe=Ee.className,Tt=Ee.size,Je=Ee.suffix,St=Ee.disabled,Mt=Ee.allowClear,er=Ee.direction,It=Ee.style,_t=Ee.readOnly,Xe=Ee.bordered,ie=this.renderSuffix(Se);if(!v(this.props))return Object(p.a)(le,{value:vt});var X=et?e.createElement("span",{className:"".concat(Se,"-prefix")},et):null,Be=t()(Oe,"".concat(Se,"-affix-wrapper"),(fe={},n()(fe,"".concat(Se,"-affix-wrapper-focused"),Ve),n()(fe,"".concat(Se,"-affix-wrapper-disabled"),St),n()(fe,"".concat(Se,"-affix-wrapper-sm"),Tt==="small"),n()(fe,"".concat(Se,"-affix-wrapper-lg"),Tt==="large"),n()(fe,"".concat(Se,"-affix-wrapper-input-with-clear-btn"),Je&&Mt&&vt),n()(fe,"".concat(Se,"-affix-wrapper-rtl"),er==="rtl"),n()(fe,"".concat(Se,"-affix-wrapper-readonly"),_t),n()(fe,"".concat(Se,"-affix-wrapper-borderless"),!Xe),fe));return e.createElement("span",{ref:this.containerRef,className:Be,style:It,onMouseUp:this.onInputMouseUp},X,Object(p.a)(le,{style:null,value:vt,className:L(Se,Xe,Tt,St)}),ie)}},{key:"renderInputWithLabel",value:function(Se,le){var fe,Ee,Ve=this.props,vt=Ve.addonBefore,et=Ve.addonAfter,Oe=Ve.style,Tt=Ve.size,Je=Ve.className,St=Ve.direction;if(!vt&&!et)return le;var Mt="".concat(Se,"-group"),er="".concat(Mt,"-addon"),It=vt?e.createElement("span",{className:er},vt):null,_t=et?e.createElement("span",{className:er},et):null,Xe=t()("".concat(Se,"-wrapper"),(fe={},n()(fe,Mt,vt||et),n()(fe,"".concat(Mt,"-rtl"),St==="rtl"),fe)),ie=t()(Je,"".concat(Se,"-group-wrapper"),(Ee={},n()(Ee,"".concat(Se,"-group-wrapper-sm"),Tt==="small"),n()(Ee,"".concat(Se,"-group-wrapper-lg"),Tt==="large"),n()(Ee,"".concat(Se,"-group-wrapper-rtl"),St==="rtl"),Ee));return e.createElement("span",{className:ie,style:Oe},e.createElement("span",{className:Xe},It,Object(p.a)(le,{style:null}),_t))}},{key:"renderTextAreaWithClearIcon",value:function(Se,le){var fe,Ee=this.props,Ve=Ee.value,vt=Ee.allowClear,et=Ee.className,Oe=Ee.style,Tt=Ee.direction,Je=Ee.bordered;if(!vt)return Object(p.a)(le,{value:Ve});var St=t()(et,"".concat(Se,"-affix-wrapper"),"".concat(Se,"-affix-wrapper-textarea-with-clear-btn"),(fe={},n()(fe,"".concat(Se,"-affix-wrapper-rtl"),Tt==="rtl"),n()(fe,"".concat(Se,"-affix-wrapper-borderless"),!Je),fe));return e.createElement("span",{className:St,style:Oe},Object(p.a)(le,{style:null,value:Ve}),this.renderClearIcon(Se))}},{key:"render",value:function(){var Se=this.props,le=Se.prefixCls,fe=Se.inputType,Ee=Se.element;return fe===m[0]?this.renderTextAreaWithClearIcon(le,Ee):this.renderInputWithLabel(le,this.renderLabeledIcon(le,Ee))}}]),ce}(e.Component),E=y,T=d("H84U"),w=d("3Nzz"),S=d("uaoM");function _(Q){return typeof Q=="undefined"||Q===null?"":Q}function I(Q,ye,ce){if(ce){var Te=ye;if(ye.type==="click"){Te=Object.create(ye),Te.target=Q,Te.currentTarget=Q;var Se=Q.value;Q.value="",ce(Te),Q.value=Se;return}ce(Te)}}function L(Q,ye,ce,Te,Se){var le;return t()(Q,(le={},n()(le,"".concat(Q,"-sm"),ce==="small"),n()(le,"".concat(Q,"-lg"),ce==="large"),n()(le,"".concat(Q,"-disabled"),Te),n()(le,"".concat(Q,"-rtl"),Se==="rtl"),n()(le,"".concat(Q,"-borderless"),!ye),le))}var N=function(Q){c()(ce,Q);var ye=r()(ce);function ce(Te){var Se;A()(this,ce),Se=ye.call(this,Te),Se.direction="ltr",Se.focus=function(){Se.input.focus()},Se.saveClearableInput=function(fe){Se.clearableInput=fe},Se.saveInput=function(fe){Se.input=fe},Se.onFocus=function(fe){var Ee=Se.props.onFocus;Se.setState({focused:!0},Se.clearPasswordValueAttribute),Ee&&Ee(fe)},Se.onBlur=function(fe){var Ee=Se.props.onBlur;Se.setState({focused:!1},Se.clearPasswordValueAttribute),Ee&&Ee(fe)},Se.handleReset=function(fe){Se.setValue("",function(){Se.focus()}),I(Se.input,fe,Se.props.onChange)},Se.renderInput=function(fe,Ee,Ve){var vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},et=Se.props,Oe=et.className,Tt=et.addonBefore,Je=et.addonAfter,St=et.size,Mt=et.disabled,er=Object(a.default)(Se.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",x()({autoComplete:vt.autoComplete},er,{onChange:Se.handleChange,onFocus:Se.onFocus,onBlur:Se.onBlur,onKeyDown:Se.handleKeyDown,className:t()(L(fe,Ve,St||Ee,Mt,Se.direction),n()({},Oe,Oe&&!Tt&&!Je)),ref:Se.saveInput}))},Se.clearPasswordValueAttribute=function(){Se.removePasswordTimeout=setTimeout(function(){Se.input&&Se.input.getAttribute("type")==="password"&&Se.input.hasAttribute("value")&&Se.input.removeAttribute("value")})},Se.handleChange=function(fe){Se.setValue(fe.target.value,Se.clearPasswordValueAttribute),I(Se.input,fe,Se.props.onChange)},Se.handleKeyDown=function(fe){var Ee=Se.props,Ve=Ee.onPressEnter,vt=Ee.onKeyDown;fe.keyCode===13&&Ve&&Ve(fe),vt&&vt(fe)},Se.renderComponent=function(fe){var Ee=fe.getPrefixCls,Ve=fe.direction,vt=fe.input,et=Se.state,Oe=et.value,Tt=et.focused,Je=Se.props,St=Je.prefixCls,Mt=Je.bordered,er=Mt===void 0?!0:Mt,It=Ee("input",St);return Se.direction=Ve,e.createElement(w.b.Consumer,null,function(_t){return e.createElement(E,x()({size:_t},Se.props,{prefixCls:It,inputType:"input",value:_(Oe),element:Se.renderInput(It,_t,er,vt),handleReset:Se.handleReset,ref:Se.saveClearableInput,direction:Ve,focused:Tt,triggerFocus:Se.focus,bordered:er}))})};var le=typeof Te.value=="undefined"?Te.defaultValue:Te.value;return Se.state={value:le,focused:!1,prevValue:Te.value},Se}return g()(ce,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(Se){return v(Se)!==v(this.props)&&Object(S.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(Se,le){this.props.value===void 0&&this.setState({value:Se},le)}},{key:"render",value:function(){return e.createElement(T.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(Se,le){var fe=le.prevValue,Ee={prevValue:Se.value};return(Se.value!==void 0||fe!==Se.value)&&(Ee.value=Se.value),Ee}}]),ce}(e.Component);N.defaultProps={type:"text"};var R=N,D=function(ye){return e.createElement(T.a,null,function(ce){var Te,Se=ce.getPrefixCls,le=ce.direction,fe=ye.prefixCls,Ee=ye.className,Ve=Ee===void 0?"":Ee,vt=Se("input-group",fe),et=t()(vt,(Te={},n()(Te,"".concat(vt,"-lg"),ye.size==="large"),n()(Te,"".concat(vt,"-sm"),ye.size==="small"),n()(Te,"".concat(vt,"-compact"),ye.compact),n()(Te,"".concat(vt,"-rtl"),le==="rtl"),Te),Ve);return e.createElement("span",{className:et,style:ye.style,onMouseEnter:ye.onMouseEnter,onMouseLeave:ye.onMouseLeave,onFocus:ye.onFocus,onBlur:ye.onBlur},ye.children)})},F=D,M=d("c+Xe"),U=d("w6Tc"),B=d.n(U),j=d("gZBC"),W=d.n(j),V=d("2/Rp"),z=function(Q,ye){var ce={};for(var Te in Q)Object.prototype.hasOwnProperty.call(Q,Te)&&ye.indexOf(Te)<0&&(ce[Te]=Q[Te]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Te=Object.getOwnPropertySymbols(Q);Se<Te.length;Se++)ye.indexOf(Te[Se])<0&&Object.prototype.propertyIsEnumerable.call(Q,Te[Se])&&(ce[Te[Se]]=Q[Te[Se]]);return ce},J=e.forwardRef(function(Q,ye){var ce=e.useRef(null),Te=function(Oe){var Tt=Q.onChange,Je=Q.onSearch;Oe&&Oe.target&&Oe.type==="click"&&Je&&Je(Oe.target.value,Oe),Tt&&Tt(Oe)},Se=function(Oe){var Tt;document.activeElement===((Tt=ce.current)===null||Tt===void 0?void 0:Tt.input)&&Oe.preventDefault()},le=function(Oe){var Tt,Je=Q.onSearch,St=Q.loading,Mt=Q.disabled;if(St||Mt)return;Je&&Je((Tt=ce.current)===null||Tt===void 0?void 0:Tt.input.value,Oe)},fe=function(Oe){var Tt=Q.enterButton,Je=Q.size;return Tt?e.createElement(w.b.Consumer,{key:"enterButton"},function(St){return e.createElement(V.a,{className:"".concat(Oe,"-button"),type:"primary",size:Je||St},e.createElement(W.a,null))}):e.createElement(W.a,{className:"".concat(Oe,"-icon"),key:"loadingIcon"})},Ee=function(Oe){var Tt=Q.suffix,Je=Q.enterButton,St=Q.loading;if(St&&!Je)return[Tt,fe(Oe)];if(Je)return Tt;var Mt=e.createElement(B.a,{className:"".concat(Oe,"-icon"),key:"searchIcon",onClick:le});return Tt?[Object(p.c)(Tt,null,{key:"suffix"}),Mt]:Mt},Ve=function(Oe,Tt){var Je=Q.enterButton,St=Q.disabled,Mt=Q.addonAfter,er=Q.loading,It="".concat(Oe,"-button");if(er&&Je)return[fe(Oe),Mt];if(!Je)return Mt;var _t,Xe=Je,ie=Xe.type&&Xe.type.__ANT_BUTTON===!0;return ie||Xe.type==="button"?_t=Object(p.a)(Xe,x()({onMouseDown:Se,onClick:le,key:"enterButton"},ie?{className:It,size:Tt}:{})):_t=e.createElement(V.a,{className:It,type:"primary",size:Tt,disabled:St,key:"enterButton",onMouseDown:Se,onClick:le},Je===!0?e.createElement(B.a,null):Je),Mt?[_t,Object(p.c)(Mt,null,{key:"addonAfter"})]:_t},vt=function(Oe){var Tt=Oe.getPrefixCls,Je=Oe.direction,St=Q.prefixCls,Mt=Q.inputPrefixCls,er=Q.enterButton,It=Q.className,_t=Q.size,Xe=z(Q,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete Xe.onSearch,delete Xe.loading;var ie=Tt("input-search",St),X=Tt("input",Mt),Be=function(Z){var nt;if(er){var ct;nt=t()(ie,It,(ct={},n()(ct,"".concat(ie,"-rtl"),Je==="rtl"),n()(ct,"".concat(ie,"-enter-button"),!!er),n()(ct,"".concat(ie,"-").concat(Z),!!Z),ct))}else nt=t()(ie,It,n()({},"".concat(ie,"-rtl"),Je==="rtl"));return nt};return e.createElement(w.b.Consumer,null,function(Ce){return e.createElement(R,x()({ref:Object(M.a)(ce,ye),onPressEnter:le},Xe,{size:_t||Ce,prefixCls:X,addonAfter:Ve(ie,_t||Ce),suffix:Ee(ie),onChange:Te,className:Be(_t||Ce)}))})};return e.createElement(T.a,null,vt)});J.defaultProps={enterButton:!1},J.displayName="Search";var q=J,de=d("Y1PL"),ae=function(Q){c()(ce,Q);var ye=r()(ce);function ce(Te){var Se;A()(this,ce),Se=ye.call(this,Te),Se.focus=function(){Se.resizableTextArea.textArea.focus()},Se.saveTextArea=function(fe){Se.resizableTextArea=fe==null?void 0:fe.resizableTextArea},Se.saveClearableInput=function(fe){Se.clearableInput=fe},Se.handleChange=function(fe){Se.setValue(fe.target.value),I(Se.resizableTextArea.textArea,fe,Se.props.onChange)},Se.handleReset=function(fe){Se.setValue("",function(){Se.focus()}),I(Se.resizableTextArea.textArea,fe,Se.props.onChange)},Se.renderTextArea=function(fe,Ee){return e.createElement(de.default,x()({},Object(a.default)(Se.props,["allowClear","bordered"]),{className:t()(Se.props.className,n()({},"".concat(fe,"-borderless"),!Ee)),prefixCls:fe,onChange:Se.handleChange,ref:Se.saveTextArea}))},Se.renderComponent=function(fe){var Ee=fe.getPrefixCls,Ve=fe.direction,vt=Se.state.value,et=Se.props,Oe=et.prefixCls,Tt=et.bordered,Je=Tt===void 0?!0:Tt,St=Ee("input",Oe);return e.createElement(E,x()({},Se.props,{prefixCls:St,direction:Ve,inputType:"text",value:_(vt),element:Se.renderTextArea(St,Je),handleReset:Se.handleReset,ref:Se.saveClearableInput,triggerFocus:Se.focus,bordered:Je}))};var le=typeof Te.value=="undefined"?Te.defaultValue:Te.value;return Se.state={value:le},Se}return g()(ce,[{key:"setValue",value:function(Se,le){this.props.value===void 0&&this.setState({value:Se},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(Se){return Se.value!==void 0?{value:Se.value}:null}}]),ce}(e.Component),ve=ae,_e=d("J4zp"),Ie=d.n(_e),He=d("qPY4"),me=d.n(He),ke=d("fUL4"),se=d.n(ke),te=function(Q,ye){var ce={};for(var Te in Q)Object.prototype.hasOwnProperty.call(Q,Te)&&ye.indexOf(Te)<0&&(ce[Te]=Q[Te]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,Te=Object.getOwnPropertySymbols(Q);Se<Te.length;Se++)ye.indexOf(Te[Se])<0&&Object.prototype.propertyIsEnumerable.call(Q,Te[Se])&&(ce[Te[Se]]=Q[Te[Se]]);return ce},Ge={click:"onClick",hover:"onMouseOver"},oe=e.forwardRef(function(Q,ye){var ce=Object(e.useState)(!1),Te=Ie()(ce,2),Se=Te[0],le=Te[1],fe=function(){var et=Q.disabled;if(et)return;le(!Se)},Ee=function(et){var Oe,Tt=Q.action,Je=Q.iconRender,St=Je===void 0?function(){return null}:Je,Mt=Ge[Tt]||"",er=St(Se),It=(Oe={},n()(Oe,Mt,fe),n()(Oe,"className","".concat(et,"-icon")),n()(Oe,"key","passwordIcon"),n()(Oe,"onMouseDown",function(Xe){Xe.preventDefault()}),n()(Oe,"onMouseUp",function(Xe){Xe.preventDefault()}),Oe);return e.cloneElement(e.isValidElement(er)?er:e.createElement("span",null,er),It)},Ve=function(et){var Oe=et.getPrefixCls,Tt=Q.className,Je=Q.prefixCls,St=Q.inputPrefixCls,Mt=Q.size,er=Q.visibilityToggle,It=te(Q,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),_t=Oe("input",St),Xe=Oe("input-password",Je),ie=er&&Ee(Xe),X=t()(Xe,Tt,n()({},"".concat(Xe,"-").concat(Mt),!!Mt)),Be=x()(x()({},Object(a.default)(It,["suffix","iconRender"])),{type:Se?"text":"password",className:X,prefixCls:_t,suffix:ie});return Mt&&(Be.size=Mt),e.createElement(R,x()({ref:ye},Be))};return e.createElement(T.a,null,Ve)});oe.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(ye){return ye?e.createElement(me.a,null):e.createElement(se.a,null)}},oe.displayName="Password";var Y=oe;R.Group=F,R.Search=q,R.TextArea=ve,R.Password=Y;var G=k.a=R},"5s0K":function(H,k,d){var O=d("bYtY");function x(){var C=[],A={},b;return{add:function(g,f,c,o,r){return O.isString(o)&&(r=o,o=0),A[g.id]?!1:(A[g.id]=1,C.push({el:g,target:f,time:c,delay:o,easing:r}),!0)},done:function(g){return b=g,this},start:function(){for(var g=C.length,f=0,c=C.length;f<c;f++){var o=C[f];o.el.animateTo(o.target,o.time,o.delay,o.easing,r)}return this;function r(){g--,g||(C.length=0,A={},b&&b())}}}}k.createWrap=x},"5yev":function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},"6/nd":function(H,k,d){var O=d("ProS");O.registerAction("legendScroll","legendscroll",function(x,C){var A=x.scrollDataIndex;A!=null&&C.eachComponent({mainType:"legend",subType:"scroll",query:x},function(b){b.setScrollDataIndex(A)})})},"62sa":function(H,k,d){var O=d("bYtY"),x=d("4NO4"),C=x.makeInner,A=d("zTMp"),b=d("Ez2D"),g=O.each,f=O.curry,c=C();function o(p,m,v){var y=p.currTrigger,E=[p.x,p.y],T=p,w=p.dispatchAction||O.bind(v.dispatchAction,v),S=m.getComponent("axisPointer").coordSysAxesInfo;if(!S)return;h(E)&&(E=b({seriesIndex:T.seriesIndex,dataIndex:T.dataIndex},m).point);var _=h(E),I=T.axesInfo,L=S.axesInfo,N=y==="leave"||h(E),R={},D={},F={list:[],map:{}},M={showPointer:f(n,D),showTooltip:f(e,F)};g(S.coordSysMap,function(B,j){var W=_||B.containPoint(E);g(S.coordSysAxesInfo[j],function(V,z){var J=V.axis,q=s(I,V);if(!N&&W&&(!I||q)){var de=q&&q.value;de==null&&!_&&(de=J.pointToData(E)),de!=null&&r(V,de,M,!1,R)}})});var U={};return g(L,function(B,j){var W=B.linkGroup;W&&!D[j]&&g(W.axesInfo,function(V,z){var J=D[z];if(V!==B&&J){var q=J.value;W.mapper&&(q=B.axis.scale.parse(W.mapper(q,u(V),u(B)))),U[B.key]=q}})}),g(U,function(B,j){r(L[j],B,M,!0,R)}),l(D,L,R),t(F,E,p,w),a(L,w,v),R}function r(p,m,v,y,E){var T=p.axis;if(T.scale.isBlank()||!T.containData(m))return;if(!p.involveSeries){v.showPointer(p,m);return}var w=i(m,p),S=w.payloadBatch,_=w.snapToValue;S[0]&&E.seriesIndex==null&&O.extend(E,S[0]),!y&&p.snap&&(T.containData(_)&&_!=null&&(m=_)),v.showPointer(p,m,S,E),v.showTooltip(p,w,_)}function i(p,m){var v=m.axis,y=v.dim,E=p,T=[],w=Number.MAX_VALUE,S=-1;return g(m.seriesModels,function(_,I){var L=_.getData().mapDimension(y,!0),N,R;if(_.getAxisTooltipData){var D=_.getAxisTooltipData(L,p,v);R=D.dataIndices,N=D.nestestValue}else{if(R=_.getData().indicesOfNearest(L[0],p,v.type==="category"?.5:null),!R.length)return;N=_.getData().get(L[0],R[0])}if(N==null||!isFinite(N))return;var F=p-N,M=Math.abs(F);M<=w&&((M<w||F>=0&&S<0)&&(w=M,S=F,E=N,T.length=0),g(R,function(U){T.push({seriesIndex:_.seriesIndex,dataIndexInside:U,dataIndex:_.getData().getRawIndex(U)})}))}),{payloadBatch:T,snapToValue:E}}function n(p,m,v,y){p[m.key]={value:v,payloadBatch:y}}function e(p,m,v,y){var E=v.payloadBatch,T=m.axis,w=T.model,S=m.axisPointerModel;if(!m.triggerTooltip||!E.length)return;var _=m.coordSys.model,I=A.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:w.componentIndex,axisType:w.type,axisId:w.id,value:y,valueLabelOpt:{precision:S.get("label.precision"),formatter:S.get("label.formatter")},seriesDataIndices:E.slice()})}function l(p,m,v){var y=v.axesInfo=[];g(m,function(E,T){var w=E.axisPointerModel.option,S=p[T];S?(!E.useHandle&&(w.status="show"),w.value=S.value,w.seriesDataIndices=(S.payloadBatch||[]).slice()):!E.useHandle&&(w.status="hide"),w.status==="show"&&y.push({axisDim:E.axis.dim,axisIndex:E.axis.model.componentIndex,value:w.value})})}function t(p,m,v,y){if(h(m)||!p.list.length){y({type:"hideTip"});return}var E=((p.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};y({type:"showTip",escapeConnect:!0,x:m[0],y:m[1],tooltipOption:v.tooltipOption,position:v.position,dataIndexInside:E.dataIndexInside,dataIndex:E.dataIndex,seriesIndex:E.seriesIndex,dataByCoordSys:p.list})}function a(p,m,v){var y=v.getZr(),E="axisPointerLastHighlights",T=c(y)[E]||{},w=c(y)[E]={};g(p,function(I,L){var N=I.axisPointerModel.option;N.status==="show"&&g(N.seriesDataIndices,function(R){var D=R.seriesIndex+" | "+R.dataIndex;w[D]=R})});var S=[],_=[];O.each(T,function(I,L){!w[L]&&_.push(I)}),O.each(w,function(I,L){!T[L]&&S.push(I)}),_.length&&v.dispatchAction({type:"downplay",escapeConnect:!0,batch:_}),S.length&&v.dispatchAction({type:"highlight",escapeConnect:!0,batch:S})}function s(p,m){for(var v=0;v<(p||[]).length;v++){var y=p[v];if(m.axis.dim===y.axisDim&&m.axis.model.componentIndex===y.axisIndex)return y}}function u(p){var m=p.axis.model,v={},y=v.axisDim=p.axis.dim;return v.axisIndex=v[y+"AxisIndex"]=m.componentIndex,v.axisName=v[y+"AxisName"]=m.name,v.axisId=v[y+"AxisId"]=m.id,v}function h(p){return!p||p[0]==null||isNaN(p[0])||p[1]==null||isNaN(p[1])}H.exports=o},"6BzB":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.shrinkBuf=O,k.arraySet=x,k.flattenChunks=C,k.Buf32=k.Buf16=k.Buf8=void 0;function O(f,c){return f.length===c?f:f.subarray?f.subarray(0,c):(f.length=c,f)}function x(f,c,o,r,i){if(c.subarray&&f.subarray){f.set(c.subarray(o,o+r),i);return}for(var n=0;n<r;n++)f[i+n]=c[o+n]}function C(f){var c,o,r,i,n,e;for(r=0,c=0,o=f.length;c<o;c++)r+=f[c].length;for(e=new Uint8Array(r),i=0,c=0,o=f.length;c<o;c++)n=f[c],e.set(n,i),i+=n.length;return e}var A=Uint8Array;k.Buf8=A;var b=Uint16Array;k.Buf16=b;var g=Int32Array;k.Buf32=g},"6D9b":function(H,k,d){},"6GrX":function(H,k,d){var O=d("mFDi"),x=d("Xnb7"),C=d("bYtY"),A=C.getContext,b=C.extend,g=C.retrieve2,f=C.retrieve3,c=C.trim,o={},r=0,i=5e3,n=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",l={};function t(F,M){l[F]=M}function a(F,M){M=M||e;var U=F+":"+M;if(o[U])return o[U];for(var B=(F+"").split(`
`),j=0,W=0,V=B.length;W<V;W++)j=Math.max(I(B[W],M).width,j);return r>i&&(r=0,o={}),r++,o[U]=j,j}function s(F,M,U,B,j,W,V,z){return V?h(F,M,U,B,j,W,V,z):u(F,M,U,B,j,W,z)}function u(F,M,U,B,j,W,V){var z=L(F,M,j,W,V),J=a(F,M);j&&(J+=j[1]+j[3]);var q=z.outerHeight,de=p(0,J,U),ae=m(0,q,B),ve=new O(de,ae,J,q);return ve.lineHeight=z.lineHeight,ve}function h(F,M,U,B,j,W,V,z){var J=N(F,{rich:V,truncate:z,font:M,textAlign:U,textPadding:j,textLineHeight:W}),q=J.outerWidth,de=J.outerHeight,ae=p(0,q,U),ve=m(0,de,B);return new O(ae,ve,q,de)}function p(F,M,U){return U==="right"?F-=M:U==="center"&&(F-=M/2),F}function m(F,M,U){return U==="middle"?F-=M/2:U==="bottom"&&(F-=M),F}function v(F,M,U){var B=M.textPosition,j=M.textDistance,W=U.x,V=U.y;j=j||0;var z=U.height,J=U.width,q=z/2,de="left",ae="top";switch(B){case"left":W-=j,V+=q,de="right",ae="middle";break;case"right":W+=j+J,V+=q,ae="middle";break;case"top":W+=J/2,V-=j,de="center",ae="bottom";break;case"bottom":W+=J/2,V+=z+j,de="center";break;case"inside":W+=J/2,V+=q,de="center",ae="middle";break;case"insideLeft":W+=j,V+=q,ae="middle";break;case"insideRight":W+=J-j,V+=q,de="right",ae="middle";break;case"insideTop":W+=J/2,V+=j,de="center";break;case"insideBottom":W+=J/2,V+=z-j,de="center",ae="bottom";break;case"insideTopLeft":W+=j,V+=j;break;case"insideTopRight":W+=J-j,V+=j,de="right";break;case"insideBottomLeft":W+=j,V+=z-j,ae="bottom";break;case"insideBottomRight":W+=J-j,V+=z-j,de="right",ae="bottom";break}return F=F||{},F.x=W,F.y=V,F.textAlign=de,F.textVerticalAlign=ae,F}function y(F,M,U){var B={textPosition:F,textDistance:U};return v({},B,M)}function E(F,M,U,B,j){if(!M)return"";var W=(F+"").split(`
`);j=T(M,U,B,j);for(var V=0,z=W.length;V<z;V++)W[V]=w(W[V],j);return W.join(`
`)}function T(F,M,U,B){B=b({},B),B.font=M;var U=g(U,"...");B.maxIterations=g(B.maxIterations,2);var j=B.minChar=g(B.minChar,0);B.cnCharWidth=a("\u56FD",M);var W=B.ascCharWidth=a("a",M);B.placeholder=g(B.placeholder,"");for(var V=F=Math.max(0,F-1),z=0;z<j&&V>=W;z++)V-=W;var J=a(U,M);return J>V&&(U="",J=0),V=F-J,B.ellipsis=U,B.ellipsisWidth=J,B.contentWidth=V,B.containerWidth=F,B}function w(F,M){var U=M.containerWidth,B=M.font,j=M.contentWidth;if(!U)return"";var W=a(F,B);if(W<=U)return F;for(var V=0;;V++){if(W<=j||V>=M.maxIterations){F+=M.ellipsis;break}var z=V===0?S(F,j,M.ascCharWidth,M.cnCharWidth):W>0?Math.floor(F.length*j/W):0;F=F.substr(0,z),W=a(F,B)}return F===""&&(F=M.placeholder),F}function S(F,M,U,B){for(var j=0,W=0,V=F.length;W<V&&j<M;W++){var z=F.charCodeAt(W);j+=0<=z&&z<=127?U:B}return W}function _(F){return a("\u56FD",F)}function I(F,M){return l.measureText(F,M)}l.measureText=function(F,M){var U=A();return U.font=M||e,U.measureText(F)};function L(F,M,U,B,j){F!=null&&(F+="");var W=g(B,_(M)),V=F?F.split(`
`):[],z=V.length*W,J=z,q=!0;if(U&&(J+=U[0]+U[2]),F&&j){q=!1;var de=j.outerHeight,ae=j.outerWidth;if(de!=null&&J>de)F="",V=[];else if(ae!=null)for(var ve=T(ae-(U?U[1]+U[3]:0),M,j.ellipsis,{minChar:j.minChar,placeholder:j.placeholder}),_e=0,Ie=V.length;_e<Ie;_e++)V[_e]=w(V[_e],ve)}return{lines:V,height:z,outerHeight:J,lineHeight:W,canCacheByTextString:q}}function N(F,M){var U={lines:[],width:0,height:0};if(F!=null&&(F+=""),!F)return U;for(var B=n.lastIndex=0,j;(j=n.exec(F))!=null;){var W=j.index;W>B&&R(U,F.substring(B,W)),R(U,j[2],j[1]),B=n.lastIndex}B<F.length&&R(U,F.substring(B,F.length));var V=U.lines,z=0,J=0,q=[],de=M.textPadding,ae=M.truncate,ve=ae&&ae.outerWidth,_e=ae&&ae.outerHeight;de&&(ve!=null&&(ve-=de[1]+de[3]),_e!=null&&(_e-=de[0]+de[2]));for(var Ie=0;Ie<V.length;Ie++){for(var He=V[Ie],me=0,ke=0,se=0;se<He.tokens.length;se++){var te=He.tokens[se],Ge=te.styleName&&M.rich[te.styleName]||{},oe=te.textPadding=Ge.textPadding,Y=te.font=Ge.font||M.font,G=te.textHeight=g(Ge.textHeight,_(Y));if(oe&&(G+=oe[0]+oe[2]),te.height=G,te.lineHeight=f(Ge.textLineHeight,M.textLineHeight,G),te.textAlign=Ge&&Ge.textAlign||M.textAlign,te.textVerticalAlign=Ge&&Ge.textVerticalAlign||"middle",_e!=null&&z+te.lineHeight>_e)return{lines:[],width:0,height:0};te.textWidth=a(te.text,Y);var Q=Ge.textWidth,ye=Q==null||Q==="auto";if(typeof Q=="string"&&Q.charAt(Q.length-1)==="%")te.percentWidth=Q,q.push(te),Q=0;else{if(ye){Q=te.textWidth;var ce=Ge.textBackgroundColor,Te=ce&&ce.image;Te&&(Te=x.findExistImage(Te),x.isImageReady(Te)&&(Q=Math.max(Q,Te.width*G/Te.height)))}var Se=oe?oe[1]+oe[3]:0;Q+=Se;var le=ve!=null?ve-ke:null;le!=null&&le<Q&&(!ye||le<Se?(te.text="",te.textWidth=Q=0):(te.text=E(te.text,le-Se,Y,ae.ellipsis,{minChar:ae.minChar}),te.textWidth=a(te.text,Y),Q=te.textWidth+Se))}ke+=te.width=Q,Ge&&(me=Math.max(me,te.lineHeight))}He.width=ke,He.lineHeight=me,z+=me,J=Math.max(J,ke)}U.outerWidth=U.width=g(M.textWidth,J),U.outerHeight=U.height=g(M.textHeight,z),de&&(U.outerWidth+=de[1]+de[3],U.outerHeight+=de[0]+de[2]);for(var Ie=0;Ie<q.length;Ie++){var te=q[Ie],fe=te.percentWidth;te.width=parseInt(fe,10)/100*J}return U}function R(F,M,U){for(var B=M==="",j=M.split(`
`),W=F.lines,V=0;V<j.length;V++){var z=j[V],J={styleName:U,text:z,isLineHolder:!z&&!B};if(V)W.push({tokens:[J]});else{var q=(W[W.length-1]||(W[0]={tokens:[]})).tokens,de=q.length;de===1&&q[0].isLineHolder?q[0]=J:(z||!de||B)&&q.push(J)}}}function D(F){var M=(F.fontSize||F.fontFamily)&&[F.fontStyle,F.fontWeight,(F.fontSize||12)+"px",F.fontFamily||"sans-serif"].join(" ");return M&&c(M)||F.textFont||F.font}k.DEFAULT_FONT=e,k.$override=t,k.getWidth=a,k.getBoundingRect=s,k.adjustTextX=p,k.adjustTextY=m,k.calculateTextPosition=v,k.adjustTextPositionOnRect=y,k.truncateText=E,k.getLineHeight=_,k.measureText=I,k.parsePlainText=L,k.parseRichText=N,k.makeFont=D},"6Hfg":function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("FhB9")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="SwapRightOutlined";var c=A.forwardRef(f);k.default=c},"6Ic6":function(H,k,d){var O=d("bYtY"),x=O.each,C=d("4fz+"),A=d("iRjW"),b=d("Yl7c"),g=d("4NO4"),f=d("IwbS"),c=d("9H2F"),o=c.createTask,r=d("zM3Q"),i=g.makeInner(),n=r();function e(){this.group=new C,this.uid=A.getUID("viewChart"),this.renderTask=o({plan:s,reset:u}),this.renderTask.context={view:this}}e.prototype={type:"chart",init:function(m,v){},render:function(m,v,y,E){},highlight:function(m,v,y,E){a(m.getData(),E,"emphasis")},downplay:function(m,v,y,E){a(m.getData(),E,"normal")},remove:function(m,v){this.group.removeAll()},dispose:function(){},incrementalPrepareRender:null,incrementalRender:null,updateTransform:null,filterForExposedEvent:null};var l=e.prototype;l.updateView=l.updateLayout=l.updateVisual=function(m,v,y,E){this.render(m,v,y,E)};function t(m,v,y){if(m&&(m.trigger(v,y),m.isGroup&&!f.isHighDownDispatcher(m)))for(var E=0,T=m.childCount();E<T;E++)t(m.childAt(E),v,y)}function a(m,v,y){var E=g.queryDataIndex(m,v),T=v&&v.highlightKey!=null?f.getHighlightDigit(v.highlightKey):null;E!=null?x(g.normalizeToArray(E),function(w){t(m.getItemGraphicEl(w),y,T)}):m.eachItemGraphicEl(function(w){t(w,y,T)})}b.enableClassExtend(e,["dispose"]),b.enableClassManagement(e,{registerWhenExtend:!0}),e.markUpdateMethod=function(m,v){i(m).updateMethod=v};function s(m){return n(m.model)}function u(m){var v=m.model,y=m.ecModel,E=m.api,T=m.payload,w=v.pipelineContext.progressiveRender,S=m.view,_=T&&i(T).updateMethod,I=w?"incrementalPrepareRender":_&&S[_]?_:"render";return I!=="render"&&S[I](v,y,E,T),h[I]}var h={incrementalPrepareRender:{progress:function(m,v){v.view.incrementalRender(m,v.model,v.ecModel,v.api,v.payload)}},render:{forceFirstProgress:!0,progress:function(m,v){v.view.render(v.model,v.ecModel,v.api,v.payload)}}},p=e;H.exports=p},"6MrE":function(H,k,d){},"6Qwc":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var 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"};k.default=O},"6SEX":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("qWUW"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},"6UJt":function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("v56E"),A=d.n(C),b=d("R9oj"),g=d("5NDa")},"6VBw":function(H,k,d){"use strict";var O=d("VTBJ"),x=d("ODXe"),C=d("rePB"),A=d("Ff2n"),b=d("q1tI"),g=d("TSYQ"),f=d.n(g),c=d("Pw59"),o=d("Qi1f"),r=["icon","className","onClick","style","primaryColor","secondaryColor"],i={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function n(m){var v=m.primaryColor,y=m.secondaryColor;i.primaryColor=v,i.secondaryColor=y||Object(o.b)(v),i.calculated=!!y}function e(){return Object(O.a)({},i)}var l=function(v){var y=v.icon,E=v.className,T=v.onClick,w=v.style,S=v.primaryColor,_=v.secondaryColor,I=Object(A.a)(v,r),L=i;if(S&&(L={primaryColor:S,secondaryColor:_||Object(o.b)(S)}),Object(o.f)(),Object(o.g)(Object(o.c)(y),"icon should be icon definiton, but got ".concat(y)),!Object(o.c)(y))return null;var N=y;return N&&typeof N.icon=="function"&&(N=Object(O.a)(Object(O.a)({},N),{},{icon:N.icon(L.primaryColor,L.secondaryColor)})),Object(o.a)(N.icon,"svg-".concat(N.name),Object(O.a)({className:E,onClick:T,style:w,"data-icon":N.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},I))};l.displayName="IconReact",l.getTwoToneColors=e,l.setTwoToneColors=n;var t=l;function a(m){var v=Object(o.d)(m),y=Object(x.a)(v,2),E=y[0],T=y[1];return t.setTwoToneColors({primaryColor:E,secondaryColor:T})}function s(){var m=t.getTwoToneColors();return m.calculated?[m.primaryColor,m.secondaryColor]:m.primaryColor}var u=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];a("#1890ff");var h=b.forwardRef(function(m,v){var y,E=m.className,T=m.icon,w=m.spin,S=m.rotate,_=m.tabIndex,I=m.onClick,L=m.twoToneColor,N=Object(A.a)(m,u),R=b.useContext(c.a),D=R.prefixCls,F=D===void 0?"anticon":D,M=f()(F,(y={},Object(C.a)(y,"".concat(F,"-").concat(T.name),!!T.name),Object(C.a)(y,"".concat(F,"-spin"),!!w||T.name==="loading"),y),E),U=_;U===void 0&&I&&(U=-1);var B=S?{msTransform:"rotate(".concat(S,"deg)"),transform:"rotate(".concat(S,"deg)")}:void 0,j=Object(o.d)(L),W=Object(x.a)(j,2),V=W[0],z=W[1];return b.createElement("span",Object(O.a)(Object(O.a)({role:"img","aria-label":T.name},N),{},{ref:v,tabIndex:U,onClick:I,className:M}),b.createElement(t,{icon:T,primaryColor:V,secondaryColor:z,style:B}))});h.displayName="AntdIcon",h.getTwoToneColor=s,h.setTwoToneColor=a;var p=k.a=h},"6cGi":function(H,k,d){"use strict";d.d(k,"a",function(){return o});var O=d("ODXe"),x=d("q1tI");function C(r){var i=x.useRef();i.current=r;var n=x.useCallback(function(){for(var e,l=arguments.length,t=new Array(l),a=0;a<l;a++)t[a]=arguments[a];return(e=i.current)===null||e===void 0?void 0:e.call.apply(e,[i].concat(t))},[]);return n}var A=d("TNol"),b=d("dm2S"),g;(function(r){r[r.INNER=0]="INNER",r[r.PROP=1]="PROP"})(g||(g={}));var f=function(i,n){var e=x.useRef(!0);Object(A.a)(function(){if(!e.current)return i()},n),Object(A.a)(function(){return e.current=!1,function(){e.current=!0}},[])};function c(r){return r!==void 0}function o(r,i){var n=i||{},e=n.defaultValue,l=n.value,t=n.onChange,a=n.postState,s=Object(b.a)(function(){var w=void 0,S;return c(l)?(w=l,S=g.PROP):c(e)?(w=typeof e=="function"?e():e,S=g.PROP):(w=typeof r=="function"?r():r,S=g.INNER),[w,S,w]}),u=Object(O.a)(s,2),h=u[0],p=u[1],m=c(l)?l:h[0],v=a?a(m):m;f(function(){p(function(w){var S=Object(O.a)(w,1),_=S[0];return[l,g.PROP,_]})},[l]);var y=x.useRef(),E=C(function(w,S){p(function(_){var I=Object(O.a)(_,3),L=I[0],N=I[1],R=I[2],D=typeof w=="function"?w(L):w;if(D===L)return _;var F=N===g.INNER&&y.current!==R?R:L;return[D,g.INNER,F]},S)}),T=C(t);return Object(A.a)(function(){var w=Object(O.a)(h,3),S=w[0],_=w[1],I=w[2];S!==I&&_===g.INNER&&(T(S,I),y.current=I)},[h]),[v,E]}},"6fms":function(H,k,d){var O=d("SUKs"),x=d("06Qe"),C=d("bYtY"),A=C.each;function b(o){return parseInt(o,10)}function g(o,r){x.initVML(),this.root=o,this.storage=r;var i=document.createElement("div"),n=document.createElement("div");i.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",n.style.cssText="position:absolute;left:0;top:0;",o.appendChild(i),this._vmlRoot=n,this._vmlViewport=i,this.resize();var e=r.delFromStorage,l=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),l.call(r,t)},this._firstPaint=!0}g.prototype={constructor:g,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var r=this.getViewportRoot();if(r)return{offsetLeft:r.offsetLeft||0,offsetTop:r.offsetTop||0}},refresh:function(){var r=this.storage.getDisplayList(!0,!0);this._paintList(r)},_paintList:function(r){for(var i=this._vmlRoot,n=0;n<r.length;n++){var e=r[n];e.invisible||e.ignore?(e.__alreadyNotVisible||e.onRemove(i),e.__alreadyNotVisible=!0):(e.__alreadyNotVisible&&e.onAdd(i),e.__alreadyNotVisible=!1,e.__dirty&&(e.beforeBrush&&e.beforeBrush(),(e.brushVML||e.brush).call(e,i),e.afterBrush&&e.afterBrush())),e.__dirty=!1}this._firstPaint&&(this._vmlViewport.appendChild(i),this._firstPaint=!1)},resize:function(r,i){var r=r==null?this._getWidth():r,i=i==null?this._getHeight():i;if(this._width!==r||this._height!==i){this._width=r,this._height=i;var n=this._vmlViewport.style;n.width=r+"px",n.height=i+"px"}},dispose:function(){this.root.innerHTML="",this._vmlRoot=this._vmlViewport=this.storage=null},getWidth:function(){return this._width},getHeight:function(){return this._height},clear:function(){this._vmlViewport&&this.root.removeChild(this._vmlViewport)},_getWidth:function(){var r=this.root,i=r.currentStyle;return(r.clientWidth||b(i.width))-b(i.paddingLeft)-b(i.paddingRight)|0},_getHeight:function(){var r=this.root,i=r.currentStyle;return(r.clientHeight||b(i.height))-b(i.paddingTop)-b(i.paddingBottom)|0}};function f(o){return function(){O('In IE8.0 VML mode painter not support method "'+o+'"')}}A(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(o){g.prototype[o]=f(o)});var c=g;H.exports=c},"6r85":function(H,k,d){var O=d("bYtY");function x(C){if(!C||!O.isArray(C.series))return;O.each(C.series,function(A){O.isObject(A)&&A.type==="k"&&(A.type="candlestick")})}H.exports=x},"6uqw":function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("ItGF"),A=d("YOMW"),b=d("XxSj"),g=d("K4ya"),f=d("4NO4"),c=d("OELB"),o=b.mapVisual,r=b.eachVisual,i=x.isArray,n=x.each,e=c.asc,l=c.linearMap,t=x.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,h,p){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(u,p)},optionUpdated:function(u,h){var p=this.option;C.canvasSupported||(p.realtime=!1),!h&&g.replaceVisualOption(p,u,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(u){var h=this.stateList;u=x.bind(u,this),this.controllerVisuals=g.createVisualMappings(this.option.controller,h,u),this.targetVisuals=g.createVisualMappings(this.option.target,h,u)},getTargetSeriesIndices:function(){var u=this.option.seriesIndex,h=[];return u==null||u==="all"?this.ecModel.eachSeries(function(p,m){h.push(m)}):h=f.normalizeToArray(u),h},eachTargetSeries:function(u,h){x.each(this.getTargetSeriesIndices(),function(p){u.call(h,this.ecModel.getSeriesByIndex(p))},this)},isTargetSeries:function(u){var h=!1;return this.eachTargetSeries(function(p){p===u&&(h=!0)}),h},formatValueText:function(u,h,p){var m=this.option,v=m.precision,y=this.dataBound,E=m.formatter,T,w;if(p=p||["<",">"],x.isArray(u)&&(u=u.slice(),T=!0),w=h?u:T?[S(u[0]),S(u[1])]:S(u),x.isString(E))return E.replace("{value}",T?w[0]:w).replace("{value2}",T?w[1]:w);if(x.isFunction(E))return T?E(u[0],u[1]):E(u);if(T)return u[0]===y[0]?p[0]+" "+w[1]:u[1]===y[1]?p[1]+" "+w[0]:w[0]+" - "+w[1];return w;function S(_){return _===y[0]?"min":_===y[1]?"max":(+_).toFixed(Math.min(v,20))}},resetExtent:function(){var u=this.option,h=e([u.min,u.max]);this._dataExtent=h},getDataDimension:function(u){var h=this.option.dimension,p=u.dimensions;if(h==null&&!p.length)return;if(h!=null)return u.getDimension(h);for(var m=u.dimensions,v=m.length-1;v>=0;v--){var y=m[v],E=u.getDimensionInfo(y);if(!E.isCalculationCoord)return y}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var u=this.ecModel,h=this.option,p={inRange:h.inRange,outOfRange:h.outOfRange},m=h.target||(h.target={}),v=h.controller||(h.controller={});x.merge(m,p),x.merge(v,p);var y=this.isCategory();E.call(this,m),E.call(this,v),T.call(this,m,"inRange","outOfRange"),w.call(this,v);function E(S){i(h.color)&&!S.inRange&&(S.inRange={color:h.color.slice().reverse()}),S.inRange=S.inRange||{color:u.get("gradientColor")},n(this.stateList,function(_){var I=S[_];if(x.isString(I)){var L=A.get(I,"active",y);L?(S[_]={},S[_][I]=L):delete S[_]}},this)}function T(S,_,I){var L=S[_],N=S[I];L&&!N&&(N=S[I]={},n(L,function(R,D){if(!b.isValidType(D))return;var F=A.get(D,"inactive",y);F!=null&&(N[D]=F,D==="color"&&!N.hasOwnProperty("opacity")&&!N.hasOwnProperty("colorAlpha")&&(N.opacity=[0,0]))}))}function w(S){var _=(S.inRange||{}).symbol||(S.outOfRange||{}).symbol,I=(S.inRange||{}).symbolSize||(S.outOfRange||{}).symbolSize,L=this.get("inactiveColor");n(this.stateList,function(N){var R=this.itemSize,D=S[N];D||(D=S[N]={color:y?L:[L]}),D.symbol==null&&(D.symbol=_&&x.clone(_)||(y?"roundRect":["roundRect"])),D.symbolSize==null&&(D.symbolSize=I&&x.clone(I)||(y?R[0]:[R[0],R[0]])),D.symbol=o(D.symbol,function(U){return U==="none"||U==="square"?"roundRect":U});var F=D.symbolSize;if(F!=null){var M=-Infinity;r(F,function(U){U>M&&(M=U)}),D.symbolSize=o(F,function(U){return l(U,[0,M],[0,R[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}),s=a;H.exports=s},"6usn":function(H,k,d){var O=d("bYtY");function x(A,b){return O.map(["Radius","Angle"],function(g,f){var c=this["get"+g+"Axis"](),o=b[f],r=A[f]/2,i="dataTo"+g,n=c.type==="category"?c.getBandWidth():Math.abs(c[i](o-r)-c[i](o+r));return g==="Angle"&&(n=n*Math.PI/180),n},this)}function C(A){var b=A.getRadiusAxis(),g=A.getAngleAxis(),f=b.getExtent();return f[0]>f[1]&&f.reverse(),{coordSys:{type:"polar",cx:A.cx,cy:A.cy,r:f[1],r0:f[0]},api:{coord:O.bind(function(c){var o=b.dataToRadius(c[0]),r=g.dataToAngle(c[1]),i=A.coordToPoint([o,r]);return i.push(o,r*Math.PI/180),i}),size:O.bind(x,A)}}}H.exports=C},"6xvX":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("V7ic"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},"711d":function(H,k){function d(O){return function(x){return x==null?void 0:x[O]}}H.exports=d},"72pK":function(H,k){function d(C,A,b,g,f,c){C=C||0;var o=b[1]-b[0];if(f!=null&&(f=x(f,[0,o])),c!=null&&(c=Math.max(c,f!=null?f:0)),g==="all"){var r=Math.abs(A[1]-A[0]);r=x(r,[0,o]),f=c=x(r,[f,c]),g=0}A[0]=x(A[0],b),A[1]=x(A[1],b);var i=O(A,g);A[g]+=C;var n=f||0,e=b.slice();i.sign<0?e[0]+=n:e[1]-=n,A[g]=x(A[g],e);var l=O(A,g);f!=null&&(l.sign!==i.sign||l.span<f)&&(A[1-g]=A[g]+i.sign*f);var l=O(A,g);return c!=null&&l.span>c&&(A[1-g]=A[g]+l.sign*c),A}function O(C,A){var b=C[A]-C[1-A];return{span:Math.abs(b),sign:b>0?-1:b<0?1:A?-1:1}}function x(C,A){return Math.min(A[1]!=null?A[1]:Infinity,Math.max(A[0]!=null?A[0]:-Infinity,C))}H.exports=d},"75ce":function(H,k,d){var O=d("ProS");d("IXuL"),d("8X+K");var x=d("f5Yq"),C=d("h8O9"),A=d("/d5a");d("Ae16"),O.registerVisual(x("line","circle","line")),O.registerLayout(C("line")),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,A("line"))},"75ev":function(H,k,d){var O=d("ProS");d("IWNH"),d("bNin"),d("v5uJ");var x=d("f5Yq"),C=d("yik8");O.registerVisual(x("tree","circle")),O.registerLayout(C)},"7AJT":function(H,k,d){var O=d("bYtY"),x=d("hM6l"),C=function(b,g,f,c,o){x.call(this,b,g,f),this.type=c||"value",this.position=o||"bottom"};C.prototype={constructor:C,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var b=this.position;return b==="top"||b==="bottom"},getGlobalExtent:function(b){var g=this.getExtent();return g[0]=this.toGlobalCoord(g[0]),g[1]=this.toGlobalCoord(g[1]),b&&g[0]>g[1]&&g.reverse(),g},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(b,g){return this.coordToData(this.toLocalCoord(b[this.dim==="x"?0:1]),g)},toLocalCoord:null,toGlobalCoord:null},O.inherits(C,x);var A=C;H.exports=A},"7Cbv":function(H,k,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),x=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(x)}var A=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function b(e){return typeof e=="string"&&A.test(e)}for(var g=b,f=[],c=0;c<256;++c)f.push((c+256).toString(16).substr(1));function o(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(f[e[l+0]]+f[e[l+1]]+f[e[l+2]]+f[e[l+3]]+"-"+f[e[l+4]]+f[e[l+5]]+"-"+f[e[l+6]]+f[e[l+7]]+"-"+f[e[l+8]]+f[e[l+9]]+"-"+f[e[l+10]]+f[e[l+11]]+f[e[l+12]]+f[e[l+13]]+f[e[l+14]]+f[e[l+15]]).toLowerCase();if(!g(t))throw TypeError("Stringified UUID is invalid");return t}var r=o;function i(e,l,t){e=e||{};var a=e.random||(e.rng||C)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,l){t=t||0;for(var s=0;s<16;++s)l[t+s]=a[s];return l}return r(a)}var n=k.a=i},"7DRL":function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=C.createHashMap,b=C.isString,g=C.isArray,f=C.each,c=C.assert,o=d("MEGo"),r=o.parseXML,i=A(),n={registerMap:function(l,t,a){var s;return g(t)?s=t:t.svg?s=[{type:"svg",source:t.svg,specialAreas:t.specialAreas}]:(t.geoJson&&!t.features&&(a=t.specialAreas,t=t.geoJson),s=[{type:"geoJSON",source:t,specialAreas:a}]),f(s,function(u){var h=u.type;h==="geoJson"&&(h=u.type="geoJSON");var p=e[h];p(u)}),i.set(l,s)},retrieveMap:function(l){return i.get(l)}},e={geoJSON:function(l){var t=l.source;l.geoJSON=b(t)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t},svg:function(l){l.svgXML=r(l.source)}};H.exports=n},"7G+c":function(H,k,d){var O=d("bYtY"),x=O.createHashMap,C=O.isTypedArray,A=d("Yl7c"),b=A.enableClassCheck,g=d("k9D9"),f=g.SOURCE_FORMAT_ORIGINAL,c=g.SERIES_LAYOUT_BY_COLUMN,o=g.SOURCE_FORMAT_UNKNOWN,r=g.SOURCE_FORMAT_TYPED_ARRAY,i=g.SOURCE_FORMAT_KEYED_COLUMNS;function n(l){this.fromDataset=l.fromDataset,this.data=l.data||(l.sourceFormat===i?{}:[]),this.sourceFormat=l.sourceFormat||o,this.seriesLayoutBy=l.seriesLayoutBy||c,this.dimensionsDefine=l.dimensionsDefine,this.encodeDefine=l.encodeDefine&&x(l.encodeDefine),this.startIndex=l.startIndex||0,this.dimensionsDetectCount=l.dimensionsDetectCount}n.seriesDataToSource=function(l){return new n({data:l,sourceFormat:C(l)?r:f,fromDataset:!1})},b(n);var e=n;H.exports=e},"7Kak":function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("KPFz"),A=d.n(C)},"7Phj":function(H,k,d){var O=d("bYtY"),x=d("OELB"),C=x.parsePercent,A=O.each;function b(o){var r=g(o);A(r,function(i){var n=i.seriesModels;if(!n.length)return;f(i),A(n,function(e,l){c(e,i.boxOffsetList[l],i.boxWidthList[l])})})}function g(o){var r=[],i=[];return o.eachSeriesByType("boxplot",function(n){var e=n.getBaseAxis(),l=O.indexOf(i,e);l<0&&(l=i.length,i[l]=e,r[l]={axis:e,seriesModels:[]}),r[l].seriesModels.push(n)}),r}function f(o){var r,i=o.axis,n=o.seriesModels,e=n.length,l=o.boxWidthList=[],t=o.boxOffsetList=[],a=[],s;if(i.type==="category")s=i.getBandWidth();else{var u=0;A(n,function(y){u=Math.max(u,y.getData().count())}),r=i.getExtent(),Math.abs(r[1]-r[0])/u}A(n,function(y){var E=y.get("boxWidth");O.isArray(E)||(E=[E,E]),a.push([C(E[0],s)||0,C(E[1],s)||0])});var h=s*.8-2,p=h/e*.3,m=(h-p*(e-1))/e,v=m/2-h/2;A(n,function(y,E){t.push(v),v+=p+m,l.push(Math.min(Math.max(m,a[E][0]),a[E][1]))})}function c(o,r,i){var n=o.coordinateSystem,e=o.getData(),l=i/2,t=o.get("layout")==="horizontal"?0:1,a=1-t,s=["x","y"],u=e.mapDimension(s[t]),h=e.mapDimension(s[a],!0);if(u==null||h.length<5)return;for(var p=0;p<e.count();p++){var m=e.get(u,p),v=_(m,h[2],p),y=_(m,h[0],p),E=_(m,h[1],p),T=_(m,h[3],p),w=_(m,h[4],p),S=[];I(S,E,0),I(S,T,1),S.push(y,E,w,T),L(S,y),L(S,w),L(S,v),e.setItemLayout(p,{initBaseline:v[a],ends:S})}function _(N,R,D){var F=e.get(R,D),M=[];M[t]=N,M[a]=F;var U;return isNaN(N)||isNaN(F)?U=[NaN,NaN]:(U=n.dataToPoint(M),U[t]+=r),U}function I(N,R,D){var F=R.slice(),M=R.slice();F[t]+=l,M[t]-=l,D?N.push(F,M):N.push(M,F)}function L(N,R){var D=R.slice(),F=R.slice();D[t]-=l,F[t]+=l,N.push(D,F)}}H.exports=b},"7SHv":function(H,k,d){var O=d("LPTA"),x=O.devicePixelRatio,C=d("bYtY"),A=d("SUKs"),b=d("mFDi"),g=d("BPZU"),f=d("Xmg4"),c=d("mLcG"),o=d("Dagg"),r=d("ItGF"),i=1e5,n=314159,e=.01,l=.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 s=new b(0,0,0,0),u=new b(0,0,0,0);function h(T,w,S){return s.copy(T.getBoundingRect()),T.transform&&s.applyTransform(T.transform),u.width=w,u.height=S,!s.intersect(u)}function p(T,w){if(T===w)return!1;if(!T||!w||T.length!==w.length)return!0;for(var S=0;S<T.length;S++)if(T[S]!==w[S])return!0;return!1}function m(T,w){for(var S=0;S<T.length;S++){var _=T[S];_.setTransform(w),w.beginPath(),_.buildPath(w,_.shape),w.clip(),_.restoreTransform(w)}}function v(T,w){var S=document.createElement("div");return S.style.cssText=["position:relative","width:"+T+"px","height:"+w+"px","padding:0","margin:0","border-width:0"].join(";")+";",S}var y=function(w,S,_){this.type="canvas";var I=!w.nodeName||w.nodeName.toUpperCase()==="CANVAS";this._opts=_=C.extend({},_||{}),this.dpr=_.devicePixelRatio||x,this._singleCanvas=I,this.root=w;var L=w.style;L&&(L["-webkit-tap-highlight-color"]="transparent",L["-webkit-user-select"]=L["user-select"]=L["-webkit-touch-callout"]="none",w.innerHTML=""),this.storage=S;var N=this._zlevelList=[],R=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,I){var F=w.width,M=w.height;_.width!=null&&(F=_.width),_.height!=null&&(M=_.height),this.dpr=_.devicePixelRatio||1,w.width=F*this.dpr,w.height=M*this.dpr,this._width=F,this._height=M;var U=new f(w,this,this.dpr);U.__builtin__=!0,U.initContext(),R[n]=U,U.zlevel=n,N.push(n),this._domRoot=w}else{this._width=this._getSize(0),this._height=this._getSize(1);var D=this._domRoot=v(this._width,this._height);w.appendChild(D)}this._hoverlayer=null,this._hoverElements=[]};y.prototype={constructor:y,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var w=this.getViewportRoot();if(w)return{offsetLeft:w.offsetLeft||0,offsetTop:w.offsetTop||0}},refresh:function(w){var S=this.storage.getDisplayList(!0),_=this._zlevelList;this._redrawId=Math.random(),this._paintList(S,w,this._redrawId);for(var I=0;I<_.length;I++){var L=_[I],N=this._layers[L];if(!N.__builtin__&&N.refresh){var R=I===0?this._backgroundColor:null;N.refresh(R)}}return this.refreshHover(),this},addHover:function(w,S){if(w.__hoverMir)return;var _=new w.constructor({style:w.style,shape:w.shape,z:w.z,z2:w.z2,silent:w.silent});return _.__from=w,w.__hoverMir=_,S&&_.setStyle(S),this._hoverElements.push(_),_},removeHover:function(w){var S=w.__hoverMir,_=this._hoverElements,I=C.indexOf(_,S);I>=0&&_.splice(I,1),w.__hoverMir=null},clearHover:function(w){for(var S=this._hoverElements,_=0;_<S.length;_++){var I=S[_].__from;I&&(I.__hoverMir=null)}S.length=0},refreshHover:function(){var w=this._hoverElements,S=w.length,_=this._hoverlayer;if(_&&_.clear(),!S)return;g(w,this.storage.displayableSortFunc),_||(_=this._hoverlayer=this.getLayer(i));var I={};_.ctx.save();for(var L=0;L<S;){var N=w[L],R=N.__from;if(!(R&&R.__zr)){w.splice(L,1),R.__hoverMir=null,S--;continue}L++,R.invisible||(N.transform=R.transform,N.invTransform=R.invTransform,N.__clipPaths=R.__clipPaths,this._doPaintEl(N,_,!0,I))}_.ctx.restore()},getHoverLayer:function(){return this.getLayer(i)},_paintList:function(w,S,_){if(this._redrawId!==_)return;S=S||!1,this._updateLayerStatus(w);var I=this._doPaintList(w,S);if(this._needsManuallyCompositing&&this._compositeManually(),!I){var L=this;c(function(){L._paintList(w,S,_)})}},_compositeManually:function(){var w=this.getLayer(n).ctx,S=this._domRoot.width,_=this._domRoot.height;w.clearRect(0,0,S,_),this.eachBuiltinLayer(function(I){I.virtual&&w.drawImage(I.dom,0,0,S,_)})},_doPaintList:function(w,S){for(var _=[],I=0;I<this._zlevelList.length;I++){var L=this._zlevelList[I],N=this._layers[L];N.__builtin__&&N!==this._hoverlayer&&(N.__dirty||S)&&_.push(N)}for(var R=!0,D=0;D<_.length;D++){var N=_[D],F=N.ctx,M={};F.save();var U=S?N.__startIndex:N.__drawIndex,B=!S&&N.incremental&&Date.now,j=B&&Date.now(),W=N.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(N.__startIndex===N.__endIndex)N.clear(!1,W);else if(U===N.__startIndex){var V=w[U];(!V.incremental||!V.notClear||S)&&N.clear(!1,W)}U===-1&&(console.error("For some unknown reason. drawIndex is -1"),U=N.__startIndex);for(var z=U;z<N.__endIndex;z++){var J=w[z];if(this._doPaintEl(J,N,S,M),J.__dirty=J.__dirtyText=!1,B){var q=Date.now()-j;if(q>15)break}}N.__drawIndex=z,N.__drawIndex<N.__endIndex&&(R=!1),M.prevElClipPaths&&F.restore(),F.restore()}return r.wxa&&C.each(this._layers,function(de){de&&de.ctx&&de.ctx.draw&&de.ctx.draw()}),R},_doPaintEl:function(w,S,_,I){var L=S.ctx,N=w.transform;if((S.__dirty||_)&&!w.invisible&&w.style.opacity!==0&&!(N&&!N[0]&&!N[3])&&!(w.culling&&h(w,this._width,this._height))){var R=w.__clipPaths,D=I.prevElClipPaths;(!D||p(R,D))&&(D&&(L.restore(),I.prevElClipPaths=null,I.prevEl=null),R&&(L.save(),m(R,L),I.prevElClipPaths=R)),w.beforeBrush&&w.beforeBrush(L),w.brush(L,I.prevEl||null),I.prevEl=w,w.afterBrush&&w.afterBrush(L)}},getLayer:function(w,S){this._singleCanvas&&!this._needsManuallyCompositing&&(w=n);var _=this._layers[w];return _||(_=new f("zr_"+w,this,this.dpr),_.zlevel=w,_.__builtin__=!0,this._layerConfig[w]?C.merge(_,this._layerConfig[w],!0):this._layerConfig[w-e]&&C.merge(_,this._layerConfig[w-e],!0),S&&(_.virtual=S),this.insertLayer(w,_),_.initContext()),_},insertLayer:function(w,S){var _=this._layers,I=this._zlevelList,L=I.length,N=null,R=-1,D=this._domRoot;if(_[w]){A("ZLevel "+w+" has been used already");return}if(!a(S)){A("Layer of zlevel "+w+" is not valid");return}if(L>0&&w>I[0]){for(R=0;R<L-1&&!(I[R]<w&&I[R+1]>w);R++);N=_[I[R]]}if(I.splice(R+1,0,w),_[w]=S,!S.virtual)if(N){var F=N.dom;F.nextSibling?D.insertBefore(S.dom,F.nextSibling):D.appendChild(S.dom)}else D.firstChild?D.insertBefore(S.dom,D.firstChild):D.appendChild(S.dom)},eachLayer:function(w,S){var _=this._zlevelList,I,L;for(L=0;L<_.length;L++)I=_[L],w.call(S,this._layers[I],I)},eachBuiltinLayer:function(w,S){var _=this._zlevelList,I,L,N;for(N=0;N<_.length;N++)L=_[N],I=this._layers[L],I.__builtin__&&w.call(S,I,L)},eachOtherLayer:function(w,S){var _=this._zlevelList,I,L,N;for(N=0;N<_.length;N++)L=_[N],I=this._layers[L],I.__builtin__||w.call(S,I,L)},getLayers:function(){return this._layers},_updateLayerStatus:function(w){this.eachBuiltinLayer(function(M,U){M.__dirty=M.__used=!1});function S(M){L&&(L.__endIndex!==M&&(L.__dirty=!0),L.__endIndex=M)}if(this._singleCanvas)for(var _=1;_<w.length;_++){var I=w[_];if(I.zlevel!==w[_-1].zlevel||I.incremental){this._needsManuallyCompositing=!0;break}}for(var L=null,N=0,R,_=0;_<w.length;_++){var I=w[_],D=I.zlevel,F;R!==D&&(R=D,N=0),I.incremental?(F=this.getLayer(D+l,this._needsManuallyCompositing),F.incremental=!0,N=1):F=this.getLayer(D+(N>0?e:0),this._needsManuallyCompositing),F.__builtin__||A("ZLevel "+D+" has been used by unkown layer "+F.id),F!==L&&(F.__used=!0,F.__startIndex!==_&&(F.__dirty=!0),F.__startIndex=_,F.incremental?F.__drawIndex=-1:F.__drawIndex=_,S(_),L=F),I.__dirty&&(F.__dirty=!0,F.incremental&&F.__drawIndex<0&&(F.__drawIndex=_))}S(_),this.eachBuiltinLayer(function(M,U){!M.__used&&M.getElementCount()>0&&(M.__dirty=!0,M.__startIndex=M.__endIndex=M.__drawIndex=0),M.__dirty&&M.__drawIndex<0&&(M.__drawIndex=M.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(w){w.clear()},setBackgroundColor:function(w){this._backgroundColor=w},configLayer:function(w,S){if(S){var _=this._layerConfig;_[w]?C.merge(_[w],S,!0):_[w]=S;for(var I=0;I<this._zlevelList.length;I++){var L=this._zlevelList[I];if(L===w||L===w+e){var N=this._layers[L];C.merge(N,_[w],!0)}}}},delLayer:function(w){var S=this._layers,_=this._zlevelList,I=S[w];if(!I)return;I.dom.parentNode.removeChild(I.dom),delete S[w],_.splice(C.indexOf(_,w),1)},resize:function(w,S){if(this._domRoot.style){var _=this._domRoot;_.style.display="none";var I=this._opts;if(w!=null&&(I.width=w),S!=null&&(I.height=S),w=this._getSize(0),S=this._getSize(1),_.style.display="",this._width!==w||S!==this._height){_.style.width=w+"px",_.style.height=S+"px";for(var L in this._layers)this._layers.hasOwnProperty(L)&&this._layers[L].resize(w,S);C.each(this._progressiveLayers,function(N){N.resize(w,S)}),this.refresh(!0)}this._width=w,this._height=S}else{if(w==null||S==null)return;this._width=w,this._height=S,this.getLayer(n).resize(w,S)}return this},clearLayer:function(w){var S=this._layers[w];S&&S.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(w){if(w=w||{},this._singleCanvas&&!this._compositeManually)return this._layers[n].dom;var S=new f("image",this,w.pixelRatio||this.dpr);if(S.initContext(),S.clear(!1,w.backgroundColor||this._backgroundColor),w.pixelRatio<=this.dpr){this.refresh();var _=S.dom.width,I=S.dom.height,L=S.ctx;this.eachLayer(function(M){M.__builtin__?L.drawImage(M.dom,0,0,_,I):M.renderToCanvas&&(S.ctx.save(),M.renderToCanvas(S.ctx),S.ctx.restore())})}else for(var N={},R=this.storage.getDisplayList(!0),D=0;D<R.length;D++){var F=R[D];this._doPaintEl(F,S,!0,N)}return S.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(w){var S=this._opts,_=["width","height"][w],I=["clientWidth","clientHeight"][w],L=["paddingLeft","paddingTop"][w],N=["paddingRight","paddingBottom"][w];if(S[_]!=null&&S[_]!=="auto")return parseFloat(S[_]);var R=this.root,D=document.defaultView.getComputedStyle(R);return(R[I]||t(D[_])||t(R.style[_]))-(t(D[L])||0)-(t(D[N])||0)|0},pathToImage:function(w,S){S=S||this.dpr;var _=document.createElement("canvas"),I=_.getContext("2d"),L=w.getBoundingRect(),N=w.style,R=N.shadowBlur*S,D=N.shadowOffsetX*S,F=N.shadowOffsetY*S,M=N.hasStroke()?N.lineWidth:0,U=Math.max(M/2,-D+R),B=Math.max(M/2,D+R),j=Math.max(M/2,-F+R),W=Math.max(M/2,F+R),V=L.width+U+B,z=L.height+j+W;_.width=V*S,_.height=z*S,I.scale(S,S),I.clearRect(0,0,V,z),I.dpr=S;var J={position:w.position,rotation:w.rotation,scale:w.scale};w.position=[U-L.x,j-L.y],w.rotation=0,w.scale=[1,1],w.updateTransform(),w&&w.brush(I);var q=o,de=new q({style:{x:0,y:0,image:_}});return J.position!=null&&(de.position=w.position=J.position),J.rotation!=null&&(de.rotation=w.rotation=J.rotation),J.scale!=null&&(de.scale=w.scale=J.scale),de}};var E=y;H.exports=E},"7a+S":function(H,k,d){var O=d("bYtY"),x=d("bLfw"),C=d("YXkt"),A=d("4NO4"),b=x.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(f,c,o){this._data,this._names,this.mergeDefaultAndTheme(f,o),this._initData()},mergeOption:function(f){b.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(f){f==null&&(f=this.option.currentIndex);var c=this._data.count();this.option.loop?f=(f%c+c)%c:(f>=c&&(f=c-1),f<0&&(f=0)),this.option.currentIndex=f},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(f){this.option.autoPlay=!!f},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var f=this.option,c=f.data||[],o=f.axisType,r=this._names=[];if(o==="category"){var i=[];O.each(c,function(l,t){var a=A.getDataItemValue(l),s;O.isObject(l)?(s=O.clone(l),s.value=t):s=t,i.push(s),!O.isString(a)&&(a==null||isNaN(a))&&(a=""),r.push(a+"")}),c=i}var n={category:"ordinal",time:"time"}[o]||"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()}}),g=b;H.exports=g},"7aKB":function(H,k,d){var O=d("bYtY"),x=d("6GrX"),C=d("OELB");function A(v){return isNaN(v)?"-":(v=(v+"").split("."),v[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(v.length>1?"."+v[1]:""))}function b(v,y){return v=(v||"").toLowerCase().replace(/-(.)/g,function(E,T){return T.toUpperCase()}),y&&v&&(v=v.charAt(0).toUpperCase()+v.slice(1)),v}var g=O.normalizeCssArray,f=/([&<>"'])/g,c={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function o(v){return v==null?"":(v+"").replace(f,function(y,E){return c[E]})}var r=["a","b","c","d","e","f","g"],i=function(v,y){return"{"+v+(y==null?"":y)+"}"};function n(v,y,E){O.isArray(y)||(y=[y]);var T=y.length;if(!T)return"";for(var w=y[0].$vars||[],S=0;S<w.length;S++){var _=r[S];v=v.replace(i(_),i(_,0))}for(var I=0;I<T;I++)for(var L=0;L<w.length;L++){var N=y[I][w[L]];v=v.replace(i(r[L],I),E?o(N):N)}return v}function e(v,y,E){return O.each(y,function(T,w){v=v.replace("{"+w+"}",E?o(T):T)}),v}function l(v,y){v=O.isString(v)?{color:v,extraCssText:y}:v||{};var E=v.color,T=v.type,y=v.extraCssText,w=v.renderMode||"html",S=v.markerId||"X";return E?w==="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:'+o(E)+";"+(y||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+o(E)+";"+(y||"")+'"></span>':{renderMode:w,content:"{marker"+S+"|} ",style:{color:E}}:""}function t(v,y){return v+="","0000".substr(0,y-v.length)+v}function a(v,y,E){(v==="week"||v==="month"||v==="quarter"||v==="half-year"||v==="year")&&(v=`MM-dd
yyyy`);var T=C.parseDate(y),w=E?"UTC":"",S=T["get"+w+"FullYear"](),_=T["get"+w+"Month"]()+1,I=T["get"+w+"Date"](),L=T["get"+w+"Hours"](),N=T["get"+w+"Minutes"](),R=T["get"+w+"Seconds"](),D=T["get"+w+"Milliseconds"]();return v=v.replace("MM",t(_,2)).replace("M",_).replace("yyyy",S).replace("yy",S%100).replace("dd",t(I,2)).replace("d",I).replace("hh",t(L,2)).replace("h",L).replace("mm",t(N,2)).replace("m",N).replace("ss",t(R,2)).replace("s",R).replace("SSS",t(D,3)),v}function s(v){return v&&v.charAt(0).toUpperCase()+v.substr(1)}var u=x.truncateText;function h(v){return x.getBoundingRect(v.text,v.font,v.textAlign,v.textVerticalAlign,v.textPadding,v.textLineHeight,v.rich,v.truncate)}function p(v,y,E,T,w,S,_,I){return x.getBoundingRect(v,y,E,T,w,I,S,_)}function m(v,y){if(y==="_blank"||y==="blank"){var E=window.open();E.opener=null,E.location=v}else window.open(v,y)}k.addCommas=A,k.toCamelCase=b,k.normalizeCssArray=g,k.encodeHTML=o,k.formatTpl=n,k.formatTplSimple=e,k.getTooltipMarker=l,k.formatTime=a,k.capitalFirst=s,k.truncateText=u,k.getTextBoundingRect=h,k.getTextRect=p,k.windowOpen=m},"7bkD":function(H,k,d){var O=d("bYtY");function x(C,A){A=A||{};var b=C.coordinateSystem,g=C.axis,f={},c=g.position,o=g.orient,r=b.getRect(),i=[r.x,r.x+r.width,r.y,r.y+r.height],n={horizontal:{top:i[2],bottom:i[3]},vertical:{left:i[0],right:i[1]}};f.position=[o==="vertical"?n.vertical[c]:i[0],o==="horizontal"?n.horizontal[c]:i[3]];var e={horizontal:0,vertical:1};f.rotation=Math.PI/2*e[o];var l={top:-1,bottom:1,right:1,left:-1};f.labelDirection=f.tickDirection=f.nameDirection=l[c],C.get("axisTick.inside")&&(f.tickDirection=-f.tickDirection),O.retrieve(A.labelInside,C.get("axisLabel.inside"))&&(f.labelDirection=-f.labelDirection);var t=A.rotate;return t==null&&(t=C.get("axisLabel.rotate")),f.labelRotation=c==="top"?-t:t,f.z2=1,f}k.layout=x},"7hqr":function(H,k,d){var O=d("bYtY"),x=O.each,C=O.isString;function A(f,c,o){o=o||{};var r=o.byIndex,i=o.stackedCoordDimension,n=!!(f&&f.get("stack")),e,l,t,a;if(x(c,function(p,m){C(p)&&(c[m]=p={name:p}),n&&!p.isExtraCoord&&(!r&&!e&&p.ordinalMeta&&(e=p),!l&&p.type!=="ordinal"&&p.type!=="time"&&(!i||i===p.coordDim)&&(l=p))}),l&&!r&&!e&&(r=!0),l){t="__\0ecstackresult",a="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var s=l.coordDim,u=l.type,h=0;x(c,function(p){p.coordDim===s&&h++}),c.push({name:t,coordDim:s,coordDimIndex:h,type:u,isExtraCoord:!0,isCalculationCoord:!0}),h++,c.push({name:a,coordDim:a,coordDimIndex:h,type:u,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:l&&l.name,stackedByDimension:e&&e.name,isStackedByIndex:r,stackedOverDimension:a,stackResultDimension:t}}function b(f,c){return!!c&&c===f.getCalculationInfo("stackedDimension")}function g(f,c){return b(f,c)?f.getCalculationInfo("stackResultDimension"):c}k.enableDataStack=A,k.isDimensionStacked=b,k.getStackedDimension=g},"7mYs":function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("IwbS"),A=d("7aKB"),b=d("OELB"),g={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"]},f={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(o,r,i){var n=this.group;n.removeAll();var e=o.coordinateSystem,l=e.getRangeInfo(),t=e.getOrient();this._renderDayRect(o,l,n),this._renderLines(o,l,t,n),this._renderYearText(o,l,t,n),this._renderMonthText(o,t,n),this._renderWeekText(o,l,t,n)},_renderDayRect:function(o,r,i){for(var n=o.coordinateSystem,e=o.getModel("itemStyle").getItemStyle(),l=n.getCellWidth(),t=n.getCellHeight(),a=r.start.time;a<=r.end.time;a=n.getNextNDay(a,1).time){var s=n.dataToRect([a],!1).tl,u=new C.Rect({shape:{x:s[0],y:s[1],width:l,height:t},cursor:"default",style:e});i.add(u)}},_renderLines:function(o,r,i,n){var e=this,l=o.coordinateSystem,t=o.getModel("splitLine.lineStyle").getLineStyle(),a=o.get("splitLine.show"),s=t.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=r.start,h=0;u.time<=r.end.time;h++){m(u.formatedDate),h===0&&(u=l.getDateInfo(r.start.y+"-"+r.start.m));var p=u.date;p.setMonth(p.getMonth()+1),u=l.getDateInfo(p)}m(l.getNextNDay(r.end.time,1).formatedDate);function m(v){e._firstDayOfMonth.push(l.getDateInfo(v)),e._firstDayPoints.push(l.dataToRect([v],!1).tl);var y=e._getLinePointsOfOneWeek(o,v,i);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,s,i),t,n),a&&this._drawSplitline(e._getEdgesPoints(e._blpoints,s,i),t,n)},_getEdgesPoints:function(o,r,i){var n=[o[0].slice(),o[o.length-1].slice()],e=i==="horizontal"?0:1;return n[0][e]=n[0][e]-r/2,n[1][e]=n[1][e]+r/2,n},_drawSplitline:function(o,r,i){var n=new C.Polyline({z2:20,shape:{points:o},style:r});i.add(n)},_getLinePointsOfOneWeek:function(o,r,i){var n=o.coordinateSystem;r=n.getDateInfo(r);for(var e=[],l=0;l<7;l++){var t=n.getNextNDay(r.time,l),a=n.dataToRect([t.time],!1);e[2*t.day]=a.tl,e[2*t.day+1]=a[i==="horizontal"?"bl":"tr"]}return e},_formatterLabel:function(o,r){return typeof o=="string"&&o?A.formatTplSimple(o,r):typeof o=="function"?o(r):r.nameMap},_yearTextPositionControl:function(o,r,i,n,e){r=r.slice();var l=["center","bottom"];n==="bottom"?(r[1]+=e,l=["center","top"]):n==="left"?r[0]-=e:n==="right"?(r[0]+=e,l=["center","top"]):r[1]-=e;var t=0;return(n==="left"||n==="right")&&(t=Math.PI/2),{rotation:t,position:r,style:{textAlign:l[0],textVerticalAlign:l[1]}}},_renderYearText:function(o,r,i,n){var e=o.getModel("yearLabel");if(!e.get("show"))return;var l=e.get("margin"),t=e.get("position");t||(t=i!=="horizontal"?"top":"left");var a=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],s=(a[0][0]+a[1][0])/2,u=(a[0][1]+a[1][1])/2,h=i==="horizontal"?0:1,p={top:[s,a[h][1]],bottom:[s,a[1-h][1]],left:[a[1-h][0],u],right:[a[h][0],u]},m=r.start.y;+r.end.y>+r.start.y&&(m=m+"-"+r.end.y);var v=e.get("formatter"),y={start:r.start.y,end:r.end.y,nameMap:m},E=this._formatterLabel(v,y),T=new C.Text({z2:30});C.setTextStyle(T.style,e,{text:E}),T.attr(this._yearTextPositionControl(T,p[t],i,t,l)),n.add(T)},_monthTextPositionControl:function(o,r,i,n,e){var l="left",t="top",a=o[0],s=o[1];return i==="horizontal"?(s=s+e,r&&(l="center"),n==="start"&&(t="bottom")):(a=a+e,r&&(t="middle"),n==="start"&&(l="right")),{x:a,y:s,textAlign:l,textVerticalAlign:t}},_renderMonthText:function(o,r,i){var n=o.getModel("monthLabel");if(!n.get("show"))return;var e=n.get("nameMap"),l=n.get("margin"),t=n.get("position"),a=n.get("align"),s=[this._tlpoints,this._blpoints];x.isString(e)&&(e=g[e.toUpperCase()]||[]);var u=t==="start"?0:1,h=r==="horizontal"?0:1;l=t==="start"?-l:l;for(var p=a==="center",m=0;m<s[u].length-1;m++){var v=s[u][m].slice(),y=this._firstDayOfMonth[m];if(p){var E=this._firstDayPoints[m];v[h]=(E[h]+s[0][m+1][h])/2}var T=n.get("formatter"),w=e[+y.m-1],S={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:w},_=this._formatterLabel(T,S),I=new C.Text({z2:30});x.extend(C.setTextStyle(I.style,n,{text:_}),this._monthTextPositionControl(v,p,r,t,l)),i.add(I)}},_weekTextPositionControl:function(o,r,i,n,e){var l="center",t="middle",a=o[0],s=o[1],u=i==="start";return r==="horizontal"?(a=a+n+(u?1:-1)*e[0]/2,l=u?"right":"left"):(s=s+n+(u?1:-1)*e[1]/2,t=u?"bottom":"top"),{x:a,y:s,textAlign:l,textVerticalAlign:t}},_renderWeekText:function(o,r,i,n){var e=o.getModel("dayLabel");if(!e.get("show"))return;var l=o.coordinateSystem,t=e.get("position"),a=e.get("nameMap"),s=e.get("margin"),u=l.getFirstDayOfWeek();x.isString(a)&&(a=f[a.toUpperCase()]||[]);var h=l.getNextNDay(r.end.time,7-r.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];s=b.parsePercent(s,p[i==="horizontal"?0:1]),t==="start"&&(h=l.getNextNDay(r.start.time,-(7+r.fweek)).time,s=-s);for(var m=0;m<7;m++){var v=l.getNextNDay(h,m),y=l.dataToRect([v.time],!1).center,E=m;E=Math.abs((m+u)%7);var T=new C.Text({z2:30});x.extend(C.setTextStyle(T.style,e,{text:a[E]}),this._weekTextPositionControl(y,i,t,s,p)),n.add(T)}}});H.exports=c},"7oTu":function(H,k,d){var O=d("IMiH"),x=d("QBsz"),C=x.applyTransform,A=O.CMD,b=[[],[],[]],g=Math.sqrt,f=Math.atan2;function c(o,r){var i=o.data,n,e,l,t,a,s,u=A.M,h=A.C,p=A.L,m=A.R,v=A.A,y=A.Q;for(l=0,t=0;l<i.length;){n=i[l++],t=l,e=0;switch(n){case u:e=1;break;case p:e=1;break;case h:e=3;break;case y:e=2;break;case v:var E=r[4],T=r[5],w=g(r[0]*r[0]+r[1]*r[1]),S=g(r[2]*r[2]+r[3]*r[3]),_=f(-r[1]/S,r[0]/w);i[l]*=w,i[l++]+=E,i[l]*=S,i[l++]+=T,i[l++]*=w,i[l++]*=S,i[l++]+=_,i[l++]+=_,l+=2,t=l;break;case m:s[0]=i[l++],s[1]=i[l++],C(s,s,r),i[t++]=s[0],i[t++]=s[1],s[0]+=i[l++],s[1]+=i[l++],C(s,s,r),i[t++]=s[0],i[t++]=s[1]}for(a=0;a<e;a++){var s=b[a];s[0]=i[l++],s[1]=i[l++],C(s,s,r),i[t++]=s[0],i[t++]=s[1]}}}H.exports=c},"7pVf":function(H,k,d){var O=d("ProS"),x=d("ZqQs");d("oE7X"),d("OUJF"),d("3X6L"),d("NH9N"),O.registerPreprocessor(x)},"7ph2":function(H,k){function d(C){return C instanceof Array||(C=[C,C]),C}var O="lineStyle.opacity".split("."),x={seriesType:"lines",reset:function(C,A,b){var g=d(C.get("symbol")),f=d(C.get("symbolSize")),c=C.getData();c.setVisual("fromSymbol",g&&g[0]),c.setVisual("toSymbol",g&&g[1]),c.setVisual("fromSymbolSize",f&&f[0]),c.setVisual("toSymbolSize",f&&f[1]),c.setVisual("opacity",C.get(O));function o(r,i){var n=r.getItemModel(i),e=d(n.getShallow("symbol",!0)),l=d(n.getShallow("symbolSize",!0)),t=n.get(O);e[0]&&r.setItemVisual(i,"fromSymbol",e[0]),e[1]&&r.setItemVisual(i,"toSymbol",e[1]),l[0]&&r.setItemVisual(i,"fromSymbolSize",l[0]),l[1]&&r.setItemVisual(i,"toSymbolSize",l[1]),r.setItemVisual(i,"opacity",t)}return{dataEach:c.hasItemOption?o:null}}};H.exports=x},"7uqq":function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),b=d("AUH6"),g=d("+TT/"),f=d("OELB"),c=d("W4dC"),o=d("7DRL");function r(l,t){var a=l.get("boundingCoords");if(a!=null){var s=a[0],u=a[1];isNaN(s[0])||isNaN(s[1])||isNaN(u[0])||isNaN(u[1])||this.setBoundingRect(s[0],s[1],u[0]-s[0],u[1]-s[1])}var h=this.getBoundingRect(),p,m=l.get("layoutCenter"),v=l.get("layoutSize"),y=t.getWidth(),E=t.getHeight(),T=h.width/h.height*this.aspectScale,w=!1;m&&v&&(m=[f.parsePercent(m[0],y),f.parsePercent(m[1],E)],v=f.parsePercent(v,Math.min(y,E)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(v)&&(w=!0));var S;if(w){var S={};T>1?(S.width=v,S.height=v/T):(S.height=v,S.width=v*T),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2}else p=l.getBoxLayoutParams(),p.aspect=T,S=g.getLayoutRect(p,{width:y,height:E});this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(l.get("center")),this.setZoom(l.get("zoom"))}function i(l,t){A.each(t.get("geoCoord"),function(a,s){l.addGeoCoord(s,a)})}var n={dimensions:b.prototype.dimensions,create:function(l,t){var a=[];l.eachComponent("geo",function(u,h){var p=u.get("map"),m=u.get("aspectScale"),v=!0,y=o.retrieveMap(p);y&&y[0]&&y[0].type==="svg"?(m==null&&(m=1),v=!1):m==null&&(m=.75);var E=new b(p+h,p,u.get("nameMap"),v);E.aspectScale=m,E.zoomLimit=u.get("scaleLimit"),a.push(E),i(E,u),u.coordinateSystem=E,E.model=u,E.resize=r,E.resize(u,t)}),l.eachSeries(function(u){var h=u.get("coordinateSystem");if(h==="geo"){var p=u.get("geoIndex")||0;u.coordinateSystem=a[p]}});var s={};return l.eachSeriesByType("map",function(u){if(!u.getHostGeoModel()){var h=u.getMapType();s[h]=s[h]||[],s[h].push(u)}}),A.each(s,function(u,h){var p=A.map(u,function(v){return v.get("nameMap")}),m=new b(h,h,A.mergeAll(p));m.zoomLimit=A.retrieve.apply(null,A.map(u,function(v){return v.get("scaleLimit")})),a.push(m),m.resize=r,m.aspectScale=u[0].get("aspectScale"),m.resize(u[0],t),A.each(u,function(v){v.coordinateSystem=m,i(m,v)})}),a},getFilledRegions:function(l,t,a){for(var s=(l||[]).slice(),u=A.createHashMap(),h=0;h<s.length;h++)u.set(s[h].name,s[h]);var p=c.load(t,a);return A.each(p.regions,function(m){var v=m.name;!u.get(v)&&s.push({name:v})}),s}};C.registerCoordinateSystem("geo",n);var e=n;H.exports=e},"7yuC":function(H,k,d){var O=d("QBsz"),x=O.scaleAndAdd;function C(A,b,g){for(var f=g.rect,c=f.width,o=f.height,r=[f.x+c/2,f.y+o/2],i=g.gravity==null?.1:g.gravity,n=0;n<A.length;n++){var e=A[n];e.p||(e.p=O.create(c*(Math.random()-.5)+r[0],o*(Math.random()-.5)+r[1])),e.pp=O.clone(e.p),e.edges=null}var l=g.friction==null?.6:g.friction,t=l;return{warmUp:function(){t=l*.8},setFixed:function(a){A[a].fixed=!0},setUnfixed:function(a){A[a].fixed=!1},step:function(a){for(var s=[],u=A.length,h=0;h<b.length;h++){var p=b[h];if(p.ignoreForceLayout)continue;var m=p.n1,v=p.n2;O.sub(s,v.p,m.p);var y=O.len(s)-p.d,E=v.w/(m.w+v.w);isNaN(E)&&(E=0),O.normalize(s,s),!m.fixed&&x(m.p,m.p,s,E*y*t),!v.fixed&&x(v.p,v.p,s,-(1-E)*y*t)}for(var h=0;h<u;h++){var T=A[h];T.fixed||(O.sub(s,r,T.p),x(T.p,T.p,s,i*t))}for(var h=0;h<u;h++)for(var m=A[h],w=h+1;w<u;w++){var v=A[w];O.sub(s,v.p,m.p);var y=O.len(s);y===0&&(O.set(s,Math.random()-.5,Math.random()-.5),y=1);var S=(m.rep+v.rep)/y/y;!m.fixed&&x(m.pp,m.pp,s,S),!v.fixed&&x(v.pp,v.pp,s,-S)}for(var _=[],h=0;h<u;h++){var T=A[h];T.fixed||(O.sub(_,T.p,T.pp),x(T.p,T.p,_,t),O.copy(T.pp,T.p))}t=t*.992,a&&a(A,b,t<.01)}}}k.forceLayout=C},"8+yF":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.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},x={lookup:function(A){if(A>=32&&A<=255)return A;var b=O[A];return b!==void 0?b:16777216|A}};k.default=x},"8CQX":function(H,k,d){"use strict";function O(l){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(l)}Object.defineProperty(k,"__esModule",{value:!0}),k.getKeycode=i,k.getKey=n,k.getKeysym=e;var x=r(d("mHUz")),C=r(d("8+yF")),A=r(d("6Qwc")),b=r(d("gIYZ")),g=r(d("mTgk")),f=o(d("GdRQ"));function c(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return c=function(){return l},l}function o(l){if(l&&l.__esModule)return l;if(l===null||O(l)!=="object"&&typeof l!="function")return{default:l};var t=c();if(t&&t.has(l))return t.get(l);var a={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in l)if(Object.prototype.hasOwnProperty.call(l,u)){var h=s?Object.getOwnPropertyDescriptor(l,u):null;h&&(h.get||h.set)?Object.defineProperty(a,u,h):a[u]=l[u]}return a.default=l,t&&t.set(l,a),a}function r(l){return l&&l.__esModule?l:{default:l}}function i(l){if(l.code){switch(l.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return l.code}if(l.type!=="keypress"&&l.keyCode in A.default){var t=A.default[l.keyCode];if(f.isMac()&&t==="ContextMenu"&&(t="MetaRight"),l.location===2)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(l.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(l){if(l.key!==void 0){switch(l.key){case"Spacebar":return" ";case"Esc":return"Escape";case"Scroll":return"ScrollLock";case"Win":return"Meta";case"Apps":return"ContextMenu";case"Up":return"ArrowUp";case"Left":return"ArrowLeft";case"Right":return"ArrowRight";case"Down":return"ArrowDown";case"Del":return"Delete";case"Divide":return"/";case"Multiply":return"*";case"Subtract":return"-";case"Add":return"+";case"Decimal":return l.char}switch(l.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(l.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}if(l.key==="\0"&&l.code==="NumpadDecimal")return"Delete";if(!f.isIE()&&!f.isEdge())return l.key;if(l.key.length!==1&&l.key!=="Unidentified")return l.key}var t=i(l);return t in b.default?b.default[t]:l.charCode?String.fromCharCode(l.charCode):"Unidentified"}function e(l){var t=n(l);if(t==="Unidentified")return null;if(t in g.default){var a=l.location;if(t==="Meta"&&a===0&&(a=2),t==="Clear"&&a===3){var s=i(l);s==="NumLock"&&(a=0)}if((a===void 0||a>3)&&(a=0),t==="Meta"){var u=i(l);if(u==="AltLeft")return x.default.XK_Meta_L;if(u==="AltRight")return x.default.XK_Meta_R}if(t==="Clear"){var h=i(l);if(h==="NumLock")return x.default.XK_Num_Lock}return g.default[t][a]}if(t.length!==1)return null;var p=t.charCodeAt();return p?C.default.lookup(p):null}},"8EBN":function(H,k,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 x=0;x<O.modeInfo.length;x++){var C=O.modeInfo[x];C.mimes&&(C.mime=C.mimes[0])}O.findModeByMIME=function(A){A=A.toLowerCase();for(var b=0;b<O.modeInfo.length;b++){var g=O.modeInfo[b];if(g.mime==A)return g;if(g.mimes){for(var f=0;f<g.mimes.length;f++)if(g.mimes[f]==A)return g}}if(/\+xml$/.test(A))return O.findModeByMIME("application/xml");if(/\+json$/.test(A))return O.findModeByMIME("application/json")},O.findModeByExtension=function(A){A=A.toLowerCase();for(var b=0;b<O.modeInfo.length;b++){var g=O.modeInfo[b];if(g.ext){for(var f=0;f<g.ext.length;f++)if(g.ext[f]==A)return g}}},O.findModeByFileName=function(A){for(var b=0;b<O.modeInfo.length;b++){var g=O.modeInfo[b];if(g.file&&g.file.test(A))return g}var f=A.lastIndexOf("."),c=f>-1&&A.substring(f+1,A.length);if(c)return O.findModeByExtension(c)},O.findModeByName=function(A){A=A.toLowerCase();for(var b=0;b<O.modeInfo.length;b++){var g=O.modeInfo[b];if(g.name.toLowerCase()==A)return g;if(g.alias){for(var f=0;f<g.alias.length;f++)if(g.alias[f].toLowerCase()==A)return g}}}})},"8IMR":function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},"8ISB":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("6Hfg"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},"8K/p":function(H,k,d){"use strict";function O(i){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(i)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var x=g(d("Lo0S")),C=A(d("ItS6"));function A(i){return i&&i.__esModule?i:{default:i}}function b(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return b=function(){return i},i}function g(i){if(i&&i.__esModule)return i;if(i===null||O(i)!=="object"&&typeof i!="function")return{default:i};var n=b();if(n&&n.has(i))return n.get(i);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var a=l?Object.getOwnPropertyDescriptor(i,t):null;a&&(a.get||a.set)?Object.defineProperty(e,t,a):e[t]=i[t]}return e.default=i,n&&n.set(i,e),e}function f(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function c(i,n){for(var e=0;e<n.length;e++){var l=n[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}function o(i,n,e){return n&&c(i.prototype,n),e&&c(i,e),i}var r=function(){function i(){f(this,i),this._ctl=null,this._filter=null,this._numColors=0,this._palette=new Uint8Array(1024),this._len=0,this._zlibs=[];for(var n=0;n<4;n++)this._zlibs[n]=new C.default}return o(i,[{key:"decodeRect",value:function(e,l,t,a,s,u,h){if(this._ctl===null){if(s.rQwait("TIGHT compression-control",1))return!1;this._ctl=s.rQshift8();for(var p=0;p<4;p++)this._ctl>>p&1&&(this._zlibs[p].reset(),x.Info("Reset zlib stream "+p));this._ctl=this._ctl>>4}var m;if(this._ctl===8)m=this._fillRect(e,l,t,a,s,u,h);else if(this._ctl===9)m=this._jpegRect(e,l,t,a,s,u,h);else if(this._ctl===10)m=this._pngRect(e,l,t,a,s,u,h);else if((this._ctl&128)==0)m=this._basicRect(this._ctl,e,l,t,a,s,u,h);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return m&&(this._ctl=null),m}},{key:"_fillRect",value:function(e,l,t,a,s,u,h){if(s.rQwait("TIGHT",3))return!1;var p=s.rQi,m=s.rQ;return u.fillRect(e,l,t,a,[m[p+2],m[p+1],m[p]],!1),s.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,l,t,a,s,u,h){var p=this._readData(s);return p===null?!1:(u.imageRect(e,l,t,a,"image/jpeg",p),!0)}},{key:"_pngRect",value:function(e,l,t,a,s,u,h){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,l,t,a,s,u,h,p){if(this._filter===null)if(e&4){if(u.rQwait("TIGHT",1))return!1;this._filter=u.rQshift8()}else this._filter=0;var m=e&3,v;switch(this._filter){case 0:v=this._copyFilter(m,l,t,a,s,u,h,p);break;case 1:v=this._paletteFilter(m,l,t,a,s,u,h,p);break;case 2:v=this._gradientFilter(m,l,t,a,s,u,h,p);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return v&&(this._filter=null),v}},{key:"_copyFilter",value:function(e,l,t,a,s,u,h,p){var m=a*s*3,v;if(m<12){if(u.rQwait("TIGHT",m))return!1;v=u.rQshiftBytes(m)}else{if(v=this._readData(u),v===null)return!1;this._zlibs[e].setInput(v),v=this._zlibs[e].inflate(m),this._zlibs[e].setInput(null)}return h.blitRgbImage(l,t,a,s,v,0,!1),!0}},{key:"_paletteFilter",value:function(e,l,t,a,s,u,h,p){if(this._numColors===0){if(u.rQwait("TIGHT palette",1))return!1;var m=u.rQpeek8()+1,v=m*3;if(u.rQwait("TIGHT palette",1+v))return!1;this._numColors=m,u.rQskipBytes(1),u.rQshiftTo(this._palette,v)}var y=this._numColors<=2?1:8,E=Math.floor((a*y+7)/8),T=E*s,w;if(T<12){if(u.rQwait("TIGHT",T))return!1;w=u.rQshiftBytes(T)}else{if(w=this._readData(u),w===null)return!1;this._zlibs[e].setInput(w),w=this._zlibs[e].inflate(T),this._zlibs[e].setInput(null)}return this._numColors==2?this._monoRect(l,t,a,s,w,this._palette,h):this._paletteRect(l,t,a,s,w,this._palette,h),this._numColors=0,!0}},{key:"_monoRect",value:function(e,l,t,a,s,u,h){for(var p=this._getScratchBuffer(t*a*4),m=Math.floor((t+7)/8),v=Math.floor(t/8),y=0;y<a;y++){var E=void 0,T=void 0,w=void 0;for(w=0;w<v;w++)for(var S=7;S>=0;S--)E=(y*t+w*8+7-S)*4,T=(s[y*m+w]>>S&1)*3,p[E]=u[T],p[E+1]=u[T+1],p[E+2]=u[T+2],p[E+3]=255;for(var _=7;_>=8-t%8;_--)E=(y*t+w*8+7-_)*4,T=(s[y*m+w]>>_&1)*3,p[E]=u[T],p[E+1]=u[T+1],p[E+2]=u[T+2],p[E+3]=255}h.blitRgbxImage(e,l,t,a,p,0,!1)}},{key:"_paletteRect",value:function(e,l,t,a,s,u,h){for(var p=this._getScratchBuffer(t*a*4),m=t*a*4,v=0,y=0;v<m;v+=4,y++){var E=s[y]*3;p[v]=u[E],p[v+1]=u[E+1],p[v+2]=u[E+2],p[v+3]=255}h.blitRgbxImage(e,l,t,a,p,0,!1)}},{key:"_gradientFilter",value:function(e,l,t,a,s,u,h,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 l;l=e.rQshift8(),this._len=l&127,l&128&&(l=e.rQshift8(),this._len|=(l&127)<<7,l&128&&(l=e.rQshift8(),this._len|=l<<14))}if(e.rQwait("TIGHT",this._len))return null;var 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}}]),i}();k.default=r},"8SMY":function(H,k,d){var O=d("n4Lv"),x=O.prepareDataCoordInfo,C=O.getStackedOnPoint;function A(g,f){var c=[];return f.diff(g).add(function(o){c.push({cmd:"+",idx:o})}).update(function(o,r){c.push({cmd:"=",idx:r,idx1:o})}).remove(function(o){c.push({cmd:"-",idx:o})}).execute(),c}function b(g,f,c,o,r,i,n,e){for(var l=A(g,f),t=[],a=[],s=[],u=[],h=[],p=[],m=[],v=x(r,f,n),y=x(i,g,e),E=0;E<l.length;E++){var T=l[E],w=!0;switch(T.cmd){case"=":var S=g.getItemLayout(T.idx),_=f.getItemLayout(T.idx1);(isNaN(S[0])||isNaN(S[1]))&&(S=_.slice()),t.push(S),a.push(_),s.push(c[T.idx]),u.push(o[T.idx1]),m.push(f.getRawIndex(T.idx1));break;case"+":var I=T.idx;t.push(r.dataToPoint([f.get(v.dataDimsForPoint[0],I),f.get(v.dataDimsForPoint[1],I)])),a.push(f.getItemLayout(I).slice()),s.push(C(v,r,f,I)),u.push(o[I]),m.push(f.getRawIndex(I));break;case"-":var I=T.idx,L=g.getRawIndex(I);L!==I?(t.push(g.getItemLayout(I)),a.push(i.dataToPoint([g.get(y.dataDimsForPoint[0],I),g.get(y.dataDimsForPoint[1],I)])),s.push(c[I]),u.push(C(y,i,g,I)),m.push(L)):w=!1}w&&(h.push(T),p.push(p.length))}p.sort(function(U,B){return m[U]-m[B]});for(var N=[],R=[],D=[],F=[],M=[],E=0;E<p.length;E++){var I=p[E];N[E]=t[I],R[E]=a[I],D[E]=s[I],F[E]=u[I],M[E]=h[I]}return{current:N,next:R,stackedOnCurrent:D,stackedOnNext:F,status:M}}H.exports=b},"8Skl":function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="DownOutlined";var f=k.a=x.forwardRef(g)},"8Th4":function(H,k,d){var O=d("3LNs"),x=d("/y7N"),C=d("7bkD"),A=d("Znkb"),b=["x","y"],g=["width","height"],f=O.extend({makeElOption:function(n,e,l,t,a){var s=l.axis,u=s.coordinateSystem,h=r(u,1-o(s)),p=u.dataToPoint(e)[0],m=t.get("type");if(m&&m!=="none"){var v=x.buildElStyle(t),y=c[m](s,p,h);y.style=v,n.graphicKey=y.type,n.pointer=y}var E=C.layout(l);x.buildCartesianSingleLabelElOption(e,n,E,l,t,a)},getHandleTransform:function(n,e,l){var t=C.layout(e,{labelInside:!1});return t.labelMargin=l.get("handle.margin"),{position:x.getTransformedPosition(e.axis,n,t),rotation:t.rotation+(t.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(n,e,l,t){var a=l.axis,s=a.coordinateSystem,u=o(a),h=r(s,u),p=n.position;p[u]+=e[u],p[u]=Math.min(h[1],p[u]),p[u]=Math.max(h[0],p[u]);var m=r(s,1-u),v=(m[1]+m[0])/2,y=[v,v];return y[u]=p[u],{position:p,rotation:n.rotation,cursorPoint:y,tooltipOption:{verticalAlign:"middle"}}}}),c={line:function(n,e,l){var t=x.makeLineShape([e,l[0]],[e,l[1]],o(n));return{type:"Line",subPixelOptimize:!0,shape:t}},shadow:function(n,e,l){var t=n.getBandWidth(),a=l[1]-l[0];return{type:"Rect",shape:x.makeRectShape([e-t/2,l[0]],[t,a],o(n))}}};function o(n){return n.isHorizontal()?0:1}function r(n,e){var l=n.getRect();return[l[b[e]],l[b[e]]+l[g[e]]]}A.registerAxisPointerClass("SingleAxisPointer",f);var i=f;H.exports=i},"8Uz6":function(H,k,d){var O=d("hNWo"),x=d("+TT/"),C=x.mergeLayoutParam,A=x.getLayoutParams,b=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,o,r,i){var n=A(c);b.superCall(this,"init",c,o,r,i),g(this,c,n)},mergeOption:function(c,o){b.superCall(this,"mergeOption",c,o),g(this,this.option,c)}});function g(c,o,r){var i=c.getOrient(),n=[1,1];n[i.index]=0,C(o,r,{type:"box",ignoreSize:n})}var f=b;H.exports=f},"8X+K":function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("4mN7"),b=A.fromPoints,g=d("9wZj"),f=d("FBjb"),c=d("8SMY"),o=d("IwbS"),r=d("4NO4"),i=d("1NG9"),n=i.Polyline,e=i.Polygon,l=d("6Ic6"),t=d("n4Lv"),a=t.prepareDataCoordInfo,s=t.getStackedOnPoint,u=d("sK/D"),h=u.createGridClipPath,p=u.createPolarClipPath;function m(N,R){if(N.length!==R.length)return;for(var D=0;D<N.length;D++){var F=N[D],M=R[D];if(F[0]!==M[0]||F[1]!==M[1])return}return!0}function v(N,R){var D=[],F=[],M=[],U=[];return b(N,D,F),b(R,M,U),Math.max(Math.abs(D[0]-M[0]),Math.abs(D[1]-M[1]),Math.abs(F[0]-U[0]),Math.abs(F[1]-U[1]))}function y(N){return typeof N=="number"?N:N?.5:0}function E(N,R,D){if(!D.valueDim)return[];for(var F=[],M=0,U=R.count();M<U;M++)F.push(s(D,N,R,M));return F}function T(N,R,D){for(var F=R.getBaseAxis(),M=F.dim==="x"||F.dim==="radius"?0:1,U=[],B=0;B<N.length-1;B++){var j=N[B+1],W=N[B];U.push(W);var V=[];switch(D){case"end":V[M]=j[M],V[1-M]=W[1-M],U.push(V);break;case"middle":var z=(W[M]+j[M])/2,J=[];V[M]=J[M]=z,V[1-M]=W[1-M],J[1-M]=j[1-M],U.push(V),U.push(J);break;default:V[M]=W[M],V[1-M]=j[1-M],U.push(V)}}return N[B]&&U.push(N[B]),U}function w(N,R){var D=N.getVisual("visualMeta");if(!D||!D.length||!N.count())return;if(R.type!=="cartesian2d")return;for(var F,M,U=D.length-1;U>=0;U--){var B=D[U].dimension,j=N.dimensions[B],W=N.getDimensionInfo(j);if(F=W&&W.coordDim,F==="x"||F==="y"){M=D[U];break}}if(!M)return;var V=R.getAxis(F),z=C.map(M.stops,function(He){return{coord:V.toGlobalCoord(V.dataToCoord(He.value)),color:He.color}}),J=z.length,q=M.outerColors.slice();J&&z[0].coord>z[J-1].coord&&(z.reverse(),q.reverse());var de=10,ae=z[0].coord-de,ve=z[J-1].coord+de,_e=ve-ae;if(_e<.001)return"transparent";C.each(z,function(He){He.offset=(He.coord-ae)/_e}),z.push({offset:J?z[J-1].offset:.5,color:q[1]||"transparent"}),z.unshift({offset:J?z[0].offset:.5,color:q[0]||"transparent"});var Ie=new o.LinearGradient(0,0,0,0,z,!0);return Ie[F]=ae,Ie[F+"2"]=ve,Ie}function S(N,R,D){var F=N.get("showAllSymbol"),M=F==="auto";if(F&&!M)return;var U=D.getAxesByScale("ordinal")[0];if(!U)return;if(M&&_(U,R))return;var B=R.mapDimension(U.dim),j={};return C.each(U.getViewLabels(),function(W){j[W.tickValue]=1}),function(W){return!j.hasOwnProperty(R.get(B,W))}}function _(N,R){var D=N.getExtent(),F=Math.abs(D[1]-D[0])/N.scale.count();isNaN(F)&&(F=0);for(var M=R.count(),U=Math.max(1,Math.round(M/5)),B=0;B<M;B+=U)if(f.getSymbolSize(R,B)[N.isHorizontal()?1:0]*1.5>F)return!1;return!0}function I(N,R,D){if(N.type==="cartesian2d"){var F=N.getBaseAxis().isHorizontal(),M=h(N,R,D);if(!D.get("clip",!0)){var U=M.shape,B=Math.max(U.width,U.height);F?(U.y-=B,U.height+=B*2):(U.x-=B,U.width+=B*2)}return M}else return p(N,R,D)}var L=l.extend({type:"line",init:function(){var N=new o.Group,R=new g;this.group.add(R.group),this._symbolDraw=R,this._lineGroup=N},render:function(N,R,D){var F=N.coordinateSystem,M=this.group,U=N.getData(),B=N.getModel("lineStyle"),j=N.getModel("areaStyle"),W=U.mapArray(U.getItemLayout),V=F.type==="polar",z=this._coordSys,J=this._symbolDraw,q=this._polyline,de=this._polygon,ae=this._lineGroup,ve=N.get("animation"),_e=!j.isEmpty(),Ie=j.get("origin"),He=a(F,U,Ie),me=E(F,U,He),ke=N.get("showSymbol"),se=ke&&!V&&S(N,U,F),te=this._data;te&&te.eachItemGraphicEl(function(ce,Te){ce.__temp&&(M.remove(ce),te.setItemGraphicEl(Te,null))}),ke||J.remove(),M.add(ae);var Ge=!V&&N.get("step"),oe;F&&F.getArea&&N.get("clip",!0)&&(oe=F.getArea(),oe.width!=null?(oe.x-=.1,oe.y-=.1,oe.width+=.2,oe.height+=.2):oe.r0&&(oe.r0-=.5,oe.r1+=.5)),this._clipShapeForSymbol=oe,q&&z.type===F.type&&Ge===this._step?(_e&&!de?de=this._newPolygon(W,me,F,ve):de&&!_e&&(ae.remove(de),de=this._polygon=null),ae.setClipPath(I(F,!1,N)),ke&&J.updateData(U,{isIgnore:se,clipShape:oe}),U.eachItemGraphicEl(function(ce){ce.stopAnimation(!0)}),(!m(this._stackedOnPoints,me)||!m(this._points,W))&&(ve?this._updateAnimation(U,me,F,D,Ge,Ie):(Ge&&(W=T(W,F,Ge),me=T(me,F,Ge)),q.setShape({points:W}),de&&de.setShape({points:W,stackedOnPoints:me})))):(ke&&J.updateData(U,{isIgnore:se,clipShape:oe}),Ge&&(W=T(W,F,Ge),me=T(me,F,Ge)),q=this._newPolyline(W,F,ve),_e&&(de=this._newPolygon(W,me,F,ve)),ae.setClipPath(I(F,!0,N)));var Y=w(U,F)||U.getVisual("color");q.useStyle(C.defaults(B.getLineStyle(),{fill:"none",stroke:Y,lineJoin:"bevel"}));var G=N.get("smooth");if(G=y(N.get("smooth")),q.setShape({smooth:G,smoothMonotone:N.get("smoothMonotone"),connectNulls:N.get("connectNulls")}),de){var Q=U.getCalculationInfo("stackedOnSeries"),ye=0;de.useStyle(C.defaults(j.getAreaStyle(),{fill:Y,opacity:.7,lineJoin:"bevel"})),Q&&(ye=y(Q.get("smooth"))),de.setShape({smooth:G,stackedOnSmooth:ye,smoothMonotone:N.get("smoothMonotone"),connectNulls:N.get("connectNulls")})}this._data=U,this._coordSys=F,this._stackedOnPoints=me,this._points=W,this._step=Ge,this._valueOrigin=Ie},dispose:function(){},highlight:function(N,R,D,F){var M=N.getData(),U=r.queryDataIndex(M,F);if(!(U instanceof Array)&&U!=null&&U>=0){var B=M.getItemGraphicEl(U);if(!B){var j=M.getItemLayout(U);if(!j)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(j[0],j[1]))return;B=new f(M,U),B.position=j,B.setZ(N.get("zlevel"),N.get("z")),B.ignore=isNaN(j[0])||isNaN(j[1]),B.__temp=!0,M.setItemGraphicEl(U,B),B.stopSymbolAnimation(!0),this.group.add(B)}B.highlight()}else l.prototype.highlight.call(this,N,R,D,F)},downplay:function(N,R,D,F){var M=N.getData(),U=r.queryDataIndex(M,F);if(U!=null&&U>=0){var B=M.getItemGraphicEl(U);B&&(B.__temp?(M.setItemGraphicEl(U,null),this.group.remove(B)):B.downplay())}else l.prototype.downplay.call(this,N,R,D,F)},_newPolyline:function(N){var R=this._polyline;return R&&this._lineGroup.remove(R),R=new n({shape:{points:N},silent:!0,z2:10}),this._lineGroup.add(R),this._polyline=R,R},_newPolygon:function(N,R){var D=this._polygon;return D&&this._lineGroup.remove(D),D=new e({shape:{points:N,stackedOnPoints:R},silent:!0}),this._lineGroup.add(D),this._polygon=D,D},_updateAnimation:function(N,R,D,F,M,U){var B=this._polyline,j=this._polygon,W=N.hostModel,V=c(this._data,N,this._stackedOnPoints,R,this._coordSys,D,this._valueOrigin,U),z=V.current,J=V.stackedOnCurrent,q=V.next,de=V.stackedOnNext;if(M&&(z=T(V.current,D,M),J=T(V.stackedOnCurrent,D,M),q=T(V.next,D,M),de=T(V.stackedOnNext,D,M)),v(z,q)>3e3||j&&v(J,de)>3e3){B.setShape({points:q}),j&&j.setShape({points:q,stackedOnPoints:de});return}B.shape.__points=V.current,B.shape.points=z,o.updateProps(B,{shape:{points:q}},W),j&&(j.setShape({points:z,stackedOnPoints:J}),o.updateProps(j,{shape:{points:q,stackedOnPoints:de}},W));for(var ae=[],ve=V.status,_e=0;_e<ve.length;_e++){var Ie=ve[_e].cmd;if(Ie==="="){var He=N.getItemGraphicEl(ve[_e].idx1);He&&ae.push({el:He,ptIdx:_e})}}B.animators&&B.animators.length&&B.animators[0].during(function(){for(var me=0;me<ae.length;me++){var ke=ae[me].el;ke.attr("position",B.shape.__points[ae[me].ptIdx])}})},remove:function(N){var R=this.group,D=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),D&&D.eachItemGraphicEl(function(F,M){F.__temp&&(R.remove(F),D.setItemGraphicEl(M,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});H.exports=L},"8XDt":function(H,k,d){d("qH13");var O=d("aX58"),x=O.registerPainter,C=d("6fms");x("vml",C)},"8XRh":function(H,k,d){"use strict";d.d(k,"a",function(){return Ve});var O=d("rePB"),x=d("VTBJ"),C=d("ODXe"),A=d("U8pU"),b=d("q1tI"),g=d("m+aA"),f=d("c+Xe"),c=d("TSYQ"),o=d.n(c),r=d("MNnm");function i(et,Oe){var Tt={};return Tt[et.toLowerCase()]=Oe.toLowerCase(),Tt["Webkit".concat(et)]="webkit".concat(Oe),Tt["Moz".concat(et)]="moz".concat(Oe),Tt["ms".concat(et)]="MS".concat(Oe),Tt["O".concat(et)]="o".concat(Oe.toLowerCase()),Tt}function n(et,Oe){var Tt={animationend:i("Animation","AnimationEnd"),transitionend:i("Transition","TransitionEnd")};return et&&("AnimationEvent"in Oe||delete Tt.animationend.animation,"TransitionEvent"in Oe||delete Tt.transitionend.transition),Tt}var e=n(Object(r.a)(),typeof window!="undefined"?window:{}),l={};if(Object(r.a)()){var t=document.createElement("div");l=t.style}var a={};function s(et){if(a[et])return a[et];var Oe=e[et];if(Oe)for(var Tt=Object.keys(Oe),Je=Tt.length,St=0;St<Je;St+=1){var Mt=Tt[St];if(Object.prototype.hasOwnProperty.call(Oe,Mt)&&Mt in l)return a[et]=Oe[Mt],a[et]}return""}var u=s("animationend"),h=s("transitionend"),p=!!(u&&h),m=u||"animationend",v=h||"transitionend";function y(et,Oe){if(!et)return null;if(Object(A.a)(et)==="object"){var Tt=Oe.replace(/-\w/g,function(Je){return Je[1].toUpperCase()});return et[Tt]}return"".concat(et,"-").concat(Oe)}var E="none",T="appear",w="enter",S="leave",_="none",I="prepare",L="start",N="active",R="end",D=d("dm2S"),F=d("wgJM"),M=function(){var et=b.useRef(null);function Oe(){F.a.cancel(et.current)}function Tt(Je){var St=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Oe();var Mt=Object(F.a)(function(){St<=1?Je({isCanceled:function(){return Mt!==et.current}}):Tt(Je,St-1)});et.current=Mt}return b.useEffect(function(){return function(){Oe()}},[]),[Tt,Oe]},U=Object(r.a)()?b.useLayoutEffect:b.useEffect,B=U,j=[I,L,N,R],W=!1,V=!0;function z(et){return et===N||et===R}var J=function(et,Oe){var Tt=Object(D.a)(_),Je=Object(C.a)(Tt,2),St=Je[0],Mt=Je[1],er=M(),It=Object(C.a)(er,2),_t=It[0],Xe=It[1];function ie(){Mt(I,!0)}return B(function(){if(St!==_&&St!==R){var X=j.indexOf(St),Be=j[X+1],Ce=Oe(St);Ce===W?Mt(Be,!0):_t(function(Z){function nt(){if(Z.isCanceled())return;Mt(Be,!0)}Ce===!0?nt():Promise.resolve(Ce).then(nt)})}},[et,St]),b.useEffect(function(){return function(){Xe()}},[]),[ie,St]},q=function(et){var Oe=Object(b.useRef)(),Tt=Object(b.useRef)(et);Tt.current=et;var Je=b.useCallback(function(er){Tt.current(er)},[]);function St(er){er&&(er.removeEventListener(v,Je),er.removeEventListener(m,Je))}function Mt(er){Oe.current&&Oe.current!==er&&St(Oe.current),er&&er!==Oe.current&&(er.addEventListener(v,Je),er.addEventListener(m,Je),Oe.current=er)}return b.useEffect(function(){return function(){St(Oe.current)}},[]),[Mt,St]};function de(et,Oe,Tt,Je){var St=Je.motionEnter,Mt=St===void 0?!0:St,er=Je.motionAppear,It=er===void 0?!0:er,_t=Je.motionLeave,Xe=_t===void 0?!0:_t,ie=Je.motionDeadline,X=Je.motionLeaveImmediately,Be=Je.onAppearPrepare,Ce=Je.onEnterPrepare,Z=Je.onLeavePrepare,nt=Je.onAppearStart,ct=Je.onEnterStart,Qe=Je.onLeaveStart,dt=Je.onAppearActive,Ft=Je.onEnterActive,Lr=Je.onLeaveActive,Wt=Je.onAppearEnd,ar=Je.onEnterEnd,Ut=Je.onLeaveEnd,kt=Je.onVisibleChanged,st=Object(D.a)(),Rr=Object(C.a)(st,2),on=Rr[0],Sn=Rr[1],zn=Object(D.a)(E),Ii=Object(C.a)(zn,2),yn=Ii[0],Nn=Ii[1],jt=Object(D.a)(null),At=Object(C.a)(jt,2),Re=At[0],Ke=At[1],Pe=Object(b.useRef)(!1),at=Object(b.useRef)(null);function wt(){return Tt()}var Rt=Object(b.useRef)(!1);function xt(ut){var Kt=wt();if(ut&&!ut.deadline&&ut.target!==Kt)return;var Ar=Rt.current,ir;yn===T&&Ar?ir=Wt==null?void 0:Wt(Kt,ut):yn===w&&Ar?ir=ar==null?void 0:ar(Kt,ut):yn===S&&Ar&&(ir=Ut==null?void 0:Ut(Kt,ut)),yn!==E&&Ar&&ir!==!1&&(Nn(E,!0),Ke(null,!0))}var Lt=q(xt),gr=Object(C.a)(Lt,1),Br=gr[0],Et=b.useMemo(function(){var ut,Kt,Ar;switch(yn){case T:return ut={},Object(O.a)(ut,I,Be),Object(O.a)(ut,L,nt),Object(O.a)(ut,N,dt),ut;case w:return Kt={},Object(O.a)(Kt,I,Ce),Object(O.a)(Kt,L,ct),Object(O.a)(Kt,N,Ft),Kt;case S:return Ar={},Object(O.a)(Ar,I,Z),Object(O.a)(Ar,L,Qe),Object(O.a)(Ar,N,Lr),Ar;default:return{}}},[yn]),it=J(yn,function(ut){if(ut===I){var Kt=Et[I];return Kt?Kt(wt()):W}if(Ht in Et){var Ar;Ke(((Ar=Et[Ht])===null||Ar===void 0?void 0:Ar.call(Et,wt(),null))||null)}return Ht===N&&(Br(wt()),ie>0&&(clearTimeout(at.current),at.current=setTimeout(function(){xt({deadline:!0})},ie))),V}),rt=Object(C.a)(it,2),Pt=rt[0],Ht=rt[1],bt=z(Ht);Rt.current=bt,B(function(){Sn(Oe);var ut=Pe.current;if(Pe.current=!0,!et)return;var Kt;!ut&&Oe&&It&&(Kt=T),ut&&Oe&&Mt&&(Kt=w),(ut&&!Oe&&Xe||!ut&&X&&!Oe&&Xe)&&(Kt=S),Kt&&(Nn(Kt),Pt())},[Oe]),Object(b.useEffect)(function(){(yn===T&&!It||yn===w&&!Mt||yn===S&&!Xe)&&Nn(E)},[It,Mt,Xe]),Object(b.useEffect)(function(){return function(){Pe.current=!1,clearTimeout(at.current)}},[]),Object(b.useEffect)(function(){on!==void 0&&yn===E&&(kt==null||kt(on))},[on,yn]);var Gt=Re;return Et[I]&&Ht===L&&(Gt=Object(x.a)({transition:"none"},Gt)),[yn,Ht,Gt,on!=null?on:Oe]}var ae=d("1OyB"),ve=d("vuIU"),_e=d("Ji7U"),Ie=d("LK+K"),He=function(et){Object(_e.a)(Tt,et);var Oe=Object(Ie.a)(Tt);function Tt(){return Object(ae.a)(this,Tt),Oe.apply(this,arguments)}return Object(ve.a)(Tt,[{key:"render",value:function(){return this.props.children}}]),Tt}(b.Component),me=He;function ke(et){var Oe=et;Object(A.a)(et)==="object"&&(Oe=et.transitionSupport);function Tt(St){return!!(St.motionName&&Oe)}var Je=b.forwardRef(function(St,Mt){var er=St.visible,It=er===void 0?!0:er,_t=St.removeOnLeave,Xe=_t===void 0?!0:_t,ie=St.forceRender,X=St.children,Be=St.motionName,Ce=St.leavedClassName,Z=St.eventProps,nt=Tt(St),ct=Object(b.useRef)(),Qe=Object(b.useRef)();function dt(){try{return ct.current instanceof HTMLElement?ct.current:Object(g.a)(Qe.current)}catch(jt){return null}}var Ft=de(nt,It,dt,St),Lr=Object(C.a)(Ft,4),Wt=Lr[0],ar=Lr[1],Ut=Lr[2],kt=Lr[3],st=b.useRef(kt);kt&&(st.current=!0);var Rr=b.useCallback(function(jt){ct.current=jt,Object(f.b)(Mt,jt)},[Mt]),on,Sn=Object(x.a)(Object(x.a)({},Z),{},{visible:It});if(!X)on=null;else if(Wt===E||!Tt(St))kt?on=X(Object(x.a)({},Sn),Rr):!Xe&&st.current?on=X(Object(x.a)(Object(x.a)({},Sn),{},{className:Ce}),Rr):ie?on=X(Object(x.a)(Object(x.a)({},Sn),{},{style:{display:"none"}}),Rr):on=null;else{var zn,Ii;ar===I?Ii="prepare":z(ar)?Ii="active":ar===L&&(Ii="start"),on=X(Object(x.a)(Object(x.a)({},Sn),{},{className:o()(y(Be,Wt),(zn={},Object(O.a)(zn,y(Be,"".concat(Wt,"-").concat(Ii)),Ii),Object(O.a)(zn,Be,typeof Be=="string"),zn)),style:Ut}),Rr)}if(b.isValidElement(on)&&Object(f.c)(on)){var yn=on,Nn=yn.ref;Nn||(on=b.cloneElement(on,{ref:Rr}))}return b.createElement(me,{ref:Qe},on)});return Je.displayName="CSSMotion",Je}var se=ke(p),te=d("wx14"),Ge=d("Ff2n"),oe="add",Y="keep",G="remove",Q="removed";function ye(et){var Oe;return et&&Object(A.a)(et)==="object"&&"key"in et?Oe=et:Oe={key:et},Object(x.a)(Object(x.a)({},Oe),{},{key:String(Oe.key)})}function ce(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return et.map(ye)}function Te(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Tt=[],Je=0,St=Oe.length,Mt=ce(et),er=ce(Oe);Mt.forEach(function(Xe){for(var ie=!1,X=Je;X<St;X+=1){var Be=er[X];if(Be.key===Xe.key){Je<X&&(Tt=Tt.concat(er.slice(Je,X).map(function(Ce){return Object(x.a)(Object(x.a)({},Ce),{},{status:oe})})),Je=X),Tt.push(Object(x.a)(Object(x.a)({},Be),{},{status:Y})),Je+=1,ie=!0;break}}ie||Tt.push(Object(x.a)(Object(x.a)({},Xe),{},{status:G}))}),Je<St&&(Tt=Tt.concat(er.slice(Je).map(function(Xe){return Object(x.a)(Object(x.a)({},Xe),{},{status:oe})})));var It={};Tt.forEach(function(Xe){var ie=Xe.key;It[ie]=(It[ie]||0)+1});var _t=Object.keys(It).filter(function(Xe){return It[Xe]>1});return _t.forEach(function(Xe){Tt=Tt.filter(function(ie){var X=ie.key,Be=ie.status;return X!==Xe||Be!==G}),Tt.forEach(function(ie){ie.key===Xe&&(ie.status=Y)})}),Tt}var Se=["component","children","onVisibleChanged","onAllRemoved"],le=["status"],fe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ee(et){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se,Tt=function(Je){Object(_e.a)(Mt,Je);var St=Object(Ie.a)(Mt);function Mt(){var er;Object(ae.a)(this,Mt);for(var It=arguments.length,_t=new Array(It),Xe=0;Xe<It;Xe++)_t[Xe]=arguments[Xe];return er=St.call.apply(St,[this].concat(_t)),er.state={keyEntities:[]},er.removeKey=function(ie){var X=er.state.keyEntities,Be=X.map(function(Ce){return Ce.key!==ie?Ce:Object(x.a)(Object(x.a)({},Ce),{},{status:Q})});return er.setState({keyEntities:Be}),Be.filter(function(Ce){var Z=Ce.status;return Z!==Q}).length},er}return Object(ve.a)(Mt,[{key:"render",value:function(){var It=this,_t=this.state.keyEntities,Xe=this.props,ie=Xe.component,X=Xe.children,Be=Xe.onVisibleChanged,Ce=Xe.onAllRemoved,Z=Object(Ge.a)(Xe,Se),nt=ie||b.Fragment,ct={};return fe.forEach(function(Qe){ct[Qe]=Z[Qe],delete Z[Qe]}),delete Z.keys,b.createElement(nt,Z,_t.map(function(Qe){var dt=Qe.status,Ft=Object(Ge.a)(Qe,le),Lr=dt===oe||dt===Y;return b.createElement(Oe,Object(te.a)({},ct,{key:Ft.key,visible:Lr,eventProps:Ft,onVisibleChanged:function(ar){if(Be==null||Be(ar,{key:Ft.key}),!ar){var Ut=It.removeKey(Ft.key);Ut===0&&Ce&&Ce()}}}),X)}))}}],[{key:"getDerivedStateFromProps",value:function(It,_t){var Xe=It.keys,ie=_t.keyEntities,X=ce(Xe),Be=Te(ie,X);return{keyEntities:Be.filter(function(Ce){var Z=ie.find(function(nt){var ct=nt.key;return Ce.key===ct});return!(Z&&Z.status===Q&&Ce.status===G)})}}}]),Mt}(b.Component);return Tt.defaultProps={component:"div"},Tt}var Ve=Ee(p),vt=k.b=se},"8hn6":function(H,k){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}}}},x=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],C={color:x,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:x[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:x},gauge:{title:{textStyle:{color:d}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};C.categoryAxis.splitLine.show=!1;var A=C;H.exports=A},"8nMs":function(H,k,d){var O=d("bYtY"),x=d("IwbS"),C=d("+rIm"),A=d("Znkb"),b=d("AVZG"),g=d("WN+l"),f=g.rectCoordAxisBuildSplitArea,c=g.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],r=["splitArea","splitLine","minorSplitLine"],i=A.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(n,e,l,t){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new x.Group,this.group.add(this._axisGroup),!n.get("show"))return;var s=n.getCoordSysModel(),u=b.layout(s,n),h=new C(n,u);O.each(o,h.add,h),this._axisGroup.add(h.getGroup()),O.each(r,function(p){n.get(p+".show")&&this["_"+p](n,s)},this),x.groupTransition(a,this._axisGroup,n),i.superCall(this,"render",n,e,l,t)},remove:function(){c(this)},_splitLine:function(n,e){var l=n.axis;if(l.scale.isBlank())return;var t=n.getModel("splitLine"),a=t.getModel("lineStyle"),s=a.get("color");s=O.isArray(s)?s:[s];for(var u=e.coordinateSystem.getRect(),h=l.isHorizontal(),p=0,m=l.getTicksCoords({tickModel:t}),v=[],y=[],E=a.getLineStyle(),T=0;T<m.length;T++){var w=l.toGlobalCoord(m[T].coord);h?(v[0]=w,v[1]=u.y,y[0]=w,y[1]=u.y+u.height):(v[0]=u.x,v[1]=w,y[0]=u.x+u.width,y[1]=w);var S=p++%s.length,_=m[T].tickValue;this._axisGroup.add(new x.Line({anid:_!=null?"line_"+m[T].tickValue:null,subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:y[0],y2:y[1]},style:O.defaults({stroke:s[S]},E),silent:!0}))}},_minorSplitLine:function(n,e){var l=n.axis,t=n.getModel("minorSplitLine"),a=t.getModel("lineStyle"),s=e.coordinateSystem.getRect(),u=l.isHorizontal(),h=l.getMinorTicksCoords();if(!h.length)return;for(var p=[],m=[],v=a.getLineStyle(),y=0;y<h.length;y++)for(var E=0;E<h[y].length;E++){var T=l.toGlobalCoord(h[y][E].coord);u?(p[0]=T,p[1]=s.y,m[0]=T,m[1]=s.y+s.height):(p[0]=s.x,p[1]=T,m[0]=s.x+s.width,m[1]=T),this._axisGroup.add(new x.Line({anid:"minor_line_"+h[y][E].tickValue,subPixelOptimize:!0,shape:{x1:p[0],y1:p[1],x2:m[0],y2:m[1]},style:v,silent:!0}))}},_splitArea:function(n,e){f(this,this._axisGroup,n,e)}});i.extend({type:"xAxis"}),i.extend({type:"yAxis"})},"8nly":function(H,k,d){var O=d("mFDi"),x=d("4mN7"),C=d("QBsz"),A=d("BlVb");function b(f,c,o){if(this.name=f,this.geometries=c,o)o=[o[0],o[1]];else{var r=this.getBoundingRect();o=[r.x+r.width/2,r.y+r.height/2]}this.center=o}b.prototype={constructor:b,properties:null,getBoundingRect:function(){var f=this._rect;if(f)return f;for(var c=Number.MAX_VALUE,o=[c,c],r=[-c,-c],i=[],n=[],e=this.geometries,l=0;l<e.length;l++){if(e[l].type!=="polygon")continue;var t=e[l].exterior;x.fromPoints(t,i,n),C.min(o,o,i),C.max(r,r,n)}return l===0&&(o[0]=o[1]=r[0]=r[1]=0),this._rect=new O(o[0],o[1],r[0]-o[0],r[1]-o[1])},contain:function(f){var c=this.getBoundingRect(),o=this.geometries;if(!c.contain(f[0],f[1]))return!1;e:for(var r=0,i=o.length;r<i;r++){if(o[r].type!=="polygon")continue;var n=o[r].exterior,e=o[r].interiors;if(A.contain(n,f[0],f[1])){for(var l=0;l<(e?e.length:0);l++)if(A.contain(e[l]))continue e;return!0}}return!1},transformTo:function(f,c,o,r){var i=this.getBoundingRect(),n=i.width/i.height;o?r||(r=o/n):o=n*r;for(var e=new O(f,c,o,r),l=i.calculateTransform(e),t=this.geometries,a=0;a<t.length;a++){if(t[a].type!=="polygon")continue;for(var s=t[a].exterior,u=t[a].interiors,h=0;h<s.length;h++)C.applyTransform(s[h],s[h],l);for(var p=0;p<(u?u.length:0);p++)for(var h=0;h<u[p].length;h++)C.applyTransform(u[p][h],u[p][h],l)}i=this._rect,i.copy(e),this.center=[i.x+i.width/2,i.y+i.height/2]},cloneShallow:function(f){f==null&&(f=this.name);var c=new b(f,this.geometries,this.center);return c._rect=this._rect,c.transformTo=null,c}};var g=b;H.exports=g},"8txm":function(H,k,d){},"8waO":function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("iLNv"),A=d("ZWlE");d("hJvP"),d("IXyC"),d("xRUu");var b=5;O.extendComponentView({type:"parallel",render:function(c,o,r){this._model=c,this._api=r,this._handlers||(this._handlers={},x.each(g,function(i,n){r.getZr().on(n,this._handlers[n]=x.bind(i,this))},this)),C.createOrUpdate(this,"_throttledDispatchExpand",c.get("axisExpandRate"),"fixRate")},dispose:function(c,o){x.each(this._handlers,function(r,i){o.getZr().off(i,r)}),this._handlers=null},_throttledDispatchExpand:function(c){this._dispatchExpand(c)},_dispatchExpand:function(c){c&&this._api.dispatchAction(x.extend({type:"parallelAxisExpand"},c))}});var g={mousedown:function(c){f(this,"click")&&(this._mouseDownPoint=[c.offsetX,c.offsetY])},mouseup:function(c){var o=this._mouseDownPoint;if(f(this,"click")&&o){var r=[c.offsetX,c.offsetY],i=Math.pow(o[0]-r[0],2)+Math.pow(o[1]-r[1],2);if(i>b)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||!f(this,"mousemove"))return;var o=this._model,r=o.coordinateSystem.getSlidedAxisExpandWindow([c.offsetX,c.offsetY]),i=r.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(o.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:i==="jump"?null:!1})}};function f(c,o){var r=c._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===o}O.registerPreprocessor(A)},"8x+h":function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),b=d("K4ya"),g=d("Qxkt"),f=["#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(i,n){var e=this.option;!n&&b.replaceVisualOption(e,i,["inBrush","outOfBrush"]);var l=e.inBrush=e.inBrush||{};e.outOfBrush=e.outOfBrush||{color:f},l.hasOwnProperty("liftZ")||(l.liftZ=5)},setAreas:function(i){if(!i)return;this.areas=A.map(i,function(n){return o(this.option,n)},this)},setBrushOption:function(i){this.brushOption=o(this.option,i),this.brushType=this.brushOption.brushType}});function o(i,n){return A.merge({brushType:i.brushType,brushMode:i.brushMode,transformable:i.transformable,brushStyle:new g(i.brushStyle).getItemStyle(),removeOnClick:i.removeOnClick,z:i.z},n,!0)}var r=c;H.exports=r},"8z0m":function(H,k,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("RIqP"),A=d.n(C),b=d("pVnL"),g=d.n(b),f=d("J4zp"),c=d.n(f),o=d("q1tI"),r=d.n(o),i=d("TSYQ"),n=d.n(i);function e(Wt,ar){var Ut="cannot "+Wt.method+" "+Wt.action+" "+ar.status+"'",kt=new Error(Ut);return kt.status=ar.status,kt.method=Wt.method,kt.url=Wt.action,kt}function l(Wt){var ar=Wt.responseText||Wt.response;if(!ar)return ar;try{return JSON.parse(ar)}catch(Ut){return ar}}function t(Wt){var ar=new XMLHttpRequest;Wt.onProgress&&ar.upload&&(ar.upload.onprogress=function(Rr){Rr.total>0&&(Rr.percent=Rr.loaded/Rr.total*100),Wt.onProgress(Rr)});var Ut=new FormData;Wt.data&&Object.keys(Wt.data).forEach(function(st){var Rr=Wt.data[st];if(Array.isArray(Rr)){Rr.forEach(function(on){Ut.append(st+"[]",on)});return}Ut.append(st,Wt.data[st])}),Wt.file instanceof Blob?Ut.append(Wt.filename,Wt.file,Wt.file.name):Ut.append(Wt.filename,Wt.file),ar.onerror=function(Rr){Wt.onError(Rr)},ar.onload=function(){return ar.status<200||ar.status>=300?Wt.onError(e(Wt,ar),l(ar)):Wt.onSuccess(l(ar),ar)},ar.open(Wt.method,Wt.action,!0),Wt.withCredentials&&"withCredentials"in ar&&(ar.withCredentials=!0);var kt=Wt.headers||{};return kt["X-Requested-With"]!==null&&ar.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(kt).forEach(function(st){kt[st]!==null&&ar.setRequestHeader(st,kt[st])}),ar.send(Ut),{abort:function(){ar.abort()}}}var a=+new Date,s=0;function u(){return"rc-upload-"+a+"-"+ ++s}function h(Wt,ar){return Wt.indexOf(ar,Wt.length-ar.length)!==-1}var p=function(Wt,ar){if(Wt&&ar){var Ut=Array.isArray(ar)?ar:ar.split(","),kt=Wt.name||"",st=Wt.type||"",Rr=st.replace(/\/.*$/,"");return Ut.some(function(on){var Sn=on.trim();return Sn.charAt(0)==="."?h(kt.toLowerCase(),Sn.toLowerCase()):/\/\*$/.test(Sn)?Rr===Sn.replace(/\/.*$/,""):st===Sn})}return!0};function m(Wt,ar){var Ut=Wt.createReader(),kt=[];function st(){Ut.readEntries(function(Rr){var on=Array.prototype.slice.apply(Rr);kt=kt.concat(on);var Sn=!on.length;Sn?ar(kt):st()})}st()}var v=function(ar,Ut,kt){var st=function Rr(on,Sn){Sn=Sn||"",on.isFile?on.file(function(zn){kt(zn)&&(on.fullPath&&!zn.webkitRelativePath&&(Object.defineProperties(zn,{webkitRelativePath:{writable:!0}}),zn.webkitRelativePath=on.fullPath.replace(/^\//,""),Object.defineProperties(zn,{webkitRelativePath:{writable:!1}})),Ut([zn]))}):on.isDirectory&&m(on,function(zn){zn.forEach(function(Ii){Rr(Ii,""+Sn+on.name+"/")})})};ar.forEach(function(Rr){st(Rr.webkitGetAsEntry())})},y=v,E=Object.assign||function(Wt){for(var ar=1;ar<arguments.length;ar++){var Ut=arguments[ar];for(var kt in Ut)Object.prototype.hasOwnProperty.call(Ut,kt)&&(Wt[kt]=Ut[kt])}return Wt},T=function(){function Wt(ar,Ut){var kt=[],st=!0,Rr=!1,on=void 0;try{for(var Sn=ar[Symbol.iterator](),zn;!(st=(zn=Sn.next()).done)&&!(kt.push(zn.value),Ut&&kt.length===Ut);st=!0);}catch(Ii){Rr=!0,on=Ii}finally{try{!st&&Sn.return&&Sn.return()}finally{if(Rr)throw on}}return kt}return function(ar,Ut){if(Array.isArray(ar))return ar;if(Symbol.iterator in Object(ar))return Wt(ar,Ut);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),w=function(){function Wt(ar,Ut){for(var kt=0;kt<Ut.length;kt++){var st=Ut[kt];st.enumerable=st.enumerable||!1,st.configurable=!0,"value"in st&&(st.writable=!0),Object.defineProperty(ar,st.key,st)}}return function(ar,Ut,kt){return Ut&&Wt(ar.prototype,Ut),kt&&Wt(ar,kt),ar}}();function S(Wt,ar,Ut){return ar in Wt?Object.defineProperty(Wt,ar,{value:Ut,enumerable:!0,configurable:!0,writable:!0}):Wt[ar]=Ut,Wt}function _(Wt,ar){var Ut={};for(var kt in Wt){if(ar.indexOf(kt)>=0)continue;if(!Object.prototype.hasOwnProperty.call(Wt,kt))continue;Ut[kt]=Wt[kt]}return Ut}function I(Wt,ar){if(!(Wt instanceof ar))throw new TypeError("Cannot call a class as a function")}function L(Wt,ar){if(!Wt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ar&&(typeof ar=="object"||typeof ar=="function")?ar:Wt}function N(Wt,ar){if(typeof ar!="function"&&ar!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ar);Wt.prototype=Object.create(ar&&ar.prototype,{constructor:{value:Wt,enumerable:!1,writable:!0,configurable:!0}}),ar&&(Object.setPrototypeOf?Object.setPrototypeOf(Wt,ar):Wt.__proto__=ar)}var R=function(ar){return Object.keys(ar).reduce(function(Ut,kt){return(kt.substr(0,5)==="data-"||kt.substr(0,5)==="aria-"||kt==="role")&&(Ut[kt]=ar[kt]),Ut},{})},D=function(Wt){N(ar,Wt);function ar(){var Ut,kt,st,Rr;I(this,ar);for(var on=arguments.length,Sn=Array(on),zn=0;zn<on;zn++)Sn[zn]=arguments[zn];return Rr=(kt=(st=L(this,(Ut=ar.__proto__||Object.getPrototypeOf(ar)).call.apply(Ut,[this].concat(Sn))),st),st.state={uid:u()},st.reqs={},st.onChange=function(Ii){var yn=Ii.target.files;st.uploadFiles(yn),st.reset()},st.onClick=function(Ii){var yn=st.fileInput;if(!yn)return;var Nn=st.props,jt=Nn.children,At=Nn.onClick;jt&&jt.type==="button"&&(yn.parentNode.focus(),yn.parentNode.querySelector("button").blur()),yn.click(),At&&At(Ii)},st.onKeyDown=function(Ii){Ii.key==="Enter"&&st.onClick()},st.onFileDrop=function(Ii){var yn=st.props.multiple;if(Ii.preventDefault(),Ii.type==="dragover")return;if(st.props.directory)y(Array.prototype.slice.call(Ii.dataTransfer.items),st.uploadFiles,function(jt){return p(jt,st.props.accept)});else{var Nn=Array.prototype.slice.call(Ii.dataTransfer.files).filter(function(jt){return p(jt,st.props.accept)});yn===!1&&(Nn=Nn.slice(0,1)),st.uploadFiles(Nn)}},st.uploadFiles=function(Ii){var yn=Array.prototype.slice.call(Ii);yn.map(function(Nn){return Nn.uid=u(),Nn}).forEach(function(Nn){st.upload(Nn,yn)})},st.saveFileInput=function(Ii){st.fileInput=Ii},kt),L(st,Rr)}return w(ar,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(kt,st){var Rr=this,on=this.props;if(!on.beforeUpload)return setTimeout(function(){return Rr.post(kt)},0);var Sn=on.beforeUpload(kt,st);Sn&&Sn.then?Sn.then(function(zn){var Ii=Object.prototype.toString.call(zn);return Ii==="[object File]"||Ii==="[object Blob]"?Rr.post(zn):Rr.post(kt)}).catch(function(zn){console.log(zn)}):Sn!==!1&&setTimeout(function(){return Rr.post(kt)},0);return}},{key:"post",value:function(kt){var st=this;if(!this._isMounted)return;var Rr=this.props,on=Rr.onStart,Sn=Rr.onProgress,zn=Rr.transformFile,Ii=zn===void 0?function(yn){return yn}:zn;new Promise(function(yn){var Nn=Rr.action;return typeof Nn=="function"&&(Nn=Nn(kt)),yn(Nn)}).then(function(yn){var Nn=kt.uid,jt=Rr.customRequest||t,At=Promise.resolve(Ii(kt)).then(function(Re){var Ke=Rr.data;return typeof Ke=="function"&&(Ke=Ke(Re)),Promise.all([Re,Ke])}).catch(function(Re){console.error(Re)});At.then(function(Re){var Ke=T(Re,2),Pe=Ke[0],at=Ke[1],wt={action:yn,filename:Rr.name,data:at,file:Pe,headers:Rr.headers,withCredentials:Rr.withCredentials,method:Rr.method||"post",onProgress:Sn?function(Rt){Sn(Rt,kt)}:null,onSuccess:function(xt,Lt){delete st.reqs[Nn],Rr.onSuccess(xt,kt,Lt)},onError:function(xt,Lt){delete st.reqs[Nn],Rr.onError(xt,Lt,kt)}};on(kt),st.reqs[Nn]=jt(wt)})})}},{key:"reset",value:function(){this.setState({uid:u()})}},{key:"abort",value:function(kt){var st=this.reqs;if(kt){var Rr=kt;kt&&kt.uid&&(Rr=kt.uid),st[Rr]&&st[Rr].abort&&st[Rr].abort(),delete st[Rr]}else Object.keys(st).forEach(function(on){st[on]&&st[on].abort&&st[on].abort(),delete st[on]})}},{key:"render",value:function(){var kt,st=this.props,Rr=st.component,on=st.prefixCls,Sn=st.className,zn=st.disabled,Ii=st.id,yn=st.style,Nn=st.multiple,jt=st.accept,At=st.children,Re=st.directory,Ke=st.openFileDialogOnClick,Pe=st.onMouseEnter,at=st.onMouseLeave,wt=_(st,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),Rt=n()((kt={},S(kt,on,!0),S(kt,on+"-disabled",zn),S(kt,Sn,Sn),kt)),xt=zn?{}:{onClick:Ke?this.onClick:function(){},onKeyDown:Ke?this.onKeyDown:function(){},onMouseEnter:Pe,onMouseLeave:at,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return r.a.createElement(Rr,E({},xt,{className:Rt,role:"button",style:yn}),r.a.createElement("input",E({},R(wt),{id:Ii,type:"file",ref:this.saveFileInput,onClick:function(gr){return gr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:jt,directory:Re?"directory":null,webkitdirectory:Re?"webkitdirectory":null,multiple:Nn,onChange:this.onChange})),At)}}]),ar}(o.Component),F=D,M=Object.assign||function(Wt){for(var ar=1;ar<arguments.length;ar++){var Ut=arguments[ar];for(var kt in Ut)Object.prototype.hasOwnProperty.call(Ut,kt)&&(Wt[kt]=Ut[kt])}return Wt},U=function(){function Wt(ar,Ut){for(var kt=0;kt<Ut.length;kt++){var st=Ut[kt];st.enumerable=st.enumerable||!1,st.configurable=!0,"value"in st&&(st.writable=!0),Object.defineProperty(ar,st.key,st)}}return function(ar,Ut,kt){return Ut&&Wt(ar.prototype,Ut),kt&&Wt(ar,kt),ar}}();function B(Wt,ar){if(!(Wt instanceof ar))throw new TypeError("Cannot call a class as a function")}function j(Wt,ar){if(!Wt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ar&&(typeof ar=="object"||typeof ar=="function")?ar:Wt}function W(Wt,ar){if(typeof ar!="function"&&ar!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ar);Wt.prototype=Object.create(ar&&ar.prototype,{constructor:{value:Wt,enumerable:!1,writable:!0,configurable:!0}}),ar&&(Object.setPrototypeOf?Object.setPrototypeOf(Wt,ar):Wt.__proto__=ar)}function V(){}var z=function(Wt){W(ar,Wt);function ar(){var Ut,kt,st,Rr;B(this,ar);for(var on=arguments.length,Sn=Array(on),zn=0;zn<on;zn++)Sn[zn]=arguments[zn];return Rr=(kt=(st=j(this,(Ut=ar.__proto__||Object.getPrototypeOf(ar)).call.apply(Ut,[this].concat(Sn))),st),st.saveUploader=function(Ii){st.uploader=Ii},kt),j(st,Rr)}return U(ar,[{key:"abort",value:function(kt){this.uploader.abort(kt)}},{key:"render",value:function(){return r.a.createElement(F,M({},this.props,{ref:this.saveUploader}))}}]),ar}(o.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 J=z,q=J,de=function(Wt,ar){var Ut={};for(var kt in Wt)Object.prototype.hasOwnProperty.call(Wt,kt)&&ar.indexOf(kt)<0&&(Ut[kt]=Wt[kt]);if(Wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,kt=Object.getOwnPropertySymbols(Wt);st<kt.length;st++)ar.indexOf(kt[st])<0&&Object.prototype.propertyIsEnumerable.call(Wt,kt[st])&&(Ut[kt[st]]=Wt[kt[st]]);return Ut},ae=function(ar,Ut){var kt=ar.style,st=ar.height,Rr=de(ar,["style","height"]);return o.createElement(Ft,g()({ref:Ut},Rr,{type:"drag",style:g()(g()({},kt),{height:st})}))},ve=o.forwardRef(ae);ve.displayName="Dragger";var _e=ve,Ie=d("UmKh"),He=d("gZBC"),me=d.n(He),ke=d("+d4F"),se=d.n(ke),te=d("XAae"),Ge=d.n(te),oe=d("6xvX"),Y=d.n(oe),G=d("qPY4"),Q=d.n(G),ye=d("QB+1"),ce=d.n(ye),Te=d("Qs3X"),Se=d.n(Te),le=d("0n0R");function fe(){return!0}function Ee(Wt){return g()(g()({},Wt),{lastModified:Wt.lastModified,lastModifiedDate:Wt.lastModifiedDate,name:Wt.name,size:Wt.size,type:Wt.type,uid:Wt.uid,percent:0,originFileObj:Wt})}function Ve(Wt,ar){var Ut=Wt.uid!==void 0?"uid":"name";return ar.filter(function(kt){return kt[Ut]===Wt[Ut]})[0]}function vt(Wt,ar){var Ut=Wt.uid!==void 0?"uid":"name",kt=ar.filter(function(st){return st[Ut]!==Wt[Ut]});return kt.length===ar.length?null:kt}var et=function(){var ar=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Ut=ar.split("/"),kt=Ut[Ut.length-1],st=kt.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(st)||[""])[0]},Oe=function(ar){return ar.indexOf("image/")===0},Tt=function(ar){if(ar.type&&!ar.thumbUrl)return Oe(ar.type);var Ut=ar.thumbUrl||ar.url,kt=et(Ut);return/^data:image\//.test(Ut)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(kt)?!0:/^data:/.test(Ut)?!1:!kt},Je=200;function St(Wt){return new Promise(function(ar){if(!Wt.type||!Oe(Wt.type)){ar("");return}var Ut=document.createElement("canvas");Ut.width=Je,Ut.height=Je,Ut.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(Je,"px; height: ").concat(Je,"px; z-index: 9999; display: none;"),document.body.appendChild(Ut);var kt=Ut.getContext("2d"),st=new Image;st.onload=function(){var Rr=st.width,on=st.height,Sn=Je,zn=Je,Ii=0,yn=0;Rr<on?(zn=on*(Je/Rr),yn=-(zn-Sn)/2):(Sn=Rr*(Je/on),Ii=-(Sn-zn)/2),kt.drawImage(st,Ii,yn,Sn,zn);var Nn=Ut.toDataURL();document.body.removeChild(Ut),ar(Nn)},st.src=window.URL.createObjectURL(Wt)})}var Mt=d("3S7+"),er=d("CFYs"),It=d("H84U"),_t=d("2/Rp"),Xe=d("hkKa"),ie=function(ar,Ut){var kt,st=ar.listType,Rr=ar.previewFile,on=ar.onPreview,Sn=ar.onDownload,zn=ar.onRemove,Ii=ar.locale,yn=ar.iconRender,Nn=ar.isImageUrl,jt=ar.prefixCls,At=ar.items,Re=At===void 0?[]:At,Ke=ar.showPreviewIcon,Pe=ar.showRemoveIcon,at=ar.showDownloadIcon,wt=ar.removeIcon,Rt=ar.downloadIcon,xt=ar.progress,Lt=Object(Xe.a)();o.useEffect(function(){if(st!=="picture"&&st!=="picture-card")return;(Re||[]).forEach(function(ir){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(ir.originFileObj instanceof File||ir.originFileObj instanceof Blob)||ir.thumbUrl!==void 0)return;ir.thumbUrl="",Rr&&Rr(ir.originFileObj).then(function(pr){ir.thumbUrl=pr||"",Lt()})})},[st,Re,Rr]);var gr=function(pr,tn){return on?(tn.preventDefault(),on(pr)):void 0},Br=function(pr){typeof Sn=="function"?Sn(pr):pr.url&&window.open(pr.url)},Et=function(pr){zn&&zn(pr)},it=function(pr){if(yn)return yn(pr,st);var tn=pr.status==="uploading",fn=Nn&&Nn(pr)?o.createElement(Ge.a,null):o.createElement(Y.a,null),Mn=tn?o.createElement(me.a,null):o.createElement(se.a,null);return st==="picture"?Mn=tn?o.createElement(me.a,null):fn:st==="picture-card"&&(Mn=tn?Ii.uploading:fn),Mn},rt=function(pr,tn,fn,Mn){var Yn={type:"text",size:"small",title:Mn,onClick:function(xi){tn(),Object(le.b)(pr)&&pr.props.onClick&&pr.props.onClick(xi)},className:"".concat(fn,"-list-item-card-actions-btn")};if(Object(le.b)(pr)){var si=Object(le.a)(pr,g()(g()({},pr.props),{onClick:function(){}}));return o.createElement(_t.a,g()({},Yn,{icon:si}))}return o.createElement(_t.a,Yn,o.createElement("span",null,pr))};o.useImperativeHandle(Ut,function(){return{handlePreview:gr,handleDownload:Br}});var Pt=o.useContext(It.b),Ht=Pt.getPrefixCls,bt=Pt.direction,Gt=Ht("upload",jt),ut=Re.map(function(ir){var pr,tn,fn,Mn=it(ir),Yn=o.createElement("div",{className:"".concat(Gt,"-text-icon")},Mn);if(st==="picture"||st==="picture-card")if(ir.status==="uploading"||!ir.thumbUrl&&!ir.url){var si,vi=n()((si={},x()(si,"".concat(Gt,"-list-item-thumbnail"),!0),x()(si,"".concat(Gt,"-list-item-file"),ir.status!=="uploading"),si));Yn=o.createElement("div",{className:vi},Mn)}else{var xi,_i=Nn&&Nn(ir)?o.createElement("img",{src:ir.thumbUrl||ir.url,alt:ir.name,className:"".concat(Gt,"-list-item-image")}):Mn,Ze=n()((xi={},x()(xi,"".concat(Gt,"-list-item-thumbnail"),!0),x()(xi,"".concat(Gt,"-list-item-file"),Nn&&!Nn(ir)),xi));Yn=o.createElement("a",{className:Ze,onClick:function(an){return gr(ir,an)},href:ir.url||ir.thumbUrl,target:"_blank",rel:"noopener noreferrer"},_i)}if(ir.status==="uploading"){var we="percent"in ir?o.createElement(er.a,g()({},xt,{type:"line",percent:ir.percent})):null;fn=o.createElement("div",{className:"".concat(Gt,"-list-item-progress"),key:"progress"},we)}var Ne=n()((pr={},x()(pr,"".concat(Gt,"-list-item"),!0),x()(pr,"".concat(Gt,"-list-item-").concat(ir.status),!0),x()(pr,"".concat(Gt,"-list-item-list-type-").concat(st),!0),pr)),Fe=typeof ir.linkProps=="string"?JSON.parse(ir.linkProps):ir.linkProps,Ye=Pe?rt(wt||o.createElement(ce.a,null),function(){return Et(ir)},Gt,Ii.removeFile):null,We=at&&ir.status==="done"?rt(Rt||o.createElement(Se.a,null),function(){return Br(ir)},Gt,Ii.downloadFile):null,qe=st!=="picture-card"&&o.createElement("span",{key:"download-delete",className:"".concat(Gt,"-list-item-card-actions ").concat(st==="picture"?"picture":"")},We,Ye),yt=n()((tn={},x()(tn,"".concat(Gt,"-list-item-name"),!0),x()(tn,"".concat(Gt,"-list-item-name-icon-count-").concat([We,Ye].filter(function(un){return un}).length),!0),tn)),ot=ir.url?[o.createElement("a",g()({key:"view",target:"_blank",rel:"noopener noreferrer",className:yt,title:ir.name},Fe,{href:ir.url,onClick:function(an){return gr(ir,an)}}),ir.name),qe]:[o.createElement("span",{key:"view",className:yt,onClick:function(an){return gr(ir,an)},title:ir.name},ir.name),qe],$t={pointerEvents:"none",opacity:.5},Mr=Ke?o.createElement("a",{href:ir.url||ir.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:ir.url||ir.thumbUrl?void 0:$t,onClick:function(an){return gr(ir,an)},title:Ii.previewFile},o.createElement(Q.a,null)):null,Sr=st==="picture-card"&&ir.status!=="uploading"&&o.createElement("span",{className:"".concat(Gt,"-list-item-actions")},Mr,ir.status==="done"&&We,Ye),jr;ir.response&&typeof ir.response=="string"?jr=ir.response:jr=ir.error&&ir.error.statusText||Ii.uploadError;var tr=o.createElement("span",null,Yn,ot),gn=o.createElement("div",{className:Ne},o.createElement("div",{className:"".concat(Gt,"-list-item-info")},tr),Sr,o.createElement(Ie.a,{transitionName:"fade",component:""},fn)),sr=n()(x()({},"".concat(Gt,"-list-picture-card-container"),st==="picture-card"));return o.createElement("div",{key:ir.uid,className:sr},ir.status==="error"?o.createElement(Mt.a,{title:jr,getPopupContainer:function(an){return an.parentNode}},gn):o.createElement("span",null,gn))}),Kt=n()((kt={},x()(kt,"".concat(Gt,"-list"),!0),x()(kt,"".concat(Gt,"-list-").concat(st),!0),x()(kt,"".concat(Gt,"-list-rtl"),bt==="rtl"),kt)),Ar=st==="picture-card"?"animate-inline":"animate";return o.createElement(Ie.a,{transitionName:"".concat(Gt,"-").concat(Ar),component:"div",className:Kt},ut)},X=o.forwardRef(ie);X.displayName="UploadList",X.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:St,isImageUrl:Tt};var Be=X,Ce=d("YMnH"),Z=d("ZvpZ"),nt=d("uaoM"),ct=d("sPtV"),Qe=function(ar,Ut){var kt,st=ar.fileList,Rr=ar.defaultFileList,on=ar.onRemove,Sn=ar.showUploadList,zn=ar.listType,Ii=ar.onPreview,yn=ar.onDownload,Nn=ar.previewFile,jt=ar.disabled,At=ar.locale,Re=ar.iconRender,Ke=ar.isImageUrl,Pe=ar.progress,at=ar.prefixCls,wt=ar.className,Rt=ar.type,xt=ar.children,Lt=ar.style,gr=Object(ct.a)(st||Rr||[]),Br=c()(gr,2),Et=Br[0],it=Br[1],rt=o.useState("drop"),Pt=c()(rt,2),Ht=Pt[0],bt=Pt[1],Gt=o.useRef();o.useEffect(function(){it(st||Rr||[]),Object(nt.a)("fileList"in ar||!("value"in ar),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),o.useEffect(function(){"fileList"in ar&&it(st||[])},[st]);var ut=function(ot){"fileList"in ar||it(ot.fileList);var $t=ar.onChange;$t&&$t(g()(g()({},ot),{fileList:A()(ot.fileList)}))},Kt=function(ot){var $t=Ee(ot);$t.status="uploading";var Mr=Et().concat(),Sr=Mr.findIndex(function(jr){var tr=jr.uid;return tr===$t.uid});Sr===-1?Mr.push($t):Mr[Sr]=$t,ut({file:$t,fileList:Mr})},Ar=function(ot,$t,Mr){try{typeof ot=="string"&&(ot=JSON.parse(ot))}catch(jr){}var Sr=Ve($t,Et());if(!Sr)return;Sr.status="done",Sr.response=ot,Sr.xhr=Mr,ut({file:g()({},Sr),fileList:Et().concat()})},ir=function(ot,$t){var Mr=Ve($t,Et());if(!Mr)return;Mr.percent=ot.percent,ut({event:ot,file:g()({},Mr),fileList:Et().concat()})},pr=function(ot,$t,Mr){var Sr=Ve(Mr,Et());if(!Sr)return;Sr.error=ot,Sr.response=$t,Sr.status="error",ut({file:g()({},Sr),fileList:Et().concat()})},tn=function(ot){Promise.resolve(typeof on=="function"?on(ot):on).then(function($t){if($t===!1)return;var Mr=vt(ot,Et());Mr&&(ot.status="removed",Gt.current&&Gt.current.abort(ot),ut({file:ot,fileList:Mr}))})},fn=function(ot){bt(ot.type)},Mn=function(ot,$t){var Mr=ar.beforeUpload;if(!Mr)return!0;var Sr=Mr(ot,$t);if(Sr===!1){var jr=[];return Et().concat($t.map(Ee)).forEach(function(tr){jr.every(function(gn){return gn.uid!==tr.uid})&&jr.push(tr)}),ut({file:ot,fileList:jr}),!1}return Sr&&Sr.then?Sr:!0},Yn=Object(Xe.a)();o.useImperativeHandle(Ut,function(){return{onStart:Kt,onSuccess:Ar,onProgress:ir,onError:pr,fileList:Et(),upload:Gt.current,forceUpdate:Yn}});var si=function(ot){var $t=Sn.showRemoveIcon,Mr=Sn.showPreviewIcon,Sr=Sn.showDownloadIcon,jr=Sn.removeIcon,tr=Sn.downloadIcon;return o.createElement(Be,{listType:zn,items:Et(),previewFile:Nn,onPreview:Ii,onDownload:yn,onRemove:tn,showRemoveIcon:!jt&&$t,showPreviewIcon:Mr,showDownloadIcon:Sr,removeIcon:jr,downloadIcon:tr,iconRender:Re,locale:g()(g()({},ot),At),isImageUrl:Ke,progress:Pe})},vi=o.useContext(It.b),xi=vi.getPrefixCls,_i=vi.direction,Ze=xi("upload",at),we=g()(g()({onStart:Kt,onError:pr,onProgress:ir,onSuccess:Ar},ar),{prefixCls:Ze,beforeUpload:Mn});delete we.className,delete we.style,(!xt||jt)&&delete we.id;var Ne=Sn?o.createElement(Ce.a,{componentName:"Upload",defaultLocale:Z.a.Upload},si):null;if(Rt==="drag"){var Fe,Ye=n()(Ze,(Fe={},x()(Fe,"".concat(Ze,"-drag"),!0),x()(Fe,"".concat(Ze,"-drag-uploading"),Et().some(function(yt){return yt.status==="uploading"})),x()(Fe,"".concat(Ze,"-drag-hover"),Ht==="dragover"),x()(Fe,"".concat(Ze,"-disabled"),jt),x()(Fe,"".concat(Ze,"-rtl"),_i==="rtl"),Fe),wt);return o.createElement("span",null,o.createElement("div",{className:Ye,onDrop:fn,onDragOver:fn,onDragLeave:fn,style:Lt},o.createElement(q,g()({},we,{ref:Gt,className:"".concat(Ze,"-btn")}),o.createElement("div",{className:"".concat(Ze,"-drag-container")},xt))),Ne)}var We=n()(Ze,(kt={},x()(kt,"".concat(Ze,"-select"),!0),x()(kt,"".concat(Ze,"-select-").concat(zn),!0),x()(kt,"".concat(Ze,"-disabled"),jt),x()(kt,"".concat(Ze,"-rtl"),_i==="rtl"),kt)),qe=o.createElement("div",{className:We,style:xt?void 0:{display:"none"}},o.createElement(q,g()({},we,{ref:Gt})));return zn==="picture-card"?o.createElement("span",{className:n()(wt,"".concat(Ze,"-picture-card-wrapper"))},Ne,qe):o.createElement("span",{className:wt},qe,Ne)},dt=o.forwardRef(Qe);dt.Dragger=_e,dt.displayName="Upload",dt.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:fe,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var Ft=dt;Ft.Dragger=_e;var Lr=k.a=Ft},"98bh":function(H,k,d){var O=d("ProS"),x=d("5GtS"),C=d("bYtY"),A=d("4NO4"),b=d("OELB"),g=b.getPercentWithPrecision,f=d("cCMj"),c=d("KxfA"),o=c.retrieveRawAttr,r=d("D5nY"),i=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 x(this,{coordDimensions:["value"],encodeDefaulter:C.curry(i,this)})},_createSelectableList:function(){for(var t=this.getRawData(),a=t.mapDimension("value"),s=[],u=0,h=t.count();u<h;u++)s.push({name:t.getName(u),value:t.get(a,u),selected:o(t,u,"selected")});return s},getDataParams:function(t){var a=this.getData(),s=e.superCall(this,"getDataParams",t),u=[];return a.each(a.mapDimension("value"),function(h){u.push(h)}),s.percent=g(u,t,a.hostModel.get("percentPrecision")),s.$vars.push("percent"),s},_defaultLabelLine:function(t){A.defaultEmphasis(t,"labelLine",["show"]);var a=t.labelLine,s=t.emphasis.labelLine;a.show=a.show&&t.label.show,s.show=s.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,f);var l=e;H.exports=l},"9H2F":function(H,k,d){var O=d("bYtY"),x=O.assert,C=O.isArray,A=d("Tghj"),b=A.__DEV__;function g(n){return new f(n)}function f(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=f.prototype;c.perform=function(n){var e=this._upstream,l=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&&!l&&(a=this._plan(this.context));var s=m(this._modBy),u=this._modDataCount||0,h=m(n&&n.modBy),p=n&&n.modDataCount||0;(s!==h||u!==p)&&(a="reset");function m(I){return!(I>=1)&&(I=1),I}var v;(this._dirty||a==="reset")&&(this._dirty=!1,v=i(this,l)),this._modBy=h,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 E=this._dueIndex,T=Math.min(y!=null?this._dueIndex+y:Infinity,this._dueEnd);if(!l&&(v||E<T)){var w=this._progress;if(C(w))for(var S=0;S<w.length;S++)r(this,w[S],E,T,h,p);else r(this,w,E,T,h,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 o=function(){var n,e,l,t,a,s={reset:function(p,m,v,y){e=p,n=m,l=v,t=y,a=Math.ceil(t/l),s.next=l>1&&t>0?h:u}};return s;function u(){return e<n?e++:null}function h(){var p=e%a*l+Math.ceil(e/a),m=e>=n?null:p<t?p:e;return e++,m}}();c.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function r(n,e,l,t,a,s){o.reset(l,t,a,s),n._callingProgress=e,n._callingProgress({start:l,end:t,count:t-l,next:o.next},n.context)}function i(n,e){n._dueIndex=n._outputDueEnd=n._dueEnd=0,n._settedOutputEnd=null;var l,t;!e&&n._reset&&(l=n._reset(n.context),l&&l.progress&&(t=l.forceFirstProgress,l=l.progress),C(l)&&!l.length&&(l=null)),n._progress=l,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},k.createTask=g},"9KIM":function(H,k,d){var O=d("mFDi"),x=d("xSat"),C=x.onIrrelevantElement,A=d("IwbS");function b(o){return o=c(o),function(r,i){return A.clipPointsByRect(r,o)}}function g(o,r){return o=c(o),function(i){var n=r!=null?r:i,e=n?o.width:o.height,l=n?o.x:o.y;return[l,l+(e||0)]}}function f(o,r,i){return o=c(o),function(n,e,l){return o.contain(e[0],e[1])&&!C(n,r,i)}}function c(o){return O.create(o)}k.makeRectPanelClipPath=b,k.makeLinearBrushOtherExtent=g,k.makeRectIsTargetByCursor=f},"9OqN":function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.CTR=function(){var x=O.lib.BlockCipherMode.extend(),C=x.Encryptor=x.extend({processBlock:function(b,g){var f=this._cipher,c=f.blockSize,o=this._iv,r=this._counter;o&&(r=this._counter=o.slice(0),this._iv=void 0);var i=r.slice(0);f.encryptBlock(i,0),r[c-1]=r[c-1]+1|0;for(var n=0;n<c;n++)b[g+n]^=i[n]}});return x.Decryptor=C,x}(),O.mode.CTR})},"9ama":function(H,k,d){},"9eas":function(H,k,d){d("HM/N"),d("tBnm")},"9hCq":function(H,k,d){var O=d("IwbS"),x=d("+TT/"),C=d("bYtY"),A=d("VaxA"),b=A.wrapTreePathInfo,g=8,f=8,c=5;function o(e){this.group=new O.Group,e.add(this.group)}o.prototype={constructor:o,render:function(e,l,t,a){var s=e.getModel("breadcrumb"),u=this.group;if(u.removeAll(),!s.get("show")||!t)return;var h=s.getModel("itemStyle"),p=h.getModel("textStyle"),m={pos:{left:s.get("left"),right:s.get("right"),top:s.get("top"),bottom:s.get("bottom")},box:{width:l.getWidth(),height:l.getHeight()},emptyItemWidth:s.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(t,m,p),this._renderContent(e,m,h,p,a),x.positionElement(u,m.pos,m.box)},_prepare:function(e,l,t){for(var a=e;a;a=a.parentNode){var s=a.getModel().get("name"),u=t.getTextRect(s),h=Math.max(u.width+g*2,l.emptyItemWidth);l.totalWidth+=h+f,l.renderList.push({node:a,text:s,width:h})}},_renderContent:function(e,l,t,a,s){for(var u=0,h=l.emptyItemWidth,p=e.get("breadcrumb.height"),m=x.getAvailableSize(l.pos,l.box),v=l.totalWidth,y=l.renderList,E=y.length-1;E>=0;E--){var T=y[E],w=T.node,S=T.width,_=T.text;v>m.width&&(v-=S-h,S=h,_=null);var I=new O.Polygon({shape:{points:r(u,0,S,p,E===y.length-1,E===0)},style:C.defaults(t.getItemStyle(),{lineJoin:"bevel",text:_,textFill:a.getTextColor(),textFont:a.getFont()}),z:10,onclick:C.curry(s,w)});this.group.add(I),i(I,e,w),u+=S+f}},remove:function(){this.group.removeAll()}};function r(e,l,t,a,s,u){var h=[[s?e:e-c,l],[e+t,l],[e+t,l+a],[s?e:e-c,l+a]];return!u&&h.splice(2,0,[e+t+c,l+a/2]),!s&&h.push([e,l+a/2]),h}function i(e,l,t){e.eventData={componentType:"series",componentSubType:"treemap",componentIndex:l.componentIndex,seriesIndex:l.componentIndex,seriesName:l.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&b(t,l)}}var n=o;H.exports=n},"9u0u":function(H,k,d){var O=d("bYtY");function x(A,b){var g={};return O.each(A,function(f){f.each(f.mapDimension("value"),function(c,o){var r="ec-"+f.getName(o);g[r]=g[r]||[],isNaN(c)||g[r].push(c)})}),A[0].map(A[0].mapDimension("value"),function(f,c){for(var o="ec-"+A[0].getName(c),r=0,i=Infinity,n=-Infinity,e=g[o].length,l=0;l<e;l++)i=Math.min(i,g[o][l]),n=Math.max(n,g[o][l]),r+=g[o][l];var t;return b==="min"?t=i:b==="max"?t=n:b==="average"?t=r/e:t=r,e===0?NaN:t})}function C(A){var b={};A.eachSeriesByType("map",function(g){var f=g.getHostGeoModel(),c=f?"o"+f.id:"i"+g.getMapType();(b[c]=b[c]||[]).push(g)}),O.each(b,function(g,f){for(var c=x(O.map(g,function(r){return r.getData()}),g[0].get("mapValueCalculation")),o=0;o<g.length;o++)g[o].originalData=g[o].getData();for(var o=0;o<g.length;o++)g[o].seriesGroup=g,g[o].needsDrawMap=o===0&&!g[o].getHostGeoModel(),g[o].setData(c.cloneShallow()),g[o].mainSeries=g[0]})}H.exports=C},"9wZj":function(H,k,d){var O=d("IwbS"),x=d("FBjb"),C=d("bYtY"),A=C.isObject;function b(i){this.group=new O.Group,this._symbolCtor=i||x}var g=b.prototype;function f(i,n,e,l){return n&&!isNaN(n[0])&&!isNaN(n[1])&&!(l.isIgnore&&l.isIgnore(e))&&!(l.clipShape&&!l.clipShape.contain(n[0],n[1]))&&i.getItemVisual(e,"symbol")!=="none"}g.updateData=function(i,n){n=c(n);var e=this.group,l=i.hostModel,t=this._data,a=this._symbolCtor,s=o(i);t||e.removeAll(),i.diff(t).add(function(u){var h=i.getItemLayout(u);if(f(i,h,u,n)){var p=new a(i,u,s);p.attr("position",h),i.setItemGraphicEl(u,p),e.add(p)}}).update(function(u,h){var p=t.getItemGraphicEl(h),m=i.getItemLayout(u);if(!f(i,m,u,n)){e.remove(p);return}p?(p.updateData(i,u,s),O.updateProps(p,{position:m},l)):(p=new a(i,u),p.attr("position",m)),e.add(p),i.setItemGraphicEl(u,p)}).remove(function(u){var h=t.getItemGraphicEl(u);h&&h.fadeOut(function(){e.remove(h)})}).execute(),this._data=i},g.isPersistent=function(){return!0},g.updateLayout=function(){var i=this._data;i&&i.eachItemGraphicEl(function(n,e){var l=i.getItemLayout(e);n.attr("position",l)})},g.incrementalPrepareUpdate=function(i){this._seriesScope=o(i),this._data=null,this.group.removeAll()},g.incrementalUpdate=function(i,n,e){e=c(e);function l(u){u.isGroup||(u.incremental=u.useHoverLayer=!0)}for(var t=i.start;t<i.end;t++){var a=n.getItemLayout(t);if(f(n,a,t,e)){var s=new this._symbolCtor(n,t,this._seriesScope);s.traverse(l),s.attr("position",a),this.group.add(s),n.setItemGraphicEl(t,s)}}};function c(i){return i!=null&&!A(i)&&(i={isIgnore:i}),i||{}}g.remove=function(i){var n=this.group,e=this._data;e&&i?e.eachItemGraphicEl(function(l){l.fadeOut(function(){n.remove(l)})}):n.removeAll()};function o(i){var n=i.hostModel;return{itemStyle:n.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:n.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:n.get("symbolRotate"),symbolOffset:n.get("symbolOffset"),hoverAnimation:n.get("hoverAnimation"),labelModel:n.getModel("label"),hoverLabelModel:n.getModel("emphasis.label"),cursorStyle:n.get("cursor")}}var r=b;H.exports=r},"9yH6":function(H,k,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),b=d("q1tI"),g=d("x1Ya"),f=d("TSYQ"),c=d.n(f),o=d("H84U"),r=b.createContext(null),i=r.Provider,n=r,e=d("cDf5"),l=d.n(e);function t(D,F){typeof D=="function"?D(F):l()(D)==="object"&&D&&"current"in D&&(D.current=F)}function a(){for(var D=arguments.length,F=new Array(D),M=0;M<D;M++)F[M]=arguments[M];return function(U){F.forEach(function(B){t(B,U)})}}var s=d("uaoM"),u=function(D,F){var M={};for(var U in D)Object.prototype.hasOwnProperty.call(D,U)&&F.indexOf(U)<0&&(M[U]=D[U]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,U=Object.getOwnPropertySymbols(D);B<U.length;B++)F.indexOf(U[B])<0&&Object.prototype.propertyIsEnumerable.call(D,U[B])&&(M[U[B]]=D[U[B]]);return M},h=function(F,M){var U,B=b.useContext(n),j=b.useContext(o.b),W=j.getPrefixCls,V=j.direction,z=b.useRef(),J=a(M,z);b.useEffect(function(){Object(s.a)(!("optionType"in F),"Radio","`optionType` is only support in Radio.Group.")},[]);var q=function(te){F.onChange&&F.onChange(te),(B==null?void 0:B.onChange)&&B.onChange(te)},de=F.prefixCls,ae=F.className,ve=F.children,_e=F.style,Ie=u(F,["prefixCls","className","children","style"]),He=W("radio",de),me=A()({},Ie);B&&(me.name=B.name,me.onChange=q,me.checked=F.value===B.value,me.disabled=F.disabled||B.disabled);var ke=c()(ae,(U={},x()(U,"".concat(He,"-wrapper"),!0),x()(U,"".concat(He,"-wrapper-checked"),me.checked),x()(U,"".concat(He,"-wrapper-disabled"),me.disabled),x()(U,"".concat(He,"-wrapper-rtl"),V==="rtl"),U));return b.createElement("label",{className:ke,style:_e,onMouseEnter:F.onMouseEnter,onMouseLeave:F.onMouseLeave},b.createElement(g.a,A()({},me,{prefixCls:He,ref:J})),ve!==void 0?b.createElement("span",null,ve):null)},p=b.forwardRef(h);p.displayName="Radio",p.defaultProps={type:"radio"};var m=p,v=d("J4zp"),y=d.n(v),E=d("6cGi"),T=d("3Nzz"),w=b.forwardRef(function(D,F){var M=b.useContext(o.b),U=M.getPrefixCls,B=M.direction,j=b.useContext(T.b),W=Object(E.a)(D.defaultValue,{value:D.value}),V=y()(W,2),z=V[0],J=V[1],q=function(ve){var _e=z,Ie=ve.target.value;"value"in D||J(Ie);var He=D.onChange;He&&Ie!==_e&&He(ve)},de=function(){var ve,_e=D.prefixCls,Ie=D.className,He=Ie===void 0?"":Ie,me=D.options,ke=D.optionType,se=D.buttonStyle,te=D.disabled,Ge=D.children,oe=D.size,Y=D.style,G=D.id,Q=D.onMouseEnter,ye=D.onMouseLeave,ce=U("radio",_e),Te="".concat(ce,"-group"),Se=Ge;if(me&&me.length>0){var le=ke==="button"?"".concat(ce,"-button"):ce;Se=me.map(function(Ve){return typeof Ve=="string"?b.createElement(m,{ref:F,key:Ve,prefixCls:le,disabled:te,value:Ve,checked:z===Ve},Ve):b.createElement(m,{ref:F,key:"radio-group-value-options-".concat(Ve.value),prefixCls:le,disabled:Ve.disabled||te,value:Ve.value,checked:z===Ve.value,style:Ve.style},Ve.label)})}var fe=oe||j,Ee=c()(Te,"".concat(Te,"-").concat(se),(ve={},x()(ve,"".concat(Te,"-").concat(fe),fe),x()(ve,"".concat(Te,"-rtl"),B==="rtl"),ve),He);return b.createElement("div",{className:Ee,style:Y,onMouseEnter:Q,onMouseLeave:ye,id:G},Se)};return b.createElement(i,{value:{onChange:q,value:z,disabled:D.disabled,name:D.name}},de())});w.defaultProps={buttonStyle:"outline"};var S=b.memo(w),_=function(D,F){var M={};for(var U in D)Object.prototype.hasOwnProperty.call(D,U)&&F.indexOf(U)<0&&(M[U]=D[U]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,U=Object.getOwnPropertySymbols(D);B<U.length;B++)F.indexOf(U[B])<0&&Object.prototype.propertyIsEnumerable.call(D,U[B])&&(M[U[B]]=D[U[B]]);return M},I=function(F,M){var U=b.useContext(n),B=b.useContext(o.b),j=B.getPrefixCls,W=F.prefixCls,V=_(F,["prefixCls"]),z=j("radio-button",W);return U&&(V.checked=F.value===U.value,V.disabled=F.disabled||U.disabled),b.createElement(m,A()({prefixCls:z},V,{type:"radio",ref:M}))},L=b.forwardRef(I),N=m;N.Button=L,N.Group=S;var R=k.a=N},A1Ka:function(H,k,d){var O=d("bLfw"),x=d("sS/r"),C=d("D5nY"),A=C.detectSourceFormat,b=d("k9D9"),g=b.SERIES_LAYOUT_BY_COLUMN;O.extend({type:"dataset",defaultOption:{seriesLayoutBy:g,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){A(this)}}),x.extend({type:"dataset"})},ABKa:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("Qs9O")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="FolderOutlined";var c=A.forwardRef(f);k.default=c},AE9C:function(H,k,d){var O=d("bYtY"),x=d("crZl"),C=d("IwbS"),A=d("oVpE"),b=A.createSymbol,g=d("+TT/"),f=d("y7Aq"),c=x.extend({type:"visualMap.piecewise",doRender:function(){var r=this.group;r.removeAll();var i=this.visualMapModel,n=i.get("textGap"),e=i.textStyleModel,l=e.getFont(),t=e.getTextColor(),a=this._getItemAlign(),s=i.itemSize,u=this._getViewData(),h=u.endsText,p=O.retrieve(i.get("showLabel",!0),!h);h&&this._renderEndsText(r,h[0],s,p,a),O.each(u.viewPieceList,m,this),h&&this._renderEndsText(r,h[1],s,p,a),g.box(i.get("orient"),r,i.get("itemGap")),this.renderBackground(r),this.positionGroup(r);function m(v){var y=v.piece,E=new C.Group;E.onclick=O.bind(this._onItemClick,this,y),this._enableHoverLink(E,v.indexInModelPieceList);var T=i.getRepresentValue(y);if(this._createItemSymbol(E,T,[0,0,s[0],s[1]]),p){var w=this.visualMapModel.getValueState(T);E.add(new C.Text({style:{x:a==="right"?-n:s[0]+n,y:s[1]/2,text:y.text,textVerticalAlign:"middle",textAlign:a,textFont:l,textFill:t,opacity:w==="outOfRange"?.5:1}}))}r.add(E)}},_enableHoverLink:function(r,i){r.on("mouseover",O.bind(n,this,"highlight")).on("mouseout",O.bind(n,this,"downplay"));function n(e){var l=this.visualMapModel;l.option.hoverLink&&this.api.dispatchAction({type:e,batch:f.makeHighDownBatch(l.findTargetDataIndices(i),l)})}},_getItemAlign:function(){var r=this.visualMapModel,i=r.option;if(i.orient==="vertical")return f.getItemAlign(r,this.api,r.itemSize);var n=i.align;return(!n||n==="auto")&&(n="left"),n},_renderEndsText:function(r,i,n,e,l){if(!i)return;var t=new C.Group,a=this.visualMapModel.textStyleModel;t.add(new C.Text({style:{x:e?l==="right"?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:e?l:"center",text:i,textFont:a.getFont(),textFill:a.getTextColor()}})),r.add(t)},_getViewData:function(){var r=this.visualMapModel,i=O.map(r.getPieceList(),function(t,a){return{piece:t,indexInModelPieceList:a}}),n=r.get("text"),e=r.get("orient"),l=r.get("inverse");return(e==="horizontal"?l:!l)?i.reverse():n&&(n=n.slice().reverse()),{viewPieceList:i,endsText:n}},_createItemSymbol:function(r,i,n){r.add(b(this.getControllerVisual(i,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(i,"color")))},_onItemClick:function(r){var i=this.visualMapModel,n=i.option,e=O.clone(n.selected),l=i.getSelectedMapKey(r);n.selectedMode==="single"?(e[l]=!0,O.each(e,function(t,a){e[a]=a===l})):e[l]=!e[l],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:e})}}),o=c;H.exports=o},AEZ6:function(H,k,d){var O=d("bYtY"),x=O.each,C=O.createHashMap,A=d("T4UG"),b=d("MwEJ"),g=A.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(o,r){var i=this.getSource();return f(i,this),b(i,this)},getRawIndicesByActiveState:function(o){var r=this.coordinateSystem,i=this.getData(),n=[];return r.eachActiveState(i,function(e,l){o===e&&n.push(i.getRawIndex(l))}),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 f(o,r){if(o.encodeDefine)return;var i=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(!i)return;var n=o.encodeDefine=C();x(i.dimensions,function(e){var l=c(e);n.set(e,l)})}function c(o){return+o.replace("dim","")}H.exports=g},AH3D:function(H,k,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(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("5GtS"),A=d("4NO4"),b=A.defaultEmphasis,g=d("D5nY"),f=g.makeSeriesEncodeForNameBased,c=d("xKMd"),o=O.extendSeriesModel({type:"series.funnel",init:function(i){o.superApply(this,"init",arguments),this.legendVisualProvider=new c(x.bind(this.getData,this),x.bind(this.getRawData,this)),this._defaultLabelLine(i)},getInitialData:function(i,n){return C(this,{coordDimensions:["value"],encodeDefaulter:x.curry(f,this)})},_defaultLabelLine:function(i){b(i,"labelLine",["show"]);var n=i.labelLine,e=i.emphasis.labelLine;n.show=n.show&&i.label.show,e.show=e.show&&i.emphasis.label.show},getDataParams:function(i){var n=this.getData(),e=o.superCall(this,"getDataParams",i),l=n.mapDimension("value"),t=n.getSum(l);return e.percent=t?+(n.get(l,i)/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=o;H.exports=r},ALsQ:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.CFB=function(){var x=O.lib.BlockCipherMode.extend();x.Encryptor=x.extend({processBlock:function(b,g){var f=this._cipher,c=f.blockSize;C.call(this,b,g,c,f),this._prevBlock=b.slice(g,g+c)}}),x.Decryptor=x.extend({processBlock:function(b,g){var f=this._cipher,c=f.blockSize,o=b.slice(g,g+c);C.call(this,b,g,c,f),this._prevBlock=o}});function C(A,b,g,f){var c,o=this._iv;o?(c=o.slice(0),this._iv=void 0):c=this._prevBlock,f.encryptBlock(c,0);for(var r=0;r<g;r++)A[b+r]^=c[r]}return x}(),O.mode.CFB})},ANjR:function(H,k,d){var O=d("bYtY");function x(A,b){return b=b||[0,0],O.map([0,1],function(g){var f=b[g],c=A[g]/2,o=[],r=[];return o[g]=f-c,r[g]=f+c,o[1-g]=r[1-g]=b[1-g],Math.abs(this.dataToPoint(o)[g]-this.dataToPoint(r)[g])},this)}function C(A){var b=A.getBoundingRect();return{coordSys:{type:"geo",x:b.x,y:b.y,width:b.width,height:b.height,zoom:A.getZoom()},api:{coord:function(g){return A.dataToPoint(g)},size:O.bind(x,A)}}}H.exports=C},AOa7:function(H,k,d){},AUH6:function(H,k,d){var O=d("bYtY"),x=d("mFDi"),C=d("bMXI"),A=d("W4dC");function b(c,o,r,i){C.call(this,c),this.map=o;var n=A.load(o,r);this._nameCoordMap=n.nameCoordMap,this._regionsMap=n.regionsMap,this._invertLongitute=i==null?!0:i,this.regions=n.regions,this._rect=n.boundingRect}b.prototype={constructor:b,type:"geo",dimensions:["lng","lat"],containCoord:function(c){for(var o=this.regions,r=0;r<o.length;r++)if(o[r].contain(c))return!0;return!1},transformTo:function(c,o,r,i){var n=this.getBoundingRect(),e=this._invertLongitute;n=n.clone(),e&&(n.y=-n.y-n.height);var l=this._rawTransformable;if(l.transform=n.calculateTransform(new x(c,o,r,i)),l.decomposeTransform(),e){var t=l.scale;t[1]=-t[1]}l.updateTransform(),this._updateTransform()},getRegion:function(c){return this._regionsMap.get(c)},getRegionByCoord:function(c){for(var o=this.regions,r=0;r<o.length;r++)if(o[r].contain(c))return o[r]},addGeoCoord:function(c,o){this._nameCoordMap.set(c,o)},getGeoCoord:function(c){return this._nameCoordMap.get(c)},getBoundingRect:function(){return this._rect},dataToPoint:function(c,o,r){if(typeof c=="string"&&(c=this.getGeoCoord(c)),c)return C.prototype.dataToPoint.call(this,c,o,r)},convertToPixel:O.curry(g,"dataToPoint"),convertFromPixel:O.curry(g,"pointToData")},O.mixin(b,C);function g(c,o,r,i){var n=r.geoModel,e=r.seriesModel,l=n?n.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return l===this?l[c](i):null}var f=b;H.exports=f},AVZG:function(H,k,d){var O=d("bYtY");function x(C,A,b){b=b||{};var g=C.coordinateSystem,f=A.axis,c={},o=f.getAxesOnZeroOf()[0],r=f.position,i=o?"onZero":r,n=f.dim,e=g.getRect(),l=[e.x,e.x+e.width,e.y,e.y+e.height],t={left:0,right:1,top:0,bottom:1,onZero:2},a=A.get("offset")||0,s=n==="x"?[l[2]-a,l[3]+a]:[l[0]-a,l[1]+a];if(o){var u=o.toGlobalCoord(o.dataToCoord(0));s[t.onZero]=Math.max(Math.min(u,s[1]),s[0])}c.position=[n==="y"?s[t[i]]:l[0],n==="x"?s[t[i]]:l[3]],c.rotation=Math.PI/2*(n==="x"?0:1);var h={top:-1,bottom:1,left:-1,right:1};c.labelDirection=c.tickDirection=c.nameDirection=h[r],c.labelOffset=o?s[t[r]]-s[t.onZero]:0,A.get("axisTick.inside")&&(c.tickDirection=-c.tickDirection),O.retrieve(b.labelInside,A.get("axisLabel.inside"))&&(c.labelDirection=-c.labelDirection);var p=A.get("axisLabel.rotate");return c.labelRotate=i==="top"?-p:p,c.z2=1,c}k.layout=x},"Ae+d":function(H,k){function d(x,C,A){var b=x.target,g=b.position;g[0]+=C,g[1]+=A,b.dirty()}function O(x,C,A,b){var g=x.target,f=x.zoomLimit,c=g.position,o=g.scale,r=x.zoom=x.zoom||1;if(r*=C,f){var i=f.min||0,n=f.max||Infinity;r=Math.max(Math.min(n,r),i)}var e=r/x.zoom;x.zoom=r,c[0]-=(A-c[0])*(e-1),c[1]-=(b-c[1])*(e-1),o[0]*=e,o[1]*=e,g.dirty()}k.updateViewOnPan=d,k.updateViewOnZoom=O},Ae16:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("IwbS");d("Wqna"),d("rySg"),O.extendComponentView({type:"grid",render:function(A,b){this.group.removeAll(),A.get("show")&&this.group.add(new C.Rect({shape:A.coordinateSystem.getRect(),style:x.defaults({fill:A.get("backgroundColor")},A.getItemStyle()),silent:!0,z2:-1}))}}),O.registerPreprocessor(function(A){A.xAxis&&A.yAxis&&!A.grid&&(A.grid={})})},Awhp:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("PQMj"),A=d.n(C)},"B+YJ":function(H,k,d){d("TYVI"),d("p1MT")},"B6l+":function(H,k,d){var O=d("Sq3C"),x=d("Z1HP"),C=d("Sxd8"),A=d("dt0z");function b(g,f,c){g=A(g),f=C(f);var o=f?x(g):0;return f&&o<f?g+O(f-o,c):g}H.exports=b},B9cy:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("0XgM"),A=d.n(C)},B9fm:function(H,k,d){var O=d("bYtY"),x=d("Qe9p"),C=d("YH21"),A=d("Ze12"),b=d("ItGF"),g=d("7aKB"),f=O.each,c=g.toCamelCase,o=["","-webkit-","-moz-","-o-"],r="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";function i(s){var u="cubic-bezier(0.23, 1, 0.32, 1)",h="left "+s+"s "+u+",top "+s+"s "+u;return O.map(o,function(p){return p+"transition:"+h}).join(";")}function n(s){var u=[],h=s.get("fontSize"),p=s.getTextColor();return p&&u.push("color:"+p),u.push("font:"+s.getFont()),h&&u.push("line-height:"+Math.round(h*3/2)+"px"),f(["decoration","align"],function(m){var v=s.get(m);v&&u.push("text-"+m+":"+v)}),u.join(";")}function e(s){var u=[],h=s.get("transitionDuration"),p=s.get("backgroundColor"),m=s.getModel("textStyle"),v=s.get("padding");return h&&u.push(i(h)),p&&(b.canvasSupported?u.push("background-Color:"+p):(u.push("background-Color:#"+x.toHex(p)),u.push("filter:alpha(opacity=70)"))),f(["width","color","radius"],function(y){var E="border-"+y,T=c(E),w=s.get(T);w!=null&&u.push(E+":"+w+(y==="color"?"":"px"))}),u.push(n(m)),v!=null&&u.push("padding:"+g.normalizeCssArray(v).join("px ")+"px"),u.join(";")+";"}function l(s,u,h,p,m){var v=u&&u.painter;if(h){var y=v&&v.getViewportRoot();y&&A.transformLocalCoord(s,y,document.body,p,m)}else{s[0]=p,s[1]=m;var E=v&&v.getViewportRootOffset();E&&(s[0]+=E.offsetLeft,s[1]+=E.offsetTop)}}function t(s,u,h){if(b.wxa)return null;var p=document.createElement("div");p.domBelongToZr=!0,this.el=p;var m=this._zr=u.getZr(),v=this._appendToBody=h&&h.appendToBody;this._styleCoord=[0,0],l(this._styleCoord,m,v,u.getWidth()/2,u.getHeight()/2),v?document.body.appendChild(p):s.appendChild(p),this._container=s,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(E){if(E=E||window.event,!y._enterable){var T=m.handler,w=m.painter.getViewportRoot();C.normalizeEvent(w,E,!0),T.dispatch("mousemove",E)}},p.onmouseleave=function(){y._enterable&&(y._show&&y.hideLater(y._hideDelay)),y._inContent=!1}}t.prototype={constructor:t,_enterable:!0,update:function(){var s=this._container,u=s.currentStyle||document.defaultView.getComputedStyle(s),h=s.style;h.position!=="absolute"&&u.position!=="absolute"&&(h.position="relative")},show:function(s){clearTimeout(this._hideTimeout);var u=this.el,h=this._styleCoord;u.style.cssText=r+e(s)+";left:"+h[0]+"px;top:"+h[1]+"px;"+(s.get("extraCssText")||""),u.style.display=u.innerHTML?"block":"none",u.style.pointerEvents=this._enterable?"auto":"none",this._show=!0},setContent:function(s){this.el.innerHTML=s==null?"":s},setEnterable:function(s){this._enterable=s},getSize:function(){var s=this.el;return[s.clientWidth,s.clientHeight]},moveTo:function(s,u){var h=this._styleCoord;l(h,this._zr,this._appendToBody,s,u);var p=this.el.style;p.left=h[0]+"px",p.top=h[1]+"px"},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(s){this._show&&!(this._inContent&&this._enterable)&&(s?(this._hideDelay=s,this._show=!1,this._hideTimeout=setTimeout(O.bind(this.hide,this),s)):this.hide())},isShow:function(){return this._show},dispose:function(){this.el.parentNode.removeChild(this.el)},getOuterSize:function(){var s=this.el.clientWidth,u=this.el.clientHeight;if(document.defaultView&&document.defaultView.getComputedStyle){var h=document.defaultView.getComputedStyle(this.el);h&&(s+=parseInt(h.borderLeftWidth,10)+parseInt(h.borderRightWidth,10),u+=parseInt(h.borderTopWidth,10)+parseInt(h.borderBottomWidth,10))}return{width:s,height:u}}};var a=t;H.exports=a},BPZU:function(H,k){var d=32,O=7,x=256;function C(i){for(var n=0;i>=d;)n|=i&1,i>>=1;return i+n}function A(i,n,e,l){var t=n+1;if(t===e)return 1;if(l(i[t++],i[n])<0){for(;t<e&&l(i[t],i[t-1])<0;)t++;b(i,n,t)}else for(;t<e&&l(i[t],i[t-1])>=0;)t++;return t-n}function b(i,n,e){for(e--;n<e;){var l=i[n];i[n++]=i[e],i[e--]=l}}function g(i,n,e,l,t){for(l===n&&l++;l<e;l++){for(var a=i[l],s=n,u=l,h;s<u;)h=s+u>>>1,t(a,i[h])<0?u=h:s=h+1;var p=l-s;switch(p){case 3:i[s+3]=i[s+2];case 2:i[s+2]=i[s+1];case 1:i[s+1]=i[s];break;default:for(;p>0;)i[s+p]=i[s+p-1],p--}i[s]=a}}function f(i,n,e,l,t,a){var s=0,u=0,h=1;if(a(i,n[e+t])>0){for(u=l-t;h<u&&a(i,n[e+t+h])>0;)s=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u),s+=t,h+=t}else{for(u=t+1;h<u&&a(i,n[e+t-h])<=0;)s=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u);var p=s;s=t-h,h=t-p}for(s++;s<h;){var m=s+(h-s>>>1);a(i,n[e+m])>0?s=m+1:h=m}return h}function c(i,n,e,l,t,a){var s=0,u=0,h=1;if(a(i,n[e+t])<0){for(u=t+1;h<u&&a(i,n[e+t-h])<0;)s=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u);var p=s;s=t-h,h=t-p}else{for(u=l-t;h<u&&a(i,n[e+t+h])>=0;)s=h,h=(h<<1)+1,h<=0&&(h=u);h>u&&(h=u),s+=t,h+=t}for(s++;s<h;){var m=s+(h-s>>>1);a(i,n[e+m])<0?h=m:s=m+1}return h}function o(i,n){var e=O,l=0,t=x,a=0,s,u,h=0;l=i.length,l<2*x&&(t=l>>>1);var p=[];a=l<120?5:l<1542?10:l<119151?19:40,s=[],u=[];function m(S,_){s[h]=S,u[h]=_,h+=1}function v(){for(;h>1;){var S=h-2;if(S>=1&&u[S-1]<=u[S]+u[S+1]||S>=2&&u[S-2]<=u[S]+u[S-1])u[S-1]<u[S+1]&&S--;else if(u[S]>u[S+1])break;E(S)}}function y(){for(;h>1;){var S=h-2;S>0&&u[S-1]<u[S+1]&&S--,E(S)}}function E(S){var _=s[S],I=u[S],L=s[S+1],N=u[S+1];u[S]=I+N,S===h-3&&(s[S+1]=s[S+2],u[S+1]=u[S+2]),h--;var R=c(i[L],i,_,I,0,n);if(_+=R,I-=R,I===0)return;if(N=f(i[_+I-1],i,L,N,N-1,n),N===0)return;I<=N?T(_,I,L,N):w(_,I,L,N)}function T(S,_,I,L){var N=0;for(N=0;N<_;N++)p[N]=i[S+N];var R=0,D=I,F=S;if(i[F++]=i[D++],--L===0){for(N=0;N<_;N++)i[F+N]=p[R+N];return}if(_===1){for(N=0;N<L;N++)i[F+N]=i[D+N];i[F+L]=p[R];return}for(var M=e,U,B,j;;){U=0,B=0,j=!1;do if(n(i[D],p[R])<0){if(i[F++]=i[D++],B++,U=0,--L===0){j=!0;break}}else if(i[F++]=p[R++],U++,B=0,--_===1){j=!0;break}while((U|B)<M);if(j)break;do{if(U=c(i[D],p,R,_,0,n),U!==0){for(N=0;N<U;N++)i[F+N]=p[R+N];if(F+=U,R+=U,_-=U,_<=1){j=!0;break}}if(i[F++]=i[D++],--L===0){j=!0;break}if(B=f(p[R],i,D,L,0,n),B!==0){for(N=0;N<B;N++)i[F+N]=i[D+N];if(F+=B,D+=B,L-=B,L===0){j=!0;break}}if(i[F++]=p[R++],--_===1){j=!0;break}M--}while(U>=O||B>=O);if(j)break;M<0&&(M=0),M+=2}if(e=M,e<1&&(e=1),_===1){for(N=0;N<L;N++)i[F+N]=i[D+N];i[F+L]=p[R]}else{if(_===0)throw new Error;for(N=0;N<_;N++)i[F+N]=p[R+N]}}function w(S,_,I,L){var N=0;for(N=0;N<L;N++)p[N]=i[I+N];var R=S+_-1,D=L-1,F=I+L-1,M=0,U=0;if(i[F--]=i[R--],--_===0){for(M=F-(L-1),N=0;N<L;N++)i[M+N]=p[N];return}if(L===1){for(F-=_,R-=_,U=F+1,M=R+1,N=_-1;N>=0;N--)i[U+N]=i[M+N];i[F]=p[D];return}for(var B=e;;){var j=0,W=0,V=!1;do if(n(p[D],i[R])<0){if(i[F--]=i[R--],j++,W=0,--_===0){V=!0;break}}else if(i[F--]=p[D--],W++,j=0,--L===1){V=!0;break}while((j|W)<B);if(V)break;do{if(j=_-c(p[D],i,S,_,_-1,n),j!==0){for(F-=j,R-=j,_-=j,U=F+1,M=R+1,N=j-1;N>=0;N--)i[U+N]=i[M+N];if(_===0){V=!0;break}}if(i[F--]=p[D--],--L===1){V=!0;break}if(W=L-f(i[R],p,0,L,L-1,n),W!==0){for(F-=W,D-=W,L-=W,U=F+1,M=D+1,N=0;N<W;N++)i[U+N]=p[M+N];if(L<=1){V=!0;break}}if(i[F--]=i[R--],--_===0){V=!0;break}B--}while(j>=O||W>=O);if(V)break;B<0&&(B=0),B+=2}if(e=B,e<1&&(e=1),L===1){for(F-=_,R-=_,U=F+1,M=R+1,N=_-1;N>=0;N--)i[U+N]=i[M+N];i[F]=p[D]}else{if(L===0)throw new Error;for(M=F-(L-1),N=0;N<L;N++)i[M+N]=p[N]}}this.mergeRuns=v,this.forceMergeRuns=y,this.pushRun=m}function r(i,n,e,l){e||(e=0),l||(l=i.length);var t=l-e;if(t<2)return;var a=0;if(t<d){a=A(i,e,l,n),g(i,e,l,e+a,n);return}var s=new o(i,n),u=C(t);do{if(a=A(i,e,l,n),a<u){var h=t;h>u&&(h=u),g(i,e,e+h,e+a,n),a=h}s.pushRun(e,a),s.mergeRuns(),t-=a,e+=a}while(t!==0);s.forceMergeRuns()}H.exports=r},Bd2K:function(H,k,d){(function(O){O(d("VrN/"),d("osHv"))})(function(O){O.defineOption("autoCloseTags",!1,function(o,r,i){if(i!=O.Init&&i&&o.removeKeyMap("autoCloseTags"),!r)return;var n={name:"autoCloseTags"};(typeof r!="object"||r.whenClosing!==!1)&&(n["'/'"]=function(e){return g(e)}),(typeof r!="object"||r.whenOpening!==!1)&&(n["'>'"]=function(e){return A(e)}),o.addKeyMap(n)});var x=["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 A(o){if(o.getOption("disableInput"))return O.Pass;for(var r=o.listSelections(),i=[],n=o.getOption("autoCloseTags"),e=0;e<r.length;e++){if(!r[e].empty())return O.Pass;var l=r[e].head,t=o.getTokenAt(l),a=O.innerMode(o.getMode(),t.state),s=a.state,u=a.mode.xmlCurrentTag&&a.mode.xmlCurrentTag(s),h=u&&u.name;if(!h)return O.Pass;var p=a.mode.configuration=="html",m=typeof n=="object"&&n.dontCloseTags||p&&x,v=typeof n=="object"&&n.indentTags||p&&C;t.end>l.ch&&(h=h.slice(0,h.length-t.end+l.ch));var y=h.toLowerCase();if(!h||t.type=="string"&&(t.end!=l.ch||!/[\"\']/.test(t.string.charAt(t.string.length-1))||t.string.length==1)||t.type=="tag"&&u.close||t.string.indexOf("/")==l.ch-t.start-1||m&&f(m,y)>-1||c(o,a.mode.xmlCurrentContext&&a.mode.xmlCurrentContext(s)||[],h,l,!0))return O.Pass;var E=typeof n=="object"&&n.emptyTags;if(E&&f(E,h)>-1){i[e]={text:"/>",newPos:O.Pos(l.line,l.ch+2)};continue}var T=v&&f(v,y)>-1;i[e]={indent:T,text:">"+(T?`
`:"")+"</"+h+">",newPos:T?O.Pos(l.line+1,0):O.Pos(l.line,l.ch+1)}}for(var w=typeof n=="object"&&n.dontIndentOnAutoClose,e=r.length-1;e>=0;e--){var S=i[e];o.replaceRange(S.text,r[e].head,r[e].anchor,"+insert");var _=o.listSelections().slice(0);_[e]={head:S.newPos,anchor:S.newPos},o.setSelections(_),!w&&S.indent&&(o.indentLine(S.newPos.line,null,!0),o.indentLine(S.newPos.line+1,null,!0))}}function b(o,r){for(var i=o.listSelections(),n=[],e=r?"/":"</",l=o.getOption("autoCloseTags"),t=typeof l=="object"&&l.dontIndentOnSlash,a=0;a<i.length;a++){if(!i[a].empty())return O.Pass;var s=i[a].head,u=o.getTokenAt(s),h=O.innerMode(o.getMode(),u.state),p=h.state;if(r&&(u.type=="string"||u.string.charAt(0)!="<"||u.start!=s.ch-1))return O.Pass;var m,v=h.mode.name!="xml"&&o.getMode().name=="htmlmixed";if(v&&h.mode.name=="javascript")m=e+"script";else if(v&&h.mode.name=="css")m=e+"style";else{var y=h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(p);if(!y||y.length&&c(o,y,y[y.length-1],s))return O.Pass;m=e+y[y.length-1]}o.getLine(s.line).charAt(u.end)!=">"&&(m+=">"),n[a]=m}if(o.replaceSelections(n),i=o.listSelections(),!t)for(var a=0;a<i.length;a++)(a==i.length-1||i[a].head.line<i[a+1].head.line)&&o.indentLine(i[a].head.line)}function g(o){return o.getOption("disableInput")?O.Pass:b(o,!0)}O.commands.closeTag=function(o){return b(o)};function f(o,r){if(o.indexOf)return o.indexOf(r);for(var i=0,n=o.length;i<n;++i)if(o[i]==r)return i;return-1}function c(o,r,i,n,e){if(!O.scanForClosingTag)return!1;var l=Math.min(o.lastLine()+1,n.line+500),t=O.scanForClosingTag(o,n,null,l);if(!t||t.tag!=i)return!1;for(var a=e?1:0,s=r.length-1;s>=0&&r[s]==i;s--)++a;n=t.to;for(var s=1;s<a;s++){var u=O.scanForClosingTag(o,n,null,l);if(!u||u.tag!=i)return!1;n=u.to}return!0}})},BlVb:function(H,k,d){var O=d("hyiK"),x=1e-8;function C(b,g){return Math.abs(b-g)<x}function A(b,g,f){var c=0,o=b[0];if(!o)return!1;for(var r=1;r<b.length;r++){var i=b[r];c+=O(o[0],o[1],i[0],i[1],g,f),o=i}var n=b[0];return(!C(o[0],n[0])||!C(o[1],n[1]))&&(c+=O(o[0],o[1],n[0],n[1],g,f)),c!==0}k.contain=A},BoS7:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("czTT"),A=d.n(C)},Bq2U:function(H,k,d){var O=d("RDYZ"),x=d("Qe9p"),C=d("bYtY"),A=C.isArrayLike,b=Array.prototype.slice;function g(m,v){return m[v]}function f(m,v,y){m[v]=y}function c(m,v,y){return(v-m)*y+m}function o(m,v,y){return y>.5?v:m}function r(m,v,y,E,T){var w=m.length;if(T===1)for(var S=0;S<w;S++)E[S]=c(m[S],v[S],y);else for(var _=w&&m[0].length,S=0;S<w;S++)for(var I=0;I<_;I++)E[S][I]=c(m[S][I],v[S][I],y)}function i(m,v,y){var E=m.length,T=v.length;if(E!==T){var w=E>T;if(w)m.length=T;else for(var S=E;S<T;S++)m.push(y===1?v[S]:b.call(v[S]))}for(var _=m[0]&&m[0].length,S=0;S<m.length;S++)if(y===1)isNaN(m[S])&&(m[S]=v[S]);else for(var I=0;I<_;I++)isNaN(m[S][I])&&(m[S][I]=v[S][I])}function n(m,v,y){if(m===v)return!0;var E=m.length;if(E!==v.length)return!1;if(y===1){for(var T=0;T<E;T++)if(m[T]!==v[T])return!1}else for(var w=m[0].length,T=0;T<E;T++)for(var S=0;S<w;S++)if(m[T][S]!==v[T][S])return!1;return!0}function e(m,v,y,E,T,w,S,_,I){var L=m.length;if(I===1)for(var N=0;N<L;N++)_[N]=l(m[N],v[N],y[N],E[N],T,w,S);else for(var R=m[0].length,N=0;N<L;N++)for(var D=0;D<R;D++)_[N][D]=l(m[N][D],v[N][D],y[N][D],E[N][D],T,w,S)}function l(m,v,y,E,T,w,S){var _=(y-m)*.5,I=(E-v)*.5;return(2*(v-y)+_+I)*S+(-3*(v-y)-2*_-I)*w+_*T+v}function t(m){if(A(m)){var v=m.length;if(A(m[0])){for(var y=[],E=0;E<v;E++)y.push(b.call(m[E]));return y}return b.call(m)}return m}function a(m){return m[0]=Math.floor(m[0]),m[1]=Math.floor(m[1]),m[2]=Math.floor(m[2]),"rgba("+m.join(",")+")"}function s(m){var v=m[m.length-1].value;return A(v&&v[0])?2:1}function u(m,v,y,E,T,w){var S=m._getter,_=m._setter,I=v==="spline",L=E.length;if(!L)return;var N=E[0].value,R=A(N),D=!1,F=!1,M=R?s(E):0,U;E.sort(function(Y,G){return Y.time-G.time}),U=E[L-1].time;for(var B=[],j=[],W=E[0].value,V=!0,z=0;z<L;z++){B.push(E[z].time/U);var J=E[z].value;if(R&&n(J,W,M)||!R&&J===W||(V=!1),W=J,typeof J=="string"){var q=x.parse(J);q?(J=q,D=!0):F=!0}j.push(J)}if(!w&&V)return;for(var de=j[L-1],z=0;z<L-1;z++)R?i(j[z],de,M):isNaN(j[z])&&!isNaN(de)&&!F&&!D&&(j[z]=de);R&&i(S(m._target,T),de,M);var ae=0,ve=0,_e,Ie,He,me,ke,se;if(D)var te=[0,0,0,0];var Ge=function(G,Q){var ye;if(Q<0)ye=0;else if(Q<ve){for(_e=Math.min(ae+1,L-1),ye=_e;ye>=0&&!(B[ye]<=Q);ye--);ye=Math.min(ye,L-2)}else{for(ye=ae;ye<L&&!(B[ye]>Q);ye++);ye=Math.min(ye-1,L-2)}ae=ye,ve=Q;var ce=B[ye+1]-B[ye];if(ce===0)return;if(Ie=(Q-B[ye])/ce,I)if(me=j[ye],He=j[ye===0?ye:ye-1],ke=j[ye>L-2?L-1:ye+1],se=j[ye>L-3?L-1:ye+2],R)e(He,me,ke,se,Ie,Ie*Ie,Ie*Ie*Ie,S(G,T),M);else{var Te;if(D)Te=e(He,me,ke,se,Ie,Ie*Ie,Ie*Ie*Ie,te,1),Te=a(te);else{if(F)return o(me,ke,Ie);Te=l(He,me,ke,se,Ie,Ie*Ie,Ie*Ie*Ie)}_(G,T,Te)}else if(R)r(j[ye],j[ye+1],Ie,S(G,T),M);else{var Te;if(D)r(j[ye],j[ye+1],Ie,te,1),Te=a(te);else{if(F)return o(j[ye],j[ye+1],Ie);Te=c(j[ye],j[ye+1],Ie)}_(G,T,Te)}},oe=new O({target:m._target,life:U,loop:m._loop,delay:m._delay,onframe:Ge,ondestroy:y});return v&&v!=="spline"&&(oe.easing=v),oe}var h=function(v,y,E,T){this._tracks={},this._target=v,this._loop=y||!1,this._getter=E||g,this._setter=T||f,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};h.prototype={when:function(v,y){var E=this._tracks;for(var T in y){if(!y.hasOwnProperty(T))continue;if(!E[T]){E[T]=[];var w=this._getter(this._target,T);if(w==null)continue;v!==0&&E[T].push({time:0,value:t(w)})}E[T].push({time:v,value:y[T]})}return this},during:function(v){return this._onframeList.push(v),this},pause:function(){for(var v=0;v<this._clipList.length;v++)this._clipList[v].pause();this._paused=!0},resume:function(){for(var v=0;v<this._clipList.length;v++)this._clipList[v].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var v=this._doneList,y=v.length,E=0;E<y;E++)v[E].call(this)},start:function(v,y){var E=this,T=0,w=function(){T--,T||E._doneCallback()},S;for(var _ in this._tracks){if(!this._tracks.hasOwnProperty(_))continue;var I=u(this,v,w,this._tracks[_],_,y);I&&(this._clipList.push(I),T++,this.animation&&this.animation.addClip(I),S=I)}if(S){var L=S.onframe;S.onframe=function(N,R){L(N,R);for(var D=0;D<E._onframeList.length;D++)E._onframeList[D](N,R)}}return T||this._doneCallback(),this},stop:function(v){for(var y=this._clipList,E=this.animation,T=0;T<y.length;T++){var w=y[T];v&&w.onframe(this._target,1),E&&E.removeClip(w)}y.length=0},delay:function(v){return this._delay=v,this},done:function(v){return v&&this._doneList.push(v),this},getClips:function(){return this._clipList}};var p=h;H.exports=p},Bqw1:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},Bsck:function(H,k,d){var O=d("bYtY"),x=d("Qxkt"),C=d("Mdki"),A=d("YXkt"),b=d("sdST"),g=function(r,i){this.name=r||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=i};g.prototype={constructor:g,isRemoved:function(){return this.dataIndex<0},eachNode:function(r,i,n){typeof r=="function"&&(n=i,i=r,r=null),r=r||{},O.isString(r)&&(r={order:r});var e=r.order||"preorder",l=this[r.attr||"children"],t;e==="preorder"&&(t=i.call(n,this));for(var a=0;!t&&a<l.length;a++)l[a].eachNode(r,i,n);e==="postorder"&&i.call(n,this)},updateDepthAndHeight:function(r){var i=0;this.depth=r;for(var n=0;n<this.children.length;n++){var e=this.children[n];e.updateDepthAndHeight(r+1),e.height>i&&(i=e.height)}this.height=i+1},getNodeById:function(r){if(this.getId()===r)return this;for(var i=0,n=this.children,e=n.length;i<e;i++){var l=n[i].getNodeById(r);if(l)return l}},contains:function(r){if(r===this)return!0;for(var i=0,n=this.children,e=n.length;i<e;i++){var l=n[i].contains(r);if(l)return l}},getAncestors:function(r){for(var i=[],n=r?this:this.parentNode;n;)i.push(n),n=n.parentNode;return i.reverse(),i},getValue:function(r){var i=this.hostTree.data;return i.get(i.getDimension(r||"value"),this.dataIndex)},setLayout:function(r,i){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,r,i)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(r){if(this.dataIndex<0)return;var i=this.hostTree,n=i.data.getItemModel(this.dataIndex),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,i){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,r,i)},getVisual:function(r,i){return this.hostTree.data.getItemVisual(this.dataIndex,r,i)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(r){for(var i=r.parentNode;i;){if(i===this)return!0;i=i.parentNode}return!1},isDescendantOf:function(r){return r!==this&&r.isAncestorOf(this)}};function f(r,i){this.root,this.data,this._nodes=[],this.hostModel=r,this.levelModels=O.map(i||[],function(n){return new x(n,r,r.ecModel)})}f.prototype={constructor:f,type:"tree",eachNode:function(r,i,n){this.root.eachNode(r,i,n)},getNodeByDataIndex:function(r){var i=this.data.getRawIndex(r);return this._nodes[i]},getNodeByName:function(r){return this.root.getNodeByName(r)},update:function(){for(var r=this.data,i=this._nodes,n=0,e=i.length;n<e;n++)i[n].dataIndex=-1;for(var n=0,e=r.count();n<e;n++)i[r.getRawIndex(n)].dataIndex=n},clearLayouts:function(){this.data.clearItemLayouts()}},f.createTree=function(r,i,n,e){var l=new f(i,n&&n.levels),t=[],a=1;s(r);function s(p,m){var v=p.value;a=Math.max(a,O.isArray(v)?v.length:1),t.push(p);var y=new g(p.name,l);m?c(y,m):l.root=y,l._nodes.push(y);var E=p.children;if(E)for(var T=0;T<E.length;T++)s(E[T],y)}l.root.updateDepthAndHeight(0);var u=b(t,{coordDimensions:["value"],dimensionsCount:a}),h=new A(u,i);return h.initData(t),e&&e(h),C({mainData:h,struct:l,structAttr:"tree"}),l.update(),l};function c(r,i){var n=i.children;if(r.parentNode===i)return;n.push(r),r.parentNode=i}var o=f;H.exports=o},BtR2:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="LikeOutlined";var f=k.a=x.forwardRef(g)},BuqR:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("6uqw"),b=d("XxSj"),g=d("YOMW"),f=d("OELB"),c=f.reformIntervals,o=A.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,l){o.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var t=this._mode=this._determineMode();r[this._mode].call(this),this._resetSelected(e,l);var a=this.option.categories;this.resetVisual(function(s,u){t==="categories"?(s.mappingMethod="category",s.categories=C.clone(a)):(s.dataExtent=this.getExtent(),s.mappingMethod="piecewise",s.pieceList=C.map(this._pieceList,function(h){var h=C.clone(h);return u!=="inRange"&&(h.visual=null),h}))})},completeVisualOption:function(){var e=this.option,l={},t=b.listVisualTypes(),a=this.isCategory();C.each(e.pieces,function(u){C.each(t,function(h){u.hasOwnProperty(h)&&(l[h]=1)})}),C.each(l,function(u,h){var p=0;C.each(this.stateList,function(m){p|=s(e,m,h)||s(e.target,m,h)},this),!p&&C.each(this.stateList,function(m){(e[m]||(e[m]={}))[h]=g.get(h,m==="inRange"?"active":"inactive",a)})},this);function s(u,h,p){return u&&u[h]&&(C.isObject(u[h])?u[h].hasOwnProperty(p):u[h]===p)}A.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(e,l){var t=this.option,a=this._pieceList,s=(l?t:e).selected||{};if(t.selected=s,C.each(a,function(h,p){var m=this.getSelectedMapKey(h);s.hasOwnProperty(m)||(s[m]=!0)},this),t.selectedMode==="single"){var u=!1;C.each(a,function(h,p){var m=this.getSelectedMapKey(h);s[m]&&(u?s[m]=!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 l=b.findPieceIndex(e,this._pieceList);return l!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[l])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var l=[];return this.eachTargetSeries(function(t){var a=[],s=t.getData();s.each(this.getDataDimension(s),function(u,h){var p=b.findPieceIndex(u,this._pieceList);p===e&&a.push(h)},this),l.push({seriesId:t.id,dataIndex:a})},this),l},getRepresentValue:function(e){var l;if(this.isCategory())l=e.value;else if(e.value!=null)l=e.value;else{var t=e.interval||[];l=t[0]===-Infinity&&t[1]===Infinity?0:(t[0]+t[1])/2}return l},getVisualMeta:function(e){if(this.isCategory())return;var l=[],t=[],a=this;function s(m,v){var y=a.getRepresentValue({interval:m});v||(v=a.getValueState(y));var E=e(y,v);m[0]===-Infinity?t[0]=E:m[1]===Infinity?t[1]=E:l.push({value:m[0],color:E},{value:m[1],color:E})}var u=this._pieceList.slice();if(!u.length)u.push({interval:[-Infinity,Infinity]});else{var h=u[0].interval[0];h!==-Infinity&&u.unshift({interval:[-Infinity,h]}),h=u[u.length-1].interval[1],h!==Infinity&&u.push({interval:[h,Infinity]})}var p=-Infinity;return C.each(u,function(m){var v=m.interval;v&&(v[0]>p&&s([p,v[0]],"outOfRange"),s(v.slice()),p=v[1])},this),{stops:l,outerColors:t}}}),r={splitNumber:function(){var e=this.option,l=this._pieceList,t=Math.min(e.precision,20),a=this.getExtent(),s=e.splitNumber;s=Math.max(parseInt(s,10),1),e.splitNumber=s;for(var u=(a[1]-a[0])/s;+u.toFixed(t)!==u&&t<5;)t++;e.precision=t,u=+u.toFixed(t),e.minOpen&&l.push({interval:[-Infinity,a[0]],close:[0,0]});for(var h=0,p=a[0];h<s;p+=u,h++){var m=h===s-1?a[1]:p+u;l.push({interval:[p,m],close:[1,1]})}e.maxOpen&&l.push({interval:[a[1],Infinity],close:[0,0]}),c(l),C.each(l,function(v,y){v.index=y,v.text=this.formatValueText(v.interval)},this)},categories:function(){var e=this.option;C.each(e.categories,function(l){this._pieceList.push({text:this.formatValueText(l,!0),value:l})},this),i(e,this._pieceList)},pieces:function(){var e=this.option,l=this._pieceList;C.each(e.pieces,function(t,a){C.isObject(t)||(t={value:t});var s={text:"",index:a};if(t.label!=null&&(s.text=t.label),t.hasOwnProperty("value")){var u=s.value=t.value;s.interval=[u,u],s.close=[1,1]}else{for(var h=s.interval=[],p=s.close=[0,0],m=[1,0,1],v=[-Infinity,Infinity],y=[],E=0;E<2;E++){for(var T=[["gte","gt","min"],["lte","lt","max"]][E],w=0;w<3&&h[E]==null;w++)h[E]=t[T[w]],p[E]=m[w],y[E]=w===2;h[E]==null&&(h[E]=v[E])}y[0]&&h[1]===Infinity&&(p[0]=0),y[1]&&h[0]===-Infinity&&(p[1]=0),h[0]===h[1]&&p[0]&&p[1]&&(s.value=h[0])}s.visual=b.retrieveVisuals(t),l.push(s)},this),i(e,l),c(l),C.each(l,function(t){var a=t.close,s=[["<","\u2264"][a[1]],[">","\u2265"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,s)},this)}};function i(e,l){var t=e.inverse;(e.orient==="vertical"?!t:t)&&l.reverse()}var n=o;H.exports=n},BvKs:function(H,k,d){"use strict";d.d(k,"a",function(){return Et});var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),b=d("lwsE"),g=d.n(b),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),l=d("VTBJ"),t=d("1OyB"),a=d("vuIU"),s=d("JX7q"),u=d("Ji7U"),h=d("LK+K"),p=d("I8Z2"),m=d("BGR+"),v=d("wx14"),y=d("rePB"),E=d("4IlW"),T=d("2GS6"),w=d("Gytx"),S=d.n(w),_=d("TSYQ"),I=d.n(_),L=d("U8pU"),N=d("ODXe"),R=/iPhone/i,D=/iPod/i,F=/iPad/i,M=/\bAndroid(?:.+)Mobile\b/i,U=/Android/i,B=/\bAndroid(?:.+)SD4930UR\b/i,j=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,W=/Windows Phone/i,V=/\bWindows(?:.+)ARM\b/i,z=/BlackBerry/i,J=/BB10/i,q=/Opera Mini/i,de=/\b(CriOS|Chrome)(?:.+)Mobile/i,ae=/Mobile(?:.+)Firefox\b/i;function ve(it,rt){return it.test(rt)}function _e(it){var rt=it||(typeof navigator!="undefined"?navigator.userAgent:""),Pt=rt.split("[FBAN");if(typeof Pt[1]!="undefined"){var Ht=Pt,bt=Object(N.a)(Ht,1);rt=bt[0]}if(Pt=rt.split("Twitter"),typeof Pt[1]!="undefined"){var Gt=Pt,ut=Object(N.a)(Gt,1);rt=ut[0]}var Kt={apple:{phone:ve(R,rt)&&!ve(W,rt),ipod:ve(D,rt),tablet:!ve(R,rt)&&ve(F,rt)&&!ve(W,rt),device:(ve(R,rt)||ve(D,rt)||ve(F,rt))&&!ve(W,rt)},amazon:{phone:ve(B,rt),tablet:!ve(B,rt)&&ve(j,rt),device:ve(B,rt)||ve(j,rt)},android:{phone:!ve(W,rt)&&ve(B,rt)||!ve(W,rt)&&ve(M,rt),tablet:!ve(W,rt)&&!ve(B,rt)&&!ve(M,rt)&&(ve(j,rt)||ve(U,rt)),device:!ve(W,rt)&&(ve(B,rt)||ve(j,rt)||ve(M,rt)||ve(U,rt))||ve(/\bokhttp\b/i,rt)},windows:{phone:ve(W,rt),tablet:ve(V,rt),device:ve(W,rt)||ve(V,rt)},other:{blackberry:ve(z,rt),blackberry10:ve(J,rt),opera:ve(q,rt),firefox:ve(ae,rt),chrome:ve(de,rt),device:ve(z,rt)||ve(J,rt)||ve(q,rt)||ve(ae,rt)||ve(de,rt)},any:null,phone:null,tablet:null};return Kt.any=Kt.apple.device||Kt.android.device||Kt.windows.device||Kt.other.device,Kt.phone=Kt.apple.phone||Kt.android.phone||Kt.windows.phone,Kt.tablet=Kt.apple.tablet||Kt.android.tablet||Kt.windows.tablet,Kt}var Ie=Object(l.a)(Object(l.a)({},_e()),{},{isMobile:_e}),He=Ie;function me(){}function ke(it,rt,Pt){var Ht=rt||"";return it.key||"".concat(Ht,"item_").concat(Pt)}function se(it){return"".concat(it,"-menu-")}function te(it,rt){var Pt=-1;e.Children.forEach(it,function(Ht){Pt+=1,Ht&&Ht.type&&Ht.type.isMenuItemGroup?e.Children.forEach(Ht.props.children,function(bt){Pt+=1,rt(bt,Pt)}):rt(Ht,Pt)})}function Ge(it,rt,Pt){if(!it||Pt.find)return;e.Children.forEach(it,function(Ht){if(Ht){var bt=Ht.type;if(!bt||!(bt.isSubMenu||bt.isMenuItem||bt.isMenuItemGroup))return;rt.indexOf(Ht.key)!==-1?Pt.find=!0:Ht.props.children&&Ge(Ht.props.children,rt,Pt)}})}var oe=["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"],Y=function(rt){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht=rt&&typeof rt.getBoundingClientRect=="function"&&rt.getBoundingClientRect().width;if(Ht){if(Pt){var bt=getComputedStyle(rt),Gt=bt.marginLeft,ut=bt.marginRight;Ht+=+Gt.replace("px","")+ +ut.replace("px","")}Ht=+Ht.toFixed(6)}return Ht||0},G=function(rt,Pt,Ht){rt&&Object(L.a)(rt.style)==="object"&&(rt.style[Pt]=Ht)},Q=function(){return He.any},ye=d("KQm4"),ce=d("Ff2n"),Te=d("i8i4"),Se=d("bdgK"),le=d("Uaa1"),fe=d("HTfv"),Ee={adjustX:1,adjustY:1},Ve={topLeft:{points:["bl","tl"],overflow:Ee,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ee,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ee,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ee,offset:[4,0]}},vt={topLeft:{points:["bl","tl"],overflow:Ee,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ee,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ee,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ee,offset:[4,0]}},et=Ve,Oe=0,Tt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Je=function(rt,Pt,Ht){var bt=se(Pt),Gt=rt.getState();rt.setState({defaultActiveFirst:Object(l.a)(Object(l.a)({},Gt.defaultActiveFirst),{},Object(y.a)({},bt,Ht))})},St=function(it){Object(u.a)(Pt,it);var rt=Object(h.a)(Pt);function Pt(Ht){var bt;Object(t.a)(this,Pt),bt=rt.call(this,Ht),bt.onDestroy=function(pr){bt.props.onDestroy(pr)},bt.onKeyDown=function(pr){var tn=pr.keyCode,fn=bt.menuInstance,Mn=bt.props,Yn=Mn.isOpen,si=Mn.store;if(tn===E.a.ENTER)return bt.onTitleClick(pr),Je(si,bt.props.eventKey,!0),!0;if(tn===E.a.RIGHT)return Yn?fn.onKeyDown(pr):(bt.triggerOpenChange(!0),Je(si,bt.props.eventKey,!0)),!0;if(tn===E.a.LEFT){var vi;if(Yn)vi=fn.onKeyDown(pr);else return;return vi||(bt.triggerOpenChange(!1),vi=!0),vi}return Yn&&(tn===E.a.UP||tn===E.a.DOWN)?fn.onKeyDown(pr):void 0},bt.onOpenChange=function(pr){bt.props.onOpenChange(pr)},bt.onPopupVisibleChange=function(pr){bt.triggerOpenChange(pr,pr?"mouseenter":"mouseleave")},bt.onMouseEnter=function(pr){var tn=bt.props,fn=tn.eventKey,Mn=tn.onMouseEnter,Yn=tn.store;Je(Yn,bt.props.eventKey,!1),Mn({key:fn,domEvent:pr})},bt.onMouseLeave=function(pr){var tn=bt.props,fn=tn.parentMenu,Mn=tn.eventKey,Yn=tn.onMouseLeave;fn.subMenuInstance=Object(s.a)(bt),Yn({key:Mn,domEvent:pr})},bt.onTitleMouseEnter=function(pr){var tn=bt.props,fn=tn.eventKey,Mn=tn.onItemHover,Yn=tn.onTitleMouseEnter;Mn({key:fn,hover:!0}),Yn({key:fn,domEvent:pr})},bt.onTitleMouseLeave=function(pr){var tn=bt.props,fn=tn.parentMenu,Mn=tn.eventKey,Yn=tn.onItemHover,si=tn.onTitleMouseLeave;fn.subMenuInstance=Object(s.a)(bt),Yn({key:Mn,hover:!1}),si({key:Mn,domEvent:pr})},bt.onTitleClick=function(pr){var tn=Object(s.a)(bt),fn=tn.props;if(fn.onTitleClick({key:fn.eventKey,domEvent:pr}),fn.triggerSubMenuAction==="hover")return;bt.triggerOpenChange(!fn.isOpen,"click"),Je(fn.store,bt.props.eventKey,!1)},bt.onSubMenuClick=function(pr){typeof bt.props.onClick=="function"&&bt.props.onClick(bt.addKeyPath(pr))},bt.onSelect=function(pr){bt.props.onSelect(pr)},bt.onDeselect=function(pr){bt.props.onDeselect(pr)},bt.getPrefixCls=function(){return"".concat(bt.props.rootPrefixCls,"-submenu")},bt.getActiveClassName=function(){return"".concat(bt.getPrefixCls(),"-active")},bt.getDisabledClassName=function(){return"".concat(bt.getPrefixCls(),"-disabled")},bt.getSelectedClassName=function(){return"".concat(bt.getPrefixCls(),"-selected")},bt.getOpenClassName=function(){return"".concat(bt.props.rootPrefixCls,"-submenu-open")},bt.saveMenuInstance=function(pr){bt.menuInstance=pr},bt.addKeyPath=function(pr){return Object(l.a)(Object(l.a)({},pr),{},{keyPath:(pr.keyPath||[]).concat(bt.props.eventKey)})},bt.triggerOpenChange=function(pr,tn){var fn=bt.props.eventKey,Mn=function(){bt.onOpenChange({key:fn,item:Object(s.a)(bt),trigger:tn,open:pr})};tn==="mouseenter"?bt.mouseenterTimeout=setTimeout(function(){Mn()},0):Mn()},bt.isChildrenSelected=function(){var pr={find:!1};return Ge(bt.props.children,bt.props.selectedKeys,pr),pr.find},bt.isOpen=function(){return bt.props.openKeys.indexOf(bt.props.eventKey)!==-1},bt.adjustWidth=function(){if(!bt.subMenuTitle||!bt.menuInstance)return;var pr=Te.findDOMNode(bt.menuInstance);if(pr.offsetWidth>=bt.subMenuTitle.offsetWidth)return;pr.style.minWidth="".concat(bt.subMenuTitle.offsetWidth,"px")},bt.saveSubMenuTitle=function(pr){bt.subMenuTitle=pr},bt.getBaseProps=function(){var pr=Object(s.a)(bt),tn=pr.props;return{mode:tn.mode==="horizontal"?"vertical":tn.mode,visible:bt.props.isOpen,level:tn.level+1,inlineIndent:tn.inlineIndent,focusable:!1,onClick:bt.onSubMenuClick,onSelect:bt.onSelect,onDeselect:bt.onDeselect,onDestroy:bt.onDestroy,selectedKeys:tn.selectedKeys,eventKey:"".concat(tn.eventKey,"-menu-"),openKeys:tn.openKeys,motion:tn.motion,onOpenChange:bt.onOpenChange,subMenuOpenDelay:tn.subMenuOpenDelay,parentMenu:Object(s.a)(bt),subMenuCloseDelay:tn.subMenuCloseDelay,forceSubMenuRender:tn.forceSubMenuRender,triggerSubMenuAction:tn.triggerSubMenuAction,builtinPlacements:tn.builtinPlacements,defaultActiveFirst:tn.store.getState().defaultActiveFirst[se(tn.eventKey)],multiple:tn.multiple,prefixCls:tn.rootPrefixCls,id:bt.internalMenuId,manualRef:bt.saveMenuInstance,itemIcon:tn.itemIcon,expandIcon:tn.expandIcon,direction:tn.direction}},bt.getMotion=function(pr,tn){var fn=Object(s.a)(bt),Mn=fn.haveRendered,Yn=bt.props,si=Yn.motion,vi=Yn.rootPrefixCls,xi=Object(l.a)(Object(l.a)({},si),{},{leavedClassName:"".concat(vi,"-hidden"),removeOnLeave:!1,motionAppear:Mn||!tn||pr!=="inline"});return xi};var Gt=Ht.store,ut=Ht.eventKey,Kt=Gt.getState(),Ar=Kt.defaultActiveFirst;bt.isRootMenu=!1;var ir=!1;return Ar&&(ir=Ar[ut]),Je(Gt,ut,ir),bt}return Object(a.a)(Pt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var bt=this,Gt=this.props,ut=Gt.mode,Kt=Gt.parentMenu,Ar=Gt.manualRef;if(Ar&&Ar(this),ut!=="horizontal"||!Kt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return bt.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var bt=this.props,Gt=bt.onDestroy,ut=bt.eventKey;Gt&&Gt(ut),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(bt){var Gt=this,ut=this.getBaseProps(),Kt=this.getMotion(ut.mode,ut.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||ut.visible||ut.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var Ar=ut.direction;return e.createElement(fe.default,Object.assign({visible:ut.visible},Kt),function(ir){var pr=ir.className,tn=ir.style,fn=I()("".concat(ut.prefixCls,"-sub"),pr,Object(y.a)({},"".concat(ut.prefixCls,"-rtl"),Ar==="rtl"));return e.createElement(dt,Object.assign({},ut,{id:Gt.internalMenuId,className:fn,style:tn}),bt)})}},{key:"render",value:function(){var bt,Gt=Object(l.a)({},this.props),ut=Gt.isOpen,Kt=this.getPrefixCls(),Ar=Gt.mode==="inline",ir=I()(Kt,"".concat(Kt,"-").concat(Gt.mode),(bt={},Object(y.a)(bt,Gt.className,!!Gt.className),Object(y.a)(bt,this.getOpenClassName(),ut),Object(y.a)(bt,this.getActiveClassName(),Gt.active||ut&&!Ar),Object(y.a)(bt,this.getDisabledClassName(),Gt.disabled),Object(y.a)(bt,this.getSelectedClassName(),this.isChildrenSelected()),bt));this.internalMenuId||(Gt.eventKey?this.internalMenuId="".concat(Gt.eventKey,"$Menu"):(Oe+=1,this.internalMenuId="$__$".concat(Oe,"$Menu")));var pr={},tn={},fn={};Gt.disabled||(pr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},tn={onClick:this.onTitleClick},fn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Mn={},Yn=Gt.direction;Ar&&(Yn==="rtl"?Mn.paddingRight=Gt.inlineIndent*Gt.level:Mn.paddingLeft=Gt.inlineIndent*Gt.level);var si={};this.props.isOpen&&(si={"aria-owns":this.internalMenuId});var vi=null;Gt.mode!=="horizontal"&&(vi=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(vi=e.createElement(this.props.expandIcon,Object(l.a)({},this.props))));var xi=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Mn,className:"".concat(Kt,"-title"),role:"button"},fn,tn,{"aria-expanded":ut},si,{"aria-haspopup":"true",title:typeof Gt.title=="string"?Gt.title:void 0}),Gt.title,vi||e.createElement("i",{className:"".concat(Kt,"-arrow")})),_i=this.renderChildren(Gt.children),Ze=Gt.parentMenu.isRootMenu?Gt.parentMenu.props.getPopupContainer:function(Sr){return Sr.parentNode},we=Tt[Gt.mode],Ne=Gt.popupOffset?{offset:Gt.popupOffset}:{},Fe=Gt.mode==="inline"?"":Gt.popupClassName;Fe+=Yn==="rtl"?" ".concat(Kt,"-rtl"):"";var Ye=Gt.disabled,We=Gt.triggerSubMenuAction,qe=Gt.subMenuOpenDelay,yt=Gt.forceSubMenuRender,ot=Gt.subMenuCloseDelay,$t=Gt.builtinPlacements;oe.forEach(function(Sr){return delete Gt[Sr]}),delete Gt.onClick;var Mr=Yn==="rtl"?Object.assign({},vt,$t):Object.assign({},Ve,$t);return delete Gt.direction,e.createElement("li",Object.assign({},Gt,pr,{className:ir,role:"menuitem"}),Ar&&xi,Ar&&_i,!Ar&&e.createElement(le.a,{prefixCls:Kt,popupClassName:I()("".concat(Kt,"-popup"),Fe),getPopupContainer:Ze,builtinPlacements:Mr,popupPlacement:we,popupVisible:ut,popupAlign:Ne,popup:_i,action:Ye?[]:[We],mouseEnterDelay:qe,mouseLeaveDelay:ot,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:yt},xi))}}]),Pt}(e.Component);St.defaultProps={onMouseEnter:me,onMouseLeave:me,onTitleMouseEnter:me,onTitleMouseLeave:me,onTitleClick:me,manualRef:me,mode:"vertical",title:""};var Mt=Object(p.b)(function(it,rt){var Pt=it.openKeys,Ht=it.activeKey,bt=it.selectedKeys,Gt=rt.eventKey,ut=rt.subMenuKey;return{isOpen:Pt.indexOf(Gt)>-1,active:Ht[ut]===Gt,selectedKeys:bt}})(St);Mt.isSubMenu=!0;var er=Mt,It="menuitem-overflowed",_t=.5,Xe=function(it){Object(u.a)(Pt,it);var rt=Object(h.a)(Pt);function Pt(){var Ht;return Object(t.a)(this,Pt),Ht=rt.apply(this,arguments),Ht.resizeObserver=null,Ht.mutationObserver=null,Ht.originalTotalWidth=0,Ht.overflowedItems=[],Ht.menuItemSizes=[],Ht.cancelFrameId=null,Ht.state={lastVisibleIndex:void 0},Ht.getMenuItemNodes=function(){var bt=Ht.props.prefixCls,Gt=Te.findDOMNode(Object(s.a)(Ht));return Gt?[].slice.call(Gt.children).filter(function(ut){return ut.className.split(" ").indexOf("".concat(bt,"-overflowed-submenu"))<0}):[]},Ht.getOverflowedSubMenuItem=function(bt,Gt,ut){var Kt=Ht.props,Ar=Kt.overflowedIndicator,ir=Kt.level,pr=Kt.mode,tn=Kt.prefixCls,fn=Kt.theme;if(ir!==1||pr!=="horizontal")return null;var Mn=Ht.props.children[0],Yn=Mn.props,si=Yn.children,vi=Yn.title,xi=Yn.style,_i=Object(ce.a)(Yn,["children","title","style"]),Ze=Object(l.a)({},xi),we="".concat(bt,"-overflowed-indicator"),Ne="".concat(bt,"-overflowed-indicator");Gt.length===0&&ut!==!0?Ze=Object(l.a)(Object(l.a)({},Ze),{},{display:"none"}):ut&&(Ze=Object(l.a)(Object(l.a)({},Ze),{},{visibility:"hidden",position:"absolute"}),we="".concat(we,"-placeholder"),Ne="".concat(Ne,"-placeholder"));var Fe=fn?"".concat(tn,"-").concat(fn):"",Ye={};return oe.forEach(function(We){_i[We]!==void 0&&(Ye[We]=_i[We])}),e.createElement(er,Object.assign({title:Ar,className:"".concat(tn,"-overflowed-submenu"),popupClassName:Fe},Ye,{key:we,eventKey:Ne,disabled:!1,style:Ze}),Gt)},Ht.setChildrenWidthAndResize=function(){if(Ht.props.mode!=="horizontal")return;var bt=Te.findDOMNode(Object(s.a)(Ht));if(!bt)return;var Gt=bt.children;if(!Gt||Gt.length===0)return;var ut=bt.children[Gt.length-1];G(ut,"display","inline-block");var Kt=Ht.getMenuItemNodes(),Ar=Kt.filter(function(ir){return ir.className.split(" ").indexOf(It)>=0});Ar.forEach(function(ir){G(ir,"display","inline-block")}),Ht.menuItemSizes=Kt.map(function(ir){return Y(ir,!0)}),Ar.forEach(function(ir){G(ir,"display","none")}),Ht.overflowedIndicatorWidth=Y(bt.children[bt.children.length-1],!0),Ht.originalTotalWidth=Ht.menuItemSizes.reduce(function(ir,pr){return ir+pr},0),Ht.handleResize(),G(ut,"display","none")},Ht.handleResize=function(){if(Ht.props.mode!=="horizontal")return;var bt=Te.findDOMNode(Object(s.a)(Ht));if(!bt)return;var Gt=Y(bt);Ht.overflowedItems=[];var ut=0,Kt;Ht.originalTotalWidth>Gt+_t&&(Kt=-1,Ht.menuItemSizes.forEach(function(Ar){ut+=Ar,ut+Ht.overflowedIndicatorWidth<=Gt&&(Kt+=1)})),Ht.setState({lastVisibleIndex:Kt})},Ht}return Object(a.a)(Pt,[{key:"componentDidMount",value:function(){var bt=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Gt=Te.findDOMNode(this);if(!Gt)return;this.resizeObserver=new Se.default(function(ut){ut.forEach(function(){var Kt=bt.cancelFrameId;cancelAnimationFrame(Kt),bt.cancelFrameId=requestAnimationFrame(bt.setChildrenWidthAndResize)})}),[].slice.call(Gt.children).concat(Gt).forEach(function(ut){bt.resizeObserver.observe(ut)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){bt.resizeObserver.disconnect(),[].slice.call(Gt.children).concat(Gt).forEach(function(ut){bt.resizeObserver.observe(ut)}),bt.setChildrenWidthAndResize()}),this.mutationObserver.observe(Gt,{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(bt){var Gt=this,ut=this.state.lastVisibleIndex;return(bt||[]).reduce(function(Kt,Ar,ir){var pr=Ar;if(Gt.props.mode==="horizontal"){var tn=Gt.getOverflowedSubMenuItem(Ar.props.eventKey,[]);ut!==void 0&&Gt.props.className.indexOf("".concat(Gt.props.prefixCls,"-root"))!==-1&&(ir>ut&&(pr=e.cloneElement(Ar,{style:{display:"none"},eventKey:"".concat(Ar.props.eventKey,"-hidden"),className:"".concat(It)})),ir===ut+1&&(Gt.overflowedItems=bt.slice(ut+1).map(function(Mn){return e.cloneElement(Mn,{key:Mn.props.eventKey,mode:"vertical-left"})}),tn=Gt.getOverflowedSubMenuItem(Ar.props.eventKey,Gt.overflowedItems)));var fn=[].concat(Object(ye.a)(Kt),[tn,pr]);return ir===bt.length-1&&fn.push(Gt.getOverflowedSubMenuItem(Ar.props.eventKey,[],!0)),fn}return[].concat(Object(ye.a)(Kt),[pr])},[])}},{key:"render",value:function(){var bt=this.props,Gt=bt.visible,ut=bt.prefixCls,Kt=bt.overflowedIndicator,Ar=bt.mode,ir=bt.level,pr=bt.tag,tn=bt.children,fn=bt.theme,Mn=Object(ce.a)(bt,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Yn=pr;return e.createElement(Yn,Object.assign({},Mn),this.renderChildren(tn))}}]),Pt}(e.Component);Xe.defaultProps={tag:"div",className:""};var ie=Xe;function X(it){return it.length?it.every(function(rt){return!!rt.props.disabled}):!0}function Be(it,rt,Pt){var Ht=it.getState();it.setState({activeKey:Object(l.a)(Object(l.a)({},Ht.activeKey),{},Object(y.a)({},rt,Pt))})}function Ce(it){return it.eventKey||"0-menu-"}function Z(it,rt){var Pt=rt,Ht=it.children,bt=it.eventKey;if(Pt){var Gt;if(te(Ht,function(ut,Kt){ut&&ut.props&&!ut.props.disabled&&Pt===ke(ut,bt,Kt)&&(Gt=!0)}),Gt)return Pt}return Pt=null,it.defaultActiveFirst&&te(Ht,function(ut,Kt){!Pt&&ut&&!ut.props.disabled&&(Pt=ke(ut,bt,Kt))}),Pt}function nt(it){if(it){var rt=this.instanceArray.indexOf(it);rt!==-1?this.instanceArray[rt]=it:this.instanceArray.push(it)}}var ct=function(it){Object(u.a)(Pt,it);var rt=Object(h.a)(Pt);function Pt(Ht){var bt;return Object(t.a)(this,Pt),bt=rt.call(this,Ht),bt.onKeyDown=function(Gt,ut){var Kt=Gt.keyCode,Ar;if(bt.getFlatInstanceArray().forEach(function(pr){pr&&pr.props.active&&pr.onKeyDown&&(Ar=pr.onKeyDown(Gt))}),Ar)return 1;var ir=null;return(Kt===E.a.UP||Kt===E.a.DOWN)&&(ir=bt.step(Kt===E.a.UP?-1:1)),ir?(Gt.preventDefault(),Be(bt.props.store,Ce(bt.props),ir.props.eventKey),typeof ut=="function"&&ut(ir),1):void 0},bt.onItemHover=function(Gt){var ut=Gt.key,Kt=Gt.hover;Be(bt.props.store,Ce(bt.props),Kt?ut:null)},bt.onDeselect=function(Gt){bt.props.onDeselect(Gt)},bt.onSelect=function(Gt){bt.props.onSelect(Gt)},bt.onClick=function(Gt){bt.props.onClick(Gt)},bt.onOpenChange=function(Gt){bt.props.onOpenChange(Gt)},bt.onDestroy=function(Gt){bt.props.onDestroy(Gt)},bt.getFlatInstanceArray=function(){return bt.instanceArray},bt.step=function(Gt){var ut=bt.getFlatInstanceArray(),Kt=bt.props.store.getState().activeKey[Ce(bt.props)],Ar=ut.length;if(!Ar)return null;Gt<0&&(ut=ut.concat().reverse());var ir=-1;if(ut.every(function(Mn,Yn){return Mn&&Mn.props.eventKey===Kt?(ir=Yn,!1):!0}),!bt.props.defaultActiveFirst&&ir!==-1&&X(ut.slice(ir,Ar-1)))return;var pr=(ir+1)%Ar,tn=pr;do{var fn=ut[tn];if(!fn||fn.props.disabled)tn=(tn+1)%Ar;else return fn}while(tn!==pr);return null},bt.renderCommonMenuItem=function(Gt,ut,Kt){var Ar=bt.props.store.getState(),ir=Object(s.a)(bt),pr=ir.props,tn=ke(Gt,pr.eventKey,ut),fn=Gt.props;if(!fn||typeof Gt.type=="string")return Gt;var Mn=tn===Ar.activeKey,Yn=Object(l.a)(Object(l.a)({mode:fn.mode||pr.mode,level:pr.level,inlineIndent:pr.inlineIndent,renderMenuItem:bt.renderMenuItem,rootPrefixCls:pr.prefixCls,index:ut,parentMenu:pr.parentMenu,manualRef:fn.disabled?void 0:Object(T.a)(Gt.ref,nt.bind(Object(s.a)(bt))),eventKey:tn,active:!fn.disabled&&Mn,multiple:pr.multiple,onClick:function(vi){(fn.onClick||me)(vi),bt.onClick(vi)},onItemHover:bt.onItemHover,motion:pr.motion,subMenuOpenDelay:pr.subMenuOpenDelay,subMenuCloseDelay:pr.subMenuCloseDelay,forceSubMenuRender:pr.forceSubMenuRender,onOpenChange:bt.onOpenChange,onDeselect:bt.onDeselect,onSelect:bt.onSelect,builtinPlacements:pr.builtinPlacements,itemIcon:fn.itemIcon||bt.props.itemIcon,expandIcon:fn.expandIcon||bt.props.expandIcon},Kt),{},{direction:pr.direction});return(pr.mode==="inline"||Q())&&(Yn.triggerSubMenuAction="click"),e.cloneElement(Gt,Yn)},bt.renderMenuItem=function(Gt,ut,Kt){if(!Gt)return null;var Ar=bt.props.store.getState(),ir={openKeys:Ar.openKeys,selectedKeys:Ar.selectedKeys,triggerSubMenuAction:bt.props.triggerSubMenuAction,subMenuKey:Kt};return bt.renderCommonMenuItem(Gt,ut,ir)},Ht.store.setState({activeKey:Object(l.a)(Object(l.a)({},Ht.store.getState().activeKey),{},Object(y.a)({},Ht.eventKey,Z(Ht,Ht.activeKey)))}),bt.instanceArray=[],bt}return Object(a.a)(Pt,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(bt){return this.props.visible||bt.visible||this.props.className!==bt.className||!S()(this.props.style,bt.style)}},{key:"componentDidUpdate",value:function(bt){var Gt=this.props,ut="activeKey"in Gt?Gt.activeKey:Gt.store.getState().activeKey[Ce(Gt)],Kt=Z(Gt,ut);if(Kt!==ut)Be(Gt.store,Ce(Gt),Kt);else if("activeKey"in bt){var Ar=Z(bt,bt.activeKey);Kt!==Ar&&Be(Gt.store,Ce(Gt),Kt)}}},{key:"render",value:function(){var bt=this,Gt=Object(v.a)({},this.props);this.instanceArray=[];var ut=I()(Gt.prefixCls,Gt.className,"".concat(Gt.prefixCls,"-").concat(Gt.mode)),Kt={className:ut,role:Gt.role||"menu"};Gt.id&&(Kt.id=Gt.id),Gt.focusable&&(Kt.tabIndex=0,Kt.onKeyDown=this.onKeyDown);var Ar=Gt.prefixCls,ir=Gt.eventKey,pr=Gt.visible,tn=Gt.level,fn=Gt.mode,Mn=Gt.overflowedIndicator,Yn=Gt.theme;return oe.forEach(function(si){return delete Gt[si]}),delete Gt.onClick,e.createElement(ie,Object.assign({},Gt,{prefixCls:Ar,mode:fn,tag:"ul",level:tn,theme:Yn,visible:pr,overflowedIndicator:Mn},Kt),e.Children.map(Gt.children,function(si,vi){return bt.renderMenuItem(si,vi,ir||"0-menu-")}))}}]),Pt}(e.Component);ct.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:me};var Qe=Object(p.b)()(ct),dt=Qe,Ft=d("Kwbf");function Lr(it,rt,Pt){var Ht=it.prefixCls,bt=it.motion,Gt=it.defaultMotions,ut=Gt===void 0?{}:Gt,Kt=it.openAnimation,Ar=it.openTransitionName,ir=rt.switchingModeFromInline;if(bt)return bt;if(Object(L.a)(Kt)==="object"&&Kt)Object(Ft.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Kt=="string")return{motionName:"".concat(Ht,"-open-").concat(Kt)};if(Ar)return{motionName:Ar};var pr=ut[Pt];return pr||(ir?null:ut.other)}var Wt=function(it){Object(u.a)(Pt,it);var rt=Object(h.a)(Pt);function Pt(Ht){var bt;Object(t.a)(this,Pt),bt=rt.call(this,Ht),bt.inlineOpenKeys=[],bt.onSelect=function(Kt){var Ar=Object(s.a)(bt),ir=Ar.props;if(ir.selectable){var pr=bt.store.getState(),tn=pr.selectedKeys,fn=Kt.key;ir.multiple?tn=tn.concat([fn]):tn=[fn],"selectedKeys"in ir||bt.store.setState({selectedKeys:tn}),ir.onSelect(Object(l.a)(Object(l.a)({},Kt),{},{selectedKeys:tn}))}},bt.onClick=function(Kt){var Ar=bt.getRealMenuMode(),ir=Object(s.a)(bt),pr=ir.store,tn=ir.props.onOpenChange;Ar!=="inline"&&!("openKeys"in bt.props)&&(pr.setState({openKeys:[]}),tn([])),bt.props.onClick(Kt)},bt.onKeyDown=function(Kt,Ar){bt.innerMenu.getWrappedInstance().onKeyDown(Kt,Ar)},bt.onOpenChange=function(Kt){var Ar=Object(s.a)(bt),ir=Ar.props,pr=bt.store.getState().openKeys.concat(),tn=!1,fn=function(Yn){var si=!1;if(Yn.open)si=pr.indexOf(Yn.key)===-1,si&&pr.push(Yn.key);else{var vi=pr.indexOf(Yn.key);si=vi!==-1,si&&pr.splice(vi,1)}tn=tn||si};Array.isArray(Kt)?Kt.forEach(fn):fn(Kt),tn&&("openKeys"in bt.props||bt.store.setState({openKeys:pr}),ir.onOpenChange(pr))},bt.onDeselect=function(Kt){var Ar=Object(s.a)(bt),ir=Ar.props;if(ir.selectable){var pr=bt.store.getState().selectedKeys.concat(),tn=Kt.key,fn=pr.indexOf(tn);fn!==-1&&pr.splice(fn,1),"selectedKeys"in ir||bt.store.setState({selectedKeys:pr}),ir.onDeselect(Object(l.a)(Object(l.a)({},Kt),{},{selectedKeys:pr}))}},bt.onMouseEnter=function(Kt){bt.restoreModeVerticalFromInline();var Ar=bt.props.onMouseEnter;Ar&&Ar(Kt)},bt.onTransitionEnd=function(Kt){var Ar=Kt.propertyName==="width"&&Kt.target===Kt.currentTarget,ir=Kt.target.className,pr=Object.prototype.toString.call(ir)==="[object SVGAnimatedString]"?ir.animVal:ir,tn=Kt.propertyName==="font-size"&&pr.indexOf("anticon")>=0;(Ar||tn)&&bt.restoreModeVerticalFromInline()},bt.setInnerMenu=function(Kt){bt.innerMenu=Kt},bt.isRootMenu=!0;var Gt=Ht.defaultSelectedKeys,ut=Ht.defaultOpenKeys;return"selectedKeys"in Ht&&(Gt=Ht.selectedKeys||[]),"openKeys"in Ht&&(ut=Ht.openKeys||[]),bt.store=Object(p.c)({selectedKeys:Gt,openKeys:ut,activeKey:{"0-menu-":Z(Ht,Ht.activeKey)}}),bt.state={switchingModeFromInline:!1},bt}return Object(a.a)(Pt,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(bt){this.updateOpentKeysWhenSwitchMode(bt),this.updateMiniStore();var Gt=this.props,ut=Gt.siderCollapsed,Kt=Gt.inlineCollapsed,Ar=Gt.onOpenChange;(!bt.inlineCollapsed&&Kt||!bt.siderCollapsed&&ut)&&Ar([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(bt){var Gt=this.props,ut=this.store,Kt=this.inlineOpenKeys,Ar=ut.getState(),ir={};bt.mode==="inline"&&Gt.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Gt||((Gt.inlineCollapsed&&!bt.inlineCollapsed||Gt.siderCollapsed&&!bt.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Ar.openKeys.concat(),ir.openKeys=[]),(!Gt.inlineCollapsed&&bt.inlineCollapsed||!Gt.siderCollapsed&&bt.siderCollapsed)&&(ir.openKeys=Kt,this.inlineOpenKeys=[])),Object.keys(ir).length&&ut.setState(ir)}},{key:"updateMenuDisplay",value:function(){var bt=this.props.collapsedWidth,Gt=this.store,ut=this.prevOpenKeys,Kt=this.getInlineCollapsed()&&(bt===0||bt==="0"||bt==="0px");Kt?(this.prevOpenKeys=Gt.getState().openKeys.concat(),this.store.setState({openKeys:[]})):ut&&(this.store.setState({openKeys:ut}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var bt=this.props.mode,Gt=this.state.switchingModeFromInline,ut=this.getInlineCollapsed();return Gt&&ut?"inline":ut?"vertical":bt}},{key:"getInlineCollapsed",value:function(){var bt=this.props,Gt=bt.inlineCollapsed,ut=bt.siderCollapsed;return ut!==void 0?ut:Gt}},{key:"restoreModeVerticalFromInline",value:function(){var bt=this.state.switchingModeFromInline;bt&&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 bt=Object(l.a)({},Object(m.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Gt=this.getRealMenuMode();return bt.className+=" ".concat(bt.prefixCls,"-root"),bt.direction==="rtl"&&(bt.className+=" ".concat(bt.prefixCls,"-rtl")),bt=Object(l.a)(Object(l.a)({},bt),{},{mode:Gt,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Lr(this.props,this.state,Gt)}),delete bt.openAnimation,delete bt.openTransitionName,e.createElement(p.a,{store:this.store},e.createElement(dt,Object.assign({},bt,{ref:this.setInnerMenu}),this.props.children))}}]),Pt}(e.Component);Wt.defaultProps={selectable:!0,onClick:me,onSelect:me,onOpenChange:me,onDeselect:me,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 ar=Wt,Ut=function(it){Object(u.a)(Pt,it);var rt=Object(h.a)(Pt);function Pt(){var Ht;return Object(t.a)(this,Pt),Ht=rt.apply(this,arguments),Ht.onKeyDown=function(bt){var Gt=bt.keyCode;return Gt===E.a.ENTER?(Ht.onClick(bt),!0):void 0},Ht.onMouseLeave=function(bt){var Gt=Ht.props,ut=Gt.eventKey,Kt=Gt.onItemHover,Ar=Gt.onMouseLeave;Kt({key:ut,hover:!1}),Ar({key:ut,domEvent:bt})},Ht.onMouseEnter=function(bt){var Gt=Ht.props,ut=Gt.eventKey,Kt=Gt.onItemHover,Ar=Gt.onMouseEnter;Kt({key:ut,hover:!0}),Ar({key:ut,domEvent:bt})},Ht.onClick=function(bt){var Gt=Ht.props,ut=Gt.eventKey,Kt=Gt.multiple,Ar=Gt.onClick,ir=Gt.onSelect,pr=Gt.onDeselect,tn=Gt.isSelected,fn={key:ut,keyPath:[ut],item:Object(s.a)(Ht),domEvent:bt};Ar(fn),Kt?tn?pr(fn):ir(fn):tn||ir(fn)},Ht.saveNode=function(bt){Ht.node=bt},Ht}return Object(a.a)(Pt,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var bt=this.props;bt.onDestroy&&bt.onDestroy(bt.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 bt,Gt=Object(l.a)({},this.props),ut=I()(this.getPrefixCls(),Gt.className,(bt={},Object(y.a)(bt,this.getActiveClassName(),!Gt.disabled&&Gt.active),Object(y.a)(bt,this.getSelectedClassName(),Gt.isSelected),Object(y.a)(bt,this.getDisabledClassName(),Gt.disabled),bt)),Kt=Object(l.a)(Object(l.a)({},Gt.attribute),{},{title:typeof Gt.title=="string"?Gt.title:void 0,className:ut,role:Gt.role||"menuitem","aria-disabled":Gt.disabled});Gt.role==="option"?Kt=Object(l.a)(Object(l.a)({},Kt),{},{role:"option","aria-selected":Gt.isSelected}):(Gt.role===null||Gt.role==="none")&&(Kt.role="none");var Ar={onClick:Gt.disabled?null:this.onClick,onMouseLeave:Gt.disabled?null:this.onMouseLeave,onMouseEnter:Gt.disabled?null:this.onMouseEnter},ir=Object(l.a)({},Gt.style);Gt.mode==="inline"&&(Gt.direction==="rtl"?ir.paddingRight=Gt.inlineIndent*Gt.level:ir.paddingLeft=Gt.inlineIndent*Gt.level),oe.forEach(function(tn){return delete Gt[tn]}),delete Gt.direction;var pr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(pr=e.createElement(this.props.itemIcon,this.props)),e.createElement("li",Object.assign({},Object(m.default)(Gt,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Kt,Ar,{style:ir,ref:this.saveNode}),Gt.children,pr)}}]),Pt}(e.Component);Ut.isMenuItem=!0,Ut.defaultProps={onSelect:me,onMouseEnter:me,onMouseLeave:me,manualRef:me};var kt=Object(p.b)(function(it,rt){var Pt=it.activeKey,Ht=it.selectedKeys,bt=rt.eventKey,Gt=rt.subMenuKey;return{active:Pt[Gt]===bt,isSelected:Ht.indexOf(bt)!==-1}})(Ut),st=kt,Rr=function(it){Object(u.a)(Pt,it);var rt=Object(h.a)(Pt);function Pt(){var Ht;return Object(t.a)(this,Pt),Ht=rt.apply(this,arguments),Ht.renderInnerMenuItem=function(bt){var Gt=Ht.props,ut=Gt.renderMenuItem,Kt=Gt.index;return ut(bt,Kt,Ht.props.subMenuKey)},Ht}return Object(a.a)(Pt,[{key:"render",value:function(){var bt=Object(v.a)({},this.props),Gt=bt.className,ut=Gt===void 0?"":Gt,Kt=bt.rootPrefixCls,Ar="".concat(Kt,"-item-group-title"),ir="".concat(Kt,"-item-group-list"),pr=bt.title,tn=bt.children;return oe.forEach(function(fn){return delete bt[fn]}),delete bt.onClick,delete bt.direction,e.createElement("li",Object.assign({},bt,{className:"".concat(ut," ").concat(Kt,"-item-group")}),e.createElement("div",{className:Ar,title:typeof pr=="string"?pr:void 0},pr),e.createElement("ul",{className:ir},e.Children.map(tn,this.renderInnerMenuItem)))}}]),Pt}(e.Component);Rr.isMenuItemGroup=!0,Rr.defaultProps={disabled:!0};var on=Rr,Sn=function(rt){var Pt=rt.className,Ht=rt.rootPrefixCls,bt=rt.style;return e.createElement("li",{className:"".concat(Pt," ").concat(Ht,"-item-divider"),style:bt})};Sn.defaultProps={disabled:!0,className:"",style:{}};var zn=Sn,Ii=ar,yn=Object(e.createContext)({inlineCollapsed:!1}),Nn=yn,jt=d("0n0R"),At=function(it){r()(Pt,it);var rt=n()(Pt);function Pt(){return g()(this,Pt),rt.apply(this,arguments)}return c()(Pt,[{key:"renderTitle",value:function(bt){var Gt=this.props,ut=Gt.icon,Kt=Gt.title,Ar=Gt.level,ir=Gt.rootPrefixCls;if(!ut)return bt&&Ar===1&&Kt&&typeof Kt=="string"?e.createElement("div",{className:"".concat(ir,"-inline-collapsed-noicon")},Kt.charAt(0)):Kt;var pr=Object(jt.b)(Kt)&&Kt.type==="span";return e.createElement(e.Fragment,null,ut,pr?Kt:e.createElement("span",null,Kt))}},{key:"render",value:function(){var bt=this,Gt=this.props,ut=Gt.rootPrefixCls,Kt=Gt.popupClassName;return e.createElement(Nn.Consumer,null,function(Ar){var ir=Ar.inlineCollapsed,pr=Ar.antdMenuTheme;return e.createElement(er,x()({},Object(m.default)(bt.props,["icon"]),{title:bt.renderTitle(ir),popupClassName:I()(ut,"".concat(ut,"-").concat(pr),Kt)}))})}}]),Pt}(e.Component);At.contextType=Nn,At.isSubMenu=1;var Re=At,Ke=d("Zm9Q"),Pe=d("3S7+"),at=d("ZX9x"),wt=function(it,rt){var Pt={};for(var Ht in it)Object.prototype.hasOwnProperty.call(it,Ht)&&rt.indexOf(Ht)<0&&(Pt[Ht]=it[Ht]);if(it!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Ht=Object.getOwnPropertySymbols(it);bt<Ht.length;bt++)rt.indexOf(Ht[bt])<0&&Object.prototype.propertyIsEnumerable.call(it,Ht[bt])&&(Pt[Ht[bt]]=it[Ht[bt]]);return Pt},Rt=function(it){r()(Pt,it);var rt=n()(Pt);function Pt(){var Ht;return g()(this,Pt),Ht=rt.apply(this,arguments),Ht.renderItem=function(bt){var Gt=bt.siderCollapsed,ut=Ht.props,Kt=ut.level,Ar=ut.className,ir=ut.children,pr=ut.rootPrefixCls,tn=Ht.props,fn=tn.title,Mn=tn.icon,Yn=tn.danger,si=wt(tn,["title","icon","danger"]);return e.createElement(Nn.Consumer,null,function(vi){var xi,_i=vi.inlineCollapsed,Ze=vi.direction,we=fn;typeof fn=="undefined"?we=Kt===1?ir:"":fn===!1&&(we="");var Ne={title:we};!Gt&&!_i&&(Ne.title=null,Ne.visible=!1);var Fe=Object(Ke.a)(ir).length;return e.createElement(Pe.a,x()({},Ne,{placement:Ze==="rtl"?"left":"right",overlayClassName:"".concat(pr,"-inline-collapsed-tooltip")}),e.createElement(st,x()({},si,{className:I()(Ar,(xi={},A()(xi,"".concat(pr,"-item-danger"),Yn),A()(xi,"".concat(pr,"-item-only-child"),(Mn?Fe+1:Fe)===1),xi)),title:fn}),Mn,Ht.renderItemChildren(_i)))})},Ht}return c()(Pt,[{key:"renderItemChildren",value:function(bt){var Gt=this.props,ut=Gt.icon,Kt=Gt.children,Ar=Gt.level,ir=Gt.rootPrefixCls;return!ut||Object(jt.b)(Kt)&&Kt.type==="span"?Kt&&bt&&Ar===1&&typeof Kt=="string"?e.createElement("div",{className:"".concat(ir,"-inline-collapsed-noicon")},Kt.charAt(0)):Kt:e.createElement("span",null,Kt)}},{key:"render",value:function(){return e.createElement(at.a.Consumer,null,this.renderItem)}}]),Pt}(e.Component);Rt.isMenuItem=!0;var xt=d("H84U"),Lt=d("uaoM"),gr=d("EXcs"),Br=function(it){r()(Pt,it);var rt=n()(Pt);function Pt(Ht){var bt;return g()(this,Pt),bt=rt.call(this,Ht),bt.renderMenu=function(Gt){var ut=Gt.getPopupContainer,Kt=Gt.getPrefixCls,Ar=Gt.direction,ir=bt.props,pr=ir.prefixCls,tn=ir.className,fn=ir.theme,Mn={horizontal:{motionName:"slide-up"},inline:gr.a,other:{motionName:"zoom-big"}},Yn=Kt("menu",pr),si=I()(tn,"".concat(Yn,"-").concat(fn),A()({},"".concat(Yn,"-inline-collapsed"),bt.getInlineCollapsed()));return e.createElement(Nn.Provider,{value:{inlineCollapsed:bt.getInlineCollapsed()||!1,antdMenuTheme:fn,direction:Ar}},e.createElement(Ii,x()({getPopupContainer:ut},bt.props,{className:si,prefixCls:Yn,direction:Ar,defaultMotions:Mn})))},Object(Lt.a)(!("inlineCollapsed"in Ht&&Ht.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(Lt.a)(!(Ht.siderCollapsed!==void 0&&"inlineCollapsed"in Ht),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),bt}return c()(Pt,[{key:"getInlineCollapsed",value:function(){var bt=this.props,Gt=bt.inlineCollapsed,ut=bt.siderCollapsed;return ut!==void 0?ut:Gt}},{key:"render",value:function(){return e.createElement(xt.a,null,this.renderMenu)}}]),Pt}(e.Component);Br.defaultProps={className:"",theme:"light",focusable:!1};var Et=function(it){r()(Pt,it);var rt=n()(Pt);function Pt(){return g()(this,Pt),rt.apply(this,arguments)}return c()(Pt,[{key:"render",value:function(){var bt=this;return e.createElement(at.a.Consumer,null,function(Gt){return e.createElement(Br,x()({},bt.props,Gt))})}}]),Pt}(e.Component);Et.Divider=zn,Et.Item=Rt,Et.SubMenu=Re,Et.ItemGroup=on},C0SR:function(H,k,d){var O=d("YH21"),x=function(){this._track=[]};x.prototype={constructor:x,recognize:function(c,o,r){return this._doTrack(c,o,r),this._recognize(c)},clear:function(){return this._track.length=0,this},_doTrack:function(c,o,r){var i=c.touches;if(!i)return;for(var n={points:[],touches:[],target:o,event:c},e=0,l=i.length;e<l;e++){var t=i[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 o in b)if(b.hasOwnProperty(o)){var r=b[o](this._track,c);if(r)return r}}};function C(f){var c=f[1][0]-f[0][0],o=f[1][1]-f[0][1];return Math.sqrt(c*c+o*o)}function A(f){return[(f[0][0]+f[1][0])/2,(f[0][1]+f[1][1])/2]}var b={pinch:function(c,o){var r=c.length;if(!r)return;var i=(c[r-1]||{}).points,n=(c[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var e=C(i)/C(n);!isFinite(e)&&(e=1),o.pinchScale=e;var l=A(i);return o.pinchX=l[0],o.pinchY=l[1],{type:"pinch",target:c[0].target,event:o}}}},g=x;H.exports=g},C0tN:function(H,k,d){d("0o9m"),d("8Uz6"),d("Ducp"),d("6/nd")},CBdT:function(H,k,d){var O=d("ProS");d("8waO"),d("AEZ6"),d("YNf1");var x=d("q3GZ");O.registerVisual(x)},CF2D:function(H,k,d){var O=d("ProS");d("vZI5"),d("GeKi");var x=d("6r85"),C=d("TJmX"),A=d("CbHG");O.registerPreprocessor(x),O.registerVisual(C),O.registerLayout(A)},CFYs:function(H,k,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),b=d("lwsE"),g=d.n(b),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),l=d.n(e),t=d("q1tI"),a=d.n(t),s=d("TSYQ"),u=d.n(s),h=d("BGR+"),p=d("V/uB"),m=d.n(p),v=d("NAnI"),y=d.n(v),E=d("J84W"),T=d.n(E),w=d("kbBi"),S=d.n(w),_=d("H84U"),I=d("CWQg"),L=d("uaoM"),N=d("Zss7"),R=d.n(N),D=2,F=.16,M=.05,U=.05,B=.15,j=5,W=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(Rt,xt,Lt){var gr;return Math.round(Rt.h)>=60&&Math.round(Rt.h)<=240?gr=Lt?Math.round(Rt.h)-D*xt:Math.round(Rt.h)+D*xt:gr=Lt?Math.round(Rt.h)+D*xt:Math.round(Rt.h)-D*xt,gr<0?gr+=360:gr>=360&&(gr-=360),gr}function J(Rt,xt,Lt){if(Rt.h===0&&Rt.s===0)return Rt.s;var gr;return Lt?gr=Rt.s-F*xt:xt===W?gr=Rt.s+F:gr=Rt.s+M*xt,gr>1&&(gr=1),Lt&&xt===j&&gr>.1&&(gr=.1),gr<.06&&(gr=.06),Number(gr.toFixed(2))}function q(Rt,xt,Lt){var gr;return Lt?gr=Rt.v+U*xt:gr=Rt.v-B*xt,gr>1&&(gr=1),Number(gr.toFixed(2))}function de(Rt){for(var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Lt=[],gr=R()(Rt),Br=j;Br>0;Br-=1){var Et=gr.toHsv(),it=R()({h:z(Et,Br,!0),s:J(Et,Br,!0),v:q(Et,Br,!0)}).toHexString();Lt.push(it)}Lt.push(gr.toHexString());for(var rt=1;rt<=W;rt+=1){var Pt=gr.toHsv(),Ht=R()({h:z(Pt,rt),s:J(Pt,rt),v:q(Pt,rt)}).toHexString();Lt.push(Ht)}return xt.theme==="dark"?V.map(function(bt){var Gt=bt.index,ut=bt.opacity,Kt=R.a.mix(xt.backgroundColor||"#141414",Lt[Gt],ut*100).toHexString();return Kt}):Lt}var ae={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={},_e={};Object.keys(ae).forEach(function(Rt){ve[Rt]=de(ae[Rt]),ve[Rt].primary=ve[Rt][5],_e[Rt]=de(ae[Rt],{theme:"dark",backgroundColor:"#141414"}),_e[Rt].primary=_e[Rt][5]});var Ie=ve.red,He=ve.volcano,me=ve.gold,ke=ve.orange,se=ve.yellow,te=ve.lime,Ge=ve.green,oe=ve.cyan,Y=ve.blue,G=ve.geekblue,Q=ve.purple,ye=ve.magenta,ce=ve.grey;function Te(Rt){return!Rt||Rt<0?0:Rt>100?100:Rt}function Se(Rt){var xt=Rt.success,Lt=Rt.successPercent,gr=Lt;return xt&&"progress"in xt&&(Object(L.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),gr=xt.progress),xt&&"percent"in xt&&(gr=xt.percent),gr}var le=function(Rt,xt){var Lt={};for(var gr in Rt)Object.prototype.hasOwnProperty.call(Rt,gr)&&xt.indexOf(gr)<0&&(Lt[gr]=Rt[gr]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Br=0,gr=Object.getOwnPropertySymbols(Rt);Br<gr.length;Br++)xt.indexOf(gr[Br])<0&&Object.prototype.propertyIsEnumerable.call(Rt,gr[Br])&&(Lt[gr[Br]]=Rt[gr[Br]]);return Lt},fe=function(xt){var Lt=[];return Object.keys(xt).forEach(function(gr){var Br=parseFloat(gr.replace(/%/g,""));isNaN(Br)||Lt.push({key:Br,value:xt[gr]})}),Lt=Lt.sort(function(gr,Br){return gr.key-Br.key}),Lt.map(function(gr){var Br=gr.key,Et=gr.value;return"".concat(Et," ").concat(Br,"%")}).join(", ")},Ee=function(xt){var Lt=xt.from,gr=Lt===void 0?ae.blue:Lt,Br=xt.to,Et=Br===void 0?ae.blue:Br,it=xt.direction,rt=it===void 0?"to right":it,Pt=le(xt,["from","to","direction"]);if(Object.keys(Pt).length!==0){var Ht=fe(Pt);return{backgroundImage:"linear-gradient(".concat(rt,", ").concat(Ht,")")}}return{backgroundImage:"linear-gradient(".concat(rt,", ").concat(gr,", ").concat(Et,")")}},Ve=function(xt){var Lt=xt.prefixCls,gr=xt.percent,Br=xt.strokeWidth,Et=xt.size,it=xt.strokeColor,rt=xt.strokeLinecap,Pt=xt.children,Ht=xt.trailColor,bt=xt.success,Gt=it&&typeof it!="string"?Ee(it):{background:it},ut=Ht?{backgroundColor:Ht}:void 0,Kt=A()({width:"".concat(Te(gr),"%"),height:Br||(Et==="small"?6:8),borderRadius:rt==="square"?0:""},Gt),Ar=Se(xt),ir={width:"".concat(Te(Ar),"%"),height:Br||(Et==="small"?6:8),borderRadius:rt==="square"?0:"",backgroundColor:bt==null?void 0:bt.strokeColor},pr=Ar!==void 0?t.createElement("div",{className:"".concat(Lt,"-success-bg"),style:ir}):null;return t.createElement(t.Fragment,null,t.createElement("div",{className:"".concat(Lt,"-outer")},t.createElement("div",{className:"".concat(Lt,"-inner"),style:ut},t.createElement("div",{className:"".concat(Lt,"-bg"),style:Kt}),pr)),Pt)},vt=Ve,et={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Oe=function(xt){var Lt=xt.map(function(){return Object(t.useRef)()}),gr=Object(t.useRef)();return Object(t.useEffect)(function(){var Br=Date.now(),Et=!1;Object.keys(Lt).forEach(function(it){var rt=Lt[it].current;if(!rt)return;Et=!0;var Pt=rt.style;Pt.transitionDuration=".3s, .3s, .3s, .06s",gr.current&&Br-gr.current<100&&(Pt.transitionDuration="0s, 0s")}),Et&&(gr.current=Date.now())}),[Lt]};function Tt(){return Tt=Object.assign||function(Rt){for(var xt=1;xt<arguments.length;xt++){var Lt=arguments[xt];for(var gr in Lt)Object.prototype.hasOwnProperty.call(Lt,gr)&&(Rt[gr]=Lt[gr])}return Rt},Tt.apply(this,arguments)}function Je(Rt,xt){return _t(Rt)||It(Rt,xt)||Mt(Rt,xt)||St()}function St(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mt(Rt,xt){if(!Rt)return;if(typeof Rt=="string")return er(Rt,xt);var Lt=Object.prototype.toString.call(Rt).slice(8,-1);if(Lt==="Object"&&Rt.constructor&&(Lt=Rt.constructor.name),Lt==="Map"||Lt==="Set")return Array.from(Rt);if(Lt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Lt))return er(Rt,xt)}function er(Rt,xt){(xt==null||xt>Rt.length)&&(xt=Rt.length);for(var Lt=0,gr=new Array(xt);Lt<xt;Lt++)gr[Lt]=Rt[Lt];return gr}function It(Rt,xt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Rt)))return;var Lt=[],gr=!0,Br=!1,Et=void 0;try{for(var it=Rt[Symbol.iterator](),rt;!(gr=(rt=it.next()).done)&&!(Lt.push(rt.value),xt&&Lt.length===xt);gr=!0);}catch(Pt){Br=!0,Et=Pt}finally{try{!gr&&it.return!=null&&it.return()}finally{if(Br)throw Et}}return Lt}function _t(Rt){if(Array.isArray(Rt))return Rt}function Xe(Rt,xt){if(Rt==null)return{};var Lt=ie(Rt,xt),gr,Br;if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(Rt);for(Br=0;Br<Et.length;Br++){if(gr=Et[Br],xt.indexOf(gr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Rt,gr))continue;Lt[gr]=Rt[gr]}}return Lt}function ie(Rt,xt){if(Rt==null)return{};var Lt={},gr=Object.keys(Rt),Br,Et;for(Et=0;Et<gr.length;Et++){if(Br=gr[Et],xt.indexOf(Br)>=0)continue;Lt[Br]=Rt[Br]}return Lt}var X=function(xt){var Lt=xt.className,gr=xt.percent,Br=xt.prefixCls,Et=xt.strokeColor,it=xt.strokeLinecap,rt=xt.strokeWidth,Pt=xt.style,Ht=xt.trailColor,bt=xt.trailWidth,Gt=xt.transition,ut=Xe(xt,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ut.gapPosition;var Kt=Array.isArray(gr)?gr:[gr],Ar=Array.isArray(Et)?Et:[Et],ir=Oe(Kt),pr=Je(ir,1),tn=pr[0],fn=rt/2,Mn=100-rt/2,Yn="M ".concat(it==="round"?fn:0,",").concat(fn,`
L `).concat(it==="round"?Mn:100,",").concat(fn),si="0 0 100 ".concat(rt),vi=0;return a.a.createElement("svg",Tt({className:u()("".concat(Br,"-line"),Lt),viewBox:si,preserveAspectRatio:"none",style:Pt},ut),a.a.createElement("path",{className:"".concat(Br,"-line-trail"),d:Yn,strokeLinecap:it,stroke:Ht,strokeWidth:bt||rt,fillOpacity:"0"}),Kt.map(function(xi,_i){var Ze={strokeDasharray:"".concat(xi,"px, 100px"),strokeDashoffset:"-".concat(vi,"px"),transition:Gt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},we=Ar[_i]||Ar[Ar.length-1];return vi+=xi,a.a.createElement("path",{key:_i,className:"".concat(Br,"-line-path"),d:Yn,strokeLinecap:it,stroke:we,strokeWidth:rt,fillOpacity:"0",ref:tn[_i],style:Ze})}))};X.defaultProps=et;var Be=X;function Ce(){return Ce=Object.assign||function(Rt){for(var xt=1;xt<arguments.length;xt++){var Lt=arguments[xt];for(var gr in Lt)Object.prototype.hasOwnProperty.call(Lt,gr)&&(Rt[gr]=Lt[gr])}return Rt},Ce.apply(this,arguments)}function Z(Rt,xt){return Ft(Rt)||dt(Rt,xt)||ct(Rt,xt)||nt()}function nt(){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 ct(Rt,xt){if(!Rt)return;if(typeof Rt=="string")return Qe(Rt,xt);var Lt=Object.prototype.toString.call(Rt).slice(8,-1);if(Lt==="Object"&&Rt.constructor&&(Lt=Rt.constructor.name),Lt==="Map"||Lt==="Set")return Array.from(Rt);if(Lt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Lt))return Qe(Rt,xt)}function Qe(Rt,xt){(xt==null||xt>Rt.length)&&(xt=Rt.length);for(var Lt=0,gr=new Array(xt);Lt<xt;Lt++)gr[Lt]=Rt[Lt];return gr}function dt(Rt,xt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Rt)))return;var Lt=[],gr=!0,Br=!1,Et=void 0;try{for(var it=Rt[Symbol.iterator](),rt;!(gr=(rt=it.next()).done)&&!(Lt.push(rt.value),xt&&Lt.length===xt);gr=!0);}catch(Pt){Br=!0,Et=Pt}finally{try{!gr&&it.return!=null&&it.return()}finally{if(Br)throw Et}}return Lt}function Ft(Rt){if(Array.isArray(Rt))return Rt}function Lr(Rt,xt){if(Rt==null)return{};var Lt=Wt(Rt,xt),gr,Br;if(Object.getOwnPropertySymbols){var Et=Object.getOwnPropertySymbols(Rt);for(Br=0;Br<Et.length;Br++){if(gr=Et[Br],xt.indexOf(gr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Rt,gr))continue;Lt[gr]=Rt[gr]}}return Lt}function Wt(Rt,xt){if(Rt==null)return{};var Lt={},gr=Object.keys(Rt),Br,Et;for(Et=0;Et<gr.length;Et++){if(Br=gr[Et],xt.indexOf(Br)>=0)continue;Lt[Br]=Rt[Br]}return Lt}var ar=0;function Ut(Rt){return+Rt.replace("%","")}function kt(Rt){return Array.isArray(Rt)?Rt:[Rt]}function st(Rt,xt,Lt,gr){var Br=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Et=arguments.length>5?arguments[5]:void 0,it=50-gr/2,rt=0,Pt=-it,Ht=0,bt=-2*it;switch(Et){case"left":rt=-it,Pt=0,Ht=2*it,bt=0;break;case"right":rt=it,Pt=0,Ht=-2*it,bt=0;break;case"bottom":Pt=it,bt=2*it;break;default:}var Gt="M 50,50 m ".concat(rt,",").concat(Pt,`
a `).concat(it,",").concat(it," 0 1 1 ").concat(Ht,",").concat(-bt,`
a `).concat(it,",").concat(it," 0 1 1 ").concat(-Ht,",").concat(bt),ut=Math.PI*2*it,Kt={stroke:Lt,strokeDasharray:"".concat(xt/100*(ut-Br),"px ").concat(ut,"px"),strokeDashoffset:"-".concat(Br/2+Rt/100*(ut-Br),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:Gt,pathStyle:Kt}}var Rr=function(xt){var Lt=xt.prefixCls,gr=xt.strokeWidth,Br=xt.trailWidth,Et=xt.gapDegree,it=xt.gapPosition,rt=xt.trailColor,Pt=xt.strokeLinecap,Ht=xt.style,bt=xt.className,Gt=xt.strokeColor,ut=xt.percent,Kt=Lr(xt,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Ar=Object(t.useMemo)(function(){return ar+=1,ar},[]),ir=st(0,100,rt,gr,Et,it),pr=ir.pathString,tn=ir.pathStyle,fn=kt(ut),Mn=kt(Gt),Yn=Mn.find(function(Ze){return Object.prototype.toString.call(Ze)==="[object Object]"}),si=Oe(fn),vi=Z(si,1),xi=vi[0],_i=function(){var we=0;return fn.map(function(Ne,Fe){var Ye=Mn[Fe]||Mn[Mn.length-1],We=Object.prototype.toString.call(Ye)==="[object Object]"?"url(#".concat(Lt,"-gradient-").concat(Ar,")"):"",qe=st(we,Ne,Ye,gr,Et,it);return we+=Ne,a.a.createElement("path",{key:Fe,className:"".concat(Lt,"-circle-path"),d:qe.pathString,stroke:We,strokeLinecap:Pt,strokeWidth:gr,opacity:Ne===0?0:1,fillOpacity:"0",style:qe.pathStyle,ref:xi[Fe]})})};return a.a.createElement("svg",Ce({className:u()("".concat(Lt,"-circle"),bt),viewBox:"0 0 100 100",style:Ht},Kt),Yn&&a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"".concat(Lt,"-gradient-").concat(Ar),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Yn).sort(function(Ze,we){return Ut(Ze)-Ut(we)}).map(function(Ze,we){return a.a.createElement("stop",{key:we,offset:Ze,stopColor:Yn[Ze]})}))),a.a.createElement("path",{className:"".concat(Lt,"-circle-trail"),d:pr,stroke:rt,strokeLinecap:Pt,strokeWidth:Br||gr,fillOpacity:"0",style:tn}),_i().reverse())};Rr.defaultProps=et;var on=Rr,Sn={Line:Be,Circle:on};function zn(Rt){var xt=Rt.percent,Lt=Rt.success,gr=Rt.successPercent,Br=Te(xt),Et=Se({success:Lt,successPercent:gr});return Et?[Te(Et),Te(Br-Te(Et))]:Br}function Ii(Rt){var xt=Rt.success,Lt=Rt.strokeColor,gr=Rt.successPercent,Br=Lt||null,Et=Se({success:xt,successPercent:gr});return Et?[ae.green,Br]:Br}var yn=function(xt){var Lt=xt.prefixCls,gr=xt.width,Br=xt.strokeWidth,Et=xt.trailColor,it=xt.strokeLinecap,rt=xt.gapPosition,Pt=xt.gapDegree,Ht=xt.type,bt=xt.children,Gt=gr||120,ut={width:Gt,height:Gt,fontSize:Gt*.15+6},Kt=Br||6,Ar=rt||Ht==="dashboard"&&"bottom"||"top",ir=function(){return Pt||Pt===0?Pt:Ht==="dashboard"?75:void 0},pr=Ii(xt),tn=Object.prototype.toString.call(pr)==="[object Object]",fn=u()("".concat(Lt,"-inner"),x()({},"".concat(Lt,"-circle-gradient"),tn));return t.createElement("div",{className:fn,style:ut},t.createElement(on,{percent:zn(xt),strokeWidth:Kt,trailWidth:Kt,strokeColor:pr,strokeLinecap:it,trailColor:Et,prefixCls:Lt,gapDegree:ir(),gapPosition:Ar}),bt)},Nn=yn,jt=function(xt){for(var Lt=xt.size,gr=xt.steps,Br=xt.percent,Et=Br===void 0?0:Br,it=xt.strokeWidth,rt=it===void 0?8:it,Pt=xt.strokeColor,Ht=xt.trailColor,bt=xt.prefixCls,Gt=xt.children,ut=Math.floor(gr*(Et/100)),Kt=Lt==="small"?2:14,Ar=[],ir=0;ir<gr;ir+=1)Ar.push(t.createElement("div",{key:ir,className:u()("".concat(bt,"-steps-item"),x()({},"".concat(bt,"-steps-item-active"),ir<=ut-1)),style:{backgroundColor:ir<=ut-1?Pt:Ht,width:Kt,height:rt}}));return t.createElement("div",{className:"".concat(bt,"-steps-outer")},Ar,Gt)},At=jt,Re=function(Rt,xt){var Lt={};for(var gr in Rt)Object.prototype.hasOwnProperty.call(Rt,gr)&&xt.indexOf(gr)<0&&(Lt[gr]=Rt[gr]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Br=0,gr=Object.getOwnPropertySymbols(Rt);Br<gr.length;Br++)xt.indexOf(gr[Br])<0&&Object.prototype.propertyIsEnumerable.call(Rt,gr[Br])&&(Lt[gr[Br]]=Rt[gr[Br]]);return Lt},Ke=Object(I.a)("line","circle","dashboard"),Pe=Object(I.a)("normal","exception","active","success"),at=function(Rt){n()(Lt,Rt);var xt=l()(Lt);function Lt(){var gr;return g()(this,Lt),gr=xt.apply(this,arguments),gr.renderProgress=function(Br){var Et,it=Br.getPrefixCls,rt=Br.direction,Pt=r()(gr),Ht=Pt.props,bt=Ht.prefixCls,Gt=Ht.className,ut=Ht.size,Kt=Ht.type,Ar=Ht.steps,ir=Ht.showInfo,pr=Ht.strokeColor,tn=Re(Ht,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),fn=it("progress",bt),Mn=gr.getProgressStatus(),Yn=gr.renderProcessInfo(fn,Mn);Object(L.a)(!("successPercent"in Ht),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var si;Kt==="line"?si=Ar?t.createElement(At,A()({},gr.props,{strokeColor:typeof pr=="string"?pr:void 0,prefixCls:fn,steps:Ar}),Yn):t.createElement(vt,A()({},gr.props,{prefixCls:fn}),Yn):(Kt==="circle"||Kt==="dashboard")&&(si=t.createElement(Nn,A()({},gr.props,{prefixCls:fn,progressStatus:Mn}),Yn));var vi=u()(fn,(Et={},x()(Et,"".concat(fn,"-").concat(Kt==="dashboard"&&"circle"||Ar&&"steps"||Kt),!0),x()(Et,"".concat(fn,"-status-").concat(Mn),!0),x()(Et,"".concat(fn,"-show-info"),ir),x()(Et,"".concat(fn,"-").concat(ut),ut),x()(Et,"".concat(fn,"-rtl"),rt==="rtl"),Et),Gt);return t.createElement("div",A()({},Object(h.default)(tn,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:vi}),si)},gr}return c()(Lt,[{key:"getPercentNumber",value:function(){var Br=this.props.percent,Et=Br===void 0?0:Br,it=Se(this.props);return parseInt(it!==void 0?it.toString():Et.toString(),10)}},{key:"getProgressStatus",value:function(){var Br=this.props.status;return Pe.indexOf(Br)<0&&this.getPercentNumber()>=100?"success":Br||"normal"}},{key:"renderProcessInfo",value:function(Br,Et){var it=this.props,rt=it.showInfo,Pt=it.format,Ht=it.type,bt=it.percent,Gt=Se(this.props);if(!rt)return null;var ut,Kt=Pt||function(ir){return"".concat(ir,"%")},Ar=Ht==="line";return Pt||Et!=="exception"&&Et!=="success"?ut=Kt(Te(bt),Te(Gt)):Et==="exception"?ut=Ar?t.createElement(S.a,null):t.createElement(m.a,null):Et==="success"&&(ut=Ar?t.createElement(T.a,null):t.createElement(y.a,null)),t.createElement("span",{className:"".concat(Br,"-text"),title:typeof ut=="string"?ut:void 0},ut)}},{key:"render",value:function(){return t.createElement(_.a,null,this.renderProgress)}}]),Lt}(t.Component);at.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var wt=k.a=at},"CMP+":function(H,k,d){var O=d("bYtY"),x=d("hM6l"),C=function(b,g,f,c){x.call(this,b,g,f),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,x);var A=C;H.exports=A},CP8R:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},"CWI+":function(H,k,d){},CbHG:function(H,k,d){var O=d("IwbS"),x=O.subPixelOptimize,C=d("zM3Q"),A=d("OELB"),b=A.parsePercent,g=d("bYtY"),f=g.retrieve2,c=typeof Float32Array!="undefined"?Float32Array:Array,o={seriesType:"candlestick",plan:C(),reset:function(n){var e=n.coordinateSystem,l=n.getData(),t=i(n,l),a=0,s=1,u=["x","y"],h=l.mapDimension(u[a]),p=l.mapDimension(u[s],!0),m=p[0],v=p[1],y=p[2],E=p[3];if(l.setLayout({candleWidth:t,isSimpleBox:t<=1.3}),h==null||p.length<4)return;return{progress:n.pipelineContext.large?w:T};function T(S,_){for(var I;(I=S.next())!=null;){var L=_.get(h,I),N=_.get(m,I),R=_.get(v,I),D=_.get(y,I),F=_.get(E,I),M=Math.min(N,R),U=Math.max(N,R),B=J(M,L),j=J(U,L),W=J(D,L),V=J(F,L),z=[];q(z,j,0),q(z,B,1),z.push(ae(V),ae(j),ae(W),ae(B)),_.setItemLayout(I,{sign:r(_,I,N,R,v),initBaseline:N>R?j[s]:B[s],ends:z,brushRect:de(D,F,L)})}function J(ve,_e){var Ie=[];return Ie[a]=_e,Ie[s]=ve,isNaN(_e)||isNaN(ve)?[NaN,NaN]:e.dataToPoint(Ie)}function q(ve,_e,Ie){var He=_e.slice(),me=_e.slice();He[a]=x(He[a]+t/2,1,!1),me[a]=x(me[a]-t/2,1,!0),Ie?ve.push(He,me):ve.push(me,He)}function de(ve,_e,Ie){var He=J(ve,Ie),me=J(_e,Ie);return He[a]-=t/2,me[a]-=t/2,{x:He[0],y:He[1],width:s?t:me[0]-He[0],height:s?me[1]-He[1]:t}}function ae(ve){return ve[a]=x(ve[a],1),ve}}function w(S,_){for(var I=new c(S.count*4),L=0,N,R=[],D=[],F;(F=S.next())!=null;){var M=_.get(h,F),U=_.get(m,F),B=_.get(v,F),j=_.get(y,F),W=_.get(E,F);if(isNaN(M)||isNaN(j)||isNaN(W)){I[L++]=NaN,L+=3;continue}I[L++]=r(_,F,U,B,v),R[a]=M,R[s]=j,N=e.dataToPoint(R,null,D),I[L++]=N?N[0]:NaN,I[L++]=N?N[1]:NaN,R[s]=W,N=e.dataToPoint(R,null,D),I[L++]=N?N[1]:NaN}_.setLayout("largePoints",I)}}};function r(n,e,l,t,a){var s;return l>t?s=-1:l<t?s=1:s=e>0?n.get(a,e-1)<=t?1:-1:1,s}function i(n,e){var l=n.getBaseAxis(),t,a=l.type==="category"?l.getBandWidth():(t=l.getExtent(),Math.abs(t[1]-t[0])/e.count()),s=b(f(n.get("barMaxWidth"),a),a),u=b(f(n.get("barMinWidth"),1),a),h=n.get("barWidth");return h!=null?b(h,a):Math.max(Math.min(a/2,s),u)}H.exports=o},CiB2:function(H,k,d){"use strict";d.d(k,"a",function(){return O});function O(x){if(x==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(H,k,d){d("5NHt"),d("f3JH")},CrYA:function(H,k,d){var O=d("MFOe"),x=O.Global;H.exports={name:"sessionStorage",read:A,write:b,each:g,remove:f,clearAll:c};function C(){return x.sessionStorage}function A(o){return C().getItem(o)}function b(o,r){return C().setItem(o,r)}function g(o){for(var r=C().length-1;r>=0;r--){var i=C().key(r);o(A(i),i)}}function f(o){return C().removeItem(o)}function c(){return C().clear()}},Csr3:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("4vCz"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},D1WM:function(H,k,d){var O=d("bYtY"),x=d("hM6l"),C=function(b,g,f,c,o){x.call(this,b,g,f),this.type=c||"value",this.axisIndex=o};C.prototype={constructor:C,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},O.inherits(C,x);var A=C;H.exports=A},D5nY:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("4NO4"),A=C.makeInner,b=C.getDataItemValue,g=d("bYtY"),f=g.createHashMap,c=g.each,o=g.map,r=g.isArray,i=g.isString,n=g.isObject,e=g.isTypedArray,l=g.isArrayLike,t=g.extend,a=g.assert,s=d("7G+c"),u=d("k9D9"),h=u.SOURCE_FORMAT_ORIGINAL,p=u.SOURCE_FORMAT_ARRAY_ROWS,m=u.SOURCE_FORMAT_OBJECT_ROWS,v=u.SOURCE_FORMAT_KEYED_COLUMNS,y=u.SOURCE_FORMAT_UNKNOWN,E=u.SOURCE_FORMAT_TYPED_ARRAY,T=u.SERIES_LAYOUT_BY_ROW,w={Must:1,Might:2,Not:3},S=A();function _(z){var J=z.option.source,q=y;if(e(J))q=E;else if(r(J)){J.length===0&&(q=p);for(var de=0,ae=J.length;de<ae;de++){var ve=J[de];if(ve==null)continue;if(r(ve)){q=p;break}else if(n(ve)){q=m;break}}}else if(n(J)){for(var _e in J)if(J.hasOwnProperty(_e)&&l(J[_e])){q=v;break}}else if(J!=null)throw new Error("Invalid data");S(z).sourceFormat=q}function I(z){return S(z).source}function L(z){S(z).datasetMap=f()}function N(z){var J=z.option,q=J.data,de=e(q)?E:h,ae=!1,ve=J.seriesLayoutBy,_e=J.sourceHeader,Ie=J.dimensions,He=j(z);if(He){var me=He.option;q=me.source,de=S(He).sourceFormat,ae=!0,ve=ve||me.seriesLayoutBy,_e==null&&(_e=me.sourceHeader),Ie=Ie||me.dimensions}var ke=R(q,de,ve,_e,Ie);S(z).source=new s({data:q,fromDataset:ae,seriesLayoutBy:ve,sourceFormat:de,dimensionsDefine:ke.dimensionsDefine,startIndex:ke.startIndex,dimensionsDetectCount:ke.dimensionsDetectCount,encodeDefine:J.encode})}function R(z,J,q,de,ae){if(!z)return{dimensionsDefine:D(ae)};var ve,_e;if(J===p)de==="auto"||de==null?F(function(He){He!=null&&He!=="-"&&(i(He)?_e==null&&(_e=1):_e=0)},q,z,10):_e=de?1:0,!ae&&_e===1&&(ae=[],F(function(He,me){ae[me]=He!=null?He:""},q,z)),ve=ae?ae.length:q===T?z.length:z[0]?z[0].length:null;else if(J===m)ae||(ae=M(z));else if(J===v)ae||(ae=[],c(z,function(He,me){ae.push(me)}));else if(J===h){var Ie=b(z[0]);ve=r(Ie)&&Ie.length||1}else J===E;return{startIndex:_e,dimensionsDefine:D(ae),dimensionsDetectCount:ve}}function D(z){if(!z)return;var J=f();return o(z,function(q,de){if(q=t({},n(q)?q:{name:q}),q.name==null)return q;q.name+="",q.displayName==null&&(q.displayName=q.name);var ae=J.get(q.name);return ae?q.name+="-"+ae.count++:J.set(q.name,{count:1}),q})}function F(z,J,q,de){if(de==null&&(de=Infinity),J===T)for(var ae=0;ae<q.length&&ae<de;ae++)z(q[ae]?q[ae][0]:null,ae);else for(var ve=q[0]||[],ae=0;ae<ve.length&&ae<de;ae++)z(ve[ae],ae)}function M(z){for(var J=0,q;J<z.length&&!(q=z[J++]););if(q){var de=[];return c(q,function(ae,ve){de.push(ve)}),de}}function U(z,J,q){var de={},ae=j(J);if(!ae||!z)return de;var ve=[],_e=[],Ie=J.ecModel,He=S(Ie).datasetMap,me=ae.uid+"_"+q.seriesLayoutBy,ke,se;z=z.slice(),c(z,function(Y,G){!n(Y)&&(z[G]={name:Y}),Y.type==="ordinal"&&ke==null&&(ke=G,se=oe(z[G])),de[Y.name]=[]});var te=He.get(me)||He.set(me,{categoryWayDim:se,valueWayDim:0});c(z,function(Y,G){var Q=Y.name,ye=oe(Y);if(ke==null){var ce=te.valueWayDim;Ge(de[Q],ce,ye),Ge(_e,ce,ye),te.valueWayDim+=ye}else if(ke===G)Ge(de[Q],0,ye),Ge(ve,0,ye);else{var ce=te.categoryWayDim;Ge(de[Q],ce,ye),Ge(_e,ce,ye),te.categoryWayDim+=ye}});function Ge(Y,G,Q){for(var ye=0;ye<Q;ye++)Y.push(G+ye)}function oe(Y){var G=Y.dimsDef;return G?G.length:1}return ve.length&&(de.itemName=ve),_e.length&&(de.seriesName=_e),de}function B(z,J,q){var de={},ae=j(z);if(!ae)return de;var ve=J.sourceFormat,_e=J.dimensionsDefine,Ie;(ve===m||ve===v)&&c(_e,function(ke,se){(n(ke)?ke.name:ke)==="name"&&(Ie=se)});var He=function(){for(var ke={},se={},te=[],Ge=0,oe=Math.min(5,q);Ge<oe;Ge++){var Y=V(J.data,ve,J.seriesLayoutBy,_e,J.startIndex,Ge);te.push(Y);var G=Y===w.Not;if(G&&ke.v==null&&Ge!==Ie&&(ke.v=Ge),(ke.n==null||ke.n===ke.v||!G&&te[ke.n]===w.Not)&&(ke.n=Ge),Q(ke)&&te[ke.n]!==w.Not)return ke;G||(Y===w.Might&&se.v==null&&Ge!==Ie&&(se.v=Ge),(se.n==null||se.n===se.v)&&(se.n=Ge))}function Q(ye){return ye.v!=null&&ye.n!=null}return Q(ke)?ke:Q(se)?se:null}();if(He){de.value=He.v;var me=Ie!=null?Ie:He.n;de.itemName=[me],de.seriesName=[me]}return de}function j(z){var J=z.option,q=J.data;if(!q)return z.ecModel.getComponent("dataset",J.datasetIndex||0)}function W(z,J){return V(z.data,z.sourceFormat,z.seriesLayoutBy,z.dimensionsDefine,z.startIndex,J)}function V(z,J,q,de,ae,ve){var _e,Ie=5;if(e(z))return w.Not;var He,me;if(de){var ke=de[ve];n(ke)?(He=ke.name,me=ke.type):i(ke)&&(He=ke)}if(me!=null)return me==="ordinal"?w.Must:w.Not;if(J===p)if(q===T){for(var se=z[ve],te=0;te<(se||[]).length&&te<Ie;te++)if((_e=G(se[ae+te]))!=null)return _e}else for(var te=0;te<z.length&&te<Ie;te++){var Ge=z[ae+te];if(Ge&&(_e=G(Ge[ve]))!=null)return _e}else if(J===m){if(!He)return w.Not;for(var te=0;te<z.length&&te<Ie;te++){var oe=z[te];if(oe&&(_e=G(oe[He]))!=null)return _e}}else if(J===v){if(!He)return w.Not;var se=z[He];if(!se||e(se))return w.Not;for(var te=0;te<se.length&&te<Ie;te++)if((_e=G(se[te]))!=null)return _e}else if(J===h)for(var te=0;te<z.length&&te<Ie;te++){var oe=z[te],Y=b(oe);if(!r(Y))return w.Not;if((_e=G(Y[ve]))!=null)return _e}function G(Q){var ye=i(Q);if(Q!=null&&isFinite(Q)&&Q!=="")return ye?w.Might:w.Not;if(ye&&Q!=="-")return w.Must}return w.Not}k.BE_ORDINAL=w,k.detectSourceFormat=_,k.getSource=I,k.resetSourceDefaulter=L,k.prepareSource=N,k.makeSeriesEncodeForAxisCoordSys=U,k.makeSeriesEncodeForNameBased=B,k.guessOrdinal=W},D9ME:function(H,k,d){var O=d("IwbS"),x=d("fls0"),C=d("bYtY"),A=d("oVpE"),b=A.createSymbol,g=d("QBsz"),f=d("Sj9i");function c(i,n,e){O.Group.call(this),this.add(this.createLine(i,n,e)),this._updateEffectSymbol(i,n)}var o=c.prototype;o.createLine=function(i,n,e){return new x(i,n,e)},o._updateEffectSymbol=function(i,n){var e=i.getItemModel(n),l=e.getModel("effect"),t=l.get("symbolSize"),a=l.get("symbol");C.isArray(t)||(t=[t,t]);var s=l.get("color")||i.getItemVisual(n,"color"),u=this.childAt(1);if(this._symbolType!==a&&(this.remove(u),u=b(a,-.5,-.5,1,1,s),u.z2=100,u.culling=!0,this.add(u)),!u)return;u.setStyle("shadowColor",s),u.setStyle(l.getItemStyle(["color"])),u.attr("scale",t),u.setColor(s),u.attr("scale",t),this._symbolType=a,this._symbolScale=t,this._updateEffectAnimation(i,l,n)},o._updateEffectAnimation=function(i,n,e){var l=this.childAt(1);if(!l)return;var t=this,a=i.getItemLayout(e),s=n.get("period")*1e3,u=n.get("loop"),h=n.get("constantSpeed"),p=C.retrieve(n.get("delay"),function(E){return E/i.count()*s/3}),m=typeof p=="function";if(l.ignore=!0,this.updateAnimationPoints(l,a),h>0&&(s=this.getLineLength(l)/h*1e3),s!==this._period||u!==this._loop){l.stopAnimation();var v=p;m&&(v=p(e)),l.__t>0&&(v=-s*l.__t),l.__t=0;var y=l.animate("",u).when(s,{__t:1}).delay(v).during(function(){t.updateSymbolPosition(l)});u||y.done(function(){t.remove(l)}),y.start()}this._period=s,this._loop=u},o.getLineLength=function(i){return g.dist(i.__p1,i.__cp1)+g.dist(i.__cp1,i.__p2)},o.updateAnimationPoints=function(i,n){i.__p1=n[0],i.__p2=n[1],i.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},o.updateData=function(i,n,e){this.childAt(0).updateData(i,n,e),this._updateEffectSymbol(i,n)},o.updateSymbolPosition=function(i){var n=i.__p1,e=i.__p2,l=i.__cp1,t=i.__t,a=i.position,s=[a[0],a[1]],u=f.quadraticAt,h=f.quadraticDerivativeAt;a[0]=u(n[0],l[0],e[0],t),a[1]=u(n[1],l[1],e[1],t);var p=h(n[0],l[0],e[0],t),m=h(n[1],l[1],e[1],t);if(i.rotation=-Math.atan2(m,p)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(i.__lastT!==void 0&&i.__lastT<i.__t){var v=g.dist(s,a)*1.05;i.attr("scale",[i.scale[0],v]),t===1&&(a[0]=s[0]+(a[0]-s[0])/2,a[1]=s[1]+(a[1]-s[1])/2)}else if(i.__lastT===1){var v=2*g.dist(n,a);i.attr("scale",[i.scale[0],v])}else i.attr("scale",this._symbolScale);i.__lastT=i.__t,i.ignore=!1},o.updateLayout=function(i,n){this.childAt(0).updateLayout(i,n);var e=i.getItemModel(n).getModel("effect");this._updateEffectAnimation(i,e,n)},C.inherits(c,O.Group);var r=c;H.exports=r},DBLp:function(H,k){function d(){}d.prototype={diff:function(g,f,c){c||(c=function(m,v){return m===v}),this.equals=c;var o=this;g=g.slice(),f=f.slice();var r=f.length,i=g.length,n=1,e=r+i,l=[{newPos:-1,components:[]}],t=this.extractCommon(l[0],f,g,0);if(l[0].newPos+1>=r&&t+1>=i){for(var a=[],s=0;s<f.length;s++)a.push(s);return[{indices:a,count:f.length}]}function u(){for(var p=-1*n;p<=n;p+=2){var m,v=l[p-1],y=l[p+1],E=(y?y.newPos:0)-p;v&&(l[p-1]=void 0);var T=v&&v.newPos+1<r,w=y&&0<=E&&E<i;if(!T&&!w){l[p]=void 0;continue}if(!T||w&&v.newPos<y.newPos?(m=x(y),o.pushComponent(m.components,void 0,!0)):(m=v,m.newPos++,o.pushComponent(m.components,!0,void 0)),E=o.extractCommon(m,f,g,p),m.newPos+1>=r&&E+1>=i)return O(o,m.components,f,g);l[p]=m}n++}for(;n<=e;){var h=u();if(h)return h}},pushComponent:function(g,f,c){var o=g[g.length-1];o&&o.added===f&&o.removed===c?g[g.length-1]={count:o.count+1,added:f,removed:c}:g.push({count:1,added:f,removed:c})},extractCommon:function(g,f,c,o){for(var r=f.length,i=c.length,n=g.newPos,e=n-o,l=0;n+1<r&&e+1<i&&this.equals(f[n+1],c[e+1]);)n++,e++,l++;return l&&g.components.push({count:l}),g.newPos=n,e},tokenize:function(g){return g.slice()},join:function(g){return g.slice()}};function O(b,g,f,c){for(var o=0,r=g.length,i=0,n=0;o<r;o++){var e=g[o];if(e.removed){for(var l=[],t=n;t<n+e.count;t++)l.push(t);e.indices=l,n+=e.count}else{for(var l=[],t=i;t<i+e.count;t++)l.push(t);e.indices=l,i+=e.count,e.added||(n+=e.count)}}return g}function x(b){return{newPos:b.newPos,components:b.components.slice(0)}}var C=new d;function A(b,g,f){return C.diff(b,g,f)}H.exports=A},DEFe:function(H,k,d){var O=d("bYtY"),x=d("SgGq"),C=d("Ae+d"),A=d("xSat"),b=A.onIrrelevantElement,g=d("IwbS"),f=d("W4dC"),c=d("iRjW"),o=c.getUID,r=d("DN4a");function i(a){var s=a.getItemStyle(),u=a.get("areaColor");return u!=null&&(s.fill=u),s}function n(a,s,u,h,p){u.off("click"),u.off("mousedown"),s.get("selectedMode")&&(u.on("mousedown",function(){a._mouseDownFlag=!0}),u.on("click",function(m){if(!a._mouseDownFlag)return;a._mouseDownFlag=!1;for(var v=m.target;!v.__regions;)v=v.parent;if(!v)return;var y={type:(s.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:O.map(v.__regions,function(E){return{name:E.name,from:p.uid}})};y[s.mainType+"Id"]=s.id,h.dispatchAction(y),e(s,u)}))}function e(a,s){s.eachChild(function(u){O.each(u.__regions,function(h){u.trigger(a.isSelected(h.name)?"emphasis":"normal")})})}function l(a,s){var u=new g.Group;this.uid=o("ec_map_draw"),this._controller=new x(a.getZr()),this._controllerHost={target:s?u:null},this.group=u,this._updateGroup=s,this._mouseDownFlag,this._mapName,this._initialized,u.add(this._regionsGroup=new g.Group),u.add(this._backgroundGroup=new g.Group)}l.prototype={constructor:l,draw:function(a,s,u,h,p){var m=a.mainType==="geo",v=a.getData&&a.getData();m&&s.eachComponent({mainType:"series",subType:"map"},function(j){!v&&j.getHostGeoModel()===a&&(v=j.getData())});var y=a.coordinateSystem;this._updateBackground(y);var E=this._regionsGroup,T=this.group,w=y.getTransformInfo(),S=!E.childAt(0)||p,_;if(S)T.transform=w.roamTransform,T.decomposeTransform(),T.dirty();else{var I=new r;I.transform=w.roamTransform,I.decomposeTransform();var L={scale:I.scale,position:I.position};_=I.scale,g.updateProps(T,L,a)}var N=w.rawScale,R=w.rawPosition;E.removeAll();var D=["itemStyle"],F=["emphasis","itemStyle"],M=["label"],U=["emphasis","label"],B=O.createHashMap();O.each(y.regions,function(j){var W=B.get(j.name)||B.set(j.name,new g.Group),V=new g.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});W.add(V);var z=a.getRegionModel(j.name)||a,J=z.getModel(D),q=z.getModel(F),de=i(J),ae=i(q),ve=z.getModel(M),_e=z.getModel(U),Ie;if(v){Ie=v.indexOfName(j.name);var He=v.getItemVisual(Ie,"color",!0);He&&(de.fill=He)}var me=function(ce){return[ce[0]*N[0]+R[0],ce[1]*N[1]+R[1]]};O.each(j.geometries,function(ce){if(ce.type!=="polygon")return;for(var Te=[],Se=0;Se<ce.exterior.length;++Se)Te.push(me(ce.exterior[Se]));V.shape.paths.push(new g.Polygon({segmentIgnoreThreshold:1,shape:{points:Te}}));for(var Se=0;Se<(ce.interiors?ce.interiors.length:0);++Se){for(var le=ce.interiors[Se],Te=[],fe=0;fe<le.length;++fe)Te.push(me(le[fe]));V.shape.paths.push(new g.Polygon({segmentIgnoreThreshold:1,shape:{points:Te}}))}}),V.setStyle(de),V.style.strokeNoScale=!0,V.culling=!0;var ke=ve.get("show"),se=_e.get("show"),te=v&&isNaN(v.get(v.mapDimension("value"),Ie)),Ge=v&&v.getItemLayout(Ie);if(m||te&&(ke||se)||Ge&&Ge.showLabel){var oe=m?j.name:Ie,Y;(!v||Ie>=0)&&(Y=a);var G=new g.Text({position:me(j.center.slice()),scale:[1/T.scale[0],1/T.scale[1]],z2:10,silent:!0});if(g.setLabelStyle(G.style,G.hoverStyle={},ve,_e,{labelFetcher:Y,labelDataIndex:oe,defaultText:j.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!S){var Q=[1/_[0],1/_[1]];g.updateProps(G,{scale:Q},a)}W.add(G)}if(v)v.setItemGraphicEl(Ie,W);else{var z=a.getRegionModel(j.name);V.eventData={componentType:"geo",componentIndex:a.componentIndex,geoIndex:a.componentIndex,name:j.name,region:z&&z.option||{}}}var ye=W.__regions||(W.__regions=[]);ye.push(j),W.highDownSilentOnTouch=!!a.get("selectedMode"),g.setHoverStyle(W,ae),E.add(W)}),this._updateController(a,s,u),n(this,a,E,u,h),e(a,E)},remove:function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&f.removeGraphic(this._mapName,this.uid),this._mapName=null,this._controllerHost={}},_updateBackground:function(a){var s=a.map;this._mapName!==s&&O.each(f.makeGraphic(s,this.uid),function(u){this._backgroundGroup.add(u)},this),this._mapName=s},_updateController:function(a,s,u){var h=a.coordinateSystem,p=this._controller,m=this._controllerHost;m.zoomLimit=a.get("scaleLimit"),m.zoom=h.getZoom(),p.enable(a.get("roam")||!1);var v=a.mainType;function y(){var E={type:"geoRoam",componentType:v};return E[v+"Id"]=a.id,E}p.off("pan").on("pan",function(E){this._mouseDownFlag=!1,C.updateViewOnPan(m,E.dx,E.dy),u.dispatchAction(O.extend(y(),{dx:E.dx,dy:E.dy}))},this),p.off("zoom").on("zoom",function(E){if(this._mouseDownFlag=!1,C.updateViewOnZoom(m,E.scale,E.originX,E.originY),u.dispatchAction(O.extend(y(),{zoom:E.scale,originX:E.originX,originY:E.originY})),this._updateGroup){var T=this.group.scale;this._regionsGroup.traverse(function(w){w.type==="text"&&w.attr("scale",[1/T[0],1/T[1]])})}},this),p.setPointerChecker(function(E,T,w){return h.getViewRectAfterRoam().contain(T,w)&&!b(E,u,a)})}};var t=l;H.exports=t},DFOY:function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),b=d("lwsE"),g=d.n(b),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),l=d.n(e),t=d("q1tI"),a=d.n(t),s=d("VTBJ"),u=d("1OyB"),h=d("vuIU"),p=d("JX7q"),m=d("Ji7U"),v=d("LK+K"),y=d("i8i4"),E=d.n(y),T=d("l4aY"),w=d("m+aA"),S=d("c+Xe"),_=d("zT1h"),I=d("QC+M"),L=d("TSYQ"),N=d.n(L);function R(Hr,Cn,kr){return kr?Hr[0]===Cn[0]:Hr[0]===Cn[0]&&Hr[1]===Cn[1]}function D(Hr,Cn,kr){var mr=Hr[Cn]||{};return Object(s.a)(Object(s.a)({},mr),kr)}function F(Hr,Cn,kr,mr){for(var Cr=kr.points,Nt=Object.keys(Hr),wr=0;wr<Nt.length;wr+=1){var Gr=Nt[wr];if(R(Hr[Gr].points,Cr,mr))return"".concat(Cn,"-placement-").concat(Gr)}return""}var M=d("Ff2n"),U=d("xEkU"),B=d.n(U),j=d("9mu1"),W=d("rePB"),V=d("U8pU"),z=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function J(Hr,Cn){var kr={};return kr[Hr.toLowerCase()]=Cn.toLowerCase(),kr["Webkit".concat(Hr)]="webkit".concat(Cn),kr["Moz".concat(Hr)]="moz".concat(Cn),kr["ms".concat(Hr)]="MS".concat(Cn),kr["O".concat(Hr)]="o".concat(Cn.toLowerCase()),kr}function q(Hr,Cn){var kr={animationend:J("Animation","AnimationEnd"),transitionend:J("Transition","TransitionEnd")};return Hr&&("AnimationEvent"in Cn||delete kr.animationend.animation,"TransitionEvent"in Cn||delete kr.transitionend.transition),kr}var de=q(z,typeof window!="undefined"?window:{}),ae={};if(z){var ve=document.createElement("div");ae=ve.style}var _e={};function Ie(Hr){if(_e[Hr])return _e[Hr];var Cn=de[Hr];if(Cn)for(var kr=Object.keys(Cn),mr=kr.length,Cr=0;Cr<mr;Cr+=1){var Nt=kr[Cr];if(Object.prototype.hasOwnProperty.call(Cn,Nt)&&Nt in ae)return _e[Hr]=Cn[Nt],_e[Hr]}return""}var He=Ie("animationend"),me=Ie("transitionend"),ke=!!(He&&me);function se(Hr,Cn){if(!Hr)return null;if(Object(V.a)(Hr)==="object"){var kr=Cn.replace(/-\w/g,function(mr){return mr[1].toUpperCase()});return Hr[kr]}return"".concat(Hr,"-").concat(Cn)}var te="none",Ge="appear",oe="enter",Y="leave";function G(Hr){var Cn=Hr,kr=!!t.forwardRef;Object(V.a)(Hr)==="object"&&(Cn=Hr.transitionSupport,kr="forwardRef"in Hr?Hr.forwardRef:kr);function mr(Nt){return!!(Nt.motionName&&Cn)}var Cr=function(Nt){Object(m.a)(Gr,Nt);var wr=Object(v.a)(Gr);function Gr(){var Kr;return Object(u.a)(this,Gr),Kr=wr.apply(this,arguments),Kr.$cacheEle=null,Kr.node=null,Kr.raf=null,Kr.destroyed=!1,Kr.deadlineId=null,Kr.state={status:te,statusActive:!1,newStatus:!1,statusStyle:null},Kr.onDomUpdate=function(){var qr=Kr.state,oi=qr.status,Gn=qr.newStatus,Ti=Kr.props,hn=Ti.onAppearStart,_r=Ti.onEnterStart,En=Ti.onLeaveStart,Fn=Ti.onAppearActive,Vn=Ti.onEnterActive,qn=Ti.onLeaveActive,Oi=Ti.motionAppear,Ni=Ti.motionEnter,Mi=Ti.motionLeave;if(!mr(Kr.props))return;var Ji=Kr.getElement();Kr.$cacheEle!==Ji&&(Kr.removeEventListener(Kr.$cacheEle),Kr.addEventListener(Ji),Kr.$cacheEle=Ji),Gn&&oi===Ge&&Oi?Kr.updateStatus(hn,null,null,function(){Kr.updateActiveStatus(Fn,Ge)}):Gn&&oi===oe&&Ni?Kr.updateStatus(_r,null,null,function(){Kr.updateActiveStatus(Vn,oe)}):Gn&&oi===Y&&Mi&&Kr.updateStatus(En,null,null,function(){Kr.updateActiveStatus(qn,Y)})},Kr.onMotionEnd=function(qr){if(qr&&!qr.deadline&&qr.target!==Kr.getElement())return;var oi=Kr.state,Gn=oi.status,Ti=oi.statusActive,hn=Kr.props,_r=hn.onAppearEnd,En=hn.onEnterEnd,Fn=hn.onLeaveEnd;Gn===Ge&&Ti?Kr.updateStatus(_r,{status:te},qr):Gn===oe&&Ti?Kr.updateStatus(En,{status:te},qr):Gn===Y&&Ti&&Kr.updateStatus(Fn,{status:te},qr)},Kr.setNodeRef=function(qr){var oi=Kr.props.internalRef;Kr.node=qr,Object(S.b)(oi,qr)},Kr.getElement=function(){try{return Object(w.a)(Kr.node||Object(p.a)(Kr))}catch(qr){return Kr.$cacheEle}},Kr.addEventListener=function(qr){if(!qr)return;qr.addEventListener(me,Kr.onMotionEnd),qr.addEventListener(He,Kr.onMotionEnd)},Kr.removeEventListener=function(qr){if(!qr)return;qr.removeEventListener(me,Kr.onMotionEnd),qr.removeEventListener(He,Kr.onMotionEnd)},Kr.updateStatus=function(qr,oi,Gn,Ti){var hn=qr?qr(Kr.getElement(),Gn):null;if(hn===!1||Kr.destroyed)return;var _r;Ti&&(_r=function(){Kr.nextFrame(Ti)}),Kr.setState(Object(s.a)({statusStyle:Object(V.a)(hn)==="object"?hn:null,newStatus:!1},oi),_r)},Kr.updateActiveStatus=function(qr,oi){Kr.nextFrame(function(){var Gn=Kr.state.status;if(Gn!==oi)return;var Ti=Kr.props.motionDeadline;Kr.updateStatus(qr,{statusActive:!0}),Ti>0&&(Kr.deadlineId=setTimeout(function(){Kr.onMotionEnd({deadline:!0})},Ti))})},Kr.nextFrame=function(qr){Kr.cancelNextFrame(),Kr.raf=B()(qr)},Kr.cancelNextFrame=function(){Kr.raf&&(B.a.cancel(Kr.raf),Kr.raf=null)},Kr}return Object(h.a)(Gr,[{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 qr,oi=this.state,Gn=oi.status,Ti=oi.statusActive,hn=oi.statusStyle,_r=this.props,En=_r.children,Fn=_r.motionName,Vn=_r.visible,qn=_r.removeOnLeave,Oi=_r.leavedClassName,Ni=_r.eventProps;return En?Gn===te||!mr(this.props)?Vn?En(Object(s.a)({},Ni),this.setNodeRef):qn?null:En(Object(s.a)(Object(s.a)({},Ni),{},{className:Oi}),this.setNodeRef):En(Object(s.a)(Object(s.a)({},Ni),{},{className:N()(se(Fn,Gn),(qr={},Object(W.a)(qr,se(Fn,"".concat(Gn,"-active")),Ti),Object(W.a)(qr,Fn,typeof Fn=="string"),qr)),style:hn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(qr,oi){var Gn=oi.prevProps,Ti=oi.status;if(!mr(qr))return{};var hn=qr.visible,_r=qr.motionAppear,En=qr.motionEnter,Fn=qr.motionLeave,Vn=qr.motionLeaveImmediately,qn={prevProps:qr};return(Ti===Ge&&!_r||Ti===oe&&!En||Ti===Y&&!Fn)&&(qn.status=te,qn.statusActive=!1,qn.newStatus=!1),!Gn&&hn&&_r&&(qn.status=Ge,qn.statusActive=!1,qn.newStatus=!0),Gn&&!Gn.visible&&hn&&En&&(qn.status=oe,qn.statusActive=!1,qn.newStatus=!0),(Gn&&Gn.visible&&!hn&&Fn||!Gn&&Vn&&!hn&&Fn)&&(qn.status=Y,qn.statusActive=!1,qn.newStatus=!0),qn}}]),Gr}(t.Component);return Cr.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},kr?t.forwardRef(function(Nt,wr){return t.createElement(Cr,Object.assign({internalRef:wr},Nt))}):Cr}var Q=G(ke),ye="add",ce="keep",Te="remove",Se="removed";function le(Hr){var Cn;return Hr&&Object(V.a)(Hr)==="object"&&"key"in Hr?Cn=Hr:Cn={key:Hr},Object(s.a)(Object(s.a)({},Cn),{},{key:String(Cn.key)})}function fe(){var Hr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Hr.map(le)}function Ee(){var Hr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],kr=[],mr=0,Cr=Cn.length,Nt=fe(Hr),wr=fe(Cn);Nt.forEach(function(qr){for(var oi=!1,Gn=mr;Gn<Cr;Gn+=1){var Ti=wr[Gn];if(Ti.key===qr.key){mr<Gn&&(kr=kr.concat(wr.slice(mr,Gn).map(function(hn){return Object(s.a)(Object(s.a)({},hn),{},{status:ye})})),mr=Gn),kr.push(Object(s.a)(Object(s.a)({},Ti),{},{status:ce})),mr+=1,oi=!0;break}}oi||kr.push(Object(s.a)(Object(s.a)({},qr),{},{status:Te}))}),mr<Cr&&(kr=kr.concat(wr.slice(mr).map(function(qr){return Object(s.a)(Object(s.a)({},qr),{},{status:ye})})));var Gr={};kr.forEach(function(qr){var oi=qr.key;Gr[oi]=(Gr[oi]||0)+1});var Kr=Object.keys(Gr).filter(function(qr){return Gr[qr]>1});return Kr.forEach(function(qr){kr=kr.filter(function(oi){var Gn=oi.key,Ti=oi.status;return Gn!==qr||Ti!==Te}),kr.forEach(function(oi){oi.key===qr&&(oi.status=ce)})}),kr}var Ve=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function vt(Hr){var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q,kr=function(mr){Object(m.a)(Nt,mr);var Cr=Object(v.a)(Nt);function Nt(){var wr;return Object(u.a)(this,Nt),wr=Cr.apply(this,arguments),wr.state={keyEntities:[]},wr.removeKey=function(Gr){wr.setState(function(Kr){var qr=Kr.keyEntities;return{keyEntities:qr.map(function(oi){return oi.key!==Gr?oi:Object(s.a)(Object(s.a)({},oi),{},{status:Se})})}})},wr}return Object(h.a)(Nt,[{key:"render",value:function(){var Gr=this,Kr=this.state.keyEntities,qr=this.props,oi=qr.component,Gn=qr.children,Ti=Object(M.a)(qr,["component","children"]),hn=oi||t.Fragment,_r={};return Ve.forEach(function(En){_r[En]=Ti[En],delete Ti[En]}),delete Ti.keys,t.createElement(hn,Object.assign({},Ti),Kr.map(function(En){var Fn=En.status,Vn=Object(M.a)(En,["status"]),qn=Fn===ye||Fn===ce;return t.createElement(Cn,Object.assign({},_r,{key:Vn.key,visible:qn,eventProps:Vn,onLeaveEnd:function(){_r.onLeaveEnd&&_r.onLeaveEnd.apply(_r,arguments),Gr.removeKey(Vn.key)}}),Gn)}))}}],[{key:"getDerivedStateFromProps",value:function(Gr,Kr){var qr=Gr.keys,oi=Kr.keyEntities,Gn=fe(qr);if(!Hr)return{keyEntities:Gn.map(function(_r){return Object(s.a)(Object(s.a)({},_r),{},{status:ce})})};var Ti=Ee(oi,Gn),hn=oi.length;return{keyEntities:Ti.filter(function(_r){for(var En=null,Fn=0;Fn<hn;Fn+=1){var Vn=oi[Fn];if(Vn.key===_r.key){En=Vn;break}}return!(En&&En.status===Se&&_r.status===Te)})}}}]),Nt}(t.Component);return kr.defaultProps={component:"div"},kr}var et=vt(ke),Oe=Q,Tt=function(Cn,kr){var mr=Cn.prefixCls,Cr=Cn.className,Nt=Cn.style,wr=Cn.children,Gr=Cn.onMouseEnter,Kr=Cn.onMouseLeave,qr=Cn.onMouseDown,oi=Cn.onTouchStart,Gn=wr;return t.Children.count(wr)>1&&(Gn=t.createElement("div",{className:"".concat(mr,"-content")},wr)),t.createElement("div",{ref:kr,className:Cr,onMouseEnter:Gr,onMouseLeave:Kr,onMouseDown:qr,onTouchStart:oi,style:Nt},Gn)},Je=t.forwardRef(Tt);Je.displayName="PopupInner";var St=Je;function Mt(Hr){var Cn=Hr.prefixCls,kr=Hr.motion,mr=Hr.animation,Cr=Hr.transitionName;return kr||(mr?{motionName:"".concat(Cn,"-").concat(mr)}:Cr?{motionName:Cr}:null)}function er(Hr){return Hr&&Hr.motionName}var It=function(Hr){Object(m.a)(kr,Hr);var Cn=Object(v.a)(kr);function kr(){var mr;return Object(u.a)(this,kr),mr=Cn.apply(this,arguments),mr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},mr.popupRef=a.a.createRef(),mr.alignRef=a.a.createRef(),mr.nextFrameState=null,mr.nextFrameId=null,mr.onAlign=function(Cr,Nt){var wr=mr.state.status,Gr=mr.props,Kr=Gr.getClassNameFromAlign,qr=Gr.onAlign,oi=Kr(Nt);wr==="align"?mr.setState({alignClassName:oi,status:"aligned"},function(){mr.alignRef.current.forceAlign()}):wr==="aligned"?(mr.setState({alignClassName:oi,status:"afterAlign"}),qr(Cr,Nt)):mr.setState({alignClassName:oi})},mr.onMotionEnd=function(){var Cr=mr.props.visible;mr.setState({status:Cr?"AfterMotion":"stable",inMotion:!1})},mr.setStateOnNextFrame=function(Cr){mr.cancelFrameState(),mr.nextFrameState=Object(s.a)(Object(s.a)({},mr.nextFrameState),Cr),mr.nextFrameId=B()(function(){var Nt=Object(s.a)({},mr.nextFrameState);mr.nextFrameState=null,mr.setState(Nt)})},mr.getMotion=function(){return Object(s.a)({},Mt(mr.props))},mr.getAlignTarget=function(){var Cr=mr.props,Nt=Cr.point,wr=Cr.getRootDomNode;return Nt||wr},mr.cancelFrameState=function(){B.a.cancel(mr.nextFrameId)},mr.renderPopupElement=function(){var Cr=mr.state,Nt=Cr.status,wr=Cr.targetHeight,Gr=Cr.targetWidth,Kr=Cr.alignClassName,qr=mr.props,oi=qr.prefixCls,Gn=qr.className,Ti=qr.style,hn=qr.stretch,_r=qr.visible,En=qr.align,Fn=qr.destroyPopupOnHide,Vn=qr.onMouseEnter,qn=qr.onMouseLeave,Oi=qr.onMouseDown,Ni=qr.onTouchStart,Mi=qr.children,Ji=N()(oi,Gn,Kr),ma="".concat(oi,"-hidden"),la={};hn&&(hn.indexOf("height")!==-1?la.height=wr:hn.indexOf("minHeight")!==-1&&(la.minHeight=wr),hn.indexOf("width")!==-1?la.width=Gr:hn.indexOf("minWidth")!==-1&&(la.minWidth=Gr));var qa=Object(s.a)(Object(s.a)(Object(s.a)(Object(s.a)({},la),mr.getZIndexStyle()),Ti),{},{opacity:Nt==="stable"||!_r?void 0:0,pointerEvents:Nt==="stable"||!_r?void 0:"none"}),bi=mr.getMotion(),xn=_r;_r&&Nt!=="beforeMotion"&&Nt!=="motion"&&Nt!=="stable"&&(bi.motionAppear=!1,bi.motionEnter=!1,bi.motionLeave=!1),(Nt==="afterAlign"||Nt==="beforeMotion")&&(xn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Yi){var ca=bi==null?void 0:bi[Yi];bi[Yi]=function(){for(var Hi=arguments.length,Ia=new Array(Hi),Da=0;Da<Hi;Da++)Ia[Da]=arguments[Da];ca==null||ca.apply(void 0,Ia),mr.setState({inMotion:!0})}});var zi=!_r||Nt!=="align"&&Nt!=="aligned"&&Nt!=="stable",oa=!0;return Nt==="stable"&&(oa=_r),Fn&&!oa?null:a.a.createElement(Oe,Object.assign({visible:xn},bi,{removeOnLeave:!1,onEnterEnd:mr.onMotionEnd,onLeaveEnd:mr.onMotionEnd,leavedClassName:ma}),function(Yi,ca){var Hi=Yi.style,Ia=Yi.className;return a.a.createElement(j.a,{target:mr.getAlignTarget(),key:"popup",ref:mr.alignRef,monitorWindowResize:!0,disabled:zi,align:En,onAlign:mr.onAlign},a.a.createElement(St,{prefixCls:oi,className:N()(Ji,Ia),ref:Object(S.a)(ca,mr.popupRef),onMouseEnter:Vn,onMouseLeave:qn,onMouseDown:Oi,onTouchStart:Ni,style:Object(s.a)(Object(s.a)({},qa),Hi)},Mi))})},mr.renderMaskElement=function(){var Cr=mr.props,Nt=Cr.mask,wr=Cr.maskMotion,Gr=Cr.maskTransitionName,Kr=Cr.maskAnimation,qr=Cr.prefixCls,oi=Cr.visible;if(!Nt)return null;var Gn={};return wr&&wr.motionName&&(Gn=Object(s.a)({motionAppear:!0},Mt({motion:wr,prefixCls:qr,transitionName:Gr,animation:Kr}))),a.a.createElement(Oe,Object.assign({},Gn,{visible:oi,removeOnLeave:!0}),function(Ti){var hn=Ti.className;return a.a.createElement("div",{style:mr.getZIndexStyle(),key:"mask",className:N()("".concat(qr,"-mask"),hn)})})},mr}return Object(h.a)(kr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Cr=this.state.status,Nt=this.props,wr=Nt.getRootDomNode,Gr=Nt.visible,Kr=Nt.stretch;if(this.cancelFrameState(),Gr&&Cr!=="stable")switch(Cr){case null:{this.setStateOnNextFrame({status:Kr?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:er(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var qr=["measure","align",null,"beforeMotion","motion"],oi=qr.indexOf(Cr),Gn=qr[oi+1];oi!==-1&&Gn&&this.setStateOnNextFrame({status:Gn})}}if(Cr==="measure"){var Ti=wr();Ti&&this.setStateOnNextFrame({targetHeight:Ti.offsetHeight,targetWidth:Ti.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Cr=this.props.zIndex;return{zIndex:Cr}}},{key:"render",value:function(){return a.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Cr,Nt){var wr=Cr.visible,Gr=Object(M.a)(Cr,["visible"]),Kr=Nt.prevVisible,qr=Nt.status,oi=Nt.inMotion,Gn={prevVisible:wr,status:qr},Ti=Mt(Gr);return Kr===null&&wr===!1?(Gn.status="stable",Gn.inMotion=!1):wr!==Kr&&(Gn.inMotion=!1,wr||er(Ti)&&oi?Gn.status=null:Gn.status="stable",wr&&(Gn.alignClassName=null)),Gn}}]),kr}(t.Component),_t=It,Xe=t.createContext(null),ie=Xe;function X(){}function Be(){return""}function Ce(){return window.document}var Z=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function nt(Hr){var Cn=function(kr){Object(m.a)(Cr,kr);var mr=Object(v.a)(Cr);function Cr(Nt){var wr;Object(u.a)(this,Cr),wr=mr.call(this,Nt),wr.popupRef=a.a.createRef(),wr.triggerRef=a.a.createRef(),wr.onMouseEnter=function(Kr){var qr=wr.props.mouseEnterDelay;wr.fireEvents("onMouseEnter",Kr),wr.delaySetPopupVisible(!0,qr,qr?null:Kr)},wr.onMouseMove=function(Kr){wr.fireEvents("onMouseMove",Kr),wr.setPoint(Kr)},wr.onMouseLeave=function(Kr){wr.fireEvents("onMouseLeave",Kr),wr.delaySetPopupVisible(!1,wr.props.mouseLeaveDelay)},wr.onPopupMouseEnter=function(){wr.clearDelayTimer()},wr.onPopupMouseLeave=function(Kr){if(Kr.relatedTarget&&!Kr.relatedTarget.setTimeout&&wr.popupRef.current&&wr.popupRef.current.popupRef.current&&Object(T.a)(wr.popupRef.current.popupRef.current,Kr.relatedTarget))return;wr.delaySetPopupVisible(!1,wr.props.mouseLeaveDelay)},wr.onFocus=function(Kr){wr.fireEvents("onFocus",Kr),wr.clearDelayTimer(),wr.isFocusToShow()&&(wr.focusTime=Date.now(),wr.delaySetPopupVisible(!0,wr.props.focusDelay))},wr.onMouseDown=function(Kr){wr.fireEvents("onMouseDown",Kr),wr.preClickTime=Date.now()},wr.onTouchStart=function(Kr){wr.fireEvents("onTouchStart",Kr),wr.preTouchTime=Date.now()},wr.onBlur=function(Kr){wr.fireEvents("onBlur",Kr),wr.clearDelayTimer(),wr.isBlurToHide()&&wr.delaySetPopupVisible(!1,wr.props.blurDelay)},wr.onContextMenu=function(Kr){Kr.preventDefault(),wr.fireEvents("onContextMenu",Kr),wr.setPopupVisible(!0,Kr)},wr.onContextMenuClose=function(){wr.isContextMenuToShow()&&wr.close()},wr.onClick=function(Kr){if(wr.fireEvents("onClick",Kr),wr.focusTime){var qr;if(wr.preClickTime&&wr.preTouchTime?qr=Math.min(wr.preClickTime,wr.preTouchTime):wr.preClickTime?qr=wr.preClickTime:wr.preTouchTime&&(qr=wr.preTouchTime),Math.abs(qr-wr.focusTime)<20)return;wr.focusTime=0}wr.preClickTime=0,wr.preTouchTime=0,wr.isClickToShow()&&(wr.isClickToHide()||wr.isBlurToHide())&&Kr&&Kr.preventDefault&&Kr.preventDefault();var oi=!wr.state.popupVisible;(wr.isClickToHide()&&!oi||oi&&wr.isClickToShow())&&wr.setPopupVisible(!wr.state.popupVisible,Kr)},wr.onPopupMouseDown=function(){if(wr.hasPopupMouseDown=!0,clearTimeout(wr.mouseDownTimeout),wr.mouseDownTimeout=window.setTimeout(function(){wr.hasPopupMouseDown=!1},0),wr.context){var Kr;(Kr=wr.context).onPopupMouseDown.apply(Kr,arguments)}},wr.onDocumentClick=function(Kr){if(wr.props.mask&&!wr.props.maskClosable)return;var qr=Kr.target,oi=wr.getRootDomNode(),Gn=wr.getPopupDomNode();!Object(T.a)(oi,qr)&&!Object(T.a)(Gn,qr)&&!wr.hasPopupMouseDown&&wr.close()},wr.getRootDomNode=function(){var Kr=wr.props.getTriggerDOMNode;if(Kr)return Kr(wr.triggerRef.current);try{var qr=Object(w.a)(wr.triggerRef.current);if(qr)return qr}catch(oi){}return E.a.findDOMNode(Object(p.a)(wr))},wr.getPopupClassNameFromAlign=function(Kr){var qr=[],oi=wr.props,Gn=oi.popupPlacement,Ti=oi.builtinPlacements,hn=oi.prefixCls,_r=oi.alignPoint,En=oi.getPopupClassNameFromAlign;return Gn&&Ti&&qr.push(F(Ti,hn,Kr,_r)),En&&qr.push(En(Kr)),qr.join(" ")},wr.getComponent=function(){var Kr=wr.props,qr=Kr.prefixCls,oi=Kr.destroyPopupOnHide,Gn=Kr.popupClassName,Ti=Kr.onPopupAlign,hn=Kr.popupMotion,_r=Kr.popupAnimation,En=Kr.popupTransitionName,Fn=Kr.popupStyle,Vn=Kr.mask,qn=Kr.maskAnimation,Oi=Kr.maskTransitionName,Ni=Kr.maskMotion,Mi=Kr.zIndex,Ji=Kr.popup,ma=Kr.stretch,la=Kr.alignPoint,qa=wr.state,bi=qa.popupVisible,xn=qa.point,zi=wr.getPopupAlign(),oa={};return wr.isMouseEnterToShow()&&(oa.onMouseEnter=wr.onPopupMouseEnter),wr.isMouseLeaveToHide()&&(oa.onMouseLeave=wr.onPopupMouseLeave),oa.onMouseDown=wr.onPopupMouseDown,oa.onTouchStart=wr.onPopupMouseDown,a.a.createElement(_t,Object.assign({prefixCls:qr,destroyPopupOnHide:oi,visible:bi,point:la&&xn,className:Gn,align:zi,onAlign:Ti,animation:_r,getClassNameFromAlign:wr.getPopupClassNameFromAlign},oa,{stretch:ma,getRootDomNode:wr.getRootDomNode,style:Fn,mask:Vn,zIndex:Mi,transitionName:En,maskAnimation:qn,maskTransitionName:Oi,maskMotion:Ni,ref:wr.popupRef,motion:hn}),typeof Ji=="function"?Ji():Ji)},wr.getContainer=function(){var Kr=Object(p.a)(wr),qr=Kr.props,oi=document.createElement("div");oi.style.position="absolute",oi.style.top="0",oi.style.left="0",oi.style.width="100%";var Gn=qr.getPopupContainer?qr.getPopupContainer(wr.getRootDomNode()):qr.getDocument().body;return Gn.appendChild(oi),oi},wr.setPoint=function(Kr){var qr=wr.props.alignPoint;if(!qr||!Kr)return;wr.setState({point:{pageX:Kr.pageX,pageY:Kr.pageY}})},wr.handlePortalUpdate=function(){wr.state.prevPopupVisible!==wr.state.popupVisible&&wr.props.afterPopupVisibleChange(wr.state.popupVisible)};var Gr;return"popupVisible"in Nt?Gr=!!Nt.popupVisible:Gr=!!Nt.defaultPopupVisible,wr.state={prevPopupVisible:Gr,popupVisible:Gr},Z.forEach(function(Kr){wr["fire".concat(Kr)]=function(qr){wr.fireEvents(Kr,qr)}}),wr}return Object(h.a)(Cr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var wr=this.props,Gr=this.state;if(Gr.popupVisible){var Kr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Kr=wr.getDocument(),this.clickOutsideHandler=Object(_.a)(Kr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Kr=Kr||wr.getDocument(),this.touchOutsideHandler=Object(_.a)(Kr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Kr=Kr||wr.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 wr=this.props,Gr=wr.popupPlacement,Kr=wr.popupAlign,qr=wr.builtinPlacements;return Gr&&qr?D(qr,Gr,Kr):Kr}},{key:"setPopupVisible",value:function(wr,Gr){var Kr=this.props.alignPoint,qr=this.state.popupVisible;this.clearDelayTimer(),qr!==wr&&("popupVisible"in this.props||this.setState({popupVisible:wr,prevPopupVisible:qr}),this.props.onPopupVisibleChange(wr)),Kr&&Gr&&this.setPoint(Gr)}},{key:"delaySetPopupVisible",value:function(wr,Gr,Kr){var qr=this,oi=Gr*1e3;if(this.clearDelayTimer(),oi){var Gn=Kr?{pageX:Kr.pageX,pageY:Kr.pageY}:null;this.delayTimer=window.setTimeout(function(){qr.setPopupVisible(wr,Gn),qr.clearDelayTimer()},oi)}else this.setPopupVisible(wr,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(wr){var Gr=this.props.children.props,Kr=this.props;return Gr[wr]&&Kr[wr]?this["fire".concat(wr)]:Gr[wr]||Kr[wr]}},{key:"isClickToShow",value:function(){var wr=this.props,Gr=wr.action,Kr=wr.showAction;return Gr.indexOf("click")!==-1||Kr.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var wr=this.props,Gr=wr.action,Kr=wr.showAction;return Gr.indexOf("contextMenu")!==-1||Kr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var wr=this.props,Gr=wr.action,Kr=wr.hideAction;return Gr.indexOf("click")!==-1||Kr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var wr=this.props,Gr=wr.action,Kr=wr.showAction;return Gr.indexOf("hover")!==-1||Kr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var wr=this.props,Gr=wr.action,Kr=wr.hideAction;return Gr.indexOf("hover")!==-1||Kr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var wr=this.props,Gr=wr.action,Kr=wr.showAction;return Gr.indexOf("focus")!==-1||Kr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var wr=this.props,Gr=wr.action,Kr=wr.hideAction;return Gr.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(wr,Gr){var Kr=this.props.children.props[wr];Kr&&Kr(Gr);var qr=this.props[wr];qr&&qr(Gr)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var wr=this.state.popupVisible,Gr=this.props,Kr=Gr.children,qr=Gr.forceRender,oi=Gr.alignPoint,Gn=Gr.className,Ti=Gr.autoDestroy,hn=a.a.Children.only(Kr),_r={key:"trigger"};this.isContextMenuToShow()?_r.onContextMenu=this.onContextMenu:_r.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(_r.onClick=this.onClick,_r.onMouseDown=this.onMouseDown,_r.onTouchStart=this.onTouchStart):(_r.onClick=this.createTwoChains("onClick"),_r.onMouseDown=this.createTwoChains("onMouseDown"),_r.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(_r.onMouseEnter=this.onMouseEnter,oi&&(_r.onMouseMove=this.onMouseMove)):_r.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?_r.onMouseLeave=this.onMouseLeave:_r.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(_r.onFocus=this.onFocus,_r.onBlur=this.onBlur):(_r.onFocus=this.createTwoChains("onFocus"),_r.onBlur=this.createTwoChains("onBlur"));var En=N()(hn&&hn.props&&hn.props.className,Gn);En&&(_r.className=En);var Fn=Object(s.a)({},_r);Object(S.c)(hn)&&(Fn.ref=Object(S.a)(this.triggerRef,hn.ref));var Vn=a.a.cloneElement(hn,Fn),qn;return(wr||this.popupRef.current||qr)&&(qn=a.a.createElement(Hr,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!wr&&Ti&&(qn=null),a.a.createElement(ie.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},Vn,qn)}}],[{key:"getDerivedStateFromProps",value:function(wr,Gr){var Kr=wr.popupVisible,qr={};return Kr!==void 0&&Gr.popupVisible!==Kr&&(qr.popupVisible=Kr,qr.prevPopupVisible=Gr.popupVisible),qr}}]),Cr}(a.a.Component);return Cn.contextType=ie,Cn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Be,getDocument:Ce,onPopupVisibleChange:X,afterPopupVisibleChange:X,onPopupAlign:X,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Cn}var ct=nt(I.a),Qe=d("2W6z"),dt=d.n(Qe),Ft=d("4IlW"),Lr=d("uK0f"),Wt=d.n(Lr);function ar(Hr,Cn){if(Hr===Cn)return!0;if(!Hr||!Cn)return!1;var kr=Hr.length;if(Cn.length!==kr)return!1;for(var mr=0;mr<kr;mr++)if(Hr[mr]!==Cn[mr])return!1;return!0}function Ut(Hr){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ut=function(kr){return typeof kr}:Ut=function(kr){return kr&&typeof Symbol=="function"&&kr.constructor===Symbol&&kr!==Symbol.prototype?"symbol":typeof kr},Ut(Hr)}function kt(Hr,Cn){if(!(Hr instanceof Cn))throw new TypeError("Cannot call a class as a function")}function st(Hr,Cn){for(var kr=0;kr<Cn.length;kr++){var mr=Cn[kr];mr.enumerable=mr.enumerable||!1,mr.configurable=!0,"value"in mr&&(mr.writable=!0),Object.defineProperty(Hr,mr.key,mr)}}function Rr(Hr,Cn,kr){return Cn&&st(Hr.prototype,Cn),kr&&st(Hr,kr),Hr}function on(Hr,Cn){if(typeof Cn!="function"&&Cn!==null)throw new TypeError("Super expression must either be null or a function");Hr.prototype=Object.create(Cn&&Cn.prototype,{constructor:{value:Hr,writable:!0,configurable:!0}}),Cn&&Sn(Hr,Cn)}function Sn(Hr,Cn){return Sn=Object.setPrototypeOf||function(mr,Cr){return mr.__proto__=Cr,mr},Sn(Hr,Cn)}function zn(Hr){var Cn=Nn();return function(){var kr=jt(Hr),mr;if(Cn){var Cr=jt(this).constructor;mr=Reflect.construct(kr,arguments,Cr)}else mr=kr.apply(this,arguments);return Ii(this,mr)}}function Ii(Hr,Cn){return Cn&&(Ut(Cn)==="object"||typeof Cn=="function")?Cn:yn(Hr)}function yn(Hr){if(Hr===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Hr}function Nn(){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(Hr){return!1}}function jt(Hr){return jt=Object.setPrototypeOf?Object.getPrototypeOf:function(kr){return kr.__proto__||Object.getPrototypeOf(kr)},jt(Hr)}var At=function(){var Hr=function(Cn){on(mr,Cn);var kr=zn(mr);function mr(){var Cr;return kt(this,mr),Cr=kr.apply(this,arguments),Cr.menuItems={},Cr.saveMenuItem=function(Nt){return function(wr){Cr.menuItems[Nt]=wr}},Cr}return Rr(mr,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(Nt){!Nt.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(Nt){var wr=this.props,Gr=wr.fieldNames,Kr=wr.defaultFieldNames;return Gr[Nt]||Kr[Nt]}},{key:"getOption",value:function(Nt,wr){var Gr=this.props,Kr=Gr.prefixCls,qr=Gr.expandTrigger,oi=Gr.expandIcon,Gn=Gr.loadingIcon,Ti=this.props.onSelect.bind(this,Nt,wr),hn=this.props.onItemDoubleClick.bind(this,Nt,wr),_r={onClick:Ti,onDoubleClick:hn},En="".concat(Kr,"-menu-item"),Fn=null,Vn=Nt[this.getFieldName("children")]&&Nt[this.getFieldName("children")].length>0;(Vn||Nt.isLeaf===!1)&&(En+=" ".concat(Kr,"-menu-item-expand"),Nt.loading||(Fn=t.createElement("span",{className:"".concat(Kr,"-menu-item-expand-icon")},oi))),qr==="hover"&&(Vn||Nt.isLeaf===!1)&&(_r={onMouseEnter:this.delayOnSelect.bind(this,Ti),onMouseLeave:this.delayOnSelect.bind(this),onClick:Ti}),this.isActiveOption(Nt,wr)&&(En+=" ".concat(Kr,"-menu-item-active"),_r.ref=this.saveMenuItem(wr)),Nt.disabled&&(En+=" ".concat(Kr,"-menu-item-disabled"));var qn=null;Nt.loading&&(En+=" ".concat(Kr,"-menu-item-loading"),qn=Gn||null);var Oi="";return"title"in Nt?Oi=Nt.title:typeof Nt[this.getFieldName("label")]=="string"&&(Oi=Nt[this.getFieldName("label")]),t.createElement("li",Object.assign({key:Nt[this.getFieldName("value")],className:En,title:Oi},_r,{role:"menuitem",onMouseDown:function(Mi){return Mi.preventDefault()}}),Nt[this.getFieldName("label")],Fn,qn)}},{key:"getActiveOptions",value:function(Nt){var wr=this,Gr=this.props.options,Kr=Nt||this.props.activeValue;return Wt()(Gr,function(qr,oi){return qr[wr.getFieldName("value")]===Kr[oi]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Nt=this,wr=this.props.options,Gr=this.getActiveOptions().map(function(Kr){return Kr[Nt.getFieldName("children")]}).filter(function(Kr){return!!Kr});return Gr.unshift(wr),Gr}},{key:"delayOnSelect",value:function(Nt){for(var wr=this,Gr=arguments.length,Kr=new Array(Gr>1?Gr-1:0),qr=1;qr<Gr;qr++)Kr[qr-1]=arguments[qr];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof Nt=="function"&&(this.delayTimer=window.setTimeout(function(){Nt(Kr),wr.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var Nt=this.getShowOptions().length,wr=0;wr<Nt;wr++){var Gr=this.menuItems[wr];Gr&&Gr.parentElement&&(Gr.parentElement.scrollTop=Gr.offsetTop)}}},{key:"isActiveOption",value:function(Nt,wr){var Gr=this.props.activeValue,Kr=Gr===void 0?[]:Gr;return Kr[wr]===Nt[this.getFieldName("value")]}},{key:"render",value:function(){var Nt=this,wr=this.props,Gr=wr.prefixCls,Kr=wr.dropdownMenuColumnStyle;return t.createElement("div",null,this.getShowOptions().map(function(qr,oi){return t.createElement("ul",{className:"".concat(Gr,"-menu"),key:oi,style:Kr},qr.map(function(Gn){return Nt.getOption(Gn,oi)}))}))}}]),mr}(t.Component);return Hr.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},Hr}(),Re=At,Ke={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}}},Pe=Ke;function at(Hr){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?at=function(kr){return typeof kr}:at=function(kr){return kr&&typeof Symbol=="function"&&kr.constructor===Symbol&&kr!==Symbol.prototype?"symbol":typeof kr},at(Hr)}function wt(Hr,Cn){if(Hr==null)return{};var kr=Rt(Hr,Cn),mr,Cr;if(Object.getOwnPropertySymbols){var Nt=Object.getOwnPropertySymbols(Hr);for(Cr=0;Cr<Nt.length;Cr++){if(mr=Nt[Cr],Cn.indexOf(mr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Hr,mr))continue;kr[mr]=Hr[mr]}}return kr}function Rt(Hr,Cn){if(Hr==null)return{};var kr={},mr=Object.keys(Hr),Cr,Nt;for(Nt=0;Nt<mr.length;Nt++){if(Cr=mr[Nt],Cn.indexOf(Cr)>=0)continue;kr[Cr]=Hr[Cr]}return kr}function xt(Hr){return Et(Hr)||Br(Hr)||gr(Hr)||Lt()}function Lt(){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 gr(Hr,Cn){if(!Hr)return;if(typeof Hr=="string")return it(Hr,Cn);var kr=Object.prototype.toString.call(Hr).slice(8,-1);if(kr==="Object"&&Hr.constructor&&(kr=Hr.constructor.name),kr==="Map"||kr==="Set")return Array.from(Hr);if(kr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(kr))return it(Hr,Cn)}function Br(Hr){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(Hr))return Array.from(Hr)}function Et(Hr){if(Array.isArray(Hr))return it(Hr)}function it(Hr,Cn){(Cn==null||Cn>Hr.length)&&(Cn=Hr.length);for(var kr=0,mr=new Array(Cn);kr<Cn;kr++)mr[kr]=Hr[kr];return mr}function rt(Hr,Cn){if(!(Hr instanceof Cn))throw new TypeError("Cannot call a class as a function")}function Pt(Hr,Cn){for(var kr=0;kr<Cn.length;kr++){var mr=Cn[kr];mr.enumerable=mr.enumerable||!1,mr.configurable=!0,"value"in mr&&(mr.writable=!0),Object.defineProperty(Hr,mr.key,mr)}}function Ht(Hr,Cn,kr){return Cn&&Pt(Hr.prototype,Cn),kr&&Pt(Hr,kr),Hr}function bt(Hr,Cn){if(typeof Cn!="function"&&Cn!==null)throw new TypeError("Super expression must either be null or a function");Hr.prototype=Object.create(Cn&&Cn.prototype,{constructor:{value:Hr,writable:!0,configurable:!0}}),Cn&&Gt(Hr,Cn)}function Gt(Hr,Cn){return Gt=Object.setPrototypeOf||function(mr,Cr){return mr.__proto__=Cr,mr},Gt(Hr,Cn)}function ut(Hr){var Cn=ir();return function(){var kr=pr(Hr),mr;if(Cn){var Cr=pr(this).constructor;mr=Reflect.construct(kr,arguments,Cr)}else mr=kr.apply(this,arguments);return Kt(this,mr)}}function Kt(Hr,Cn){return Cn&&(at(Cn)==="object"||typeof Cn=="function")?Cn:Ar(Hr)}function Ar(Hr){if(Hr===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Hr}function ir(){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(Hr){return!1}}function pr(Hr){return pr=Object.setPrototypeOf?Object.getPrototypeOf:function(kr){return kr.__proto__||Object.getPrototypeOf(kr)},pr(Hr)}var tn=function(){var Hr=function(Cn){bt(mr,Cn);var kr=ut(mr);function mr(Cr){var Nt;rt(this,mr),Nt=kr.call(this,Cr),Nt.setPopupVisible=function(Gr){var Kr=Nt.state.value;"popupVisible"in Nt.props||Nt.setState({popupVisible:Gr}),Gr&&!Nt.state.popupVisible&&Nt.setState({activeValue:Kr}),Nt.props.onPopupVisibleChange(Gr)},Nt.handleChange=function(Gr,Kr,qr){var oi=Kr.visible;(qr.type!=="keydown"||qr.keyCode===Ft.a.ENTER)&&(Nt.props.onChange(Gr.map(function(Gn){return Gn[Nt.getFieldName("value")]}),Gr),Nt.setPopupVisible(oi))},Nt.handlePopupVisibleChange=function(Gr){Nt.setPopupVisible(Gr)},Nt.handleMenuSelect=function(Gr,Kr,qr){var oi=Nt.trigger.getRootDomNode();oi&&oi.focus&&oi.focus();var Gn=Nt.props,Ti=Gn.changeOnSelect,hn=Gn.loadData,_r=Gn.expandTrigger;if(!Gr||Gr.disabled)return;var En=Nt.state.activeValue;En=En.slice(0,Kr+1),En[Kr]=Gr[Nt.getFieldName("value")];var Fn=Nt.getActiveOptions(En);if(Gr.isLeaf===!1&&!Gr[Nt.getFieldName("children")]&&hn){Ti&&Nt.handleChange(Fn,{visible:!0},qr),Nt.setState({activeValue:En}),hn(Fn);return}var Vn={};!Gr[Nt.getFieldName("children")]||!Gr[Nt.getFieldName("children")].length?(Nt.handleChange(Fn,{visible:!1},qr),Vn.value=En):Ti&&(qr.type==="click"||qr.type==="keydown")&&(_r==="hover"?Nt.handleChange(Fn,{visible:!1},qr):Nt.handleChange(Fn,{visible:!0},qr),Vn.value=En),Vn.activeValue=En,("value"in Nt.props||qr.type==="keydown"&&qr.keyCode!==Ft.a.ENTER)&&delete Vn.value,Nt.setState(Vn)},Nt.handleItemDoubleClick=function(){var Gr=Nt.props.changeOnSelect;Gr&&Nt.setPopupVisible(!1)},Nt.handleKeyDown=function(Gr){var Kr=Nt.props.children;if(Kr&&Kr.props.onKeyDown){Kr.props.onKeyDown(Gr);return}var qr=xt(Nt.state.activeValue),oi=qr.length-1<0?0:qr.length-1,Gn=Nt.getCurrentLevelOptions(),Ti=Gn.map(function(Fn){return Fn[Nt.getFieldName("value")]}).indexOf(qr[oi]);if(Gr.keyCode!==Ft.a.DOWN&&Gr.keyCode!==Ft.a.UP&&Gr.keyCode!==Ft.a.LEFT&&Gr.keyCode!==Ft.a.RIGHT&&Gr.keyCode!==Ft.a.ENTER&&Gr.keyCode!==Ft.a.SPACE&&Gr.keyCode!==Ft.a.BACKSPACE&&Gr.keyCode!==Ft.a.ESC&&Gr.keyCode!==Ft.a.TAB)return;if(!Nt.state.popupVisible&&Gr.keyCode!==Ft.a.BACKSPACE&&Gr.keyCode!==Ft.a.LEFT&&Gr.keyCode!==Ft.a.RIGHT&&Gr.keyCode!==Ft.a.ESC&&Gr.keyCode!==Ft.a.TAB){Nt.setPopupVisible(!0);return}if(Gr.keyCode===Ft.a.DOWN||Gr.keyCode===Ft.a.UP){Gr.preventDefault();var hn=Ti;hn!==-1?Gr.keyCode===Ft.a.DOWN?(hn+=1,hn=hn>=Gn.length?0:hn):(hn-=1,hn=hn<0?Gn.length-1:hn):hn=0,qr[oi]=Gn[hn][Nt.getFieldName("value")]}else if(Gr.keyCode===Ft.a.LEFT||Gr.keyCode===Ft.a.BACKSPACE)Gr.preventDefault(),qr.splice(qr.length-1,1);else if(Gr.keyCode===Ft.a.RIGHT)Gr.preventDefault(),Gn[Ti]&&Gn[Ti][Nt.getFieldName("children")]&&qr.push(Gn[Ti][Nt.getFieldName("children")][0][Nt.getFieldName("value")]);else if(Gr.keyCode===Ft.a.ESC||Gr.keyCode===Ft.a.TAB){Nt.setPopupVisible(!1);return}(!qr||qr.length===0)&&Nt.setPopupVisible(!1);var _r=Nt.getActiveOptions(qr),En=_r[_r.length-1];Nt.handleMenuSelect(En,_r.length-1,Gr),Nt.props.onKeyDown&&Nt.props.onKeyDown(Gr)},Nt.saveTrigger=function(Gr){Nt.trigger=Gr};var wr=[];return"value"in Cr?wr=Cr.value||[]:"defaultValue"in Cr&&(wr=Cr.defaultValue||[]),dt()(!("filedNames"in Cr),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),Nt.state={popupVisible:Cr.popupVisible,activeValue:wr,value:wr,prevProps:Cr},Nt.defaultFieldNames={label:"label",value:"value",children:"children"},Nt}return Ht(mr,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(Nt){var wr=this.defaultFieldNames,Gr=this.props,Kr=Gr.fieldNames,qr=Gr.filedNames;return"filedNames"in this.props?qr[Nt]||wr[Nt]:Kr[Nt]||wr[Nt]}},{key:"getFieldNames",value:function(){var Nt=this.props,wr=Nt.fieldNames,Gr=Nt.filedNames;return"filedNames"in this.props?Gr:wr}},{key:"getCurrentLevelOptions",value:function(){var Nt=this,wr=this.props.options,Gr=wr===void 0?[]:wr,Kr=this.state.activeValue,qr=Kr===void 0?[]:Kr,oi=Wt()(Gr,function(Gn,Ti){return Gn[Nt.getFieldName("value")]===qr[Ti]},{childrenKeyName:this.getFieldName("children")});return oi[oi.length-2]?oi[oi.length-2][this.getFieldName("children")]:xt(Gr).filter(function(Gn){return!Gn.disabled})}},{key:"getActiveOptions",value:function(Nt){var wr=this;return Wt()(this.props.options||[],function(Gr,Kr){return Gr[wr.getFieldName("value")]===Nt[Kr]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var Nt=this.props,wr=Nt.prefixCls,Gr=Nt.transitionName,Kr=Nt.popupClassName,qr=Nt.options,oi=qr===void 0?[]:qr,Gn=Nt.disabled,Ti=Nt.builtinPlacements,hn=Nt.popupPlacement,_r=Nt.children,En=Nt.dropdownRender,Fn=wt(Nt,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Vn=t.createElement("div",null),qn="";oi&&oi.length>0?Vn=t.createElement(Re,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):qn=" ".concat(wr,"-menus-empty");var Oi=Vn;return En&&(Oi=En(Vn)),t.createElement(ct,Object.assign({ref:this.saveTrigger},Fn,{popupPlacement:hn,builtinPlacements:Ti,popupTransitionName:Gr,action:Gn?[]:["click"],popupVisible:Gn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(wr,"-menus"),popupClassName:Kr+qn,popup:Oi}),t.cloneElement(_r,{onKeyDown:this.handleKeyDown,tabIndex:Gn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(Nt,wr){var Gr=wr.prevProps,Kr=Gr===void 0?{}:Gr,qr={prevProps:Nt};return"value"in Nt&&!ar(Kr.value,Nt.value)&&(qr.value=Nt.value||[],"loadData"in Nt||(qr.activeValue=Nt.value||[])),"popupVisible"in Nt&&(qr.popupVisible=Nt.popupVisible),qr}}]),mr}(t.Component);return Hr.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Pe,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},Hr}(),fn=tn,Mn=fn,Yn=d("BGR+"),si=d("kbBi"),vi=d.n(si),xi=d("HQEm"),_i=d.n(xi),Ze=d("fEPi"),we=d.n(Ze),Ne=d("5YOS"),Fe=d.n(Ne),Ye=d("DFhj"),We=d.n(Ye),qe=d("5rEg"),yt=d("H84U"),ot=d("YMnH"),$t=d("uaoM"),Mr=d("3Nzz"),Sr=d("0n0R"),jr=function(Hr,Cn){var kr={};for(var mr in Hr)Object.prototype.hasOwnProperty.call(Hr,mr)&&Cn.indexOf(mr)<0&&(kr[mr]=Hr[mr]);if(Hr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Cr=0,mr=Object.getOwnPropertySymbols(Hr);Cr<mr.length;Cr++)Cn.indexOf(mr[Cr])<0&&Object.prototype.propertyIsEnumerable.call(Hr,mr[Cr])&&(kr[mr[Cr]]=Hr[mr[Cr]]);return kr},tr=50;function gn(Hr,Cn,kr){return Hr.split(Cn).map(function(mr,Cr){return Cr===0?mr:[t.createElement("span",{className:"".concat(kr,"-menu-item-keyword"),key:"seperator"},Cn),mr]})}function sr(Hr,Cn,kr){return Cn.some(function(mr){return mr[kr.label].indexOf(Hr)>-1})}function un(Hr,Cn,kr,mr){return Cn.map(function(Cr,Nt){var wr=Cr[mr.label],Gr=wr.indexOf(Hr)>-1?gn(wr,Hr,kr):wr;return Nt===0?Gr:[" / ",Gr]})}function an(Hr,Cn,kr,mr){function Cr(Nt){return Nt[mr.label].indexOf(kr)>-1}return Hr.findIndex(Cr)-Cn.findIndex(Cr)}function Pr(Hr){var Cn=Hr.fieldNames;return Cn}function In(Hr){var Cn=Pr(Hr)||{},kr={children:Cn.children||"children",label:Cn.label||"label",value:Cn.value||"value"};return kr}function ci(Hr,Cn){var kr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],mr=In(Cn),Cr=[],Nt=mr.children;return Hr.forEach(function(wr){var Gr=kr.concat(wr);(Cn.changeOnSelect||!wr[Nt]||!wr[Nt].length)&&Cr.push(Gr),wr[Nt]&&(Cr=Cr.concat(ci(wr[Nt],Cn,Gr)))}),Cr}var Ui=function(Cn){return Cn.join(" / ")};function ki(Hr){var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(Hr||[]).forEach(function(kr){var mr=Cn.value||"value";Object($t.a)(mr in kr,"Cascader","Not found `value` in `options`."),ki(kr[Cn.children||"children"],Cn)})}var Ri=function(Hr){n()(kr,Hr);var Cn=l()(kr);function kr(mr){var Cr;return g()(this,kr),Cr=Cn.call(this,mr),Cr.cachedOptions=[],Cr.setValue=function(Nt){var wr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Cr.props||Cr.setState({value:Nt});var Gr=Cr.props.onChange;Gr&&Gr(Nt,wr)},Cr.saveInput=function(Nt){Cr.input=Nt},Cr.handleChange=function(Nt,wr){if(Cr.setState({inputValue:""}),wr[0].__IS_FILTERED_OPTION){var Gr=Nt[0],Kr=wr[0].path;Cr.setValue(Gr,Kr);return}Cr.setValue(Nt,wr)},Cr.handlePopupVisibleChange=function(Nt){"popupVisible"in Cr.props||Cr.setState(function(Gr){return{popupVisible:Nt,inputFocused:Nt,inputValue:Nt?Gr.inputValue:""}});var wr=Cr.props.onPopupVisibleChange;wr&&wr(Nt)},Cr.handleInputBlur=function(){Cr.setState({inputFocused:!1})},Cr.handleInputClick=function(Nt){var wr=Cr.state,Gr=wr.inputFocused,Kr=wr.popupVisible;(Gr||Kr)&&Nt.stopPropagation()},Cr.handleKeyDown=function(Nt){(Nt.keyCode===Ft.a.BACKSPACE||Nt.keyCode===Ft.a.SPACE)&&Nt.stopPropagation()},Cr.handleInputChange=function(Nt){var wr=Cr.state.popupVisible,Gr=Nt.target.value;wr||Cr.handlePopupVisibleChange(!0),Cr.setState({inputValue:Gr})},Cr.clearSelection=function(Nt){var wr=Cr.state.inputValue;Nt.preventDefault(),Nt.stopPropagation(),wr?Cr.setState({inputValue:""}):(Cr.handlePopupVisibleChange(!1),Cr.clearSelectionTimeout=setTimeout(function(){Cr.setValue([])},200))},Cr.renderCascader=function(Nt,wr){var Gr=Nt.getPopupContainer,Kr=Nt.getPrefixCls,qr=Nt.renderEmpty,oi=Nt.direction;return t.createElement(Mr.b.Consumer,null,function(Gn){var Ti,hn,_r,En,Fn=r()(Cr),Vn=Fn.props,qn=Fn.state,Oi=Vn.prefixCls,Ni=Vn.inputPrefixCls,Mi=Vn.children,Ji=Vn.placeholder,ma=Ji===void 0?wr.placeholder||"Please select":Ji,la=Vn.size,qa=Vn.disabled,bi=Vn.className,xn=Vn.style,zi=Vn.allowClear,oa=Vn.showSearch,Yi=oa===void 0?!1:oa,ca=Vn.suffixIcon,Hi=Vn.expandIcon,Ia=Vn.notFoundContent,Da=Vn.popupClassName,Qa=Vn.bordered,Wo=Vn.dropdownRender,po=jr(Vn,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),Mo=la||Gn,Fo=qn.value,yo=qn.inputFocused,Oo=oi==="rtl",sa=Kr("cascader",Oi),hs=Kr("input",Ni),Jo=N()((Ti={},A()(Ti,"".concat(hs,"-lg"),Mo==="large"),A()(Ti,"".concat(hs,"-sm"),Mo==="small"),Ti)),wo=zi&&!qa&&Fo.length>0||qn.inputValue?t.createElement(vi.a,{className:"".concat(sa,"-picker-clear"),onClick:Cr.clearSelection}):null,_o=N()((hn={},A()(hn,"".concat(sa,"-picker-arrow"),!0),A()(hn,"".concat(sa,"-picker-arrow-expand"),qn.popupVisible),hn)),Bo=N()(bi,"".concat(sa,"-picker"),(_r={},A()(_r,"".concat(sa,"-picker-rtl"),Oo),A()(_r,"".concat(sa,"-picker-with-value"),qn.inputValue),A()(_r,"".concat(sa,"-picker-disabled"),qa),A()(_r,"".concat(sa,"-picker-").concat(Mo),!!Mo),A()(_r,"".concat(sa,"-picker-show-search"),!!Yi),A()(_r,"".concat(sa,"-picker-focused"),yo),A()(_r,"".concat(sa,"-picker-borderless"),!Qa),_r)),Ds=Object(Yn.default)(po,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),Dr=Vn.options,rn=In(Cr.props);if(Dr&&Dr.length>0)qn.inputValue&&(Dr=Cr.generateFilteredOptions(sa,qr));else{var Tn;Dr=[(Tn={},A()(Tn,rn.label,Ia||qr("Cascader")),A()(Tn,rn.value,"ANT_CASCADER_NOT_FOUND"),Tn)]}qn.popupVisible?Cr.cachedOptions=Dr:Dr=Cr.cachedOptions;var en={},ur=(Dr||[]).length===1&&Dr[0].isEmptyNode;ur&&(en.height="auto");var sn=Yi.matchInputWidth!==!1;sn&&(qn.inputValue||ur)&&Cr.input&&(en.width=Cr.input.input.offsetWidth);var Bn;ca?Bn=Object(Sr.c)(ca,t.createElement("span",{className:"".concat(sa,"-picker-arrow")},ca),function(){var da;return{className:N()((da={},A()(da,ca.props.className,ca.props.className),A()(da,"".concat(sa,"-picker-arrow"),!0),da))}}):Bn=t.createElement(_i.a,{className:_o});var Hn=Mi||t.createElement("span",{style:xn,className:Bo},t.createElement("span",{className:"".concat(sa,"-picker-label")},Cr.getLabel()),t.createElement(qe.a,x()({},Ds,{tabIndex:"-1",ref:Cr.saveInput,prefixCls:hs,placeholder:Fo&&Fo.length>0?void 0:ma,className:"".concat(sa,"-input ").concat(Jo),value:qn.inputValue,disabled:qa,readOnly:!Yi,autoComplete:Ds.autoComplete||"off",onClick:Yi?Cr.handleInputClick:void 0,onBlur:Yi?Cr.handleInputBlur:void 0,onKeyDown:Cr.handleKeyDown,onChange:Yi?Cr.handleInputChange:void 0})),wo,Bn),Li;Hi?Li=Hi:Li=Oo?t.createElement(We.a,null):t.createElement(we.a,null);var Ci=t.createElement("span",{className:"".concat(sa,"-menu-item-loading-icon")},t.createElement(Fe.a,{spin:!0})),Jn=Vn.getPopupContainer||Gr,mi=Object(Yn.default)(Vn,["inputIcon","expandIcon","loadingIcon","bordered"]),yi=N()(Da,(En={},A()(En,"".concat(sa,"-menu-").concat(oi),oi==="rtl"),A()(En,"".concat(sa,"-menu-empty"),Dr.length===1&&Dr[0].value==="ANT_CASCADER_NOT_FOUND"),En));return t.createElement(Mn,x()({},mi,{prefixCls:sa,getPopupContainer:Jn,options:Dr,value:Fo,popupVisible:qn.popupVisible,onPopupVisibleChange:Cr.handlePopupVisibleChange,onChange:Cr.handleChange,dropdownMenuColumnStyle:en,expandIcon:Li,loadingIcon:Ci,popupClassName:yi,popupPlacement:Cr.getPopupPlacement(oi),dropdownRender:Wo}),Hn)})},Cr.state={value:mr.value||mr.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:mr.popupVisible,flattenOptions:mr.showSearch?ci(mr.options,mr):void 0,prevProps:mr},Cr}return c()(kr,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Cr=this.props,Nt=Cr.options,wr=Cr.displayRender,Gr=wr===void 0?Ui:wr,Kr=In(this.props),qr=this.state.value,oi=Array.isArray(qr[0])?qr[0]:qr,Gn=Wt()(Nt,function(hn,_r){return hn[Kr.value]===oi[_r]},{childrenKeyName:Kr.children}),Ti=Gn.length?Gn.map(function(hn){return hn[Kr.label]}):qr;return Gr(Ti,Gn)}},{key:"generateFilteredOptions",value:function(Cr,Nt){var wr=this,Gr,Kr=this.props,qr=Kr.showSearch,oi=Kr.notFoundContent,Gn=In(this.props),Ti=qr.filter,hn=Ti===void 0?sr:Ti,_r=qr.render,En=_r===void 0?un:_r,Fn=qr.sort,Vn=Fn===void 0?an:Fn,qn=qr.limit,Oi=qn===void 0?tr:qn,Ni=this.state,Mi=Ni.flattenOptions,Ji=Mi===void 0?[]:Mi,ma=Ni.inputValue,la;if(Oi>0){la=[];var qa=0;Ji.some(function(bi){var xn=hn(wr.state.inputValue,bi,Gn);return xn&&(la.push(bi),qa+=1),qa>=Oi})}else Object($t.a)(typeof Oi!="number","Cascader","'limit' of showSearch should be positive number or false."),la=Ji.filter(function(bi){return hn(wr.state.inputValue,bi,Gn)});return la=la.sort(function(bi,xn){return Vn(bi,xn,ma,Gn)}),la.length>0?la.map(function(bi){var xn;return xn={__IS_FILTERED_OPTION:!0,path:bi},A()(xn,Gn.value,bi.map(function(zi){return zi[Gn.value]})),A()(xn,Gn.label,En(ma,bi,Cr,Gn)),A()(xn,"disabled",bi.some(function(zi){return!!zi.disabled})),A()(xn,"isEmptyNode",!0),xn}):[(Gr={},A()(Gr,Gn.value,"ANT_CASCADER_NOT_FOUND"),A()(Gr,Gn.label,oi||Nt("Cascader")),A()(Gr,"disabled",!0),A()(Gr,"isEmptyNode",!0),Gr)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var Cr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",Nt=this.props.popupPlacement;return Nt!==void 0?Nt:Cr==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Cr=this;return t.createElement(yt.a,null,function(Nt){return t.createElement(ot.a,null,function(wr){return Cr.renderCascader(Nt,wr)})})}}],[{key:"getDerivedStateFromProps",value:function(Cr,Nt){var wr=Nt.prevProps,Gr={prevProps:Cr};return"value"in Cr&&(Gr.value=Cr.value||[]),"popupVisible"in Cr&&(Gr.popupVisible=Cr.popupVisible),Cr.showSearch&&wr.options!==Cr.options&&(Gr.flattenOptions=ci(Cr.options,Cr)),Gr}}]),kr}(t.Component);Ri.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var Ki=k.a=Ri},DFhj:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("GGyF"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},DL4k:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},DN4a:function(H,k,d){var O=d("Fofx"),x=d("QBsz"),C=O.identity,A=5e-5;function b(n){return n>A||n<-A}var g=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},f=g.prototype;f.transform=null,f.needLocalTransform=function(){return b(this.rotation)||b(this.position[0])||b(this.position[1])||b(this.scale[0]-1)||b(this.scale[1]-1)};var c=[];f.updateTransform=function(){var n=this.parent,e=n&&n.transform,l=this.needLocalTransform(),t=this.transform;if(!(l||e)){t&&C(t);return}t=t||O.create(),l?this.getLocalTransform(t):C(t),e&&(l?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 s=c[0]<0?-1:1,u=c[1]<0?-1:1,h=((c[0]-s)*a+s)/c[0]||0,p=((c[1]-u)*a+u)/c[1]||0;t[0]*=h,t[1]*=h,t[2]*=p,t[3]*=p}this.invTransform=this.invTransform||O.create(),O.invert(this.invTransform,t)},f.getLocalTransform=function(n){return g.getLocalTransform(this,n)},f.setTransform=function(n){var e=this.transform,l=n.dpr||1;e?n.setTransform(l*e[0],l*e[1],l*e[2],l*e[3],l*e[4],l*e[5]):n.setTransform(l,0,0,l,0,0)},f.restoreTransform=function(n){var e=n.dpr||1;n.setTransform(e,0,0,e,0,0)};var o=[],r=O.create();f.setLocalTransform=function(n){if(!n)return;var e=n[0]*n[0]+n[1]*n[1],l=n[2]*n[2]+n[3]*n[3],t=this.position,a=this.scale;b(e-1)&&(e=Math.sqrt(e)),b(l-1)&&(l=Math.sqrt(l)),n[0]<0&&(e=-e),n[3]<0&&(l=-l),t[0]=n[4],t[1]=n[5],a[0]=e,a[1]=l,this.rotation=Math.atan2(-n[1]/l,n[0]/e)},f.decomposeTransform=function(){if(!this.transform)return;var n=this.parent,e=this.transform;n&&n.transform&&(O.mul(o,n.invTransform,e),e=o);var l=this.origin;l&&(l[0]||l[1])&&(r[4]=l[0],r[5]=l[1],O.mul(o,e,r),o[4]-=l[0],o[5]-=l[1],e=o),this.setLocalTransform(e)},f.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)},f.transformCoordToLocal=function(n,e){var l=[n,e],t=this.invTransform;return t&&x.applyTransform(l,l,t),l},f.transformCoordToGlobal=function(n,e){var l=[n,e],t=this.transform;return t&&x.applyTransform(l,l,t),l},g.getLocalTransform=function(n,e){e=e||[],C(e);var l=n.origin,t=n.scale||[1,1],a=n.rotation||0,s=n.position||[0,0];return l&&(e[4]-=l[0],e[5]-=l[1]),O.scale(e,e,t),a&&O.rotate(e,e,a),l&&(e[4]+=l[0],e[5]+=l[1]),e[4]+=s[0],e[5]+=s[1],e};var i=g;H.exports=i},DO2E:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},DYRE:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("OPEp"),A=d.n(C)},DZo9:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("JGo8"),A=d.n(C),b=d("+L6B"),g=d("MXD1"),f=d("5Dmo")},Dagg:function(H,k,d){var O=d("Gev7"),x=d("mFDi"),C=d("bYtY"),A=d("Xnb7");function b(f){O.call(this,f)}b.prototype={constructor:b,type:"image",brush:function(c,o){var r=this.style,i=r.image;r.bind(c,this,o);var n=this._image=A.createOrUpdateImage(i,this._image,this,this.onload);if(!n||!A.isImageReady(n))return;var e=r.x||0,l=r.y||0,t=r.width,a=r.height,s=n.width/n.height;if(t==null&&a!=null?t=a*s:a==null&&t!=null?a=t/s:t==null&&a==null&&(t=n.width,a=n.height),this.setTransform(c),r.sWidth&&r.sHeight){var u=r.sx||0,h=r.sy||0;c.drawImage(n,u,h,r.sWidth,r.sHeight,e,l,t,a)}else if(r.sx&&r.sy){var u=r.sx,h=r.sy,p=t-u,m=a-h;c.drawImage(n,u,h,p,m,e,l,t,a)}else c.drawImage(n,e,l,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 x(c.x||0,c.y||0,c.width||0,c.height||0)),this._rect}},C.inherits(b,O);var g=b;H.exports=g},Dg8C:function(H,k,d){var O=d("XxSj"),x=d("bYtY");function C(A,b){A.eachSeriesByType("sankey",function(g){var f=g.getGraph(),c=f.nodes;if(c.length){var o=Infinity,r=-Infinity;x.each(c,function(i){var n=i.getLayout().value;n<o&&(o=n),n>r&&(r=n)}),x.each(c,function(i){var n=new O({type:"color",mappingMethod:"linear",dataExtent:[o,r],visual:g.get("color")}),e=n.mapValueToVisual(i.getLayout().value),l=i.getModel().get("itemStyle.color");l!=null?i.setVisual("color",l):i.setVisual("color",e)})}})}H.exports=C},DjyN:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("Urep"),A=d.n(C),b=d("OaEy")},DlQD:function(H,k,d){(function(O,x){H.exports=x()})(this,function(){"use strict";function O(er,It){for(var _t=0;_t<It.length;_t++){var Xe=It[_t];Xe.enumerable=Xe.enumerable||!1,Xe.configurable=!0,"value"in Xe&&(Xe.writable=!0),Object.defineProperty(er,Xe.key,Xe)}}function x(er,It,_t){return It&&O(er.prototype,It),_t&&O(er,_t),er}function C(er,It){if(!er)return;if(typeof er=="string")return A(er,It);var _t=Object.prototype.toString.call(er).slice(8,-1);if(_t==="Object"&&er.constructor&&(_t=er.constructor.name),_t==="Map"||_t==="Set")return Array.from(er);if(_t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_t))return A(er,It)}function A(er,It){(It==null||It>er.length)&&(It=er.length);for(var _t=0,Xe=new Array(It);_t<It;_t++)Xe[_t]=er[_t];return Xe}function b(er,It){var _t;if(typeof Symbol=="undefined"||er[Symbol.iterator]==null){if(Array.isArray(er)||(_t=C(er))||It&&er&&typeof er.length=="number"){_t&&(er=_t);var Xe=0;return function(){return Xe>=er.length?{done:!0}:{done:!1,value:er[Xe++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return _t=er[Symbol.iterator](),_t.next.bind(_t)}function g(er,It){return It={exports:{}},er(It,It.exports),It.exports}var f=g(function(er){function It(){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 _t(Xe){er.exports.defaults=Xe}er.exports={defaults:It(),getDefaults:It,changeDefaults:_t}}),c=f.defaults,o=f.getDefaults,r=f.changeDefaults,i=/[&<>"']/,n=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,l=/[<>"']|&(?!#?\w+;)/g,t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a=function(It){return t[It]};function s(er,It){if(It){if(i.test(er))return er.replace(n,a)}else if(e.test(er))return er.replace(l,a);return er}var u=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function h(er){return er.replace(u,function(It,_t){return _t=_t.toLowerCase(),_t==="colon"?":":_t.charAt(0)==="#"?_t.charAt(1)==="x"?String.fromCharCode(parseInt(_t.substring(2),16)):String.fromCharCode(+_t.substring(1)):""})}var p=/(^|[^\[])\^/g;function m(er,It){er=er.source||er,It=It||"";var _t={replace:function(ie,X){return X=X.source||X,X=X.replace(p,"$1"),er=er.replace(ie,X),_t},getRegex:function(){return new RegExp(er,It)}};return _t}var v=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function E(er,It,_t){if(er){var Xe;try{Xe=decodeURIComponent(h(_t)).replace(v,"").toLowerCase()}catch(ie){return null}if(Xe.indexOf("javascript:")===0||Xe.indexOf("vbscript:")===0||Xe.indexOf("data:")===0)return null}It&&!y.test(_t)&&(_t=I(It,_t));try{_t=encodeURI(_t).replace(/%25/g,"%")}catch(ie){return null}return _t}var T={},w=/^[^:]+:\/*[^/]*$/,S=/^([^:]+:)[\s\S]*$/,_=/^([^:]+:\/*[^/]*)[\s\S]*$/;function I(er,It){T[" "+er]||(w.test(er)?T[" "+er]=er+"/":T[" "+er]=D(er,"/",!0)),er=T[" "+er];var _t=er.indexOf(":")===-1;return It.substring(0,2)==="//"?_t?It:er.replace(S,"$1")+It:It.charAt(0)==="/"?_t?It:er.replace(_,"$1")+It:er+It}var L={exec:function(){}};function N(er){for(var It=1,_t,Xe;It<arguments.length;It++){_t=arguments[It];for(Xe in _t)Object.prototype.hasOwnProperty.call(_t,Xe)&&(er[Xe]=_t[Xe])}return er}function R(er,It){var _t=er.replace(/\|/g,function(X,Be,Ce){for(var Z=!1,nt=Be;--nt>=0&&Ce[nt]==="\\";)Z=!Z;return Z?"|":" |"}),Xe=_t.split(/ \|/),ie=0;if(Xe.length>It)Xe.splice(It);else for(;Xe.length<It;)Xe.push("");for(;ie<Xe.length;ie++)Xe[ie]=Xe[ie].trim().replace(/\\\|/g,"|");return Xe}function D(er,It,_t){var Xe=er.length;if(Xe===0)return"";for(var ie=0;ie<Xe;){var X=er.charAt(Xe-ie-1);if(X===It&&!_t)ie++;else if(X!==It&&_t)ie++;else break}return er.substr(0,Xe-ie)}function F(er,It){if(er.indexOf(It[1])===-1)return-1;for(var _t=er.length,Xe=0,ie=0;ie<_t;ie++)if(er[ie]==="\\")ie++;else if(er[ie]===It[0])Xe++;else if(er[ie]===It[1]&&(Xe--,Xe<0))return ie;return-1}function M(er){er&&er.sanitize&&!er.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 U={escape:s,unescape:h,edit:m,cleanUrl:E,resolveUrl:I,noopTest:L,merge:N,splitCells:R,rtrim:D,findClosingBracket:F,checkSanitizeDeprecation:M},B=f.defaults,j=U.rtrim,W=U.splitCells,V=U.escape,z=U.findClosingBracket;function J(er,It,_t){var Xe=It.href,ie=It.title?V(It.title):null,X=er[1].replace(/\\([\[\]])/g,"$1");return er[0].charAt(0)!=="!"?{type:"link",raw:_t,href:Xe,title:ie,text:X}:{type:"image",raw:_t,href:Xe,title:ie,text:V(X)}}function q(er,It){var _t=er.match(/^(\s+)(?:```)/);if(_t===null)return It;var Xe=_t[1];return It.split(`
`).map(function(ie){var X=ie.match(/^\s+/);if(X===null)return ie;var Be=X[0];return Be.length>=Xe.length?ie.slice(Xe.length):ie}).join(`
`)}var de=function(){function er(_t){this.options=_t||B}var It=er.prototype;return It.space=function(Xe){var ie=this.rules.block.newline.exec(Xe);if(ie)return ie[0].length>1?{type:"space",raw:ie[0]}:{raw:`
`}},It.code=function(Xe,ie){var X=this.rules.block.code.exec(Xe);if(X){var Be=ie[ie.length-1];if(Be&&Be.type==="paragraph")return{raw:X[0],text:X[0].trimRight()};var Ce=X[0].replace(/^ {4}/gm,"");return{type:"code",raw:X[0],codeBlockStyle:"indented",text:this.options.pedantic?Ce:j(Ce,`
`)}}},It.fences=function(Xe){var ie=this.rules.block.fences.exec(Xe);if(ie){var X=ie[0],Be=q(X,ie[3]||"");return{type:"code",raw:X,lang:ie[2]?ie[2].trim():ie[2],text:Be}}},It.heading=function(Xe){var ie=this.rules.block.heading.exec(Xe);if(ie)return{type:"heading",raw:ie[0],depth:ie[1].length,text:ie[2]}},It.nptable=function(Xe){var ie=this.rules.block.nptable.exec(Xe);if(ie){var X={type:"table",header:W(ie[1].replace(/^ *| *\| *$/g,"")),align:ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ie[3]?ie[3].replace(/\n$/,"").split(`
`):[],raw:ie[0]};if(X.header.length===X.align.length){var Be=X.align.length,Ce;for(Ce=0;Ce<Be;Ce++)/^ *-+: *$/.test(X.align[Ce])?X.align[Ce]="right":/^ *:-+: *$/.test(X.align[Ce])?X.align[Ce]="center":/^ *:-+ *$/.test(X.align[Ce])?X.align[Ce]="left":X.align[Ce]=null;for(Be=X.cells.length,Ce=0;Ce<Be;Ce++)X.cells[Ce]=W(X.cells[Ce],X.header.length);return X}}},It.hr=function(Xe){var ie=this.rules.block.hr.exec(Xe);if(ie)return{type:"hr",raw:ie[0]}},It.blockquote=function(Xe){var ie=this.rules.block.blockquote.exec(Xe);if(ie){var X=ie[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ie[0],text:X}}},It.list=function(Xe){var ie=this.rules.block.list.exec(Xe);if(ie){for(var X=ie[0],Be=ie[2],Ce=Be.length>1,Z=Be[Be.length-1]===")",nt={type:"list",raw:X,ordered:Ce,start:Ce?+Be.slice(0,-1):"",loose:!1,items:[]},ct=ie[0].match(this.rules.block.item),Qe=!1,dt,Ft,Lr,Wt,ar,Ut,kt,st=ct.length,Rr=0;Rr<st;Rr++)dt=ct[Rr],X=dt,Ft=dt.length,dt=dt.replace(/^ *([*+-]|\d+[.)]) */,""),~dt.indexOf(`
`)&&(Ft-=dt.length,dt=this.options.pedantic?dt.replace(/^ {1,4}/gm,""):dt.replace(new RegExp("^ {1,"+Ft+"}","gm"),"")),Rr!==st-1&&(Lr=this.rules.block.bullet.exec(ct[Rr+1])[0],(Ce?Lr.length===1||!Z&&Lr[Lr.length-1]===")":Lr.length>1||this.options.smartLists&&Lr!==Be)&&(Wt=ct.slice(Rr+1).join(`
`),nt.raw=nt.raw.substring(0,nt.raw.length-Wt.length),Rr=st-1)),ar=Qe||/\n\n(?!\s*$)/.test(dt),Rr!==st-1&&(Qe=dt.charAt(dt.length-1)===`
`,ar||(ar=Qe)),ar&&(nt.loose=!0),Ut=/^\[[ xX]\] /.test(dt),kt=void 0,Ut&&(kt=dt[1]!==" ",dt=dt.replace(/^\[[ xX]\] +/,"")),nt.items.push({type:"list_item",raw:X,task:Ut,checked:kt,loose:ar,text:dt});return nt}},It.html=function(Xe){var ie=this.rules.block.html.exec(Xe);if(ie)return{type:this.options.sanitize?"paragraph":"html",raw:ie[0],pre:!this.options.sanitizer&&(ie[1]==="pre"||ie[1]==="script"||ie[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ie[0]):V(ie[0]):ie[0]}},It.def=function(Xe){var ie=this.rules.block.def.exec(Xe);if(ie){ie[3]&&(ie[3]=ie[3].substring(1,ie[3].length-1));var X=ie[1].toLowerCase().replace(/\s+/g," ");return{tag:X,raw:ie[0],href:ie[2],title:ie[3]}}},It.table=function(Xe){var ie=this.rules.block.table.exec(Xe);if(ie){var X={type:"table",header:W(ie[1].replace(/^ *| *\| *$/g,"")),align:ie[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ie[3]?ie[3].replace(/\n$/,"").split(`
`):[]};if(X.header.length===X.align.length){X.raw=ie[0];var Be=X.align.length,Ce;for(Ce=0;Ce<Be;Ce++)/^ *-+: *$/.test(X.align[Ce])?X.align[Ce]="right":/^ *:-+: *$/.test(X.align[Ce])?X.align[Ce]="center":/^ *:-+ *$/.test(X.align[Ce])?X.align[Ce]="left":X.align[Ce]=null;for(Be=X.cells.length,Ce=0;Ce<Be;Ce++)X.cells[Ce]=W(X.cells[Ce].replace(/^ *\| *| *\| *$/g,""),X.header.length);return X}}},It.lheading=function(Xe){var ie=this.rules.block.lheading.exec(Xe);if(ie)return{type:"heading",raw:ie[0],depth:ie[2].charAt(0)==="="?1:2,text:ie[1]}},It.paragraph=function(Xe){var ie=this.rules.block.paragraph.exec(Xe);if(ie)return{type:"paragraph",raw:ie[0],text:ie[1].charAt(ie[1].length-1)===`
`?ie[1].slice(0,-1):ie[1]}},It.text=function(Xe,ie){var X=this.rules.block.text.exec(Xe);if(X){var Be=ie[ie.length-1];return Be&&Be.type==="text"?{raw:X[0],text:X[0]}:{type:"text",raw:X[0],text:X[0]}}},It.escape=function(Xe){var ie=this.rules.inline.escape.exec(Xe);if(ie)return{type:"escape",raw:ie[0],text:V(ie[1])}},It.tag=function(Xe,ie,X){var Be=this.rules.inline.tag.exec(Xe);if(Be)return!ie&&/^<a /i.test(Be[0])?ie=!0:ie&&/^<\/a>/i.test(Be[0])&&(ie=!1),!X&&/^<(pre|code|kbd|script)(\s|>)/i.test(Be[0])?X=!0:X&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(Be[0])&&(X=!1),{type:this.options.sanitize?"text":"html",raw:Be[0],inLink:ie,inRawBlock:X,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Be[0]):V(Be[0]):Be[0]}},It.link=function(Xe){var ie=this.rules.inline.link.exec(Xe);if(ie){var X=z(ie[2],"()");if(X>-1){var Be=ie[0].indexOf("!")===0?5:4,Ce=Be+ie[1].length+X;ie[2]=ie[2].substring(0,X),ie[0]=ie[0].substring(0,Ce).trim(),ie[3]=""}var Z=ie[2],nt="";if(this.options.pedantic){var ct=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(Z);ct?(Z=ct[1],nt=ct[3]):nt=""}else nt=ie[3]?ie[3].slice(1,-1):"";Z=Z.trim().replace(/^<([\s\S]*)>$/,"$1");var Qe=J(ie,{href:Z&&Z.replace(this.rules.inline._escapes,"$1"),title:nt&&nt.replace(this.rules.inline._escapes,"$1")},ie[0]);return Qe}},It.reflink=function(Xe,ie){var X;if((X=this.rules.inline.reflink.exec(Xe))||(X=this.rules.inline.nolink.exec(Xe))){var Be=(X[2]||X[1]).replace(/\s+/g," ");if(Be=ie[Be.toLowerCase()],!Be||!Be.href){var Ce=X[0].charAt(0);return{type:"text",raw:Ce,text:Ce}}var Z=J(X,Be,X[0]);return Z}},It.strong=function(Xe,ie,X){X===void 0&&(X="");var Be=this.rules.inline.strong.start.exec(Xe);if(Be&&(!Be[1]||Be[1]&&(X===""||this.rules.inline.punctuation.exec(X)))){ie=ie.slice(-1*Xe.length);var Ce=Be[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;Ce.lastIndex=0;for(var Z;(Be=Ce.exec(ie))!=null;)if(Z=this.rules.inline.strong.middle.exec(ie.slice(0,Be.index+3)),Z)return{type:"strong",raw:Xe.slice(0,Z[0].length),text:Xe.slice(2,Z[0].length-2)}}},It.em=function(Xe,ie,X){X===void 0&&(X="");var Be=this.rules.inline.em.start.exec(Xe);if(Be&&(!Be[1]||Be[1]&&(X===""||this.rules.inline.punctuation.exec(X)))){ie=ie.slice(-1*Xe.length);var Ce=Be[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;Ce.lastIndex=0;for(var Z;(Be=Ce.exec(ie))!=null;)if(Z=this.rules.inline.em.middle.exec(ie.slice(0,Be.index+2)),Z)return{type:"em",raw:Xe.slice(0,Z[0].length),text:Xe.slice(1,Z[0].length-1)}}},It.codespan=function(Xe){var ie=this.rules.inline.code.exec(Xe);if(ie){var X=ie[2].replace(/\n/g," "),Be=/[^ ]/.test(X),Ce=X.startsWith(" ")&&X.endsWith(" ");return Be&&Ce&&(X=X.substring(1,X.length-1)),X=V(X,!0),{type:"codespan",raw:ie[0],text:X}}},It.br=function(Xe){var ie=this.rules.inline.br.exec(Xe);if(ie)return{type:"br",raw:ie[0]}},It.del=function(Xe){var ie=this.rules.inline.del.exec(Xe);if(ie)return{type:"del",raw:ie[0],text:ie[1]}},It.autolink=function(Xe,ie){var X=this.rules.inline.autolink.exec(Xe);if(X){var Be,Ce;return X[2]==="@"?(Be=V(this.options.mangle?ie(X[1]):X[1]),Ce="mailto:"+Be):(Be=V(X[1]),Ce=Be),{type:"link",raw:X[0],text:Be,href:Ce,tokens:[{type:"text",raw:Be,text:Be}]}}},It.url=function(Xe,ie){var X;if(X=this.rules.inline.url.exec(Xe)){var Be,Ce;if(X[2]==="@")Be=V(this.options.mangle?ie(X[0]):X[0]),Ce="mailto:"+Be;else{var Z;do Z=X[0],X[0]=this.rules.inline._backpedal.exec(X[0])[0];while(Z!==X[0]);Be=V(X[0]),X[1]==="www."?Ce="http://"+Be:Ce=Be}return{type:"link",raw:X[0],text:Be,href:Ce,tokens:[{type:"text",raw:Be,text:Be}]}}},It.inlineText=function(Xe,ie,X){var Be=this.rules.inline.text.exec(Xe);if(Be){var Ce;return ie?Ce=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Be[0]):V(Be[0]):Be[0]:Ce=V(this.options.smartypants?X(Be[0]):Be[0]),{type:"text",raw:Be[0],text:Ce}}},er}(),ae=U.noopTest,ve=U.edit,_e=U.merge,Ie={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:ae,table:ae,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Ie._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ie._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ie.def=ve(Ie.def).replace("label",Ie._label).replace("title",Ie._title).getRegex(),Ie.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ie.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Ie.item=ve(Ie.item,"gm").replace(/bull/g,Ie.bullet).getRegex(),Ie.list=ve(Ie.list).replace(/bull/g,Ie.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ie.def.source+")").getRegex(),Ie._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",Ie._comment=/<!--(?!-?>)[\s\S]*?-->/,Ie.html=ve(Ie.html,"i").replace("comment",Ie._comment).replace("tag",Ie._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ie.paragraph=ve(Ie._paragraph).replace("hr",Ie.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",Ie._tag).getRegex(),Ie.blockquote=ve(Ie.blockquote).replace("paragraph",Ie.paragraph).getRegex(),Ie.normal=_e({},Ie),Ie.gfm=_e({},Ie.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*|$)"}),Ie.gfm.nptable=ve(Ie.gfm.nptable).replace("hr",Ie.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",Ie._tag).getRegex(),Ie.gfm.table=ve(Ie.gfm.table).replace("hr",Ie.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",Ie._tag).getRegex(),Ie.pedantic=_e({},Ie.normal,{html:ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ie._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:ae,paragraph:ve(Ie.normal._paragraph).replace("hr",Ie.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ie.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var He={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ae,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:ae,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",Ie._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=_e({},He),He.pedantic=_e({},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=_e({},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=_e({},He.gfm,{br:ve(He.br).replace("{2,}","*").getRegex(),text:ve(He.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var me={block:Ie,inline:He},ke=f.defaults,se=me.block,te=me.inline;function Ge(er){return er.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 oe(er){var It="",_t,Xe,ie=er.length;for(_t=0;_t<ie;_t++)Xe=er.charCodeAt(_t),Math.random()>.5&&(Xe="x"+Xe.toString(16)),It+="&#"+Xe+";";return It}var Y=function(){function er(_t){this.tokens=[],this.tokens.links=Object.create(null),this.options=_t||ke,this.options.tokenizer=this.options.tokenizer||new de,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Xe={block:se.normal,inline:te.normal};this.options.pedantic?(Xe.block=se.pedantic,Xe.inline=te.pedantic):this.options.gfm&&(Xe.block=se.gfm,this.options.breaks?Xe.inline=te.breaks:Xe.inline=te.gfm),this.tokenizer.rules=Xe}er.lex=function(Xe,ie){var X=new er(ie);return X.lex(Xe)};var It=er.prototype;return It.lex=function(Xe){return Xe=Xe.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Xe,this.tokens,!0),this.inline(this.tokens),this.tokens},It.blockTokens=function(Xe,ie,X){ie===void 0&&(ie=[]),X===void 0&&(X=!0),Xe=Xe.replace(/^ +$/gm,"");for(var Be,Ce,Z,nt;Xe;){if(Be=this.tokenizer.space(Xe)){Xe=Xe.substring(Be.raw.length),Be.type&&ie.push(Be);continue}if(Be=this.tokenizer.code(Xe,ie)){Xe=Xe.substring(Be.raw.length),Be.type?ie.push(Be):(nt=ie[ie.length-1],nt.raw+=`
`+Be.raw,nt.text+=`
`+Be.text);continue}if(Be=this.tokenizer.fences(Xe)){Xe=Xe.substring(Be.raw.length),ie.push(Be);continue}if(Be=this.tokenizer.heading(Xe)){Xe=Xe.substring(Be.raw.length),ie.push(Be);continue}if(Be=this.tokenizer.nptable(Xe)){Xe=Xe.substring(Be.raw.length),ie.push(Be);continue}if(Be=this.tokenizer.hr(Xe)){Xe=Xe.substring(Be.raw.length),ie.push(Be);continue}if(Be=this.tokenizer.blockquote(Xe)){Xe=Xe.substring(Be.raw.length),Be.tokens=this.blockTokens(Be.text,[],X),ie.push(Be);continue}if(Be=this.tokenizer.list(Xe)){for(Xe=Xe.substring(Be.raw.length),Z=Be.items.length,Ce=0;Ce<Z;Ce++)Be.items[Ce].tokens=this.blockTokens(Be.items[Ce].text,[],!1);ie.push(Be);continue}if(Be=this.tokenizer.html(Xe)){Xe=Xe.substring(Be.raw.length),ie.push(Be);continue}if(X&&(Be=this.tokenizer.def(Xe))){Xe=Xe.substring(Be.raw.length),this.tokens.links[Be.tag]||(this.tokens.links[Be.tag]={href:Be.href,title:Be.title});continue}if(Be=this.tokenizer.table(Xe)){Xe=Xe.substring(Be.raw.length),ie.push(Be);continue}if(Be=this.tokenizer.lheading(Xe)){Xe=Xe.substring(Be.raw.length),ie.push(Be);continue}if(X&&(Be=this.tokenizer.paragraph(Xe))){Xe=Xe.substring(Be.raw.length),ie.push(Be);continue}if(Be=this.tokenizer.text(Xe,ie)){Xe=Xe.substring(Be.raw.length),Be.type?ie.push(Be):(nt=ie[ie.length-1],nt.raw+=`
`+Be.raw,nt.text+=`
`+Be.text);continue}if(Xe){var ct="Infinite loop on byte: "+Xe.charCodeAt(0);if(this.options.silent){console.error(ct);break}else throw new Error(ct)}}return ie},It.inline=function(Xe){var ie,X,Be,Ce,Z,nt,ct=Xe.length;for(ie=0;ie<ct;ie++){nt=Xe[ie];switch(nt.type){case"paragraph":case"text":case"heading":{nt.tokens=[],this.inlineTokens(nt.text,nt.tokens);break}case"table":{for(nt.tokens={header:[],cells:[]},Ce=nt.header.length,X=0;X<Ce;X++)nt.tokens.header[X]=[],this.inlineTokens(nt.header[X],nt.tokens.header[X]);for(Ce=nt.cells.length,X=0;X<Ce;X++)for(Z=nt.cells[X],nt.tokens.cells[X]=[],Be=0;Be<Z.length;Be++)nt.tokens.cells[X][Be]=[],this.inlineTokens(Z[Be],nt.tokens.cells[X][Be]);break}case"blockquote":{this.inline(nt.tokens);break}case"list":{for(Ce=nt.items.length,X=0;X<Ce;X++)this.inline(nt.items[X].tokens);break}}}return Xe},It.inlineTokens=function(Xe,ie,X,Be,Ce){ie===void 0&&(ie=[]),X===void 0&&(X=!1),Be===void 0&&(Be=!1),Ce===void 0&&(Ce="");var Z,nt=Xe,ct;if(this.tokens.links){var Qe=Object.keys(this.tokens.links);if(Qe.length>0)for(;(ct=this.tokenizer.rules.inline.reflinkSearch.exec(nt))!=null;)Qe.includes(ct[0].slice(ct[0].lastIndexOf("[")+1,-1))&&(nt=nt.slice(0,ct.index)+"["+"a".repeat(ct[0].length-2)+"]"+nt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ct=this.tokenizer.rules.inline.blockSkip.exec(nt))!=null;)nt=nt.slice(0,ct.index)+"["+"a".repeat(ct[0].length-2)+"]"+nt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Xe;){if(Z=this.tokenizer.escape(Xe)){Xe=Xe.substring(Z.raw.length),ie.push(Z);continue}if(Z=this.tokenizer.tag(Xe,X,Be)){Xe=Xe.substring(Z.raw.length),X=Z.inLink,Be=Z.inRawBlock,ie.push(Z);continue}if(Z=this.tokenizer.link(Xe)){Xe=Xe.substring(Z.raw.length),Z.type==="link"&&(Z.tokens=this.inlineTokens(Z.text,[],!0,Be)),ie.push(Z);continue}if(Z=this.tokenizer.reflink(Xe,this.tokens.links)){Xe=Xe.substring(Z.raw.length),Z.type==="link"&&(Z.tokens=this.inlineTokens(Z.text,[],!0,Be)),ie.push(Z);continue}if(Z=this.tokenizer.strong(Xe,nt,Ce)){Xe=Xe.substring(Z.raw.length),Z.tokens=this.inlineTokens(Z.text,[],X,Be),ie.push(Z);continue}if(Z=this.tokenizer.em(Xe,nt,Ce)){Xe=Xe.substring(Z.raw.length),Z.tokens=this.inlineTokens(Z.text,[],X,Be),ie.push(Z);continue}if(Z=this.tokenizer.codespan(Xe)){Xe=Xe.substring(Z.raw.length),ie.push(Z);continue}if(Z=this.tokenizer.br(Xe)){Xe=Xe.substring(Z.raw.length),ie.push(Z);continue}if(Z=this.tokenizer.del(Xe)){Xe=Xe.substring(Z.raw.length),Z.tokens=this.inlineTokens(Z.text,[],X,Be),ie.push(Z);continue}if(Z=this.tokenizer.autolink(Xe,oe)){Xe=Xe.substring(Z.raw.length),ie.push(Z);continue}if(!X&&(Z=this.tokenizer.url(Xe,oe))){Xe=Xe.substring(Z.raw.length),ie.push(Z);continue}if(Z=this.tokenizer.inlineText(Xe,Be,Ge)){Xe=Xe.substring(Z.raw.length),Ce=Z.raw.slice(-1),ie.push(Z);continue}if(Xe){var dt="Infinite loop on byte: "+Xe.charCodeAt(0);if(this.options.silent){console.error(dt);break}else throw new Error(dt)}}return ie},x(er,null,[{key:"rules",get:function(){return{block:se,inline:te}}}]),er}(),G=f.defaults,Q=U.cleanUrl,ye=U.escape,ce=function(){function er(_t){this.options=_t||G}var It=er.prototype;return It.code=function(Xe,ie,X){var Be=(ie||"").match(/\S*/)[0];if(this.options.highlight){var Ce=this.options.highlight(Xe,Be);Ce!=null&&Ce!==Xe&&(X=!0,Xe=Ce)}return Be?'<pre><code class="'+this.options.langPrefix+ye(Be,!0)+'">'+(X?Xe:ye(Xe,!0))+`</code></pre>
`:"<pre><code>"+(X?Xe:ye(Xe,!0))+`</code></pre>
`},It.blockquote=function(Xe){return`<blockquote>
`+Xe+`</blockquote>
`},It.html=function(Xe){return Xe},It.heading=function(Xe,ie,X,Be){return this.options.headerIds?"<h"+ie+' id="'+this.options.headerPrefix+Be.slug(X)+'">'+Xe+"</h"+ie+`>
`:"<h"+ie+">"+Xe+"</h"+ie+`>
`},It.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},It.list=function(Xe,ie,X){var Be=ie?"ol":"ul",Ce=ie&&X!==1?' start="'+X+'"':"";return"<"+Be+Ce+`>
`+Xe+"</"+Be+`>
`},It.listitem=function(Xe){return"<li>"+Xe+`</li>
`},It.checkbox=function(Xe){return"<input "+(Xe?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},It.paragraph=function(Xe){return"<p>"+Xe+`</p>
`},It.table=function(Xe,ie){return ie&&(ie="<tbody>"+ie+"</tbody>"),`<table>
<thead>
`+Xe+`</thead>
`+ie+`</table>
`},It.tablerow=function(Xe){return`<tr>
`+Xe+`</tr>
`},It.tablecell=function(Xe,ie){var X=ie.header?"th":"td",Be=ie.align?"<"+X+' align="'+ie.align+'">':"<"+X+">";return Be+Xe+"</"+X+`>
`},It.strong=function(Xe){return"<strong>"+Xe+"</strong>"},It.em=function(Xe){return"<em>"+Xe+"</em>"},It.codespan=function(Xe){return"<code>"+Xe+"</code>"},It.br=function(){return this.options.xhtml?"<br/>":"<br>"},It.del=function(Xe){return"<del>"+Xe+"</del>"},It.link=function(Xe,ie,X){if(Xe=Q(this.options.sanitize,this.options.baseUrl,Xe),Xe===null)return X;var Be='<a href="'+ye(Xe)+'"';return ie&&(Be+=' title="'+ie+'"'),Be+=">"+X+"</a>",Be},It.image=function(Xe,ie,X){if(Xe=Q(this.options.sanitize,this.options.baseUrl,Xe),Xe===null)return X;var Be='<img src="'+Xe+'" alt="'+X+'"';return ie&&(Be+=' title="'+ie+'"'),Be+=this.options.xhtml?"/>":">",Be},It.text=function(Xe){return Xe},er}(),Te=function(){function er(){}var It=er.prototype;return It.strong=function(Xe){return Xe},It.em=function(Xe){return Xe},It.codespan=function(Xe){return Xe},It.del=function(Xe){return Xe},It.html=function(Xe){return Xe},It.text=function(Xe){return Xe},It.link=function(Xe,ie,X){return""+X},It.image=function(Xe,ie,X){return""+X},It.br=function(){return""},er}(),Se=function(){function er(){this.seen={}}var It=er.prototype;return It.slug=function(Xe){var ie=Xe.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(ie)){var X=ie;do this.seen[X]++,ie=X+"-"+this.seen[X];while(this.seen.hasOwnProperty(ie))}return this.seen[ie]=0,ie},er}(),le=f.defaults,fe=U.unescape,Ee=function(){function er(_t){this.options=_t||le,this.options.renderer=this.options.renderer||new ce,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Te,this.slugger=new Se}er.parse=function(Xe,ie){var X=new er(ie);return X.parse(Xe)};var It=er.prototype;return It.parse=function(Xe,ie){ie===void 0&&(ie=!0);var X="",Be,Ce,Z,nt,ct,Qe,dt,Ft,Lr,Wt,ar,Ut,kt,st,Rr,on,Sn,zn,Ii=Xe.length;for(Be=0;Be<Ii;Be++){Wt=Xe[Be];switch(Wt.type){case"space":continue;case"hr":{X+=this.renderer.hr();continue}case"heading":{X+=this.renderer.heading(this.parseInline(Wt.tokens),Wt.depth,fe(this.parseInline(Wt.tokens,this.textRenderer)),this.slugger);continue}case"code":{X+=this.renderer.code(Wt.text,Wt.lang,Wt.escaped);continue}case"table":{for(Ft="",dt="",nt=Wt.header.length,Ce=0;Ce<nt;Ce++)dt+=this.renderer.tablecell(this.parseInline(Wt.tokens.header[Ce]),{header:!0,align:Wt.align[Ce]});for(Ft+=this.renderer.tablerow(dt),Lr="",nt=Wt.cells.length,Ce=0;Ce<nt;Ce++){for(Qe=Wt.tokens.cells[Ce],dt="",ct=Qe.length,Z=0;Z<ct;Z++)dt+=this.renderer.tablecell(this.parseInline(Qe[Z]),{header:!1,align:Wt.align[Z]});Lr+=this.renderer.tablerow(dt)}X+=this.renderer.table(Ft,Lr);continue}case"blockquote":{Lr=this.parse(Wt.tokens),X+=this.renderer.blockquote(Lr);continue}case"list":{for(ar=Wt.ordered,Ut=Wt.start,kt=Wt.loose,nt=Wt.items.length,Lr="",Ce=0;Ce<nt;Ce++)Rr=Wt.items[Ce],on=Rr.checked,Sn=Rr.task,st="",Rr.task&&(zn=this.renderer.checkbox(on),kt?Rr.tokens.length>0&&Rr.tokens[0].type==="text"?(Rr.tokens[0].text=zn+" "+Rr.tokens[0].text,Rr.tokens[0].tokens&&Rr.tokens[0].tokens.length>0&&Rr.tokens[0].tokens[0].type==="text"&&(Rr.tokens[0].tokens[0].text=zn+" "+Rr.tokens[0].tokens[0].text)):Rr.tokens.unshift({type:"text",text:zn}):st+=zn),st+=this.parse(Rr.tokens,kt),Lr+=this.renderer.listitem(st,Sn,on);X+=this.renderer.list(Lr,ar,Ut);continue}case"html":{X+=this.renderer.html(Wt.text);continue}case"paragraph":{X+=this.renderer.paragraph(this.parseInline(Wt.tokens));continue}case"text":{for(Lr=Wt.tokens?this.parseInline(Wt.tokens):Wt.text;Be+1<Ii&&Xe[Be+1].type==="text";)Wt=Xe[++Be],Lr+=`
`+(Wt.tokens?this.parseInline(Wt.tokens):Wt.text);X+=ie?this.renderer.paragraph(Lr):Lr;continue}default:{var yn='Token with "'+Wt.type+'" type was not found.';if(this.options.silent){console.error(yn);return}else throw new Error(yn)}}}return X},It.parseInline=function(Xe,ie){ie=ie||this.renderer;var X="",Be,Ce,Z=Xe.length;for(Be=0;Be<Z;Be++){Ce=Xe[Be];switch(Ce.type){case"escape":{X+=ie.text(Ce.text);break}case"html":{X+=ie.html(Ce.text);break}case"link":{X+=ie.link(Ce.href,Ce.title,this.parseInline(Ce.tokens,ie));break}case"image":{X+=ie.image(Ce.href,Ce.title,Ce.text);break}case"strong":{X+=ie.strong(this.parseInline(Ce.tokens,ie));break}case"em":{X+=ie.em(this.parseInline(Ce.tokens,ie));break}case"codespan":{X+=ie.codespan(Ce.text);break}case"br":{X+=ie.br();break}case"del":{X+=ie.del(this.parseInline(Ce.tokens,ie));break}case"text":{X+=ie.text(Ce.text);break}default:{var nt='Token with "'+Ce.type+'" type was not found.';if(this.options.silent){console.error(nt);return}else throw new Error(nt)}}}return X},er}(),Ve=U.merge,vt=U.checkSanitizeDeprecation,et=U.escape,Oe=f.getDefaults,Tt=f.changeDefaults,Je=f.defaults;function St(er,It,_t){if(typeof er=="undefined"||er===null)throw new Error("marked(): input parameter is undefined or null");if(typeof er!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(er)+", string expected");if(typeof It=="function"&&(_t=It,It=null),It=Ve({},St.defaults,It||{}),vt(It),_t){var Xe=It.highlight,ie;try{ie=Y.lex(er,It)}catch(Z){return _t(Z)}var X=function(nt){var ct;if(!nt)try{ct=Ee.parse(ie,It)}catch(Qe){nt=Qe}return It.highlight=Xe,nt?_t(nt):_t(null,ct)};if(!Xe||Xe.length<3)return X();if(delete It.highlight,!ie.length)return X();var Be=0;St.walkTokens(ie,function(Z){Z.type==="code"&&(Be++,setTimeout(function(){Xe(Z.text,Z.lang,function(nt,ct){if(nt)return X(nt);ct!=null&&ct!==Z.text&&(Z.text=ct,Z.escaped=!0),Be--,Be===0&&X()})},0))}),Be===0&&X();return}try{var Ce=Y.lex(er,It);return It.walkTokens&&St.walkTokens(Ce,It.walkTokens),Ee.parse(Ce,It)}catch(Z){if(Z.message+=`
Please report this to https://github.com/markedjs/marked.`,It.silent)return"<p>An error occurred:</p><pre>"+et(Z.message+"",!0)+"</pre>";throw Z}}St.options=St.setOptions=function(er){return Ve(St.defaults,er),Tt(St.defaults),St},St.getDefaults=Oe,St.defaults=Je,St.use=function(er){var It=Ve({},er);if(er.renderer&&function(){var Xe=St.defaults.renderer||new ce,ie=function(Ce){var Z=Xe[Ce];Xe[Ce]=function(){for(var nt=arguments.length,ct=new Array(nt),Qe=0;Qe<nt;Qe++)ct[Qe]=arguments[Qe];var dt=er.renderer[Ce].apply(Xe,ct);return dt===!1&&(dt=Z.apply(Xe,ct)),dt}};for(var X in er.renderer)ie(X);It.renderer=Xe}(),er.tokenizer&&function(){var Xe=St.defaults.tokenizer||new de,ie=function(Ce){var Z=Xe[Ce];Xe[Ce]=function(){for(var nt=arguments.length,ct=new Array(nt),Qe=0;Qe<nt;Qe++)ct[Qe]=arguments[Qe];var dt=er.tokenizer[Ce].apply(Xe,ct);return dt===!1&&(dt=Z.apply(Xe,ct)),dt}};for(var X in er.tokenizer)ie(X);It.tokenizer=Xe}(),er.walkTokens){var _t=St.defaults.walkTokens;It.walkTokens=function(Xe){er.walkTokens(Xe),_t&&_t(Xe)}}St.setOptions(It)},St.walkTokens=function(er,It){for(var _t=b(er),Xe;!(Xe=_t()).done;){var ie=Xe.value;It(ie);switch(ie.type){case"table":{for(var X=b(ie.tokens.header),Be;!(Be=X()).done;){var Ce=Be.value;St.walkTokens(Ce,It)}for(var Z=b(ie.tokens.cells),nt;!(nt=Z()).done;)for(var ct=nt.value,Qe=b(ct),dt;!(dt=Qe()).done;){var Ft=dt.value;St.walkTokens(Ft,It)}break}case"list":{St.walkTokens(ie.items,It);break}default:ie.tokens&&St.walkTokens(ie.tokens,It)}}},St.Parser=Ee,St.parser=Ee.parse,St.Renderer=ce,St.TextRenderer=Te,St.Lexer=Y,St.lexer=Y.lex,St.Tokenizer=de,St.Slugger=Se,St.parse=St;var Mt=St;return Mt})},"DlR+":function(H,k,d){var O=d("MFOe"),x=O.Global,C=O.trim;H.exports={name:"cookieStorage",read:b,write:f,each:g,remove:c,clearAll:o};var A=x.document;function b(i){if(!i||!r(i))return null;var n="(?:^|.*;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(A.cookie.replace(new RegExp(n),"$1"))}function g(i){for(var n=A.cookie.split(/; ?/g),e=n.length-1;e>=0;e--){if(!C(n[e]))continue;var l=n[e].split("="),t=unescape(l[0]),a=unescape(l[1]);i(a,t)}}function f(i,n){if(!i)return;A.cookie=escape(i)+"="+escape(n)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function c(i){if(!i||!r(i))return;A.cookie=escape(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function o(){g(function(i,n){c(n)})}function r(i){return new RegExp("(?:^|;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(A.cookie)}},Ducp:function(H,k,d){var O=d("bYtY"),x=d("IwbS"),C=d("+TT/"),A=d("XpcN"),b=x.Group,g=["width","height"],f=["x","y"],c=A.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){c.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new b),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new b),this._showController},resetInner:function(){c.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(r,i,n,e,l,t,a){var s=this;c.superCall(this,"renderInner",r,i,n,e,l,t,a);var u=this._controllerGroup,h=i.get("pageIconSize",!0);O.isArray(h)||(h=[h,h]),m("pagePrev",0);var p=i.getModel("pageTextStyle");u.add(new x.Text({name:"pageText",style:{textFill:p.getTextColor(),font:p.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),m("pageNext",1);function m(v,y){var E=v+"DataIndex",T=x.createIcon(i.get("pageIcons",!0)[i.getOrient().name][y],{onclick:O.bind(s._pageGo,s,E,i,e)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});T.name=v,u.add(T)}},layoutInner:function(r,i,n,e,l,t){var a=this.getSelectorGroup(),s=r.getOrient().index,u=g[s],h=f[s],p=g[1-s],m=f[1-s];l&&C.box("horizontal",a,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),y=a.getBoundingRect(),E=[-y.x,-y.y],T=O.clone(n);l&&(T[u]=n[u]-y[u]-v);var w=this._layoutContentAndController(r,e,T,s,u,p,m);if(l){if(t==="end")E[s]+=w[u]+v;else{var S=y[u]+v;E[s]-=S,w[h]-=S}w[u]+=y[u]+v,E[1-s]+=w[m]+w[p]/2-y[p]/2,w[p]=Math.max(w[p],y[p]),w[m]=Math.min(w[m],y[m]+E[1-s]),a.attr("position",E)}return w},_layoutContentAndController:function(r,i,n,e,l,t,a){var s=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup;C.box(r.get("orient"),s,r.get("itemGap"),e?n.width:null,e?null:n.height),C.box("horizontal",h,r.get("pageButtonItemGap",!0));var p=s.getBoundingRect(),m=h.getBoundingRect(),v=this._showController=p[l]>n[l],y=[-p.x,-p.y];i||(y[e]=s.position[e]);var E=[0,0],T=[-m.x,-m.y],w=O.retrieve2(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(v){var S=r.get("pageButtonPosition",!0);S==="end"?T[e]+=n[l]-m[l]:E[e]+=m[l]+w}T[1-e]+=p[t]/2-m[t]/2,s.attr("position",y),u.attr("position",E),h.attr("position",T);var _={x:0,y:0};if(_[l]=v?n[l]:p[l],_[t]=Math.max(p[t],m[t]),_[a]=Math.min(0,m[a]+T[1-e]),u.__rectSize=n[l],v){var I={x:0,y:0};I[l]=Math.max(n[l]-m[l]-w,0),I[t]=_[t],u.setClipPath(new x.Rect({shape:I})),u.__rectSize=I[l]}else h.eachChild(function(N){N.attr({invisible:!0,silent:!0})});var L=this._getPageInfo(r);return L.pageIndex!=null&&x.updateProps(s,{position:L.contentPosition},v?r:!1),this._updatePageInfoView(r,L),_},_pageGo:function(r,i,n){var e=this._getPageInfo(i)[r];e!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:i.id})},_updatePageInfoView:function(r,i){var n=this._controllerGroup;O.each(["pagePrev","pageNext"],function(u){var h=i[u+"DataIndex"]!=null,p=n.childOfName(u);p&&(p.setStyle("fill",h?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),p.cursor=h?"pointer":"default")});var e=n.childOfName("pageText"),l=r.get("pageFormatter"),t=i.pageIndex,a=t!=null?t+1:0,s=i.pageCount;e&&l&&e.setStyle("text",O.isString(l)?l.replace("{current}",a).replace("{total}",s):l({current:a,total:s}))},_getPageInfo:function(r){var i=r.get("scrollDataIndex",!0),n=this.getContentGroup(),e=this._containerGroup.__rectSize,l=r.getOrient().index,t=g[l],a=f[l],s=this._findTargetItemIndex(i),u=n.children(),h=u[s],p=u.length,m=p?1:0,v={contentPosition:n.position.slice(),pageCount:m,pageIndex:m-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return v;var y=_(h);v.contentPosition[l]=-y.s;for(var E=s+1,T=y,w=y,S=null;E<=p;++E)S=_(u[E]),(!S&&w.e>T.s+e||S&&!I(S,T.s))&&(w.i>T.i?T=w:T=S,T&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=T.i),++v.pageCount)),w=S;for(var E=s-1,T=y,w=y,S=null;E>=-1;--E)S=_(u[E]),(!S||!I(w,S.s))&&T.i<w.i&&(w=T,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=T.i),++v.pageCount,++v.pageIndex),T=S;return v;function _(L){if(L){var N=L.getBoundingRect(),R=N[a]+L.position[l];return{s:R,e:R+N[t],i:L.__legendDataIndex}}}function I(L,N){return L.e>=N&&L.s<=N+e}},_findTargetItemIndex:function(r){if(!this._showController)return 0;var i,n=this.getContentGroup(),e;return n.eachChild(function(l,t){var a=l.__legendDataIndex;e==null&&a!=null&&(e=t),a===r&&(i=t)}),i!=null?i:e}}),o=c;H.exports=o},"E/ki":function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},E2g8:function(H,k,d){(function(O,x){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/(function(C,A){H.exports=A()})(this,function(){"use strict";function C(ce){var Te=typeof ce;return ce!==null&&(Te==="object"||Te==="function")}function A(ce){return typeof ce=="function"}var b=void 0;Array.isArray?b=Array.isArray:b=function(Te){return Object.prototype.toString.call(Te)==="[object Array]"};var g=b,f=0,c=void 0,o=void 0,r=function(Te,Se){y[f]=Te,y[f+1]=Se,f+=2,f===2&&(o?o(E):w())};function i(ce){o=ce}function n(ce){r=ce}var e=typeof window!="undefined"?window:void 0,l=e||{},t=l.MutationObserver||l.WebKitMutationObserver,a=typeof self=="undefined"&&typeof O!="undefined"&&{}.toString.call(O)==="[object process]",s=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function u(){return function(){return O.nextTick(E)}}function h(){return typeof c!="undefined"?function(){c(E)}:v()}function p(){var ce=0,Te=new t(E),Se=document.createTextNode("");return Te.observe(Se,{characterData:!0}),function(){Se.data=ce=++ce%2}}function m(){var ce=new MessageChannel;return ce.port1.onmessage=E,function(){return ce.port2.postMessage(0)}}function v(){var ce=setTimeout;return function(){return ce(E,1)}}var y=new Array(1e3);function E(){for(var ce=0;ce<f;ce+=2){var Te=y[ce],Se=y[ce+1];Te(Se),y[ce]=void 0,y[ce+1]=void 0}f=0}function T(){try{var ce=Function("return this")().require("vertx");return c=ce.runOnLoop||ce.runOnContext,h()}catch(Te){return v()}}var w=void 0;a?w=u():t?w=p():s?w=m():e===void 0&&!0?w=T():w=v();function S(ce,Te){var Se=this,le=new this.constructor(L);le[I]===void 0&&me(le);var fe=Se._state;if(fe){var Ee=arguments[fe-1];r(function(){return ve(fe,le,Ee,Se._result)})}else de(Se,le,ce,Te);return le}function _(ce){var Te=this;if(ce&&typeof ce=="object"&&ce.constructor===Te)return ce;var Se=new Te(L);return V(Se,ce),Se}var I=Math.random().toString(36).substring(2);function L(){}var N=void 0,R=1,D=2;function F(){return new TypeError("You cannot resolve a promise with itself")}function M(){return new TypeError("A promises callback cannot return that same promise.")}function U(ce,Te,Se,le){try{ce.call(Te,Se,le)}catch(fe){return fe}}function B(ce,Te,Se){r(function(le){var fe=!1,Ee=U(Se,Te,function(Ve){if(fe)return;fe=!0,Te!==Ve?V(le,Ve):J(le,Ve)},function(Ve){if(fe)return;fe=!0,q(le,Ve)},"Settle: "+(le._label||" unknown promise"));!fe&&Ee&&(fe=!0,q(le,Ee))},ce)}function j(ce,Te){Te._state===R?J(ce,Te._result):Te._state===D?q(ce,Te._result):de(Te,void 0,function(Se){return V(ce,Se)},function(Se){return q(ce,Se)})}function W(ce,Te,Se){Te.constructor===ce.constructor&&Se===S&&Te.constructor.resolve===_?j(ce,Te):Se===void 0?J(ce,Te):A(Se)?B(ce,Te,Se):J(ce,Te)}function V(ce,Te){if(ce===Te)q(ce,F());else if(C(Te)){var Se=void 0;try{Se=Te.then}catch(le){q(ce,le);return}W(ce,Te,Se)}else J(ce,Te)}function z(ce){ce._onerror&&ce._onerror(ce._result),ae(ce)}function J(ce,Te){if(ce._state!==N)return;ce._result=Te,ce._state=R,ce._subscribers.length!==0&&r(ae,ce)}function q(ce,Te){if(ce._state!==N)return;ce._state=D,ce._result=Te,r(z,ce)}function de(ce,Te,Se,le){var fe=ce._subscribers,Ee=fe.length;ce._onerror=null,fe[Ee]=Te,fe[Ee+R]=Se,fe[Ee+D]=le,Ee===0&&ce._state&&r(ae,ce)}function ae(ce){var Te=ce._subscribers,Se=ce._state;if(Te.length===0)return;for(var le=void 0,fe=void 0,Ee=ce._result,Ve=0;Ve<Te.length;Ve+=3)le=Te[Ve],fe=Te[Ve+Se],le?ve(Se,le,fe,Ee):fe(Ee);ce._subscribers.length=0}function ve(ce,Te,Se,le){var fe=A(Se),Ee=void 0,Ve=void 0,vt=!0;if(fe){try{Ee=Se(le)}catch(et){vt=!1,Ve=et}if(Te===Ee){q(Te,M());return}}else Ee=le;Te._state!==N||(fe&&vt?V(Te,Ee):vt===!1?q(Te,Ve):ce===R?J(Te,Ee):ce===D&&q(Te,Ee))}function _e(ce,Te){try{Te(function(le){V(ce,le)},function(le){q(ce,le)})}catch(Se){q(ce,Se)}}var Ie=0;function He(){return Ie++}function me(ce){ce[I]=Ie++,ce._state=void 0,ce._result=void 0,ce._subscribers=[]}function ke(){return new Error("Array Methods must be provided an Array")}var se=function(){function ce(Te,Se){this._instanceConstructor=Te,this.promise=new Te(L),this.promise[I]||me(this.promise),g(Se)?(this.length=Se.length,this._remaining=Se.length,this._result=new Array(this.length),this.length===0?J(this.promise,this._result):(this.length=this.length||0,this._enumerate(Se),this._remaining===0&&J(this.promise,this._result))):q(this.promise,ke())}return ce.prototype._enumerate=function(Se){for(var le=0;this._state===N&&le<Se.length;le++)this._eachEntry(Se[le],le)},ce.prototype._eachEntry=function(Se,le){var fe=this._instanceConstructor,Ee=fe.resolve;if(Ee===_){var Ve=void 0,vt=void 0,et=!1;try{Ve=Se.then}catch(Tt){et=!0,vt=Tt}if(Ve===S&&Se._state!==N)this._settledAt(Se._state,le,Se._result);else if(typeof Ve!="function")this._remaining--,this._result[le]=Se;else if(fe===Q){var Oe=new fe(L);et?q(Oe,vt):W(Oe,Se,Ve),this._willSettleAt(Oe,le)}else this._willSettleAt(new fe(function(Tt){return Tt(Se)}),le)}else this._willSettleAt(Ee(Se),le)},ce.prototype._settledAt=function(Se,le,fe){var Ee=this.promise;Ee._state===N&&(this._remaining--,Se===D?q(Ee,fe):this._result[le]=fe),this._remaining===0&&J(Ee,this._result)},ce.prototype._willSettleAt=function(Se,le){var fe=this;de(Se,void 0,function(Ee){return fe._settledAt(R,le,Ee)},function(Ee){return fe._settledAt(D,le,Ee)})},ce}();function te(ce){return new se(this,ce).promise}function Ge(ce){var Te=this;return g(ce)?new Te(function(Se,le){for(var fe=ce.length,Ee=0;Ee<fe;Ee++)Te.resolve(ce[Ee]).then(Se,le)}):new Te(function(Se,le){return le(new TypeError("You must pass an array to race."))})}function oe(ce){var Te=this,Se=new Te(L);return q(Se,ce),Se}function Y(){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 Q=function(){function ce(Te){this[I]=He(),this._result=this._state=void 0,this._subscribers=[],L!==Te&&(typeof Te!="function"&&Y(),this instanceof ce?_e(this,Te):G())}return ce.prototype.catch=function(Se){return this.then(null,Se)},ce.prototype.finally=function(Se){var le=this,fe=le.constructor;return A(Se)?le.then(function(Ee){return fe.resolve(Se()).then(function(){return Ee})},function(Ee){return fe.resolve(Se()).then(function(){throw Ee})}):le.then(Se,Se)},ce}();Q.prototype.then=S,Q.all=te,Q.race=Ge,Q.resolve=_,Q.reject=oe,Q._setScheduler=i,Q._setAsap=n,Q._asap=r;function ye(){var ce=void 0;if(typeof x!="undefined")ce=x;else if(typeof self!="undefined")ce=self;else try{ce=Function("return this")()}catch(le){throw new Error("polyfill failed because global object is unavailable in this environment")}var Te=ce.Promise;if(Te){var Se=null;try{Se=Object.prototype.toString.call(Te.resolve())}catch(le){}if(Se==="[object Promise]"&&!Te.cast)return}ce.Promise=Q}return Q.polyfill=ye,Q.Promise=Q,Q})}).call(this,d("Q2Ig"),d("yLpj"))},E4JC:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.StreamCipher,b=x.algo,g=[],f=[],c=[],o=b.Rabbit=A.extend({_doReset:function(){for(var n=this._key.words,e=this.cfg.iv,l=0;l<4;l++)n[l]=(n[l]<<8|n[l]>>>24)&16711935|(n[l]<<24|n[l]>>>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 l=0;l<4;l++)r.call(this);for(var l=0;l<8;l++)a[l]^=t[l+4&7];if(e){var s=e.words,u=s[0],h=s[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,m=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,v=p>>>16|m&4294901760,y=m<<16|p&65535;a[0]^=p,a[1]^=v,a[2]^=m,a[3]^=y,a[4]^=p,a[5]^=v,a[6]^=m,a[7]^=y;for(var l=0;l<4;l++)r.call(this)}},_doProcessBlock:function(n,e){var l=this._X;r.call(this),g[0]=l[0]^l[5]>>>16^l[3]<<16,g[1]=l[2]^l[7]>>>16^l[5]<<16,g[2]=l[4]^l[1]>>>16^l[7]<<16,g[3]=l[6]^l[3]>>>16^l[1]<<16;for(var t=0;t<4;t++)g[t]=(g[t]<<8|g[t]>>>24)&16711935|(g[t]<<24|g[t]>>>8)&4278255360,n[e+t]^=g[t]},blockSize:128/32,ivSize:64/32});function r(){for(var i=this._X,n=this._C,e=0;e<8;e++)f[e]=n[e];n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<f[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<f[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<f[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<f[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<f[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<f[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<f[6]>>>0?1:0)|0,this._b=n[7]>>>0<f[7]>>>0?1:0;for(var e=0;e<8;e++){var l=i[e]+n[e],t=l&65535,a=l>>>16,s=((t*t>>>17)+t*a>>>15)+a*a,u=((l&4294901760)*l|0)+((l&65535)*l|0);c[e]=s^u}i[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,i[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,i[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,i[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,i[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,i[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,i[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,i[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}x.Rabbit=A._createHelper(o)}(),O.Rabbit})},E9nw:function(H,k){H.exports=function(){var d=document.getSelection();if(!d.rangeCount)return function(){};for(var O=document.activeElement,x=[],C=0;C<d.rangeCount;C++)x.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||x.forEach(function(A){d.addRange(A)}),O&&O.focus()}}},ELLl:function(H,k,d){(function(O){O(d("VrN/"))})(function(O){var x={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},C=O.Pos;O.defineOption("autoCloseBrackets",!1,function(t,a,s){s&&s!=O.Init&&(t.removeKeyMap(b),t.state.closeBrackets=null),a&&(g(A(a,"pairs")),t.state.closeBrackets=a,t.addKeyMap(b))});function A(t,a){return a=="pairs"&&typeof t=="string"?t:typeof t=="object"&&t[a]!=null?t[a]:x[a]}var b={Backspace:o,Enter:r};function g(t){for(var a=0;a<t.length;a++){var s=t.charAt(a),u="'"+s+"'";b[u]||(b[u]=f(s))}}g(x.pairs+"`");function f(t){return function(a){return n(a,t)}}function c(t){var a=t.state.closeBrackets;if(!a||a.override)return a;var s=t.getModeAt(t.getCursor());return s.closeBrackets||a}function o(t){var a=c(t);if(!a||t.getOption("disableInput"))return O.Pass;for(var s=A(a,"pairs"),u=t.listSelections(),h=0;h<u.length;h++){if(!u[h].empty())return O.Pass;var p=e(t,u[h].head);if(!p||s.indexOf(p)%2!=0)return O.Pass}for(var h=u.length-1;h>=0;h--){var m=u[h].head;t.replaceRange("",C(m.line,m.ch-1),C(m.line,m.ch+1),"+delete")}}function r(t){var a=c(t),s=a&&A(a,"explode");if(!s||t.getOption("disableInput"))return O.Pass;for(var u=t.listSelections(),h=0;h<u.length;h++){if(!u[h].empty())return O.Pass;var p=e(t,u[h].head);if(!p||s.indexOf(p)%2!=0)return O.Pass}t.operation(function(){var m=t.lineSeparator()||`
`;t.replaceSelection(m+m,null),t.execCommand("goCharLeft"),u=t.listSelections();for(var v=0;v<u.length;v++){var y=u[v].head.line;t.indentLine(y,null,!0),t.indentLine(y+1,null,!0)}})}function i(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 s=c(t);if(!s||t.getOption("disableInput"))return O.Pass;var u=A(s,"pairs"),h=u.indexOf(a);if(h==-1)return O.Pass;for(var p=A(s,"closeBefore"),m=A(s,"triples"),v=u.charAt(h+1)==a,y=t.listSelections(),E=h%2==0,T,w=0;w<y.length;w++){var S=y[w],_=S.head,I,L=t.getRange(_,C(_.line,_.ch+1));if(E&&!S.empty())I="surround";else if((v||!E)&&L==a)v&&l(t,_)?I="both":m.indexOf(a)>=0&&t.getRange(_,C(_.line,_.ch+3))==a+a+a?I="skipThree":I="skip";else if(v&&_.ch>1&&m.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(v){var N=_.ch==0?" ":t.getRange(C(_.line,_.ch-1),_);if(!O.isWordChar(L)&&N!=a&&!O.isWordChar(N))I="both";else return O.Pass}else if(E&&(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 R=h%2?u.charAt(h-1):a,D=h%2?a:u.charAt(h+1);t.operation(function(){if(T=="skip")t.execCommand("goCharRight");else if(T=="skipThree")for(var F=0;F<3;F++)t.execCommand("goCharRight");else if(T=="surround"){for(var M=t.getSelections(),F=0;F<M.length;F++)M[F]=R+M[F]+D;t.replaceSelections(M,"around"),M=t.listSelections().slice();for(var F=0;F<M.length;F++)M[F]=i(M[F]);t.setSelections(M)}else T=="both"?(t.replaceSelection(R+D,null),t.triggerElectric(R+D),t.execCommand("goCharLeft")):T=="addFour"&&(t.replaceSelection(R+R+R+R,"before"),t.execCommand("goCharRight"))})}function e(t,a){var s=t.getRange(C(a.line,a.ch-1),C(a.line,a.ch+1));return s.length==2?s:null}function l(t,a){var s=t.getTokenAt(C(a.line,a.ch+1));return/\bstring/.test(s.type)&&s.start==a.ch&&(a.ch==0||!/\bstring/.test(t.getTokenTypeAt(a)))}})},ELcG:function(H,k,d){(function(O,x){H.exports=k=x(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(x){var C=O,A=C.lib,b=A.WordArray,g=A.Hasher,f=C.algo,c=b.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]),o=b.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=b.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),i=b.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=b.create([0,1518500249,1859775393,2400959708,2840853838]),e=b.create([1352829926,1548603684,1836072691,2053994217,0]),l=f.RIPEMD160=g.extend({_doReset:function(){this._hash=b.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(v,y){for(var E=0;E<16;E++){var T=y+E,w=v[T];v[T]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var S=this._hash.words,_=n.words,I=e.words,L=c.words,N=o.words,R=r.words,D=i.words,F,M,U,B,j,W,V,z,J,q;W=F=S[0],V=M=S[1],z=U=S[2],J=B=S[3],q=j=S[4];for(var de,E=0;E<80;E+=1)de=F+v[y+L[E]]|0,E<16?de+=t(M,U,B)+_[0]:E<32?de+=a(M,U,B)+_[1]:E<48?de+=s(M,U,B)+_[2]:E<64?de+=u(M,U,B)+_[3]:de+=h(M,U,B)+_[4],de=de|0,de=p(de,R[E]),de=de+j|0,F=j,j=B,B=p(U,10),U=M,M=de,de=W+v[y+N[E]]|0,E<16?de+=h(V,z,J)+I[0]:E<32?de+=u(V,z,J)+I[1]:E<48?de+=s(V,z,J)+I[2]:E<64?de+=a(V,z,J)+I[3]:de+=t(V,z,J)+I[4],de=de|0,de=p(de,D[E]),de=de+q|0,W=q,q=J,J=p(z,10),z=V,V=de;de=S[1]+U+J|0,S[1]=S[2]+B+q|0,S[2]=S[3]+j+W|0,S[3]=S[4]+F+V|0,S[4]=S[0]+M+z|0,S[0]=de},_doFinalize:function(){var v=this._data,y=v.words,E=this._nDataBytes*8,T=v.sigBytes*8;y[T>>>5]|=128<<24-T%32,y[(T+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,v.sigBytes=(y.length+1)*4,this._process();for(var w=this._hash,S=w.words,_=0;_<5;_++){var I=S[_];S[_]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}return w},clone:function(){var v=g.clone.call(this);return v._hash=this._hash.clone(),v}});function t(m,v,y){return m^v^y}function a(m,v,y){return m&v|~m&y}function s(m,v,y){return(m|~v)^y}function u(m,v,y){return m&y|v&~y}function h(m,v,y){return m^(v|~y)}function p(m,v){return m<<v|m>>>32-v}C.RIPEMD160=g._createHelper(l),C.HmacRIPEMD160=g._createHmacHelper(l)}(Math),O.RIPEMD160})},EMyp:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("mFDi"),A=d("K4ya"),b=d("qJCg"),g=d("iLNv"),f=d("vZ6x"),c=["inBrush","outOfBrush"],o="__ecBrushSelect",r="__ecInBrushSelectEvent",i=O.PRIORITY.VISUAL.BRUSH;O.registerLayout(i,function(m,v,y){m.eachComponent({mainType:"brush"},function(E){y&&y.type==="takeGlobalCursor"&&E.setBrushOption(y.key==="brush"?y.brushOption:{brushType:!1})}),n(m)});function n(m){m.eachComponent({mainType:"brush"},function(v){var y=v.brushTargetManager=new f(v.option,m);y.setInputRanges(v.areas,m)})}O.registerVisual(i,function(m,v,y){var E=[],T,w;m.eachComponent({mainType:"brush"},function(S,_){var I={brushId:S.id,brushIndex:_,brushName:S.name,areas:x.clone(S.areas),selected:[]};E.push(I);var L=S.option,N=L.brushLink,R=[],D=[],F=[],M=0;_||(T=L.throttleType,w=L.throttleDelay);var U=x.map(S.areas,function(J){return u(x.defaults({boundingRect:h[J.brushType](J)},J))}),B=A.createVisualMappings(S.option,c,function(J){J.mappingMethod="fixed"});x.isArray(N)&&x.each(N,function(J){R[J]=1});function j(J){return N==="all"||R[J]}function W(J){return!!J.length}m.eachSeries(function(J,q){var de=F[q]=[];J.subType==="parallel"?V(J,q,de):z(J,q,de)});function V(J,q){var de=J.coordinateSystem;M|=de.hasAxisBrushed(),j(q)&&de.eachActiveState(J.getData(),function(ae,ve){ae==="active"&&(D[ve]=1)})}function z(J,q,de){var ae=a(J);if(!ae||s(S,q))return;if(x.each(U,function(_e){ae[_e.brushType]&&S.brushTargetManager.controlSeries(_e,J,m)&&de.push(_e),M|=W(de)}),j(q)&&W(de)){var ve=J.getData();ve.each(function(_e){t(ae,de,ve,_e)&&(D[_e]=1)})}}m.eachSeries(function(J,q){var de={seriesId:J.id,seriesIndex:q,seriesName:J.name,dataIndex:[]};I.selected.push(de);var ae=a(J),ve=F[q],_e=J.getData(),Ie=j(q)?function(He){return D[He]?(de.dataIndex.push(_e.getRawIndex(He)),"inBrush"):"outOfBrush"}:function(He){return t(ae,ve,_e,He)?(de.dataIndex.push(_e.getRawIndex(He)),"inBrush"):"outOfBrush"};(j(q)?M:W(ve))&&A.applyVisual(c,B,_e,Ie)})}),e(v,T,w,E,y)});function e(m,v,y,E,T){if(!T)return;var w=m.getZr();if(w[r])return;w[o]||(w[o]=l);var S=g.createOrUpdate(w,o,y,v);S(m,E)}function l(m,v){if(!m.isDisposed()){var y=m.getZr();y[r]=!0,m.dispatchAction({type:"brushSelect",batch:v}),y[r]=!1}}function t(m,v,y,E){for(var T=0,w=v.length;T<w;T++){var S=v[T];if(m[S.brushType](E,y,S.selectors,S))return!0}}function a(m){var v=m.brushSelector;if(x.isString(v)){var y=[];return x.each(b,function(T,w){y[w]=function(S,_,I,L){var N=_.getItemLayout(S);return T[v](N,I,L)}}),y}else if(x.isFunction(v)){var E={};return x.each(b,function(T,w){E[w]=v}),E}return v}function s(m,v){var y=m.option.seriesIndex;return y!=null&&y!=="all"&&(x.isArray(y)?x.indexOf(y,v)<0:v!==y)}function u(m){var v=m.selectors={};return x.each(b[m.brushType],function(y,E){v[E]=function(T){return y(T,v,m)}}),m}var h={lineX:x.noop,lineY:x.noop,rect:function(m){return p(m.range)},polygon:function(m){for(var v,y=m.range,E=0,T=y.length;E<T;E++){v=v||[[Infinity,-Infinity],[Infinity,-Infinity]];var w=y[E];w[0]<v[0][0]&&(v[0][0]=w[0]),w[0]>v[0][1]&&(v[0][1]=w[0]),w[1]<v[1][0]&&(v[1][0]=w[1]),w[1]>v[1][1]&&(v[1][1]=w[1])}return v&&p(v)}};function p(m){return new C(m[0][0],m[1][0],m[0][1]-m[0][0],m[1][1]-m[1][0])}k.layoutCovers=n},ERHi:function(H,k,d){var O=d("ProS");d("Z6js"),d("R4Th");var x=d("f5Yq"),C=d("h8O9");O.registerVisual(x("effectScatter","circle")),O.registerLayout(C("effectScatter"))},ETIr:function(H,k,d){(function(O,x){H.exports=k=x(d("Ib8C"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.WordArray,b=x.enc,g=b.Base64={stringify:function(o){var r=o.words,i=o.sigBytes,n=this._map;o.clamp();for(var e=[],l=0;l<i;l+=3)for(var t=r[l>>>2]>>>24-l%4*8&255,a=r[l+1>>>2]>>>24-(l+1)%4*8&255,s=r[l+2>>>2]>>>24-(l+2)%4*8&255,u=t<<16|a<<8|s,h=0;h<4&&l+h*.75<i;h++)e.push(n.charAt(u>>>6*(3-h)&63));var p=n.charAt(64);if(p)for(;e.length%4;)e.push(p);return e.join("")},parse:function(o){var r=o.length,i=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var e=0;e<i.length;e++)n[i.charCodeAt(e)]=e}var l=i.charAt(64);if(l){var t=o.indexOf(l);t!==-1&&(r=t)}return f(o,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(c,o,r){for(var i=[],n=0,e=0;e<o;e++)if(e%4){var l=r[c.charCodeAt(e-1)]<<e%4*2,t=r[c.charCodeAt(e)]>>>6-e%4*2,a=l|t;i[n>>>2]|=a<<24-n%4*8,n++}return A.create(i,n)}}(),O.enc.Base64})},EXcs:function(H,k,d){"use strict";var O=function(){return{height:0,opacity:0}},x=function(f){return{height:f.scrollHeight,opacity:1}},C=function(f){return{height:f.offsetHeight}},A=function(f,c){return c.propertyName==="height"},b={motionName:"ant-motion-collapse",onAppearStart:O,onEnterStart:O,onAppearActive:x,onEnterActive:x,onLeaveStart:C,onLeaveActive:O,onAppearEnd:A,onEnterEnd:A,onLeaveEnd:A,motionDeadline:500};k.a=b},Em2t:function(H,k,d){var O=d("bahg"),x=d("quyA"),C=d("0JQy");function A(b){return x(b)?C(b):O(b)}H.exports=A},Ez2D:function(H,k,d){var O=d("bYtY"),x=d("4NO4");function C(A,b){var g=[],f=A.seriesIndex,c;if(f==null||!(c=b.getSeriesByIndex(f)))return{point:[]};var o=c.getData(),r=x.queryDataIndex(o,A);if(r==null||r<0||O.isArray(r))return{point:[]};var i=o.getItemGraphicEl(r),n=c.coordinateSystem;if(c.getTooltipPosition)g=c.getTooltipPosition(r)||[];else if(n&&n.dataToPoint)g=n.dataToPoint(o.getValues(O.map(n.dimensions,function(l){return o.mapDimension(l)}),r,!0))||[];else if(i){var e=i.getBoundingRect().clone();e.applyTransform(i.transform),g=[e.x+e.width/2,e.y+e.height/2]}return{point:g,el:i}}H.exports=C},"F+F2":function(H,k,d){(function(O,x){H.exports=k=x(d("Ib8C"))})(this,function(O){return function(){if(typeof ArrayBuffer!="function")return;var x=O,C=x.lib,A=C.WordArray,b=A.init,g=A.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var c=f.byteLength,o=[],r=0;r<c;r++)o[r>>>2]|=f[r]<<24-r%4*8;b.call(this,o,c)}else b.apply(this,arguments)};g.prototype=A}(),O.lib.WordArray})},F0hE:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("ca2m"),A=d("Qxkt"),b=d("ICMv"),g=C.valueAxis;function f(r,i){return x.defaults({show:i},r)}var c=O.extendComponentModel({type:"radar",optionUpdated:function(){var r=this.get("boundaryGap"),i=this.get("splitNumber"),n=this.get("scale"),e=this.get("axisLine"),l=this.get("axisTick"),t=this.get("axisType"),a=this.get("axisLabel"),s=this.get("name"),u=this.get("name.show"),h=this.get("name.formatter"),p=this.get("nameGap"),m=this.get("triggerEvent"),v=x.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 E=s;if(y.color!=null&&(E=x.defaults({color:y.color},s)),y=x.merge(x.clone(y),{boundaryGap:r,splitNumber:i,scale:n,axisLine:e,axisTick:l,axisType:t,axisLabel:a,name:y.text,nameLocation:"end",nameGap:p,nameTextStyle:E,triggerEvent:m},!1),u||(y.name=""),typeof h=="string"){var T=y.name;y.name=h.replace("{value}",T!=null?T:"")}else typeof h=="function"&&(y.name=h(y.name,y));var w=x.extend(new A(y,null,this.ecModel),b);return w.mainType="radar",w.componentIndex=this.componentIndex,w},this);this.getIndicatorModels=function(){return v}},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:x.merge({lineStyle:{color:"#bbb"}},g.axisLine),axisLabel:f(g.axisLabel,!1),axisTick:f(g.axisTick,!1),axisType:"interval",splitLine:f(g.splitLine,!0),splitArea:f(g.splitArea,!0),indicator:[]}}),o=c;H.exports=o},F5Ls:function(H,k){var d={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function O(x,C){if(x==="china"){var A=d[C.name];if(A){var b=C.center;b[0]+=A[0]/10.5,b[1]+=-A[1]/(10.5/.75)}}}H.exports=O},F7hV:function(H,k,d){var O=d("MBQ8"),x=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"),A=this.get("largeThreshold");return A>C&&(C=A),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}}});H.exports=x},F9bG:function(H,k,d){var O=d("bYtY"),x=d("ItGF"),C=d("4NO4"),A=C.makeInner,b=A(),g=O.each;function f(l,t,a){if(x.node)return;var s=t.getZr();b(s).records||(b(s).records={}),c(s,t);var u=b(s).records[l]||(b(s).records[l]={});u.handler=a}function c(l,t){if(b(l).initialized)return;b(l).initialized=!0,a("click",O.curry(i,"click")),a("mousemove",O.curry(i,"mousemove")),a("globalout",r);function a(s,u){l.on(s,function(h){var p=n(t);g(b(l).records,function(m){m&&u(m,h,p.dispatchAction)}),o(p.pendings,t)})}}function o(l,t){var a=l.showTip.length,s=l.hideTip.length,u;a?u=l.showTip[a-1]:s&&(u=l.hideTip[s-1]),u&&(u.dispatchAction=null,t.dispatchAction(u))}function r(l,t,a){l.handler("leave",null,a)}function i(l,t,a,s){t.handler(l,a,s)}function n(l){var t={showTip:[],hideTip:[]},a=function(s){var u=t[s.type];u?u.push(s):(s.dispatchAction=a,l.dispatchAction(s))};return{dispatchAction:a,pendings:t}}function e(l,t){if(x.node)return;var a=t.getZr(),s=(b(a).records||{})[l];s&&(b(a).records[l]=null)}k.register=f,k.unregister=e},FBjb:function(H,k,d){var O=d("bYtY"),x=d("oVpE"),C=x.createSymbol,A=d("IwbS"),b=d("OELB"),g=b.parsePercent,f=d("x3X8"),c=f.getDefaultLabel;function o(p,m,v){A.Group.call(this),this.updateData(p,m,v)}var r=o.prototype,i=o.getSymbolSize=function(p,m){var v=p.getItemVisual(m,"symbolSize");return v instanceof Array?v.slice():[+v,+v]};function n(p){return[p[0]/2,p[1]/2]}function e(p,m){this.parent.drift(p,m)}r._createSymbol=function(p,m,v,y,E){this.removeAll();var T=m.getItemVisual(v,"color"),w=C(p,-1,-1,2,2,T,E);w.attr({z2:100,culling:!0,scale:n(y)}),w.drift=e,this._symbolType=p,this.add(w)},r.stopSymbolAnimation=function(p){this.childAt(0).stopAnimation(p)},r.getSymbolPath=function(){return this.childAt(0)},r.getScale=function(){return this.childAt(0).scale},r.highlight=function(){this.childAt(0).trigger("emphasis")},r.downplay=function(){this.childAt(0).trigger("normal")},r.setZ=function(p,m){var v=this.childAt(0);v.zlevel=p,v.z=m},r.setDraggable=function(p){var m=this.childAt(0);m.draggable=p,m.cursor=p?"move":m.cursor},r.updateData=function(p,m,v){this.silent=!1;var y=p.getItemVisual(m,"symbol")||"circle",E=p.hostModel,T=i(p,m),w=y!==this._symbolType;if(w){var S=p.getItemVisual(m,"symbolKeepAspect");this._createSymbol(y,p,m,T,S)}else{var _=this.childAt(0);_.silent=!1,A.updateProps(_,{scale:n(T)},E,m)}if(this._updateCommon(p,m,T,v),w){var _=this.childAt(0),I=v&&v.fadeIn,L={scale:_.scale.slice()};I&&(L.style={opacity:_.style.opacity}),_.scale=[0,0],I&&(_.style.opacity=0),A.initProps(_,L,E,m)}this._seriesModel=E};var l=["itemStyle"],t=["emphasis","itemStyle"],a=["label"],s=["emphasis","label"];r._updateCommon=function(p,m,v,y){var E=this.childAt(0),T=p.hostModel,w=p.getItemVisual(m,"color");E.type!=="image"?E.useStyle({strokeNoScale:!0}):E.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var S=y&&y.itemStyle,_=y&&y.hoverItemStyle,I=y&&y.symbolOffset,L=y&&y.labelModel,N=y&&y.hoverLabelModel,R=y&&y.hoverAnimation,D=y&&y.cursorStyle;if(!y||p.hasItemOption){var F=y&&y.itemModel?y.itemModel:p.getItemModel(m);S=F.getModel(l).getItemStyle(["color"]),_=F.getModel(t).getItemStyle(),I=F.getShallow("symbolOffset"),L=F.getModel(a),N=F.getModel(s),R=F.getShallow("hoverAnimation"),D=F.getShallow("cursor")}else _=O.extend({},_);var M=E.style,U=p.getItemVisual(m,"symbolRotate");E.attr("rotation",(U||0)*Math.PI/180||0),I&&E.attr("position",[g(I[0],v[0]),g(I[1],v[1])]),D&&E.attr("cursor",D),E.setColor(w,y&&y.symbolInnerColor),E.setStyle(S);var B=p.getItemVisual(m,"opacity");B!=null&&(M.opacity=B);var j=p.getItemVisual(m,"liftZ"),W=E.__z2Origin;j!=null?W==null&&(E.__z2Origin=E.z2,E.z2+=j):W!=null&&(E.z2=W,E.__z2Origin=null);var V=y&&y.useNameLabel;A.setLabelStyle(M,_,L,N,{labelFetcher:T,labelDataIndex:m,defaultText:z,isRectText:!0,autoColor:w});function z(J,q){return V?p.getName(J):c(p,J)}E.__symbolOriginalScale=n(v),E.hoverStyle=_,E.highDownOnUpdate=R&&T.isAnimationEnabled()?u:null,A.setHoverStyle(E)};function u(p,m){if(this.incremental||this.useHoverLayer)return;if(m==="emphasis"){var v=this.__symbolOriginalScale,y=v[1]/v[0],E={scale:[Math.max(v[0]*1.1,v[0]+3),Math.max(v[1]*1.1,v[1]+3*y)]};this.animateTo(E,400,"elasticOut")}else m==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}r.fadeOut=function(p,m){var v=this.childAt(0);this.silent=v.silent=!0,!(m&&m.keepLabel)&&(v.style.text=null),A.updateProps(v,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,p)},O.inherits(o,A.Group);var h=o;H.exports=h},FGaS:function(H,k,d){var O=d("ProS"),x=d("IwbS"),C=d("bYtY"),A=d("oVpE");function b(f){return C.isArray(f)||(f=[+f,+f]),f}var g=O.extendChartView({type:"radar",render:function(f,c,o){var r=f.coordinateSystem,i=this.group,n=f.getData(),e=this._data;function l(s,u){var h=s.getItemVisual(u,"symbol")||"circle",p=s.getItemVisual(u,"color");if(h==="none")return;var m=b(s.getItemVisual(u,"symbolSize")),v=A.createSymbol(h,-1,-1,2,2,p);return v.attr({style:{strokeNoScale:!0},z2:100,scale:[m[0]/2,m[1]/2]}),v}function t(s,u,h,p,m,v){h.removeAll();for(var y=0;y<u.length-1;y++){var E=l(p,m);E&&(E.__dimIdx=y,s[y]?(E.attr("position",s[y]),x[v?"initProps":"updateProps"](E,{position:u[y]},f,m)):E.attr("position",u[y]),h.add(E))}}function a(s){return C.map(s,function(u){return[r.cx,r.cy]})}n.diff(e).add(function(s){var u=n.getItemLayout(s);if(!u)return;var h=new x.Polygon,p=new x.Polyline,m={shape:{points:u}};h.shape.points=a(u),p.shape.points=a(u),x.initProps(h,m,f,s),x.initProps(p,m,f,s);var v=new x.Group,y=new x.Group;v.add(p),v.add(h),v.add(y),t(p.shape.points,u,y,n,s,!0),n.setItemGraphicEl(s,v)}).update(function(s,u){var h=e.getItemGraphicEl(u),p=h.childAt(0),m=h.childAt(1),v=h.childAt(2),y={shape:{points:n.getItemLayout(s)}};if(!y.shape.points)return;t(p.shape.points,y.shape.points,v,n,s,!1),x.updateProps(p,y,f),x.updateProps(m,y,f),n.setItemGraphicEl(s,h)}).remove(function(s){i.remove(e.getItemGraphicEl(s))}).execute(),n.eachItemGraphicEl(function(s,u){var h=n.getItemModel(u),p=s.childAt(0),m=s.childAt(1),v=s.childAt(2),y=n.getItemVisual(u,"color");i.add(s),p.useStyle(C.defaults(h.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:y})),p.hoverStyle=h.getModel("emphasis.lineStyle").getLineStyle();var E=h.getModel("areaStyle"),T=h.getModel("emphasis.areaStyle"),w=E.isEmpty()&&E.parentModel.isEmpty(),S=T.isEmpty()&&T.parentModel.isEmpty();S=S&&w,m.ignore=w,m.useStyle(C.defaults(E.getAreaStyle(),{fill:y,opacity:.7})),m.hoverStyle=T.getAreaStyle();var _=h.getModel("itemStyle").getItemStyle(["color"]),I=h.getModel("emphasis.itemStyle").getItemStyle(),L=h.getModel("label"),N=h.getModel("emphasis.label");v.eachChild(function(R){R.setStyle(_),R.hoverStyle=C.clone(I);var D=n.get(n.dimensions[R.__dimIdx],u);(D==null||isNaN(D))&&(D=""),x.setLabelStyle(R.style,R.hoverStyle,L,N,{labelFetcher:n.hostModel,labelDataIndex:u,labelDimIndex:R.__dimIdx,defaultText:D,autoColor:y,isRectText:!0})}),s.highDownOnUpdate=function(R,D){m.attr("ignore",D==="emphasis"?S:w)},x.setHoverStyle(s)}),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});H.exports=g},FH2Y:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("ZMnZ"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},FJo9:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("8txm"),A=d.n(C),b=d("MXD1")},FNN5:function(H,k,d){var O=d("bYtY"),x=d("IwbS"),C=d("+rIm"),A=d("Znkb"),b=["axisLine","axisTickLabel","axisName"],g=["splitLine","splitArea","minorSplitLine"],f=A.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(o,r){if(this.group.removeAll(),!o.get("show"))return;var i=o.axis,n=i.polar,e=n.getAngleAxis(),l=i.getTicksCoords(),t=i.getMinorTicksCoords(),a=e.getExtent()[0],s=i.getExtent(),u=c(n,o,a),h=new C(o,u);O.each(b,h.add,h),this.group.add(h.getGroup()),O.each(g,function(p){o.get(p+".show")&&!i.scale.isBlank()&&this["_"+p](o,n,a,s,l,t)},this)},_splitLine:function(o,r,i,n,e){var l=o.getModel("splitLine"),t=l.getModel("lineStyle"),a=t.get("color"),s=0;a=a instanceof Array?a:[a];for(var u=[],h=0;h<e.length;h++){var p=s++%a.length;u[p]=u[p]||[],u[p].push(new x.Circle({shape:{cx:r.cx,cy:r.cy,r:e[h].coord}}))}for(var h=0;h<u.length;h++)this.group.add(x.mergePath(u[h],{style:O.defaults({stroke:a[h%a.length],fill:null},t.getLineStyle()),silent:!0}))},_minorSplitLine:function(o,r,i,n,e,l){if(!l.length)return;for(var t=o.getModel("minorSplitLine"),a=t.getModel("lineStyle"),s=[],u=0;u<l.length;u++)for(var h=0;h<l[u].length;h++)s.push(new x.Circle({shape:{cx:r.cx,cy:r.cy,r:l[u][h].coord}}));this.group.add(x.mergePath(s,{style:O.defaults({fill:null},a.getLineStyle()),silent:!0}))},_splitArea:function(o,r,i,n,e){if(!e.length)return;var l=o.getModel("splitArea"),t=l.getModel("areaStyle"),a=t.get("color"),s=0;a=a instanceof Array?a:[a];for(var u=[],h=e[0].coord,p=1;p<e.length;p++){var m=s++%a.length;u[m]=u[m]||[],u[m].push(new x.Sector({shape:{cx:r.cx,cy:r.cy,r0:h,r:e[p].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=e[p].coord}for(var p=0;p<u.length;p++)this.group.add(x.mergePath(u[p],{style:O.defaults({fill:a[p%a.length]},t.getAreaStyle()),silent:!0}))}});function c(o,r,i){return{position:[o.cx,o.cy],rotation:i/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:r.getModel("axisLabel").get("rotate"),z2:1}}H.exports=f},FTAc:function(H,k,d){"use strict";d.d(k,"a",function(){return C});var O=d("q1tI"),x=d.n(O),C=O.createContext(null)},FUi9:function(H,k,d){var O=d("bYtY"),x=d("MwEJ"),C=d("aX7z"),A=d("ICMv"),b=d("Qxkt"),g=d("+TT/"),f=g.getLayoutRect;k.getLayoutRect=g.getLayoutRect;var c=d("7hqr"),o=c.enableDataStack,r=c.isDimensionStacked,i=c.getStackedDimension,n=d("hi0g");k.completeDimensions=n;var e=d("sdST");k.createDimensions=e;var l=d("oVpE");k.createSymbol=l.createSymbol;function t(h){return x(h.getSource(),h)}var a={isDimensionStacked:r,enableDataStack:o,getStackedDimension:i};function s(h,p){var m=p;b.isInstance(p)||(m=new b(p),O.mixin(m,A));var v=C.createScaleByModel(m);return v.setExtent(h[0],h[1]),C.niceScaleExtent(v,m),v}function u(h){O.mixin(h,A)}k.createList=t,k.dataStack=a,k.createScale=s,k.mixinAxisModelCommonMethods=u},"Fa/5":function(H,k,d){var O=d("ProS");d("y2l5"),d("q/+u");var x=d("f5Yq"),C=d("h8O9");d("Ae16"),O.registerVisual(x("scatter","circle")),O.registerLayout(C("scatter"))},FhB9:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},"Fm1+":function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("a7Wl")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="CaretUpOutlined";var c=A.forwardRef(f);k.default=c},Fofx:function(H,k){var d=typeof Float32Array=="undefined"?Array:Float32Array;function O(){var r=new d(6);return x(r),r}function x(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function C(r,i){return r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r[4]=i[4],r[5]=i[5],r}function A(r,i,n){var e=i[0]*n[0]+i[2]*n[1],l=i[1]*n[0]+i[3]*n[1],t=i[0]*n[2]+i[2]*n[3],a=i[1]*n[2]+i[3]*n[3],s=i[0]*n[4]+i[2]*n[5]+i[4],u=i[1]*n[4]+i[3]*n[5]+i[5];return r[0]=e,r[1]=l,r[2]=t,r[3]=a,r[4]=s,r[5]=u,r}function b(r,i,n){return r[0]=i[0],r[1]=i[1],r[2]=i[2],r[3]=i[3],r[4]=i[4]+n[0],r[5]=i[5]+n[1],r}function g(r,i,n){var e=i[0],l=i[2],t=i[4],a=i[1],s=i[3],u=i[5],h=Math.sin(n),p=Math.cos(n);return r[0]=e*p+a*h,r[1]=-e*h+a*p,r[2]=l*p+s*h,r[3]=-l*h+p*s,r[4]=p*t+h*u,r[5]=p*u-h*t,r}function f(r,i,n){var e=n[0],l=n[1];return r[0]=i[0]*e,r[1]=i[1]*l,r[2]=i[2]*e,r[3]=i[3]*l,r[4]=i[4]*e,r[5]=i[5]*l,r}function c(r,i){var n=i[0],e=i[2],l=i[4],t=i[1],a=i[3],s=i[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*s-a*l)*u,r[5]=(t*l-n*s)*u,r):null}function o(r){var i=O();return C(i,r),i}k.create=O,k.identity=x,k.copy=C,k.mul=A,k.translate=b,k.rotate=g,k.scale=f,k.invert=c,k.clone=o},Fv0C:function(H,k,d){"use strict";function O(l){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(l)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var x=o(d("Lo0S")),C=d("vewr"),A=o(d("8CQX")),b=f(d("mHUz")),g=o(d("GdRQ"));function f(l){return l&&l.__esModule?l:{default:l}}function c(){if(typeof WeakMap!="function")return null;var l=new WeakMap;return c=function(){return l},l}function o(l){if(l&&l.__esModule)return l;if(l===null||O(l)!=="object"&&typeof l!="function")return{default:l};var t=c();if(t&&t.has(l))return t.get(l);var a={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in l)if(Object.prototype.hasOwnProperty.call(l,u)){var h=s?Object.getOwnPropertyDescriptor(l,u):null;h&&(h.get||h.set)?Object.defineProperty(a,u,h):a[u]=l[u]}return a.default=l,t&&t.set(l,a),a}function r(l,t){if(!(l instanceof t))throw new TypeError("Cannot call a class as a function")}function i(l,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(l,s.key,s)}}function n(l,t,a){return t&&i(l.prototype,t),a&&i(l,a),l}var e=function(){function l(t){r(this,l),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(l,[{key:"_sendKeyEvent",value:function(a,s,u){if(u)this._keyDownList[s]=a;else{if(!(s in this._keyDownList))return;delete this._keyDownList[s]}x.Debug("onkeyevent "+(u?"down":"up")+", keysym: "+a,", code: "+s),this.onkeyevent(a,s,u)}},{key:"_getKeyCode",value:function(a){var s=A.getKeycode(a);if(s!=="Unidentified")return s;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),h=String.fromCharCode(u).toUpperCase();return"Platform"+h.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(a){var s=this._getKeyCode(a),u=A.getKeysym(a);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),s==="AltRight"&&a.timeStamp-this._altGrCtrlTime<50?u=b.default.XK_ISO_Level3_Shift:this._sendKeyEvent(b.default.XK_Control_L,"ControlLeft",!0)),s==="Unidentified"){u&&(this._sendKeyEvent(u,s,!0),this._sendKeyEvent(u,s,!1)),(0,C.stopEvent)(a);return}if(g.isMac()||g.isIOS())switch(u){case b.default.XK_Super_L:u=b.default.XK_Alt_L;break;case b.default.XK_Super_R:u=b.default.XK_Super_L;break;case b.default.XK_Alt_L:u=b.default.XK_Mode_switch;break;case b.default.XK_Alt_R:u=b.default.XK_ISO_Level3_Shift;break}if(s in this._keyDownList&&(u=this._keyDownList[s]),(g.isMac()||g.isIOS())&&s==="CapsLock"){this._sendKeyEvent(b.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(b.default.XK_Caps_Lock,"CapsLock",!1),(0,C.stopEvent)(a);return}if(!u&&(!a.key||g.isIE()||g.isEdge())){this._pendingKey=s,setTimeout(this._handleKeyPressTimeout.bind(this),10,a);return}if(this._pendingKey=null,(0,C.stopEvent)(a),s==="ControlLeft"&&g.isWindows()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=a.timeStamp;return}this._sendKeyEvent(u,s,!0)}},{key:"_handleKeyPress",value:function(a){if((0,C.stopEvent)(a),this._pendingKey===null)return;var s=this._getKeyCode(a),u=A.getKeysym(a);if(s!=="Unidentified"&&s!=this._pendingKey)return;if(s=this._pendingKey,this._pendingKey=null,!u){x.Info("keypress with no keysym:",a);return}this._sendKeyEvent(u,s,!0)}},{key:"_handleKeyPressTimeout",value:function(a){if(this._pendingKey===null)return;var s,u=this._pendingKey;if(this._pendingKey=null,a.keyCode>=48&&a.keyCode<=57)s=a.keyCode;else if(a.keyCode>=65&&a.keyCode<=90){var h=String.fromCharCode(a.keyCode);a.shiftKey?h=h.toUpperCase():h=h.toLowerCase(),s=h.charCodeAt()}else s=0;this._sendKeyEvent(s,u,!0)}},{key:"_handleKeyUp",value:function(a){(0,C.stopEvent)(a);var s=this._getKeyCode(a);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(b.default.XK_Control_L,"ControlLeft",!0)),(g.isMac()||g.isIOS())&&s==="CapsLock"){this._sendKeyEvent(b.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(b.default.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[s],s,!1),g.isWindows()&&(s==="ShiftLeft"||s==="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(b.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){x.Debug(">> Keyboard.allKeysUp");for(var a in this._keyDownList)this._sendKeyEvent(this._keyDownList[a],a,!1);x.Debug("<< Keyboard.allKeysUp")}},{key:"_checkAlt",value:function(a){if(a.skipCheckAlt)return;if(a.altKey)return;var s=this._target,u=this._keyDownList;["AltLeft","AltRight"].forEach(function(h){if(!(h in u))return;var p=new KeyboardEvent("keyup",{key:u[h],code:h});p.skipCheckAlt=!0,s.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),g.isWindows()&&g.isFirefox()){var a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(s){return document.addEventListener(s,a,{capture:!0,passive:!0})})}}},{key:"ungrab",value:function(){if(g.isWindows()&&g.isFirefox()){var a=this._eventHandlers.checkalt;["mousedown","mouseup","mousemove","wheel","touchstart","touchend","touchmove","keydown","keyup"].forEach(function(s){return document.removeEventListener(s,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()}}]),l}();k.default=e},FxDU:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.createSensor=void 0;var O=d("QO+J"),x=d("j5sG"),C=typeof ResizeObserver!="undefined"?x.createSensor:O.createSensor;k.createSensor=C},GGyF:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("wgjA")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="LeftOutlined";var c=A.forwardRef(f);k.default=c},GIiI:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="PoweroffOutlined";var f=k.a=x.forwardRef(g)},GMDS:function(H,k,d){var O=d("bYtY"),x=d("4NgU"),C=d("jkPA"),A=x.prototype,b=x.extend({type:"ordinal",init:function(f,c){(!f||O.isArray(f))&&(f=new C({categories:f})),this._ordinalMeta=f,this._extent=c||[0,f.categories.length-1]},parse:function(f){return typeof f=="string"?this._ordinalMeta.getOrdinal(f):Math.round(f)},contain:function(f){return f=this.parse(f),A.contain.call(this,f)&&this._ordinalMeta.categories[f]!=null},normalize:function(f){return A.normalize.call(this,this.parse(f))},scale:function(f){return Math.round(A.scale.call(this,f))},getTicks:function(){for(var f=[],c=this._extent,o=c[0];o<=c[1];)f.push(o),o++;return f},getLabel:function(f){if(!this.isBlank())return this._ordinalMeta.categories[f]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(f,c){this.unionExtent(f.getApproximateExtent(c))},getOrdinalMeta:function(){return this._ordinalMeta},niceTicks:O.noop,niceExtent:O.noop});b.create=function(){return new b};var g=b;H.exports=g},GQ8N:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.toUnsigned32bit=O,k.toSigned32bit=x;function O(C){return C>>>0}function x(C){return C|0}},GRuw:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("lPiR"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.WordArray,b=x.algo,g=b.SHA256,f=b.SHA224=g.extend({_doReset:function(){this._hash=new A.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=g._doFinalize.call(this);return o.sigBytes-=4,o}});x.SHA224=g._createHelper(f),x.HmacSHA224=g._createHmacHelper(f)}(),O.SHA224})},GUcZ:function(H,k,d){"use strict";var O=d("fWQN"),x=d("mtLc"),C=function(){function jt(){Object(O.a)(this,jt)}return Object(x.a)(jt,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(Re,Ke){return Re.__proto__=Ke,Re},Object.assign=Object.assign||function(Re){if(Re==null)throw new TypeError("Cannot convert undefined or null to object");for(var Ke=Object(Re),Pe=1;Pe<arguments.length;Pe++){var at=arguments[Pe];if(at!=null)for(var wt in at)at.hasOwnProperty(wt)&&(Ke[wt]=at[wt])}return Ke},typeof self.Promise!="function"&&d("E2g8").polyfill()}}]),jt}();C.install();var A=C,b=d("+qE3"),g=d.n(b),f=function(){function jt(){Object(O.a)(this,jt)}return Object(x.a)(jt,null,[{key:"e",value:function(Re,Ke){(!Re||jt.FORCE_GLOBAL_TAG)&&(Re=jt.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(Ke);if(jt.ENABLE_CALLBACK&&jt.emitter.emit("log","error",Pe),!jt.ENABLE_ERROR)return;console.error?console.error(Pe):console.warn?console.warn(Pe):console.log(Pe)}},{key:"i",value:function(Re,Ke){(!Re||jt.FORCE_GLOBAL_TAG)&&(Re=jt.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(Ke);if(jt.ENABLE_CALLBACK&&jt.emitter.emit("log","info",Pe),!jt.ENABLE_INFO)return;console.info?console.info(Pe):console.log(Pe)}},{key:"w",value:function(Re,Ke){(!Re||jt.FORCE_GLOBAL_TAG)&&(Re=jt.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(Ke);if(jt.ENABLE_CALLBACK&&jt.emitter.emit("log","warn",Pe),!jt.ENABLE_WARN)return;console.warn?console.warn(Pe):console.log(Pe)}},{key:"d",value:function(Re,Ke){(!Re||jt.FORCE_GLOBAL_TAG)&&(Re=jt.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(Ke);if(jt.ENABLE_CALLBACK&&jt.emitter.emit("log","debug",Pe),!jt.ENABLE_DEBUG)return;console.debug?console.debug(Pe):console.log(Pe)}},{key:"v",value:function(Re,Ke){(!Re||jt.FORCE_GLOBAL_TAG)&&(Re=jt.GLOBAL_TAG);var Pe="[".concat(Re,"] > ").concat(Ke);if(jt.ENABLE_CALLBACK&&jt.emitter.emit("log","verbose",Pe),!jt.ENABLE_VERBOSE)return;console.log(Pe)}}]),jt}();f.GLOBAL_TAG="flv.js",f.FORCE_GLOBAL_TAG=!1,f.ENABLE_ERROR=!0,f.ENABLE_INFO=!0,f.ENABLE_WARN=!0,f.ENABLE_DEBUG=!0,f.ENABLE_VERBOSE=!0,f.ENABLE_CALLBACK=!1,f.emitter=new g.a;var c=f,o=function(){function jt(){Object(O.a)(this,jt),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(x.a)(jt,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(Re){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=Re,this._totalBytes+=Re):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=Re,this._totalBytes+=Re):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=Re,this._totalBytes+=Re,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var Re=(this._now()-this._lastCheckpoint)/1e3;return Re==0&&(Re=1),this._intervalBytes/Re/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 Re=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/Re/1024}}]),jt}(),r=o,i=d("yKVA"),n=d("879j"),e=function(){function jt(At){Object(O.a)(this,jt),this._message=At}return Object(x.a)(jt,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),jt}(),l=function(jt){Object(i.a)(Re,jt);var At=Object(n.a)(Re);function Re(Ke){return Object(O.a)(this,Re),At.call(this,Ke)}return Object(x.a)(Re,[{key:"name",get:function(){return"IllegalStateException"}}]),Re}(e),t=function(jt){Object(i.a)(Re,jt);var At=Object(n.a)(Re);function Re(Ke){return Object(O.a)(this,Re),At.call(this,Ke)}return Object(x.a)(Re,[{key:"name",get:function(){return"InvalidArgumentException"}}]),Re}(e),a=function(jt){Object(i.a)(Re,jt);var At=Object(n.a)(Re);function Re(Ke){return Object(O.a)(this,Re),At.call(this,Ke)}return Object(x.a)(Re,[{key:"name",get:function(){return"NotImplementedException"}}]),Re}(e),s={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"},h=function(){function jt(At){Object(O.a)(this,jt),this._type=At||"undefined",this._status=s.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}return Object(x.a)(jt,[{key:"destroy",value:function(){this._status=s.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}},{key:"isWorking",value:function(){return this._status===s.kConnecting||this._status===s.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(Re){this._onContentLengthKnown=Re}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(Re){this._onURLRedirect=Re}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Re){this._onDataArrival=Re}},{key:"onError",get:function(){return this._onError},set:function(Re){this._onError=Re}},{key:"onComplete",get:function(){return this._onComplete},set:function(Re){this._onComplete=Re}},{key:"open",value:function(Re,Ke){throw new a("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new a("Unimplemented abstract function!")}}]),jt}(),p=d("w4Tj"),m=d("oZsa"),v={};function y(){var jt=self.navigator.userAgent.toLowerCase(),At=/(edge)\/([\w.]+)/.exec(jt)||/(opr)[\/]([\w.]+)/.exec(jt)||/(chrome)[ \/]([\w.]+)/.exec(jt)||/(iemobile)[\/]([\w.]+)/.exec(jt)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(jt)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(jt)||/(webkit)[ \/]([\w.]+)/.exec(jt)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(jt)||/(msie) ([\w.]+)/.exec(jt)||jt.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(jt)||jt.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(jt)||[],Re=/(ipad)/.exec(jt)||/(ipod)/.exec(jt)||/(windows phone)/.exec(jt)||/(iphone)/.exec(jt)||/(kindle)/.exec(jt)||/(android)/.exec(jt)||/(windows)/.exec(jt)||/(mac)/.exec(jt)||/(linux)/.exec(jt)||/(cros)/.exec(jt)||[],Ke={browser:At[5]||At[3]||At[1]||"",version:At[2]||At[4]||"0",majorVersion:At[4]||At[2]||"0",platform:Re[0]||""},Pe={};if(Ke.browser){Pe[Ke.browser]=!0;var at=Ke.majorVersion.split(".");Pe.version={major:parseInt(Ke.majorVersion,10),string:Ke.version},at.length>1&&(Pe.version.minor=parseInt(at[1],10)),at.length>2&&(Pe.version.build=parseInt(at[2],10))}if(Ke.platform&&(Pe[Ke.platform]=!0),(Pe.chrome||Pe.opr||Pe.safari)&&(Pe.webkit=!0),Pe.rv||Pe.iemobile){Pe.rv&&delete Pe.rv;var wt="msie";Ke.browser=wt,Pe[wt]=!0}if(Pe.edge){delete Pe.edge;var Rt="msedge";Ke.browser=Rt,Pe[Rt]=!0}if(Pe.opr){var xt="opera";Ke.browser=xt,Pe[xt]=!0}if(Pe.safari&&Pe.android){var Lt="android";Ke.browser=Lt,Pe[Lt]=!0}Pe.name=Ke.browser,Pe.platform=Ke.platform;for(var gr in v)v.hasOwnProperty(gr)&&delete v[gr];Object.assign(v,Pe)}y();var E=v,T=function(jt){Object(i.a)(Re,jt);var At=Object(n.a)(Re);function Re(Ke,Pe){var at;return Object(O.a)(this,Re),at=At.call(this,"fetch-stream-loader"),at.TAG="FetchStreamLoader",at._seekHandler=Ke,at._config=Pe,at._needStash=!0,at._requestAbort=!1,at._contentLength=null,at._receivedLength=0,at}return Object(x.a)(Re,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(p.a)(Object(m.a)(Re.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,at){var wt=this;this._dataSource=Pe,this._range=at;var Rt=Pe.url;this._config.reuseRedirectedURL&&Pe.redirectedURL!=null&&(Rt=Pe.redirectedURL);var xt=this._seekHandler.getConfig(Rt,at),Lt=new self.Headers;if(typeof xt.headers=="object"){var gr=xt.headers;for(var Br in gr)gr.hasOwnProperty(Br)&&Lt.append(Br,gr[Br])}var Et={method:"GET",headers:Lt,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var it in this._config.headers)Lt.append(it,this._config.headers[it]);Pe.cors===!1&&(Et.mode="same-origin"),Pe.withCredentials&&(Et.credentials="include"),Pe.referrerPolicy&&(Et.referrerPolicy=Pe.referrerPolicy),this._status=s.kConnecting,self.fetch(xt.url,Et).then(function(rt){if(wt._requestAbort){wt._requestAbort=!1,wt._status=s.kIdle;return}if(rt.ok&&rt.status>=200&&rt.status<=299){if(rt.url!==xt.url&&wt._onURLRedirect){var Pt=wt._seekHandler.removeURLParameters(rt.url);wt._onURLRedirect(Pt)}var Ht=rt.headers.get("Content-Length");return Ht!=null&&(wt._contentLength=parseInt(Ht),wt._contentLength!==0&&(wt._onContentLengthKnown&&wt._onContentLengthKnown(wt._contentLength))),wt._pump.call(wt,rt.body.getReader())}else if(wt._status=s.kError,wt._onError)wt._onError(u.HTTP_STATUS_CODE_INVALID,{code:rt.status,msg:rt.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+rt.status+" "+rt.statusText)}).catch(function(rt){if(wt._status=s.kError,wt._onError)wt._onError(u.EXCEPTION,{code:-1,msg:rt.message});else throw rt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Pe){var at=this;return Pe.read().then(function(wt){if(wt.done)if(at._contentLength!==null&&at._receivedLength<at._contentLength){at._status=s.kError;var Rt=u.EARLY_EOF,xt={code:-1,msg:"Fetch stream meet Early-EOF"};if(at._onError)at._onError(Rt,xt);else throw new e(xt.msg)}else at._status=s.kComplete,at._onComplete&&at._onComplete(at._range.from,at._range.from+at._receivedLength-1);else{if(at._requestAbort===!0)return at._requestAbort=!1,at._status=s.kComplete,Pe.cancel();at._status=s.kBuffering;var Lt=wt.value.buffer,gr=at._range.from+at._receivedLength;at._receivedLength+=Lt.byteLength,at._onDataArrival&&at._onDataArrival(Lt,gr,at._receivedLength),at._pump(Pe)}}).catch(function(wt){if(wt.code===11&&E.msedge)return;at._status=s.kError;var Rt=0,xt=null;if((wt.code===19||wt.message==="network error")&&(at._contentLength===null||at._contentLength!==null&&at._receivedLength<at._contentLength)?(Rt=u.EARLY_EOF,xt={code:wt.code,msg:"Fetch stream meet Early-EOF"}):(Rt=u.EXCEPTION,xt={code:wt.code,msg:wt.message}),at._onError)at._onError(Rt,xt);else throw new e(xt.msg)})}}],[{key:"isSupported",value:function(){try{var Pe=E.msedge&&E.version.minor>=15048,at=E.msedge?Pe:!0;return self.fetch&&self.ReadableStream&&at}catch(wt){return!1}}}]),Re}(h),w=T,S=function(jt){Object(i.a)(Re,jt);var At=Object(n.a)(Re);function Re(Ke,Pe){var at;return Object(O.a)(this,Re),at=At.call(this,"xhr-moz-chunked-loader"),at.TAG="MozChunkedLoader",at._seekHandler=Ke,at._config=Pe,at._needStash=!0,at._xhr=null,at._requestAbort=!1,at._contentLength=null,at._receivedLength=0,at}return Object(x.a)(Re,[{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(m.a)(Re.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,at){this._dataSource=Pe,this._range=at;var wt=Pe.url;this._config.reuseRedirectedURL&&Pe.redirectedURL!=null&&(wt=Pe.redirectedURL);var Rt=this._seekHandler.getConfig(wt,at);this._requestURL=Rt.url;var xt=this._xhr=new XMLHttpRequest;if(xt.open("GET",Rt.url,!0),xt.responseType="moz-chunked-arraybuffer",xt.onreadystatechange=this._onReadyStateChange.bind(this),xt.onprogress=this._onProgress.bind(this),xt.onloadend=this._onLoadEnd.bind(this),xt.onerror=this._onXhrError.bind(this),Pe.withCredentials&&(xt.withCredentials=!0),typeof Rt.headers=="object"){var Lt=Rt.headers;for(var gr in Lt)Lt.hasOwnProperty(gr)&&xt.setRequestHeader(gr,Lt[gr])}if(typeof this._config.headers=="object"){var Br=this._config.headers;for(var Et in Br)Br.hasOwnProperty(Et)&&xt.setRequestHeader(Et,Br[Et])}this._status=s.kConnecting,xt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=s.kComplete}},{key:"_onReadyStateChange",value:function(Pe){var at=Pe.target;if(at.readyState===2){if(at.responseURL!=null&&at.responseURL!==this._requestURL&&this._onURLRedirect){var wt=this._seekHandler.removeURLParameters(at.responseURL);this._onURLRedirect(wt)}if(at.status!==0&&(at.status<200||at.status>299))if(this._status=s.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:at.status,msg:at.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+at.status+" "+at.statusText);else this._status=s.kBuffering}}},{key:"_onProgress",value:function(Pe){if(this._status===s.kError)return;this._contentLength===null&&(Pe.total!==null&&Pe.total!==0&&(this._contentLength=Pe.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var at=Pe.target.response,wt=this._range.from+this._receivedLength;this._receivedLength+=at.byteLength,this._onDataArrival&&this._onDataArrival(at,wt,this._receivedLength)}},{key:"_onLoadEnd",value:function(Pe){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===s.kError)return;this._status=s.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}},{key:"_onXhrError",value:function(Pe){this._status=s.kError;var at=0,wt=null;if(this._contentLength&&Pe.loaded<this._contentLength?(at=u.EARLY_EOF,wt={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(at=u.EXCEPTION,wt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(at,wt);else throw new e(wt.msg)}}],[{key:"isSupported",value:function(){try{var Pe=new XMLHttpRequest;return Pe.open("GET","https://example.com",!0),Pe.responseType="moz-chunked-arraybuffer",Pe.responseType==="moz-chunked-arraybuffer"}catch(at){return c.w("MozChunkedLoader",at.message),!1}}}]),Re}(h),_=S,I=function(jt){Object(i.a)(Re,jt);var At=Object(n.a)(Re);function Re(Ke,Pe){var at;return Object(O.a)(this,Re),at=At.call(this,"xhr-msstream-loader"),at.TAG="MSStreamLoader",at._seekHandler=Ke,at._config=Pe,at._needStash=!0,at._xhr=null,at._reader=null,at._totalRange=null,at._currentRange=null,at._currentRequestURL=null,at._currentRedirectedURL=null,at._contentLength=null,at._receivedLength=0,at._bufferLimit=16*1024*1024,at._lastTimeBufferSize=0,at._isReconnecting=!1,at}return Object(x.a)(Re,[{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(m.a)(Re.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe,at){this._internalOpen(Pe,at,!1)}},{key:"_internalOpen",value:function(Pe,at,wt){this._dataSource=Pe,wt?this._currentRange=at:this._totalRange=at;var Rt=Pe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Rt=this._currentRedirectedURL:Pe.redirectedURL!=null&&(Rt=Pe.redirectedURL));var xt=this._seekHandler.getConfig(Rt,at);this._currentRequestURL=xt.url;var Lt=this._reader=new self.MSStreamReader;Lt.onprogress=this._msrOnProgress.bind(this),Lt.onload=this._msrOnLoad.bind(this),Lt.onerror=this._msrOnError.bind(this);var gr=this._xhr=new XMLHttpRequest;if(gr.open("GET",xt.url,!0),gr.responseType="ms-stream",gr.onreadystatechange=this._xhrOnReadyStateChange.bind(this),gr.onerror=this._xhrOnError.bind(this),Pe.withCredentials&&(gr.withCredentials=!0),typeof xt.headers=="object"){var Br=xt.headers;for(var Et in Br)Br.hasOwnProperty(Et)&&gr.setRequestHeader(Et,Br[Et])}if(typeof this._config.headers=="object"){var it=this._config.headers;for(var rt in it)it.hasOwnProperty(rt)&&gr.setRequestHeader(rt,it[rt])}this._isReconnecting?this._isReconnecting=!1:this._status=s.kConnecting,gr.send()}},{key:"abort",value:function(){this._internalAbort(),this._status=s.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(Pe){var at=Pe.target;if(at.readyState===2)if(at.status>=200&&at.status<=299){if(this._status=s.kBuffering,at.responseURL!=null){var wt=this._seekHandler.removeURLParameters(at.responseURL);at.responseURL!==this._currentRequestURL&&wt!==this._currentRedirectedURL&&(this._currentRedirectedURL=wt,this._onURLRedirect&&this._onURLRedirect(wt))}var Rt=at.getResponseHeader("Content-Length");if(Rt!=null&&this._contentLength==null){var xt=parseInt(Rt);xt>0&&(this._contentLength=xt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=s.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:at.status,msg:at.statusText});else throw new e("MSStreamLoader: Http code invalid, "+at.status+" "+at.statusText);else if(at.readyState===3&&(at.status>=200&&at.status<=299)){this._status=s.kBuffering;var Lt=at.response;this._reader.readAsArrayBuffer(Lt)}}},{key:"_xhrOnError",value:function(Pe){this._status=s.kError;var at=u.EXCEPTION,wt={code:-1,msg:Pe.constructor.name+" "+Pe.type};if(this._onError)this._onError(at,wt);else throw new e(wt.msg)}},{key:"_msrOnProgress",value:function(Pe){var at=Pe.target,wt=at.result;if(wt==null){this._doReconnectIfNeeded();return}var Rt=wt.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=wt.byteLength;var xt=this._totalRange.from+this._receivedLength;this._receivedLength+=Rt.byteLength,this._onDataArrival&&this._onDataArrival(Rt,xt,this._receivedLength),wt.byteLength>=this._bufferLimit&&(c.v(this.TAG,"MSStream buffer exceeded max size near ".concat(xt+Rt.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 Pe={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Pe,!0)}}},{key:"_msrOnLoad",value:function(Pe){this._status=s.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Pe){this._status=s.kError;var at=0,wt=null;if(this._contentLength&&this._receivedLength<this._contentLength?(at=u.EARLY_EOF,wt={code:-1,msg:"MSStream meet Early-Eof"}):(at=u.EARLY_EOF,wt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(at,wt);else throw new e(wt.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var Pe=new XMLHttpRequest;return Pe.open("GET","https://example.com",!0),Pe.responseType="ms-stream",Pe.responseType==="ms-stream"}catch(at){return c.w("MSStreamLoader",at.message),!1}}}]),Re}(h),L=I,N=function(jt){Object(i.a)(Re,jt);var At=Object(n.a)(Re);function Re(Ke,Pe){var at;return Object(O.a)(this,Re),at=At.call(this,"xhr-range-loader"),at.TAG="RangeLoader",at._seekHandler=Ke,at._config=Pe,at._needStash=!1,at._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],at._currentChunkSizeKB=384,at._currentSpeedNormalized=0,at._zeroSpeedChunkCount=0,at._xhr=null,at._speedSampler=new r,at._requestAbort=!1,at._waitForTotalLength=!1,at._totalLengthReceived=!1,at._currentRequestURL=null,at._currentRedirectedURL=null,at._currentRequestRange=null,at._totalLength=null,at._contentLength=null,at._receivedLength=0,at._lastTimeLoaded=0,at}return Object(x.a)(Re,[{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(m.a)(Re.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Pe,at){this._dataSource=Pe,this._range=at,this._status=s.kConnecting;var wt=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(wt=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!wt?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var Pe=this._currentChunkSizeKB*1024,at=this._range.from+this._receivedLength,wt=at+Pe;this._contentLength!=null&&(wt-this._range.from>=this._contentLength&&(wt=this._range.from+this._contentLength-1)),this._currentRequestRange={from:at,to:wt},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Pe,at){this._lastTimeLoaded=0;var wt=Pe.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?wt=this._currentRedirectedURL:Pe.redirectedURL!=null&&(wt=Pe.redirectedURL));var Rt=this._seekHandler.getConfig(wt,at);this._currentRequestURL=Rt.url;var xt=this._xhr=new XMLHttpRequest;if(xt.open("GET",Rt.url,!0),xt.responseType="arraybuffer",xt.onreadystatechange=this._onReadyStateChange.bind(this),xt.onprogress=this._onProgress.bind(this),xt.onload=this._onLoad.bind(this),xt.onerror=this._onXhrError.bind(this),Pe.withCredentials&&(xt.withCredentials=!0),typeof Rt.headers=="object"){var Lt=Rt.headers;for(var gr in Lt)Lt.hasOwnProperty(gr)&&xt.setRequestHeader(gr,Lt[gr])}if(typeof this._config.headers=="object"){var Br=this._config.headers;for(var Et in Br)Br.hasOwnProperty(Et)&&xt.setRequestHeader(Et,Br[Et])}xt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._internalAbort(),this._status=s.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(Pe){var at=Pe.target;if(at.readyState===2){if(at.responseURL!=null){var wt=this._seekHandler.removeURLParameters(at.responseURL);at.responseURL!==this._currentRequestURL&&wt!==this._currentRedirectedURL&&(this._currentRedirectedURL=wt,this._onURLRedirect&&this._onURLRedirect(wt))}if(at.status>=200&&at.status<=299){if(this._waitForTotalLength)return;this._status=s.kBuffering}else if(this._status=s.kError,this._onError)this._onError(u.HTTP_STATUS_CODE_INVALID,{code:at.status,msg:at.statusText});else throw new e("RangeLoader: Http code invalid, "+at.status+" "+at.statusText)}}},{key:"_onProgress",value:function(Pe){if(this._status===s.kError)return;if(this._contentLength===null){var at=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,at=!0;var wt=Pe.total;this._internalAbort(),wt!=null&wt!==0&&(this._totalLength=wt)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,at){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var Rt=Pe.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Pe.loaded,this._speedSampler.addBytes(Rt)}},{key:"_normalizeSpeed",value:function(Pe){var at=this._chunkSizeKBList,wt=at.length-1,Rt=0,xt=0,Lt=wt;if(Pe<at[0])return at[0];for(;xt<=Lt;){if(Rt=xt+Math.floor((Lt-xt)/2),Rt===wt||Pe>=at[Rt]&&Pe<at[Rt+1])return at[Rt];at[Rt]<Pe?xt=Rt+1:Lt=Rt-1}}},{key:"_onLoad",value:function(Pe){if(this._status===s.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var at=this._speedSampler.lastSecondKBps;if(at===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(at=this._speedSampler.currentKBps)),at!==0){var wt=this._normalizeSpeed(at);this._currentSpeedNormalized!==wt&&(this._currentSpeedNormalized=wt,this._currentChunkSizeKB=wt)}var Rt=Pe.target.response,xt=this._range.from+this._receivedLength;this._receivedLength+=Rt.byteLength;var Lt=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Lt=!0,this._onDataArrival&&this._onDataArrival(Rt,xt,this._receivedLength),Lt&&(this._status=s.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Pe){this._status=s.kError;var at=0,wt=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(at=u.EARLY_EOF,wt={code:-1,msg:"RangeLoader meet Early-Eof"}):(at=u.EXCEPTION,wt={code:-1,msg:Pe.constructor.name+" "+Pe.type}),this._onError)this._onError(at,wt);else throw new e(wt.msg)}}],[{key:"isSupported",value:function(){try{var Pe=new XMLHttpRequest;return Pe.open("GET","https://example.com",!0),Pe.responseType="arraybuffer",Pe.responseType==="arraybuffer"}catch(at){return c.w("RangeLoader",at.message),!1}}}]),Re}(h),R=N,D=function(jt){Object(i.a)(Re,jt);var At=Object(n.a)(Re);function Re(){var Ke;return Object(O.a)(this,Re),Ke=At.call(this,"websocket-loader"),Ke.TAG="WebSocketLoader",Ke._needStash=!0,Ke._ws=null,Ke._requestAbort=!1,Ke._receivedLength=0,Ke}return Object(x.a)(Re,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(p.a)(Object(m.a)(Re.prototype),"destroy",this).call(this)}},{key:"open",value:function(Pe){try{var at=this._ws=new self.WebSocket(Pe.url);at.binaryType="arraybuffer",at.onopen=this._onWebSocketOpen.bind(this),at.onclose=this._onWebSocketClose.bind(this),at.onmessage=this._onWebSocketMessage.bind(this),at.onerror=this._onWebSocketError.bind(this),this._status=s.kConnecting}catch(Rt){this._status=s.kError;var wt={code:Rt.code,msg:Rt.message};if(this._onError)this._onError(u.EXCEPTION,wt);else throw new e(wt.msg)}}},{key:"abort",value:function(){var Pe=this._ws;Pe&&(Pe.readyState===0||Pe.readyState===1)&&(this._requestAbort=!0,Pe.close()),this._ws=null,this._status=s.kComplete}},{key:"_onWebSocketOpen",value:function(Pe){this._status=s.kBuffering}},{key:"_onWebSocketClose",value:function(Pe){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=s.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Pe){var at=this;if(Pe.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Pe.data);else if(Pe.data instanceof Blob){var wt=new FileReader;wt.onload=function(){at._dispatchArrayBuffer(wt.result)},wt.readAsArrayBuffer(Pe.data)}else{this._status=s.kError;var Rt={code:-1,msg:"Unsupported WebSocket message type: "+Pe.data.constructor.name};if(this._onError)this._onError(u.EXCEPTION,Rt);else throw new e(Rt.msg)}}},{key:"_dispatchArrayBuffer",value:function(Pe){var at=Pe,wt=this._receivedLength;this._receivedLength+=at.byteLength,this._onDataArrival&&this._onDataArrival(at,wt,this._receivedLength)}},{key:"_onWebSocketError",value:function(Pe){this._status=s.kError;var at={code:Pe.code,msg:Pe.message};if(this._onError)this._onError(u.EXCEPTION,at);else throw new e(at.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Pe){return!1}}}]),Re}(h),F=D,M=function(){function jt(At){Object(O.a)(this,jt),this._zeroStart=At||!1}return Object(x.a)(jt,[{key:"getConfig",value:function(Re,Ke){var Pe={};if(Ke.from!==0||Ke.to!==-1){var at;Ke.to!==-1?at="bytes=".concat(Ke.from.toString(),"-").concat(Ke.to.toString()):at="bytes=".concat(Ke.from.toString(),"-"),Pe.Range=at}else this._zeroStart&&(Pe.Range="bytes=0-");return{url:Re,headers:Pe}}},{key:"removeURLParameters",value:function(Re){return Re}}]),jt}(),U=M,B=function(){function jt(At,Re){Object(O.a)(this,jt),this._startName=At,this._endName=Re}return Object(x.a)(jt,[{key:"getConfig",value:function(Re,Ke){var Pe=Re;if(Ke.from!==0||Ke.to!==-1){var at=!0;Pe.indexOf("?")===-1&&(Pe+="?",at=!1),at&&(Pe+="&"),Pe+="".concat(this._startName,"=").concat(Ke.from.toString()),Ke.to!==-1&&(Pe+="&".concat(this._endName,"=").concat(Ke.to.toString()))}return{url:Pe,headers:{}}}},{key:"removeURLParameters",value:function(Re){var Ke=Re.split("?")[0],Pe=void 0,at=Re.indexOf("?");at!==-1&&(Pe=Re.substring(at+1));var wt="";if(Pe!=null&&Pe.length>0)for(var Rt=Pe.split("&"),xt=0;xt<Rt.length;xt++){var Lt=Rt[xt].split("="),gr=xt>0;Lt[0]!==this._startName&&Lt[0]!==this._endName&&(gr&&(wt+="&"),wt+=Rt[xt])}return wt.length===0?Ke:Ke+"?"+wt}}]),jt}(),j=B,W=function(){function jt(At,Re,Ke){Object(O.a)(this,jt),this.TAG="IOController",this._config=Re,this._extraData=Ke,this._stashInitialSize=1024*384,Re.stashInitialSize!=null&&Re.stashInitialSize>0&&(this._stashInitialSize=Re.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,Re.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=At,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(At.url),this._refTotalLength=At.filesize?At.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(x.a)(jt,[{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(Re){this._extraData=Re}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(Re){this._onDataArrival=Re}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(Re){this._onSeeked=Re}},{key:"onError",get:function(){return this._onError},set:function(Re){this._onError=Re}},{key:"onComplete",get:function(){return this._onComplete},set:function(Re){this._onComplete=Re}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(Re){this._onRedirect=Re}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(Re){this._onRecoveredEarlyEof=Re}},{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===R?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var Re=this._config;if(Re.seekType==="range")this._seekHandler=new U(this._config.rangeLoadZeroStart);else if(Re.seekType==="param"){var Ke=Re.seekParamStart||"bstart",Pe=Re.seekParamEnd||"bend";this._seekHandler=new j(Ke,Pe)}else if(Re.seekType==="custom"){if(typeof Re.customSeekHandler!="function")throw new t("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new Re.customSeekHandler}else throw new t("Invalid seekType in config: ".concat(Re.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=F;else if(w.isSupported())this._loaderClass=w;else if(_.isSupported())this._loaderClass=_;else if(R.isSupported())this._loaderClass=R;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(Re){this._currentRange={from:0,to:-1},Re&&(this._currentRange.from=Re),this._speedSampler.reset(),Re||(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 Re=this._resumeFrom;this._resumeFrom=0,this._internalSeek(Re,!0)}}},{key:"seek",value:function(Re){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(Re,!0)}},{key:"_internalSeek",value:function(Re,Ke){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Ke),this._loader.destroy(),this._loader=null;var Pe={from:Re,to:-1};this._currentRange={from:Pe.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Pe),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(Re){if(!Re||typeof Re!="string"||Re.length===0)throw new t("Url must be a non-empty string!");this._dataSource.url=Re}},{key:"_expandBuffer",value:function(Re){for(var Ke=this._stashSize;Ke+1024*1024*1<Re;)Ke*=2;if(Ke+=1024*1024*1,Ke===this._bufferSize)return;var Pe=new ArrayBuffer(Ke);if(this._stashUsed>0){var at=new Uint8Array(this._stashBuffer,0,this._stashUsed),wt=new Uint8Array(Pe,0,Ke);wt.set(at,0)}this._stashBuffer=Pe,this._bufferSize=Ke}},{key:"_normalizeSpeed",value:function(Re){var Ke=this._speedNormalizeList,Pe=Ke.length-1,at=0,wt=0,Rt=Pe;if(Re<Ke[0])return Ke[0];for(;wt<=Rt;){if(at=wt+Math.floor((Rt-wt)/2),at===Pe||Re>=Ke[at]&&Re<Ke[at+1])return Ke[at];Ke[at]<Re?wt=at+1:Rt=at-1}}},{key:"_adjustStashSize",value:function(Re){var Ke=0;this._config.isLive||Re<512?Ke=Re:Re>=512&&Re<=1024?Ke=Math.floor(Re*1.5):Ke=Re*2,Ke>8192&&(Ke=8192);var Pe=Ke*1024+1024*1024*1;this._bufferSize<Pe&&this._expandBuffer(Pe),this._stashSize=Ke*1024}},{key:"_dispatchChunks",value:function(Re,Ke){return this._currentRange.to=Ke+Re.byteLength-1,this._onDataArrival(Re,Ke)}},{key:"_onURLRedirect",value:function(Re){this._redirectedURL=Re,this._onRedirect&&this._onRedirect(Re)}},{key:"_onContentLengthKnown",value:function(Re){Re&&this._fullRequestFlag&&(this._totalLength=Re,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(Re,Ke,Pe){if(!this._onDataArrival)throw new l("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(Re.byteLength);var at=this._speedSampler.lastSecondKBps;if(at!==0){var wt=this._normalizeSpeed(at);this._speedNormalized!==wt&&(this._speedNormalized=wt,this._adjustStashSize(wt))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=Ke),this._stashUsed+Re.byteLength<=this._stashSize){var it=new Uint8Array(this._stashBuffer,0,this._stashSize);it.set(new Uint8Array(Re),this._stashUsed),this._stashUsed+=Re.byteLength}else{var rt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var Pt=this._stashBuffer.slice(0,this._stashUsed),Ht=this._dispatchChunks(Pt,this._stashByteStart);if(Ht<Pt.byteLength){if(Ht>0){var bt=new Uint8Array(Pt,Ht);rt.set(bt,0),this._stashUsed=bt.byteLength,this._stashByteStart+=Ht}}else this._stashUsed=0,this._stashByteStart+=Ht;this._stashUsed+Re.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+Re.byteLength),rt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),rt.set(new Uint8Array(Re),this._stashUsed),this._stashUsed+=Re.byteLength}else{var Gt=this._dispatchChunks(Re,Ke);if(Gt<Re.byteLength){var ut=Re.byteLength-Gt;ut>this._bufferSize&&(this._expandBuffer(ut),rt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),rt.set(new Uint8Array(Re,Gt),0),this._stashUsed+=ut,this._stashByteStart=Ke+Gt}}}else if(this._stashUsed===0){var Rt=this._dispatchChunks(Re,Ke);if(Rt<Re.byteLength){var xt=Re.byteLength-Rt;xt>this._bufferSize&&this._expandBuffer(xt);var Lt=new Uint8Array(this._stashBuffer,0,this._bufferSize);Lt.set(new Uint8Array(Re,Rt),0),this._stashUsed+=xt,this._stashByteStart=Ke+Rt}}else{this._stashUsed+Re.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+Re.byteLength);var gr=new Uint8Array(this._stashBuffer,0,this._bufferSize);gr.set(new Uint8Array(Re),this._stashUsed),this._stashUsed+=Re.byteLength;var Br=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(Br<this._stashUsed&&Br>0){var Et=new Uint8Array(this._stashBuffer,Br);gr.set(Et,0)}this._stashUsed-=Br,this._stashByteStart+=Br}}},{key:"_flushStashBuffer",value:function(Re){if(this._stashUsed>0){var Ke=this._stashBuffer.slice(0,this._stashUsed),Pe=this._dispatchChunks(Ke,this._stashByteStart),at=Ke.byteLength-Pe;if(Pe<Ke.byteLength)if(Re)c.w(this.TAG,"".concat(at," bytes unconsumed data remain when flush buffer, dropped"));else{if(Pe>0){var wt=new Uint8Array(this._stashBuffer,0,this._bufferSize),Rt=new Uint8Array(Ke,Pe);wt.set(Rt,0),this._stashUsed=Rt.byteLength,this._stashByteStart+=Pe}return 0}return this._stashUsed=0,this._stashByteStart=0,at}return 0}},{key:"_onLoaderComplete",value:function(Re,Ke){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(Re,Ke){c.e(this.TAG,"Loader error, code = ".concat(Ke.code,", msg = ").concat(Ke.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,Re=u.UNRECOVERABLE_EARLY_EOF);switch(Re){case u.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Pe=this._currentRange.to+1;Pe<this._totalLength&&(c.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Pe,!1));return}Re=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(Re,Ke);else throw new e("IOException: "+Ke.msg)}}]),jt}(),V=W,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 J(){return Object.assign({},z)}var q=function(){function jt(){Object(O.a)(this,jt)}return Object(x.a)(jt,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var Re=new V({},J()),Ke=Re.loaderType;return Re.destroy(),Ke=="fetch-stream-loader"||Ke=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var Re=new V({},J()),Ke=Re.loaderType;return Re.destroy(),Ke}},{key:"supportNativeMediaPlayback",value:function(Re){jt.videoElement==null&&(jt.videoElement=window.document.createElement("video"));var Ke=jt.videoElement.canPlayType(Re);return Ke==="probably"||Ke=="maybe"}},{key:"getFeatureList",value:function(){var Re={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return Re.mseFlvPlayback=jt.supportMSEH264Playback(),Re.networkStreamIO=jt.supportNetworkStreamIO(),Re.networkLoaderName=jt.getNetworkLoaderTypeName(),Re.mseLiveFlvPlayback=Re.mseFlvPlayback&&Re.networkStreamIO,Re.nativeMP4H264Playback=jt.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),Re.nativeWebmVP8Playback=jt.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),Re.nativeWebmVP9Playback=jt.supportNativeMediaPlayback('video/webm; codecs="vp9"'),Re}}]),jt}(),de=q,ae={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=ae,_e=function(){function jt(){Object(O.a)(this,jt)}return Object(x.a)(jt,null,[{key:"forceGlobalTag",get:function(){return c.FORCE_GLOBAL_TAG},set:function(Re){c.FORCE_GLOBAL_TAG=Re,jt._notifyChange()}},{key:"globalTag",get:function(){return c.GLOBAL_TAG},set:function(Re){c.GLOBAL_TAG=Re,jt._notifyChange()}},{key:"enableAll",get:function(){return c.ENABLE_VERBOSE&&c.ENABLE_DEBUG&&c.ENABLE_INFO&&c.ENABLE_WARN&&c.ENABLE_ERROR},set:function(Re){c.ENABLE_VERBOSE=Re,c.ENABLE_DEBUG=Re,c.ENABLE_INFO=Re,c.ENABLE_WARN=Re,c.ENABLE_ERROR=Re,jt._notifyChange()}},{key:"enableDebug",get:function(){return c.ENABLE_DEBUG},set:function(Re){c.ENABLE_DEBUG=Re,jt._notifyChange()}},{key:"enableVerbose",get:function(){return c.ENABLE_VERBOSE},set:function(Re){c.ENABLE_VERBOSE=Re,jt._notifyChange()}},{key:"enableInfo",get:function(){return c.ENABLE_INFO},set:function(Re){c.ENABLE_INFO=Re,jt._notifyChange()}},{key:"enableWarn",get:function(){return c.ENABLE_WARN},set:function(Re){c.ENABLE_WARN=Re,jt._notifyChange()}},{key:"enableError",get:function(){return c.ENABLE_ERROR},set:function(Re){c.ENABLE_ERROR=Re,jt._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(Re){c.GLOBAL_TAG=Re.globalTag,c.FORCE_GLOBAL_TAG=Re.forceGlobalTag,c.ENABLE_VERBOSE=Re.enableVerbose,c.ENABLE_DEBUG=Re.enableDebug,c.ENABLE_INFO=Re.enableInfo,c.ENABLE_WARN=Re.enableWarn,c.ENABLE_ERROR=Re.enableError,c.ENABLE_CALLBACK=Re.enableCallback}},{key:"_notifyChange",value:function(){var Re=jt.emitter;if(Re.listenerCount("change")>0){var Ke=jt.getConfig();Re.emit("change",Ke)}}},{key:"registerListener",value:function(Re){jt.emitter.addListener("change",Re)}},{key:"removeListener",value:function(Re){jt.emitter.removeListener("change",Re)}},{key:"addLogListener",value:function(Re){c.emitter.addListener("log",Re),c.emitter.listenerCount("log")>0&&(c.ENABLE_CALLBACK=!0,jt._notifyChange())}},{key:"removeLogListener",value:function(Re){c.emitter.removeListener("log",Re),c.emitter.listenerCount("log")===0&&(c.ENABLE_CALLBACK=!1,jt._notifyChange())}}]),jt}();_e.emitter=new g.a;var Ie=_e,He=function(){function jt(){Object(O.a)(this,jt),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(x.a)(jt,[{key:"isComplete",value:function(){var Re=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Ke=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&&Re&&Ke}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(Re){if(this.keyframesIndex==null)return null;var Ke=this.keyframesIndex,Pe=this._search(Ke.times,Re);return{index:Pe,milliseconds:Ke.times[Pe],fileposition:Ke.filepositions[Pe]}}},{key:"_search",value:function(Re,Ke){var Pe=0,at=Re.length-1,wt=0,Rt=0,xt=at;for(Ke<Re[0]&&(Pe=0,Rt=xt+1);Rt<=xt;)if(wt=Rt+Math.floor((xt-Rt)/2),wt===at||Ke>=Re[wt]&&Ke<Re[wt+1]){Pe=wt;break}else Re[wt]<Ke?Rt=wt+1:xt=wt-1;return Pe}}]),jt}(),me=He;function ke(jt,At,Re){var Ke=jt;if(At+Re<Ke.length){for(;Re--;)if((Ke[++At]&192)!==128)return!1;return!0}else return!1}function se(jt){for(var At=[],Re=jt,Ke=0,Pe=jt.length;Ke<Pe;){if(Re[Ke]<128){At.push(String.fromCharCode(Re[Ke])),++Ke;continue}else if(!(Re[Ke]<192)){if(Re[Ke]<224){if(ke(Re,Ke,1)){var at=(Re[Ke]&31)<<6|Re[Ke+1]&63;if(at>=128){At.push(String.fromCharCode(at&65535)),Ke+=2;continue}}}else if(Re[Ke]<240){if(ke(Re,Ke,2)){var wt=(Re[Ke]&15)<<12|(Re[Ke+1]&63)<<6|Re[Ke+2]&63;if(wt>=2048&&(wt&63488)!==55296){At.push(String.fromCharCode(wt&65535)),Ke+=3;continue}}}else if(Re[Ke]<248&&ke(Re,Ke,3)){var Rt=(Re[Ke]&7)<<18|(Re[Ke+1]&63)<<12|(Re[Ke+2]&63)<<6|Re[Ke+3]&63;if(Rt>65536&&Rt<1114112){Rt-=65536,At.push(String.fromCharCode(Rt>>>10|55296)),At.push(String.fromCharCode(Rt&1023|56320)),Ke+=4;continue}}}At.push(String.fromCharCode(65533)),++Ke}return At.join("")}var te=se,Ge=function(){var jt=new ArrayBuffer(2);return new DataView(jt).setInt16(0,256,!0),new Int16Array(jt)[0]===256}(),oe=function(){function jt(){Object(O.a)(this,jt)}return Object(x.a)(jt,null,[{key:"parseScriptData",value:function(Re,Ke,Pe){var at={};try{var wt=jt.parseValue(Re,Ke,Pe),Rt=jt.parseValue(Re,Ke+wt.size,Pe-wt.size);at[wt.data]=Rt.data}catch(xt){c.e("AMF",xt.toString())}return at}},{key:"parseObject",value:function(Re,Ke,Pe){if(Pe<3)throw new l("Data not enough when parse ScriptDataObject");var at=jt.parseString(Re,Ke,Pe),wt=jt.parseValue(Re,Ke+at.size,Pe-at.size),Rt=wt.objectEnd;return{data:{name:at.data,value:wt.data},size:at.size+wt.size,objectEnd:Rt}}},{key:"parseVariable",value:function(Re,Ke,Pe){return jt.parseObject(Re,Ke,Pe)}},{key:"parseString",value:function(Re,Ke,Pe){if(Pe<2)throw new l("Data not enough when parse String");var at=new DataView(Re,Ke,Pe),wt=at.getUint16(0,!Ge),Rt;return wt>0?Rt=te(new Uint8Array(Re,Ke+2,wt)):Rt="",{data:Rt,size:2+wt}}},{key:"parseLongString",value:function(Re,Ke,Pe){if(Pe<4)throw new l("Data not enough when parse LongString");var at=new DataView(Re,Ke,Pe),wt=at.getUint32(0,!Ge),Rt;return wt>0?Rt=te(new Uint8Array(Re,Ke+4,wt)):Rt="",{data:Rt,size:4+wt}}},{key:"parseDate",value:function(Re,Ke,Pe){if(Pe<10)throw new l("Data size invalid when parse Date");var at=new DataView(Re,Ke,Pe),wt=at.getFloat64(0,!Ge),Rt=at.getInt16(8,!Ge);return wt+=Rt*60*1e3,{data:new Date(wt),size:8+2}}},{key:"parseValue",value:function(Re,Ke,Pe){if(Pe<1)throw new l("Data not enough when parse Value");var at=new DataView(Re,Ke,Pe),wt=1,Rt=at.getUint8(0),xt,Lt=!1;try{switch(Rt){case 0:xt=at.getFloat64(1,!Ge),wt+=8;break;case 1:{var gr=at.getUint8(1);xt=!!gr,wt+=1;break}case 2:{var Br=jt.parseString(Re,Ke+1,Pe-1);xt=Br.data,wt+=Br.size;break}case 3:{xt={};var Et=0;for((at.getUint32(Pe-4,!Ge)&16777215)===9&&(Et=3);wt<Pe-4;){var it=jt.parseObject(Re,Ke+wt,Pe-wt-Et);if(it.objectEnd)break;xt[it.data.name]=it.data.value,wt+=it.size}if(wt<=Pe-3){var rt=at.getUint32(wt-1,!Ge)&16777215;rt===9&&(wt+=3)}break}case 8:{xt={},wt+=4;var Pt=0;for((at.getUint32(Pe-4,!Ge)&16777215)===9&&(Pt=3);wt<Pe-8;){var Ht=jt.parseVariable(Re,Ke+wt,Pe-wt-Pt);if(Ht.objectEnd)break;xt[Ht.data.name]=Ht.data.value,wt+=Ht.size}if(wt<=Pe-3){var bt=at.getUint32(wt-1,!Ge)&16777215;bt===9&&(wt+=3)}break}case 9:xt=void 0,wt=1,Lt=!0;break;case 10:{xt=[];var Gt=at.getUint32(1,!Ge);wt+=4;for(var ut=0;ut<Gt;ut++){var Kt=jt.parseValue(Re,Ke+wt,Pe-wt);xt.push(Kt.data),wt+=Kt.size}break}case 11:{var Ar=jt.parseDate(Re,Ke+1,Pe-1);xt=Ar.data,wt+=Ar.size;break}case 12:{var ir=jt.parseString(Re,Ke+1,Pe-1);xt=ir.data,wt+=ir.size;break}default:wt=Pe,c.w("AMF","Unsupported AMF value type "+Rt)}}catch(pr){c.e("AMF",pr.toString())}return{data:xt,size:wt,objectEnd:Lt}}}]),jt}(),Y=oe,G=function(){function jt(At){Object(O.a)(this,jt),this.TAG="ExpGolomb",this._buffer=At,this._buffer_index=0,this._total_bytes=At.byteLength,this._total_bits=At.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(x.a)(jt,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var Re=this._total_bytes-this._buffer_index;if(Re<=0)throw new l("ExpGolomb: _fillCurrentWord() but no bytes available");var Ke=Math.min(4,Re),Pe=new Uint8Array(4);Pe.set(this._buffer.subarray(this._buffer_index,this._buffer_index+Ke)),this._current_word=new DataView(Pe.buffer).getUint32(0,!1),this._buffer_index+=Ke,this._current_word_bits_left=Ke*8}},{key:"readBits",value:function(Re){if(Re>32)throw new t("ExpGolomb: readBits() bits exceeded max 32bits!");if(Re<=this._current_word_bits_left){var Ke=this._current_word>>>32-Re;return this._current_word<<=Re,this._current_word_bits_left-=Re,Ke}var Pe=this._current_word_bits_left?this._current_word:0;Pe=Pe>>>32-this._current_word_bits_left;var at=Re-this._current_word_bits_left;this._fillCurrentWord();var wt=Math.min(at,this._current_word_bits_left),Rt=this._current_word>>>32-wt;return this._current_word<<=wt,this._current_word_bits_left-=wt,Pe=Pe<<wt|Rt,Pe}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var Re;for(Re=0;Re<this._current_word_bits_left;Re++)if((this._current_word&2147483648>>>Re)!==0)return this._current_word<<=Re,this._current_word_bits_left-=Re,Re;return this._fillCurrentWord(),Re+this._skipLeadingZero()}},{key:"readUEG",value:function(){var Re=this._skipLeadingZero();return this.readBits(Re+1)-1}},{key:"readSEG",value:function(){var Re=this.readUEG();return Re&1?Re+1>>>1:-1*(Re>>>1)}}]),jt}(),Q=G,ye=function(){function jt(){Object(O.a)(this,jt)}return Object(x.a)(jt,null,[{key:"_ebsp2rbsp",value:function(Re){for(var Ke=Re,Pe=Ke.byteLength,at=new Uint8Array(Pe),wt=0,Rt=0;Rt<Pe;Rt++){if(Rt>=2&&(Ke[Rt]===3&&Ke[Rt-1]===0&&Ke[Rt-2]===0))continue;at[wt]=Ke[Rt],wt++}return new Uint8Array(at.buffer,0,wt)}},{key:"parseSPS",value:function(Re){var Ke=jt._ebsp2rbsp(Re),Pe=new Q(Ke);Pe.readByte();var at=Pe.readByte();Pe.readByte();var wt=Pe.readByte();Pe.readUEG();var Rt=jt.getProfileString(at),xt=jt.getLevelString(wt),Lt=1,gr=420,Br=[0,420,422,444],Et=8;if((at===100||at===110||at===122||at===244||at===44||at===83||at===86||at===118||at===128||at===138||at===144)&&(Lt=Pe.readUEG(),Lt===3&&Pe.readBits(1),Lt<=3&&(gr=Br[Lt]),Et=Pe.readUEG()+8,Pe.readUEG(),Pe.readBits(1),Pe.readBool()))for(var it=Lt!==3?8:12,rt=0;rt<it;rt++)Pe.readBool()&&(rt<6?jt._skipScalingList(Pe,16):jt._skipScalingList(Pe,64));Pe.readUEG();var Pt=Pe.readUEG();if(Pt===0)Pe.readUEG();else if(Pt===1){Pe.readBits(1),Pe.readSEG(),Pe.readSEG();for(var Ht=Pe.readUEG(),bt=0;bt<Ht;bt++)Pe.readSEG()}var Gt=Pe.readUEG();Pe.readBits(1);var ut=Pe.readUEG(),Kt=Pe.readUEG(),Ar=Pe.readBits(1);Ar===0&&Pe.readBits(1),Pe.readBits(1);var ir=0,pr=0,tn=0,fn=0,Mn=Pe.readBool();Mn&&(ir=Pe.readUEG(),pr=Pe.readUEG(),tn=Pe.readUEG(),fn=Pe.readUEG());var Yn=1,si=1,vi=0,xi=!0,_i=0,Ze=0,we=Pe.readBool();if(we){if(Pe.readBool()){var Ne=Pe.readByte(),Fe=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Ye=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Ne>0&&Ne<16?(Yn=Fe[Ne-1],si=Ye[Ne-1]):Ne===255&&(Yn=Pe.readByte()<<8|Pe.readByte(),si=Pe.readByte()<<8|Pe.readByte())}if(Pe.readBool()&&Pe.readBool(),Pe.readBool()&&(Pe.readBits(4),Pe.readBool()&&Pe.readBits(24)),Pe.readBool()&&(Pe.readUEG(),Pe.readUEG()),Pe.readBool()){var We=Pe.readBits(32),qe=Pe.readBits(32);xi=Pe.readBool(),_i=qe,Ze=We*2,vi=_i/Ze}}var yt=1;(Yn!==1||si!==1)&&(yt=Yn/si);var ot=0,$t=0;if(Lt===0)ot=1,$t=2-Ar;else{var Mr=Lt===3?1:2,Sr=Lt===1?2:1;ot=Mr,$t=Sr*(2-Ar)}var jr=(ut+1)*16,tr=(2-Ar)*((Kt+1)*16);jr-=(ir+pr)*ot,tr-=(tn+fn)*$t;var gn=Math.ceil(jr*yt);return Pe.destroy(),Pe=null,{profile_string:Rt,level_string:xt,bit_depth:Et,ref_frames:Gt,chroma_format:gr,chroma_format_string:jt.getChromaFormatString(gr),frame_rate:{fixed:xi,fps:vi,fps_den:Ze,fps_num:_i},sar_ratio:{width:Yn,height:si},codec_size:{width:jr,height:tr},present_size:{width:gn,height:tr}}}},{key:"_skipScalingList",value:function(Re,Ke){for(var Pe=8,at=8,wt=0,Rt=0;Rt<Ke;Rt++)at!==0&&(wt=Re.readSEG(),at=(Pe+wt+256)%256),Pe=at===0?Pe:at}},{key:"getProfileString",value:function(Re){switch(Re){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(Re){return(Re/10).toFixed(1)}},{key:"getChromaFormatString",value:function(Re){switch(Re){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),jt}(),ce=ye,Te={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Se=Te;function le(jt){return jt>>>8&255|(jt&255)<<8}function fe(jt){return(jt&4278190080)>>>24|(jt&16711680)>>>8|(jt&65280)<<8|(jt&255)<<24}function Ee(jt,At){return jt[At]<<24|jt[At+1]<<16|jt[At+2]<<8|jt[At+3]}var Ve=function(){function jt(At,Re){Object(O.a)(this,jt),this.TAG="FLVDemuxer",this._config=Re,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=At.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=At.hasAudioTrack,this._hasVideo=At.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new me,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 Ke=new ArrayBuffer(2);return new DataView(Ke).setInt16(0,256,!0),new Int16Array(Ke)[0]===256}()}return Object(x.a)(jt,[{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(Re){return Re.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(Re){this._onTrackMetadata=Re}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(Re){this._onMediaInfo=Re}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(Re){this._onMetaDataArrived=Re}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(Re){this._onScriptDataArrived=Re}},{key:"onError",get:function(){return this._onError},set:function(Re){this._onError=Re}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(Re){this._onDataAvailable=Re}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(Re){this._timestampBase=Re}},{key:"overridedDuration",get:function(){return this._duration},set:function(Re){this._durationOverrided=!0,this._duration=Re,this._mediaInfo.duration=Re}},{key:"overridedHasAudio",set:function(Re){this._hasAudioFlagOverrided=!0,this._hasAudio=Re,this._mediaInfo.hasAudio=Re}},{key:"overridedHasVideo",set:function(Re){this._hasVideoFlagOverrided=!0,this._hasVideo=Re,this._mediaInfo.hasVideo=Re}},{key:"resetMediaInfo",value:function(){this._mediaInfo=new me}},{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(Re,Ke){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new l("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Pe=0,at=this._littleEndian;if(Ke===0)if(Re.byteLength>13){var wt=jt.probe(Re);Pe=wt.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,Ke+Pe!==this._dataOffset&&c.w(this.TAG,"First time parsing but chunk byteStart invalid!");var Rt=new DataView(Re,Pe),xt=Rt.getUint32(0,!at);xt!==0&&c.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Pe+=4}for(;Pe<Re.byteLength;){this._dispatch=!0;var Lt=new DataView(Re,Pe);if(Pe+11+4>Re.byteLength)break;var gr=Lt.getUint8(0),Br=Lt.getUint32(0,!at)&16777215;if(Pe+11+Br+4>Re.byteLength)break;if(gr!==8&&gr!==9&&gr!==18){c.w(this.TAG,"Unsupported tag type ".concat(gr,", skipped")),Pe+=11+Br+4;continue}var Et=Lt.getUint8(4),it=Lt.getUint8(5),rt=Lt.getUint8(6),Pt=Lt.getUint8(7),Ht=rt|it<<8|Et<<16|Pt<<24,bt=Lt.getUint32(7,!at)&16777215;bt!==0&&c.w(this.TAG,"Meet tag which has StreamID != 0!");var Gt=Pe+11;switch(gr){case 8:this._parseAudioData(Re,Gt,Br,Ht);break;case 9:this._parseVideoData(Re,Gt,Br,Ht,Ke+Pe);break;case 18:this._parseScriptData(Re,Gt,Br);break}var ut=Lt.getUint32(11+Br,!at);ut!==11+Br&&c.w(this.TAG,"Invalid PrevTagSize ".concat(ut)),Pe+=11+Br+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Pe}},{key:"_parseScriptData",value:function(Re,Ke,Pe){var at=Y.parseScriptData(Re,Ke,Pe);if(at.hasOwnProperty("onMetaData")){if(at.onMetaData==null||typeof at.onMetaData!="object"){c.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&c.w(this.TAG,"Found another onMetaData tag!"),this._metadata=at;var wt=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},wt)),typeof wt.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=wt.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof wt.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=wt.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof wt.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=wt.audiodatarate),typeof wt.videodatarate=="number"&&(this._mediaInfo.videoDataRate=wt.videodatarate),typeof wt.width=="number"&&(this._mediaInfo.width=wt.width),typeof wt.height=="number"&&(this._mediaInfo.height=wt.height),typeof wt.duration=="number"){if(!this._durationOverrided){var Rt=Math.floor(wt.duration*this._timescale);this._duration=Rt,this._mediaInfo.duration=Rt}}else this._mediaInfo.duration=0;if(typeof wt.framerate=="number"){var xt=Math.floor(wt.framerate*1e3);if(xt>0){var Lt=xt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Lt,this._referenceFrameRate.fps_num=xt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Lt}}if(typeof wt.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var gr=wt.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(gr),wt.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=wt,c.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(at).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},at)))}},{key:"_parseKeyframesIndex",value:function(Re){for(var Ke=[],Pe=[],at=1;at<Re.times.length;at++){var wt=this._timestampBase+Math.floor(Re.times[at]*1e3);Ke.push(wt),Pe.push(Re.filepositions[at])}return{times:Ke,filepositions:Pe}}},{key:"_parseAudioData",value:function(Re,Ke,Pe,at){if(Pe<=1){c.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var wt=this._littleEndian,Rt=new DataView(Re,Ke,Pe),xt=Rt.getUint8(0),Lt=xt>>>4;if(Lt!==2&&Lt!==10){this._onError(Se.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Lt);return}var gr=0,Br=(xt&12)>>>2;if(Br>=0&&Br<=4)gr=this._flvSoundRateTable[Br];else{this._onError(Se.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Br);return}var Et=(xt&2)>>>1,it=xt&1,rt=this._audioMetadata,Pt=this._audioTrack;if(rt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),rt=this._audioMetadata={},rt.type="audio",rt.id=Pt.id,rt.timescale=this._timescale,rt.duration=this._duration,rt.audioSampleRate=gr,rt.channelCount=it===0?1:2),Lt===10){var Ht=this._parseAACAudioData(Re,Ke+1,Pe-1);if(Ht==null)return;if(Ht.packetType===0){rt.config&&c.w(this.TAG,"Found another AudioSpecificConfig!");var bt=Ht.data;rt.audioSampleRate=bt.samplingRate,rt.channelCount=bt.channelCount,rt.codec=bt.codec,rt.originalCodec=bt.originalCodec,rt.config=bt.config,rt.refSampleDuration=1024/rt.audioSampleRate*rt.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",rt);var Gt=this._mediaInfo;Gt.audioCodec=rt.originalCodec,Gt.audioSampleRate=rt.audioSampleRate,Gt.audioChannelCount=rt.channelCount,Gt.hasVideo?Gt.videoCodec!=null&&(Gt.mimeType='video/x-flv; codecs="'+Gt.videoCodec+","+Gt.audioCodec+'"'):Gt.mimeType='video/x-flv; codecs="'+Gt.audioCodec+'"',Gt.isComplete()&&this._onMediaInfo(Gt)}else if(Ht.packetType===1){var ut=this._timestampBase+at,Kt={unit:Ht.data,length:Ht.data.byteLength,dts:ut,pts:ut};Pt.samples.push(Kt),Pt.length+=Ht.data.length}else c.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Ht.packetType))}else if(Lt===2){if(!rt.codec){var Ar=this._parseMP3AudioData(Re,Ke+1,Pe-1,!0);if(Ar==null)return;rt.audioSampleRate=Ar.samplingRate,rt.channelCount=Ar.channelCount,rt.codec=Ar.codec,rt.originalCodec=Ar.originalCodec,rt.refSampleDuration=1152/rt.audioSampleRate*rt.timescale,c.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",rt);var ir=this._mediaInfo;ir.audioCodec=rt.codec,ir.audioSampleRate=rt.audioSampleRate,ir.audioChannelCount=rt.channelCount,ir.audioDataRate=Ar.bitRate,ir.hasVideo?ir.videoCodec!=null&&(ir.mimeType='video/x-flv; codecs="'+ir.videoCodec+","+ir.audioCodec+'"'):ir.mimeType='video/x-flv; codecs="'+ir.audioCodec+'"',ir.isComplete()&&this._onMediaInfo(ir)}var pr=this._parseMP3AudioData(Re,Ke+1,Pe-1,!1);if(pr==null)return;var tn=this._timestampBase+at,fn={unit:pr,length:pr.byteLength,dts:tn,pts:tn};Pt.samples.push(fn),Pt.length+=pr.length}}},{key:"_parseAACAudioData",value:function(Re,Ke,Pe){if(Pe<=1){c.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var at={},wt=new Uint8Array(Re,Ke,Pe);return at.packetType=wt[0],wt[0]===0?at.data=this._parseAACAudioSpecificConfig(Re,Ke+1,Pe-1):at.data=wt.subarray(1),at}},{key:"_parseAACAudioSpecificConfig",value:function(Re,Ke,Pe){var at=new Uint8Array(Re,Ke,Pe),wt=null,Rt=0,xt=0,Lt=null,gr=0,Br=null;if(Rt=xt=at[0]>>>3,gr=(at[0]&7)<<1|at[1]>>>7,gr<0||gr>=this._mpegSamplingRates.length){this._onError(Se.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var Et=this._mpegSamplingRates[gr],it=(at[1]&120)>>>3;if(it<0||it>=8){this._onError(Se.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Rt===5&&(Br=(at[1]&7)<<1|at[2]>>>7,Lt=(at[2]&124)>>>2);var rt=self.navigator.userAgent.toLowerCase();return rt.indexOf("firefox")!==-1?gr>=6?(Rt=5,wt=new Array(4),Br=gr-3):(Rt=2,wt=new Array(2),Br=gr):rt.indexOf("android")!==-1?(Rt=2,wt=new Array(2),Br=gr):(Rt=5,Br=gr,wt=new Array(4),gr>=6?Br=gr-3:it===1&&(Rt=2,wt=new Array(2),Br=gr)),wt[0]=Rt<<3,wt[0]|=(gr&15)>>>1,wt[1]=(gr&15)<<7,wt[1]|=(it&15)<<3,Rt===5&&(wt[1]|=(Br&15)>>>1,wt[2]=(Br&1)<<7,wt[2]|=2<<2,wt[3]=0),{config:wt,samplingRate:Et,channelCount:it,codec:"mp4a.40."+Rt,originalCodec:"mp4a.40."+xt}}},{key:"_parseMP3AudioData",value:function(Re,Ke,Pe,at){if(Pe<4){c.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var wt=this._littleEndian,Rt=new Uint8Array(Re,Ke,Pe),xt=null;if(at){if(Rt[0]!==255)return;var Lt=Rt[1]>>>3&3,gr=(Rt[1]&6)>>1,Br=(Rt[2]&240)>>>4,Et=(Rt[2]&12)>>>2,it=Rt[3]>>>6&3,rt=it!==3?2:1,Pt=0,Ht=0,bt=34,Gt="mp3";switch(Lt){case 0:Pt=this._mpegAudioV25SampleRateTable[Et];break;case 2:Pt=this._mpegAudioV20SampleRateTable[Et];break;case 3:Pt=this._mpegAudioV10SampleRateTable[Et];break}switch(gr){case 1:bt=34,Br<this._mpegAudioL3BitRateTable.length&&(Ht=this._mpegAudioL3BitRateTable[Br]);break;case 2:bt=33,Br<this._mpegAudioL2BitRateTable.length&&(Ht=this._mpegAudioL2BitRateTable[Br]);break;case 3:bt=32,Br<this._mpegAudioL1BitRateTable.length&&(Ht=this._mpegAudioL1BitRateTable[Br]);break}xt={bitRate:Ht,samplingRate:Pt,channelCount:rt,codec:Gt,originalCodec:Gt}}else xt=Rt;return xt}},{key:"_parseVideoData",value:function(Re,Ke,Pe,at,wt){if(Pe<=1){c.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var Rt=new Uint8Array(Re,Ke,Pe)[0],xt=(Rt&240)>>>4,Lt=Rt&15;if(Lt!==7){this._onError(Se.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Lt));return}this._parseAVCVideoPacket(Re,Ke+1,Pe-1,at,wt,xt)}},{key:"_parseAVCVideoPacket",value:function(Re,Ke,Pe,at,wt,Rt){if(Pe<4){c.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var xt=this._littleEndian,Lt=new DataView(Re,Ke,Pe),gr=Lt.getUint8(0),Br=Lt.getUint32(0,!xt)&16777215,Et=Br<<8>>8;if(gr===0)this._parseAVCDecoderConfigurationRecord(Re,Ke+4,Pe-4);else if(gr===1)this._parseAVCVideoData(Re,Ke+4,Pe-4,at,wt,Rt,Et);else if(!(gr===2)){this._onError(Se.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(gr));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(Re,Ke,Pe){if(Pe<7){c.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var at=this._videoMetadata,wt=this._videoTrack,Rt=this._littleEndian,xt=new DataView(Re,Ke,Pe);at?typeof at.avcc!="undefined"&&c.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),at=this._videoMetadata={},at.type="video",at.id=wt.id,at.timescale=this._timescale,at.duration=this._duration);var Lt=xt.getUint8(0),gr=xt.getUint8(1),Br=xt.getUint8(2),Et=xt.getUint8(3);if(Lt!==1||gr===0){this._onError(Se.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(xt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Se.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var it=xt.getUint8(5)&31;if(it===0){this._onError(Se.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else it>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(it));for(var rt=6,Pt=0;Pt<it;Pt++){var Ht=xt.getUint16(rt,!Rt);if(rt+=2,Ht===0)continue;var bt=new Uint8Array(Re,Ke+rt,Ht);rt+=Ht;var Gt=ce.parseSPS(bt);if(Pt!==0)continue;at.codecWidth=Gt.codec_size.width,at.codecHeight=Gt.codec_size.height,at.presentWidth=Gt.present_size.width,at.presentHeight=Gt.present_size.height,at.profile=Gt.profile_string,at.level=Gt.level_string,at.bitDepth=Gt.bit_depth,at.chromaFormat=Gt.chroma_format,at.sarRatio=Gt.sar_ratio,at.frameRate=Gt.frame_rate,(Gt.frame_rate.fixed===!1||Gt.frame_rate.fps_num===0||Gt.frame_rate.fps_den===0)&&(at.frameRate=this._referenceFrameRate);var ut=at.frameRate.fps_den,Kt=at.frameRate.fps_num;at.refSampleDuration=at.timescale*(ut/Kt);for(var Ar=bt.subarray(1,4),ir="avc1.",pr=0;pr<3;pr++){var tn=Ar[pr].toString(16);tn.length<2&&(tn="0"+tn),ir+=tn}at.codec=ir;var fn=this._mediaInfo;fn.width=at.codecWidth,fn.height=at.codecHeight,fn.fps=at.frameRate.fps,fn.profile=at.profile,fn.level=at.level,fn.refFrames=Gt.ref_frames,fn.chromaFormat=Gt.chroma_format_string,fn.sarNum=at.sarRatio.width,fn.sarDen=at.sarRatio.height,fn.videoCodec=ir,fn.hasAudio?fn.audioCodec!=null&&(fn.mimeType='video/x-flv; codecs="'+fn.videoCodec+","+fn.audioCodec+'"'):fn.mimeType='video/x-flv; codecs="'+fn.videoCodec+'"',fn.isComplete()&&this._onMediaInfo(fn)}var Mn=xt.getUint8(rt);if(Mn===0){this._onError(Se.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else Mn>1&&c.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(Mn));rt++;for(var Yn=0;Yn<Mn;Yn++){var si=xt.getUint16(rt,!Rt);if(rt+=2,si===0)continue;rt+=si}at.avcc=new Uint8Array(Pe),at.avcc.set(new Uint8Array(Re,Ke,Pe),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",at)}},{key:"_parseAVCVideoData",value:function(Re,Ke,Pe,at,wt,Rt,xt){for(var Lt=this._littleEndian,gr=new DataView(Re,Ke,Pe),Br=[],Et=0,it=0,rt=this._naluLengthSize,Pt=this._timestampBase+at,Ht=Rt===1;it<Pe;){if(it+4>=Pe){c.w(this.TAG,"Malformed Nalu near timestamp ".concat(Pt,", offset = ").concat(it,", dataSize = ").concat(Pe));break}var bt=gr.getUint32(it,!Lt);if(rt===3&&(bt>>>=8),bt>Pe-rt){c.w(this.TAG,"Malformed Nalus near timestamp ".concat(Pt,", NaluSize > DataSize!"));return}var Gt=gr.getUint8(it+rt)&31;Gt===5&&(Ht=!0);var ut=new Uint8Array(Re,Ke+it,rt+bt),Kt={type:Gt,data:ut};Br.push(Kt),Et+=ut.byteLength,it+=rt+bt}if(Br.length){var Ar=this._videoTrack,ir={units:Br,length:Et,isKeyframe:Ht,dts:Pt,cts:xt,pts:Pt+xt};Ht&&(ir.fileposition=wt),Ar.samples.push(ir),Ar.length+=Et}}}],[{key:"probe",value:function(Re){var Ke=new Uint8Array(Re),Pe={match:!1};if(Ke[0]!==70||Ke[1]!==76||Ke[2]!==86||Ke[3]!==1)return Pe;var at=(Ke[4]&4)>>>2!==0,wt=(Ke[4]&1)!==0,Rt=Ee(Ke,5);return Rt<9?Pe:{match:!0,consumed:Rt,dataOffset:Rt,hasAudioTrack:at,hasVideoTrack:wt}}}]),jt}(),vt=Ve,et=function(){function jt(){Object(O.a)(this,jt)}return Object(x.a)(jt,null,[{key:"init",value:function(){jt.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 Re in jt.types)jt.types.hasOwnProperty(Re)&&(jt.types[Re]=[Re.charCodeAt(0),Re.charCodeAt(1),Re.charCodeAt(2),Re.charCodeAt(3)]);var Ke=jt.constants={};Ke.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),Ke.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),Ke.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),Ke.STSC=Ke.STCO=Ke.STTS,Ke.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ke.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]),Ke.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]),Ke.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Ke.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ke.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(Re){for(var Ke=8,Pe=null,at=Array.prototype.slice.call(arguments,1),wt=at.length,Rt=0;Rt<wt;Rt++)Ke+=at[Rt].byteLength;Pe=new Uint8Array(Ke),Pe[0]=Ke>>>24&255,Pe[1]=Ke>>>16&255,Pe[2]=Ke>>>8&255,Pe[3]=Ke&255,Pe.set(Re,4);for(var xt=8,Lt=0;Lt<wt;Lt++)Pe.set(at[Lt],xt),xt+=at[Lt].byteLength;return Pe}},{key:"generateInitSegment",value:function(Re){var Ke=jt.box(jt.types.ftyp,jt.constants.FTYP),Pe=jt.moov(Re),at=new Uint8Array(Ke.byteLength+Pe.byteLength);return at.set(Ke,0),at.set(Pe,Ke.byteLength),at}},{key:"moov",value:function(Re){var Ke=jt.mvhd(Re.timescale,Re.duration),Pe=jt.trak(Re),at=jt.mvex(Re);return jt.box(jt.types.moov,Ke,Pe,at)}},{key:"mvhd",value:function(Re,Ke){return jt.box(jt.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255,Ke>>>24&255,Ke>>>16&255,Ke>>>8&255,Ke&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(Re){return jt.box(jt.types.trak,jt.tkhd(Re),jt.mdia(Re))}},{key:"tkhd",value:function(Re){var Ke=Re.id,Pe=Re.duration,at=Re.presentWidth,wt=Re.presentHeight;return jt.box(jt.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Ke>>>24&255,Ke>>>16&255,Ke>>>8&255,Ke&255,0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&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,at>>>8&255,at&255,0,0,wt>>>8&255,wt&255,0,0]))}},{key:"mdia",value:function(Re){return jt.box(jt.types.mdia,jt.mdhd(Re),jt.hdlr(Re),jt.minf(Re))}},{key:"mdhd",value:function(Re){var Ke=Re.timescale,Pe=Re.duration;return jt.box(jt.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Ke>>>24&255,Ke>>>16&255,Ke>>>8&255,Ke&255,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255,85,196,0,0]))}},{key:"hdlr",value:function(Re){var Ke=null;return Re.type==="audio"?Ke=jt.constants.HDLR_AUDIO:Ke=jt.constants.HDLR_VIDEO,jt.box(jt.types.hdlr,Ke)}},{key:"minf",value:function(Re){var Ke=null;return Re.type==="audio"?Ke=jt.box(jt.types.smhd,jt.constants.SMHD):Ke=jt.box(jt.types.vmhd,jt.constants.VMHD),jt.box(jt.types.minf,Ke,jt.dinf(),jt.stbl(Re))}},{key:"dinf",value:function(){var Re=jt.box(jt.types.dinf,jt.box(jt.types.dref,jt.constants.DREF));return Re}},{key:"stbl",value:function(Re){var Ke=jt.box(jt.types.stbl,jt.stsd(Re),jt.box(jt.types.stts,jt.constants.STTS),jt.box(jt.types.stsc,jt.constants.STSC),jt.box(jt.types.stsz,jt.constants.STSZ),jt.box(jt.types.stco,jt.constants.STCO));return Ke}},{key:"stsd",value:function(Re){return Re.type==="audio"?Re.codec==="mp3"?jt.box(jt.types.stsd,jt.constants.STSD_PREFIX,jt.mp3(Re)):jt.box(jt.types.stsd,jt.constants.STSD_PREFIX,jt.mp4a(Re)):jt.box(jt.types.stsd,jt.constants.STSD_PREFIX,jt.avc1(Re))}},{key:"mp3",value:function(Re){var Ke=Re.channelCount,Pe=Re.audioSampleRate,at=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Ke,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return jt.box(jt.types[".mp3"],at)}},{key:"mp4a",value:function(Re){var Ke=Re.channelCount,Pe=Re.audioSampleRate,at=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Ke,0,16,0,0,0,0,Pe>>>8&255,Pe&255,0,0]);return jt.box(jt.types.mp4a,at,jt.esds(Re))}},{key:"esds",value:function(Re){var Ke=Re.config||[],Pe=Ke.length,at=new Uint8Array([0,0,0,0,3,23+Pe,0,1,0,4,15+Pe,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Pe]).concat(Ke).concat([6,1,2]));return jt.box(jt.types.esds,at)}},{key:"avc1",value:function(Re){var Ke=Re.avcc,Pe=Re.codecWidth,at=Re.codecHeight,wt=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,Pe>>>8&255,Pe&255,at>>>8&255,at&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 jt.box(jt.types.avc1,wt,jt.box(jt.types.avcC,Ke))}},{key:"mvex",value:function(Re){return jt.box(jt.types.mvex,jt.trex(Re))}},{key:"trex",value:function(Re){var Ke=Re.id,Pe=new Uint8Array([0,0,0,0,Ke>>>24&255,Ke>>>16&255,Ke>>>8&255,Ke&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return jt.box(jt.types.trex,Pe)}},{key:"moof",value:function(Re,Ke){return jt.box(jt.types.moof,jt.mfhd(Re.sequenceNumber),jt.traf(Re,Ke))}},{key:"mfhd",value:function(Re){var Ke=new Uint8Array([0,0,0,0,Re>>>24&255,Re>>>16&255,Re>>>8&255,Re&255]);return jt.box(jt.types.mfhd,Ke)}},{key:"traf",value:function(Re,Ke){var Pe=Re.id,at=jt.box(jt.types.tfhd,new Uint8Array([0,0,0,0,Pe>>>24&255,Pe>>>16&255,Pe>>>8&255,Pe&255])),wt=jt.box(jt.types.tfdt,new Uint8Array([0,0,0,0,Ke>>>24&255,Ke>>>16&255,Ke>>>8&255,Ke&255])),Rt=jt.sdtp(Re),xt=jt.trun(Re,Rt.byteLength+16+16+8+16+8+8);return jt.box(jt.types.traf,at,wt,xt,Rt)}},{key:"sdtp",value:function(Re){for(var Ke=Re.samples||[],Pe=Ke.length,at=new Uint8Array(4+Pe),wt=0;wt<Pe;wt++){var Rt=Ke[wt].flags;at[wt+4]=Rt.isLeading<<6|Rt.dependsOn<<4|Rt.isDependedOn<<2|Rt.hasRedundancy}return jt.box(jt.types.sdtp,at)}},{key:"trun",value:function(Re,Ke){var Pe=Re.samples||[],at=Pe.length,wt=12+16*at,Rt=new Uint8Array(wt);Ke+=8+wt,Rt.set([0,0,15,1,at>>>24&255,at>>>16&255,at>>>8&255,at&255,Ke>>>24&255,Ke>>>16&255,Ke>>>8&255,Ke&255],0);for(var xt=0;xt<at;xt++){var Lt=Pe[xt].duration,gr=Pe[xt].size,Br=Pe[xt].flags,Et=Pe[xt].cts;Rt.set([Lt>>>24&255,Lt>>>16&255,Lt>>>8&255,Lt&255,gr>>>24&255,gr>>>16&255,gr>>>8&255,gr&255,Br.isLeading<<2|Br.dependsOn,Br.isDependedOn<<6|Br.hasRedundancy<<4|Br.isNonSync,0,0,Et>>>24&255,Et>>>16&255,Et>>>8&255,Et&255],12+16*xt)}return jt.box(jt.types.trun,Rt)}},{key:"mdat",value:function(Re){return jt.box(jt.types.mdat,Re)}}]),jt}();et.init();var Oe=et,Tt=function(){function jt(){Object(O.a)(this,jt)}return Object(x.a)(jt,null,[{key:"getSilentFrame",value:function(Re,Ke){if(Re==="mp4a.40.2"){if(Ke===1)return new Uint8Array([0,200,0,128,35,128]);if(Ke===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Ke===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Ke===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Ke===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(Ke===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(Ke===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(Ke===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(Ke===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}}]),jt}(),Je=Tt,St=Object(x.a)(function jt(At,Re,Ke,Pe,at){Object(O.a)(this,jt),this.dts=At,this.pts=Re,this.duration=Ke,this.originalDts=Pe,this.isSyncPoint=at,this.fileposition=null}),Mt=function(){function jt(){Object(O.a)(this,jt),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(x.a)(jt,[{key:"appendSyncPoint",value:function(Re){Re.isSyncPoint=!0,this.syncPoints.push(Re)}}]),jt}(),er=function(){function jt(){Object(O.a)(this,jt),this._list=[]}return Object(x.a)(jt,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(Re){var Ke=this._list;if(Re.length===0)return;Ke.length>0&&Re[0].originalDts<Ke[Ke.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Ke,Re)}},{key:"getLastSyncPointBeforeDts",value:function(Re){if(this._list.length==0)return null;var Ke=this._list,Pe=0,at=Ke.length-1,wt=0,Rt=0,xt=at;for(Re<Ke[0].dts&&(Pe=0,Rt=xt+1);Rt<=xt;)if(wt=Rt+Math.floor((xt-Rt)/2),wt===at||Re>=Ke[wt].dts&&Re<Ke[wt+1].dts){Pe=wt;break}else Ke[wt].dts<Re?Rt=wt+1:xt=wt-1;return this._list[Pe]}}]),jt}(),It=function(){function jt(At){Object(O.a)(this,jt),this._type=At,this._list=[],this._lastAppendLocation=-1}return Object(x.a)(jt,[{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(Re){var Ke=this._list;if(Ke.length===0)return-2;var Pe=Ke.length-1,at=0,wt=0,Rt=Pe,xt=0;if(Re<Ke[0].originalBeginDts)return xt=-1,xt;for(;wt<=Rt;)if(at=wt+Math.floor((Rt-wt)/2),at===Pe||Re>Ke[at].lastSample.originalDts&&Re<Ke[at+1].originalBeginDts){xt=at;break}else Ke[at].originalBeginDts<Re?wt=at+1:Rt=at-1;return xt}},{key:"_searchNearestSegmentAfter",value:function(Re){return this._searchNearestSegmentBefore(Re)+1}},{key:"append",value:function(Re){var Ke=this._list,Pe=Re,at=this._lastAppendLocation,wt=0;at!==-1&&at<Ke.length&&Pe.originalBeginDts>=Ke[at].lastSample.originalDts&&(at===Ke.length-1||at<Ke.length-1&&Pe.originalBeginDts<Ke[at+1].originalBeginDts)?wt=at+1:Ke.length>0&&(wt=this._searchNearestSegmentBefore(Pe.originalBeginDts)+1),this._lastAppendLocation=wt,this._list.splice(wt,0,Pe)}},{key:"getLastSegmentBefore",value:function(Re){var Ke=this._searchNearestSegmentBefore(Re);return Ke>=0?this._list[Ke]:null}},{key:"getLastSampleBefore",value:function(Re){var Ke=this.getLastSegmentBefore(Re);return Ke!=null?Ke.lastSample:null}},{key:"getLastSyncPointBefore",value:function(Re){for(var Ke=this._searchNearestSegmentBefore(Re),Pe=this._list[Ke].syncPoints;Pe.length===0&&Ke>0;)Ke--,Pe=this._list[Ke].syncPoints;return Pe.length>0?Pe[Pe.length-1]:null}}]),jt}(),_t=function(){function jt(At){Object(O.a)(this,jt),this.TAG="MP4Remuxer",this._config=At,this._isLive=At.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 It("audio"),this._videoSegmentInfoList=new It("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(E.chrome&&(E.version.major<50||E.version.major===50&&E.version.build<2661)),this._fillSilentAfterSeek=E.msedge||E.msie,this._mp3UseMpegAudio=!E.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return Object(x.a)(jt,[{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(Re){return Re.onDataAvailable=this.remux.bind(this),Re.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(Re){this._onInitSegment=Re}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(Re){this._onMediaSegment=Re}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(Re){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(Re,Ke){if(!this._onMediaSegment)throw new l("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(Re,Ke),this._remuxVideo(Ke),this._remuxAudio(Re)}},{key:"_onTrackMetadataReceived",value:function(Re,Ke){var Pe=null,at="mp4",wt=Ke.codec;if(Re==="audio")this._audioMeta=Ke,Ke.codec==="mp3"&&this._mp3UseMpegAudio?(at="mpeg",wt="",Pe=new Uint8Array):Pe=Oe.generateInitSegment(Ke);else if(Re==="video")this._videoMeta=Ke,Pe=Oe.generateInitSegment(Ke);else return;if(!this._onInitSegment)throw new l("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(Re,{type:Re,data:Pe.buffer,codec:wt,container:"".concat(Re,"/").concat(at),mediaDuration:Ke.duration})}},{key:"_calculateDtsBase",value:function(Re,Ke){if(this._dtsBaseInited)return;Re.samples&&Re.samples.length&&(this._audioDtsBase=Re.samples[0].dts),Ke.samples&&Ke.samples.length&&(this._videoDtsBase=Ke.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var Re=this._videoStashedLastSample,Ke=this._audioStashedLastSample,Pe={type:"video",id:1,sequenceNumber:0,samples:[],length:0};Re!=null&&(Pe.samples.push(Re),Pe.length=Re.length);var at={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Ke!=null&&(at.samples.push(Ke),at.length=Ke.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Pe,!0),this._remuxAudio(at,!0)}},{key:"_remuxAudio",value:function(Re,Ke){if(this._audioMeta==null)return;var Pe=Re,at=Pe.samples,wt=void 0,Rt=-1,xt=-1,Lt=-1,gr=this._audioMeta.refSampleDuration,Br=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Et=this._dtsBaseInited&&this._audioNextDts===void 0,it=!1;if(!at||at.length===0)return;if(at.length===1&&!Ke)return;var rt=0,Pt=null,Ht=0;Br?(rt=0,Ht=Pe.length):(rt=8,Ht=8+Pe.length);var bt=null;if(at.length>1&&(bt=at.pop(),Ht-=bt.length),this._audioStashedLastSample!=null){var Gt=this._audioStashedLastSample;this._audioStashedLastSample=null,at.unshift(Gt),Ht+=Gt.length}bt!=null&&(this._audioStashedLastSample=bt);var ut=at[0].dts-this._dtsBase;if(this._audioNextDts)wt=ut-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())wt=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(it=!0));else{var Kt=this._audioSegmentInfoList.getLastSampleBefore(ut);if(Kt!=null){var Ar=ut-(Kt.originalDts+Kt.duration);Ar<=3&&(Ar=0);var ir=Kt.dts+Kt.duration+Ar;wt=ut-ir}else wt=0}if(it){var pr=ut-wt,tn=this._videoSegmentInfoList.getLastSegmentBefore(ut);if(tn!=null&&tn.beginDts<pr){var fn=Je.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(fn){var Mn=tn.beginDts,Yn=pr-tn.beginDts;c.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(Mn,", duration: ").concat(Yn)),at.unshift({unit:fn,dts:Mn,pts:Mn}),Ht+=fn.byteLength}}else it=!1}for(var si=[],vi=0;vi<at.length;vi++){var xi=at[vi],_i=xi.unit,Ze=xi.dts-this._dtsBase,we=Ze-wt;Rt===-1&&(Rt=we);var Ne=0;if(vi!==at.length-1){var Fe=at[vi+1].dts-this._dtsBase-wt;Ne=Fe-we}else if(bt!=null){var Ye=bt.dts-this._dtsBase-wt;Ne=Ye-we}else si.length>=1?Ne=si[si.length-1].duration:Ne=Math.floor(gr);var We=!1,qe=null;if(Ne>gr*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!E.safari){We=!0;var yt=Math.abs(Ne-gr),ot=Math.ceil(yt/gr),$t=we+gr;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(we+Ne," ms, expected: ").concat(we+Math.round(gr)," ms, ")+"delta: ".concat(Math.round(yt)," ms, generate: ").concat(ot," frames"));var Mr=Je.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=_i),qe=[];for(var Sr=0;Sr<ot;Sr++){var jr=Math.round($t);if(qe.length>0){var tr=qe[qe.length-1];tr.duration=jr-tr.dts}var gn={dts:jr,pts:jr,cts:0,unit:Mr,size:Mr.byteLength,duration:0,originalDts:Ze,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};qe.push(gn),Ht+=gn.size,$t+=gr}var sr=qe[qe.length-1];sr.duration=we+Ne-sr.dts,Ne=Math.round(gr)}si.push({dts:we,pts:we,cts:0,unit:xi.unit,size:xi.unit.byteLength,duration:Ne,originalDts:Ze,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),We&&si.push.apply(si,qe)}Br?Pt=new Uint8Array(Ht):(Pt=new Uint8Array(Ht),Pt[0]=Ht>>>24&255,Pt[1]=Ht>>>16&255,Pt[2]=Ht>>>8&255,Pt[3]=Ht&255,Pt.set(Oe.types.mdat,4));for(var un=0;un<si.length;un++){var an=si[un].unit;Pt.set(an,rt),rt+=an.byteLength}var Pr=si[si.length-1];xt=Pr.dts+Pr.duration,this._audioNextDts=xt;var In=new Mt;In.beginDts=Rt,In.endDts=xt,In.beginPts=Rt,In.endPts=xt,In.originalBeginDts=si[0].originalDts,In.originalEndDts=Pr.originalDts+Pr.duration,In.firstSample=new St(si[0].dts,si[0].pts,si[0].duration,si[0].originalDts,!1),In.lastSample=new St(Pr.dts,Pr.pts,Pr.duration,Pr.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(In),Pe.samples=si,Pe.sequenceNumber++;var ci=null;Br?ci=new Uint8Array:ci=Oe.moof(Pe,Rt),Pe.samples=[],Pe.length=0;var Ui={type:"audio",data:this._mergeBoxes(ci,Pt).buffer,sampleCount:si.length,info:In};Br&&Et&&(Ui.timestampOffset=Rt),this._onMediaSegment("audio",Ui)}},{key:"_remuxVideo",value:function(Re,Ke){if(this._videoMeta==null)return;var Pe=Re,at=Pe.samples,wt=void 0,Rt=-1,xt=-1,Lt=-1,gr=-1;if(!at||at.length===0)return;if(at.length===1&&!Ke)return;var Br=8,Et=null,it=8+Re.length,rt=null;if(at.length>1&&(rt=at.pop(),it-=rt.length),this._videoStashedLastSample!=null){var Pt=this._videoStashedLastSample;this._videoStashedLastSample=null,at.unshift(Pt),it+=Pt.length}rt!=null&&(this._videoStashedLastSample=rt);var Ht=at[0].dts-this._dtsBase;if(this._videoNextDts)wt=Ht-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())wt=0;else{var bt=this._videoSegmentInfoList.getLastSampleBefore(Ht);if(bt!=null){var Gt=Ht-(bt.originalDts+bt.duration);Gt<=3&&(Gt=0);var ut=bt.dts+bt.duration+Gt;wt=Ht-ut}else wt=0}for(var Kt=new Mt,Ar=[],ir=0;ir<at.length;ir++){var pr=at[ir],tn=pr.dts-this._dtsBase,fn=pr.isKeyframe,Mn=tn-wt,Yn=pr.cts,si=Mn+Yn;Rt===-1&&(Rt=Mn,Lt=si);var vi=0;if(ir!==at.length-1){var xi=at[ir+1].dts-this._dtsBase-wt;vi=xi-Mn}else if(rt!=null){var _i=rt.dts-this._dtsBase-wt;vi=_i-Mn}else Ar.length>=1?vi=Ar[Ar.length-1].duration:vi=Math.floor(this._videoMeta.refSampleDuration);if(fn){var Ze=new St(Mn,si,vi,pr.dts,!0);Ze.fileposition=pr.fileposition,Kt.appendSyncPoint(Ze)}Ar.push({dts:Mn,pts:si,cts:Yn,units:pr.units,size:pr.length,isKeyframe:fn,duration:vi,originalDts:tn,flags:{isLeading:0,dependsOn:fn?2:1,isDependedOn:fn?1:0,hasRedundancy:0,isNonSync:fn?0:1}})}Et=new Uint8Array(it),Et[0]=it>>>24&255,Et[1]=it>>>16&255,Et[2]=it>>>8&255,Et[3]=it&255,Et.set(Oe.types.mdat,4);for(var we=0;we<Ar.length;we++)for(var Ne=Ar[we].units;Ne.length;){var Fe=Ne.shift(),Ye=Fe.data;Et.set(Ye,Br),Br+=Ye.byteLength}var We=Ar[Ar.length-1];if(xt=We.dts+We.duration,gr=We.pts+We.duration,this._videoNextDts=xt,Kt.beginDts=Rt,Kt.endDts=xt,Kt.beginPts=Lt,Kt.endPts=gr,Kt.originalBeginDts=Ar[0].originalDts,Kt.originalEndDts=We.originalDts+We.duration,Kt.firstSample=new St(Ar[0].dts,Ar[0].pts,Ar[0].duration,Ar[0].originalDts,Ar[0].isKeyframe),Kt.lastSample=new St(We.dts,We.pts,We.duration,We.originalDts,We.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Kt),Pe.samples=Ar,Pe.sequenceNumber++,this._forceFirstIDR){var qe=Ar[0].flags;qe.dependsOn=2,qe.isNonSync=0}var yt=Oe.moof(Pe,Rt);Pe.samples=[],Pe.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(yt,Et).buffer,sampleCount:Ar.length,info:Kt})}},{key:"_mergeBoxes",value:function(Re,Ke){var Pe=new Uint8Array(Re.byteLength+Ke.byteLength);return Pe.set(Re,0),Pe.set(Ke,Re.byteLength),Pe}}]),jt}(),Xe=_t,ie={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"},X=ie,Be=function(){function jt(At,Re){Object(O.a)(this,jt),this.TAG="TransmuxingController",this._emitter=new g.a,this._config=Re,At.segments||(At.segments=[{duration:At.duration,filesize:At.filesize,url:At.url}]),typeof At.cors!="boolean"&&(At.cors=!0),typeof At.withCredentials!="boolean"&&(At.withCredentials=!1),this._mediaDataSource=At,this._currentSegmentIndex=0;var Ke=0;this._mediaDataSource.segments.forEach(function(Pe){Pe.timestampBase=Ke,Ke+=Pe.duration,Pe.cors=At.cors,Pe.withCredentials=At.withCredentials,Re.referrerPolicy&&(Pe.referrerPolicy=Re.referrerPolicy)}),!isNaN(Ke)&&this._mediaDataSource.duration!==Ke&&(this._mediaDataSource.duration=Ke),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(x.a)(jt,[{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(Re,Ke){this._emitter.addListener(Re,Ke)}},{key:"off",value:function(Re,Ke){this._emitter.removeListener(Re,Ke)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(Re,Ke){this._currentSegmentIndex=Re;var Pe=this._mediaDataSource.segments[Re],at=this._ioctl=new V(Pe,this._config,Re);at.onError=this._onIOException.bind(this),at.onSeeked=this._onIOSeeked.bind(this),at.onComplete=this._onIOComplete.bind(this),at.onRedirect=this._onIORedirect.bind(this),at.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Ke?this._demuxer.bindDataSource(this._ioctl):at.onDataArrival=this._onInitChunkArrival.bind(this),at.open(Ke)}},{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(Re){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var Ke=this._searchSegmentIndexContains(Re);if(Ke===this._currentSegmentIndex){var Pe=this._mediaInfo.segments[Ke];if(Pe==null)this._pendingSeekTime=Re;else{var at=Pe.getNearestKeyframe(Re);this._remuxer.seek(at.milliseconds),this._ioctl.seek(at.fileposition),this._pendingResolveSeekPoint=at.milliseconds}}else{var wt=this._mediaInfo.segments[Ke];if(wt==null)this._pendingSeekTime=Re,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Ke);else{var Rt=wt.getNearestKeyframe(Re);this._internalAbort(),this._remuxer.seek(Re),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Ke].timestampBase,this._loadSegment(Ke,Rt.fileposition),this._pendingResolveSeekPoint=Rt.milliseconds,this._reportSegmentMediaInfo(Ke)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(Re){for(var Ke=this._mediaDataSource.segments,Pe=Ke.length-1,at=0;at<Ke.length;at++)if(Re<Ke[at].timestampBase){Pe=at-1;break}return Pe}},{key:"_onInitChunkArrival",value:function(Re,Ke){var Pe=this,at=null,wt=0;if(Ke>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,wt=this._demuxer.parseChunks(Re,Ke);else if((at=vt.probe(Re)).match){this._demuxer=new vt(at,this._config),this._remuxer||(this._remuxer=new Xe(this._config));var Rt=this._mediaDataSource;Rt.duration!=null&&!isNaN(Rt.duration)&&(this._demuxer.overridedDuration=Rt.duration),typeof Rt.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Rt.hasAudio),typeof Rt.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Rt.hasVideo),this._demuxer.timestampBase=Rt.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),wt=this._demuxer.parseChunks(Re,Ke)}else at=null,c.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Pe._internalAbort()}),this._emitter.emit(X.DEMUX_ERROR,Se.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),wt=0;return wt}},{key:"_onMediaInfo",value:function(Re){var Ke=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},Re),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,me.prototype));var Pe=Object.assign({},Re);Object.setPrototypeOf(Pe,me.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Pe,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var at=Ke._pendingSeekTime;Ke._pendingSeekTime=null,Ke.seek(at)})}},{key:"_onMetaDataArrived",value:function(Re){this._emitter.emit(X.METADATA_ARRIVED,Re)}},{key:"_onScriptDataArrived",value:function(Re){this._emitter.emit(X.SCRIPTDATA_ARRIVED,Re)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(Re){var Ke=Re,Pe=Ke+1;Pe<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Pe)):(this._remuxer.flushStashedSamples(),this._emitter.emit(X.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(Re){var Ke=this._ioctl.extraData;this._mediaDataSource.segments[Ke].redirectedURL=Re}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(X.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(Re,Ke){c.e(this.TAG,"IOException: type = ".concat(Re,", code = ").concat(Ke.code,", msg = ").concat(Ke.msg)),this._emitter.emit(X.IO_ERROR,Re,Ke),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(Re,Ke){c.e(this.TAG,"DemuxException: type = ".concat(Re,", info = ").concat(Ke)),this._emitter.emit(X.DEMUX_ERROR,Re,Ke)}},{key:"_onRemuxerInitSegmentArrival",value:function(Re,Ke){this._emitter.emit(X.INIT_SEGMENT,Re,Ke)}},{key:"_onRemuxerMediaSegmentArrival",value:function(Re,Ke){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(X.MEDIA_SEGMENT,Re,Ke),this._pendingResolveSeekPoint!=null&&Re==="video"){var Pe=Ke.info.syncPoints,at=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,E.safari&&Pe.length>0&&Pe[0].originalDts===at&&(at=Pe[0].pts),this._emitter.emit(X.RECOMMEND_SEEKPOINT,at)}}},{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(Re){var Ke=this._mediaInfo.segments[Re],Pe=Object.assign({},Ke);Pe.duration=this._mediaInfo.duration,Pe.segmentCount=this._mediaInfo.segmentCount,delete Pe.segments,delete Pe.keyframesIndex,this._emitter.emit(X.MEDIA_INFO,Pe)}},{key:"_reportStatisticsInfo",value:function(){var Re={};Re.url=this._ioctl.currentURL,Re.hasRedirect=this._ioctl.hasRedirect,Re.hasRedirect&&(Re.redirectedURL=this._ioctl.currentRedirectedURL),Re.speed=this._ioctl.currentSpeed,Re.loaderType=this._ioctl.loaderType,Re.currentSegmentIndex=this._currentSegmentIndex,Re.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(X.STATISTICS_INFO,Re)}}]),jt}(),Ce=Be,Z=function(At){var Re="TransmuxingWorker",Ke=null,Pe=Ht.bind(this);A.install(),At.addEventListener("message",function(bt){switch(bt.data.cmd){case"init":Ke=new Ce(bt.data.param[0],bt.data.param[1]),Ke.on(X.IO_ERROR,it.bind(this)),Ke.on(X.DEMUX_ERROR,rt.bind(this)),Ke.on(X.INIT_SEGMENT,at.bind(this)),Ke.on(X.MEDIA_SEGMENT,wt.bind(this)),Ke.on(X.LOADING_COMPLETE,Rt.bind(this)),Ke.on(X.RECOVERED_EARLY_EOF,xt.bind(this)),Ke.on(X.MEDIA_INFO,Lt.bind(this)),Ke.on(X.METADATA_ARRIVED,gr.bind(this)),Ke.on(X.SCRIPTDATA_ARRIVED,Br.bind(this)),Ke.on(X.STATISTICS_INFO,Et.bind(this)),Ke.on(X.RECOMMEND_SEEKPOINT,Pt.bind(this));break;case"destroy":Ke&&(Ke.destroy(),Ke=null),At.postMessage({msg:"destroyed"});break;case"start":Ke.start();break;case"stop":Ke.stop();break;case"seek":Ke.seek(bt.data.param);break;case"pause":Ke.pause();break;case"resume":Ke.resume();break;case"logging_config":{var Gt=bt.data.param;Ie.applyConfig(Gt),Gt.enableCallback===!0?Ie.addLogListener(Pe):Ie.removeLogListener(Pe);break}}});function at(bt,Gt){var ut={msg:X.INIT_SEGMENT,data:{type:bt,data:Gt}};At.postMessage(ut,[Gt.data])}function wt(bt,Gt){var ut={msg:X.MEDIA_SEGMENT,data:{type:bt,data:Gt}};At.postMessage(ut,[Gt.data])}function Rt(){var bt={msg:X.LOADING_COMPLETE};At.postMessage(bt)}function xt(){var bt={msg:X.RECOVERED_EARLY_EOF};At.postMessage(bt)}function Lt(bt){var Gt={msg:X.MEDIA_INFO,data:bt};At.postMessage(Gt)}function gr(bt){var Gt={msg:X.METADATA_ARRIVED,data:bt};At.postMessage(Gt)}function Br(bt){var Gt={msg:X.SCRIPTDATA_ARRIVED,data:bt};At.postMessage(Gt)}function Et(bt){var Gt={msg:X.STATISTICS_INFO,data:bt};At.postMessage(Gt)}function it(bt,Gt){At.postMessage({msg:X.IO_ERROR,data:{type:bt,info:Gt}})}function rt(bt,Gt){At.postMessage({msg:X.DEMUX_ERROR,data:{type:bt,info:Gt}})}function Pt(bt){At.postMessage({msg:X.RECOMMEND_SEEKPOINT,data:bt})}function Ht(bt,Gt){At.postMessage({msg:"logcat_callback",data:{type:bt,logcat:Gt}})}},nt=Z,ct=function(){function jt(At,Re){if(Object(O.a)(this,jt),this.TAG="Transmuxer",this._emitter=new g.a,Re.enableWorker&&typeof Worker!="undefined")try{var Ke=d("0r65");this._worker=Ke(nt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[At,Re]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Ie.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Ie.getConfig()})}catch(at){c.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Ce(At,Re)}else this._controller=new Ce(At,Re);if(this._controller){var Pe=this._controller;Pe.on(X.IO_ERROR,this._onIOError.bind(this)),Pe.on(X.DEMUX_ERROR,this._onDemuxError.bind(this)),Pe.on(X.INIT_SEGMENT,this._onInitSegment.bind(this)),Pe.on(X.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Pe.on(X.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Pe.on(X.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Pe.on(X.MEDIA_INFO,this._onMediaInfo.bind(this)),Pe.on(X.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Pe.on(X.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Pe.on(X.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Pe.on(X.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(x.a)(jt,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Ie.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Re,Ke){this._emitter.addListener(Re,Ke)}},{key:"off",value:function(Re,Ke){this._emitter.removeListener(Re,Ke)}},{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(Re){this._worker?this._worker.postMessage({cmd:"seek",param:Re}):this._controller.seek(Re)}},{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(Re,Ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(X.INIT_SEGMENT,Re,Ke)})}},{key:"_onMediaSegment",value:function(Re,Ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(X.MEDIA_SEGMENT,Re,Ke)})}},{key:"_onLoadingComplete",value:function(){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(X.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var Re=this;Promise.resolve().then(function(){Re._emitter.emit(X.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(Re){var Ke=this;Promise.resolve().then(function(){Ke._emitter.emit(X.MEDIA_INFO,Re)})}},{key:"_onMetaDataArrived",value:function(Re){var Ke=this;Promise.resolve().then(function(){Ke._emitter.emit(X.METADATA_ARRIVED,Re)})}},{key:"_onScriptDataArrived",value:function(Re){var Ke=this;Promise.resolve().then(function(){Ke._emitter.emit(X.SCRIPTDATA_ARRIVED,Re)})}},{key:"_onStatisticsInfo",value:function(Re){var Ke=this;Promise.resolve().then(function(){Ke._emitter.emit(X.STATISTICS_INFO,Re)})}},{key:"_onIOError",value:function(Re,Ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(X.IO_ERROR,Re,Ke)})}},{key:"_onDemuxError",value:function(Re,Ke){var Pe=this;Promise.resolve().then(function(){Pe._emitter.emit(X.DEMUX_ERROR,Re,Ke)})}},{key:"_onRecommendSeekpoint",value:function(Re){var Ke=this;Promise.resolve().then(function(){Ke._emitter.emit(X.RECOMMEND_SEEKPOINT,Re)})}},{key:"_onLoggingConfigChanged",value:function(Re){this._worker&&this._worker.postMessage({cmd:"logging_config",param:Re})}},{key:"_onWorkerMessage",value:function(Re){var Ke=Re.data,Pe=Ke.data;if(Ke.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Ke.msg){case X.INIT_SEGMENT:case X.MEDIA_SEGMENT:this._emitter.emit(Ke.msg,Pe.type,Pe.data);break;case X.LOADING_COMPLETE:case X.RECOVERED_EARLY_EOF:this._emitter.emit(Ke.msg);break;case X.MEDIA_INFO:Object.setPrototypeOf(Pe,me.prototype),this._emitter.emit(Ke.msg,Pe);break;case X.METADATA_ARRIVED:case X.SCRIPTDATA_ARRIVED:case X.STATISTICS_INFO:this._emitter.emit(Ke.msg,Pe);break;case X.IO_ERROR:case X.DEMUX_ERROR:this._emitter.emit(Ke.msg,Pe.type,Pe.info);break;case X.RECOMMEND_SEEKPOINT:this._emitter.emit(Ke.msg,Pe);break;case"logcat_callback":c.emitter.emit("log",Pe.type,Pe.logcat);break;default:break}}}]),jt}(),Qe=ct,dt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},Ft=dt,Lr=function(){function jt(At){Object(O.a)(this,jt),this.TAG="MSEController",this._config=At,this._emitter=new g.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 er}return Object(x.a)(jt,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(Re,Ke){this._emitter.addListener(Re,Ke)}},{key:"off",value:function(Re,Ke){this._emitter.removeListener(Re,Ke)}},{key:"attachMediaElement",value:function(Re){if(this._mediaSource)throw new l("MediaSource has been attached to an HTMLMediaElement!");var Ke=this._mediaSource=new window.MediaSource;Ke.addEventListener("sourceopen",this.e.onSourceOpen),Ke.addEventListener("sourceended",this.e.onSourceEnded),Ke.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=Re,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),Re.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var Re=this._mediaSource;for(var Ke in this._sourceBuffers){var Pe=this._pendingSegments[Ke];Pe.splice(0,Pe.length),this._pendingSegments[Ke]=null,this._pendingRemoveRanges[Ke]=null,this._lastInitSegments[Ke]=null;var at=this._sourceBuffers[Ke];if(at){if(Re.readyState!=="closed"){try{Re.removeSourceBuffer(at)}catch(wt){c.e(this.TAG,wt.message)}at.removeEventListener("error",this.e.onSourceBufferError),at.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Ke]=null,this._sourceBuffers[Ke]=null}}if(Re.readyState==="open")try{Re.endOfStream()}catch(wt){c.e(this.TAG,wt.message)}Re.removeEventListener("sourceopen",this.e.onSourceOpen),Re.removeEventListener("sourceended",this.e.onSourceEnded),Re.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(Re,Ke){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(Re),this._pendingSegments[Re.type].push(Re);return}var Pe=Re,at="".concat(Pe.container);Pe.codec&&Pe.codec.length>0&&(at+=";codecs=".concat(Pe.codec));var wt=!1;if(c.v(this.TAG,"Received Initialization Segment, mimeType: "+at),this._lastInitSegments[Pe.type]=Pe,at!==this._mimeTypes[Pe.type]){if(this._mimeTypes[Pe.type])c.v(this.TAG,"Notice: ".concat(Pe.type," mimeType changed, origin: ").concat(this._mimeTypes[Pe.type],", target: ").concat(at));else{wt=!0;try{var Rt=this._sourceBuffers[Pe.type]=this._mediaSource.addSourceBuffer(at);Rt.addEventListener("error",this.e.onSourceBufferError),Rt.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(xt){c.e(this.TAG,xt.message),this._emitter.emit(Ft.ERROR,{code:xt.code,msg:xt.message});return}}this._mimeTypes[Pe.type]=at}Ke||this._pendingSegments[Pe.type].push(Pe),wt||this._sourceBuffers[Pe.type]&&!this._sourceBuffers[Pe.type].updating&&this._doAppendSegments(),E.safari&&Pe.container==="audio/mpeg"&&Pe.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Pe.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(Re){var Ke=Re;this._pendingSegments[Ke.type].push(Ke),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Pe=this._sourceBuffers[Ke.type];Pe&&!Pe.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(Re){for(var Ke in this._sourceBuffers){if(!this._sourceBuffers[Ke])continue;var Pe=this._sourceBuffers[Ke];if(this._mediaSource.readyState==="open")try{Pe.abort()}catch(gr){c.e(this.TAG,gr.message)}this._idrList.clear();var at=this._pendingSegments[Ke];if(at.splice(0,at.length),this._mediaSource.readyState==="closed")continue;for(var wt=0;wt<Pe.buffered.length;wt++){var Rt=Pe.buffered.start(wt),xt=Pe.buffered.end(wt);this._pendingRemoveRanges[Ke].push({start:Rt,end:xt})}if(Pe.updating||this._doRemoveRanges(),E.safari){var Lt=this._lastInitSegments[Ke];Lt&&(this._pendingSegments[Ke].push(Lt),Pe.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var Re=this._mediaSource,Ke=this._sourceBuffers;if(!Re||Re.readyState!=="open"){Re&&Re.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Ke.video&&Ke.video.updating||Ke.audio&&Ke.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,Re.endOfStream())}},{key:"getNearestKeyframe",value:function(Re){return this._idrList.getLastSyncPointBeforeDts(Re)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var Re=this._mediaElement.currentTime;for(var Ke in this._sourceBuffers){var Pe=this._sourceBuffers[Ke];if(Pe){var at=Pe.buffered;if(at.length>=1&&Re-at.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var Re=this._mediaElement.currentTime;for(var Ke in this._sourceBuffers){var Pe=this._sourceBuffers[Ke];if(Pe){for(var at=Pe.buffered,wt=!1,Rt=0;Rt<at.length;Rt++){var xt=at.start(Rt),Lt=at.end(Rt);if(xt<=Re&&Re<Lt+3){if(Re-xt>=this._config.autoCleanupMaxBackwardDuration){wt=!0;var gr=Re-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Ke].push({start:xt,end:gr})}}else Lt<Re&&(wt=!0,this._pendingRemoveRanges[Ke].push({start:xt,end:Lt}))}wt&&!Pe.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var Re=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(Re.video&&Re.video.updating||Re.audio&&Re.audio.updating)return;var Ke=this._mediaSource.duration,Pe=this._pendingMediaDuration;Pe>0&&(isNaN(Ke)||Pe>Ke)&&(c.v(this.TAG,"Update MediaSource duration from ".concat(Ke," to ").concat(Pe)),this._mediaSource.duration=Pe),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var Re in this._pendingRemoveRanges){if(!this._sourceBuffers[Re]||this._sourceBuffers[Re].updating)continue;for(var Ke=this._sourceBuffers[Re],Pe=this._pendingRemoveRanges[Re];Pe.length&&!Ke.updating;){var at=Pe.shift();Ke.remove(at.start,at.end)}}}},{key:"_doAppendSegments",value:function(){var Re=this._pendingSegments;for(var Ke in Re){if(!this._sourceBuffers[Ke]||this._sourceBuffers[Ke].updating)continue;if(Re[Ke].length>0){var Pe=Re[Ke].shift();if(Pe.timestampOffset){var at=this._sourceBuffers[Ke].timestampOffset,wt=Pe.timestampOffset/1e3,Rt=Math.abs(at-wt);Rt>.1&&(c.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(at," to ").concat(wt)),this._sourceBuffers[Ke].timestampOffset=wt),delete Pe.timestampOffset}if(!Pe.data||Pe.data.byteLength===0)continue;try{this._sourceBuffers[Ke].appendBuffer(Pe.data),this._isBufferFull=!1,Ke==="video"&&Pe.hasOwnProperty("info")&&this._idrList.appendArray(Pe.info.syncPoints)}catch(xt){this._pendingSegments[Ke].unshift(Pe),xt.code===22?(this._isBufferFull||this._emitter.emit(Ft.BUFFER_FULL),this._isBufferFull=!0):(c.e(this.TAG,xt.message),this._emitter.emit(Ft.ERROR,{code:xt.code,msg:xt.message}))}}}}},{key:"_onSourceOpen",value:function(){if(c.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var Re=this._pendingSourceBufferInit;Re.length;){var Ke=Re.shift();this.appendInitSegment(Ke,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Ft.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 Re=this._pendingSegments;return Re.video.length>0||Re.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var Re=this._pendingRemoveRanges;return Re.video.length>0||Re.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(Ft.UPDATE_END)}},{key:"_onSourceBufferError",value:function(Re){c.e(this.TAG,"SourceBuffer Error: ".concat(Re))}}]),jt}(),Wt=Lr,ar={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Ut={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:Se.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Se.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Se.CODEC_UNSUPPORTED},kt=function(){function jt(At,Re){if(Object(O.a)(this,jt),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new g.a,this._config=J(),typeof Re=="object"&&Object.assign(this._config,Re),At.type.toLowerCase()!=="flv")throw new t("FlvPlayer requires an flv MediaDataSource input!");At.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=At,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 Ke=E.chrome&&(E.version.major<50||E.version.major===50&&E.version.build<2661);this._alwaysSeekKeyframe=!!(Ke||E.msedge||E.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(x.a)(jt,[{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(Re,Ke){var Pe=this;Re===ve.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Pe._emitter.emit(ve.MEDIA_INFO,Pe.mediaInfo)}):Re===ve.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Pe._emitter.emit(ve.STATISTICS_INFO,Pe.statisticsInfo)})),this._emitter.addListener(Re,Ke)}},{key:"off",value:function(Re,Ke){this._emitter.removeListener(Re,Ke)}},{key:"attachMediaElement",value:function(Re){var Ke=this;if(this._mediaElement=Re,Re.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),Re.addEventListener("seeking",this.e.onvSeeking),Re.addEventListener("canplay",this.e.onvCanPlay),Re.addEventListener("stalled",this.e.onvStalled),Re.addEventListener("progress",this.e.onvProgress),this._msectl=new Wt(this._config),this._msectl.on(Ft.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Ft.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Ft.SOURCE_OPEN,function(){Ke._mseSourceOpened=!0,Ke._hasPendingLoad&&(Ke._hasPendingLoad=!1,Ke.load())}),this._msectl.on(Ft.ERROR,function(Pe){Ke._emitter.emit(ve.ERROR,ar.MEDIA_ERROR,Ut.MEDIA_MSE_ERROR,Pe)}),this._msectl.attachMediaElement(Re),this._pendingSeekTime!=null)try{Re.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Pe){}}},{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 Re=this;if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new l("FlvPlayer.load() has been called, please call unload() first!");if(this._hasPendingLoad)return;if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new Qe(this._mediaDataSource,this._config),this._transmuxer.on(X.INIT_SEGMENT,function(Ke,Pe){Re._msectl.appendInitSegment(Pe)}),this._transmuxer.on(X.MEDIA_SEGMENT,function(Ke,Pe){if(Re._msectl.appendMediaSegment(Pe),Re._config.lazyLoad&&!Re._config.isLive){var at=Re._mediaElement.currentTime;Pe.info.endDts>=(at+Re._config.lazyLoadMaxDuration)*1e3&&(Re._progressChecker==null&&(c.v(Re.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),Re._suspendTransmuxer()))}}),this._transmuxer.on(X.LOADING_COMPLETE,function(){Re._msectl.endOfStream(),Re._emitter.emit(ve.LOADING_COMPLETE)}),this._transmuxer.on(X.RECOVERED_EARLY_EOF,function(){Re._emitter.emit(ve.RECOVERED_EARLY_EOF)}),this._transmuxer.on(X.IO_ERROR,function(Ke,Pe){Re._emitter.emit(ve.ERROR,ar.NETWORK_ERROR,Ke,Pe)}),this._transmuxer.on(X.DEMUX_ERROR,function(Ke,Pe){Re._emitter.emit(ve.ERROR,ar.MEDIA_ERROR,Ke,{code:-1,msg:Pe})}),this._transmuxer.on(X.MEDIA_INFO,function(Ke){Re._mediaInfo=Ke,Re._emitter.emit(ve.MEDIA_INFO,Object.assign({},Ke))}),this._transmuxer.on(X.METADATA_ARRIVED,function(Ke){Re._emitter.emit(ve.METADATA_ARRIVED,Ke)}),this._transmuxer.on(X.SCRIPTDATA_ARRIVED,function(Ke){Re._emitter.emit(ve.SCRIPTDATA_ARRIVED,Ke)}),this._transmuxer.on(X.STATISTICS_INFO,function(Ke){Re._statisticsInfo=Re._fillStatisticsInfo(Ke),Re._emitter.emit(ve.STATISTICS_INFO,Object.assign({},Re._statisticsInfo))}),this._transmuxer.on(X.RECOMMEND_SEEKPOINT,function(Ke){Re._mediaElement&&!Re._config.accurateSeek&&(Re._requestSetTime=!0,Re._mediaElement.currentTime=Ke/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(Re){this._mediaElement.volume=Re}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Re){this._mediaElement.muted=Re}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Re){this._mediaElement?this._internalSeek(Re):this._pendingSeekTime=Re}},{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(Re){if(Re.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return Re;var Ke=!0,Pe=0,at=0;if(this._mediaElement.getVideoPlaybackQuality){var wt=this._mediaElement.getVideoPlaybackQuality();Pe=wt.totalVideoFrames,at=wt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,at=this._mediaElement.webkitDroppedFrameCount):Ke=!1;return Ke&&(Re.decodedFrames=Pe,Re.droppedFrames=at),Re}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var Re=this._mediaElement.buffered,Ke=this._mediaElement.currentTime,Pe=0,at=0,wt=0;wt<Re.length;wt++){var Rt=Re.start(wt),xt=Re.end(wt);if(Rt<=Ke&&Ke<xt){Pe=Rt,at=xt;break}}at>=Ke+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 Re=this._mediaElement.currentTime,Ke=this._mediaElement.buffered,Pe=!1,at=0;at<Ke.length;at++){var wt=Ke.start(at),Rt=Ke.end(at);if(Re>=wt&&Re<Rt){Re>=Rt-this._config.lazyLoadRecoverDuration&&(Pe=!0);break}}Pe&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Pe&&(c.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(Re){for(var Ke=this._mediaElement.buffered,Pe=0;Pe<Ke.length;Pe++){var at=Ke.start(Pe),wt=Ke.end(Pe);if(Re>=at&&Re<wt)return!0}return!1}},{key:"_internalSeek",value:function(Re){var Ke=this._isTimepointBuffered(Re),Pe=!1,at=0;if(Re<1&&this._mediaElement.buffered.length>0){var wt=this._mediaElement.buffered.start(0);(wt<1&&Re<wt||E.safari)&&(Pe=!0,at=E.safari?.1:wt)}if(Pe)this._requestSetTime=!0,this._mediaElement.currentTime=at;else if(Ke){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=Re;else{var Rt=this._msectl.getNearestKeyframe(Math.floor(Re*1e3));this._requestSetTime=!0,Rt!=null?this._mediaElement.currentTime=Rt.dts/1e3:this._mediaElement.currentTime=Re}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(Re),this._transmuxer.seek(Math.floor(Re*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Re)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var Re=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(Re)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(Re),this._transmuxer.seek(Math.floor(Re*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=Re))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(Re){var Ke=this._mediaElement;if(Re||!this._receivedCanPlay||Ke.readyState<2){var Pe=Ke.buffered;Pe.length>0&&Ke.currentTime<Pe.start(0)&&(c.w(this.TAG,"Playback seems stuck at ".concat(Ke.currentTime,", seek to ").concat(Pe.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=Pe.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(Re){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(Re){var Ke=this._mediaElement.currentTime,Pe=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Ke<1&&Pe.length>0){var at=Pe.start(0);if(at<1&&Ke<at||E.safari){this._requestSetTime=!0,this._mediaElement.currentTime=E.safari?.1:at;return}}if(this._isTimepointBuffered(Ke)){if(this._alwaysSeekKeyframe){var wt=this._msectl.getNearestKeyframe(Math.floor(Ke*1e3));wt!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=wt.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:Ke,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(Re){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(Re){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(Re){this._checkAndResumeStuckPlayback()}}]),jt}(),st=kt,Rr=function(){function jt(At,Re){if(Object(O.a)(this,jt),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new g.a,this._config=J(),typeof Re=="object"&&Object.assign(this._config,Re),At.type.toLowerCase()==="flv")throw new t("NativePlayer does't support flv MediaDataSource input!");if(At.hasOwnProperty("segments"))throw new t("NativePlayer(".concat(At.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=At,this._mediaElement=null}return Object(x.a)(jt,[{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(Re,Ke){var Pe=this;Re===ve.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Pe._emitter.emit(ve.MEDIA_INFO,Pe.mediaInfo)}):Re===ve.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Pe._emitter.emit(ve.STATISTICS_INFO,Pe.statisticsInfo)})),this._emitter.addListener(Re,Ke)}},{key:"off",value:function(Re,Ke){this._emitter.removeListener(Re,Ke)}},{key:"attachMediaElement",value:function(Re){if(this._mediaElement=Re,Re.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{Re.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Ke){}}},{key:"detachMediaElement",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"load",value:function(){if(!this._mediaElement)throw new l("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}},{key:"unload",value:function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"play",value:function(){return this._mediaElement.play()}},{key:"pause",value:function(){this._mediaElement.pause()}},{key:"type",get:function(){return this._type}},{key:"buffered",get:function(){return this._mediaElement.buffered}},{key:"duration",get:function(){return this._mediaElement.duration}},{key:"volume",get:function(){return this._mediaElement.volume},set:function(Re){this._mediaElement.volume=Re}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(Re){this._mediaElement.muted=Re}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(Re){this._mediaElement?this._mediaElement.currentTime=Re:this._pendingSeekTime=Re}},{key:"mediaInfo",get:function(){var Re=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",Ke={mimeType:Re+this._mediaDataSource.type};return this._mediaElement&&(Ke.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Ke.width=this._mediaElement.videoWidth,Ke.height=this._mediaElement.videoHeight)),Ke}},{key:"statisticsInfo",get:function(){var Re={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return Re;var Ke=!0,Pe=0,at=0;if(this._mediaElement.getVideoPlaybackQuality){var wt=this._mediaElement.getVideoPlaybackQuality();Pe=wt.totalVideoFrames,at=wt.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Pe=this._mediaElement.webkitDecodedFrameCount,at=this._mediaElement.webkitDroppedFrameCount):Ke=!1;return Ke&&(Re.decodedFrames=Pe,Re.droppedFrames=at),Re}},{key:"_onvLoadedMetadata",value:function(Re){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)}}]),jt}(),on=Rr;A.install();function Sn(jt,At){var Re=jt;if(Re==null||typeof Re!="object")throw new t("MediaDataSource must be an javascript object!");if(!Re.hasOwnProperty("type"))throw new t("MediaDataSource must has type field to indicate video file type!");switch(Re.type){case"flv":return new st(Re,At);default:return new on(Re,At)}}function zn(){return de.supportMSEH264Playback()}function Ii(){return de.getFeatureList()}var yn={};yn.createPlayer=Sn,yn.isSupported=zn,yn.getFeatureList=Ii,yn.BaseLoader=h,yn.LoaderStatus=s,yn.LoaderErrors=u,yn.Events=ve,yn.ErrorTypes=ar,yn.ErrorDetails=Ut,yn.FlvPlayer=st,yn.NativePlayer=on,yn.LoggingControl=Ie,Object.defineProperty(yn,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Nn=k.a=yn},GVMX:function(H,k,d){var O=d("JEkh"),x=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"}});H.exports=x},GdRQ:function(H,k,d){"use strict";function O(E){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(w){return typeof w}:O=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},O(E)}Object.defineProperty(k,"__esModule",{value:!0}),k.isMac=s,k.isWindows=u,k.isIOS=h,k.isSafari=p,k.isIE=m,k.isEdge=v,k.isFirefox=y,k.hasScrollbarGutter=k.supportsImageMetadata=k.supportsCursorURIs=k.dragThreshold=k.isTouchDevice=void 0;var x=A(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var E=new WeakMap;return C=function(){return E},E}function A(E){if(E&&E.__esModule)return E;if(E===null||O(E)!=="object"&&typeof E!="function")return{default:E};var T=C();if(T&&T.has(E))return T.get(E);var w={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in E)if(Object.prototype.hasOwnProperty.call(E,_)){var I=S?Object.getOwnPropertyDescriptor(E,_):null;I&&(I.get||I.set)?Object.defineProperty(w,_,I):w[_]=E[_]}return w.default=E,T&&T.set(E,w),w}var b="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;k.isTouchDevice=b,window.addEventListener("touchstart",function E(){k.isTouchDevice=b=!0,window.removeEventListener("touchstart",E,!1)},!1);var g=10*(window.devicePixelRatio||1);k.dragThreshold=g;var f=!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?(x.Info("Data URI scheme cursor supported"),f=!0):x.Warn("Data URI scheme cursor not supported")}catch(E){x.Error("Data URI scheme cursor test exception: "+E)}var o=f;k.supportsCursorURIs=o;var r=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),r=!0}catch(E){}var i=r;k.supportsImageMetadata=i;var n=!0;try{var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);var l=document.createElement("div");e.appendChild(l);var t=e.offsetWidth-l.offsetWidth;e.parentNode.removeChild(e),n=t!=0}catch(E){x.Error("Scrollbar test exception: "+E)}var a=n;k.hasScrollbarGutter=a;function s(){return navigator&&!!/mac/i.exec(navigator.platform)}function u(){return navigator&&!!/win/i.exec(navigator.platform)}function h(){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 m(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function v(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function y(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(H,k,d){var O=d("bYtY"),x=d("6Ic6"),C=d("IwbS"),A=d("y+Vt"),b=d("sK/D"),g=b.createClipPath,f=["itemStyle"],c=["emphasis","itemStyle"],o=["color","color0","borderColor","borderColor0"],r=x.extend({type:"candlestick",render:function(p,m,v){this.group.removeClipPath(),this._updateDrawMode(p),this._isLargeDraw?this._renderLarge(p):this._renderNormal(p)},incrementalPrepareRender:function(p,m,v){this._clear(),this._updateDrawMode(p)},incrementalRender:function(p,m,v,y){this._isLargeDraw?this._incrementalRenderLarge(p,m):this._incrementalRenderNormal(p,m)},_updateDrawMode:function(p){var m=p.pipelineContext.large;(this._isLargeDraw==null||m^this._isLargeDraw)&&(this._isLargeDraw=m,this._clear())},_renderNormal:function(p){var m=p.getData(),v=this._data,y=this.group,E=m.getLayout("isSimpleBox"),T=p.get("clip",!0),w=p.coordinateSystem,S=w.getArea&&w.getArea();this._data||y.removeAll(),m.diff(v).add(function(_){if(m.hasValue(_)){var I,L=m.getItemLayout(_);if(T&&e(S,L))return;I=n(L,_,!0),C.initProps(I,{shape:{points:L.ends}},p,_),l(I,m,_,E),y.add(I),m.setItemGraphicEl(_,I)}}).update(function(_,I){var L=v.getItemGraphicEl(I);if(!m.hasValue(_)){y.remove(L);return}var N=m.getItemLayout(_);if(T&&e(S,N)){y.remove(L);return}L?C.updateProps(L,{shape:{points:N.ends}},p,_):L=n(N,_),l(L,m,_,E),y.add(L),m.setItemGraphicEl(_,L)}).remove(function(_){var I=v.getItemGraphicEl(_);I&&y.remove(I)}).execute(),this._data=m},_renderLarge:function(p){this._clear(),s(p,this.group);var m=p.get("clip",!0)?g(p.coordinateSystem,!1,p):null;m?this.group.setClipPath(m):this.group.removeClipPath()},_incrementalRenderNormal:function(p,m){for(var v=m.getData(),y=v.getLayout("isSimpleBox"),E;(E=p.next())!=null;){var T,w=v.getItemLayout(E);T=n(w,E),l(T,v,E,y),T.incremental=!0,this.group.add(T)}},_incrementalRenderLarge:function(p,m){s(m,this.group,!0)},remove:function(p){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:O.noop}),i=A.extend({type:"normalCandlestickBox",shape:{},buildPath:function(p,m){var v=m.points;this.__simpleBox?(p.moveTo(v[4][0],v[4][1]),p.lineTo(v[6][0],v[6][1])):(p.moveTo(v[0][0],v[0][1]),p.lineTo(v[1][0],v[1][1]),p.lineTo(v[2][0],v[2][1]),p.lineTo(v[3][0],v[3][1]),p.closePath(),p.moveTo(v[4][0],v[4][1]),p.lineTo(v[5][0],v[5][1]),p.moveTo(v[6][0],v[6][1]),p.lineTo(v[7][0],v[7][1]))}});function n(p,m,v){var y=p.ends;return new i({shape:{points:v?t(y,p):y},z2:100})}function e(p,m){for(var v=!0,y=0;y<m.ends.length;y++)if(p.contain(m.ends[y][0],m.ends[y][1])){v=!1;break}return v}function l(p,m,v,y){var E=m.getItemModel(v),T=E.getModel(f),w=m.getItemVisual(v,"color"),S=m.getItemVisual(v,"borderColor")||w,_=T.getItemStyle(o);p.useStyle(_),p.style.strokeNoScale=!0,p.style.fill=w,p.style.stroke=S,p.__simpleBox=y;var I=E.getModel(c).getItemStyle();C.setHoverStyle(p,I)}function t(p,m){return O.map(p,function(v){return v=v.slice(),v[1]=m.initBaseline,v})}var a=A.extend({type:"largeCandlestickBox",shape:{},buildPath:function(p,m){for(var v=m.points,y=0;y<v.length;)if(this.__sign===v[y++]){var E=v[y++];p.moveTo(E,v[y++]),p.lineTo(E,v[y++])}else y+=3}});function s(p,m,v){var y=p.getData(),E=y.getLayout("largePoints"),T=new a({shape:{points:E},__sign:1});m.add(T);var w=new a({shape:{points:E},__sign:-1});m.add(w),u(1,T,p,y),u(-1,w,p,y),v&&(T.incremental=!0,w.incremental=!0)}function u(p,m,v,y){var E=p>0?"P":"N",T=y.getVisual("borderColor"+E)||y.getVisual("color"+E),w=v.getModel(f).getItemStyle(o);m.useStyle(w),m.style.fill=null,m.style.stroke=T}var h=r;H.exports=h},Gev7:function(H,k,d){var O=d("bYtY"),x=d("K2GJ"),C=d("1bdT"),A=d("ni6a");function b(f){f=f||{},C.call(this,f);for(var c in f)f.hasOwnProperty(c)&&c!=="style"&&(this[c]=f[c]);this.style=new x(f.style,this),this._rect=null,this.__clipPaths=null}b.prototype={constructor:b,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,o){},getBoundingRect:function(){},contain:function(c,o){return this.rectContain(c,o)},traverse:function(c,o){c.call(o,this)},rectContain:function(c,o){var r=this.transformCoordToLocal(c,o),i=this.getBoundingRect();return i.contain(r[0],r[1])},dirty:function(){this.__dirty=this.__dirtyText=!0,this._rect=null,this.__zr&&this.__zr.refresh()},animateStyle:function(c){return this.animate("style",c)},attrKV:function(c,o){c!=="style"?C.prototype.attrKV.call(this,c,o):this.style.set(o)},setStyle:function(c,o){return this.style.set(c,o),this.dirty(!1),this},useStyle:function(c){return this.style=new x(c,this),this.dirty(!1),this},calculateTextPosition:null},O.inherits(b,C),O.mixin(b,A);var g=b;H.exports=g},GrNh:function(H,k,d){var O=d("bYtY"),x=d("IwbS"),C=d("6Ic6");function A(r,i,n,e){var l=i.getData(),t=this.dataIndex,a=l.getName(t),s=i.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:r,name:a,seriesId:i.id}),l.each(function(u){b(l.getItemGraphicEl(u),l.getItemLayout(u),i.isSelected(l.getName(u)),s,n)})}function b(r,i,n,e,l){var t=(i.startAngle+i.endAngle)/2,a=Math.cos(t),s=Math.sin(t),u=n?e:0,h=[a*u,s*u];l?r.animate().when(200,{position:h}).start("bounceOut"):r.attr("position",h)}function g(r,i){x.Group.call(this);var n=new x.Sector({z2:2}),e=new x.Polyline,l=new x.Text;this.add(n),this.add(e),this.add(l),this.updateData(r,i,!0)}var f=g.prototype;f.updateData=function(r,i,n){var e=this.childAt(0),l=this.childAt(1),t=this.childAt(2),a=r.hostModel,s=r.getItemModel(i),u=r.getItemLayout(i),h=O.extend({},u);h.label=null;var p=a.getShallow("animationTypeUpdate");if(n){e.setShape(h);var m=a.getShallow("animationType");m==="scale"?(e.shape.r=u.r0,x.initProps(e,{shape:{r:u.r}},a,i)):(e.shape.endAngle=u.startAngle,x.updateProps(e,{shape:{endAngle:u.endAngle}},a,i))}else p==="expansion"?e.setShape(h):x.updateProps(e,{shape:h},a,i);var v=r.getItemVisual(i,"color");e.useStyle(O.defaults({lineJoin:"bevel",fill:v},s.getModel("itemStyle").getItemStyle())),e.hoverStyle=s.getModel("emphasis.itemStyle").getItemStyle();var y=s.getShallow("cursor");y&&e.attr("cursor",y),b(this,r.getItemLayout(i),a.isSelected(r.getName(i)),a.get("selectedOffset"),a.get("animation"));var E=!n&&p==="transition";this._updateLabel(r,i,E),this.highDownOnUpdate=a.get("silent")?null:function(T,w){var S=a.isAnimationEnabled()&&s.get("hoverAnimation");w==="emphasis"?(l.ignore=l.hoverIgnore,t.ignore=t.hoverIgnore,S&&(e.stopAnimation(!0),e.animateTo({shape:{r:u.r+a.get("hoverOffset")}},300,"elasticOut"))):(l.ignore=l.normalIgnore,t.ignore=t.normalIgnore,S&&(e.stopAnimation(!0),e.animateTo({shape:{r:u.r}},300,"elasticOut")))},x.setHoverStyle(this)},f._updateLabel=function(r,i,n){var e=this.childAt(1),l=this.childAt(2),t=r.hostModel,a=r.getItemModel(i),s=r.getItemLayout(i),u=s.label,h=r.getItemVisual(i,"color");if(!u||isNaN(u.x)||isNaN(u.y)){l.ignore=l.normalIgnore=l.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]]},m={x:u.x,y:u.y};n?(x.updateProps(e,{shape:p},t,i),x.updateProps(l,{style:m},t,i)):(e.attr({shape:p}),l.attr({style:m})),l.attr({rotation:u.rotation,origin:[u.x,u.y],z2:10});var v=a.getModel("label"),y=a.getModel("emphasis.label"),E=a.getModel("labelLine"),T=a.getModel("emphasis.labelLine"),h=r.getItemVisual(i,"color");x.setLabelStyle(l.style,l.hoverStyle={},v,y,{labelFetcher:r.hostModel,labelDataIndex:i,defaultText:u.text,autoColor:h,useInsideStyle:!!u.inside},{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,opacity:r.getItemVisual(i,"opacity")}),l.ignore=l.normalIgnore=!v.get("show"),l.hoverIgnore=!y.get("show"),e.ignore=e.normalIgnore=!E.get("show"),e.hoverIgnore=!T.get("show"),e.setStyle({stroke:h,opacity:r.getItemVisual(i,"opacity")}),e.setStyle(E.getModel("lineStyle").getLineStyle()),e.hoverStyle=T.getModel("lineStyle").getLineStyle();var w=E.get("smooth");w&&w===!0&&(w=.4),e.setShape({smooth:w})},O.inherits(g,x.Group);var c=C.extend({type:"pie",init:function(){var r=new x.Group;this._sectorGroup=r},render:function(r,i,n,e){if(e&&e.from===this.uid)return;var l=r.getData(),t=this._data,a=this.group,s=i.get("animation"),u=!t,h=r.get("animationType"),p=r.get("animationTypeUpdate"),m=O.curry(A,this.uid,r,s,n),v=r.get("selectedMode");if(l.diff(t).add(function(S){var _=new g(l,S);u&&h!=="scale"&&_.eachChild(function(I){I.stopAnimation(!0)}),v&&_.on("click",m),l.setItemGraphicEl(S,_),a.add(_)}).update(function(S,_){var I=t.getItemGraphicEl(_);!u&&p!=="transition"&&I.eachChild(function(L){L.stopAnimation(!0)}),I.updateData(l,S),I.off("click"),v&&I.on("click",m),a.add(I),l.setItemGraphicEl(S,I)}).remove(function(S){var _=t.getItemGraphicEl(S);a.remove(_)}).execute(),s&&l.count()>0&&(u?h!=="scale":p!=="transition")){for(var y=l.getItemLayout(0),E=1;isNaN(y.startAngle)&&E<l.count();++E)y=l.getItemLayout(E);var T=Math.max(n.getWidth(),n.getHeight())/2,w=O.bind(a.removeClipPath,a);a.setClipPath(this._createClipPath(y.cx,y.cy,T,y.startAngle,y.clockwise,w,r,u))}else a.removeClipPath();this._data=l},dispose:function(){},_createClipPath:function(r,i,n,e,l,t,a,s){var u=new x.Sector({shape:{cx:r,cy:i,r0:0,r:n,startAngle:e,endAngle:e,clockwise:l}}),h=s?x.initProps:x.updateProps;return h(u,{shape:{endAngle:e+(l?1:-1)*Math.PI*2}},a,t),u},containPoint:function(r,i){var n=i.getData(),e=n.getItemLayout(0);if(e){var l=r[0]-e.cx,t=r[1]-e.cy,a=Math.sqrt(l*l+t*t);return a<=e.r&&a>=e.r0}}}),o=c;H.exports=o},Gytx:function(H,k){H.exports=function(O,x,C,A){var b=C?C.call(A,O,x):void 0;if(b!==void 0)return!!b;if(O===x)return!0;if(typeof O!="object"||!O||typeof x!="object"||!x)return!1;var g=Object.keys(O),f=Object.keys(x);if(g.length!==f.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(x),o=0;o<g.length;o++){var r=g[o];if(!c(r))return!1;var i=O[r],n=x[r];if(b=C?C.call(A,i,n,r):void 0,b===!1||b===void 0&&i!==n)return!1}return!0}},GzdX:function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("q1tI"),A=d.n(C),b=d("rePB"),g=d("1OyB"),f=d("vuIU"),c=d("Ji7U"),o=d("md7G"),r=d("foSv"),i=d("m+aA"),n=d("TSYQ"),e=d.n(n),l=d("4IlW");function t(U){var B=U.pageXOffset,j="scrollLeft";if(typeof B!="number"){var W=U.document;B=W.documentElement[j],typeof B!="number"&&(B=W.body[j])}return B}function a(U){var B,j,W=U.ownerDocument,V=W.body,z=W&&W.documentElement,J=U.getBoundingClientRect();return B=J.left,j=J.top,B-=z.clientLeft||V.clientLeft||0,j-=z.clientTop||V.clientTop||0,{left:B,top:j}}function s(U){var B=a(U),j=U.ownerDocument,W=j.defaultView||j.parentWindow;return B.left+=t(W),B.left}function u(U){var B=h();return function(){var W=Object(r.a)(U),V;if(B){var z=Object(r.a)(this).constructor;V=Reflect.construct(W,arguments,z)}else V=W.apply(this,arguments);return Object(o.a)(this,V)}}function h(){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(U){return!1}}var p=function(U){Object(c.a)(j,U);var B=u(j);function j(){var W;return Object(g.a)(this,j),W=B.apply(this,arguments),W.onHover=function(V){var z=W.props,J=z.onHover,q=z.index;J(V,q)},W.onClick=function(V){var z=W.props,J=z.onClick,q=z.index;J(V,q)},W.onKeyDown=function(V){var z=W.props,J=z.onClick,q=z.index;V.keyCode===13&&J(V,q)},W}return Object(f.a)(j,[{key:"getClassName",value:function(){var V=this.props,z=V.prefixCls,J=V.index,q=V.value,de=V.allowHalf,ae=V.focused,ve=J+1,_e=z;return q===0&&J===0&&ae?_e+=" ".concat(z,"-focused"):de&&q+.5>=ve&&q<ve?(_e+=" ".concat(z,"-half ").concat(z,"-active"),ae&&(_e+=" ".concat(z,"-focused"))):(_e+=ve<=q?" ".concat(z,"-full"):" ".concat(z,"-zero"),ve===q&&ae&&(_e+=" ".concat(z,"-focused"))),_e}},{key:"render",value:function(){var V=this.onHover,z=this.onClick,J=this.onKeyDown,q=this.props,de=q.disabled,ae=q.prefixCls,ve=q.character,_e=q.characterRender,Ie=q.index,He=q.count,me=q.value,ke=typeof ve=="function"?ve(this.props):ve,se=A.a.createElement("li",{className:this.getClassName()},A.a.createElement("div",{onClick:de?null:z,onKeyDown:de?null:J,onMouseMove:de?null:V,role:"radio","aria-checked":me>Ie?"true":"false","aria-posinset":Ie+1,"aria-setsize":He,tabIndex:de?-1:0},A.a.createElement("div",{className:"".concat(ae,"-first")},ke),A.a.createElement("div",{className:"".concat(ae,"-second")},ke)));return _e&&(se=_e(se,this.props)),se}}]),j}(A.a.Component);function m(U,B){var j=Object.keys(U);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(U);B&&(W=W.filter(function(V){return Object.getOwnPropertyDescriptor(U,V).enumerable})),j.push.apply(j,W)}return j}function v(U){for(var B=1;B<arguments.length;B++){var j=arguments[B]!=null?arguments[B]:{};B%2?m(Object(j),!0).forEach(function(W){Object(b.a)(U,W,j[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(U,Object.getOwnPropertyDescriptors(j)):m(Object(j)).forEach(function(W){Object.defineProperty(U,W,Object.getOwnPropertyDescriptor(j,W))})}return U}function y(U){var B=E();return function(){var W=Object(r.a)(U),V;if(B){var z=Object(r.a)(this).constructor;V=Reflect.construct(W,arguments,z)}else V=W.apply(this,arguments);return Object(o.a)(this,V)}}function E(){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(U){return!1}}function T(){}var w=function(U){Object(c.a)(j,U);var B=y(j);function j(W){var V;Object(g.a)(this,j),V=B.call(this,W),V.onHover=function(J,q){var de=V.props.onHoverChange,ae=V.getStarValue(q,J.pageX),ve=V.state.cleanedValue;ae!==ve&&V.setState({hoverValue:ae,cleanedValue:null}),de(ae)},V.onMouseLeave=function(){var J=V.props.onHoverChange;V.setState({hoverValue:void 0,cleanedValue:null}),J(void 0)},V.onClick=function(J,q){var de=V.props.allowClear,ae=V.state.value,ve=V.getStarValue(q,J.pageX),_e=!1;de&&(_e=ve===ae),V.onMouseLeave(),V.changeValue(_e?0:ve),V.setState({cleanedValue:_e?ve:null})},V.onFocus=function(){var J=V.props.onFocus;V.setState({focused:!0}),J&&J()},V.onBlur=function(){var J=V.props.onBlur;V.setState({focused:!1}),J&&J()},V.onKeyDown=function(J){var q=J.keyCode,de=V.props,ae=de.count,ve=de.allowHalf,_e=de.onKeyDown,Ie=de.direction,He=Ie==="rtl",me=V.state.value;q===l.a.RIGHT&&me<ae&&!He?(ve?me+=.5:me+=1,V.changeValue(me),J.preventDefault()):q===l.a.LEFT&&me>0&&!He||q===l.a.RIGHT&&me>0&&He?(ve?me-=.5:me-=1,V.changeValue(me),J.preventDefault()):q===l.a.LEFT&&me<ae&&He&&(ve?me+=.5:me+=1,V.changeValue(me),J.preventDefault()),_e&&_e(J)},V.saveRef=function(J){return function(q){V.stars[J]=q}},V.saveRate=function(J){V.rate=J};var z=W.value;return z===void 0&&(z=W.defaultValue),V.stars={},V.state={value:z,focused:!1,cleanedValue:null},V}return Object(f.a)(j,[{key:"componentDidMount",value:function(){var V=this.props,z=V.autoFocus,J=V.disabled;z&&!J&&this.focus()}},{key:"getStarDOM",value:function(V){return Object(i.a)(this.stars[V])}},{key:"getStarValue",value:function(V,z){var J=this.props,q=J.allowHalf,de=J.direction,ae=de==="rtl",ve=V+1;if(q){var _e=this.getStarDOM(V),Ie=s(_e),He=_e.clientWidth;(ae&&z-Ie>He/2||!ae&&z-Ie<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,J=V.allowHalf,q=V.style,de=V.prefixCls,ae=V.disabled,ve=V.className,_e=V.character,Ie=V.characterRender,He=V.tabIndex,me=V.direction,ke=this.state,se=ke.value,te=ke.hoverValue,Ge=ke.focused,oe=[],Y=ae?"".concat(de,"-disabled"):"",G=0;G<z;G+=1)oe.push(A.a.createElement(p,{ref:this.saveRef(G),index:G,count:z,disabled:ae,prefixCls:"".concat(de,"-star"),allowHalf:J,value:te===void 0?se:te,onClick:this.onClick,onHover:this.onHover,key:G,character:_e,characterRender:Ie,focused:Ge}));var Q=e()(de,Y,ve,Object(b.a)({},"".concat(de,"-rtl"),me==="rtl"));return A.a.createElement("ul",{className:Q,style:q,onMouseLeave:ae?null:this.onMouseLeave,tabIndex:ae?-1:He,onFocus:ae?null:this.onFocus,onBlur:ae?null:this.onBlur,onKeyDown:ae?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},oe)}}],[{key:"getDerivedStateFromProps",value:function(V,z){return"value"in V&&V.value!==void 0?v(v({},z),{},{value:V.value}):z}}]),j}(A.a.Component);w.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:T,character:"\u2605",onHoverChange:T,tabIndex:0,direction:"ltr"};var S=w,_=S,I=d("Lerx"),L=d.n(I),N=d("3S7+"),R=d("H84U"),D=function(U,B){var j={};for(var W in U)Object.prototype.hasOwnProperty.call(U,W)&&B.indexOf(W)<0&&(j[W]=U[W]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,W=Object.getOwnPropertySymbols(U);V<W.length;V++)B.indexOf(W[V])<0&&Object.prototype.propertyIsEnumerable.call(U,W[V])&&(j[W[V]]=U[W[V]]);return j},F=C.forwardRef(function(U,B){var j=U.prefixCls,W=U.tooltips,V=D(U,["prefixCls","tooltips"]),z=function(_e,Ie){var He=Ie.index;return W?C.createElement(N.a,{title:W[He]},_e):_e},J=C.useContext(R.b),q=J.getPrefixCls,de=J.direction,ae=q("rate",j);return C.createElement(_,x()({ref:B,characterRender:z},V,{prefixCls:ae,direction:de}))});F.displayName="Rate",F.defaultProps={character:C.createElement(L.a,null)};var M=k.a=F},H6uX:function(H,k){var d=Array.prototype.slice,O=function(g){this._$handlers={},this._$eventProcessor=g};O.prototype={constructor:O,one:function(g,f,c,o){return C(this,g,f,c,o,!0)},on:function(g,f,c,o){return C(this,g,f,c,o,!1)},isSilent:function(g){var f=this._$handlers;return!f[g]||!f[g].length},off:function(g,f){var c=this._$handlers;if(!g)return this._$handlers={},this;if(f){if(c[g]){for(var o=[],r=0,i=c[g].length;r<i;r++)c[g][r].h!==f&&o.push(c[g][r]);c[g]=o}c[g]&&c[g].length===0&&delete c[g]}else delete c[g];return this},trigger:function(g){var f=this._$handlers[g],c=this._$eventProcessor;if(f){var o=arguments,r=o.length;r>3&&(o=d.call(o,1));for(var i=f.length,n=0;n<i;){var e=f[n];if(c&&c.filter&&e.query!=null&&!c.filter(g,e.query)){n++;continue}switch(r){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,o[1]);break;case 3:e.h.call(e.ctx,o[1],o[2]);break;default:e.h.apply(e.ctx,o);break}e.one?(f.splice(n,1),i--):n++}}return c&&c.afterTrigger&&c.afterTrigger(g),this},triggerWithContext:function(g){var f=this._$handlers[g],c=this._$eventProcessor;if(f){var o=arguments,r=o.length;r>4&&(o=d.call(o,1,o.length-1));for(var i=o[o.length-1],n=f.length,e=0;e<n;){var l=f[e];if(c&&c.filter&&l.query!=null&&!c.filter(g,l.query)){e++;continue}switch(r){case 1:l.h.call(i);break;case 2:l.h.call(i,o[1]);break;case 3:l.h.call(i,o[1],o[2]);break;default:l.h.apply(i,o);break}l.one?(f.splice(e,1),n--):e++}}return c&&c.afterTrigger&&c.afterTrigger(g),this}};function x(b,g){var f=b._$eventProcessor;return g!=null&&f&&f.normalizeQuery&&(g=f.normalizeQuery(g)),g}function C(b,g,f,c,o,r){var i=b._$handlers;if(typeof f=="function"&&(o=c,c=f,f=null),!c||!g)return b;f=x(b,f),i[g]||(i[g]=[]);for(var n=0;n<i[g].length;n++)if(i[g][n].h===c)return b;var e={h:c,one:r,query:f,ctx:o||b,callAtLast:c.zrEventfulCallAtLast},l=i[g].length-1,t=i[g][l];return t&&t.callAtLast?i[g].splice(l,0,e):i[g].push(e),b}var A=O;H.exports=A},H7XF:function(H,k,d){"use strict";k.byteLength=c,k.toByteArray=r,k.fromByteArray=e;for(var O=[],x=[],C=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,g=A.length;b<g;++b)O[b]=A[b],x[A.charCodeAt(b)]=b;x["-".charCodeAt(0)]=62,x["_".charCodeAt(0)]=63;function f(l){var t=l.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=l.indexOf("=");a===-1&&(a=t);var s=a===t?0:4-a%4;return[a,s]}function c(l){var t=f(l),a=t[0],s=t[1];return(a+s)*3/4-s}function o(l,t,a){return(t+a)*3/4-a}function r(l){var t,a=f(l),s=a[0],u=a[1],h=new C(o(l,s,u)),p=0,m=u>0?s-4:s,v;for(v=0;v<m;v+=4)t=x[l.charCodeAt(v)]<<18|x[l.charCodeAt(v+1)]<<12|x[l.charCodeAt(v+2)]<<6|x[l.charCodeAt(v+3)],h[p++]=t>>16&255,h[p++]=t>>8&255,h[p++]=t&255;return u===2&&(t=x[l.charCodeAt(v)]<<2|x[l.charCodeAt(v+1)]>>4,h[p++]=t&255),u===1&&(t=x[l.charCodeAt(v)]<<10|x[l.charCodeAt(v+1)]<<4|x[l.charCodeAt(v+2)]>>2,h[p++]=t>>8&255,h[p++]=t&255),h}function i(l){return O[l>>18&63]+O[l>>12&63]+O[l>>6&63]+O[l&63]}function n(l,t,a){for(var s,u=[],h=t;h<a;h+=3)s=(l[h]<<16&16711680)+(l[h+1]<<8&65280)+(l[h+2]&255),u.push(i(s));return u.join("")}function e(l){for(var t,a=l.length,s=a%3,u=[],h=16383,p=0,m=a-s;p<m;p+=h)u.push(n(l,p,p+h>m?m:p+h));return s===1?(t=l[a-1],u.push(O[t>>2]+O[t<<4&63]+"==")):s===2&&(t=(l[a-2]<<8)+l[a-1],u.push(O[t>>10]+O[t>>4&63]+O[t<<2&63]+"=")),u.join("")}},HBhm:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},HDXh:function(H,k,d){"use strict";(function(O){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/var x=d("H7XF"),C=d("kVK+"),A=d("49sm");k.Buffer=c,k.SlowBuffer=u,k.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:b(),k.kMaxLength=g();function b(){try{var oe=new Uint8Array(1);return oe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},oe.foo()===42&&typeof oe.subarray=="function"&&oe.subarray(1,1).byteLength===0}catch(Y){return!1}}function g(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(oe,Y){if(g()<Y)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(oe=new Uint8Array(Y),oe.__proto__=c.prototype):(oe===null&&(oe=new c(Y)),oe.length=Y),oe}function c(oe,Y,G){if(!c.TYPED_ARRAY_SUPPORT&&!(this instanceof c))return new c(oe,Y,G);if(typeof oe=="number"){if(typeof Y=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,oe)}return o(this,oe,Y,G)}c.poolSize=8192,c._augment=function(oe){return oe.__proto__=c.prototype,oe};function o(oe,Y,G,Q){if(typeof Y=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Y instanceof ArrayBuffer?t(oe,Y,G,Q):typeof Y=="string"?e(oe,Y,G):a(oe,Y)}c.from=function(oe,Y,G){return o(null,oe,Y,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(oe){if(typeof oe!="number")throw new TypeError('"size" argument must be a number');if(oe<0)throw new RangeError('"size" argument must not be negative')}function i(oe,Y,G,Q){return r(Y),Y<=0?f(oe,Y):G!==void 0?typeof Q=="string"?f(oe,Y).fill(G,Q):f(oe,Y).fill(G):f(oe,Y)}c.alloc=function(oe,Y,G){return i(null,oe,Y,G)};function n(oe,Y){if(r(Y),oe=f(oe,Y<0?0:s(Y)|0),!c.TYPED_ARRAY_SUPPORT)for(var G=0;G<Y;++G)oe[G]=0;return oe}c.allocUnsafe=function(oe){return n(null,oe)},c.allocUnsafeSlow=function(oe){return n(null,oe)};function e(oe,Y,G){if((typeof G!="string"||G==="")&&(G="utf8"),!c.isEncoding(G))throw new TypeError('"encoding" must be a valid string encoding');var Q=h(Y,G)|0;oe=f(oe,Q);var ye=oe.write(Y,G);return ye!==Q&&(oe=oe.slice(0,ye)),oe}function l(oe,Y){var G=Y.length<0?0:s(Y.length)|0;oe=f(oe,G);for(var Q=0;Q<G;Q+=1)oe[Q]=Y[Q]&255;return oe}function t(oe,Y,G,Q){if(Y.byteLength,G<0||Y.byteLength<G)throw new RangeError("'offset' is out of bounds");if(Y.byteLength<G+(Q||0))throw new RangeError("'length' is out of bounds");return G===void 0&&Q===void 0?Y=new Uint8Array(Y):Q===void 0?Y=new Uint8Array(Y,G):Y=new Uint8Array(Y,G,Q),c.TYPED_ARRAY_SUPPORT?(oe=Y,oe.__proto__=c.prototype):oe=l(oe,Y),oe}function a(oe,Y){if(c.isBuffer(Y)){var G=s(Y.length)|0;return oe=f(oe,G),oe.length===0||Y.copy(oe,0,0,G),oe}if(Y){if(typeof ArrayBuffer!="undefined"&&Y.buffer instanceof ArrayBuffer||"length"in Y)return typeof Y.length!="number"||Ge(Y.length)?f(oe,0):l(oe,Y);if(Y.type==="Buffer"&&A(Y.data))return l(oe,Y.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function s(oe){if(oe>=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return oe|0}function u(oe){return+oe!=oe&&(oe=0),c.alloc(+oe)}c.isBuffer=function(Y){return!!(Y!=null&&Y._isBuffer)},c.compare=function(Y,G){if(!c.isBuffer(Y)||!c.isBuffer(G))throw new TypeError("Arguments must be Buffers");if(Y===G)return 0;for(var Q=Y.length,ye=G.length,ce=0,Te=Math.min(Q,ye);ce<Te;++ce)if(Y[ce]!==G[ce]){Q=Y[ce],ye=G[ce];break}return Q<ye?-1:ye<Q?1:0},c.isEncoding=function(Y){switch(String(Y).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(Y,G){if(!A(Y))throw new TypeError('"list" argument must be an Array of Buffers');if(Y.length===0)return c.alloc(0);var Q;if(G===void 0)for(G=0,Q=0;Q<Y.length;++Q)G+=Y[Q].length;var ye=c.allocUnsafe(G),ce=0;for(Q=0;Q<Y.length;++Q){var Te=Y[Q];if(!c.isBuffer(Te))throw new TypeError('"list" argument must be an Array of Buffers');Te.copy(ye,ce),ce+=Te.length}return ye};function h(oe,Y){if(c.isBuffer(oe))return oe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(oe)||oe instanceof ArrayBuffer))return oe.byteLength;typeof oe!="string"&&(oe=""+oe);var G=oe.length;if(G===0)return 0;for(var Q=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return He(oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return se(oe).length;default:if(Q)return He(oe).length;Y=(""+Y).toLowerCase(),Q=!0}}c.byteLength=h;function p(oe,Y,G){var Q=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length)return"";if((G===void 0||G>this.length)&&(G=this.length),G<=0)return"";if(G>>>=0,Y>>>=0,G<=Y)return"";for(oe||(oe="utf8");;)switch(oe){case"hex":return U(this,Y,G);case"utf8":case"utf-8":return N(this,Y,G);case"ascii":return F(this,Y,G);case"latin1":case"binary":return M(this,Y,G);case"base64":return L(this,Y,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,Y,G);default:if(Q)throw new TypeError("Unknown encoding: "+oe);oe=(oe+"").toLowerCase(),Q=!0}}c.prototype._isBuffer=!0;function m(oe,Y,G){var Q=oe[Y];oe[Y]=oe[G],oe[G]=Q}c.prototype.swap16=function(){var Y=this.length;if(Y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;G<Y;G+=2)m(this,G,G+1);return this},c.prototype.swap32=function(){var Y=this.length;if(Y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var G=0;G<Y;G+=4)m(this,G,G+3),m(this,G+1,G+2);return this},c.prototype.swap64=function(){var Y=this.length;if(Y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var G=0;G<Y;G+=8)m(this,G,G+7),m(this,G+1,G+6),m(this,G+2,G+5),m(this,G+3,G+4);return this},c.prototype.toString=function(){var Y=this.length|0;return Y===0?"":arguments.length===0?N(this,0,Y):p.apply(this,arguments)},c.prototype.equals=function(Y){if(!c.isBuffer(Y))throw new TypeError("Argument must be a Buffer");return this===Y?!0:c.compare(this,Y)===0},c.prototype.inspect=function(){var Y="",G=k.INSPECT_MAX_BYTES;return this.length>0&&(Y=this.toString("hex",0,G).match(/.{2}/g).join(" "),this.length>G&&(Y+=" ... ")),"<Buffer "+Y+">"},c.prototype.compare=function(Y,G,Q,ye,ce){if(!c.isBuffer(Y))throw new TypeError("Argument must be a Buffer");if(G===void 0&&(G=0),Q===void 0&&(Q=Y?Y.length:0),ye===void 0&&(ye=0),ce===void 0&&(ce=this.length),G<0||Q>Y.length||ye<0||ce>this.length)throw new RangeError("out of range index");if(ye>=ce&&G>=Q)return 0;if(ye>=ce)return-1;if(G>=Q)return 1;if(G>>>=0,Q>>>=0,ye>>>=0,ce>>>=0,this===Y)return 0;for(var Te=ce-ye,Se=Q-G,le=Math.min(Te,Se),fe=this.slice(ye,ce),Ee=Y.slice(G,Q),Ve=0;Ve<le;++Ve)if(fe[Ve]!==Ee[Ve]){Te=fe[Ve],Se=Ee[Ve];break}return Te<Se?-1:Se<Te?1:0};function v(oe,Y,G,Q,ye){if(oe.length===0)return-1;if(typeof G=="string"?(Q=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=ye?0:oe.length-1),G<0&&(G=oe.length+G),G>=oe.length){if(ye)return-1;G=oe.length-1}else if(G<0)if(ye)G=0;else return-1;if(typeof Y=="string"&&(Y=c.from(Y,Q)),c.isBuffer(Y))return Y.length===0?-1:y(oe,Y,G,Q,ye);if(typeof Y=="number")return Y=Y&255,c.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ye?Uint8Array.prototype.indexOf.call(oe,Y,G):Uint8Array.prototype.lastIndexOf.call(oe,Y,G):y(oe,[Y],G,Q,ye);throw new TypeError("val must be string, number or Buffer")}function y(oe,Y,G,Q,ye){var ce=1,Te=oe.length,Se=Y.length;if(Q!==void 0&&(Q=String(Q).toLowerCase(),Q==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="utf-16le")){if(oe.length<2||Y.length<2)return-1;ce=2,Te/=2,Se/=2,G/=2}function le(et,Oe){return ce===1?et[Oe]:et.readUInt16BE(Oe*ce)}var fe;if(ye){var Ee=-1;for(fe=G;fe<Te;fe++)if(le(oe,fe)===le(Y,Ee===-1?0:fe-Ee)){if(Ee===-1&&(Ee=fe),fe-Ee+1===Se)return Ee*ce}else Ee!==-1&&(fe-=fe-Ee),Ee=-1}else for(G+Se>Te&&(G=Te-Se),fe=G;fe>=0;fe--){for(var Ve=!0,vt=0;vt<Se;vt++)if(le(oe,fe+vt)!==le(Y,vt)){Ve=!1;break}if(Ve)return fe}return-1}c.prototype.includes=function(Y,G,Q){return this.indexOf(Y,G,Q)!==-1},c.prototype.indexOf=function(Y,G,Q){return v(this,Y,G,Q,!0)},c.prototype.lastIndexOf=function(Y,G,Q){return v(this,Y,G,Q,!1)};function E(oe,Y,G,Q){G=Number(G)||0;var ye=oe.length-G;Q?(Q=Number(Q),Q>ye&&(Q=ye)):Q=ye;var ce=Y.length;if(ce%2!==0)throw new TypeError("Invalid hex string");Q>ce/2&&(Q=ce/2);for(var Te=0;Te<Q;++Te){var Se=parseInt(Y.substr(Te*2,2),16);if(isNaN(Se))return Te;oe[G+Te]=Se}return Te}function T(oe,Y,G,Q){return te(He(Y,oe.length-G),oe,G,Q)}function w(oe,Y,G,Q){return te(me(Y),oe,G,Q)}function S(oe,Y,G,Q){return w(oe,Y,G,Q)}function _(oe,Y,G,Q){return te(se(Y),oe,G,Q)}function I(oe,Y,G,Q){return te(ke(Y,oe.length-G),oe,G,Q)}c.prototype.write=function(Y,G,Q,ye){if(G===void 0)ye="utf8",Q=this.length,G=0;else if(Q===void 0&&typeof G=="string")ye=G,Q=this.length,G=0;else if(isFinite(G))G=G|0,isFinite(Q)?(Q=Q|0,ye===void 0&&(ye="utf8")):(ye=Q,Q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ce=this.length-G;if((Q===void 0||Q>ce)&&(Q=ce),Y.length>0&&(Q<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");ye||(ye="utf8");for(var Te=!1;;)switch(ye){case"hex":return E(this,Y,G,Q);case"utf8":case"utf-8":return T(this,Y,G,Q);case"ascii":return w(this,Y,G,Q);case"latin1":case"binary":return S(this,Y,G,Q);case"base64":return _(this,Y,G,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,Y,G,Q);default:if(Te)throw new TypeError("Unknown encoding: "+ye);ye=(""+ye).toLowerCase(),Te=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(oe,Y,G){return Y===0&&G===oe.length?x.fromByteArray(oe):x.fromByteArray(oe.slice(Y,G))}function N(oe,Y,G){G=Math.min(oe.length,G);for(var Q=[],ye=Y;ye<G;){var ce=oe[ye],Te=null,Se=ce>239?4:ce>223?3:ce>191?2:1;if(ye+Se<=G){var le,fe,Ee,Ve;switch(Se){case 1:ce<128&&(Te=ce);break;case 2:le=oe[ye+1],(le&192)===128&&(Ve=(ce&31)<<6|le&63,Ve>127&&(Te=Ve));break;case 3:le=oe[ye+1],fe=oe[ye+2],(le&192)===128&&(fe&192)===128&&(Ve=(ce&15)<<12|(le&63)<<6|fe&63,Ve>2047&&(Ve<55296||Ve>57343)&&(Te=Ve));break;case 4:le=oe[ye+1],fe=oe[ye+2],Ee=oe[ye+3],(le&192)===128&&(fe&192)===128&&(Ee&192)===128&&(Ve=(ce&15)<<18|(le&63)<<12|(fe&63)<<6|Ee&63,Ve>65535&&Ve<1114112&&(Te=Ve))}}Te===null?(Te=65533,Se=1):Te>65535&&(Te-=65536,Q.push(Te>>>10&1023|55296),Te=56320|Te&1023),Q.push(Te),ye+=Se}return D(Q)}var R=4096;function D(oe){var Y=oe.length;if(Y<=R)return String.fromCharCode.apply(String,oe);for(var G="",Q=0;Q<Y;)G+=String.fromCharCode.apply(String,oe.slice(Q,Q+=R));return G}function F(oe,Y,G){var Q="";G=Math.min(oe.length,G);for(var ye=Y;ye<G;++ye)Q+=String.fromCharCode(oe[ye]&127);return Q}function M(oe,Y,G){var Q="";G=Math.min(oe.length,G);for(var ye=Y;ye<G;++ye)Q+=String.fromCharCode(oe[ye]);return Q}function U(oe,Y,G){var Q=oe.length;(!Y||Y<0)&&(Y=0),(!G||G<0||G>Q)&&(G=Q);for(var ye="",ce=Y;ce<G;++ce)ye+=Ie(oe[ce]);return ye}function B(oe,Y,G){for(var Q=oe.slice(Y,G),ye="",ce=0;ce<Q.length;ce+=2)ye+=String.fromCharCode(Q[ce]+Q[ce+1]*256);return ye}c.prototype.slice=function(Y,G){var Q=this.length;Y=~~Y,G=G===void 0?Q:~~G,Y<0?(Y+=Q,Y<0&&(Y=0)):Y>Q&&(Y=Q),G<0?(G+=Q,G<0&&(G=0)):G>Q&&(G=Q),G<Y&&(G=Y);var ye;if(c.TYPED_ARRAY_SUPPORT)ye=this.subarray(Y,G),ye.__proto__=c.prototype;else{var ce=G-Y;ye=new c(ce,void 0);for(var Te=0;Te<ce;++Te)ye[Te]=this[Te+Y]}return ye};function j(oe,Y,G){if(oe%1!==0||oe<0)throw new RangeError("offset is not uint");if(oe+Y>G)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUIntLE=function(Y,G,Q){Y=Y|0,G=G|0,Q||j(Y,G,this.length);for(var ye=this[Y],ce=1,Te=0;++Te<G&&(ce*=256);)ye+=this[Y+Te]*ce;return ye},c.prototype.readUIntBE=function(Y,G,Q){Y=Y|0,G=G|0,Q||j(Y,G,this.length);for(var ye=this[Y+--G],ce=1;G>0&&(ce*=256);)ye+=this[Y+--G]*ce;return ye},c.prototype.readUInt8=function(Y,G){return G||j(Y,1,this.length),this[Y]},c.prototype.readUInt16LE=function(Y,G){return G||j(Y,2,this.length),this[Y]|this[Y+1]<<8},c.prototype.readUInt16BE=function(Y,G){return G||j(Y,2,this.length),this[Y]<<8|this[Y+1]},c.prototype.readUInt32LE=function(Y,G){return G||j(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216},c.prototype.readUInt32BE=function(Y,G){return G||j(Y,4,this.length),this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},c.prototype.readIntLE=function(Y,G,Q){Y=Y|0,G=G|0,Q||j(Y,G,this.length);for(var ye=this[Y],ce=1,Te=0;++Te<G&&(ce*=256);)ye+=this[Y+Te]*ce;return ce*=128,ye>=ce&&(ye-=Math.pow(2,8*G)),ye},c.prototype.readIntBE=function(Y,G,Q){Y=Y|0,G=G|0,Q||j(Y,G,this.length);for(var ye=G,ce=1,Te=this[Y+--ye];ye>0&&(ce*=256);)Te+=this[Y+--ye]*ce;return ce*=128,Te>=ce&&(Te-=Math.pow(2,8*G)),Te},c.prototype.readInt8=function(Y,G){return G||j(Y,1,this.length),this[Y]&128?(255-this[Y]+1)*-1:this[Y]},c.prototype.readInt16LE=function(Y,G){G||j(Y,2,this.length);var Q=this[Y]|this[Y+1]<<8;return Q&32768?Q|4294901760:Q},c.prototype.readInt16BE=function(Y,G){G||j(Y,2,this.length);var Q=this[Y+1]|this[Y]<<8;return Q&32768?Q|4294901760:Q},c.prototype.readInt32LE=function(Y,G){return G||j(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},c.prototype.readInt32BE=function(Y,G){return G||j(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},c.prototype.readFloatLE=function(Y,G){return G||j(Y,4,this.length),C.read(this,Y,!0,23,4)},c.prototype.readFloatBE=function(Y,G){return G||j(Y,4,this.length),C.read(this,Y,!1,23,4)},c.prototype.readDoubleLE=function(Y,G){return G||j(Y,8,this.length),C.read(this,Y,!0,52,8)},c.prototype.readDoubleBE=function(Y,G){return G||j(Y,8,this.length),C.read(this,Y,!1,52,8)};function W(oe,Y,G,Q,ye,ce){if(!c.isBuffer(oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>ye||Y<ce)throw new RangeError('"value" argument is out of bounds');if(G+Q>oe.length)throw new RangeError("Index out of range")}c.prototype.writeUIntLE=function(Y,G,Q,ye){if(Y=+Y,G=G|0,Q=Q|0,!ye){var ce=Math.pow(2,8*Q)-1;W(this,Y,G,Q,ce,0)}var Te=1,Se=0;for(this[G]=Y&255;++Se<Q&&(Te*=256);)this[G+Se]=Y/Te&255;return G+Q},c.prototype.writeUIntBE=function(Y,G,Q,ye){if(Y=+Y,G=G|0,Q=Q|0,!ye){var ce=Math.pow(2,8*Q)-1;W(this,Y,G,Q,ce,0)}var Te=Q-1,Se=1;for(this[G+Te]=Y&255;--Te>=0&&(Se*=256);)this[G+Te]=Y/Se&255;return G+Q},c.prototype.writeUInt8=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,1,255,0),c.TYPED_ARRAY_SUPPORT||(Y=Math.floor(Y)),this[G]=Y&255,G+1};function V(oe,Y,G,Q){Y<0&&(Y=65535+Y+1);for(var ye=0,ce=Math.min(oe.length-G,2);ye<ce;++ye)oe[G+ye]=(Y&255<<8*(Q?ye:1-ye))>>>(Q?ye:1-ye)*8}c.prototype.writeUInt16LE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[G]=Y&255,this[G+1]=Y>>>8):V(this,Y,G,!0),G+2},c.prototype.writeUInt16BE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>8,this[G+1]=Y&255):V(this,Y,G,!1),G+2};function z(oe,Y,G,Q){Y<0&&(Y=4294967295+Y+1);for(var ye=0,ce=Math.min(oe.length-G,4);ye<ce;++ye)oe[G+ye]=Y>>>(Q?ye:3-ye)*8&255}c.prototype.writeUInt32LE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[G+3]=Y>>>24,this[G+2]=Y>>>16,this[G+1]=Y>>>8,this[G]=Y&255):z(this,Y,G,!0),G+4},c.prototype.writeUInt32BE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>24,this[G+1]=Y>>>16,this[G+2]=Y>>>8,this[G+3]=Y&255):z(this,Y,G,!1),G+4},c.prototype.writeIntLE=function(Y,G,Q,ye){if(Y=+Y,G=G|0,!ye){var ce=Math.pow(2,8*Q-1);W(this,Y,G,Q,ce-1,-ce)}var Te=0,Se=1,le=0;for(this[G]=Y&255;++Te<Q&&(Se*=256);)Y<0&&le===0&&this[G+Te-1]!==0&&(le=1),this[G+Te]=(Y/Se>>0)-le&255;return G+Q},c.prototype.writeIntBE=function(Y,G,Q,ye){if(Y=+Y,G=G|0,!ye){var ce=Math.pow(2,8*Q-1);W(this,Y,G,Q,ce-1,-ce)}var Te=Q-1,Se=1,le=0;for(this[G+Te]=Y&255;--Te>=0&&(Se*=256);)Y<0&&le===0&&this[G+Te+1]!==0&&(le=1),this[G+Te]=(Y/Se>>0)-le&255;return G+Q},c.prototype.writeInt8=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,1,127,-128),c.TYPED_ARRAY_SUPPORT||(Y=Math.floor(Y)),Y<0&&(Y=255+Y+1),this[G]=Y&255,G+1},c.prototype.writeInt16LE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[G]=Y&255,this[G+1]=Y>>>8):V(this,Y,G,!0),G+2},c.prototype.writeInt16BE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>8,this[G+1]=Y&255):V(this,Y,G,!1),G+2},c.prototype.writeInt32LE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[G]=Y&255,this[G+1]=Y>>>8,this[G+2]=Y>>>16,this[G+3]=Y>>>24):z(this,Y,G,!0),G+4},c.prototype.writeInt32BE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),c.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>24,this[G+1]=Y>>>16,this[G+2]=Y>>>8,this[G+3]=Y&255):z(this,Y,G,!1),G+4};function J(oe,Y,G,Q,ye,ce){if(G+Q>oe.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function q(oe,Y,G,Q,ye){return ye||J(oe,Y,G,4,34028234663852886e22,-34028234663852886e22),C.write(oe,Y,G,Q,23,4),G+4}c.prototype.writeFloatLE=function(Y,G,Q){return q(this,Y,G,!0,Q)},c.prototype.writeFloatBE=function(Y,G,Q){return q(this,Y,G,!1,Q)};function de(oe,Y,G,Q,ye){return ye||J(oe,Y,G,8,17976931348623157e292,-17976931348623157e292),C.write(oe,Y,G,Q,52,8),G+8}c.prototype.writeDoubleLE=function(Y,G,Q){return de(this,Y,G,!0,Q)},c.prototype.writeDoubleBE=function(Y,G,Q){return de(this,Y,G,!1,Q)},c.prototype.copy=function(Y,G,Q,ye){if(Q||(Q=0),!ye&&ye!==0&&(ye=this.length),G>=Y.length&&(G=Y.length),G||(G=0),ye>0&&ye<Q&&(ye=Q),ye===Q)return 0;if(Y.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(Q<0||Q>=this.length)throw new RangeError("sourceStart out of bounds");if(ye<0)throw new RangeError("sourceEnd out of bounds");ye>this.length&&(ye=this.length),Y.length-G<ye-Q&&(ye=Y.length-G+Q);var ce=ye-Q,Te;if(this===Y&&Q<G&&G<ye)for(Te=ce-1;Te>=0;--Te)Y[Te+G]=this[Te+Q];else if(ce<1e3||!c.TYPED_ARRAY_SUPPORT)for(Te=0;Te<ce;++Te)Y[Te+G]=this[Te+Q];else Uint8Array.prototype.set.call(Y,this.subarray(Q,Q+ce),G);return ce},c.prototype.fill=function(Y,G,Q,ye){if(typeof Y=="string"){if(typeof G=="string"?(ye=G,G=0,Q=this.length):typeof Q=="string"&&(ye=Q,Q=this.length),Y.length===1){var ce=Y.charCodeAt(0);ce<256&&(Y=ce)}if(ye!==void 0&&typeof ye!="string")throw new TypeError("encoding must be a string");if(typeof ye=="string"&&!c.isEncoding(ye))throw new TypeError("Unknown encoding: "+ye)}else typeof Y=="number"&&(Y=Y&255);if(G<0||this.length<G||this.length<Q)throw new RangeError("Out of range index");if(Q<=G)return this;G=G>>>0,Q=Q===void 0?this.length:Q>>>0,Y||(Y=0);var Te;if(typeof Y=="number")for(Te=G;Te<Q;++Te)this[Te]=Y;else{var Se=c.isBuffer(Y)?Y:He(new c(Y,ye).toString()),le=Se.length;for(Te=0;Te<Q-G;++Te)this[Te+G]=Se[Te%le]}return this};var ae=/[^+\/0-9A-Za-z-_]/g;function ve(oe){if(oe=_e(oe).replace(ae,""),oe.length<2)return"";for(;oe.length%4!==0;)oe=oe+"=";return oe}function _e(oe){return oe.trim?oe.trim():oe.replace(/^\s+|\s+$/g,"")}function Ie(oe){return oe<16?"0"+oe.toString(16):oe.toString(16)}function He(oe,Y){Y=Y||Infinity;for(var G,Q=oe.length,ye=null,ce=[],Te=0;Te<Q;++Te){if(G=oe.charCodeAt(Te),G>55295&&G<57344){if(!ye){if(G>56319){(Y-=3)>-1&&ce.push(239,191,189);continue}else if(Te+1===Q){(Y-=3)>-1&&ce.push(239,191,189);continue}ye=G;continue}if(G<56320){(Y-=3)>-1&&ce.push(239,191,189),ye=G;continue}G=(ye-55296<<10|G-56320)+65536}else ye&&((Y-=3)>-1&&ce.push(239,191,189));if(ye=null,G<128){if((Y-=1)<0)break;ce.push(G)}else if(G<2048){if((Y-=2)<0)break;ce.push(G>>6|192,G&63|128)}else if(G<65536){if((Y-=3)<0)break;ce.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((Y-=4)<0)break;ce.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return ce}function me(oe){for(var Y=[],G=0;G<oe.length;++G)Y.push(oe.charCodeAt(G)&255);return Y}function ke(oe,Y){for(var G,Q,ye,ce=[],Te=0;Te<oe.length&&!((Y-=2)<0);++Te)G=oe.charCodeAt(Te),Q=G>>8,ye=G%256,ce.push(ye),ce.push(Q);return ce}function se(oe){return x.toByteArray(ve(oe))}function te(oe,Y,G,Q){for(var ye=0;ye<Q&&!(ye+G>=Y.length||ye>=oe.length);++ye)Y[ye+G]=oe[ye];return ye}function Ge(oe){return oe!==oe}}).call(this,d("yLpj"))},"HF/U":function(H,k,d){var O=d("QBsz");function x(A){var b=A.coordinateSystem;if(b&&b.type!=="view")return;var g=A.getGraph();g.eachNode(function(f){var c=f.getModel();f.setLayout([+c.get("x"),+c.get("y")])}),C(g)}function C(A){A.eachEdge(function(b){var g=b.getModel().get("lineStyle.curveness")||0,f=O.clone(b.node1.getLayout()),c=O.clone(b.node2.getLayout()),o=[f,c];+g&&o.push([(f[0]+c[0])/2-(f[1]-c[1])*g,(f[1]+c[1])/2-(c[0]-f[0])*g]),b.setLayout(o)})}k.simpleLayout=x,k.simpleLayoutEdge=C},"HM/N":function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("/SeX"),b=d("OELB"),g=b.parsePercent,f=d("aX7z"),c=f.createScaleByModel,o=f.niceScaleExtent,r=d("IDmD"),i=d("7hqr"),n=i.getStackedDimension;d("ePAk");function e(s,u,h){var p=u.get("center"),m=h.getWidth(),v=h.getHeight();s.cx=g(p[0],m),s.cy=g(p[1],v);var y=s.getRadiusAxis(),E=Math.min(m,v)/2,T=u.get("radius");T==null?T=[0,"100%"]:C.isArray(T)||(T=[0,T]),T=[g(T[0],E),g(T[1],E)],y.inverse?y.setExtent(T[1],T[0]):y.setExtent(T[0],T[1])}function l(s,u){var h=this,p=h.getAngleAxis(),m=h.getRadiusAxis();if(p.scale.setExtent(Infinity,-Infinity),m.scale.setExtent(Infinity,-Infinity),s.eachSeries(function(E){if(E.coordinateSystem===h){var T=E.getData();C.each(T.mapDimension("radius",!0),function(w){m.scale.unionExtentFromData(T,n(T,w))}),C.each(T.mapDimension("angle",!0),function(w){p.scale.unionExtentFromData(T,n(T,w))})}}),o(p.scale,p.model),o(m.scale,m.model),p.type==="category"&&!p.onBand){var v=p.getExtent(),y=360/p.scale.count();p.inverse?v[1]+=y:v[1]-=y,p.setExtent(v[0],v[1])}}function t(s,u){if(s.type=u.get("type"),s.scale=c(u),s.onBand=u.get("boundaryGap")&&s.type==="category",s.inverse=u.get("inverse"),u.mainType==="angleAxis"){s.inverse^=u.get("clockwise");var h=u.get("startAngle");s.setExtent(h,h+(s.inverse?-360:360))}u.axis=s,s.model=u}var a={dimensions:A.prototype.dimensions,create:function(s,u){var h=[];return s.eachComponent("polar",function(p,m){var v=new A(m);v.update=l;var y=v.getRadiusAxis(),E=v.getAngleAxis(),T=p.findAxisModel("radiusAxis"),w=p.findAxisModel("angleAxis");t(y,T),t(E,w),e(v,p,u),h.push(v),p.coordinateSystem=v,v.model=p}),s.eachSeries(function(p){if(p.get("coordinateSystem")==="polar"){var m=s.queryComponents({mainType:"polar",index:p.get("polarIndex"),id:p.get("polarId")})[0];p.coordinateSystem=m.coordinateSystem}}),h}};r.register("polar",a)},HQEm:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("Sj0X"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},HjIi:function(H,k,d){var O=d("bYtY"),x=d("OELB"),C=x.parsePercent,A=d("7hqr"),b=A.isDimensionStacked;function g(i){return i.get("stack")||"__ec_stack_"+i.seriesIndex}function f(i,n){return n.dim+i.model.componentIndex}function c(i,n,e){var l={},t=o(O.filter(n.getSeriesByType(i),function(a){return!n.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));n.eachSeriesByType(i,function(a){if(a.coordinateSystem.type!=="polar")return;var s=a.getData(),u=a.coordinateSystem,h=u.getBaseAxis(),p=f(u,h),m=g(a),v=t[p][m],y=v.offset,E=v.width,T=u.getOtherAxis(h),w=a.coordinateSystem.cx,S=a.coordinateSystem.cy,_=a.get("barMinHeight")||0,I=a.get("barMinAngle")||0;l[m]=l[m]||[];for(var L=s.mapDimension(T.dim),N=s.mapDimension(h.dim),R=b(s,L),D=h.dim!=="radius"||!a.get("roundCap",!0),F=T.getExtent()[0],M=0,U=s.count();M<U;M++){var B=s.get(L,M),j=s.get(N,M),W=B>=0?"p":"n",V=F;R&&(l[m][j]||(l[m][j]={p:F,n:F}),V=l[m][j][W]);var z,J,q,de;if(T.dim==="radius"){var ae=T.dataToRadius(B)-F,ve=h.dataToAngle(j);Math.abs(ae)<_&&(ae=(ae<0?-1:1)*_),z=V,J=V+ae,q=ve-y,de=q-E,R&&(l[m][j][W]=J)}else{var _e=T.dataToAngle(B,D)-F,Ie=h.dataToRadius(j);Math.abs(_e)<I&&(_e=(_e<0?-1:1)*I),z=Ie+y,J=z+E,q=V,de=V+_e,R&&(l[m][j][W]=de)}s.setItemLayout(M,{cx:w,cy:S,r0:z,r:J,startAngle:-q*Math.PI/180,endAngle:-de*Math.PI/180})}},this)}function o(i,n){var e={};O.each(i,function(t,a){var s=t.getData(),u=t.coordinateSystem,h=u.getBaseAxis(),p=f(u,h),m=h.getExtent(),v=h.type==="category"?h.getBandWidth():Math.abs(m[1]-m[0])/s.count(),y=e[p]||{bandWidth:v,remainedWidth:v,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},E=y.stacks;e[p]=y;var T=g(t);E[T]||y.autoWidthCount++,E[T]=E[T]||{width:0,maxWidth:0};var w=C(t.get("barWidth"),v),S=C(t.get("barMaxWidth"),v),_=t.get("barGap"),I=t.get("barCategoryGap");w&&!E[T].width&&(w=Math.min(y.remainedWidth,w),E[T].width=w,y.remainedWidth-=w),S&&(E[T].maxWidth=S),_!=null&&(y.gap=_),I!=null&&(y.categoryGap=I)});var l={};return O.each(e,function(t,a){l[a]={};var s=t.stacks,u=t.bandWidth,h=C(t.categoryGap,u),p=C(t.gap,1),m=t.remainedWidth,v=t.autoWidthCount,y=(m-h)/(v+(v-1)*p);y=Math.max(y,0),O.each(s,function(S,_){var I=S.maxWidth;I&&I<y&&(I=Math.min(I,m),S.width&&(I=Math.min(I,S.width)),m-=I,S.width=I,v--)}),y=(m-h)/(v+(v-1)*p),y=Math.max(y,0);var E=0,T;O.each(s,function(S,_){S.width||(S.width=y),T=S,E+=S.width*(1+p)}),T&&(E-=T.width*p);var w=-E/2;O.each(s,function(S,_){l[a][_]=l[a][_]||{offset:w,width:S.width},w+=S.width*(1+p)})}),l}var r=c;H.exports=r},HjOm:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.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"},x=O;k.default=x},Hw7h:function(H,k,d){var O=d("y+Vt"),x=O.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(C,A){var b=Math.cos,g=Math.sin,f=A.r,c=A.width,o=A.angle,r=A.x-b(o)*c*(c>=f/3?1:2),i=A.y-g(o)*c*(c>=f/3?1:2);o=A.angle-Math.PI/2,C.moveTo(r,i),C.lineTo(A.x+b(o)*c,A.y+g(o)*c),C.lineTo(A.x+b(A.angle)*f,A.y+g(A.angle)*f),C.lineTo(A.x-b(o)*c,A.y-g(o)*c),C.lineTo(r,i);return}});H.exports=x},Hxpc:function(H,k,d){var O=d("bYtY"),x=d("4NO4"),C=d("bLfw"),A=d("Qxkt"),b=d("cCMj"),g=d("7uqq"),f=C.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(o){C.prototype.init.apply(this,arguments),x.defaultEmphasis(o,"label",["show"])},optionUpdated:function(){var o=this.option,r=this;o.regions=g.getFilledRegions(o.regions,o.map,o.nameMap),this._optionModelMap=O.reduce(o.regions||[],function(i,n){return n.name&&i.set(n.name,new A(n,r)),i},O.createHashMap()),this.updateSelectedMap(o.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(o){return this._optionModelMap.get(o)||new A(null,this,this.ecModel)},getFormattedLabel:function(o,r){var i=this.getRegionModel(o),n=i.get("label"+(r==="normal"?".":r+".")+"formatter"),e={name:o};if(typeof n=="function")return e.status=r,n(e);if(typeof n=="string")return n.replace("{a}",o!=null?o:"")},setZoom:function(o){this.option.zoom=o},setCenter:function(o){this.option.center=o}});O.mixin(f,b);var c=f;H.exports=c},"I+77":function(H,k,d){var O=d("ProS");d("h54F"),d("lwQL"),d("10cm");var x=d("Z1r0"),C=d("f5Yq"),A=d("KUOm"),b=d("3m61"),g=d("01d+"),f=d("rdor"),c=d("WGYa"),o=d("ewwo");O.registerProcessor(x),O.registerVisual(C("graph","circle",null)),O.registerVisual(A),O.registerVisual(b),O.registerLayout(g),O.registerLayout(O.PRIORITY.VISUAL.POST_CHART_LAYOUT,f),O.registerLayout(c),O.registerCoordinateSystem("graphView",{create:o})},"I+Bx":function(H,k,d){var O=d("bYtY"),x=d("eIcI"),C=d("ieMj"),A=d("OELB"),b=d("aX7z"),g=b.getScaleExtent,f=b.niceScaleExtent,c=d("IDmD"),o=d("jCoz");function r(n,e,l){this._model=n,this.dimensions=[],this._indicatorAxes=O.map(n.getIndicatorModels(),function(t,a){var s="indicator_"+a,u=new x(s,t.get("axisType")==="log"?new o:new C);return u.name=t.get("name"),u.model=t,t.axis=u,this.dimensions.push(s),u},this),this.resize(n,l),this.cx,this.cy,this.r,this.r0,this.startAngle}r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(n,e){var l=this._indicatorAxes[e];return this.coordToPoint(l.dataToCoord(n),e)},r.prototype.coordToPoint=function(n,e){var l=this._indicatorAxes[e],t=l.angle,a=this.cx+n*Math.cos(t),s=this.cy-n*Math.sin(t);return[a,s]},r.prototype.pointToData=function(n){var e=n[0]-this.cx,l=n[1]-this.cy,t=Math.sqrt(e*e+l*l);e/=t,l/=t;for(var a=Math.atan2(-l,e),s=Infinity,u,h=-1,p=0;p<this._indicatorAxes.length;p++){var m=this._indicatorAxes[p],v=Math.abs(a-m.angle);v<s&&(u=m,h=p,s=v)}return[h,+(u&&u.coordToData(t))]},r.prototype.resize=function(n,e){var l=n.get("center"),t=e.getWidth(),a=e.getHeight(),s=Math.min(t,a)/2;this.cx=A.parsePercent(l[0],t),this.cy=A.parsePercent(l[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=A.parsePercent(u[0],s),this.r=A.parsePercent(u[1],s),O.each(this._indicatorAxes,function(h,p){h.setExtent(this.r0,this.r);var m=this.startAngle+p*Math.PI*2/this._indicatorAxes.length;m=Math.atan2(Math.sin(m),Math.cos(m)),h.angle=m},this)},r.prototype.update=function(n,e){var l=this._indicatorAxes,t=this._model;O.each(l,function(u){u.scale.setExtent(Infinity,-Infinity)}),n.eachSeriesByType("radar",function(u,h){if(u.get("coordinateSystem")!=="radar"||n.getComponent("radar",u.get("radarIndex"))!==t)return;var p=u.getData();O.each(l,function(m){m.scale.unionExtentFromData(p,p.mapDimension(m.dim))})},this);var a=t.get("splitNumber");function s(u){var h=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),p=u/h;return p===2?p=5:p*=2,p*h}O.each(l,function(u,h){var p=g(u.scale,u.model).extent;f(u.scale,u.model);var m=u.model,v=u.scale,y=m.getMin(),E=m.getMax(),T=v.getInterval();if(y!=null&&E!=null)v.setExtent(+y,+E),v.setInterval((E-y)/a);else if(y!=null){var w;do w=y+T*a,v.setExtent(+y,w),v.setInterval(T),T=s(T);while(w<p[1]&&isFinite(w)&&isFinite(p[1]))}else if(E!=null){var S;do S=E-T*a,v.setExtent(S,+E),v.setInterval(T),T=s(T);while(S>p[0]&&isFinite(S)&&isFinite(p[0]))}else{var _=v.getTicks().length-1;_>a&&(T=s(T));var w=Math.ceil(p[1]/T)*T,S=A.round(w-T*a);v.setExtent(S,w),v.setInterval(T)}})},r.dimensions=[],r.create=function(n,e){var l=[];return n.eachComponent("radar",function(t){var a=new r(t,n,e);l.push(a),t.coordinateSystem=a}),n.eachSeriesByType("radar",function(t){t.get("coordinateSystem")==="radar"&&(t.coordinateSystem=l[t.get("radarIndex")||0])}),l},c.register("radar",r);var i=r;H.exports=i},"I3/A":function(H,k,d){var O=d("bYtY"),x=d("YXkt"),C=d("c2i1"),A=d("Mdki"),b=d("sdST"),g=d("IDmD"),f=d("MwEJ");function c(o,r,i,n,e){for(var l=new C(n),t=0;t<o.length;t++)l.addNode(O.retrieve(o[t].id,o[t].name,t),t);for(var a=[],s=[],u=0,t=0;t<r.length;t++){var h=r[t],p=h.source,m=h.target;l.addEdge(p,m,u)&&(s.push(h),a.push(O.retrieve(h.id,p+" > "+m)),u++)}var v=i.get("coordinateSystem"),y;if(v==="cartesian2d"||v==="polar")y=f(o,i);else{var E=g.get(v),T=E&&E.type!=="view"?E.dimensions||[]:[];O.indexOf(T,"value")<0&&T.concat(["value"]);var w=b(o,{coordDimensions:T});y=new x(w,i),y.initData(o)}var S=new x(["value"],i);return S.initData(s,a),e&&e(y,S),A({mainData:y,struct:l,structAttr:"graph",datas:{node:y,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),l.update(),l}H.exports=c},I8Z2:function(H,k,d){"use strict";d.d(k,"a",function(){return A}),d.d(k,"b",function(){return e}),d.d(k,"c",function(){return t});var O=d("q1tI"),x=function(){var a=function(u,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var v in m)m.hasOwnProperty(v)&&(p[v]=m[v])},a(u,h)};return function(s,u){a(s,u);function h(){this.constructor=s}s.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),C=O.createContext(null),A=function(a){x(s,a);function s(){return a!==null&&a.apply(this,arguments)||this}return s.prototype.render=function(){return O.createElement(C.Provider,{value:this.props.store},this.props.children)},s}(O.Component),b=d("Gytx"),g=d.n(b),f=d("2mql"),c=d.n(f),o=function(){var a=function(u,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,m){p.__proto__=m}||function(p,m){for(var v in m)m.hasOwnProperty(v)&&(p[v]=m[v])},a(u,h)};return function(s,u){a(s,u);function h(){this.constructor=s}s.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}}(),r=function(){return r=Object.assign||function(a){for(var s,u=1,h=arguments.length;u<h;u++){s=arguments[u];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(a[p]=s[p])}return a},r.apply(this,arguments)};function i(a){return a.displayName||a.name||"Component"}var n=function(){return{}};function e(a,s){s===void 0&&(s={});var u=!!a,h=a||n;return function(m){var v=function(E){o(T,E);function T(w,S){var _=E.call(this,w,S)||this;return _.unsubscribe=null,_.handleChange=function(){if(!_.unsubscribe)return;var I=h(_.store.getState(),_.props);_.setState({subscribed:I})},_.store=_.context,_.state={subscribed:h(_.store.getState(),w),store:_.store,props:w},_}return T.getDerivedStateFromProps=function(w,S){return a&&a.length===2&&w!==S.props?{subscribed:h(S.store.getState(),w),props:w}:{props:w}},T.prototype.componentDidMount=function(){this.trySubscribe()},T.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},T.prototype.shouldComponentUpdate=function(w,S){return!g()(this.props,w)||!g()(this.state.subscribed,S.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 w=r(r(r({},this.props),this.state.subscribed),{store:this.store});return O.createElement(m,r({},w,{ref:this.props.miniStoreForwardedRef}))},T.displayName="Connect("+i(m)+")",T.contextType=C,T}(O.Component);if(s.forwardRef){var y=O.forwardRef(function(E,T){return O.createElement(v,r({},E,{miniStoreForwardedRef:T}))});return c()(y,m)}return c()(v,m)}}var l=function(){return l=Object.assign||function(a){for(var s,u=1,h=arguments.length;u<h;u++){s=arguments[u];for(var p in s)Object.prototype.hasOwnProperty.call(s,p)&&(a[p]=s[p])}return a},l.apply(this,arguments)};function t(a){var s=a,u=[];function h(v){s=l(l({},s),v);for(var y=0;y<u.length;y++)u[y]()}function p(){return s}function m(v){return u.push(v),function(){var E=u.indexOf(v);u.splice(E,1)}}return{setState:h,getState:p,subscribe:m}}},"I9Y+":function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("4xFK")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="DoubleRightOutlined";var c=A.forwardRef(f);k.default=c},ICMv:function(H,k,d){var O=d("bYtY"),x={getMin:function(C){var A=this.option,b=!C&&A.rangeStart!=null?A.rangeStart:A.min;return this.axis&&b!=null&&b!=="dataMin"&&typeof b!="function"&&!O.eqNaN(b)&&(b=this.axis.scale.parse(b)),b},getMax:function(C){var A=this.option,b=!C&&A.rangeEnd!=null?A.rangeEnd:A.max;return this.axis&&b!=null&&b!=="dataMax"&&typeof b!="function"&&!O.eqNaN(b)&&(b=this.axis.scale.parse(b)),b},getNeedCrossZero:function(){var C=this.option;return C.rangeStart!=null||C.rangeEnd!=null?!1:!C.scale},getCoordSysModel:O.noop,setRange:function(C,A){this.option.rangeStart=C,this.option.rangeEnd=A},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};H.exports=x},IDmD:function(H,k,d){var O=d("bYtY"),x={};function C(){this._coordinateSystems=[]}C.prototype={constructor:C,create:function(b,g){var f=[];O.each(x,function(c,o){var r=c.create(b,g);f=f.concat(r||[])}),this._coordinateSystems=f},update:function(b,g){O.each(this._coordinateSystems,function(f){f.update&&f.update(b,g)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},C.register=function(b,g){x[b]=g},C.get=function(b){return x[b]};var A=C;H.exports=A},IMiH:function(H,k,d){var O=d("Sj9i"),x=d("QBsz"),C=d("4mN7"),A=d("mFDi"),b=d("LPTA"),g=b.devicePixelRatio,f={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],o=[],r=[],i=[],n=Math.min,e=Math.max,l=Math.cos,t=Math.sin,a=Math.sqrt,s=Math.abs,u=typeof Float32Array!="undefined",h=function(v){this._saveData=!(v||!1),this._saveData&&(this.data=[]),this._ctx=null};h.prototype={constructor:h,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(v,y,E){E=E||0,this._ux=s(E/g/v)||0,this._uy=s(E/g/y)||0},getContext:function(){return this._ctx},beginPath:function(v){return this._ctx=v,v&&v.beginPath(),v&&(this.dpr=v.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(v,y){return this.addData(f.M,v,y),this._ctx&&this._ctx.moveTo(v,y),this._x0=v,this._y0=y,this._xi=v,this._yi=y,this},lineTo:function(v,y){var E=s(v-this._xi)>this._ux||s(y-this._yi)>this._uy||this._len<5;return this.addData(f.L,v,y),this._ctx&&E&&(this._needsDash()?this._dashedLineTo(v,y):this._ctx.lineTo(v,y)),E&&(this._xi=v,this._yi=y),this},bezierCurveTo:function(v,y,E,T,w,S){return this.addData(f.C,v,y,E,T,w,S),this._ctx&&(this._needsDash()?this._dashedBezierTo(v,y,E,T,w,S):this._ctx.bezierCurveTo(v,y,E,T,w,S)),this._xi=w,this._yi=S,this},quadraticCurveTo:function(v,y,E,T){return this.addData(f.Q,v,y,E,T),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(v,y,E,T):this._ctx.quadraticCurveTo(v,y,E,T)),this._xi=E,this._yi=T,this},arc:function(v,y,E,T,w,S){return this.addData(f.A,v,y,E,E,T,w-T,0,S?0:1),this._ctx&&this._ctx.arc(v,y,E,T,w,S),this._xi=l(w)*E+v,this._yi=t(w)*E+y,this},arcTo:function(v,y,E,T,w){return this._ctx&&this._ctx.arcTo(v,y,E,T,w),this},rect:function(v,y,E,T){return this._ctx&&this._ctx.rect(v,y,E,T),this.addData(f.R,v,y,E,T),this},closePath:function(){this.addData(f.Z);var v=this._ctx,y=this._x0,E=this._y0;return v&&(this._needsDash()&&this._dashedLineTo(y,E),v.closePath()),this._xi=y,this._yi=E,this},fill:function(v){v&&v.fill(),this.toStatic()},stroke:function(v){v&&v.stroke(),this.toStatic()},setLineDash:function(v){if(v instanceof Array){this._lineDash=v,this._dashIdx=0;for(var y=0,E=0;E<v.length;E++)y+=v[E];this._dashSum=y}return this},setLineDashOffset:function(v){return this._dashOffset=v,this},len:function(){return this._len},setData:function(v){var y=v.length;!(this.data&&this.data.length===y)&&u&&(this.data=new Float32Array(y));for(var E=0;E<y;E++)this.data[E]=v[E];this._len=y},appendPath:function(v){v instanceof Array||(v=[v]);for(var y=v.length,E=0,T=this._len,w=0;w<y;w++)E+=v[w].len();u&&this.data instanceof Float32Array&&(this.data=new Float32Array(T+E));for(var w=0;w<y;w++)for(var S=v[w].data,_=0;_<S.length;_++)this.data[T++]=S[_];this._len=T},addData:function(v){if(!this._saveData)return;var y=this.data;this._len+arguments.length>y.length&&(this._expandData(),y=this.data);for(var E=0;E<arguments.length;E++)y[this._len++]=arguments[E];this._prevCmd=v},_expandData:function(){if(!(this.data instanceof Array)){for(var v=[],y=0;y<this._len;y++)v[y]=this.data[y];this.data=v}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(v,y){var E=this._dashSum,T=this._dashOffset,w=this._lineDash,S=this._ctx,_=this._xi,I=this._yi,L=v-_,N=y-I,R=a(L*L+N*N),D=_,F=I,M,U=w.length,B;for(L/=R,N/=R,T<0&&(T=E+T),T%=E,D-=T*L,F-=T*N;L>0&&D<=v||L<0&&D>=v||L===0&&(N>0&&F<=y||N<0&&F>=y);){if(B=this._dashIdx,M=w[B],D+=L*M,F+=N*M,this._dashIdx=(B+1)%U,L>0&&D<_||L<0&&D>_||N>0&&F<I||N<0&&F>I)continue;S[B%2?"moveTo":"lineTo"](L>=0?n(D,v):e(D,v),N>=0?n(F,y):e(F,y))}L=D-v,N=F-y,this._dashOffset=-a(L*L+N*N)},_dashedBezierTo:function(v,y,E,T,w,S){var _=this._dashSum,I=this._dashOffset,L=this._lineDash,N=this._ctx,R=this._xi,D=this._yi,F,M,U,B=O.cubicAt,j=0,W=this._dashIdx,V=L.length,z,J,q=0;for(I<0&&(I=_+I),I%=_,F=0;F<1;F+=.1)M=B(R,v,E,w,F+.1)-B(R,v,E,w,F),U=B(D,y,T,S,F+.1)-B(D,y,T,S,F),j+=a(M*M+U*U);for(;W<V&&!(q+=L[W],q>I);W++);for(F=(q-I)/j;F<=1;)z=B(R,v,E,w,F),J=B(D,y,T,S,F),W%2?N.moveTo(z,J):N.lineTo(z,J),F+=L[W]/j,W=(W+1)%V;W%2!==0&&N.lineTo(w,S),M=w-z,U=S-J,this._dashOffset=-a(M*M+U*U)},_dashedQuadraticTo:function(v,y,E,T){var w=E,S=T;E=(E+2*v)/3,T=(T+2*y)/3,v=(this._xi+2*v)/3,y=(this._yi+2*y)/3,this._dashedBezierTo(v,y,E,T,w,S)},toStatic:function(){var v=this.data;v instanceof Array&&(v.length=this._len,u&&(this.data=new Float32Array(v)))},getBoundingRect:function(){c[0]=c[1]=r[0]=r[1]=Number.MAX_VALUE,o[0]=o[1]=i[0]=i[1]=-Number.MAX_VALUE;for(var v=this.data,y=0,E=0,T=0,w=0,S=0;S<v.length;){var _=v[S++];S===1&&(y=v[S],E=v[S+1],T=y,w=E);switch(_){case f.M:T=v[S++],w=v[S++],y=T,E=w,r[0]=T,r[1]=w,i[0]=T,i[1]=w;break;case f.L:C.fromLine(y,E,v[S],v[S+1],r,i),y=v[S++],E=v[S++];break;case f.C:C.fromCubic(y,E,v[S++],v[S++],v[S++],v[S++],v[S],v[S+1],r,i),y=v[S++],E=v[S++];break;case f.Q:C.fromQuadratic(y,E,v[S++],v[S++],v[S],v[S+1],r,i),y=v[S++],E=v[S++];break;case f.A:var I=v[S++],L=v[S++],N=v[S++],R=v[S++],D=v[S++],F=v[S++]+D;S+=1;var M=1-v[S++];S===1&&(T=l(D)*N+I,w=t(D)*R+L),C.fromArc(I,L,N,R,D,F,M,r,i),y=l(F)*N+I,E=t(F)*R+L;break;case f.R:T=y=v[S++],w=E=v[S++];var U=v[S++],B=v[S++];C.fromLine(T,w,T+U,w+B,r,i);break;case f.Z:y=T,E=w;break}x.min(c,c,r),x.max(o,o,i)}return S===0&&(c[0]=c[1]=o[0]=o[1]=0),new A(c[0],c[1],o[0]-c[0],o[1]-c[1])},rebuildPath:function(v){for(var y=this.data,E,T,w,S,_,I,L=this._ux,N=this._uy,R=this._len,D=0;D<R;){var F=y[D++];D===1&&(w=y[D],S=y[D+1],E=w,T=S);switch(F){case f.M:E=w=y[D++],T=S=y[D++],v.moveTo(w,S);break;case f.L:_=y[D++],I=y[D++],(s(_-w)>L||s(I-S)>N||D===R-1)&&(v.lineTo(_,I),w=_,S=I);break;case f.C:v.bezierCurveTo(y[D++],y[D++],y[D++],y[D++],y[D++],y[D++]),w=y[D-2],S=y[D-1];break;case f.Q:v.quadraticCurveTo(y[D++],y[D++],y[D++],y[D++]),w=y[D-2],S=y[D-1];break;case f.A:var M=y[D++],U=y[D++],B=y[D++],j=y[D++],W=y[D++],V=y[D++],z=y[D++],J=y[D++],q=B>j?B:j,de=B>j?1:B/j,ae=B>j?j/B:1,ve=Math.abs(B-j)>.001,_e=W+V;ve?(v.translate(M,U),v.rotate(z),v.scale(de,ae),v.arc(0,0,q,W,_e,1-J),v.scale(1/de,1/ae),v.rotate(-z),v.translate(-M,-U)):v.arc(M,U,q,W,_e,1-J),D===1&&(E=l(W)*B+M,T=t(W)*j+U),w=l(_e)*B+M,S=t(_e)*j+U;break;case f.R:E=w=y[D],T=S=y[D+1],v.rect(y[D++],y[D++],y[D++],y[D++]);break;case f.Z:v.closePath(),w=E,S=T}}}},h.CMD=f;var p=h;H.exports=p},IUWy:function(H,k){var d={};function O(C,A){d[C]=A}function x(C){return d[C]}k.register=O,k.get=x},IWNH:function(H,k,d){var O=d("T4UG"),x=d("Bsck"),C=d("7aKB"),A=C.encodeHTML,b=d("Qxkt"),g=O.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(f){var c={name:f.name,children:f.data},o=f.leaves||{},r=new b(o,this,this.ecModel),i=x.createTree(c,this,{},n);function n(a){a.wrapMethod("getItemModel",function(s,u){var h=i.getNodeByDataIndex(u);return(!h.children.length||!h.isExpand)&&(s.parentModel=r),s})}var e=0;i.eachNode("preorder",function(a){a.depth>e&&(e=a.depth)});var l=f.expandAndCollapse,t=l&&f.initialTreeDepth>=0?f.initialTreeDepth:e;return i.root.eachNode("preorder",function(a){var s=a.hostTree.data.getRawDataItem(a.dataIndex);a.isExpand=s&&s.collapsed!=null?!s.collapsed:a.depth<=t}),i.data},getOrient:function(){var f=this.get("orient");return f==="horizontal"?f="LR":f==="vertical"&&(f="TB"),f},setZoom:function(f){this.option.zoom=f},setCenter:function(f){this.option.center=f},formatTooltip:function(f){for(var c=this.getData().tree,o=c.root.children[0],r=c.getNodeByDataIndex(f),i=r.getValue(),n=r.name;r&&r!==o;)n=r.parentNode.name+"."+n,r=r.parentNode;return A(n+(isNaN(i)||i==null?"":" : "+i))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderColor:"#c23531",borderWidth:1.5},label:{show:!0,color:"#555"},leaves:{label:{show:!0}},animationEasing:"linear",animationDuration:700,animationDurationUpdate:1e3}});H.exports=g},IWp7:function(H,k,d){var O=d("bYtY"),x=d("OELB"),C=d("7aKB"),A=d("lE7J"),b=d("ieMj"),g=b.prototype,f=Math.ceil,c=Math.floor,o=1e3,r=o*60,i=r*60,n=i*24,e=function(s,u,h,p){for(;h<p;){var m=h+p>>>1;s[m][1]<u?h=m+1:p=m}return h},l=b.extend({type:"time",getLabel:function(s){var u=this._stepLvl,h=new Date(s);return C.formatTime(u[0],h,this.getSetting("useUTC"))},niceExtent:function(s){var u=this._extent;if(u[0]===u[1]&&(u[0]-=n,u[1]+=n),u[1]===-Infinity&&u[0]===Infinity){var h=new Date;u[1]=+new Date(h.getFullYear(),h.getMonth(),h.getDate()),u[0]=u[1]-n}this.niceTicks(s.splitNumber,s.minInterval,s.maxInterval);var p=this._interval;s.fixMin||(u[0]=x.round(c(u[0]/p)*p)),s.fixMax||(u[1]=x.round(f(u[1]/p)*p))},niceTicks:function(s,u,h){s=s||10;var p=this._extent,m=p[1]-p[0],v=m/s;u!=null&&v<u&&(v=u),h!=null&&v>h&&(v=h);var y=t.length,E=e(t,v,0,y),T=t[Math.min(E,y-1)],w=T[1];if(T[0]==="year"){var S=m/w,_=x.nice(S/s,!0);w*=_}var I=this.getSetting("useUTC")?0:new Date(+p[0]||+p[1]).getTimezoneOffset()*60*1e3,L=[Math.round(f((p[0]-I)/w)*w+I),Math.round(c((p[1]-I)/w)*w+I)];A.fixExtent(L,p),this._stepLvl=T,this._interval=w,this._niceExtent=L},parse:function(s){return+x.parseDate(s)}});O.each(["contain","normalize"],function(s){l.prototype[s]=function(u){return g[s].call(this,this.parse(u))}});var t=[["hh:mm:ss",o],["hh:mm:ss",o*5],["hh:mm:ss",o*10],["hh:mm:ss",o*15],["hh:mm:ss",o*30],[`hh:mm
MM-dd`,r],[`hh:mm
MM-dd`,r*5],[`hh:mm
MM-dd`,r*10],[`hh:mm
MM-dd`,r*15],[`hh:mm
MM-dd`,r*30],[`hh:mm
MM-dd`,i],[`hh:mm
MM-dd`,i*2],[`hh:mm
MM-dd`,i*6],[`hh:mm
MM-dd`,i*12],[`MM-dd
yyyy`,n],[`MM-dd
yyyy`,n*2],[`MM-dd
yyyy`,n*3],[`MM-dd
yyyy`,n*4],[`MM-dd
yyyy`,n*5],[`MM-dd
yyyy`,n*6],["week",n*7],[`MM-dd
yyyy`,n*10],["week",n*14],["week",n*21],["month",n*31],["week",n*42],["month",n*62],["week",n*70],["quarter",n*95],["month",n*31*4],["month",n*31*5],["half-year",n*380/2],["month",n*31*8],["month",n*31*10],["year",n*380]];l.create=function(s){return new l({useUTC:s.ecModel.get("useUTC")})};var a=l;H.exports=a},IXuL:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("MwEJ"),A=d("T4UG"),b=A.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(g,f){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}});H.exports=b},IXyC:function(H,k,d){var O=d("bYtY"),x=d("bLfw");d("3zoK");var C=x.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(){x.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(A){var b=this.option;A&&O.merge(b,A,!0),this._initDimensions()},contains:function(A,b){var g=A.get("parallelIndex");return g!=null&&b.getComponent("parallel",g)===this},setAxisExpand:function(A){O.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(b){A.hasOwnProperty(b)&&(this.option[b]=A[b])},this)},_initDimensions:function(){var A=this.dimensions=[],b=this.parallelAxisIndex=[],g=O.filter(this.dependentModels.parallelAxis,function(f){return(f.get("parallelIndex")||0)===this.componentIndex},this);O.each(g,function(f){A.push("dim"+f.get("dim")),b.push(f.componentIndex)})}});H.exports=C},Ib8C:function(H,k,d){(function(O){(function(x,C){H.exports=k=C()})(this,function(){var x=x||function(C,A){var b;if(typeof window!="undefined"&&window.crypto&&(b=window.crypto),typeof self!="undefined"&&self.crypto&&(b=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(b=globalThis.crypto),!b&&typeof window!="undefined"&&window.msCrypto&&(b=window.msCrypto),!b&&typeof O!="undefined"&&O.crypto&&(b=O.crypto),!b&&!0)try{b=d(4)}catch(h){}var g=function(){if(b){if(typeof b.getRandomValues=="function")try{return b.getRandomValues(new Uint32Array(1))[0]}catch(p){}if(typeof b.randomBytes=="function")try{return b.randomBytes(4).readInt32LE()}catch(p){}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function h(){}return function(p){var m;return h.prototype=p,m=new h,h.prototype=null,m}}(),c={},o=c.lib={},r=o.Base=function(){return{extend:function(p){var m=f(this);return p&&m.mixIn(p),(!m.hasOwnProperty("init")||this.init===m.init)&&(m.init=function(){m.$super.init.apply(this,arguments)}),m.init.prototype=m,m.$super=this,m},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var m in p)p.hasOwnProperty(m)&&(this[m]=p[m]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),i=o.WordArray=r.extend({init:function(p,m){p=this.words=p||[],m!=A?this.sigBytes=m:this.sigBytes=p.length*4},toString:function(p){return(p||e).stringify(this)},concat:function(p){var m=this.words,v=p.words,y=this.sigBytes,E=p.sigBytes;if(this.clamp(),y%4)for(var T=0;T<E;T++){var w=v[T>>>2]>>>24-T%4*8&255;m[y+T>>>2]|=w<<24-(y+T)%4*8}else for(var S=0;S<E;S+=4)m[y+S>>>2]=v[S>>>2];return this.sigBytes+=E,this},clamp:function(){var p=this.words,m=this.sigBytes;p[m>>>2]&=4294967295<<32-m%4*8,p.length=C.ceil(m/4)},clone:function(){var p=r.clone.call(this);return p.words=this.words.slice(0),p},random:function(p){for(var m=[],v=0;v<p;v+=4)m.push(g());return new i.init(m,p)}}),n=c.enc={},e=n.Hex={stringify:function(p){for(var m=p.words,v=p.sigBytes,y=[],E=0;E<v;E++){var T=m[E>>>2]>>>24-E%4*8&255;y.push((T>>>4).toString(16)),y.push((T&15).toString(16))}return y.join("")},parse:function(p){for(var m=p.length,v=[],y=0;y<m;y+=2)v[y>>>3]|=parseInt(p.substr(y,2),16)<<24-y%8*4;return new i.init(v,m/2)}},l=n.Latin1={stringify:function(p){for(var m=p.words,v=p.sigBytes,y=[],E=0;E<v;E++){var T=m[E>>>2]>>>24-E%4*8&255;y.push(String.fromCharCode(T))}return y.join("")},parse:function(p){for(var m=p.length,v=[],y=0;y<m;y++)v[y>>>2]|=(p.charCodeAt(y)&255)<<24-y%4*8;return new i.init(v,m)}},t=n.Utf8={stringify:function(p){try{return decodeURIComponent(escape(l.stringify(p)))}catch(m){throw new Error("Malformed UTF-8 data")}},parse:function(p){return l.parse(unescape(encodeURIComponent(p)))}},a=o.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new i.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 m,v=this._data,y=v.words,E=v.sigBytes,T=this.blockSize,w=T*4,S=E/w;p?S=C.ceil(S):S=C.max((S|0)-this._minBufferSize,0);var _=S*T,I=C.min(_*4,E);if(_){for(var L=0;L<_;L+=T)this._doProcessBlock(y,L);m=y.splice(0,_),v.sigBytes-=I}return new i.init(m,I)},clone:function(){var p=r.clone.call(this);return p._data=this._data.clone(),p},_minBufferSize:0}),s=o.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 m=this._doFinalize();return m},blockSize:512/32,_createHelper:function(p){return function(m,v){return new p.init(v).finalize(m)}},_createHmacHelper:function(p){return function(m,v){return new u.HMAC.init(p,v).finalize(m)}}}),u=c.algo={};return c}(Math);return x})}).call(this,d("yLpj"))},ItGF:function(H,k){var d={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?d={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?d={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?d={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:d=x(navigator.userAgent);var O=d;function x(C){var A={},b={},g=C.match(/Firefox\/([\d.]+)/),f=C.match(/MSIE\s([\d.]+)/)||C.match(/Trident\/.+?rv:(([\d.]+))/),c=C.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(C);return g&&(b.firefox=!0,b.version=g[1]),f&&(b.ie=!0,b.version=f[1]),c&&(b.edge=!0,b.version=c[1]),o&&(b.weChat=!0),{browser:b,os:A,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!b.ie&&!b.edge,pointerEventsSupported:"onpointerdown"in window&&(b.edge||b.ie&&b.version>=11),domSupported:typeof document!="undefined"}}H.exports=O},ItS6:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=d("eP3c"),x=C(d("1q3G"));function C(c){return c&&c.__esModule?c:{default:c}}function A(c,o){if(!(c instanceof o))throw new TypeError("Cannot call a class as a function")}function b(c,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(c,i.key,i)}}function g(c,o,r){return o&&b(c.prototype,o),r&&b(c,r),c}var f=function(){function c(){A(this,c),this.strm=new x.default,this.chunkSize=1024*10*10,this.strm.output=new Uint8Array(this.chunkSize),this.windowBits=5,(0,O.inflateInit)(this.strm,this.windowBits)}return g(c,[{key:"setInput",value:function(r){r?(this.strm.input=r,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0):(this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0)}},{key:"inflate",value:function(r){r>this.chunkSize&&(this.chunkSize=r,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=r;var i=(0,O.inflate)(this.strm,0);if(i<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=r)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}},{key:"reset",value:function(){(0,O.inflateReset)(this.strm)}}]),c}();k.default=f},Itpr:function(H,k,d){var O=d("+TT/");function x(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var a=[t],s,u;s=a.pop();)if(u=s.children,s.isExpand&&u.length)for(var h=u.length,p=h-1;p>=0;p--){var m=u[p];m.hierNode={defaultAncestor:null,ancestor:m,prelim:0,modifier:0,change:0,shift:0,i:p,thread:null},a.push(m)}}function C(t,a){var s=t.isExpand?t.children:[],u=t.parentNode.children,h=t.hierNode.i?u[t.hierNode.i-1]:null;if(s.length){c(t);var p=(s[0].hierNode.prelim+s[s.length-1].hierNode.prelim)/2;h?(t.hierNode.prelim=h.hierNode.prelim+a(t,h),t.hierNode.modifier=t.hierNode.prelim-p):t.hierNode.prelim=p}else h&&(t.hierNode.prelim=h.hierNode.prelim+a(t,h));t.parentNode.hierNode.defaultAncestor=o(t,h,t.parentNode.hierNode.defaultAncestor||u[0],a)}function A(t){var a=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:a},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function b(t){return arguments.length?t:l}function g(t,a){var s={};return t-=Math.PI/2,s.x=a*Math.cos(t),s.y=a*Math.sin(t),s}function f(t,a){return O.getLayoutRect(t.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function c(t){for(var a=t.children,s=a.length,u=0,h=0;--s>=0;){var p=a[s];p.hierNode.prelim+=u,p.hierNode.modifier+=u,h+=p.hierNode.change,u+=p.hierNode.shift+h}}function o(t,a,s,u){if(a){for(var h=t,p=t,m=p.parentNode.children[0],v=a,y=h.hierNode.modifier,E=p.hierNode.modifier,T=m.hierNode.modifier,w=v.hierNode.modifier;v=r(v),p=i(p),v&&p;){h=r(h),m=i(m),h.hierNode.ancestor=t;var S=v.hierNode.prelim+w-p.hierNode.prelim-E+u(v,p);S>0&&(e(n(v,t,s),t,S),E+=S,y+=S),w+=v.hierNode.modifier,E+=p.hierNode.modifier,y+=h.hierNode.modifier,T+=m.hierNode.modifier}v&&!r(h)&&(h.hierNode.thread=v,h.hierNode.modifier+=w-y),p&&!i(m)&&(m.hierNode.thread=p,m.hierNode.modifier+=E-T,s=t)}return s}function r(t){var a=t.children;return a.length&&t.isExpand?a[a.length-1]:t.hierNode.thread}function i(t){var a=t.children;return a.length&&t.isExpand?a[0]:t.hierNode.thread}function n(t,a,s){return t.hierNode.ancestor.parentNode===a.parentNode?t.hierNode.ancestor:s}function e(t,a,s){var u=s/(a.hierNode.i-t.hierNode.i);a.hierNode.change-=u,a.hierNode.shift+=s,a.hierNode.modifier+=s,a.hierNode.prelim+=s,t.hierNode.change+=u}function l(t,a){return t.parentNode===a.parentNode?1:2}k.init=x,k.firstWalk=C,k.secondWalk=A,k.separation=b,k.radialCoordinate=g,k.getViewRect=f},IwbS:function(H,k,d){var O=d("bYtY"),x=d("NC18"),C=d("Qe9p"),A=d("Fofx"),b=d("QBsz"),g=d("y+Vt"),f=d("DN4a"),c=d("Dagg");k.Image=c;var o=d("4fz+");k.Group=o;var r=d("dqUG");k.Text=r;var i=d("2fw6");k.Circle=i;var n=d("SqI9");k.Sector=n;var e=d("RXMa");k.Ring=e;var l=d("h7HQ");k.Polygon=l;var t=d("1Jh7");k.Polyline=t;var a=d("x6Kt");k.Rect=a;var s=d("yxFR");k.Line=s;var u=d("rA99");k.BezierCurve=u;var h=d("jTL6");k.Arc=h;var p=d("1MYJ");k.CompoundPath=p;var m=d("SKnc");k.LinearGradient=m;var v=d("3e3G");k.RadialGradient=v;var y=d("mFDi");k.BoundingRect=y;var E=d("OS9S");k.IncrementalDisplayable=E;var T=d("nPnh"),w=Math.max,S=Math.min,_={},I=1,L={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},N="emphasis",R="normal",D=1,F={},M={};function U(kt){return g.extend(kt)}function B(kt,st){return x.extendFromString(kt,st)}function j(kt,st){M[kt]=st}function W(kt){if(M.hasOwnProperty(kt))return M[kt]}function V(kt,st,Rr,on){var Sn=x.createFromString(kt,st);return Rr&&(on==="center"&&(Rr=J(Rr,Sn.getBoundingRect())),de(Sn,Rr)),Sn}function z(kt,st,Rr){var on=new c({style:{image:kt,x:st.x,y:st.y,width:st.width,height:st.height},onload:function(Sn){if(Rr==="center"){var zn={width:Sn.width,height:Sn.height};on.setStyle(J(st,zn))}}});return on}function J(kt,st){var Rr=st.width/st.height,on=kt.height*Rr,Sn;on<=kt.width?Sn=kt.height:(on=kt.width,Sn=on/Rr);var zn=kt.x+kt.width/2,Ii=kt.y+kt.height/2;return{x:zn-on/2,y:Ii-Sn/2,width:on,height:Sn}}var q=x.mergePath;function de(kt,st){if(!kt.applyTransform)return;var Rr=kt.getBoundingRect(),on=Rr.calculateTransform(st);kt.applyTransform(on)}function ae(kt){return T.subPixelOptimizeLine(kt.shape,kt.shape,kt.style),kt}function ve(kt){return T.subPixelOptimizeRect(kt.shape,kt.shape,kt.style),kt}var _e=T.subPixelOptimize;function Ie(kt){return kt!=null&&kt!=="none"}var He=O.createHashMap(),me=0;function ke(kt){if(typeof kt!="string")return kt;var st=He.get(kt);return st||(st=C.lift(kt,-.1),me<1e4&&(He.set(kt,st),me++)),st}function se(kt){if(!kt.__hoverStlDirty)return;kt.__hoverStlDirty=!1;var st=kt.__hoverStl;if(!st){kt.__cachedNormalStl=kt.__cachedNormalZ2=null;return}var Rr=kt.__cachedNormalStl={};kt.__cachedNormalZ2=kt.z2;var on=kt.style;for(var Sn in st)st[Sn]!=null&&(Rr[Sn]=on[Sn]);Rr.fill=on.fill,Rr.stroke=on.stroke}function te(kt){var st=kt.__hoverStl;if(!st||kt.__highlighted)return;var Rr=kt.__zr,on=kt.useHoverLayer&&Rr&&Rr.painter.type==="canvas";if(kt.__highlighted=on?"layer":"plain",kt.isGroup||!Rr&&kt.useHoverLayer)return;var Sn=kt,zn=kt.style;on&&(Sn=Rr.addHover(kt),zn=Sn.style),_t(zn),on||se(Sn),zn.extendFrom(st),Ge(zn,st,"fill"),Ge(zn,st,"stroke"),It(zn),on||(kt.dirty(!1),kt.z2+=I)}function Ge(kt,st,Rr){!Ie(st[Rr])&&Ie(kt[Rr])&&(kt[Rr]=ke(kt[Rr]))}function oe(kt){var st=kt.__highlighted;if(!st)return;if(kt.__highlighted=!1,kt.isGroup)return;if(st==="layer")kt.__zr&&kt.__zr.removeHover(kt);else{var Rr=kt.style,on=kt.__cachedNormalStl;on&&(_t(Rr),kt.setStyle(on),It(Rr));var Sn=kt.__cachedNormalZ2;Sn!=null&&kt.z2-Sn===I&&(kt.z2=Sn)}}function Y(kt,st,Rr){var on=R,Sn=R,zn;kt.__highlighted&&(on=N,zn=!0),st(kt,Rr),kt.__highlighted&&(Sn=N,zn=!0),kt.isGroup&&kt.traverse(function(Ii){!Ii.isGroup&&st(Ii,Rr)}),zn&&kt.__highDownOnUpdate&&kt.__highDownOnUpdate(on,Sn)}function G(kt,st){st=kt.__hoverStl=st!==!1&&(kt.hoverStyle||st||{}),kt.__hoverStlDirty=!0,kt.__highlighted&&(kt.__cachedNormalStl=null,oe(kt),te(kt))}function Q(kt){!Se(this,kt)&&!this.__highByOuter&&Y(this,te)}function ye(kt){!Se(this,kt)&&!this.__highByOuter&&Y(this,oe)}function ce(kt){this.__highByOuter|=1<<(kt||0),Y(this,te)}function Te(kt){!(this.__highByOuter&=~(1<<(kt||0)))&&Y(this,oe)}function Se(kt,st){return kt.__highDownSilentOnTouch&&st.zrByTouch}function le(kt,st){fe(kt,!0),Y(kt,G,st)}function fe(kt,st){var Rr=st===!1;if(kt.__highDownSilentOnTouch=kt.highDownSilentOnTouch,kt.__highDownOnUpdate=kt.highDownOnUpdate,!Rr||kt.__highDownDispatcher){var on=Rr?"off":"on";kt[on]("mouseover",Q)[on]("mouseout",ye),kt[on]("emphasis",ce)[on]("normal",Te),kt.__highByOuter=kt.__highByOuter||0,kt.__highDownDispatcher=!Rr}}function Ee(kt){return!!(kt&&kt.__highDownDispatcher)}function Ve(kt){var st=F[kt];return st==null&&D<=32&&(st=F[kt]=D++),st}function vt(kt,st,Rr,on,Sn,zn,Ii){Sn=Sn||_;var yn=Sn.labelFetcher,Nn=Sn.labelDataIndex,jt=Sn.labelDimIndex,At=Sn.labelProp,Re=Rr.getShallow("show"),Ke=on.getShallow("show"),Pe;(Re||Ke)&&(yn&&(Pe=yn.getFormattedLabel(Nn,"normal",null,jt,At)),Pe==null&&(Pe=O.isFunction(Sn.defaultText)?Sn.defaultText(Nn,Sn):Sn.defaultText));var at=Re?Pe:null,wt=Ke?O.retrieve2(yn?yn.getFormattedLabel(Nn,"emphasis",null,jt,At):null,Pe):null;(at!=null||wt!=null)&&(Oe(kt,Rr,zn,Sn),Oe(st,on,Ii,Sn,!0)),kt.text=at,st.text=wt}function et(kt,st,Rr){var on=kt.style;st&&(_t(on),kt.setStyle(st),It(on)),on=kt.__hoverStl,Rr&&on&&(_t(on),O.extend(on,Rr),It(on))}function Oe(kt,st,Rr,on,Sn){return Je(kt,st,on,Sn),Rr&&O.extend(kt,Rr),kt}function Tt(kt,st,Rr){var on={isRectText:!0},Sn;Rr===!1?Sn=!0:on.autoColor=Rr,Je(kt,st,on,Sn)}function Je(kt,st,Rr,on){if(Rr=Rr||_,Rr.isRectText){var Sn;Rr.getTextPosition?Sn=Rr.getTextPosition(st,on):(Sn=st.getShallow("position")||(on?null:"inside"),Sn==="outside"&&(Sn="top")),kt.textPosition=Sn,kt.textOffset=st.getShallow("offset");var zn=st.getShallow("rotate");zn!=null&&(zn*=Math.PI/180),kt.textRotation=zn,kt.textDistance=O.retrieve2(st.getShallow("distance"),on?null:5)}var Ii=st.ecModel,yn=Ii&&Ii.option.textStyle,Nn=St(st),jt;if(Nn){jt={};for(var At in Nn)if(Nn.hasOwnProperty(At)){var Re=st.getModel(["rich",At]);Mt(jt[At]={},Re,yn,Rr,on)}}return kt.rich=jt,Mt(kt,st,yn,Rr,on,!0),Rr.forceRich&&!Rr.textStyle&&(Rr.textStyle={}),kt}function St(kt){for(var st;kt&&kt!==kt.ecModel;){var Rr=(kt.option||_).rich;if(Rr){st=st||{};for(var on in Rr)Rr.hasOwnProperty(on)&&(st[on]=1)}kt=kt.parentModel}return st}function Mt(kt,st,Rr,on,Sn,zn){Rr=!Sn&&Rr||_,kt.textFill=er(st.getShallow("color"),on)||Rr.color,kt.textStroke=er(st.getShallow("textBorderColor"),on)||Rr.textBorderColor,kt.textStrokeWidth=O.retrieve2(st.getShallow("textBorderWidth"),Rr.textBorderWidth),Sn||(zn&&(kt.insideRollbackOpt=on,It(kt)),kt.textFill==null&&(kt.textFill=on.autoColor)),kt.fontStyle=st.getShallow("fontStyle")||Rr.fontStyle,kt.fontWeight=st.getShallow("fontWeight")||Rr.fontWeight,kt.fontSize=st.getShallow("fontSize")||Rr.fontSize,kt.fontFamily=st.getShallow("fontFamily")||Rr.fontFamily,kt.textAlign=st.getShallow("align"),kt.textVerticalAlign=st.getShallow("verticalAlign")||st.getShallow("baseline"),kt.textLineHeight=st.getShallow("lineHeight"),kt.textWidth=st.getShallow("width"),kt.textHeight=st.getShallow("height"),kt.textTag=st.getShallow("tag"),(!zn||!on.disableBox)&&(kt.textBackgroundColor=er(st.getShallow("backgroundColor"),on),kt.textPadding=st.getShallow("padding"),kt.textBorderColor=er(st.getShallow("borderColor"),on),kt.textBorderWidth=st.getShallow("borderWidth"),kt.textBorderRadius=st.getShallow("borderRadius"),kt.textBoxShadowColor=st.getShallow("shadowColor"),kt.textBoxShadowBlur=st.getShallow("shadowBlur"),kt.textBoxShadowOffsetX=st.getShallow("shadowOffsetX"),kt.textBoxShadowOffsetY=st.getShallow("shadowOffsetY")),kt.textShadowColor=st.getShallow("textShadowColor")||Rr.textShadowColor,kt.textShadowBlur=st.getShallow("textShadowBlur")||Rr.textShadowBlur,kt.textShadowOffsetX=st.getShallow("textShadowOffsetX")||Rr.textShadowOffsetX,kt.textShadowOffsetY=st.getShallow("textShadowOffsetY")||Rr.textShadowOffsetY}function er(kt,st){return kt!=="auto"?kt:st&&st.autoColor?st.autoColor:null}function It(kt){var st=kt.textPosition,Rr=kt.insideRollbackOpt,on;if(Rr&&kt.textFill==null){var Sn=Rr.autoColor,zn=Rr.isRectText,Ii=Rr.useInsideStyle,yn=Ii!==!1&&(Ii===!0||zn&&st&&typeof st=="string"&&st.indexOf("inside")>=0),Nn=!yn&&Sn!=null;(yn||Nn)&&(on={textFill:kt.textFill,textStroke:kt.textStroke,textStrokeWidth:kt.textStrokeWidth}),yn&&(kt.textFill="#fff",kt.textStroke==null&&(kt.textStroke=Sn,kt.textStrokeWidth==null&&(kt.textStrokeWidth=2))),Nn&&(kt.textFill=Sn)}kt.insideRollback=on}function _t(kt){var st=kt.insideRollback;st&&(kt.textFill=st.textFill,kt.textStroke=st.textStroke,kt.textStrokeWidth=st.textStrokeWidth,kt.insideRollback=null)}function Xe(kt,st){var Rr=st&&st.getModel("textStyle");return O.trim([kt.fontStyle||Rr&&Rr.getShallow("fontStyle")||"",kt.fontWeight||Rr&&Rr.getShallow("fontWeight")||"",(kt.fontSize||Rr&&Rr.getShallow("fontSize")||12)+"px",kt.fontFamily||Rr&&Rr.getShallow("fontFamily")||"sans-serif"].join(" "))}function ie(kt,st,Rr,on,Sn,zn){typeof Sn=="function"&&(zn=Sn,Sn=null);var Ii=on&&on.isAnimationEnabled();if(Ii){var yn=kt?"Update":"",Nn=on.getShallow("animationDuration"+yn),jt=on.getShallow("animationEasing"+yn),At=on.getShallow("animationDelay"+yn);typeof At=="function"&&(At=At(Sn,on.getAnimationDelayParams?on.getAnimationDelayParams(st,Sn):null)),typeof Nn=="function"&&(Nn=Nn(Sn)),Nn>0?st.animateTo(Rr,Nn,At||0,jt,zn,!!zn):(st.stopAnimation(),st.attr(Rr),zn&&zn())}else st.stopAnimation(),st.attr(Rr),zn&&zn()}function X(kt,st,Rr,on,Sn){ie(!0,kt,st,Rr,on,Sn)}function Be(kt,st,Rr,on,Sn){ie(!1,kt,st,Rr,on,Sn)}function Ce(kt,st){for(var Rr=A.identity([]);kt&&kt!==st;)A.mul(Rr,kt.getLocalTransform(),Rr),kt=kt.parent;return Rr}function Z(kt,st,Rr){return st&&!O.isArrayLike(st)&&(st=f.getLocalTransform(st)),Rr&&(st=A.invert([],st)),b.applyTransform([],kt,st)}function nt(kt,st,Rr){var on=st[4]===0||st[5]===0||st[0]===0?1:Math.abs(2*st[4]/st[0]),Sn=st[4]===0||st[5]===0||st[2]===0?1:Math.abs(2*st[4]/st[2]),zn=[kt==="left"?-on:kt==="right"?on:0,kt==="top"?-Sn:kt==="bottom"?Sn:0];return zn=Z(zn,st,Rr),Math.abs(zn[0])>Math.abs(zn[1])?zn[0]>0?"right":"left":zn[1]>0?"bottom":"top"}function ct(kt,st,Rr,on){if(!kt||!st)return;function Sn(yn){var Nn={};return yn.traverse(function(jt){!jt.isGroup&&jt.anid&&(Nn[jt.anid]=jt)}),Nn}function zn(yn){var Nn={position:b.clone(yn.position),rotation:yn.rotation};return yn.shape&&(Nn.shape=O.extend({},yn.shape)),Nn}var Ii=Sn(kt);st.traverse(function(yn){if(!yn.isGroup&&yn.anid){var Nn=Ii[yn.anid];if(Nn){var jt=zn(yn);yn.attr(zn(Nn)),X(yn,jt,Rr,yn.dataIndex)}}})}function Qe(kt,st){return O.map(kt,function(Rr){var on=Rr[0];on=w(on,st.x),on=S(on,st.x+st.width);var Sn=Rr[1];return Sn=w(Sn,st.y),Sn=S(Sn,st.y+st.height),[on,Sn]})}function dt(kt,st){var Rr=w(kt.x,st.x),on=S(kt.x+kt.width,st.x+st.width),Sn=w(kt.y,st.y),zn=S(kt.y+kt.height,st.y+st.height);if(on>=Rr&&zn>=Sn)return{x:Rr,y:Sn,width:on-Rr,height:zn-Sn}}function Ft(kt,st,Rr){st=O.extend({rectHover:!0},st);var on=st.style={strokeNoScale:!0};if(Rr=Rr||{x:-1,y:-1,width:2,height:2},kt)return kt.indexOf("image://")===0?(on.image=kt.slice(8),O.defaults(on,Rr),new c(st)):V(kt.replace("path://",""),st,Rr,"center")}function Lr(kt,st,Rr,on,Sn){for(var zn=0,Ii=Sn[Sn.length-1];zn<Sn.length;zn++){var yn=Sn[zn];if(Wt(kt,st,Rr,on,yn[0],yn[1],Ii[0],Ii[1]))return!0;Ii=yn}}function Wt(kt,st,Rr,on,Sn,zn,Ii,yn){var Nn=Rr-kt,jt=on-st,At=Ii-Sn,Re=yn-zn,Ke=ar(At,Re,Nn,jt);if(Ut(Ke))return!1;var Pe=kt-Sn,at=st-zn,wt=ar(Pe,at,Nn,jt)/Ke;if(wt<0||wt>1)return!1;var Rt=ar(Pe,at,At,Re)/Ke;return!(Rt<0||Rt>1)}function ar(kt,st,Rr,on){return kt*on-Rr*st}function Ut(kt){return kt<=1e-6&&kt>=-1e-6}j("circle",i),j("sector",n),j("ring",e),j("polygon",l),j("polyline",t),j("rect",a),j("line",s),j("bezierCurve",u),j("arc",h),k.Z2_EMPHASIS_LIFT=I,k.CACHED_LABEL_STYLE_PROPERTIES=L,k.extendShape=U,k.extendPath=B,k.registerShape=j,k.getShapeClass=W,k.makePath=V,k.makeImage=z,k.mergePath=q,k.resizePath=de,k.subPixelOptimizeLine=ae,k.subPixelOptimizeRect=ve,k.subPixelOptimize=_e,k.setElementHoverStyle=G,k.setHoverStyle=le,k.setAsHighDownDispatcher=fe,k.isHighDownDispatcher=Ee,k.getHighlightDigit=Ve,k.setLabelStyle=vt,k.modifyLabelStyle=et,k.setTextStyle=Oe,k.setText=Tt,k.getFont=Xe,k.updateProps=X,k.initProps=Be,k.getTransform=Ce,k.applyTransform=Z,k.transformDirection=nt,k.groupTransition=ct,k.clipPointsByRect=Qe,k.clipRectByRect=dt,k.createIcon=Ft,k.linePolygonIntersect=Lr,k.lineLineIntersect=Wt},IyUQ:function(H,k,d){var O=d("bYtY"),x=d("YH21"),C=d("IwbS"),A=d("iLNv"),b=d("fc+c"),g=d("OELB"),f=d("+TT/"),c=d("72pK"),o=C.Rect,r=g.linearMap,i=g.asc,n=O.bind,e=O.each,l=7,t=1,a=30,s="horizontal",u="vertical",h=5,p=["line","bar","candlestick","scatter"],m=b.extend({type:"dataZoom.slider",init:function(T,w){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=w},render:function(T,w,S,_){if(m.superApply(this,"render",arguments),A.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(){m.superApply(this,"remove",arguments),A.clear(this,"_dispatchZoomAction")},dispose:function(){m.superApply(this,"dispose",arguments),A.clear(this,"_dispatchZoomAction")},_buildView:function(){var T=this.group;T.removeAll(),this._resetLocation(),this._resetInterval();var w=this._displayables.barGroup=new C.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),T.add(w),this._positionGroup()},_resetLocation:function(){var T=this.dataZoomModel,w=this.api,S=this._findCoordRect(),_={width:w.getWidth(),height:w.getHeight()},I=this._orient===s?{right:_.width-S.x-S.width,top:_.height-a-l,width:S.width,height:a}:{right:l,top:S.y,width:a,height:S.height},L=f.getLayoutParams(T.option);O.each(["right","top","width","height"],function(R){L[R]==="ph"&&(L[R]=I[R])});var N=f.getLayoutRect(L,_,T.padding);this._location={x:N.x,y:N.y},this._size=[N.width,N.height],this._orient===u&&this._size.reverse()},_positionGroup:function(){var T=this.group,w=this._location,S=this._orient,_=this.dataZoomModel.getFirstTargetAxisModel(),I=_&&_.get("inverse"),L=this._displayables.barGroup,N=(this._dataShadowInfo||{}).otherAxisInverse;L.attr(S===s&&!I?{scale:N?[1,1]:[1,-1]}:S===s&&I?{scale:N?[-1,1]:[-1,-1]}:S===u&&!I?{scale:N?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:N?[-1,-1]:[-1,1],rotation:Math.PI/2});var R=T.getBoundingRect([L]);T.attr("position",[w.x-R.x,w.y-R.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var T=this.dataZoomModel,w=this._size,S=this._displayables.barGroup;S.add(new o({silent:!0,shape:{x:0,y:0,width:w[0],height:w[1]},style:{fill:T.get("backgroundColor")},z2:-40})),S.add(new o({shape:{x:0,y:0,width:w[0],height:w[1]},style:{fill:"transparent"},z2:0,onclick:O.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var T=this._dataShadowInfo=this._prepareDataShadowInfo();if(!T)return;var w=this._size,S=T.series,_=S.getRawData(),I=S.getShadowDim?S.getShadowDim():T.otherDim;if(I==null)return;var L=_.getDataExtent(I),N=(L[1]-L[0])*.3;L=[L[0]-N,L[1]+N];var R=[0,w[1]],D=[0,w[0]],F=[[w[0],0],[0,0]],M=[],U=D[1]/(_.count()-1),B=0,j=Math.round(_.count()/w[0]),W;_.each([I],function(z,J){if(j>0&&J%j){B+=U;return}var q=z==null||isNaN(z)||z==="",de=q?0:r(z,L,R,!0);q&&!W&&J?(F.push([F[F.length-1][0],0]),M.push([M[M.length-1][0],0])):!q&&W&&(F.push([B,0]),M.push([B,0])),F.push([B,de]),M.push([B,de]),B+=U,W=q});var V=this.dataZoomModel;this._displayables.barGroup.add(new C.Polygon({shape:{points:F},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:M},style:V.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var T=this.dataZoomModel,w=T.get("showDataShadow");if(w===!1)return;var S,_=this.ecModel;return T.eachTargetAxis(function(I,L){var N=T.getAxisProxy(I.name,L).getTargetSeriesModels();O.each(N,function(R){if(S)return;if(w!==!0&&O.indexOf(p,R.get("type"))<0)return;var D=_.getComponent(I.axis,L).axis,F=v(I.name),M,U=R.coordinateSystem;F!=null&&U.getOtherAxis&&(M=U.getOtherAxis(D).inverse),F=R.getData().mapDimension(F),S={thisAxis:D,series:R,thisDim:I.name,otherDim:F,otherAxisInverse:M}},this)},this),S},_renderHandle:function(){var T=this._displayables,w=T.handles=[],S=T.handleLabels=[],_=this._displayables.barGroup,I=this._size,L=this.dataZoomModel;_.add(T.filler=new o({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 o({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(N){var R=C.createIcon(L.get("handleIcon"),{cursor:y(this._orient),draggable:!0,drift:n(this._onDragMove,this,N),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}),D=R.getBoundingRect();this._handleHeight=g.parsePercent(L.get("handleSize"),this._size[1]),this._handleWidth=D.width/D.height*this._handleHeight,R.setStyle(L.getModel("handleStyle").getItemStyle());var F=L.get("handleColor");F!=null&&(R.style.fill=F),_.add(w[N]=R);var M=L.textStyleModel;this.group.add(S[N]=new C.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:M.getTextColor(),textFont:M.getFont()},z2:10}))},this)},_resetInterval:function(){var T=this._range=this.dataZoomModel.getPercentRange(),w=this._getViewExtent();this._handleEnds=[r(T[0],[0,100],w,!0),r(T[1],[0,100],w,!0)]},_updateInterval:function(T,w){var S=this.dataZoomModel,_=this._handleEnds,I=this._getViewExtent(),L=S.findRepresentativeAxisProxy().getMinMaxSpan(),N=[0,100];c(w,_,I,S.get("zoomLock")?"all":T,L.minSpan!=null?r(L.minSpan,N,I,!0):null,L.maxSpan!=null?r(L.maxSpan,N,I,!0):null);var R=this._range,D=this._range=i([r(_[0],I,N,!0),r(_[1],I,N,!0)]);return!R||R[0]!==D[0]||R[1]!==D[1]},_updateView:function(T){var w=this._displayables,S=this._handleEnds,_=i(S.slice()),I=this._size;e([0,1],function(L){var N=w.handles[L],R=this._handleHeight;N.attr({scale:[R/2,R/2],position:[S[L],I[1]/2-R/2]})},this),w.filler.setShape({x:_[0],y:0,width:_[1]-_[0],height:I[1]}),this._updateDataInfo(T)},_updateDataInfo:function(T){var w=this.dataZoomModel,S=this._displayables,_=S.handleLabels,I=this._orient,L=["",""];if(w.get("showDetail")){var N=w.findRepresentativeAxisProxy();if(N){var R=N.getAxisModel().axis,D=this._range,F=T?N.calculateDataWindow({start:D[0],end:D[1]}).valueWindow:N.getDataValueWindow();L=[this._formatLabel(F[0],R),this._formatLabel(F[1],R)]}}var M=i(this._handleEnds.slice());U.call(this,0),U.call(this,1);function U(B){var j=C.getTransform(S.handles[B].parent,this.group),W=C.transformDirection(B===0?"right":"left",j),V=this._handleWidth/2+h,z=C.applyTransform([M[B]+(B===0?-V:V),this._size[1]/2],j);_[B].setStyle({x:z[0],y:z[1],textVerticalAlign:I===s?"middle":W,textAlign:I===s?W:"center",text:L[B]})}},_formatLabel:function(T,w){var S=this.dataZoomModel,_=S.get("labelFormatter"),I=S.get("labelPrecision");(I==null||I==="auto")&&(I=w.getPixelPrecision());var L=T==null||isNaN(T)?"":w.type==="category"||w.type==="time"?w.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 w=this._displayables.handleLabels;w[0].attr("invisible",!T),w[1].attr("invisible",!T)},_onDragMove:function(T,w,S,_){this._dragging=!0,x.stop(_.event);var I=this._displayables.barGroup.getLocalTransform(),L=C.applyTransform([w,S],I,!0),N=this._updateInterval(T,L[0]),R=this.dataZoomModel.get("realtime");this._updateView(!R),N&&R&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var T=this.dataZoomModel.get("realtime");!T&&this._dispatchZoomAction()},_onClickPanelClick:function(T){var w=this._size,S=this._displayables.barGroup.transformCoordToLocal(T.offsetX,T.offsetY);if(S[0]<0||S[0]>w[0]||S[1]<0||S[1]>w[1])return;var _=this._handleEnds,I=(_[0]+_[1])/2,L=this._updateInterval("all",S[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 w=this.api.getWidth(),S=this.api.getHeight();T={x:w*.2,y:S*.2,width:w*.6,height:S*.6}}return T}});function v(T){var w={x:"y",y:"x",radius:"angle",angle:"radius"};return w[T]}function y(T){return T==="vertical"?"ns-resize":"ew-resize"}var E=m;H.exports=E},IzEo:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("lnY3"),A=d.n(C),b=d("Znn+"),g=d("14J3"),f=d("jCWc")},J66h:function(H,k,d){(function(O){var x,C;(function(A,b){H.exports=b(A)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof O!="undefined"?O:this,function(A){"use strict";A=A||{};var b=A.Base64,g="2.6.4",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=function(R){for(var D={},F=0,M=R.length;F<M;F++)D[R.charAt(F)]=F;return D}(f),o=String.fromCharCode,r=function(D){if(D.length<2){var F=D.charCodeAt(0);return F<128?D:F<2048?o(192|F>>>6)+o(128|F&63):o(224|F>>>12&15)+o(128|F>>>6&63)+o(128|F&63)}else{var F=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return o(240|F>>>18&7)+o(128|F>>>12&63)+o(128|F>>>6&63)+o(128|F&63)}},i=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,n=function(D){return D.replace(i,r)},e=function(D){var F=[0,2,1][D.length%3],M=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),U=[f.charAt(M>>>18),f.charAt(M>>>12&63),F>=2?"=":f.charAt(M>>>6&63),F>=1?"=":f.charAt(M&63)];return U.join("")},l=A.btoa&&typeof A.btoa=="function"?function(R){return A.btoa(R)}:function(R){if(R.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return R.replace(/[\s\S]{1,3}/g,e)},t=function(D){return l(n(String(D)))},a=function(D){return D.replace(/[+\/]/g,function(F){return F=="+"?"-":"_"}).replace(/=/g,"")},s=function(D,F){return F?a(t(D)):t(D)},u=function(D){return s(D,!0)},h;A.Uint8Array&&(h=function(D,F){for(var M="",U=0,B=D.length;U<B;U+=3){var j=D[U],W=D[U+1],V=D[U+2],z=j<<16|W<<8|V;M+=f.charAt(z>>>18)+f.charAt(z>>>12&63)+(typeof W!="undefined"?f.charAt(z>>>6&63):"=")+(typeof V!="undefined"?f.charAt(z&63):"=")}return F?a(M):M});var p=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,m=function(D){switch(D.length){case 4:var F=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),M=F-65536;return o((M>>>10)+55296)+o((M&1023)+56320);case 3:return o((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return o((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},v=function(D){return D.replace(p,m)},y=function(D){var F=D.length,M=F%4,U=(F>0?c[D.charAt(0)]<<18:0)|(F>1?c[D.charAt(1)]<<12:0)|(F>2?c[D.charAt(2)]<<6:0)|(F>3?c[D.charAt(3)]:0),B=[o(U>>>16),o(U>>>8&255),o(U&255)];return B.length-=[0,0,2,1][M],B.join("")},E=A.atob&&typeof A.atob=="function"?function(R){return A.atob(R)}:function(R){return R.replace(/\S{1,4}/g,y)},T=function(D){return E(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},w=function(D){return v(E(D))},S=function(D){return String(D).replace(/[-_]/g,function(F){return F=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},_=function(D){return w(S(D))},I;A.Uint8Array&&(I=function(D){return Uint8Array.from(T(S(D)),function(F){return F.charCodeAt(0)})});var L=function(){var D=A.Base64;return A.Base64=b,D};if(A.Base64={VERSION:g,atob:T,btoa:l,fromBase64:_,toBase64:s,utob:n,encode:s,encodeURI:u,btou:v,decode:_,noConflict:L,fromUint8Array:h,toUint8Array:I},typeof Object.defineProperty=="function"){var N=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};A.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",N(function(){return _(this)})),Object.defineProperty(String.prototype,"toBase64",N(function(R){return s(this,R)})),Object.defineProperty(String.prototype,"toBase64URI",N(function(){return s(this,!0)}))}}return A.Meteor&&(Base64=A.Base64),H.exports?H.exports.Base64=A.Base64:!(x=[],C=function(){return A.Base64}.apply(k,x),C!==void 0&&(H.exports=C)),{Base64:A.Base64}})}).call(this,d("yLpj"))},JEkh:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),b=d("ItGF"),g=d("4NO4"),f=d("7aKB"),c=d("OKJ2"),o=f.addCommas,r=f.encodeHTML;function i(l){g.defaultEmphasis(l,"label",["show"])}var n=C.extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(l,t,a){this.mergeDefaultAndTheme(l,a),this._mergeOption(l,a,!1,!0)},isAnimationEnabled:function(){if(b.node)return!1;var l=this.__hostSeries;return this.getShallow("animation")&&l&&l.isAnimationEnabled()},mergeOption:function(l,t){this._mergeOption(l,t,!1,!1)},_mergeOption:function(l,t,a,s){var u=this.constructor,h=this.mainType+"Model";a||t.eachSeries(function(p){var m=p.get(this.mainType,!0),v=p[h];if(!m||!m.data){p[h]=null;return}v?v._mergeOption(m,t,!0):(s&&i(m),A.each(m.data,function(y){y instanceof Array?(i(y[0]),i(y[1])):i(y)}),v=new u(m,this,t),A.extend(v,{mainType:this.mainType,seriesIndex:p.seriesIndex,name:p.name,createdBySelf:!0}),v.__hostSeries=p),p[h]=v},this)},formatTooltip:function(l){var t=this.getData(),a=this.getRawValue(l),s=A.isArray(a)?A.map(a,o).join(", "):o(a),u=t.getName(l),h=r(this.name);return(a!=null||u)&&(h+="<br />"),u&&(h+=r(u),a!=null&&(h+=" : ")),a!=null&&(h+=r(s)),h},getData:function(){return this._data},setData:function(l){this._data=l}});A.mixin(n,c);var e=n;H.exports=e},JGo8:function(H,k,d){},JLnu:function(H,k,d){var O=d("+TT/"),x=d("OELB"),C=x.parsePercent,A=x.linearMap;function b(o,r){return O.getLayoutRect(o.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function g(o,r){for(var i=o.mapDimension("value"),n=o.mapArray(i,function(s){return s}),e=[],l=r==="ascending",t=0,a=o.count();t<a;t++)e[t]=t;return typeof r=="function"?e.sort(r):r!=="none"&&e.sort(function(s,u){return l?n[s]-n[u]:n[u]-n[s]}),e}function f(o){o.each(function(r){var i=o.getItemModel(r),n=i.getModel("label"),e=n.get("position"),l=i.getModel("labelLine"),t=o.getItemLayout(r),a=t.points,s=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",u,h,p,m;if(s)e==="insideLeft"?(h=(a[0][0]+a[3][0])/2+5,p=(a[0][1]+a[3][1])/2,u="left"):e==="insideRight"?(h=(a[1][0]+a[2][0])/2-5,p=(a[1][1]+a[2][1])/2,u="right"):(h=(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"),m=[[h,p],[h,p]];else{var v,y,E,T=l.get("length");e==="left"?(v=(a[3][0]+a[0][0])/2,y=(a[3][1]+a[0][1])/2,E=v-T,h=E-5,u="right"):e==="right"?(v=(a[1][0]+a[2][0])/2,y=(a[1][1]+a[2][1])/2,E=v+T,h=E+5,u="left"):e==="rightTop"?(v=a[1][0],y=a[1][1],E=v+T,h=E+5,u="top"):e==="rightBottom"?(v=a[2][0],y=a[2][1],E=v+T,h=E+5,u="bottom"):e==="leftTop"?(v=a[0][0],y=a[1][1],E=v-T,h=E-5,u="right"):e==="leftBottom"?(v=a[3][0],y=a[2][1],E=v-T,h=E-5,u="right"):(v=(a[1][0]+a[2][0])/2,y=(a[1][1]+a[2][1])/2,E=v+T,h=E+5,u="left");var w=y;m=[[v,y],[E,w]],p=w}t.label={linePoints:m,x:h,y:p,verticalAlign:"middle",textAlign:u,inside:s}})}function c(o,r,i){o.eachSeriesByType("funnel",function(n){var e=n.getData(),l=e.mapDimension("value"),t=n.get("sort"),a=b(n,r),s=g(e,t),u=[C(n.get("minSize"),a.width),C(n.get("maxSize"),a.width)],h=e.getDataExtent(l),p=n.get("min"),m=n.get("max");p==null&&(p=Math.min(h[0],0)),m==null&&(m=h[1]);var v=n.get("funnelAlign"),y=n.get("gap"),E=(a.height-y*(e.count()-1))/e.count(),T=a.y,w=function(F,M){var U=e.get(l,F)||0,B=A(U,[p,m],u,!0),j;switch(v){case"left":j=a.x;break;case"center":j=a.x+(a.width-B)/2;break;case"right":j=a.x+a.width-B;break}return[[j,M],[j+B,M]]};t==="ascending"&&(E=-E,y=-y,T+=a.height,s=s.reverse());for(var S=0;S<s.length;S++){var _=s[S],I=s[S+1],L=e.getItemModel(_),N=L.get("itemStyle.height");N==null?N=E:(N=C(N,a.height),t==="ascending"&&(N=-N));var R=w(_,T),D=w(I,T+N);T+=N+y,e.setItemLayout(_,{points:R.concat(D.slice().reverse())})}f(e)})}H.exports=c},JSwD:function(H,k,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(k,"__esModule",{value:!0}),k.default=t;var x=A(d("6BzB"));function C(){if(typeof WeakMap!="function")return null;var a=new WeakMap;return C=function(){return a},a}function A(a){if(a&&a.__esModule)return a;if(a===null||O(a)!=="object"&&typeof a!="function")return{default:a};var s=C();if(s&&s.has(a))return s.get(a);var u={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in a)if(Object.prototype.hasOwnProperty.call(a,p)){var m=h?Object.getOwnPropertyDescriptor(a,p):null;m&&(m.get||m.set)?Object.defineProperty(u,p,m):u[p]=a[p]}return u.default=a,s&&s.set(a,u),u}var b=15,g=852,f=592,c=0,o=1,r=2,i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],e=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function t(a,s,u,h,p,m,v,y){var E=y.bits,T=0,w=0,S=0,_=0,I=0,L=0,N=0,R=0,D=0,F=0,M,U,B,j,W,V=null,z=0,J,q=new x.Buf16(b+1),de=new x.Buf16(b+1),ae=null,ve=0,_e,Ie,He;for(T=0;T<=b;T++)q[T]=0;for(w=0;w<h;w++)q[s[u+w]]++;for(I=E,_=b;_>=1&&!(q[_]!==0);_--);if(I>_&&(I=_),_===0)return p[m++]=1<<24|64<<16|0,p[m++]=1<<24|64<<16|0,y.bits=1,0;for(S=1;S<_&&!(q[S]!==0);S++);for(I<S&&(I=S),R=1,T=1;T<=b;T++)if(R<<=1,R-=q[T],R<0)return-1;if(R>0&&(a===c||_!==1))return-1;for(de[1]=0,T=1;T<b;T++)de[T+1]=de[T]+q[T];for(w=0;w<h;w++)s[u+w]!==0&&(v[de[s[u+w]]++]=w);if(a===c?(V=ae=v,J=19):a===o?(V=i,z-=257,ae=n,ve-=257,J=256):(V=e,ae=l,J=-1),F=0,w=0,T=S,W=m,L=I,N=0,B=-1,D=1<<I,j=D-1,a===o&&D>g||a===r&&D>f)return 1;for(;;){_e=T-N,v[w]<J?(Ie=0,He=v[w]):v[w]>J?(Ie=ae[ve+v[w]],He=V[z+v[w]]):(Ie=32+64,He=0),M=1<<T-N,U=1<<L,S=U;do U-=M,p[W+(F>>N)+U]=_e<<24|Ie<<16|He|0;while(U!==0);for(M=1<<T-1;F&M;)M>>=1;if(M!==0?(F&=M-1,F+=M):F=0,w++,--q[T]===0){if(T===_)break;T=s[u+v[w]]}if(T>I&&(F&j)!==B){for(N===0&&(N=I),W+=S,L=T-N,R=1<<L;L+N<_&&!(R-=q[L+N],R<=0);)L++,R<<=1;if(D+=1<<L,a===o&&D>g||a===r&&D>f)return 1;B=F&j,p[B]=I<<24|L<<16|W-m|0}}return F!==0&&(p[W+F]=T-N<<24|64<<16|0),y.bits=I,0}},JVwQ:function(H,k,d){var O=d("ProS"),x=d("1NG9"),C=x.Polygon,A=d("IwbS"),b=d("bYtY"),g=b.bind,f=b.extend,c=d("gPAo"),o=O.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(i,n,e){var l=i.getData(),t=this.group,a=i.getLayerSeries(),s=l.getLayout("layoutInfo"),u=s.rect,h=s.boundaryGap;t.attr("position",[0,u.y+h[0]]);function p(E){return E.name}var m=new c(this._layersSeries||[],a,p,p),v={};m.add(g(y,this,"add")).update(g(y,this,"update")).remove(g(y,this,"remove")).execute();function y(E,T,w){var S=this._layers;if(E==="remove"){t.remove(S[T]);return}for(var _=[],I=[],L,N=a[T].indices,R=0;R<N.length;R++){var D=l.getItemLayout(N[R]),F=D.x,M=D.y0,U=D.y;_.push([F,M]),I.push([F,M+U]),L=l.getItemVisual(N[R],"color")}var B,j,W=l.getItemLayout(N[0]),V=l.getItemModel(N[R-1]),z=V.getModel("label"),J=z.get("margin");if(E==="add"){var q=v[T]=new A.Group;B=new C({shape:{points:_,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),j=new A.Text({style:{x:W.x-J,y:W.y0+W.y/2}}),q.add(B),q.add(j),t.add(q),B.setClipPath(r(B.getBoundingRect(),i,function(){B.removeClipPath()}))}else{var q=S[w];B=q.childAt(0),j=q.childAt(1),t.add(q),v[T]=q,A.updateProps(B,{shape:{points:_,stackedOnPoints:I}},i),A.updateProps(j,{style:{x:W.x-J,y:W.y0+W.y/2}},i)}var de=V.getModel("emphasis.itemStyle"),ae=V.getModel("itemStyle");A.setTextStyle(j.style,z,{text:z.get("show")?i.getFormattedLabel(N[R-1],"normal")||l.getName(N[R-1]):null,textVerticalAlign:"middle"}),B.setStyle(f({fill:L},ae.getItemStyle(["color"]))),A.setHoverStyle(B,de.getItemStyle())}this._layersSeries=a,this._layers=v},dispose:function(){}});function r(i,n,e){var l=new A.Rect({shape:{x:i.x-10,y:i.y-10,width:0,height:i.height+20}});return A.initProps(l,{shape:{width:i.width+20,height:i.height+20}},n,e),l}H.exports=o},JgUQ:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},JsLm:function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),b=d("lwsE"),g=d.n(b),f=d("W8MJ"),c=d.n(f),o=d("PJYZ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),l=d.n(e),t=d("q1tI"),a=d.n(t),s=d("i8i4"),u=d.n(s),h=d("TSYQ"),p=d.n(h),m=d("zT1h"),v=d("cDf5"),y=d.n(v),E=d("BGR+"),T=d("VTBJ"),w=d("1OyB"),S=d("vuIU"),_=d("Ji7U"),I=d("LK+K");function L(Z){return Z instanceof HTMLElement?Z:u.a.findDOMNode(Z)}var N=d("TOwV");function R(Z){var nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ct=[];return a.a.Children.forEach(Z,function(Qe){if(Qe==null&&!nt.keepEmpty)return;Array.isArray(Qe)?ct=ct.concat(R(Qe)):Object(N.isFragment)(Qe)&&Qe.props?ct=ct.concat(R(Qe.props.children,nt)):ct.push(Qe)}),ct}var D={};function F(Z,nt){}function M(Z,nt){}function U(){D={}}function B(Z,nt,ct){!nt&&!D[ct]&&(Z(!1,ct),D[ct]=!0)}function j(Z,nt){B(F,Z,nt)}function W(Z,nt){B(M,Z,nt)}var V=j,z=d("U8pU");function J(Z,nt,ct){var Qe=t.useRef({});return(!("value"in Qe.current)||ct(Qe.current.condition,nt))&&(Qe.current.value=Z(),Qe.current.condition=nt),Qe.current.value}function q(Z,nt){typeof Z=="function"?Z(nt):Object(z.a)(Z)==="object"&&Z&&"current"in Z&&(Z.current=nt)}function de(){for(var Z=arguments.length,nt=new Array(Z),ct=0;ct<Z;ct++)nt[ct]=arguments[ct];var Qe=nt.filter(function(dt){return dt});return Qe.length<=1?Qe[0]:function(dt){nt.forEach(function(Ft){q(Ft,dt)})}}function ae(){for(var Z=arguments.length,nt=new Array(Z),ct=0;ct<Z;ct++)nt[ct]=arguments[ct];return J(function(){return de.apply(void 0,nt)},nt,function(Qe,dt){return Qe.length===dt.length&&Qe.every(function(Ft,Lr){return Ft===dt[Lr]})})}function ve(Z){var nt,ct,Qe=Object(N.isMemo)(Z)?Z.type.type:Z.type;return typeof Qe=="function"&&!((nt=Qe.prototype)===null||nt===void 0?void 0:nt.render)?!1:!(typeof Z=="function"&&!((ct=Z.prototype)===null||ct===void 0?void 0:ct.render))}var _e=d("bdgK"),Ie="rc-observer-key",He=function(Z){Object(_.a)(ct,Z);var nt=Object(I.a)(ct);function ct(){var Qe;return Object(w.a)(this,ct),Qe=nt.apply(this,arguments),Qe.resizeObserver=null,Qe.childNode=null,Qe.currentElement=null,Qe.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Qe.onResize=function(dt){var Ft=Qe.props.onResize,Lr=dt[0].target,Wt=Lr.getBoundingClientRect(),ar=Wt.width,Ut=Wt.height,kt=Lr.offsetWidth,st=Lr.offsetHeight,Rr=Math.floor(ar),on=Math.floor(Ut);if(Qe.state.width!==Rr||Qe.state.height!==on||Qe.state.offsetWidth!==kt||Qe.state.offsetHeight!==st){var Sn={width:Rr,height:on,offsetWidth:kt,offsetHeight:st};Qe.setState(Sn),Ft&&Promise.resolve().then(function(){Ft(Object(T.a)(Object(T.a)({},Sn),{},{offsetWidth:kt,offsetHeight:st}))})}},Qe.setChildNode=function(dt){Qe.childNode=dt},Qe}return Object(S.a)(ct,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var dt=this.props.disabled;if(dt){this.destroyObserver();return}var Ft=L(this.childNode||this),Lr=Ft!==this.currentElement;Lr&&(this.destroyObserver(),this.currentElement=Ft),!this.resizeObserver&&Ft&&(this.resizeObserver=new _e.default(this.onResize),this.resizeObserver.observe(Ft))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var dt=this.props.children,Ft=R(dt);if(Ft.length>1)V(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Ft.length===0)return V(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Lr=Ft[0];if(t.isValidElement(Lr)&&ve(Lr)){var Wt=Lr.ref;Ft[0]=t.cloneElement(Lr,{ref:de(Wt,this.setChildNode)})}return Ft.length===1?Ft[0]:Ft.map(function(ar,Ut){return!t.isValidElement(ar)||"key"in ar&&ar.key!==null?ar:t.cloneElement(ar,{key:"".concat(Ie,"-").concat(Ut)})})}}]),ct}(t.Component);He.displayName="ResizeObserver";var me=He,ke=d("H84U"),se=d("RIqP"),te=d.n(se),Ge=d("xEkU"),oe=d.n(Ge);function Y(Z){var nt,ct=function(Ft){return function(){nt=null,Z.apply(void 0,te()(Ft))}},Qe=function(){if(nt==null){for(var Ft=arguments.length,Lr=new Array(Ft),Wt=0;Wt<Ft;Wt++)Lr[Wt]=arguments[Wt];nt=oe()(ct(Lr))}};return Qe.cancel=function(){return oe.a.cancel(nt)},Qe}function G(){return function(Z,nt,ct){var Qe=ct.value,dt=!1;return{configurable:!0,get:function(){if(dt||this===Z.prototype||this.hasOwnProperty(nt))return Qe;var Lr=Y(Qe.bind(this));return dt=!0,Object.defineProperty(this,nt,{value:Lr,configurable:!0,writable:!0}),dt=!1,Lr}}}}function Q(Z){return Z!==window?Z.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function ye(Z,nt,ct){return ct!==void 0&&nt.top>Z.top-ct?ct+nt.top:void 0}function ce(Z,nt,ct){if(ct!==void 0&&nt.bottom<Z.bottom+ct){var Qe=window.innerHeight-nt.bottom;return ct+Qe}return}var Te=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],Se=[];function le(){return Se}function fe(Z,nt){if(!Z)return;var ct=Se.find(function(Qe){return Qe.target===Z});ct?ct.affixList.push(nt):(ct={target:Z,affixList:[nt],eventHandlers:{}},Se.push(ct),Te.forEach(function(Qe){ct.eventHandlers[Qe]=Object(m.a)(Z,Qe,function(){ct.affixList.forEach(function(dt){dt.lazyUpdatePosition()})})}))}function Ee(Z){var nt=Se.find(function(ct){var Qe=ct.affixList.some(function(dt){return dt===Z});return Qe&&(ct.affixList=ct.affixList.filter(function(dt){return dt!==Z})),Qe});nt&&nt.affixList.length===0&&(Se=Se.filter(function(ct){return ct!==nt}),Te.forEach(function(ct){var Qe=nt.eventHandlers[ct];Qe&&Qe.remove&&Qe.remove()}))}var Ve=function(Z,nt,ct,Qe){var dt=arguments.length,Ft=dt<3?nt:Qe===null?Qe=Object.getOwnPropertyDescriptor(nt,ct):Qe,Lr;if((typeof Reflect=="undefined"?"undefined":y()(Reflect))==="object"&&typeof Reflect.decorate=="function")Ft=Reflect.decorate(Z,nt,ct,Qe);else for(var Wt=Z.length-1;Wt>=0;Wt--)(Lr=Z[Wt])&&(Ft=(dt<3?Lr(Ft):dt>3?Lr(nt,ct,Ft):Lr(nt,ct))||Ft);return dt>3&&Ft&&Object.defineProperty(nt,ct,Ft),Ft};function vt(){return typeof window!="undefined"?window:null}var et;(function(Z){Z[Z.None=0]="None",Z[Z.Prepare=1]="Prepare"})(et||(et={}));var Oe=function(Z){n()(ct,Z);var nt=l()(ct);function ct(){var Qe;return g()(this,ct),Qe=nt.apply(this,arguments),Qe.state={status:et.None,lastAffix:!1,prevTarget:null},Qe.getOffsetTop=function(){var dt=Qe.props.offsetBottom,Ft=Qe.props.offsetTop;return dt===void 0&&Ft===void 0&&(Ft=0),Ft},Qe.getOffsetBottom=function(){return Qe.props.offsetBottom},Qe.savePlaceholderNode=function(dt){Qe.placeholderNode=dt},Qe.saveFixedNode=function(dt){Qe.fixedNode=dt},Qe.measure=function(){var dt=Qe.state,Ft=dt.status,Lr=dt.lastAffix,Wt=Qe.props.onChange,ar=Qe.getTargetFunc();if(Ft!==et.Prepare||!Qe.fixedNode||!Qe.placeholderNode||!ar)return;var Ut=Qe.getOffsetTop(),kt=Qe.getOffsetBottom(),st=ar();if(!st)return;var Rr={status:et.None},on=Q(st),Sn=Q(Qe.placeholderNode),zn=ye(Sn,on,Ut),Ii=ce(Sn,on,kt);zn!==void 0?(Rr.affixStyle={position:"fixed",top:zn,width:Sn.width,height:Sn.height},Rr.placeholderStyle={width:Sn.width,height:Sn.height}):Ii!==void 0&&(Rr.affixStyle={position:"fixed",bottom:Ii,width:Sn.width,height:Sn.height},Rr.placeholderStyle={width:Sn.width,height:Sn.height}),Rr.lastAffix=!!Rr.affixStyle,Wt&&Lr!==Rr.lastAffix&&Wt(Rr.lastAffix),Qe.setState(Rr)},Qe.prepareMeasure=function(){if(Qe.setState({status:et.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var dt},Qe.render=function(){var dt=Qe.context.getPrefixCls,Ft=Qe.state,Lr=Ft.affixStyle,Wt=Ft.placeholderStyle,ar=Qe.props,Ut=ar.prefixCls,kt=ar.children,st=p()(A()({},dt("affix",Ut),Lr)),Rr=Object(E.default)(Qe.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return t.createElement(me,{onResize:function(){Qe.updatePosition()}},t.createElement("div",x()({},Rr,{ref:Qe.savePlaceholderNode}),Lr&&t.createElement("div",{style:Wt,"aria-hidden":"true"}),t.createElement("div",{className:st,ref:Qe.saveFixedNode,style:Lr},t.createElement(me,{onResize:function(){Qe.updatePosition()}},kt))))},Qe}return c()(ct,[{key:"getTargetFunc",value:function(){var dt=this.context.getTargetContainer,Ft=this.props.target;return Ft!==void 0?Ft:dt||vt}},{key:"componentDidMount",value:function(){var dt=this,Ft=this.getTargetFunc();Ft&&(this.timeout=setTimeout(function(){fe(Ft(),dt),dt.updatePosition()}))}},{key:"componentDidUpdate",value:function(dt){var Ft=this.state.prevTarget,Lr=this.getTargetFunc(),Wt=null;Lr&&(Wt=Lr()||null),Ft!==Wt&&(Ee(this),Wt&&(fe(Wt,this),this.updatePosition()),this.setState({prevTarget:Wt})),(dt.offsetTop!==this.props.offsetTop||dt.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),Ee(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var dt=this.getTargetFunc(),Ft=this.state.affixStyle;if(dt&&Ft){var Lr=this.getOffsetTop(),Wt=this.getOffsetBottom(),ar=dt();if(ar&&this.placeholderNode){var Ut=Q(ar),kt=Q(this.placeholderNode),st=ye(kt,Ut,Lr),Rr=ce(kt,Ut,Wt);if(st!==void 0&&Ft.top===st||Rr!==void 0&&Ft.bottom===Rr)return}}this.prepareMeasure()}}]),ct}(t.Component);Oe.contextType=ke.b,Ve([G()],Oe.prototype,"updatePosition",null),Ve([G()],Oe.prototype,"lazyUpdatePosition",null);var Tt=Oe,Je=d("zAh6"),St=d("i6bk"),Mt=t.createContext(null),er=Mt;function It(){return window}function _t(Z,nt){if(!Z.getClientRects().length)return 0;var ct=Z.getBoundingClientRect();return ct.width||ct.height?nt===window?(nt=Z.ownerDocument.documentElement,ct.top-nt.clientTop):ct.top-nt.getBoundingClientRect().top:ct.top}var Xe=/#(\S+)$/,ie=function(Z){n()(ct,Z);var nt=l()(ct);function ct(){var Qe;return g()(this,ct),Qe=nt.apply(this,arguments),Qe.state={activeLink:null},Qe.links=[],Qe.registerLink=function(dt){Qe.links.includes(dt)||Qe.links.push(dt)},Qe.unregisterLink=function(dt){var Ft=Qe.links.indexOf(dt);Ft!==-1&&Qe.links.splice(Ft,1)},Qe.getContainer=function(){var dt=Qe.context.getTargetContainer,Ft=Qe.props.getContainer,Lr=Ft||dt||It;return Lr()},Qe.handleScrollTo=function(dt){var Ft=Qe.props,Lr=Ft.offsetTop,Wt=Ft.targetOffset;Qe.setCurrentActiveLink(dt);var ar=Qe.getContainer(),Ut=Object(St.a)(ar,!0),kt=Xe.exec(dt);if(!kt)return;var st=document.getElementById(kt[1]);if(!st)return;var Rr=_t(st,ar),on=Ut+Rr;on-=Wt!==void 0?Wt:Lr||0,Qe.animating=!0,Object(Je.a)(on,{callback:function(){Qe.animating=!1},getContainer:Qe.getContainer})},Qe.saveInkNode=function(dt){Qe.inkNode=dt},Qe.setCurrentActiveLink=function(dt){var Ft=Qe.state.activeLink,Lr=Qe.props.onChange;Ft!==dt&&(Qe.setState({activeLink:dt}),Lr&&Lr(dt))},Qe.handleScroll=function(){if(Qe.animating)return;var dt=Qe.props,Ft=dt.offsetTop,Lr=dt.bounds,Wt=dt.targetOffset,ar=Qe.getCurrentAnchor(Wt!==void 0?Wt:Ft||0,Lr);Qe.setCurrentActiveLink(ar)},Qe.updateInk=function(){var dt=r()(Qe),Ft=dt.prefixCls,Lr=s.findDOMNode(r()(Qe)),Wt=Lr.getElementsByClassName("".concat(Ft,"-link-title-active"))[0];Wt&&(Qe.inkNode.style.top="".concat(Wt.offsetTop+Wt.clientHeight/2-4.5,"px"))},Qe.render=function(){var dt=Qe.context,Ft=dt.getPrefixCls,Lr=dt.direction,Wt=Qe.props,ar=Wt.prefixCls,Ut=Wt.className,kt=Ut===void 0?"":Ut,st=Wt.style,Rr=Wt.offsetTop,on=Wt.affix,Sn=Wt.showInkInFixed,zn=Wt.children,Ii=Qe.state.activeLink,yn=Ft("anchor",ar);Qe.prefixCls=yn;var Nn=p()("".concat(yn,"-ink-ball"),{visible:Ii}),jt=p()(kt,"".concat(yn,"-wrapper"),A()({},"".concat(yn,"-rtl"),Lr==="rtl")),At=p()(yn,{fixed:!on&&!Sn}),Re=x()({maxHeight:Rr?"calc(100vh - ".concat(Rr,"px)"):"100vh"},st),Ke=t.createElement("div",{className:jt,style:Re},t.createElement("div",{className:At},t.createElement("div",{className:"".concat(yn,"-ink")},t.createElement("span",{className:Nn,ref:Qe.saveInkNode})),zn));return t.createElement(er.Provider,{value:{registerLink:Qe.registerLink,unregisterLink:Qe.unregisterLink,activeLink:Qe.state.activeLink,scrollTo:Qe.handleScrollTo,onClick:Qe.props.onClick}},on?t.createElement(Tt,{offsetTop:Rr,target:Qe.getContainer},Ke):Ke)},Qe}return c()(ct,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=Object(m.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var dt=this.getContainer();this.scrollContainer!==dt&&(this.scrollContainer=dt,this.scrollEvent.remove(),this.scrollEvent=Object(m.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll())}this.updateInk()}},{key:"componentWillUnmount",value:function(){this.scrollEvent&&this.scrollEvent.remove()}},{key:"getCurrentAnchor",value:function(){var dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Lr=this.props.getCurrentAnchor;if(typeof Lr=="function")return Lr();var Wt=[],ar=this.getContainer();if(this.links.forEach(function(kt){var st=Xe.exec(kt.toString());if(!st)return;var Rr=document.getElementById(st[1]);if(Rr){var on=_t(Rr,ar);on<dt+Ft&&Wt.push({link:kt,top:on})}}),Wt.length){var Ut=Wt.reduce(function(kt,st){return st.top>kt.top?st:kt});return Ut.link}return""}}]),ct}(t.Component);ie.defaultProps={affix:!0,showInkInFixed:!1},ie.contextType=ke.b;var X=function(Z){n()(ct,Z);var nt=l()(ct);function ct(){var Qe;return g()(this,ct),Qe=nt.apply(this,arguments),Qe.handleClick=function(dt){var Ft=Qe.context,Lr=Ft.scrollTo,Wt=Ft.onClick,ar=Qe.props,Ut=ar.href,kt=ar.title;Wt&&Wt(dt,{title:kt,href:Ut}),Lr(Ut)},Qe.renderAnchorLink=function(dt){var Ft=dt.getPrefixCls,Lr=Qe.props,Wt=Lr.prefixCls,ar=Lr.href,Ut=Lr.title,kt=Lr.children,st=Lr.className,Rr=Lr.target,on=Ft("anchor",Wt),Sn=Qe.context.activeLink===ar,zn=p()(st,"".concat(on,"-link"),A()({},"".concat(on,"-link-active"),Sn)),Ii=p()("".concat(on,"-link-title"),A()({},"".concat(on,"-link-title-active"),Sn));return t.createElement("div",{className:zn},t.createElement("a",{className:Ii,href:ar,title:typeof Ut=="string"?Ut:"",target:Rr,onClick:Qe.handleClick},Ut),kt)},Qe}return c()(ct,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(dt){var Ft=dt.href,Lr=this.props.href;Ft!==Lr&&(this.context.unregisterLink(Ft),this.context.registerLink(Lr))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return t.createElement(ke.a,null,this.renderAnchorLink)}}]),ct}(t.Component);X.defaultProps={href:"#"},X.contextType=er;var Be=X;ie.Link=Be;var Ce=k.a=ie},JuEJ:function(H,k,d){var O=d("bYtY"),x=d("4NO4"),C=O.each,A=O.isObject,b=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function g(t){var a=t&&t.itemStyle;if(!a)return;for(var s=0,u=b.length;s<u;s++){var h=b[s],p=a.normal,m=a.emphasis;p&&p[h]&&(t[h]=t[h]||{},t[h].normal?O.merge(t[h].normal,p[h]):t[h].normal=p[h],p[h]=null),m&&m[h]&&(t[h]=t[h]||{},t[h].emphasis?O.merge(t[h].emphasis,m[h]):t[h].emphasis=m[h],m[h]=null)}}function f(t,a,s){if(t&&t[a]&&(t[a].normal||t[a].emphasis)){var u=t[a].normal,h=t[a].emphasis;u&&(s?(t[a].normal=t[a].emphasis=null,O.defaults(t[a],u)):t[a]=u),h&&(t.emphasis=t.emphasis||{},t.emphasis[a]=h)}}function c(t){f(t,"itemStyle"),f(t,"lineStyle"),f(t,"areaStyle"),f(t,"label"),f(t,"labelLine"),f(t,"upperLabel"),f(t,"edgeLabel")}function o(t,a){var s=A(t)&&t[a],u=A(s)&&s.textStyle;if(u)for(var h=0,p=x.TEXT_STYLE_OPTIONS.length;h<p;h++){var a=x.TEXT_STYLE_OPTIONS[h];u.hasOwnProperty(a)&&(s[a]=u[a])}}function r(t){t&&(c(t),o(t,"label"),t.emphasis&&o(t.emphasis,"label"))}function i(t){if(!A(t))return;g(t),c(t),o(t,"label"),o(t,"upperLabel"),o(t,"edgeLabel"),t.emphasis&&(o(t.emphasis,"label"),o(t.emphasis,"upperLabel"),o(t.emphasis,"edgeLabel"));var a=t.markPoint;a&&(g(a),r(a));var s=t.markLine;s&&(g(s),r(s));var u=t.markArea;u&&r(u);var h=t.data;if(t.type==="graph"){h=h||t.nodes;var p=t.links||t.edges;if(p&&!O.isTypedArray(p))for(var m=0;m<p.length;m++)r(p[m]);O.each(t.categories,function(E){c(E)})}if(h&&!O.isTypedArray(h))for(var m=0;m<h.length;m++)r(h[m]);var a=t.markPoint;if(a&&a.data)for(var v=a.data,m=0;m<v.length;m++)r(v[m]);var s=t.markLine;if(s&&s.data)for(var y=s.data,m=0;m<y.length;m++)O.isArray(y[m])?(r(y[m][0]),r(y[m][1])):r(y[m]);t.type==="gauge"?(o(t,"axisLabel"),o(t,"title"),o(t,"detail")):t.type==="treemap"?(f(t.breadcrumb,"itemStyle"),O.each(t.levels,function(E){c(E)})):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 l(t,a){C(n(t.series),function(u){A(u)&&i(u)});var s=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];a&&s.push("valueAxis","categoryAxis","logAxis","timeAxis"),C(s,function(u){C(n(t[u]),function(h){h&&(o(h,"axisLabel"),o(h.axisPointer,"label"))})}),C(n(t.parallel),function(u){var h=u&&u.parallelAxisDefault;o(h,"axisLabel"),o(h&&h.axisPointer,"label")}),C(n(t.calendar),function(u){f(u,"itemStyle"),o(u,"dayLabel"),o(u,"monthLabel"),o(u,"yearLabel")}),C(n(t.radar),function(u){o(u,"name")}),C(n(t.geo),function(u){A(u)&&(r(u),C(n(u.regions),function(h){r(h)}))}),C(n(t.timeline),function(u){r(u),f(u,"label"),f(u,"itemStyle"),f(u,"controlStyle",!0);var h=u.data;O.isArray(h)&&O.each(h,function(p){O.isObject(p)&&(f(p,"label"),f(p,"itemStyle"))})}),C(n(t.toolbox),function(u){f(u,"iconStyle"),C(u.feature,function(h){f(h,"iconStyle")})}),o(e(t.axisPointer),"label"),o(e(t.tooltip).axisPointer,"label")}H.exports=l},K2GJ:function(H,k,d){var O=d("fW2E"),x=d("gut8"),C=x.ContextCachedBy,A=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],b=function(e){this.extendFrom(e,!1)};function g(n,e,l){var t=e.x==null?0:e.x,a=e.x2==null?1:e.x2,s=e.y==null?0:e.y,u=e.y2==null?0:e.y2;e.global||(t=t*l.width+l.x,a=a*l.width+l.x,s=s*l.height+l.y,u=u*l.height+l.y),t=isNaN(t)?0:t,a=isNaN(a)?1:a,s=isNaN(s)?0:s,u=isNaN(u)?0:u;var h=n.createLinearGradient(t,s,a,u);return h}function f(n,e,l){var t=l.width,a=l.height,s=Math.min(t,a),u=e.x==null?.5:e.x,h=e.y==null?.5:e.y,p=e.r==null?.5:e.r;e.global||(u=u*t+l.x,h=h*a+l.y,p=p*s);var m=n.createRadialGradient(u,h,0,u,h,p);return m}b.prototype={constructor:b,fill:"#000",stroke:null,opacity:1,fillOpacity:null,strokeOpacity:null,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,font:null,textFont:null,fontStyle:null,fontWeight:null,fontSize:null,fontFamily:null,textTag:null,textFill:"#000",textStroke:null,textWidth:null,textHeight:null,textStrokeWidth:0,textLineHeight:null,textPosition:"inside",textRect:null,textOffset:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowColor:"transparent",textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textBoxShadowColor:"transparent",textBoxShadowBlur:0,textBoxShadowOffsetX:0,textBoxShadowOffsetY:0,transformText:!1,textRotation:0,textOrigin:null,textBackgroundColor:null,textBorderColor:null,textBorderWidth:0,textBorderRadius:0,textPadding:null,rich:null,truncate:null,blend:null,bind:function(e,l,t){var a=this,s=t&&t.style,u=!s||e.__attrCachedBy!==C.STYLE_BIND;e.__attrCachedBy=C.STYLE_BIND;for(var h=0;h<A.length;h++){var p=A[h],m=p[0];(u||a[m]!==s[m])&&(e[m]=O(e,m,a[m]||p[1]))}if((u||a.fill!==s.fill)&&(e.fillStyle=a.fill),(u||a.stroke!==s.stroke)&&(e.strokeStyle=a.stroke),(u||a.opacity!==s.opacity)&&(e.globalAlpha=a.opacity==null?1:a.opacity),(u||a.blend!==s.blend)&&(e.globalCompositeOperation=a.blend||"source-over"),this.hasStroke()){var v=a.lineWidth;e.lineWidth=v/(this.strokeNoScale&&l&&l.getLineScale?l.getLineScale():1)}},hasFill:function(){var e=this.fill;return e!=null&&e!=="none"},hasStroke:function(){var e=this.stroke;return e!=null&&e!=="none"&&this.lineWidth>0},extendFrom:function(e,l){if(e)for(var t in e)e.hasOwnProperty(t)&&(l===!0||(l===!1?!this.hasOwnProperty(t):e[t]!=null))&&(this[t]=e[t])},set:function(e,l){typeof e=="string"?this[e]=l:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,l,t){for(var a=l.type==="radial"?f:g,s=a(e,l,t),u=l.colorStops,h=0;h<u.length;h++)s.addColorStop(u[h].offset,u[h].color);return s}};for(var c=b.prototype,o=0;o<A.length;o++){var r=A[o];r[0]in c||(c[r[0]]=r[1])}b.getGradient=c.getGradient;var i=b;H.exports=i},K3mO:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.Base,b=C.WordArray,g=x.algo,f=g.MD5,c=g.EvpKDF=A.extend({cfg:A.extend({keySize:128/32,hasher:f,iterations:1}),init:function(r){this.cfg=this.cfg.extend(r)},compute:function(r,i){for(var n,e=this.cfg,l=e.hasher.create(),t=b.create(),a=t.words,s=e.keySize,u=e.iterations;a.length<s;){n&&l.update(n),n=l.update(r).finalize(i),l.reset();for(var h=1;h<u;h++)n=l.finalize(n),l.reset();t.concat(n)}return t.sigBytes=s*4,t}});x.EvpKDF=function(o,r,i){return c.create(i).compute(o,r)}}(),O.EvpKDF})},K4ya:function(H,k,d){var O=d("bYtY"),x=d("XxSj"),C=O.each;function A(o){if(o){for(var r in o)if(o.hasOwnProperty(r))return!0}}function b(o,r,i){var n={};return C(r,function(l){var t=n[l]=e();C(o[l],function(a,s){if(!x.isValidType(s))return;var u={type:s,visual:a};i&&i(u,l),t[s]=new x(u),s==="opacity"&&(u=O.clone(u),u.type="colorAlpha",t.__hidden.__alphaForOpacity=new x(u))})}),n;function e(){var l=function(){};l.prototype.__hidden=l.prototype;var t=new l;return t}}function g(o,r,i){var n;O.each(i,function(e){r.hasOwnProperty(e)&&A(r[e])&&(n=!0)}),n&&O.each(i,function(e){r.hasOwnProperty(e)&&A(r[e])?o[e]=O.clone(r[e]):delete o[e]})}function f(o,r,i,n,e,l){var t={};O.each(o,function(p){var m=x.prepareVisualTypes(r[p]);t[p]=m});var a;function s(p){return i.getItemVisual(a,p)}function u(p,m){i.setItemVisual(a,p,m)}l==null?i.each(h):i.each([l],h);function h(p,m){a=l==null?p:m;var v=i.getRawDataItem(a);if(v&&v.visualMap===!1)return;for(var y=n.call(e,p),E=r[y],T=t[y],w=0,S=T.length;w<S;w++){var _=T[w];E[_]&&E[_].applyVisual(p,s,u)}}}function c(o,r,i,n){var e={};O.each(o,function(t){var a=x.prepareVisualTypes(r[t]);e[t]=a});function l(t,a){n!=null&&(n=a.getDimension(n));function s(_){return a.getItemVisual(h,_)}function u(_,I){a.setItemVisual(h,_,I)}for(var h;(h=t.next())!=null;){var p=a.getRawDataItem(h);if(p&&p.visualMap===!1)continue;for(var m=n!=null?a.get(n,h,!0):h,v=i(m),y=r[v],E=e[v],T=0,w=E.length;T<w;T++){var S=E[T];y[S]&&y[S].applyVisual(m,s,u)}}}return{progress:l}}k.createVisualMappings=b,k.replaceVisualOption=g,k.applyVisual=f,k.incrementalApplyVisual=c},KCsZ:function(H,k,d){var O=d("bYtY");function x(C){for(var A=0;A<C.length;A++)C[A][1]||(C[A][1]=C[A][0]);return function(b,g,f){for(var c={},o=0;o<C.length;o++){var r=C[o][1];if(g&&O.indexOf(g,r)>=0||f&&O.indexOf(f,r)<0)continue;var i=b.getShallow(r);i!=null&&(c[C[o][0]]=i)}return c}}H.exports=x},KPFz:function(H,k,d){},KQeH:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},KS52:function(H,k,d){var O=d("OELB"),x=O.parsePercent,C=O.linearMap,A=d("+TT/"),b=d("u3DP"),g=d("bYtY"),f=Math.PI*2,c=Math.PI/180;function o(i,n){return A.getLayoutRect(i.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}function r(i,n,e,l){n.eachSeriesByType(i,function(t){var a=t.getData(),s=a.mapDimension("value"),u=o(t,e),h=t.get("center"),p=t.get("radius");g.isArray(p)||(p=[0,p]),g.isArray(h)||(h=[h,h]);var m=x(u.width,e.getWidth()),v=x(u.height,e.getHeight()),y=Math.min(m,v),E=x(h[0],m)+u.x,T=x(h[1],v)+u.y,w=x(p[0],y/2),S=x(p[1],y/2),_=-t.get("startAngle")*c,I=t.get("minAngle")*c,L=0;a.each(s,function(J){!isNaN(J)&&L++});var N=a.getSum(s),R=Math.PI/(N||L)*2,D=t.get("clockwise"),F=t.get("roseType"),M=t.get("stillShowZeroSum"),U=a.getDataExtent(s);U[0]=0;var B=f,j=0,W=_,V=D?1:-1;if(a.each(s,function(J,q){var de;if(isNaN(J)){a.setItemLayout(q,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:D,cx:E,cy:T,r0:w,r:F?NaN:S,viewRect:u});return}F!=="area"?de=N===0&&M?R:J*R:de=f/L,de<I?(de=I,B-=I):j+=J;var ae=W+V*de;a.setItemLayout(q,{angle:de,startAngle:W,endAngle:ae,clockwise:D,cx:E,cy:T,r0:w,r:F?C(J,U,[w,S]):S,viewRect:u}),W=ae}),B<f&&L)if(B<=.001){var z=f/L;a.each(s,function(J,q){if(!isNaN(J)){var de=a.getItemLayout(q);de.angle=z,de.startAngle=_+V*q*z,de.endAngle=_+V*(q+1)*z}})}else R=B/j,W=_,a.each(s,function(J,q){if(!isNaN(J)){var de=a.getItemLayout(q),ae=de.angle===I?I:J*R;de.startAngle=W,de.endAngle=W+V*ae,W+=V*ae}});b(t,S,u.width,u.height,u.x,u.y)})}H.exports=r},KUOm:function(H,k){function d(O){var x={};O.eachSeriesByType("graph",function(C){var A=C.getCategoriesData(),b=C.getData(),g={};A.each(function(f){var c=A.getName(f);g["ec-"+c]=f;var o=A.getItemModel(f),r=o.get("itemStyle.color")||C.getColorFromPalette(c,x);A.setItemVisual(f,"color",r);for(var i=["opacity","symbol","symbolSize","symbolKeepAspect"],n=0;n<i.length;n++){var e=o.getShallow(i[n],!0);e!=null&&A.setItemVisual(f,i[n],e)}}),A.count()&&b.each(function(f){var c=b.getItemModel(f),o=c.getShallow("category");if(o!=null){typeof o=="string"&&(o=g["ec-"+o]);for(var r=["color","opacity","symbol","symbolSize","symbolKeepAspect"],i=0;i<r.length;i++)b.getItemVisual(f,r[i],!0)==null&&b.setItemVisual(f,r[i],A.getItemVisual(o,r[i]))}})})}H.exports=d},Kagy:function(H,k){var d={legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};H.exports=d},KamJ:function(H,k,d){var O=d("ProS"),x=d("szbU");d("vF/C"),d("qwVE"),d("BuqR"),d("AE9C"),d("1u/T"),O.registerPreprocessor(x)},KmBX:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("CP8R")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="FilterFilled";var c=A.forwardRef(f);k.default=c},KmYQ:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.ZeroPadding={pad:function(C,A){var b=A*4;C.clamp(),C.sigBytes+=b-(C.sigBytes%b||b)},unpad:function(C){for(var A=C.words,b=C.sigBytes-1,b=C.sigBytes-1;b>=0;b--)if(A[b>>>2]>>>24-b%4*8&255){C.sigBytes=b+1;break}}},O.pad.ZeroPadding})},"KpQ+":function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("E/ki")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="ClockCircleOutlined";var c=A.forwardRef(f);k.default=c},KrTs:function(H,k,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("cDf5"),A=d.n(C),b=d("pVnL"),g=d.n(b),f=d("q1tI"),c=d("UmKh"),o=d("TSYQ"),r=d.n(o),i=d("J4zp"),n=d.n(i),e=d("H84U"),l=d("0n0R"),t=function(S,_){var I={};for(var L in S)Object.prototype.hasOwnProperty.call(S,L)&&_.indexOf(L)<0&&(I[L]=S[L]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,L=Object.getOwnPropertySymbols(S);N<L.length;N++)_.indexOf(L[N])<0&&Object.prototype.propertyIsEnumerable.call(S,L[N])&&(I[L[N]]=S[L[N]]);return I};function a(S){return S?S.toString().split("").reverse().map(function(_){var I=Number(_);return isNaN(I)?_:I}):[]}function s(S,_){for(var I=[],L=0;L<30;L++)I.push(f.createElement("p",{key:L.toString(),className:r()(_,{current:S===L})},L%10));return I}var u=function(_){var I=_.prefixCls,L=_.count,N=_.className,R=_.style,D=_.title,F=_.component,M=F===void 0?"sup":F,U=_.displayComponent,B=_.onAnimated,j=B===void 0?function(){}:B,W=t(_,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),V=f.useState(!0),z=n()(V,2),J=z[0],q=z[1],de=f.useState(L),ae=n()(de,2),ve=ae[0],_e=ae[1],Ie=f.useState(L),He=n()(Ie,2),me=He[0],ke=He[1],se=f.useState(L),te=n()(se,2),Ge=te[0],oe=te[1],Y=f.useContext(e.b),G=Y.getPrefixCls,Q=G("scroll-number",I);me!==L&&(q(!0),ke(L)),f.useEffect(function(){oe(ve);var le;return J&&(le=setTimeout(function(){q(!1),_e(L),j()})),function(){le&&clearTimeout(le)}},[J,L,j]);var ye=function(fe,Ee){var Ve=Math.abs(Number(ve)),vt=Math.abs(Number(Ge)),et=Math.abs(a(ve)[Ee]),Oe=Math.abs(a(vt)[Ee]);return J?10+fe:Ve>vt?et>=Oe?10+fe:20+fe:et<=Oe?10+fe:fe},ce=function(fe,Ee){if(typeof fe=="number"){var Ve=ye(fe,Ee),vt=J||a(Ge)[Ee]===void 0;return f.createElement("span",{className:"".concat(Q,"-only"),style:{transition:vt?"none":void 0,msTransform:"translateY(".concat(-Ve*100,"%)"),WebkitTransform:"translateY(".concat(-Ve*100,"%)"),transform:"translateY(".concat(-Ve*100,"%)")},key:Ee},s(Ve,"".concat(Q,"-only-unit")))}return f.createElement("span",{key:"symbol",className:"".concat(Q,"-symbol")},fe)},Te=function(){return ve&&Number(ve)%1===0?a(ve).map(function(fe,Ee){return ce(fe,Ee)}).reverse():ve},Se=g()(g()({},W),{style:R,className:r()(Q,N),title:D});return R&&R.borderColor&&(Se.style=g()(g()({},R),{boxShadow:"0 0 0 1px ".concat(R.borderColor," inset")})),U?Object(l.a)(U,{className:r()("".concat(Q,"-custom-component"),U.props&&U.props.className)}):f.createElement(M,Se,Te())},h=u,p=d("09Wf");function m(S){return p.a.indexOf(S)!==-1}var v=function(_){var I,L=_.className,N=_.prefixCls,R=_.style,D=_.color,F=_.children,M=_.text,U=_.placement,B=U===void 0?"end":U,j=f.useContext(e.b),W=j.getPrefixCls,V=j.direction,z=W("ribbon",N),J=m(D),q=r()(z,L,"".concat(z,"-placement-").concat(B),(I={},x()(I,"".concat(z,"-rtl"),V==="rtl"),x()(I,"".concat(z,"-color-").concat(D),J),I)),de={},ae={};return D&&!J&&(de.background=D,ae.color=D),f.createElement("div",{className:"".concat(z,"-wrapper")},F,f.createElement("div",{className:q,style:g()(g()({},de),R)},M,f.createElement("div",{className:"".concat(z,"-corner"),style:ae})))},y=v,E=function(S,_){var I={};for(var L in S)Object.prototype.hasOwnProperty.call(S,L)&&_.indexOf(L)<0&&(I[L]=S[L]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,L=Object.getOwnPropertySymbols(S);N<L.length;N++)_.indexOf(L[N])<0&&Object.prototype.propertyIsEnumerable.call(S,L[N])&&(I[L[N]]=S[L[N]]);return I},T=function(_){var I,L,N=_.prefixCls,R=_.scrollNumberPrefixCls,D=_.children,F=_.status,M=_.text,U=_.color,B=_.count,j=B===void 0?null:B,W=_.overflowCount,V=W===void 0?99:W,z=_.dot,J=z===void 0?!1:z,q=_.size,de=q===void 0?"default":q,ae=_.title,ve=_.offset,_e=_.style,Ie=_.className,He=_.showZero,me=He===void 0?!1:He,ke=E(_,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),se=f.useContext(e.b),te=se.getPrefixCls,Ge=se.direction,oe=te("badge",N),Y=function(){var Mt=j>V?"".concat(V,"+"):j;return Mt},G=function(){return!!F||!!U},Q=function(){var Mt=Y();return Mt==="0"||Mt===0},ye=function(){return J&&!Q()||G()},ce=function(){return ye()?"":Y()},Te=function(){return ae||(typeof j=="string"||typeof j=="number"?j:void 0)},Se=function(){return Ge==="rtl"?ve?g()({left:parseInt(ve[0],10),marginTop:ve[1]},_e):_e:ve?g()({right:-parseInt(ve[0],10),marginTop:ve[1]},_e):_e},le=function(){var Mt=ce(),er=Mt==null||Mt==="";return(er||Q()&&!me)&&!ye()},fe=function(){var Mt=le();return Mt||!M?null:f.createElement("span",{className:"".concat(oe,"-status-text")},M)},Ee=function(){var Mt=j;return!Mt||A()(Mt)!=="object"?void 0:Object(l.a)(Mt,{style:g()(g()({},Se()),Mt.props&&Mt.props.style)})},Ve=function(){var Mt,er=te("scroll-number",R),It=ce(),_t=ye(),Xe=le(),ie=r()((Mt={},x()(Mt,"".concat(oe,"-dot"),_t),x()(Mt,"".concat(oe,"-count"),!_t),x()(Mt,"".concat(oe,"-count-sm"),de==="small"),x()(Mt,"".concat(oe,"-multiple-words"),!_t&&j&&j.toString&&j.toString().length>1),x()(Mt,"".concat(oe,"-status-").concat(F),!!F),x()(Mt,"".concat(oe,"-status-").concat(U),m(U)),Mt)),X=Se();return U&&!m(U)&&(X=X||{},X.background=U),Xe?null:f.createElement(h,{prefixCls:er,"data-show":!Xe,className:ie,count:It,displayComponent:Ee(),title:Te(),style:X,key:"scrollNumber"})},vt=r()((I={},x()(I,"".concat(oe,"-status-dot"),G()),x()(I,"".concat(oe,"-status-").concat(F),!!F),x()(I,"".concat(oe,"-status-").concat(U),m(U)),I)),et={};U&&!m(U)&&(et.background=U);var Oe=r()(Ie,oe,(L={},x()(L,"".concat(oe,"-status"),G()),x()(L,"".concat(oe,"-not-a-wrapper"),!D),x()(L,"".concat(oe,"-rtl"),Ge==="rtl"),L));if(!D&&G()){var Tt=Se(),Je=Tt&&Tt.color;return f.createElement("span",g()({},ke,{className:Oe,style:Tt}),f.createElement("span",{className:vt,style:et}),f.createElement("span",{style:{color:Je},className:"".concat(oe,"-status-text")},M))}return f.createElement("span",g()({},ke,{className:Oe}),D,f.createElement(c.a,{component:"",showProp:"data-show",transitionName:D?"".concat(oe,"-zoom"):"",transitionAppear:!0},Ve()),fe())};T.Ribbon=y;var w=k.a=T},Kvyg:function(H,k,d){},KxBF:function(H,k){function d(O,x,C){var A=-1,b=O.length;x<0&&(x=-x>b?0:b+x),C=C>b?b:C,C<0&&(C+=b),b=x>C?0:C-x>>>0,x>>>=0;for(var g=Array(b);++A<b;)g[A]=O[A+x];return g}H.exports=d},KxFI:function(H,k,d){},KxfA:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=C.isTypedArray,b=C.extend,g=C.assert,f=C.each,c=C.isObject,o=d("4NO4"),r=o.getDataItemValue,i=o.isDataItemOption,n=d("OELB"),e=n.parseDate,l=d("7G+c"),t=d("k9D9"),a=t.SOURCE_FORMAT_TYPED_ARRAY,s=t.SOURCE_FORMAT_ARRAY_ROWS,u=t.SOURCE_FORMAT_ORIGINAL,h=t.SOURCE_FORMAT_OBJECT_ROWS;function p(D,F){l.isInstance(D)||(D=l.seriesDataToSource(D)),this._source=D;var M=this._data=D.data,U=D.sourceFormat;U===a&&(this._offset=0,this._dimSize=F,this._data=M);var B=v[U===s?U+"_"+D.seriesLayoutBy:U];b(this,B)}var m=p.prototype;m.pure=!1,m.persistent=!0,m.getSource=function(){return this._source};var v={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(D){return this._data[D+this._source.startIndex]},appendData:T},arrayRows_row:{pure:!0,count:function(){var D=this._data[0];return D?Math.max(0,D.length-this._source.startIndex):0},getItem:function(D){D+=this._source.startIndex;for(var F=[],M=this._data,U=0;U<M.length;U++){var B=M[U];F.push(B?B[D]:null)}return F},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:y,getItem:E,appendData:T},keyedColumns:{pure:!0,count:function(){var D=this._source.dimensionsDefine[0].name,F=this._data[D];return F?F.length:0},getItem:function(D){for(var F=[],M=this._source.dimensionsDefine,U=0;U<M.length;U++){var B=this._data[M[U].name];F.push(B?B[D]:null)}return F},appendData:function(D){var F=this._data;f(D,function(M,U){for(var B=F[U]||(F[U]=[]),j=0;j<(M||[]).length;j++)B.push(M[j])})}},original:{count:y,getItem:E,appendData:T},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(D,F){D=D-this._offset,F=F||[];for(var M=this._dimSize*D,U=0;U<this._dimSize;U++)F[U]=this._data[M+U];return F},appendData:function(D){this._data=D},clean:function(){this._offset+=this.count(),this._data=null}}};function y(){return this._data.length}function E(D){return this._data[D]}function T(D){for(var F=0;F<D.length;F++)this._data.push(D[F])}var w={arrayRows:S,objectRows:function(D,F,M,U){return M!=null?D[U]:D},keyedColumns:S,original:function(D,F,M,U){var B=r(D);return M==null||!(B instanceof Array)?B:B[M]},typedArray:S};function S(D,F,M,U){return M!=null?D[M]:D}var _={arrayRows:I,objectRows:function(D,F,M,U){return L(D[F],this._dimensionInfos[F])},keyedColumns:I,original:function(D,F,M,U){var B=D&&(D.value==null?D:D.value);return!this._rawData.pure&&i(D)&&(this.hasItemOption=!0),L(B instanceof Array?B[U]:B,this._dimensionInfos[F])},typedArray:function(D,F,M,U){return D[U]}};function I(D,F,M,U){return L(D[U],this._dimensionInfos[F])}function L(D,F){var M=F&&F.type;if(M==="ordinal"){var U=F&&F.ordinalMeta;return U?U.parseAndCollect(D):D}return M==="time"&&typeof D!="number"&&D!=null&&D!=="-"&&(D=+e(D)),D==null||D===""?NaN:+D}function N(D,F,M){if(!D)return;var U=D.getRawDataItem(F);if(U==null)return;var B=D.getProvider().getSource().sourceFormat,j,W,V=D.getDimensionInfo(M);return V&&(j=V.name,W=V.index),w[B](U,F,W,j)}function R(D,F,M){if(!D)return;var U=D.getProvider().getSource().sourceFormat;if(U!==u&&U!==h)return;var B=D.getRawDataItem(F);if(U===u&&!c(B)&&(B=null),B)return B[M]}k.DefaultDataProvider=p,k.defaultDimValueGetters=_,k.retrieveRawValue=N,k.retrieveRawAttr=R},L0Ub:function(H,k,d){var O=d("bYtY"),x=O.each,C=O.createHashMap,A=O.assert,b=d("Tghj"),g=b.__DEV__,f=C(["tooltip","label","itemName","itemId","seriesName"]);function c(n){var e={},l=e.encode={},t=C(),a=[],s=[],u=e.userOutput={dimensionNames:n.dimensions.slice(),encode:{}};x(n.dimensions,function(y){var E=n.getDimensionInfo(y),T=E.coordDim;if(T){var w=E.coordDimIndex;o(l,T)[w]=y,E.isExtraCoord||(t.set(T,1),i(E.type)&&(a[0]=y),o(u.encode,T)[w]=E.index),E.defaultTooltip&&s.push(y)}f.each(function(S,_){var I=o(l,_),L=E.otherDims[_];L!=null&&L!==!1&&(I[L]=E.name)})});var h=[],p={};t.each(function(y,E){var T=l[E];p[E]=T[0],h=h.concat(T)}),e.dataDimsOnCoord=h,e.encodeFirstDimNotExtra=p;var m=l.label;m&&m.length&&(a=m.slice());var v=l.tooltip;return v&&v.length?s=v.slice():s.length||(s=a.slice()),l.defaultedLabel=a,l.defaultedTooltip=s,e}function o(n,e){return n.hasOwnProperty(e)||(n[e]=[]),n[e]}function r(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function i(n){return!(n==="ordinal"||n==="time")}k.OTHER_DIMENSIONS=f,k.summarizeDimensions=c,k.getDimensionTypeByAxis=r},L3Oj:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("HjIi");d("HM/N"),d("9eas"),d("eS4l"),d("y4/Y"),d("as94"),O.registerLayout(x.curry(C,"bar")),O.extendComponentView({type:"polar"})},L41K:function(H,k,d){"use strict";d.d(k,"a",function(){return j});var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),b=d("lwsE"),g=d.n(b),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),l=d.n(e),t=d("BGR+"),a=d("VTBJ"),s=d("rePB"),u=d("Ff2n"),h=d("1OyB"),p=d("vuIU"),m=d("Ji7U"),v=d("LK+K"),y=d("Zm9Q"),E=d("TSYQ"),T=d.n(E),w=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function S(W){return typeof W=="string"}var _=function(W){Object(m.a)(z,W);var V=Object(v.a)(z);function z(){var J;return Object(h.a)(this,z),J=V.apply(this,arguments),J.onClick=function(){var q=J.props,de=q.onClick,ae=q.onStepClick,ve=q.stepIndex;de&&de.apply(void 0,arguments),ae(ve)},J}return Object(p.a)(z,[{key:"renderIconNode",value:function(){var q,de=this.props,ae=de.prefixCls,ve=de.progressDot,_e=de.stepIcon,Ie=de.stepNumber,He=de.status,me=de.title,ke=de.description,se=de.icon,te=de.iconPrefix,Ge=de.icons,oe,Y=T()("".concat(ae,"-icon"),"".concat(te,"icon"),(q={},Object(s.a)(q,"".concat(te,"icon-").concat(se),se&&S(se)),Object(s.a)(q,"".concat(te,"icon-check"),!se&&He==="finish"&&(Ge&&!Ge.finish||!Ge)),Object(s.a)(q,"".concat(te,"icon-cross"),!se&&He==="error"&&(Ge&&!Ge.error||!Ge)),q)),G=e.createElement("span",{className:"".concat(ae,"-icon-dot")});return ve?typeof ve=="function"?oe=e.createElement("span",{className:"".concat(ae,"-icon")},ve(G,{index:Ie-1,status:He,title:me,description:ke})):oe=e.createElement("span",{className:"".concat(ae,"-icon")},G):se&&!S(se)?oe=e.createElement("span",{className:"".concat(ae,"-icon")},se):Ge&&Ge.finish&&He==="finish"?oe=e.createElement("span",{className:"".concat(ae,"-icon")},Ge.finish):Ge&&Ge.error&&He==="error"?oe=e.createElement("span",{className:"".concat(ae,"-icon")},Ge.error):se||He==="finish"||He==="error"?oe=e.createElement("span",{className:Y}):oe=e.createElement("span",{className:"".concat(ae,"-icon")},Ie),_e&&(oe=_e({index:Ie-1,status:He,title:me,description:ke,node:oe})),oe}},{key:"render",value:function(){var q,de=this.props,ae=de.className,ve=de.prefixCls,_e=de.style,Ie=de.active,He=de.status,me=He===void 0?"wait":He,ke=de.iconPrefix,se=de.icon,te=de.wrapperStyle,Ge=de.stepNumber,oe=de.disabled,Y=de.description,G=de.title,Q=de.subTitle,ye=de.progressDot,ce=de.stepIcon,Te=de.tailContent,Se=de.icons,le=de.stepIndex,fe=de.onStepClick,Ee=de.onClick,Ve=Object(u.a)(de,w),vt=T()("".concat(ve,"-item"),"".concat(ve,"-item-").concat(me),ae,(q={},Object(s.a)(q,"".concat(ve,"-item-custom"),se),Object(s.a)(q,"".concat(ve,"-item-active"),Ie),Object(s.a)(q,"".concat(ve,"-item-disabled"),oe===!0),q)),et=Object(a.a)({},_e),Oe={};return fe&&!oe&&(Oe.role="button",Oe.tabIndex=0,Oe.onClick=this.onClick),e.createElement("div",Object.assign({},Ve,{className:vt,style:et}),e.createElement("div",Object.assign({onClick:Ee},Oe,{className:"".concat(ve,"-item-container")}),e.createElement("div",{className:"".concat(ve,"-item-tail")},Te),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,Q&&e.createElement("div",{title:typeof Q=="string"?Q:void 0,className:"".concat(ve,"-item-subtitle")},Q)),Y&&e.createElement("div",{className:"".concat(ve,"-item-description")},Y))))}}]),z}(e.Component),I=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],L=function(W){Object(m.a)(z,W);var V=Object(v.a)(z);function z(){var J;return Object(h.a)(this,z),J=V.apply(this,arguments),J.onStepClick=function(q){var de=J.props,ae=de.onChange,ve=de.current;ae&&ve!==q&&ae(q)},J}return Object(p.a)(z,[{key:"render",value:function(){var q,de=this,ae=this.props,ve=ae.prefixCls,_e=ae.style,Ie=_e===void 0?{}:_e,He=ae.className,me=ae.children,ke=ae.direction,se=ae.type,te=ae.labelPlacement,Ge=ae.iconPrefix,oe=ae.status,Y=ae.size,G=ae.current,Q=ae.progressDot,ye=ae.stepIcon,ce=ae.initial,Te=ae.icons,Se=ae.onChange,le=Object(u.a)(ae,I),fe=se==="navigation",Ee=Q?"vertical":te,Ve=T()(ve,"".concat(ve,"-").concat(ke),He,(q={},Object(s.a)(q,"".concat(ve,"-").concat(Y),Y),Object(s.a)(q,"".concat(ve,"-label-").concat(Ee),ke==="horizontal"),Object(s.a)(q,"".concat(ve,"-dot"),!!Q),Object(s.a)(q,"".concat(ve,"-navigation"),fe),q));return l.a.createElement("div",Object.assign({className:Ve,style:Ie},le),Object(y.a)(me).map(function(vt,et){var Oe=ce+et,Tt=Object(a.a)({stepNumber:"".concat(Oe+1),stepIndex:Oe,key:Oe,prefixCls:ve,iconPrefix:Ge,wrapperStyle:Ie,progressDot:Q,stepIcon:ye,icons:Te,onStepClick:Se&&de.onStepClick},vt.props);return oe==="error"&&et===G-1&&(Tt.className="".concat(ve,"-next-error")),vt.props.status||(Oe===G?Tt.status=oe:Oe<G?Tt.status="finish":Tt.status="wait"),Tt.active=Oe===G,Object(e.cloneElement)(vt,Tt)}))}}]),z}(l.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 N=L,R=d("NAnI"),D=d.n(R),F=d("V/uB"),M=d.n(F),U=d("H84U"),B=d("CFYs"),j=function(W){r()(z,W);var V=n()(z);function z(){var J;return g()(this,z),J=V.apply(this,arguments),J.renderSteps=function(q){var de=q.getPrefixCls,ae=q.direction,ve=de("steps",J.props.prefixCls),_e=de("",J.props.iconPrefix),Ie=J.props,He=Ie.percent,me=Ie.size,ke=T()(J.props.className,A()({},"".concat(ve,"-rtl"),ae==="rtl")),se={finish:e.createElement(D.a,{className:"".concat(ve,"-finish-icon")}),error:e.createElement(M.a,{className:"".concat(ve,"-error-icon")})},te=function(oe){var Y=oe.node,G=oe.status;if(G==="process"&&He!==void 0){var Q=me==="small"?32:40,ye=e.createElement("div",{className:"".concat(ve,"-progress-icon")},e.createElement(B.a,{type:"circle",percent:He,width:Q,strokeWidth:4,format:function(){return null}}),Y);return ye}return Y};return e.createElement(N,x()({icons:se},Object(t.default)(J.props,["progress"]),{stepIcon:te,prefixCls:ve,iconPrefix:_e,className:ke}))},J}return c()(z,[{key:"render",value:function(){return e.createElement(U.a,null,this.renderSteps)}}]),z}(e.Component);j.Step=N.Step,j.defaultProps={current:0}},L5E0:function(H,k){var d=["itemStyle","borderColor"];function O(x,C){var A=x.get("color");x.eachRawSeriesByType("boxplot",function(b){var g=A[b.seriesIndex%A.length],f=b.getData();f.setVisual({legendSymbol:"roundRect",color:b.get(d)||g}),x.isSeriesFiltered(b)||f.each(function(c){var o=f.getItemModel(c);f.setItemVisual(c,{color:o.get(d,!0)})})})}H.exports=O},LBfv:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=x.createHashMap,A=x.each;O.registerProcessor({getTargetSeries:function(b){var g=C();return b.eachComponent("dataZoom",function(f){f.eachTargetAxis(function(c,o,r){var i=r.getAxisProxy(c.name,o);A(i.getTargetSeriesModels(),function(n){g.set(n.uid,n)})})}),g},modifyOutputEnd:!0,overallReset:function(b,g){b.eachComponent("dataZoom",function(f){f.eachTargetAxis(function(c,o,r){r.getAxisProxy(c.name,o).reset(r,g)}),f.eachTargetAxis(function(c,o,r){r.getAxisProxy(c.name,o).filterData(r,g)})}),b.eachComponent("dataZoom",function(f){var c=f.findRepresentativeAxisProxy(),o=c.getDataPercentWindow(),r=c.getDataValueWindow();f.setCalculatedRange({start:o[0],end:o[1],startValue:r[0],endValue:r[1]})})}})},LCi9:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;function O(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function x(p,m){for(var v=0;v<m.length;v++){var y=m[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}function C(p,m,v){return m&&x(p.prototype,m),v&&x(p,v),p}var A=0,b=1,g=2,f=4,c=8,o=16,r=32,i=64,n=127,e=50,l=90,t=250,a=1e3,s=1e3,u=50,h=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(v){this.detach(),this._target=v,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(v){var y;v.stopPropagation(),v.preventDefault();switch(v.type){case"touchstart":y=this._touchStart;break;case"touchmove":y=this._touchMove;break;case"touchend":case"touchcancel":y=this._touchEnd;break}for(var E=0;E<v.changedTouches.length;E++){var T=v.changedTouches[E];y.call(this,T.identifier,T.clientX,T.clientY)}}},{key:"_touchStart",value:function(v,y,E){if(this._hasDetectedGesture()||this._state===A){this._ignored.push(v);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>t){this._state=A,this._ignored.push(v);return}if(this._waitingRelease){this._state=A,this._ignored.push(v);return}this._tracked.push({id:v,started:Date.now(),active:!0,firstX:y,firstY:E,lastX:y,lastY:E,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(b|c|o),this._stopLongpressTimeout();break;case 3:this._state&=~(g|r|i);break;default:this._state=A}}},{key:"_touchMove",value:function(v,y,E){var T=this._tracked.find(function(N){return N.id===v});if(T===void 0)return;T.lastX=y,T.lastY=E;var w=y-T.firstX,S=E-T.firstY;if((T.firstX!==T.lastX||T.firstY!==T.lastY)&&(T.angle=Math.atan2(S,w)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(w,S)<e)return;if(this._state&=~(b|g|f|o),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~c),this._tracked.length!==2&&(this._state&=~(r|i)),this._tracked.length===2){var _=this._tracked.find(function(N){return N.id!==v}),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>l?this._state&=~r:this._state&=~i,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}},{key:"_touchEnd",value:function(v,y,E){if(this._ignored.indexOf(v)!==-1){this._ignored.splice(this._ignored.indexOf(v),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=A),!this._hasDetectedGesture()&&(this._state&=~(c|r|i),this._state&=~o,this._stopLongpressTimeout(),!this._waitingRelease)){this._releaseStart=Date.now(),this._waitingRelease=!0;switch(this._tracked.length){case 1:this._state&=~(g|f);break;case 2:this._state&=~(b|f);break}}if(this._waitingRelease){Date.now()-this._releaseStart>t&&(this._state=A),this._tracked.some(function(S){return Date.now()-S.started>a})&&(this._state=A);var T=this._tracked.find(function(S){return S.id===v});if(T.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==A)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var w=0;w<this._tracked.length;w++)this._tracked[w].active&&this._ignored.push(this._tracked[w].id);this._tracked=[],this._state=A,this._ignored.indexOf(v)!==-1&&this._ignored.splice(this._ignored.indexOf(v),1),this._ignored.length===0&&(this._state=n,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===A||this._state&this._state-1?!1:!(this._state&(b|g|f)&&this._tracked.some(function(v){return v.active}))}},{key:"_startLongpressTimeout",value:function(){var v=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return v._longpressTimeout()},s)}},{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=o,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var v=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return v._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 v=this._getAverageMovement(),y=Math.abs(v.x),E=Math.abs(v.y),T=this._getAverageDistance(),w=Math.abs(Math.hypot(T.first.x,T.first.y)-Math.hypot(T.last.x,T.last.y));E<w&&y<w?this._state=i:this._state=r,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(v){var y={type:this._stateToGesture(this._state)},E=this._getPosition(),T=E.last;v==="gesturestart"&&(T=E.first);switch(this._state){case r:case i:T=E.first;break}if(y.clientX=T.x,y.clientY=T.y,this._state===i){var w=this._getAverageDistance();v==="gesturestart"?(y.magnitudeX=w.first.x,y.magnitudeY=w.first.y):(y.magnitudeX=w.last.x,y.magnitudeY=w.last.y)}else if(this._state===r)if(v==="gesturestart")y.magnitudeX=0,y.magnitudeY=0;else{var S=this._getAverageMovement();y.magnitudeX=S.x,y.magnitudeY=S.y}var _=new CustomEvent(v,{detail:y});this._target.dispatchEvent(_)}},{key:"_stateToGesture",value:function(v){switch(v){case b:return"onetap";case g:return"twotap";case f:return"threetap";case c:return"drag";case o:return"longpress";case r:return"twodrag";case i:return"pinch"}throw new Error("Unknown gesture state: "+v)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var v=this._tracked.length,y=0,E=0,T=0,w=0,S=0;S<this._tracked.length;S++)y+=this._tracked[S].firstX,E+=this._tracked[S].firstY,T+=this._tracked[S].lastX,w+=this._tracked[S].lastY;return{first:{x:y/v,y:E/v},last:{x:T/v,y:w/v}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var v,y;v=y=0;for(var E=this._tracked.length,T=0;T<this._tracked.length;T++)v+=this._tracked[T].lastX-this._tracked[T].firstX,y+=this._tracked[T].lastY-this._tracked[T].firstY;return{x:v/E,y:y/E}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var v=this._tracked[0],y=this._tracked[this._tracked.length-1],E=Math.abs(y.firstX-v.firstX),T=Math.abs(y.firstY-v.firstY),w=Math.abs(y.lastX-v.lastX),S=Math.abs(y.lastY-v.lastY);return{first:{x:E,y:T},last:{x:w,y:S}}}}]),p}();k.default=h},LPTA:function(H,k){var d=1;typeof window!="undefined"&&(d=Math.max(window.devicePixelRatio||1,1));var O=0,x=d;k.debugMode=O,k.devicePixelRatio=x},LPzL:function(H,k,d){var O=d("ProS");d("QzjZ"),d("vL6D"),d("xiyX"),d("y4/Y"),d("8Th4"),O.extendComponentView({type:"single"})},LSTS:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var O=function(){function n(e,l){for(var t=0;t<l.length;t++){var a=l[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,l,t){return l&&n(e.prototype,l),t&&n(e,t),e}}(),x=d("q1tI"),C=g(x),A=d("17x9"),b=g(A);function g(n){return n&&n.__esModule?n:{default:n}}function f(n,e){var l={};for(var t in n){if(e.indexOf(t)>=0)continue;if(!Object.prototype.hasOwnProperty.call(n,t))continue;l[t]=n[t]}return l}function c(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function o(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 i=function(n){r(e,n);function e(l){c(this,e);var t=o(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,l));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(s){}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,s=this.getParentElement(t),u=void 0;if(this.props.useWindow){var h=document.documentElement||document.body.parentNode||document.body,p=a.pageYOffset!==void 0?a.pageYOffset:h.scrollTop;this.props.isReverse?u=p:u=this.calculateOffset(t,p)}else this.props.isReverse?u=s.scrollTop:u=t.scrollHeight-s.scrollTop-s.clientHeight;u<Number(this.props.threshold)&&t&&t.offsetParent!==null&&(this.detachScrollListener(),this.beforeScrollHeight=s.scrollHeight,this.beforeScrollTop=s.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),s=a.children,u=a.element,h=a.hasMore,p=a.initialLoad,m=a.isReverse,v=a.loader,y=a.loadMore,E=a.pageStart,T=a.ref,w=a.threshold,S=a.useCapture,_=a.useWindow,I=a.getScrollParent,L=f(a,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);L.ref=function(R){t.scrollComponent=R,T&&T(R)};var N=[s];return h&&(v?m?N.unshift(v):N.push(v):this.defaultLoader&&(m?N.unshift(this.defaultLoader):N.push(this.defaultLoader))),C.default.createElement(u,L,N)}}]),e}(x.Component);i.propTypes={children:b.default.node.isRequired,element:b.default.node,hasMore:b.default.bool,initialLoad:b.default.bool,isReverse:b.default.bool,loader:b.default.node,loadMore:b.default.func.isRequired,pageStart:b.default.number,ref:b.default.func,getScrollParent:b.default.func,threshold:b.default.number,useCapture:b.default.bool,useWindow:b.default.bool},i.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},k.default=i,H.exports=k.default},Lerx:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("Mds0"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},Llu2:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="DeliveredProcedureOutlined";var f=k.a=x.forwardRef(g)},Lo0S:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.initLogging=g,k.getLogging=f,k.Error=k.Warn=k.Info=k.Debug=void 0;var O="warn",x=function(){};k.Debug=x;var C=function(){};k.Info=C;var A=function(){};k.Warn=A;var b=function(){};k.Error=b;function g(c){if(typeof c=="undefined"?c=O:O=c,k.Debug=x=k.Info=C=k.Warn=A=k.Error=b=function(){},typeof window.console!="undefined")switch(c){case"debug":k.Debug=x=console.debug.bind(window.console);case"info":k.Info=C=console.info.bind(window.console);case"warn":k.Warn=A=console.warn.bind(window.console);case"error":k.Error=b=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+c+"'")}}function f(){return O}g()},LtfV:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="InboxOutlined";var f=k.a=x.forwardRef(g)},Lyp1:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="QuestionCircleOutlined";var f=k.a=x.forwardRef(g)},LzGr:function(H,k,d){var O=d("ProS"),x=d("rnVJ");d("EMyp"),d("8x+h"),d("wt3j"),d("uOyE"),d("/stD"),O.registerPreprocessor(x)},MBQ8:function(H,k,d){var O=d("T4UG"),x=d("MwEJ"),C=O.extend({type:"series.__base_bar__",getInitialData:function(A,b){return x(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(A){var b=this.coordinateSystem;if(b){var g=b.dataToPoint(b.clampData(A)),f=this.getData(),c=f.getLayout("offset"),o=f.getLayout("size"),r=b.getBaseAxis().isHorizontal()?0:1;return g[r]+=c+o/2,g}return[NaN,NaN]},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",itemStyle:{},emphasis:{}}});H.exports=C},MEGo:function(H,k,d){var O=d("4fz+"),x=d("Dagg"),C=d("dqUG"),A=d("2fw6"),b=d("x6Kt"),g=d("rmlV"),f=d("yxFR"),c=d("y+Vt"),o=d("h7HQ"),r=d("1Jh7"),i=d("SKnc"),n=d("K2GJ"),e=d("Fofx"),l=d("NC18"),t=l.createFromString,a=d("bYtY"),s=a.isString,u=a.extend,h=a.defaults,p=a.trim,m=a.each,v=/[\s,]+/;function y(V){if(s(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 E(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}E.prototype.parse=function(V,z){z=z||{};var J=y(V);if(!J)throw new Error("Illegal svg");var q=new O;this._root=q;var de=J.getAttribute("viewBox")||"",ae=parseFloat(J.getAttribute("width")||z.width),ve=parseFloat(J.getAttribute("height")||z.height);isNaN(ae)&&(ae=null),isNaN(ve)&&(ve=null),N(J,q,null,!0);for(var _e=J.firstChild;_e;)this._parseNode(_e,q),_e=_e.nextSibling;var Ie,He;if(de){var me=p(de).split(v);me.length>=4&&(Ie={x:parseFloat(me[0]||0),y:parseFloat(me[1]||0),width:parseFloat(me[2]),height:parseFloat(me[3])})}if(Ie&&ae!=null&&ve!=null&&(He=j(Ie,ae,ve),!z.ignoreViewBox)){var ke=q;q=new O,q.add(ke),ke.scale=He.scale.slice(),ke.position=He.position.slice()}return!z.ignoreRootClip&&ae!=null&&ve!=null&&q.setClipPath(new b({shape:{x:0,y:0,width:ae,height:ve}})),{root:q,width:ae,height:ve,viewBoxRect:Ie,viewBoxTransform:He}},E.prototype._parseNode=function(V,z){var J=V.nodeName.toLowerCase();J==="defs"?this._isDefine=!0:J==="text"&&(this._isText=!0);var q;if(this._isDefine){var de=w[J];if(de){var ae=de.call(this,V),ve=V.getAttribute("id");ve&&(this._defs[ve]=ae)}}else{var de=T[J];de&&(q=de.call(this,V,z),z.add(q))}for(var _e=V.firstChild;_e;)_e.nodeType===1&&this._parseNode(_e,q),_e.nodeType===3&&this._isText&&this._parseText(_e,q),_e=_e.nextSibling;J==="defs"?this._isDefine=!1:J==="text"&&(this._isText=!1)},E.prototype._parseText=function(V,z){if(V.nodeType===1){var J=V.getAttribute("dx")||0,q=V.getAttribute("dy")||0;this._textX+=parseFloat(J),this._textY+=parseFloat(q)}var de=new C({style:{text:V.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});_(z,de),N(V,de,this._defs);var ae=de.style.fontSize;ae&&ae<9&&(de.style.fontSize=9,de.scale=de.scale||[1,1],de.scale[0]*=ae/9,de.scale[1]*=ae/9);var ve=de.getBoundingRect();return this._textX+=ve.width,z.add(de),de};var T={g:function(z,J){var q=new O;return _(J,q),N(z,q,this._defs),q},rect:function(z,J){var q=new b;return _(J,q),N(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,J){var q=new A;return _(J,q),N(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,J){var q=new f;return _(J,q),N(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,J){var q=new g;return _(J,q),N(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,J){var q=z.getAttribute("points");q&&(q=I(q));var de=new o({shape:{points:q||[]}});return _(J,de),N(z,de,this._defs),de},polyline:function(z,J){var q=new c;_(J,q),N(z,q,this._defs);var de=z.getAttribute("points");de&&(de=I(de));var ae=new r({shape:{points:de||[]}});return ae},image:function(z,J){var q=new x;return _(J,q),N(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,J){var q=z.getAttribute("x")||0,de=z.getAttribute("y")||0,ae=z.getAttribute("dx")||0,ve=z.getAttribute("dy")||0;this._textX=parseFloat(q)+parseFloat(ae),this._textY=parseFloat(de)+parseFloat(ve);var _e=new O;return _(J,_e),N(z,_e,this._defs),_e},tspan:function(z,J){var q=z.getAttribute("x"),de=z.getAttribute("y");q!=null&&(this._textX=parseFloat(q)),de!=null&&(this._textY=parseFloat(de));var ae=z.getAttribute("dx")||0,ve=z.getAttribute("dy")||0,_e=new O;return _(J,_e),N(z,_e,this._defs),this._textX+=ae,this._textY+=ve,_e},path:function(z,J){var q=z.getAttribute("d")||"",de=t(q);return _(J,de),N(z,de,this._defs),de}},w={lineargradient:function(z){var J=parseInt(z.getAttribute("x1")||0,10),q=parseInt(z.getAttribute("y1")||0,10),de=parseInt(z.getAttribute("x2")||10,10),ae=parseInt(z.getAttribute("y2")||0,10),ve=new i(J,q,de,ae);return S(z,ve),ve},radialgradient:function(z){}};function S(V,z){for(var J=V.firstChild;J;){if(J.nodeType===1){var q=J.getAttribute("offset");q.indexOf("%")>0?q=parseInt(q,10)/100:q?q=parseFloat(q):q=0;var de=J.getAttribute("stop-color")||"#000000";z.addColorStop(q,de)}J=J.nextSibling}}function _(V,z){V&&V.__inheritedStyle&&(z.__inheritedStyle||(z.__inheritedStyle={}),h(z.__inheritedStyle,V.__inheritedStyle))}function I(V){for(var z=p(V).split(v),J=[],q=0;q<z.length;q+=2){var de=parseFloat(z[q]),ae=parseFloat(z[q+1]);J.push([de,ae])}return J}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 N(V,z,J,q){var de=z.__inheritedStyle||{},ae=z.type==="text";if(V.nodeType===1&&(M(V,z),u(de,B(V)),!q)){for(var ve in L)if(L.hasOwnProperty(ve)){var _e=V.getAttribute(ve);_e!=null&&(de[L[ve]]=_e)}}var Ie=ae?"textFill":"fill",He=ae?"textStroke":"stroke";z.style=z.style||new n;var me=z.style;de.fill!=null&&me.set(Ie,D(de.fill,J)),de.stroke!=null&&me.set(He,D(de.stroke,J)),m(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(ke){var se=ke==="lineWidth"&&ae?"textStrokeWidth":ke;de[ke]!=null&&me.set(se,parseFloat(de[ke]))}),(!de.textBaseline||de.textBaseline==="auto")&&(de.textBaseline="alphabetic"),de.textBaseline==="alphabetic"&&(de.textBaseline="bottom"),de.textAlign==="start"&&(de.textAlign="left"),de.textAlign==="end"&&(de.textAlign="right"),m(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(ke){de[ke]!=null&&me.set(ke,de[ke])}),de.lineDash&&(z.style.lineDash=p(de.lineDash).split(v)),me[He]&&me[He]!=="none"&&(z[He]=!0),z.__inheritedStyle=de}var R=/url\(\s*#(.*?)\)/;function D(V,z){var J=z&&V&&V.match(R);if(J){var q=p(J[1]),de=z[q];return de}return V}var F=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function M(V,z){var J=V.getAttribute("transform");if(J){J=J.replace(/,/g," ");var q=null,de=[];J.replace(F,function(Ie,He,me){de.push(He,me)});for(var ae=de.length-1;ae>0;ae-=2){var ve=de[ae],_e=de[ae-1];q=q||e.create();switch(_e){case"translate":ve=p(ve).split(v),e.translate(q,q,[parseFloat(ve[0]),parseFloat(ve[1]||0)]);break;case"scale":ve=p(ve).split(v),e.scale(q,q,[parseFloat(ve[0]),parseFloat(ve[1]||ve[0])]);break;case"rotate":ve=p(ve).split(v),e.rotate(q,q,parseFloat(ve[0]));break;case"skew":ve=p(ve).split(v),console.warn("Skew transform is not supported yet");break;case"matrix":var ve=p(ve).split(v);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 U=/([^\s:;]+)\s*:\s*([^:;]+)/g;function B(V){var z=V.getAttribute("style"),J={};if(!z)return J;var q={};U.lastIndex=0;for(var de;(de=U.exec(z))!=null;)q[de[1]]=de[2];for(var ae in L)L.hasOwnProperty(ae)&&q[ae]!=null&&(J[L[ae]]=q[ae]);return J}function j(V,z,J){var q=z/V.width,de=J/V.height,ae=Math.min(q,de),ve=[ae,ae],_e=[-(V.x+V.width/2)*ae+z/2,-(V.y+V.height/2)*ae+J/2];return{scale:ve,position:_e}}function W(V,z){var J=new E;return J.parse(V,z)}k.parseXML=y,k.makeViewBoxTransform=j,k.parseSVG=W},MFOe:function(H,k,d){(function(O){var x=g(),C=f(),A=c(),b=typeof window!="undefined"?window:O;H.exports={assign:x,create:C,trim:A,bind:o,slice:r,each:i,map:n,pluck:e,isList:l,isFunction:t,isObject:a,Global:b};function g(){return Object.assign?Object.assign:function(u,h,p,m){for(var v=1;v<arguments.length;v++)i(Object(arguments[v]),function(y,E){u[E]=y});return u}}function f(){if(Object.create)return function(h,p,m,v){var y=r(arguments,1);return x.apply(this,[Object.create(h)].concat(y))};var s=function(){};return function(h,p,m,v){var y=r(arguments,1);return s.prototype=h,x.apply(this,[new s].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 o(s,u){return function(){return u.apply(s,Array.prototype.slice.call(arguments,0))}}function r(s,u){return Array.prototype.slice.call(s,u||0)}function i(s,u){e(s,function(h,p){return u(h,p),!1})}function n(s,u){var h=l(s)?[]:{};return e(s,function(p,m){return h[m]=u(p,m),!1}),h}function e(s,u){if(l(s)){for(var h=0;h<s.length;h++)if(u(s[h],h))return s[h]}else for(var p in s)if(s.hasOwnProperty(p)&&u(s[p],p))return s[p]}function l(s){return s!=null&&typeof s!="function"&&typeof s.length=="number"}function t(s){return s&&{}.toString.call(s)==="[object Function]"}function a(s){return s&&{}.toString.call(s)==="[object Object]"}}).call(this,d("yLpj"))},MH26:function(H,k,d){var O=d("bYtY"),x=d("YXkt"),C=d("OELB"),A=d("kj2x"),b=d("c8qY"),g=d("iPDy"),f=d("7hqr"),c=f.getStackedDimension,o=function(a,s,u,h){var p=a.getData(),m=h.type;if(!O.isArray(h)&&(m==="min"||m==="max"||m==="average"||m==="median"||h.xAxis!=null||h.yAxis!=null)){var v,y;if(h.yAxis!=null||h.xAxis!=null)v=s.getAxis(h.yAxis!=null?"y":"x"),y=O.retrieve(h.yAxis,h.xAxis);else{var E=A.getAxisInfo(h,p,s,a);v=E.valueAxis;var T=c(p,E.valueDataDim);y=A.numCalculate(p,T,m)}var w=v.dim==="x"?0:1,S=1-w,_=O.clone(h),I={};_.type=null,_.coord=[],I.coord=[],_.coord[S]=-Infinity,I.coord[S]=Infinity;var L=u.get("precision");L>=0&&typeof y=="number"&&(y=+y.toFixed(Math.min(L,20))),_.coord[w]=I.coord[w]=y,h=[_,I,{type:m,valueIndex:h.valueIndex,value:y}]}return h=[A.dataTransform(a,h[0]),A.dataTransform(a,h[1]),O.extend({},h[2])],h[2].type=h[2].type||"",O.merge(h[2],h[0]),O.merge(h[2],h[1]),h};function r(a){return!isNaN(a)&&!isFinite(a)}function i(a,s,u,h){var p=1-a,m=h.dimensions[a];return r(s[p])&&r(u[p])&&s[a]===u[a]&&h.getAxis(m).containData(s[a])}function n(a,s){if(a.type==="cartesian2d"){var u=s[0].coord,h=s[1].coord;if(u&&h&&(i(1,u,h,a)||i(0,u,h,a)))return!0}return A.dataFilter(a,s[0])&&A.dataFilter(a,s[1])}function e(a,s,u,h,p){var m=h.coordinateSystem,v=a.getItemModel(s),y,E=C.parsePercent(v.get("x"),p.getWidth()),T=C.parsePercent(v.get("y"),p.getHeight());if(!isNaN(E)&&!isNaN(T))y=[E,T];else{if(h.getMarkerPosition)y=h.getMarkerPosition(a.getValues(a.dimensions,s));else{var w=m.dimensions,S=a.get(w[0],s),_=a.get(w[1],s);y=m.dataToPoint([S,_])}if(m.type==="cartesian2d"){var I=m.getAxis("x"),L=m.getAxis("y"),w=m.dimensions;r(a.get(w[0],s))?y[0]=I.toGlobalCoord(I.getExtent()[u?0:1]):r(a.get(w[1],s))&&(y[1]=L.toGlobalCoord(L.getExtent()[u?0:1]))}isNaN(E)||(y[0]=E),isNaN(T)||(y[1]=T)}a.setItemLayout(s,y)}var l=g.extend({type:"markLine",updateTransform:function(a,s,u){s.eachSeries(function(h){var p=h.markLineModel;if(p){var m=p.getData(),v=p.__from,y=p.__to;v.each(function(E){e(v,E,!0,h,u),e(y,E,!1,h,u)}),m.each(function(E){m.setItemLayout(E,[v.getItemLayout(E),y.getItemLayout(E)])}),this.markerGroupMap.get(h.id).updateLayout()}},this)},renderSeries:function(a,s,u,h){var p=a.coordinateSystem,m=a.id,v=a.getData(),y=this.markerGroupMap,E=y.get(m)||y.set(m,new b);this.group.add(E.group);var T=t(p,a,s),w=T.from,S=T.to,_=T.line;s.__from=w,s.__to=S,s.setData(_);var I=s.get("symbol"),L=s.get("symbolSize");O.isArray(I)||(I=[I,I]),typeof L=="number"&&(L=[L,L]),T.from.each(function(R){N(w,R,!0),N(S,R,!1)}),_.each(function(R){var D=_.getItemModel(R).get("lineStyle.color");_.setItemVisual(R,{color:D||w.getItemVisual(R,"color")}),_.setItemLayout(R,[w.getItemLayout(R),S.getItemLayout(R)]),_.setItemVisual(R,{fromSymbolSize:w.getItemVisual(R,"symbolSize"),fromSymbol:w.getItemVisual(R,"symbol"),toSymbolSize:S.getItemVisual(R,"symbolSize"),toSymbol:S.getItemVisual(R,"symbol")})}),E.updateData(_),T.line.eachItemGraphicEl(function(R,D){R.traverse(function(F){F.dataModel=s})});function N(R,D,F){var M=R.getItemModel(D);e(R,D,F,a,h),R.setItemVisual(D,{symbolSize:M.get("symbolSize")||L[F?0:1],symbol:M.get("symbol",!0)||I[F?0:1],color:M.get("itemStyle.color")||v.getVisual("color")})}E.__keep=!0,E.group.silent=s.get("silent")||a.get("silent")}});function t(a,s,u){var h;a?h=O.map(a&&a.dimensions,function(T){var w=s.getData().getDimensionInfo(s.getData().mapDimension(T))||{};return O.defaults({name:T},w)}):h=[{name:"value",type:"float"}];var p=new x(h,u),m=new x(h,u),v=new x([],u),y=O.map(u.get("data"),O.curry(o,s,a,u));a&&(y=O.filter(y,O.curry(n,a)));var E=a?A.dimValueGetter:function(T){return T.value};return p.initData(O.map(y,function(T){return T[0]}),null,E),m.initData(O.map(y,function(T){return T[1]}),null,E),v.initData(O.map(y,function(T){return T[2]})),v.hasItemOption=!0,{from:p,to:m,line:v}}H.exports=l},MHoB:function(H,k,d){var O=d("bYtY"),x=d("6uqw"),C=d("OELB"),A=[20,140],b=x.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,o){b.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(r){r.mappingMethod="linear",r.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){b.superApply(this,"resetItemSize",arguments);var c=this.itemSize;this._orient==="horizontal"&&c.reverse(),(c[0]==null||isNaN(c[0]))&&(c[0]=A[0]),(c[1]==null||isNaN(c[1]))&&(c[1]=A[1])},_resetRange:function(){var c=this.getExtent(),o=this.option.range;!o||o.auto?(c.auto=1,this.option.range=c):O.isArray(o)&&(o[0]>o[1]&&o.reverse(),o[0]=Math.max(o[0],c[0]),o[1]=Math.min(o[1],c[1]))},completeVisualOption:function(){x.prototype.completeVisualOption.apply(this,arguments),O.each(this.stateList,function(c){var o=this.option.controller[c].symbolSize;o&&o[0]!==o[1]&&(o[0]=0)},this)},setSelected:function(c){this.option.range=c.slice(),this._resetRange()},getSelected:function(){var c=this.getExtent(),o=C.asc((this.get("range")||[]).slice());return o[0]>c[1]&&(o[0]=c[1]),o[1]>c[1]&&(o[1]=c[1]),o[0]<c[0]&&(o[0]=c[0]),o[1]<c[0]&&(o[1]=c[0]),o},getValueState:function(c){var o=this.option.range,r=this.getExtent();return(o[0]<=r[0]||o[0]<=c)&&(o[1]>=r[1]||c<=o[1])?"inRange":"outOfRange"},findTargetDataIndices:function(c){var o=[];return this.eachTargetSeries(function(r){var i=[],n=r.getData();n.each(this.getDataDimension(n),function(e,l){c[0]<=e&&e<=c[1]&&i.push(l)},this),o.push({seriesId:r.id,dataIndex:i})},this),o},getVisualMeta:function(c){var o=g(this,"outOfRange",this.getExtent()),r=g(this,"inRange",this.option.range.slice()),i=[];function n(h,p){i.push({value:h,color:c(h,p)})}for(var e=0,l=0,t=r.length,a=o.length;l<a&&(!r.length||o[l]<=r[0]);l++)o[l]<r[e]&&n(o[l],"outOfRange");for(var s=1;e<t;e++,s=0)s&&i.length&&n(r[e],"outOfRange"),n(r[e],"inRange");for(var s=1;l<a;l++)(!r.length||r[r.length-1]<o[l])&&(s&&(i.length&&n(i[i.length-1].value,"outOfRange"),s=0),n(o[l],"outOfRange"));var u=i.length;return{stops:i,outerColors:[u?i[0].color:"transparent",u?i[u-1].color:"transparent"]}}});function g(c,o,r){if(r[0]===r[1])return r.slice();for(var i=200,n=(r[1]-r[0])/i,e=r[0],l=[],t=0;t<=i&&e<r[1];t++)l.push(e),e+=n;return l.push(r[1]),l}var f=b;H.exports=f},MHtr:function(H,k,d){var O=d("bYtY");function x(A,b){var g=this.getAxis(),f=b instanceof Array?b[0]:b,c=(A instanceof Array?A[0]:A)/2;return g.type==="category"?g.getBandWidth():Math.abs(g.dataToCoord(f-c)-g.dataToCoord(f+c))}function C(A){var b=A.getRect();return{coordSys:{type:"singleAxis",x:b.x,y:b.y,width:b.width,height:b.height},api:{coord:function(g){return A.dataToPoint(g)},size:O.bind(x,A)}}}H.exports=C},MJZm:function(H,k,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),b=d("q1tI"),g=d("rePB"),f=d("VTBJ"),c=d("KQm4"),o=d("1OyB"),r=d("vuIU"),i=d("Ji7U"),n=d("LK+K"),e={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(_t){var Xe=_t.keyCode;if(_t.altKey&&!_t.ctrlKey||_t.metaKey||Xe>=e.F1&&Xe<=e.F12)return!1;switch(Xe){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(_t){if(_t>=e.ZERO&&_t<=e.NINE)return!0;if(_t>=e.NUM_ZERO&&_t<=e.NUM_MULTIPLY)return!0;if(_t>=e.A&&_t<=e.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&_t===0)return!0;switch(_t){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},l=e,t=d("xroW"),a=d("TSYQ"),s=d.n(a),u=d("FTAc"),h=d("wPhX"),p=d("c3jg"),m=d("ODXe"),v=d("Ff2n"),y=d("+nKL"),E=d("HTfv"),T=d("lr6o"),w=function(_t,Xe){var ie=_t.className,X=_t.style,Be=_t.motion,Ce=_t.motionNodes,Z=_t.motionType,nt=_t.onMotionStart,ct=_t.onMotionEnd,Qe=_t.active,dt=_t.treeNodeRequiredProps,Ft=Object(v.a)(_t,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),Lr=b.useState(!0),Wt=Object(m.a)(Lr,2),ar=Wt[0],Ut=Wt[1],kt=b.useContext(u.a),st=kt.prefixCls,Rr=b.useRef(!1),on=function(){Rr.current||ct(),Rr.current=!0};return Object(b.useEffect)(function(){Ce&&Z==="hide"&&ar&&Ut(!1)},[Ce]),Object(b.useEffect)(function(){return Ce&&nt(),function(){Ce&&on()}},[]),Ce?b.createElement(E.default,Object.assign({ref:Xe,visible:ar},Be,{motionAppear:Z==="show",onAppearEnd:on,onLeaveEnd:on}),function(Sn,zn){var Ii=Sn.className,yn=Sn.style;return b.createElement("div",{ref:zn,className:s()("".concat(st,"-treenode-motion"),Ii),style:yn},Ce.map(function(Nn){var jt=Nn.data,At=jt.key,Re=Object(v.a)(jt,["key"]),Ke=Nn.isStart,Pe=Nn.isEnd;delete Re.children;var at=Object(p.f)(At,dt);return b.createElement(T.a,Object.assign({},Re,at,{active:Qe,data:Nn.data,key:At,isStart:Ke,isEnd:Pe}))}))}):b.createElement(T.a,Object.assign({domRef:Xe,className:ie,style:X},Ft,{active:Qe}))};w.displayName="MotionTreeNode";var S=b.forwardRef(w),_=S;function I(){var It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Xe=It.length,ie=_t.length;if(Math.abs(Xe-ie)!==1)return{add:!1,key:null};function X(Be,Ce){var Z=new Map;Be.forEach(function(ct){Z.set(ct,!0)});var nt=Ce.filter(function(ct){return!Z.has(ct)});return nt.length===1?nt[0]:null}return Xe<ie?{add:!0,key:X(It,_t)}:{add:!1,key:X(_t,It)}}function L(It,_t,Xe){var ie=It.findIndex(function(Z){var nt=Z.data;return nt.key===Xe}),X=It[ie+1],Be=_t.findIndex(function(Z){var nt=Z.data;return nt.key===Xe});if(X){var Ce=_t.findIndex(function(Z){var nt=Z.data;return nt.key===X.data.key});return _t.slice(Be+1,Ce)}return _t.slice(Be+1)}var N={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},R=function(){},D="RC_TREE_MOTION_".concat(Math.random()),F={key:D},M={key:D,level:0,index:0,pos:"0",node:F},U={parent:null,children:[],pos:M.pos,data:F,isStart:[],isEnd:[]};function B(It,_t,Xe,ie){return _t===!1||!Xe?It:It.slice(0,Math.ceil(Xe/ie)+1)}function j(It){var _t=It.data.key,Xe=It.pos;return Object(p.e)(_t,Xe)}function W(It){for(var _t=String(It.data.key),Xe=It;Xe.parent;)Xe=Xe.parent,_t="".concat(Xe.data.key," > ").concat(_t);return _t}var V=function(_t,Xe){var ie=_t.prefixCls,X=_t.data,Be=_t.selectable,Ce=_t.checkable,Z=_t.expandedKeys,nt=_t.selectedKeys,ct=_t.checkedKeys,Qe=_t.loadedKeys,dt=_t.loadingKeys,Ft=_t.halfCheckedKeys,Lr=_t.keyEntities,Wt=_t.disabled,ar=_t.dragging,Ut=_t.dragOverNodeKey,kt=_t.dropPosition,st=_t.motion,Rr=_t.height,on=_t.itemHeight,Sn=_t.virtual,zn=_t.focusable,Ii=_t.activeItem,yn=_t.focused,Nn=_t.tabIndex,jt=_t.onKeyDown,At=_t.onFocus,Re=_t.onBlur,Ke=_t.onActiveChange,Pe=_t.onListChangeStart,at=_t.onListChangeEnd,wt=Object(v.a)(_t,["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"]),Rt=b.useRef(null);b.useImperativeHandle(Xe,function(){return{scrollTo:function(Ze){Rt.current.scrollTo(Ze)}}});var xt=b.useState(Z),Lt=Object(m.a)(xt,2),gr=Lt[0],Br=Lt[1],Et=b.useState(X),it=Object(m.a)(Et,2),rt=it[0],Pt=it[1],Ht=b.useState(X),bt=Object(m.a)(Ht,2),Gt=bt[0],ut=bt[1],Kt=b.useState([]),Ar=Object(m.a)(Kt,2),ir=Ar[0],pr=Ar[1],tn=b.useState(null),fn=Object(m.a)(tn,2),Mn=fn[0],Yn=fn[1];function si(){Pt(X),ut(X),pr([]),Yn(null),at()}b.useEffect(function(){Br(Z);var _i=I(gr,Z);if(_i.key!==null)if(_i.add){var Ze=rt.findIndex(function(qe){var yt=qe.data.key;return yt===_i.key}),we=B(L(rt,X,_i.key),Sn,Rr,on),Ne=rt.slice();Ne.splice(Ze+1,0,U),ut(Ne),pr(we),Yn("show")}else{var Fe=X.findIndex(function(qe){var yt=qe.data.key;return yt===_i.key}),Ye=B(L(X,rt,_i.key),Sn,Rr,on),We=X.slice();We.splice(Fe+1,0,U),ut(We),pr(Ye),Yn("hide")}else rt!==X&&(Pt(X),ut(X))},[Z,X]),b.useEffect(function(){ar||si()},[ar]);var vi=st?Gt:X,xi={expandedKeys:Z,selectedKeys:nt,loadedKeys:Qe,loadingKeys:dt,checkedKeys:ct,halfCheckedKeys:Ft,dragOverNodeKey:Ut,dropPosition:kt,keyEntities:Lr};return b.createElement(b.Fragment,null,yn&&Ii&&b.createElement("span",{style:N,"aria-live":"assertive"},W(Ii)),b.createElement("div",{role:"tree"},b.createElement("input",{style:N,disabled:zn===!1||Wt,tabIndex:zn!==!1?Nn:null,onKeyDown:jt,onFocus:At,onBlur:Re,value:"",onChange:R})),b.createElement(y.a,Object.assign({},wt,{data:vi,itemKey:j,height:Rr,fullHeight:!1,virtual:Sn,itemHeight:on,prefixCls:"".concat(ie,"-list"),ref:Rt}),function(_i){var Ze=_i.pos,we=_i.data,Ne=we.key,Fe=Object(v.a)(we,["key"]),Ye=_i.isStart,We=_i.isEnd,qe=Object(p.e)(Ne,Ze);delete Fe.children;var yt=Object(p.f)(qe,xi);return b.createElement(_,Object.assign({},Fe,yt,{active:Ii&&Ne===Ii.data.key,pos:Ze,data:_i.data,isStart:Ye,isEnd:We,motion:st,motionNodes:Ne===D?ir:null,motionType:Mn,onMotionStart:Pe,onMotionEnd:si,treeNodeRequiredProps:xi,onMouseMove:function(){Ke(null)}}))}))},z=b.forwardRef(V);z.displayName="NodeList";var J=z,q=d("qOx5"),de=function(It){Object(i.a)(Xe,It);var _t=Object(n.a)(Xe);function Xe(){var ie;return Object(o.a)(this,Xe),ie=_t.apply(this,arguments),ie.destroyed=!1,ie.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},ie.listRef=b.createRef(),ie.onNodeDragStart=function(X,Be){var Ce=ie.state,Z=Ce.expandedKeys,nt=Ce.keyEntities,ct=ie.props.onDragStart,Qe=Be.props.eventKey;ie.dragNode=Be;var dt=Object(h.b)(Z,Qe);ie.setState({dragging:!0,dragNodesKeys:Object(h.g)(Qe,nt)}),ie.setExpandedKeys(dt),ct&&ct({event:X,node:Object(p.b)(Be.props)})},ie.onNodeDragEnter=function(X,Be){var Ce=ie.state,Z=Ce.expandedKeys,nt=Ce.keyEntities,ct=Ce.dragNodesKeys,Qe=ie.props.onDragEnter,dt=Be.props,Ft=dt.pos,Lr=dt.eventKey;if(!ie.dragNode||ct.indexOf(Lr)!==-1)return;var Wt=Object(h.c)(X,Be);if(ie.dragNode.props.eventKey===Lr&&Wt===0){ie.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){ie.setState({dragOverNodeKey:Lr,dropPosition:Wt}),ie.delayedDragEnterLogic||(ie.delayedDragEnterLogic={}),Object.keys(ie.delayedDragEnterLogic).forEach(function(ar){clearTimeout(ie.delayedDragEnterLogic[ar])}),ie.delayedDragEnterLogic[Ft]=window.setTimeout(function(){if(!ie.state.dragging)return;var ar=Object(c.a)(Z),Ut=nt[Lr];Ut&&(Ut.children||[]).length&&(ar=Object(h.a)(Z,Lr)),"expandedKeys"in ie.props||ie.setExpandedKeys(ar),Qe&&Qe({event:X,node:Object(p.b)(Be.props),expandedKeys:ar})},400)},0)},ie.onNodeDragOver=function(X,Be){var Ce=ie.state.dragNodesKeys,Z=ie.props.onDragOver,nt=Be.props.eventKey;if(Ce.indexOf(nt)!==-1)return;if(ie.dragNode&&nt===ie.state.dragOverNodeKey){var ct=Object(h.c)(X,Be);if(ct===ie.state.dropPosition)return;ie.setState({dropPosition:ct})}Z&&Z({event:X,node:Object(p.b)(Be.props)})},ie.onNodeDragLeave=function(X,Be){var Ce=ie.props.onDragLeave;ie.setState({dragOverNodeKey:""}),Ce&&Ce({event:X,node:Object(p.b)(Be.props)})},ie.onNodeDragEnd=function(X,Be){var Ce=ie.props.onDragEnd;ie.setState({dragOverNodeKey:""}),ie.cleanDragState(),Ce&&Ce({event:X,node:Object(p.b)(Be.props)}),ie.dragNode=null},ie.onNodeDrop=function(X,Be){var Ce=ie.state,Z=Ce.dragNodesKeys,nt=Z===void 0?[]:Z,ct=Ce.dropPosition,Qe=ie.props.onDrop,dt=Be.props,Ft=dt.eventKey,Lr=dt.pos;if(ie.setState({dragOverNodeKey:""}),ie.cleanDragState(),nt.indexOf(Ft)!==-1){Object(t.a)(!1,"Can not drop to dragNode(include it's children node)");return}var Wt=Object(h.k)(Lr),ar={event:X,node:Object(p.b)(Be.props),dragNode:ie.dragNode?Object(p.b)(ie.dragNode.props):null,dragNodesKeys:nt.slice(),dropPosition:ct+Number(Wt[Wt.length-1]),dropToGap:!1};ct!==0&&(ar.dropToGap=!0),Qe&&Qe(ar),ie.dragNode=null},ie.cleanDragState=function(){var X=ie.state.dragging;X&&ie.setState({dragging:!1})},ie.onNodeClick=function(X,Be){var Ce=ie.props.onClick;Ce&&Ce(X,Be)},ie.onNodeDoubleClick=function(X,Be){var Ce=ie.props.onDoubleClick;Ce&&Ce(X,Be)},ie.onNodeSelect=function(X,Be){var Ce=ie.state.selectedKeys,Z=ie.state.keyEntities,nt=ie.props,ct=nt.onSelect,Qe=nt.multiple,dt=Be.selected,Ft=Be.key,Lr=!dt;Lr?Qe?Ce=Object(h.a)(Ce,Ft):Ce=[Ft]:Ce=Object(h.b)(Ce,Ft);var Wt=Ce.map(function(ar){var Ut=Z[ar];return Ut?Ut.node:null}).filter(function(ar){return ar});ie.setUncontrolledState({selectedKeys:Ce}),ct&&ct(Ce,{event:"select",selected:Lr,node:Be,selectedNodes:Wt,nativeEvent:X.nativeEvent})},ie.onNodeCheck=function(X,Be,Ce){var Z=ie.state,nt=Z.keyEntities,ct=Z.checkedKeys,Qe=Z.halfCheckedKeys,dt=ie.props,Ft=dt.checkStrictly,Lr=dt.onCheck,Wt=Be.key,ar,Ut={event:"check",node:Be,checked:Ce,nativeEvent:X.nativeEvent};if(Ft){var kt=Ce?Object(h.a)(ct,Wt):Object(h.b)(ct,Wt),st=Object(h.b)(Qe,Wt);ar={checked:kt,halfChecked:st},Ut.checkedNodes=kt.map(function(yn){return nt[yn]}).filter(function(yn){return yn}).map(function(yn){return yn.node}),ie.setUncontrolledState({checkedKeys:kt})}else{var Rr=Object(q.a)([].concat(Object(c.a)(ct),[Wt]),!0,nt),on=Rr.checkedKeys,Sn=Rr.halfCheckedKeys;if(!Ce){var zn=new Set(on);zn.delete(Wt);var Ii=Object(q.a)(Array.from(zn),{checked:!1,halfCheckedKeys:Sn},nt);on=Ii.checkedKeys,Sn=Ii.halfCheckedKeys}ar=on,Ut.checkedNodes=[],Ut.checkedNodesPositions=[],Ut.halfCheckedKeys=Sn,on.forEach(function(yn){var Nn=nt[yn];if(!Nn)return;var jt=Nn.node,At=Nn.pos;Ut.checkedNodes.push(jt),Ut.checkedNodesPositions.push({node:jt,pos:At})}),ie.setUncontrolledState({checkedKeys:on},!1,{halfCheckedKeys:Sn})}Lr&&Lr(ar,Ut)},ie.onNodeLoad=function(X){return new Promise(function(Be){ie.setState(function(Ce){var Z=Ce.loadedKeys,nt=Z===void 0?[]:Z,ct=Ce.loadingKeys,Qe=ct===void 0?[]:ct,dt=ie.props,Ft=dt.loadData,Lr=dt.onLoad,Wt=X.key;if(!Ft||nt.indexOf(Wt)!==-1||Qe.indexOf(Wt)!==-1)return{};var ar=Ft(X);return ar.then(function(){var Ut=ie.state,kt=Ut.loadedKeys,st=Ut.loadingKeys,Rr=Object(h.a)(kt,Wt),on=Object(h.b)(st,Wt);Lr&&Lr(Rr,{event:"load",node:X}),ie.setUncontrolledState({loadedKeys:Rr}),ie.setState({loadingKeys:on}),Be()}),{loadingKeys:Object(h.a)(Qe,Wt)}})})},ie.onNodeMouseEnter=function(X,Be){var Ce=ie.props.onMouseEnter;Ce&&Ce({event:X,node:Be})},ie.onNodeMouseLeave=function(X,Be){var Ce=ie.props.onMouseLeave;Ce&&Ce({event:X,node:Be})},ie.onNodeContextMenu=function(X,Be){var Ce=ie.props.onRightClick;Ce&&(X.preventDefault(),Ce({event:X,node:Be}))},ie.onFocus=function(){var X=ie.props.onFocus;ie.setState({focused:!0}),X&&X.apply(void 0,arguments)},ie.onBlur=function(){var X=ie.props.onBlur;ie.setState({focused:!1}),ie.onActiveChange(null),X&&X.apply(void 0,arguments)},ie.getTreeNodeRequiredProps=function(){var X=ie.state,Be=X.expandedKeys,Ce=X.selectedKeys,Z=X.loadedKeys,nt=X.loadingKeys,ct=X.checkedKeys,Qe=X.halfCheckedKeys,dt=X.dragOverNodeKey,Ft=X.dropPosition,Lr=X.keyEntities;return{expandedKeys:Be||[],selectedKeys:Ce||[],loadedKeys:Z||[],loadingKeys:nt||[],checkedKeys:ct||[],halfCheckedKeys:Qe||[],dragOverNodeKey:dt,dropPosition:Ft,keyEntities:Lr}},ie.setExpandedKeys=function(X){var Be=ie.state.treeData,Ce=Object(p.d)(Be,X);ie.setUncontrolledState({expandedKeys:X,flattenNodes:Ce},!0)},ie.onNodeExpand=function(X,Be){var Ce=ie.state.expandedKeys,Z=ie.state.listChanging,nt=ie.props,ct=nt.onExpand,Qe=nt.loadData,dt=Be.key,Ft=Be.expanded;if(Z)return;var Lr=Ce.indexOf(dt),Wt=!Ft;if(Object(t.a)(Ft&&Lr!==-1||!Ft&&Lr===-1,"Expand state not sync with index check"),Wt?Ce=Object(h.a)(Ce,dt):Ce=Object(h.b)(Ce,dt),ie.setExpandedKeys(Ce),ct&&ct(Ce,{node:Be,expanded:Wt,nativeEvent:X.nativeEvent}),Wt&&Qe){var ar=ie.onNodeLoad(Be);ar&&ar.then(function(){var Ut=Object(p.d)(ie.state.treeData,Ce);ie.setUncontrolledState({flattenNodes:Ut})})}},ie.onListChangeStart=function(){ie.setUncontrolledState({listChanging:!0})},ie.onListChangeEnd=function(){setTimeout(function(){ie.setUncontrolledState({listChanging:!1})})},ie.onActiveChange=function(X){var Be=ie.state.activeKey,Ce=ie.props.onActiveChange;if(Be===X)return;ie.setState({activeKey:X}),X!==null&&ie.scrollTo({key:X}),Ce&&Ce(X)},ie.getActiveItem=function(){var X=ie.state,Be=X.activeKey,Ce=X.flattenNodes;return Be===null?null:Ce.find(function(Z){var nt=Z.data.key;return nt===Be})||null},ie.offsetActiveKey=function(X){var Be=ie.state,Ce=Be.flattenNodes,Z=Be.activeKey,nt=Ce.findIndex(function(dt){var Ft=dt.data.key;return Ft===Z});nt===-1&&X<0&&(nt=Ce.length),nt=(nt+X+Ce.length)%Ce.length;var ct=Ce[nt];if(ct){var Qe=ct.data.key;ie.onActiveChange(Qe)}else ie.onActiveChange(null)},ie.onKeyDown=function(X){var Be=ie.state,Ce=Be.activeKey,Z=Be.expandedKeys,nt=Be.checkedKeys,ct=ie.props,Qe=ct.onKeyDown,dt=ct.checkable,Ft=ct.selectable;switch(X.which){case l.UP:{ie.offsetActiveKey(-1),X.preventDefault();break}case l.DOWN:{ie.offsetActiveKey(1),X.preventDefault();break}}var Lr=ie.getActiveItem();if(Lr&&Lr.data){var Wt=ie.getTreeNodeRequiredProps(),ar=Lr.data.isLeaf===!1||!!(Lr.data.children||[]).length,Ut=Object(p.b)(Object(f.a)(Object(f.a)({},Object(p.f)(Ce,Wt)),{},{data:Lr.data,active:!0}));switch(X.which){case l.LEFT:{ar&&Z.includes(Ce)?ie.onNodeExpand({},Ut):Lr.parent&&ie.onActiveChange(Lr.parent.data.key),X.preventDefault();break}case l.RIGHT:{ar&&!Z.includes(Ce)?ie.onNodeExpand({},Ut):Lr.children&&Lr.children.length&&ie.onActiveChange(Lr.children[0].data.key),X.preventDefault();break}case l.ENTER:case l.SPACE:{dt&&!Ut.disabled&&Ut.checkable!==!1&&!Ut.disableCheckbox?ie.onNodeCheck({},Ut,!nt.includes(Ce)):!dt&&Ft&&!Ut.disabled&&Ut.selectable!==!1&&ie.onNodeSelect({},Ut);break}}}Qe&&Qe(X)},ie.setUncontrolledState=function(X){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(ie.destroyed)return;var Z=!1,nt=!0,ct={};Object.keys(X).forEach(function(Qe){if(Qe in ie.props){nt=!1;return}Z=!0,ct[Qe]=X[Qe]}),Z&&(!Be||nt)&&ie.setState(Object(f.a)(Object(f.a)({},ct),Ce))},ie.scrollTo=function(X){ie.listRef.current.scrollTo(X)},ie}return Object(r.a)(Xe,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var X,Be=this.state,Ce=Be.focused,Z=Be.flattenNodes,nt=Be.keyEntities,ct=Be.dragging,Qe=Be.activeKey,dt=this.props,Ft=dt.prefixCls,Lr=dt.className,Wt=dt.style,ar=dt.showLine,Ut=dt.focusable,kt=dt.tabIndex,st=kt===void 0?0:kt,Rr=dt.selectable,on=dt.showIcon,Sn=dt.icon,zn=dt.switcherIcon,Ii=dt.draggable,yn=dt.checkable,Nn=dt.checkStrictly,jt=dt.disabled,At=dt.motion,Re=dt.loadData,Ke=dt.filterTreeNode,Pe=dt.height,at=dt.itemHeight,wt=dt.virtual,Rt=dt.titleRender,xt=dt.onContextMenu,Lt=Object(h.f)(this.props);return b.createElement(u.a.Provider,{value:{prefixCls:Ft,selectable:Rr,showIcon:on,icon:Sn,switcherIcon:zn,draggable:Ii,checkable:yn,checkStrictly:Nn,disabled:jt,keyEntities:nt,loadData:Re,filterTreeNode:Ke,titleRender:Rt,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}},b.createElement("div",{className:s()(Ft,Lr,(X={},Object(g.a)(X,"".concat(Ft,"-show-line"),ar),Object(g.a)(X,"".concat(Ft,"-focused"),Ce),Object(g.a)(X,"".concat(Ft,"-active-focused"),Qe!==null),X))},b.createElement(J,Object.assign({ref:this.listRef,prefixCls:Ft,style:Wt,data:Z,disabled:jt,selectable:Rr,checkable:!!yn,motion:At,dragging:ct,height:Pe,itemHeight:at,virtual:wt,focusable:Ut,focused:Ce,tabIndex:st,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:xt},this.getTreeNodeRequiredProps(),Lt))))}}],[{key:"getDerivedStateFromProps",value:function(X,Be){var Ce=Be.prevProps,Z={prevProps:X};function nt(Sn){return!Ce&&Sn in X||Ce&&Ce[Sn]!==X[Sn]}var ct;if(nt("treeData")?ct=X.treeData:nt("children")&&(Object(t.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ct=Object(p.c)(X.children)),ct){Z.treeData=ct;var Qe=Object(p.a)(ct);Z.keyEntities=Object(f.a)(Object(g.a)({},D,M),Qe.keyEntities)}var dt=Z.keyEntities||Be.keyEntities;if(nt("expandedKeys")||Ce&&nt("autoExpandParent"))Z.expandedKeys=X.autoExpandParent||!Ce&&X.defaultExpandParent?Object(h.e)(X.expandedKeys,dt):X.expandedKeys;else if(!Ce&&X.defaultExpandAll){var Ft=Object(f.a)({},dt);delete Ft[D],Z.expandedKeys=Object.keys(Ft).map(function(Sn){return Ft[Sn].key})}else!Ce&&X.defaultExpandedKeys&&(Z.expandedKeys=X.autoExpandParent||X.defaultExpandParent?Object(h.e)(X.defaultExpandedKeys,dt):X.defaultExpandedKeys);if(Z.expandedKeys||delete Z.expandedKeys,ct||Z.expandedKeys){var Lr=Object(p.d)(ct||Be.treeData,Z.expandedKeys||Be.expandedKeys);Z.flattenNodes=Lr}if(X.selectable&&(nt("selectedKeys")?Z.selectedKeys=Object(h.d)(X.selectedKeys,X):!Ce&&X.defaultSelectedKeys&&(Z.selectedKeys=Object(h.d)(X.defaultSelectedKeys,X))),X.checkable){var Wt;if(nt("checkedKeys")?Wt=Object(h.j)(X.checkedKeys)||{}:!Ce&&X.defaultCheckedKeys?Wt=Object(h.j)(X.defaultCheckedKeys)||{}:ct&&(Wt=Object(h.j)(X.checkedKeys)||{checkedKeys:Be.checkedKeys,halfCheckedKeys:Be.halfCheckedKeys}),Wt){var ar=Wt,Ut=ar.checkedKeys,kt=Ut===void 0?[]:Ut,st=ar.halfCheckedKeys,Rr=st===void 0?[]:st;if(!X.checkStrictly){var on=Object(q.a)(kt,!0,dt);kt=on.checkedKeys,Rr=on.halfCheckedKeys}Z.checkedKeys=kt,Z.halfCheckedKeys=Rr}}return nt("loadedKeys")&&(Z.loadedKeys=X.loadedKeys),Z}}]),Xe}(b.Component);de.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:[]},de.TreeNode=T.a;var ae=de,ve=ae,_e=d("RIqP"),Ie=d.n(_e),He=d("J4zp"),me=d.n(He),ke=d("sEfC"),se=d.n(ke),te=d("vk+C"),Ge=d.n(te),oe=d("Vy0f"),Y=d.n(oe),G=d("kGiB"),Q=d.n(G),ye=d("H84U"),ce;(function(It){It[It.None=0]="None",It[It.Start=1]="Start",It[It.End=2]="End"})(ce||(ce={}));function Te(It,_t){function Xe(ie){var X=ie.key,Be=ie.children;_t(X,ie)!==!1&&Te(Be||[],_t)}It.forEach(Xe)}function Se(It){var _t=It.treeData,Xe=It.expandedKeys,ie=It.startKey,X=It.endKey,Be=[],Ce=ce.None;if(ie&&ie===X)return[ie];if(!ie||!X)return[];function Z(nt){return nt===ie||nt===X}return Te(_t,function(nt){if(Ce===ce.End)return!1;if(Z(nt)){if(Be.push(nt),Ce===ce.None)Ce=ce.Start;else if(Ce===ce.Start)return Ce=ce.End,!1}else Ce===ce.Start&&Be.push(nt);return!(Xe.indexOf(nt)===-1)}),Be}function le(It,_t){var Xe=Ie()(_t),ie=[];return Te(It,function(X,Be){var Ce=Xe.indexOf(X);return Ce!==-1&&(ie.push(Be),Xe.splice(Ce,1)),!!Xe.length}),ie}var fe=function(It,_t){var Xe={};for(var ie in It)Object.prototype.hasOwnProperty.call(It,ie)&&_t.indexOf(ie)<0&&(Xe[ie]=It[ie]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,ie=Object.getOwnPropertySymbols(It);X<ie.length;X++)_t.indexOf(ie[X])<0&&Object.prototype.propertyIsEnumerable.call(It,ie[X])&&(Xe[ie[X]]=It[ie[X]]);return Xe};function Ee(It){var _t=It.isLeaf,Xe=It.expanded;return _t?b.createElement(Ge.a,null):Xe?b.createElement(Y.a,null):b.createElement(Q.a,null)}function Ve(It){var _t=It.treeData,Xe=It.children;return _t||Object(p.c)(Xe)}var vt=function(_t,Xe){var ie=_t.defaultExpandAll,X=_t.defaultExpandParent,Be=_t.defaultExpandedKeys,Ce=fe(_t,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),Z=b.useRef(),nt=b.useRef(),ct=b.createRef();b.useImperativeHandle(Xe,function(){return ct.current});var Qe=function(){var xt=Object(p.a)(Ve(Ce)),Lt=xt.keyEntities,gr;return ie?gr=Object.keys(Lt):X?gr=Object(h.e)(Ce.expandedKeys||Be,Lt):gr=Ce.expandedKeys||Be,gr},dt=b.useState(Ce.selectedKeys||Ce.defaultSelectedKeys||[]),Ft=me()(dt,2),Lr=Ft[0],Wt=Ft[1],ar=b.useState(Qe()),Ut=me()(ar,2),kt=Ut[0],st=Ut[1];b.useEffect(function(){"selectedKeys"in Ce&&Wt(Ce.selectedKeys)},[Ce.selectedKeys]),b.useEffect(function(){"expandedKeys"in Ce&&st(Ce.expandedKeys)},[Ce.expandedKeys]);var Rr=function(xt,Lt){var gr=Lt.isLeaf;if(gr||xt.shiftKey||xt.metaKey||xt.ctrlKey)return;ct.current.onNodeExpand(xt,Lt)},on=se()(Rr,200,{leading:!0}),Sn=function(xt,Lt){return"expandedKeys"in Ce||st(xt),Ce.onExpand?Ce.onExpand(xt,Lt):void 0},zn=function(xt,Lt){var gr=Ce.expandAction;gr==="click"&&on(xt,Lt),Ce.onClick&&Ce.onClick(xt,Lt)},Ii=function(xt,Lt){var gr=Ce.expandAction;gr==="doubleClick"&&on(xt,Lt),Ce.onDoubleClick&&Ce.onDoubleClick(xt,Lt)},yn=function(xt,Lt){var gr=Ce.multiple,Br=Lt.node,Et=Lt.nativeEvent,it=Br.key,rt=it===void 0?"":it,Pt=Ve(Ce),Ht=A()(A()({},Lt),{selected:!0}),bt=Et.ctrlKey||Et.metaKey,Gt=Et.shiftKey,ut;gr&&bt?(ut=xt,Z.current=rt,nt.current=ut,Ht.selectedNodes=le(Pt,ut)):gr&&Gt?(ut=Array.from(new Set([].concat(Ie()(nt.current||[]),Ie()(Se({treeData:Pt,expandedKeys:kt,startKey:rt,endKey:Z.current}))))),Ht.selectedNodes=le(Pt,ut)):(ut=[rt],Z.current=rt,nt.current=ut,Ht.selectedNodes=le(Pt,ut)),Ce.onSelect&&Ce.onSelect(ut,Ht),"selectedKeys"in Ce||Wt(ut)},Nn=b.useContext(ye.b),jt=Nn.getPrefixCls,At=Nn.direction,Re=Ce.prefixCls,Ke=Ce.className,Pe=fe(Ce,["prefixCls","className"]),at=jt("tree",Re),wt=s()("".concat(at,"-directory"),Ke,x()({},"".concat(at,"-directory-rtl"),At==="rtl"));return b.createElement(Mt,A()({icon:Ee,ref:ct,blockNode:!0},Pe,{prefixCls:at,className:wt,expandedKeys:kt,selectedKeys:Lr,onSelect:yn,onClick:zn,onDoubleClick:Ii,onExpand:Sn}))},et=b.forwardRef(vt);et.displayName="DirectoryTree",et.defaultProps={showIcon:!0,expandAction:"click"};var Oe=et,Tt=d("EXcs"),Je=d("2jpz"),St=b.forwardRef(function(It,_t){var Xe,ie=b.useContext(ye.b),X=ie.getPrefixCls,Be=ie.direction,Ce=ie.virtual,Z=It.prefixCls,nt=It.className,ct=It.showIcon,Qe=It.showLine,dt=It.switcherIcon,Ft=It.blockNode,Lr=It.children,Wt=It.checkable,ar=A()(A()({},It),{showLine:Boolean(Qe)}),Ut=X("tree",Z);return b.createElement(ve,A()({itemHeight:20,ref:_t,virtual:Ce},ar,{prefixCls:Ut,className:s()(nt,(Xe={},x()(Xe,"".concat(Ut,"-icon-hide"),!ct),x()(Xe,"".concat(Ut,"-block-node"),Ft),x()(Xe,"".concat(Ut,"-rtl"),Be==="rtl"),Xe)),checkable:Wt&&b.createElement("span",{className:"".concat(Ut,"-checkbox-inner")}),switcherIcon:function(st){return Object(Je.a)(Ut,dt,Qe,st)}}),Lr)});St.TreeNode=T.a,St.DirectoryTree=Oe,St.defaultProps={checkable:!1,showIcon:!1,motion:A()(A()({},Tt.a),{motionAppear:!1}),blockNode:!1};var Mt=St,er=k.a=Mt},MKOG:function(H,k,d){var O=d("bYtY"),x=d("YH21"),C=x.Dispatcher,A=d("mLcG"),b=d("Bq2U"),g=function(o){o=o||{},this.stage=o.stage||{},this.onframe=o.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,C.call(this)};g.prototype={constructor:g,addClip:function(o){this._clips.push(o)},addAnimator:function(o){o.animation=this;for(var r=o.getClips(),i=0;i<r.length;i++)this.addClip(r[i])},removeClip:function(o){var r=O.indexOf(this._clips,o);r>=0&&this._clips.splice(r,1)},removeAnimator:function(o){for(var r=o.getClips(),i=0;i<r.length;i++)this.removeClip(r[i]);o.animation=null},_update:function(){for(var o=new Date().getTime()-this._pausedTime,r=o-this._time,i=this._clips,n=i.length,e=[],l=[],t=0;t<n;t++){var a=i[t],s=a.step(o,r);s&&(e.push(s),l.push(a))}for(var t=0;t<n;)i[t]._needsRemove?(i[t]=i[n-1],i.pop(),n--):t++;n=e.length;for(var t=0;t<n;t++)l[t].fire(e[t]);this._time=o,this.onframe(r),this.trigger("frame",r),this.stage.update&&this.stage.update()},_startLoop:function(){var o=this;this._running=!0;function r(){o._running&&(A(r),!o._paused&&o._update())}A(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(o,r){r=r||{};var i=new b(o,r.loop,r.getter,r.setter);return this.addAnimator(i),i}},O.mixin(g,C);var f=g;H.exports=f},MRoa:function(H,k,d){var O=d("ProS");d("0Bwj"),d("W2nI"),d("vcCh");var x=d("gawk"),C=d("Dg8C");O.registerLayout(x),O.registerVisual(C)},MT78:function(H,k,d){var O=d("ProS");(function(){for(var C in O){if(O==null||!O.hasOwnProperty(C)||C==="default"||C==="__esModule")return;k[C]=O[C]}})();var x=d("txkQ");(function(){for(var C in x){if(x==null||!x.hasOwnProperty(C)||C==="default"||C==="__esModule")return;k[C]=x[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(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("Kvyg"),A=d.n(C)},MZdM:function(H,k,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(k,"__esModule",{value:!0}),k.default=void 0;var x=c(d("Lo0S")),C=g(d("N/zr")),A=d("GdRQ"),b=d("GQ8N");function g(e){return e&&e.__esModule?e:{default:e}}function f(){if(typeof WeakMap!="function")return null;var e=new WeakMap;return f=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 l=f();if(l&&l.has(e))return l.get(e);var t={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var u=a?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(t,s,u):t[s]=e[s]}return t.default=e,l&&l.set(e,t),t}function o(e,l){if(!(e instanceof l))throw new TypeError("Cannot call a class as a function")}function r(e,l){for(var t=0;t<l.length;t++){var a=l[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function i(e,l,t){return l&&r(e.prototype,l),t&&r(e,t),e}var n=function(){function e(l){if(o(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,x.Debug(">> Display.constructor"),this._target=l,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");if(this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},x.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),x.Debug("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=function(){}}return i(e,[{key:"viewportChangePos",value:function(t,a){var s=this._viewportLoc;t=Math.floor(t),a=Math.floor(a),this._clipViewport||(t=-s.w,a=-s.h);var u=s.x+s.w-1,h=s.y+s.h-1;if(t<0&&s.x+t<0&&(t=-s.x),u+t>=this._fbWidth&&(t-=u+t-this._fbWidth+1),s.y+a<0&&(a=-s.y),h+a>=this._fbHeight&&(a-=h+a-this._fbHeight+1),t===0&&a===0)return;x.Debug("viewportChange deltaX: "+t+", deltaY: "+a),s.x+=t,s.y+=a,this._damage(s.x,s.y,s.w,s.h),this.flip()}},{key:"viewportChangeSize",value:function(t,a){(!this._clipViewport||typeof t=="undefined"||typeof a=="undefined")&&(x.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 s=this._viewportLoc;if(s.w!==t||s.h!==a){s.w=t,s.h=a;var u=this._target;u.width=t,u.height=a,this.viewportChangePos(0,0),this._damage(s.x,s.y,s.w,s.h),this.flip(),this._rescale(this._scale)}}},{key:"absX",value:function(t){return this._scale===0?0:(0,b.toSigned32bit)(t/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(t){return this._scale===0?0:(0,b.toSigned32bit)(t/this._scale+this._viewportLoc.y)}},{key:"resize",value:function(t,a){this._prevDrawStyle="",this._fbWidth=t,this._fbHeight=a;var s=this._backbuffer;if(s.width!==t||s.height!==a){var u=null;s.width>0&&s.height>0&&(u=this._drawCtx.getImageData(0,0,s.width,s.height)),s.width!==t&&(s.width=t),s.height!==a&&(s.height=a),u&&this._drawCtx.putImageData(u,0,0)}var h=this._viewportLoc;this.viewportChangeSize(h.w,h.h),this.viewportChangePos(0,0)}},{key:"_damage",value:function(t,a,s,u){t<this._damageBounds.left&&(this._damageBounds.left=t),a<this._damageBounds.top&&(this._damageBounds.top=a),t+s>this._damageBounds.right&&(this._damageBounds.right=t+s),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,s=this._damageBounds.top,u=this._damageBounds.right-a,h=this._damageBounds.bottom-s,p=a-this._viewportLoc.x,m=s-this._viewportLoc.y;p<0&&(u+=p,a-=p,p=0),m<0&&(h+=m,s-=m,m=0),p+u>this._viewportLoc.w&&(u=this._viewportLoc.w-p),m+h>this._viewportLoc.h&&(h=this._viewportLoc.h-m),u>0&&h>0&&this._targetCtx.drawImage(this._backbuffer,a,s,u,h,p,m,u,h),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,s,u,h,p){this._renderQ.length!==0&&!p?this._renderQPush({type:"fill",x:t,y:a,width:s,height:u,color:h}):(this._setFillColor(h),this._drawCtx.fillRect(t,a,s,u),this._damage(t,a,s,u))}},{key:"copyImage",value:function(t,a,s,u,h,p,m){this._renderQ.length!==0&&!m?this._renderQPush({type:"copy",oldX:t,oldY:a,x:s,y:u,width:h,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,h,p,s,u,h,p),this._damage(s,u,h,p))}},{key:"imageRect",value:function(t,a,s,u,h,p){if(s===0||u===0)return;var m=new Image;m.src="data: "+h+";base64,"+C.default.encode(p),this._renderQPush({type:"img",img:m,x:t,y:a,width:s,height:u})}},{key:"startTile",value:function(t,a,s,u,h){this._tileX=t,this._tileY=a,s===16&&u===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(s,u);for(var p=h[2],m=h[1],v=h[0],y=this._tile.data,E=0;E<s*u*4;E+=4)y[E]=p,y[E+1]=m,y[E+2]=v,y[E+3]=255}},{key:"subTile",value:function(t,a,s,u,h){for(var p=h[2],m=h[1],v=h[0],y=t+s,E=a+u,T=this._tile.data,w=this._tile.width,S=a;S<E;S++)for(var _=t;_<y;_++){var I=(_+S*w)*4;T[I]=p,T[I+1]=m,T[I+2]=v,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,s,u,h,p,m){if(this._renderQ.length!==0&&!m){var v=new Uint8Array(s*u*4);v.set(new Uint8Array(h.buffer,0,v.length)),this._renderQPush({type:"blit",data:v,x:t,y:a,width:s,height:u})}else this._bgrxImageData(t,a,s,u,h,p)}},{key:"blitRgbImage",value:function(t,a,s,u,h,p,m){if(this._renderQ.length!==0&&!m){var v=new Uint8Array(s*u*3);v.set(new Uint8Array(h.buffer,0,v.length)),this._renderQPush({type:"blitRgb",data:v,x:t,y:a,width:s,height:u})}else this._rgbImageData(t,a,s,u,h,p)}},{key:"blitRgbxImage",value:function(t,a,s,u,h,p,m){if(this._renderQ.length!==0&&!m){var v=new Uint8Array(s*u*4);v.set(new Uint8Array(h.buffer,0,v.length)),this._renderQPush({type:"blitRgbx",data:v,x:t,y:a,width:s,height:u})}else this._rgbxImageData(t,a,s,u,h,p)}},{key:"drawImage",value:function(t,a,s){this._drawCtx.drawImage(t,a,s),this._damage(a,s,t.width,t.height)}},{key:"autoscale",value:function(t,a){var s;if(t===0||a===0)s=0;else{var u=this._viewportLoc,h=t/a,p=u.w/u.h;p>=h?s=t/u.w:s=a/u.h}this._rescale(s)}},{key:"_rescale",value:function(t){this._scale=t;var a=this._viewportLoc,s=t*a.w+"px",u=t*a.h+"px";(this._target.style.width!==s||this._target.style.height!==u)&&(this._target.style.width=s,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,s,u,h,p){for(var m=this._drawCtx.createImageData(s,u),v=m.data,y=0,E=p;y<s*u*4;y+=4,E+=3)v[y]=h[E],v[y+1]=h[E+1],v[y+2]=h[E+2],v[y+3]=255;this._drawCtx.putImageData(m,t,a),this._damage(t,a,m.width,m.height)}},{key:"_bgrxImageData",value:function(t,a,s,u,h,p){for(var m=this._drawCtx.createImageData(s,u),v=m.data,y=0,E=p;y<s*u*4;y+=4,E+=4)v[y]=h[E+2],v[y+1]=h[E+1],v[y+2]=h[E],v[y+3]=255;this._drawCtx.putImageData(m,t,a),this._damage(t,a,m.width,m.height)}},{key:"_rgbxImageData",value:function(t,a,s,u,h,p){var m;A.supportsImageMetadata?m=new ImageData(new Uint8ClampedArray(h.buffer,h.byteOffset,s*u*4),s,u):(m=this._drawCtx.createImageData(s,u),m.data.set(new Uint8ClampedArray(h.buffer,h.byteOffset,s*u*4))),this._drawCtx.putImageData(m,t,a),this._damage(t,a,m.width,m.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){x.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}();k.default=n},Mdki:function(H,k,d){var O=d("bYtY"),x=O.each,C="\0__link_datas",A="\0__link_mainData";function b(l){var t=l.mainData,a=l.datas;a||(a={main:t},l.datasAttr={main:"data"}),l.datas=l.mainData=null,i(t,a,l),x(a,function(s){x(t.TRANSFERABLE_METHODS,function(u){s.wrapMethod(u,O.curry(g,l))})}),t.wrapMethod("cloneShallow",O.curry(c,l)),x(t.CHANGABLE_METHODS,function(s){t.wrapMethod(s,O.curry(f,l))}),O.assert(a[t.dataType]===t)}function g(l,t){if(r(this)){var a=O.extend({},this[C]);a[this.dataType]=t,i(t,a,l)}else n(t,this.dataType,this[A],l);return t}function f(l,t){return l.struct&&l.struct.update(this),t}function c(l,t){return x(t[C],function(a,s){a!==t&&n(a.cloneShallow(),s,t,l)}),t}function o(l){var t=this[A];return l==null||t==null?t:t[C][l]}function r(l){return l[A]===l}function i(l,t,a){l[C]={},x(t,function(s,u){n(s,u,l,a)})}function n(l,t,a,s){a[C][t]=l,l[A]=a,l.dataType=t,s.struct&&(l[s.structAttr]=s.struct,s.struct[s.datasAttr[t]]=l),l.getLinkedData=o}var e=b;H.exports=e},Mds0:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("8IMR")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="StarFilled";var c=A.forwardRef(f);k.default=c},Mgri:function(H,k,d){for(var O=d("bYtY"),x=d("8nly"),C=[126,25],A=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],b=0;b<A.length;b++)for(var g=0;g<A[b].length;g++)A[b][g][0]/=10.5,A[b][g][1]/=-10.5/.75,A[b][g][0]+=C[0],A[b][g][1]+=C[1];function f(c,o){c==="china"&&o.push(new x("\u5357\u6D77\u8BF8\u5C9B",O.map(A,function(r){return{type:"polygon",exterior:r}}),C))}H.exports=f},MlIO:function(H,k,d){(function(O,x){H.exports=k=x(d("Ib8C"))})(this,function(O){return function(x){var C=O,A=C.lib,b=A.Base,g=A.WordArray,f=C.x64={},c=f.Word=b.extend({init:function(i,n){this.high=i,this.low=n}}),o=f.WordArray=b.extend({init:function(i,n){i=this.words=i||[],n!=x?this.sigBytes=n:this.sigBytes=i.length*8},toX32:function(){for(var i=this.words,n=i.length,e=[],l=0;l<n;l++){var t=i[l];e.push(t.high),e.push(t.low)}return g.create(e,this.sigBytes)},clone:function(){for(var i=b.clone.call(this),n=i.words=this.words.slice(0),e=n.length,l=0;l<e;l++)n[l]=n[l].clone();return i}})}(),O})},Mmt2:function(H,k,d){"use strict";function O(i){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(i)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var x=A(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var i=new WeakMap;return C=function(){return i},i}function A(i){if(i&&i.__esModule)return i;if(i===null||O(i)!=="object"&&typeof i!="function")return{default:i};var n=C();if(n&&n.has(i))return n.get(i);var e={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var a=l?Object.getOwnPropertyDescriptor(i,t):null;a&&(a.get||a.set)?Object.defineProperty(e,t,a):e[t]=i[t]}return e.default=i,n&&n.set(i,e),e}function b(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function g(i,n){for(var e=0;e<n.length;e++){var l=n[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}function f(i,n,e){return n&&g(i.prototype,n),e&&g(i,e),i}var c=!1,o=40*1024*1024,r=function(){function i(){b(this,i),this._websocket=null,this._rQi=0,this._rQlen=0,this._rQbufferSize=1024*1024*4,this._rQ=null,this._sQbufferSize=1024*10,this._sQlen=0,this._sQ=null,this._eventHandlers={message:function(){},open:function(){},close:function(){},error:function(){}}}return f(i,[{key:"rQpeek8",value:function(){return this._rQ[this._rQi]}},{key:"rQskipBytes",value:function(e){this._rQi+=e}},{key:"rQshift8",value:function(){return this._rQshift(1)}},{key:"rQshift16",value:function(){return this._rQshift(2)}},{key:"rQshift32",value:function(){return this._rQshift(4)}},{key:"_rQshift",value:function(e){for(var l=0,t=e-1;t>=0;t--)l+=this._rQ[this._rQi++]<<t*8;return l}},{key:"rQshiftStr",value:function(e){typeof e=="undefined"&&(e=this.rQlen);for(var l="",t=0;t<e;t+=4096){var a=this.rQshiftBytes(Math.min(4096,e-t));l+=String.fromCharCode.apply(null,a)}return l}},{key:"rQshiftBytes",value:function(e){return typeof e=="undefined"&&(e=this.rQlen),this._rQi+=e,new Uint8Array(this._rQ.buffer,this._rQi-e,e)}},{key:"rQshiftTo",value:function(e,l){l===void 0&&(l=this.rQlen),e.set(new Uint8Array(this._rQ.buffer,this._rQi,l)),this._rQi+=l}},{key:"rQslice",value:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.rQlen;return new Uint8Array(this._rQ.buffer,this._rQi+e,l-e)}},{key:"rQwait",value:function(e,l,t){if(this.rQlen<l){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(l){return l.charCodeAt(0)}))}},{key:"off",value:function(e){this._eventHandlers[e]=function(){}}},{key:"on",value:function(e,l){this._eventHandlers[e]=l}},{key:"_allocateBuffers",value:function(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}},{key:"init",value:function(){this._allocateBuffers(),this._rQi=0,this._websocket=null}},{key:"open",value:function(e,l){var t=this;this.init(),this._websocket=new WebSocket(e,l),this._websocket.binaryType="arraybuffer",this._websocket.onmessage=this._recvMessage.bind(this),this._websocket.onopen=function(){x.Debug(">> WebSock.onopen"),t._websocket.protocol&&x.Info("Server choose sub-protocol: "+t._websocket.protocol),t._eventHandlers.open(),x.Debug("<< WebSock.onopen")},this._websocket.onclose=function(a){x.Debug(">> WebSock.onclose"),t._eventHandlers.close(a),x.Debug("<< WebSock.onclose")},this._websocket.onerror=function(a){x.Debug(">> WebSock.onerror: "+a),t._eventHandlers.error(a),x.Debug("<< WebSock.onerror: "+a)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(x.Info("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=function(){})}},{key:"_encodeMessage",value:function(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}},{key:"_expandCompactRQ",value:function(e){var l=(this._rQlen-this._rQi+e)*8,t=this._rQbufferSize<l;if(t&&(this._rQbufferSize=Math.max(this._rQbufferSize*2,l)),this._rQbufferSize>o&&(this._rQbufferSize=o,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+o+" 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 l=new Uint8Array(e);l.length>this._rQbufferSize-this._rQlen&&this._expandCompactRQ(l.length),this._rQ.set(l,this._rQlen),this._rQlen+=l.length}},{key:"_recvMessage",value:function(e){this._DecodeMessage(e.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):x.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}}]),i}();k.default=r},MqEG:function(H,k,d){var O=d("bYtY"),x=d("fc+c"),C=d("72pK"),A=d("VXYp"),b=O.bind,g=x.extend({type:"dataZoom.inside",init:function(i,n){this._range},render:function(i,n,e,l){g.superApply(this,"render",arguments),this._range=i.getPercentRange(),O.each(this.getTargetCoordInfo(),function(t,a){var s=O.map(t,function(u){return A.generateCoordId(u.model)});O.each(t,function(u){var h=u.model,p={};O.each(["pan","zoom","scrollMove"],function(m){p[m]=b(f[m],this,u,a)},this),A.register(e,{coordId:A.generateCoordId(h),allCoordIds:s,containsPoint:function(m,v,y){return h.coordinateSystem.containPoint([v,y])},dataZoomId:i.id,dataZoomModel:i,getRange:p})},this)},this)},dispose:function(){A.unregister(this.api,this.dataZoomModel.id),g.superApply(this,"dispose",arguments),this._range=null}}),f={zoom:function(i,n,e,l){var t=this._range,a=t.slice(),s=i.axisModels[0];if(!s)return;var u=o[n](null,[l.originX,l.originY],s,e,i),h=(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/l.scale,0);a[0]=(a[0]-h)*p+h,a[1]=(a[1]-h)*p+h;var m=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(C(0,a,[0,100],0,m.minSpan,m.maxSpan),this._range=a,t[0]!==a[0]||t[1]!==a[1])return a},pan:c(function(i,n,e,l,t,a){var s=o[l]([a.oldX,a.oldY],[a.newX,a.newY],n,t,e);return s.signal*(i[1]-i[0])*s.pixel/s.pixelLength}),scrollMove:c(function(i,n,e,l,t,a){var s=o[l]([0,0],[a.scrollDelta,a.scrollDelta],n,t,e);return s.signal*(i[1]-i[0])*a.scrollDelta})};function c(i){return function(n,e,l,t){var a=this._range,s=a.slice(),u=n.axisModels[0];if(!u)return;var h=i(s,u,n,e,l,t);if(C(h,s,[0,100],"all"),this._range=s,a[0]!==s[0]||a[1]!==s[1])return s}}var o={grid:function(i,n,e,l,t){var a=e.axis,s={},u=t.model.coordinateSystem.getRect();return i=i||[0,0],a.dim==="x"?(s.pixel=n[0]-i[0],s.pixelLength=u.width,s.pixelStart=u.x,s.signal=a.inverse?1:-1):(s.pixel=n[1]-i[1],s.pixelLength=u.height,s.pixelStart=u.y,s.signal=a.inverse?-1:1),s},polar:function(i,n,e,l,t){var a=e.axis,s={},u=t.model.coordinateSystem,h=u.getRadiusAxis().getExtent(),p=u.getAngleAxis().getExtent();return i=i?u.pointToCoord(i):[0,0],n=u.pointToCoord(n),e.mainType==="radiusAxis"?(s.pixel=n[0]-i[0],s.pixelLength=h[1]-h[0],s.pixelStart=h[0],s.signal=a.inverse?1:-1):(s.pixel=n[1]-i[1],s.pixelLength=p[1]-p[0],s.pixelStart=p[0],s.signal=a.inverse?-1:1),s},singleAxis:function(i,n,e,l,t){var a=e.axis,s=t.model.coordinateSystem.getRect(),u={};return i=i||[0,0],a.orient==="horizontal"?(u.pixel=n[0]-i[0],u.pixelLength=s.width,u.pixelStart=s.x,u.signal=a.inverse?1:-1):(u.pixel=n[1]-i[1],u.pixelLength=s.height,u.pixelStart=s.y,u.signal=a.inverse?-1:1),u}},r=g;H.exports=r},MwEJ:function(H,k,d){var O=d("bYtY"),x=d("YXkt"),C=d("sdST"),A=d("k9D9"),b=A.SOURCE_FORMAT_ORIGINAL,g=d("L0Ub"),f=g.getDimensionTypeByAxis,c=d("4NO4"),o=c.getDataItemValue,r=d("IDmD"),i=d("i38C"),n=i.getCoordSysInfoBySeries,e=d("7G+c"),l=d("7hqr"),t=l.enableDataStack,a=d("D5nY"),s=a.makeSeriesEncodeForAxisCoordSys;function u(v,y,E){E=E||{},e.isInstance(v)||(v=e.seriesDataToSource(v));var T=y.get("coordinateSystem"),w=r.get(T),S=n(y),_;S&&(_=O.map(S.coordSysDims,function(M){var U={name:M},B=S.axisMap.get(M);if(B){var j=B.get("type");U.type=f(j)}return U})),_||(_=w&&(w.getDimensionsInfo?w.getDimensionsInfo():w.dimensions.slice())||["x","y"]);var I=C(v,{coordDimensions:_,generateCoord:E.generateCoord,encodeDefaulter:E.useEncodeDefaulter?O.curry(s,_,y):null}),L,N;S&&O.each(I,function(M,U){var B=M.coordDim,j=S.categoryAxisMap.get(B);j&&(L==null&&(L=U),M.ordinalMeta=j.getOrdinalMeta()),M.otherDims.itemName!=null&&(N=!0)}),!N&&L!=null&&(I[L].otherDims.itemName=0);var R=t(y,I),D=new x(I,y);D.setCalculationInfo(R);var F=L!=null&&h(v)?function(M,U,B,j){return j===L?B:this.defaultDimValueGetter(M,U,B,j)}:null;return D.hasItemOption=!1,D.initData(v,null,F),D}function h(v){if(v.sourceFormat===b){var y=p(v.data||[]);return y!=null&&!O.isArray(o(y))}}function p(v){for(var y=0;y<v.length&&v[y]==null;)y++;return v[y]}var m=u;H.exports=m},Mylv:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("IwbS"),A=d("oVpE"),b=A.createSymbol,g=d("OELB"),f=g.parsePercent,c=g.isNumeric,o=d("56rv"),r=o.setLabel,i=["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,l=O.extendChartView({type:"pictorialBar",render:function(W,V,z){var J=this.group,q=W.getData(),de=this._data,ae=W.coordinateSystem,ve=ae.getBaseAxis(),_e=!!ve.isHorizontal(),Ie=ae.grid.getRect(),He={ecSize:{width:z.getWidth(),height:z.getHeight()},seriesModel:W,coordSys:ae,coordSysExtent:[[Ie.x,Ie.x+Ie.width],[Ie.y,Ie.y+Ie.height]],isHorizontal:_e,valueDim:n[+_e],categoryDim:n[1-_e]};return q.diff(de).add(function(me){if(!q.hasValue(me))return;var ke=w(q,me),se=t(q,me,ke,He),te=L(q,He,se);q.setItemGraphicEl(me,te),J.add(te),U(te,He,se)}).update(function(me,ke){var se=de.getItemGraphicEl(ke);if(!q.hasValue(me)){J.remove(se);return}var te=w(q,me),Ge=t(q,me,te,He),oe=D(q,Ge);se&&oe!==se.__pictorialShapeStr&&(J.remove(se),q.setItemGraphicEl(me,null),se=null),se?N(se,He,Ge):se=L(q,He,Ge,!0),q.setItemGraphicEl(me,se),se.__pictorialSymbolMeta=Ge,J.add(se),U(se,He,Ge)}).remove(function(me){var ke=de.getItemGraphicEl(me);ke&&R(de,me,ke.__pictorialSymbolMeta.animationModel,ke)}).execute(),this._data=q,this.group},dispose:x.noop,remove:function(W,V){var z=this.group,J=this._data;W.get("animation")?J&&J.eachItemGraphicEl(function(q){R(J,q.dataIndex,W,q)}):z.removeAll()}});function t(W,V,z,J){var q=W.getItemLayout(V),de=z.get("symbolRepeat"),ae=z.get("symbolClip"),ve=z.get("symbolPosition")||"start",_e=z.get("symbolRotate"),Ie=(_e||0)*Math.PI/180||0,He=z.get("symbolPatternSize")||2,me=z.isAnimationEnabled(),ke={dataIndex:V,layout:q,itemModel:z,symbolType:W.getItemVisual(V,"symbol")||"circle",color:W.getItemVisual(V,"color"),symbolClip:ae,symbolRepeat:de,symbolRepeatDirection:z.get("symbolRepeatDirection"),symbolPatternSize:He,rotation:Ie,animationModel:me?z:null,hoverAnimation:me&&z.get("hoverAnimation"),z2:z.getShallow("z",!0)||0};a(z,de,q,J,ke),u(W,V,q,de,ae,ke.boundingLength,ke.pxSign,He,J,ke),h(z,ke.symbolScale,Ie,J,ke);var se=ke.symbolSize,te=z.get("symbolOffset");return x.isArray(te)&&(te=[f(te[0],se[0]),f(te[1],se[1])]),p(z,se,q,de,ae,te,ve,ke.valueLineWidth,ke.boundingLength,ke.repeatCutLength,J,ke),ke}function a(W,V,z,J,q){var de=J.valueDim,ae=W.get("symbolBoundingData"),ve=J.coordSys.getOtherAxis(J.coordSys.getBaseAxis()),_e=ve.toGlobalCoord(ve.dataToCoord(0)),Ie=1-+(z[de.wh]<=0),He;if(x.isArray(ae)){var me=[s(ve,ae[0])-_e,s(ve,ae[1])-_e];me[1]<me[0]&&me.reverse(),He=me[Ie]}else ae!=null?He=s(ve,ae)-_e:V?He=J.coordSysExtent[de.index][Ie]-_e:He=z[de.wh];q.boundingLength=He,V&&(q.repeatCutLength=z[de.wh]),q.pxSign=He>0?1:He<0?-1:0}function s(W,V){return W.toGlobalCoord(W.dataToCoord(W.scale.parse(V)))}function u(W,V,z,J,q,de,ae,ve,_e,Ie){var He=_e.valueDim,me=_e.categoryDim,ke=Math.abs(z[me.wh]),se=W.getItemVisual(V,"symbolSize");x.isArray(se)?se=se.slice():(se==null&&(se="100%"),se=[se,se]),se[me.index]=f(se[me.index],ke),se[He.index]=f(se[He.index],J?ke:Math.abs(de)),Ie.symbolSize=se;var te=Ie.symbolScale=[se[0]/ve,se[1]/ve];te[He.index]*=(_e.isHorizontal?-1:1)*ae}function h(W,V,z,J,q){var de=W.get(i)||0;de&&(e.attr({scale:V.slice(),rotation:z}),e.updateTransform(),de/=e.getLineScale(),de*=V[J.valueDim.index]),q.valueLineWidth=de}function p(W,V,z,J,q,de,ae,ve,_e,Ie,He,me){var ke=He.categoryDim,se=He.valueDim,te=me.pxSign,Ge=Math.max(V[se.index]+ve,0),oe=Ge;if(J){var Y=Math.abs(_e),G=x.retrieve(W.get("symbolMargin"),"15%")+"",Q=!1;G.lastIndexOf("!")===G.length-1&&(Q=!0,G=G.slice(0,G.length-1)),G=f(G,V[se.index]);var ye=Math.max(Ge+G*2,0),ce=Q?0:G*2,Te=c(J),Se=Te?J:B((Y+ce)/ye),le=Y-Se*Ge;G=le/2/(Q?Se:Se-1),ye=Ge+G*2,ce=Q?0:G*2,!Te&&J!=="fixed"&&(Se=Ie?B((Math.abs(Ie)+ce)/ye):0),oe=Se*ye-ce,me.repeatTimes=Se,me.symbolMargin=G}var fe=te*(oe/2),Ee=me.pathPosition=[];Ee[ke.index]=z[ke.wh]/2,Ee[se.index]=ae==="start"?fe:ae==="end"?_e-fe:_e/2,de&&(Ee[0]+=de[0],Ee[1]+=de[1]);var Ve=me.bundlePosition=[];Ve[ke.index]=z[ke.xy],Ve[se.index]=z[se.xy];var vt=me.barRectShape=x.extend({},z);vt[se.wh]=te*Math.max(Math.abs(z[se.wh]),Math.abs(Ee[se.index]+fe)),vt[ke.wh]=z[ke.wh];var et=me.clipShape={};et[ke.xy]=-z[ke.xy],et[ke.wh]=He.ecSize[ke.wh],et[se.xy]=0,et[se.wh]=z[se.wh]}function m(W){var V=W.symbolPatternSize,z=b(W.symbolType,-V/2,-V/2,V,V,W.color);return z.attr({culling:!0}),z.type!=="image"&&z.setStyle({strokeNoScale:!0}),z}function v(W,V,z,J){var q=W.__pictorialBundle,de=z.symbolSize,ae=z.valueLineWidth,ve=z.pathPosition,_e=V.valueDim,Ie=z.repeatTimes||0,He=0,me=de[V.valueDim.index]+ae+z.symbolMargin*2;for(F(W,function(Y){Y.__pictorialAnimationIndex=He,Y.__pictorialRepeatTimes=Ie,He<Ie?M(Y,null,te(He),z,J):M(Y,null,{scale:[0,0]},z,J,function(){q.remove(Y)}),I(Y,z),He++});He<Ie;He++){var ke=m(z);ke.__pictorialAnimationIndex=He,ke.__pictorialRepeatTimes=Ie,q.add(ke);var se=te(He);M(ke,{position:se.position,scale:[0,0]},{scale:se.scale,rotation:se.rotation},z,J),ke.on("mouseover",Ge).on("mouseout",oe),I(ke,z)}function te(Y){var G=ve.slice(),Q=z.pxSign,ye=Y;return(z.symbolRepeatDirection==="start"?Q>0:Q<0)&&(ye=Ie-1-Y),G[_e.index]=me*(ye-Ie/2+.5)+ve[_e.index],{position:G,scale:z.symbolScale.slice(),rotation:z.rotation}}function Ge(){F(W,function(Y){Y.trigger("emphasis")})}function oe(){F(W,function(Y){Y.trigger("normal")})}}function y(W,V,z,J){var q=W.__pictorialBundle,de=W.__pictorialMainPath;de?M(de,null,{position:z.pathPosition.slice(),scale:z.symbolScale.slice(),rotation:z.rotation},z,J):(de=W.__pictorialMainPath=m(z),q.add(de),M(de,{position:z.pathPosition.slice(),scale:[0,0],rotation:z.rotation},{scale:z.symbolScale.slice()},z,J),de.on("mouseover",ae).on("mouseout",ve)),I(de,z);function ae(){this.trigger("emphasis")}function ve(){this.trigger("normal")}}function E(W,V,z){var J=x.extend({},V.barRectShape),q=W.__pictorialBarRect;q?M(q,null,{shape:J},V,z):(q=W.__pictorialBarRect=new C.Rect({z2:2,shape:J,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),W.add(q))}function T(W,V,z,J){if(z.symbolClip){var q=W.__pictorialClipPath,de=x.extend({},z.clipShape),ae=V.valueDim,ve=z.animationModel,_e=z.dataIndex;if(q)C.updateProps(q,{shape:de},ve,_e);else{de[ae.wh]=0,q=new C.Rect({shape:de}),W.__pictorialBundle.setClipPath(q),W.__pictorialClipPath=q;var Ie={};Ie[ae.wh]=z.clipShape[ae.wh],C[J?"updateProps":"initProps"](q,{shape:Ie},ve,_e)}}}function w(W,V){var z=W.getItemModel(V);return z.getAnimationDelayParams=S,z.isAnimationEnabled=_,z}function S(W){return{index:W.__pictorialAnimationIndex,count:W.__pictorialRepeatTimes}}function _(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function I(W,V){W.off("emphasis").off("normal");var z=V.symbolScale.slice();V.hoverAnimation&&W.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(W,V,z,J){var q=new C.Group,de=new C.Group;return q.add(de),q.__pictorialBundle=de,de.attr("position",z.bundlePosition.slice()),z.symbolRepeat?v(q,V,z):y(q,V,z),E(q,z,J),T(q,V,z,J),q.__pictorialShapeStr=D(W,z),q.__pictorialSymbolMeta=z,q}function N(W,V,z){var J=z.animationModel,q=z.dataIndex,de=W.__pictorialBundle;C.updateProps(de,{position:z.bundlePosition.slice()},J,q),z.symbolRepeat?v(W,V,z,!0):y(W,V,z,!0),E(W,z,!0),T(W,V,z,!0)}function R(W,V,z,J){var q=J.__pictorialBarRect;q&&(q.style.text=null);var de=[];F(J,function(ae){de.push(ae)}),J.__pictorialMainPath&&de.push(J.__pictorialMainPath),J.__pictorialClipPath&&(z=null),x.each(de,function(ae){C.updateProps(ae,{scale:[0,0]},z,V,function(){J.parent&&J.parent.remove(J)})}),W.setItemGraphicEl(V,null)}function D(W,V){return[W.getItemVisual(V.dataIndex,"symbol")||"none",!!V.symbolRepeat,!!V.symbolClip].join(":")}function F(W,V,z){x.each(W.__pictorialBundle.children(),function(J){J!==W.__pictorialBarRect&&V.call(z,J)})}function M(W,V,z,J,q,de){V&&W.attr(V),J.symbolClip&&!q?z&&W.attr(z):z&&C[q?"updateProps":"initProps"](W,z,J.animationModel,J.dataIndex,de)}function U(W,V,z){var J=z.color,q=z.dataIndex,de=z.itemModel,ae=de.getModel("itemStyle").getItemStyle(["color"]),ve=de.getModel("emphasis.itemStyle").getItemStyle(),_e=de.getShallow("cursor");F(W,function(ke){ke.setColor(J),ke.setStyle(x.defaults({fill:J,opacity:z.opacity},ae)),C.setHoverStyle(ke,ve),_e&&(ke.cursor=_e),ke.z2=z.z2});var Ie={},He=V.valueDim.posDesc[+(z.boundingLength>0)],me=W.__pictorialBarRect;r(me.style,Ie,de,J,V.seriesModel,q,He),C.setHoverStyle(me,Ie)}function B(W){var V=Math.round(W);return Math.abs(W-V)<1e-4?V:Math.ceil(W)}var j=l;H.exports=j},"N/zr":function(H,k,d){"use strict";function O(g){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(g)}Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var x=A(d("Lo0S"));function C(){if(typeof WeakMap!="function")return null;var g=new WeakMap;return C=function(){return g},g}function A(g){if(g&&g.__esModule)return g;if(g===null||O(g)!=="object"&&typeof g!="function")return{default:g};var f=C();if(f&&f.has(g))return f.get(g);var c={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in g)if(Object.prototype.hasOwnProperty.call(g,r)){var i=o?Object.getOwnPropertyDescriptor(g,r):null;i&&(i.get||i.set)?Object.defineProperty(c,r,i):c[r]=g[r]}return c.default=g,f&&f.set(g,c),c}var b={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(f){"use strict";for(var c="",o=f.length,r=o%3,i=0;i<o-2;i+=3)c+=this.toBase64Table[f[i]>>2],c+=this.toBase64Table[((f[i]&3)<<4)+(f[i+1]>>4)],c+=this.toBase64Table[((f[i+1]&15)<<2)+(f[i+2]>>6)],c+=this.toBase64Table[f[i+2]&63];var n=o-r;return r===2?(c+=this.toBase64Table[f[n]>>2],c+=this.toBase64Table[((f[n]&3)<<4)+(f[n+1]>>4)],c+=this.toBase64Table[(f[n+1]&15)<<2],c+=this.toBase64Table[64]):r===1&&(c+=this.toBase64Table[f[n]>>2],c+=this.toBase64Table[(f[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(f){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=f.indexOf("=")-c;o<0&&(o=f.length-c);for(var r=(o>>2)*3+Math.floor(o%4/1.5),i=new Array(r),n=0,e=0,l=0,t=c;t<f.length;t++){var a=this.toBinaryTable[f.charCodeAt(t)&127],s=f.charAt(t)===this.base64Pad;if(a===-1){x.Error("Illegal character code "+f.charCodeAt(t)+" at position "+t);continue}e=e<<6|a,n+=6,n>=8&&(n-=8,s||(i[l++]=e>>n&255),e&=(1<<n)-1)}if(n){var u=new Error("Corrupted base64 string");throw u.name="Base64-Error",u}return i}};k.default=b},N5BQ:function(H,k,d){var O=d("OlYY"),x=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=x;H.exports=C},NA0q:function(H,k,d){var O=d("bYtY"),x=d("6Ic6"),C=d("TkdX"),A=d("gPAo"),b=d("7aKB"),g=b.windowOpen,f="sunburstRootToNode",c=x.extend({type:"sunburst",init:function(){},render:function(r,i,n,e){var l=this;this.seriesModel=r,this.api=n,this.ecModel=i;var t=r.getData(),a=t.tree.root,s=r.getViewRoot(),u=this.group,h=r.get("renderLabelForZeroData"),p=[];s.eachNode(function(_){p.push(_)});var m=this._oldChildren||[];if(E(p,m),S(a,s),e&&e.highlight&&e.highlight.piece){var v=r.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(v)}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 E(_,I){if(_.length===0&&I.length===0)return;new A(I,_,L,L).add(N).update(N).remove(O.curry(N,null)).execute();function L(R){return R.getId()}function N(R,D){var F=R==null?null:_[R],M=D==null?null:I[D];T(F,M)}}function T(_,I){if(!h&&_&&!_.getValue()&&(_=null),_!==a&&I!==a){if(I&&I.piece)_?(I.piece.updateData(!1,_,"normal",r,i),t.setItemGraphicEl(_.dataIndex,I.piece)):w(I);else if(_){var L=new C(_,r,i);u.add(L),t.setItemGraphicEl(_.dataIndex,L)}}}function w(_){if(!_)return;_.piece&&(u.remove(_.piece),_.piece=null)}function S(_,I){if(I.depth>0){l.virtualPiece?l.virtualPiece.updateData(!1,_,"normal",r,i):(l.virtualPiece=new C(_,r,i),u.add(l.virtualPiece)),I.piece._onclickEvent&&I.piece.off("click",I.piece._onclickEvent);var L=function(N){l._rootToNode(I.parentNode)};I.piece._onclickEvent=L,l.virtualPiece.on("click",L)}else l.virtualPiece&&(u.remove(l.virtualPiece),l.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var r=this,i=function(n){var e=!1,l=r.seriesModel.getViewRoot();l.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 s=t.getModel(),u=s.get("link");if(u){var h=s.get("target",!0)||"_blank";g(u,h)}}e=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",i),this.group._onclickEvent=i},_rootToNode:function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:f,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},containPoint:function(r,i){var n=i.getData(),e=n.getItemLayout(0);if(e){var l=r[0]-e.cx,t=r[1]-e.cy,a=Math.sqrt(l*l+t*t);return a<=e.r&&a>=e.r0}}}),o=c;H.exports=o},NAnI:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("wXyp"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},NBmB:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.encodingName=x,k.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};k.encodings=O;function x(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(H,k,d){var O=d("y+Vt"),x=d("IMiH"),C=d("7oTu"),A=Math.sqrt,b=Math.sin,g=Math.cos,f=Math.PI,c=function(p){return Math.sqrt(p[0]*p[0]+p[1]*p[1])},o=function(p,m){return(p[0]*m[0]+p[1]*m[1])/(c(p)*c(m))},r=function(p,m){return(p[0]*m[1]<p[1]*m[0]?-1:1)*Math.acos(o(p,m))};function i(h,p,m,v,y,E,T,w,S,_,I){var L=S*(f/180),N=g(L)*(h-m)/2+b(L)*(p-v)/2,R=-1*b(L)*(h-m)/2+g(L)*(p-v)/2,D=N*N/(T*T)+R*R/(w*w);D>1&&(T*=A(D),w*=A(D));var F=(y===E?-1:1)*A((T*T*(w*w)-T*T*(R*R)-w*w*(N*N))/(T*T*(R*R)+w*w*(N*N)))||0,M=F*T*R/w,U=F*-w*N/T,B=(h+m)/2+g(L)*M-b(L)*U,j=(p+v)/2+b(L)*M+g(L)*U,W=r([1,0],[(N-M)/T,(R-U)/w]),V=[(N-M)/T,(R-U)/w],z=[(-1*N-M)/T,(-1*R-U)/w],J=r(V,z);o(V,z)<=-1&&(J=f),o(V,z)>=1&&(J=0),E===0&&J>0&&(J=J-2*f),E===1&&J<0&&(J=J+2*f),I.addData(_,B,j,T,w,W,J,L,E)}var n=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function l(h){if(!h)return new x;for(var p=0,m=0,v=p,y=m,E,T=new x,w=x.CMD,S=h.match(n),_=0;_<S.length;_++){for(var I=S[_],L=I.charAt(0),N,R=I.match(e)||[],D=R.length,F=0;F<D;F++)R[F]=parseFloat(R[F]);for(var M=0;M<D;){var U,B,j,W,V,z,J,q=p,de=m;switch(L){case"l":p+=R[M++],m+=R[M++],N=w.L,T.addData(N,p,m);break;case"L":p=R[M++],m=R[M++],N=w.L,T.addData(N,p,m);break;case"m":p+=R[M++],m+=R[M++],N=w.M,T.addData(N,p,m),v=p,y=m,L="l";break;case"M":p=R[M++],m=R[M++],N=w.M,T.addData(N,p,m),v=p,y=m,L="L";break;case"h":p+=R[M++],N=w.L,T.addData(N,p,m);break;case"H":p=R[M++],N=w.L,T.addData(N,p,m);break;case"v":m+=R[M++],N=w.L,T.addData(N,p,m);break;case"V":m=R[M++],N=w.L,T.addData(N,p,m);break;case"C":N=w.C,T.addData(N,R[M++],R[M++],R[M++],R[M++],R[M++],R[M++]),p=R[M-2],m=R[M-1];break;case"c":N=w.C,T.addData(N,R[M++]+p,R[M++]+m,R[M++]+p,R[M++]+m,R[M++]+p,R[M++]+m),p+=R[M-2],m+=R[M-1];break;case"S":U=p,B=m;var ae=T.len(),ve=T.data;E===w.C&&(U+=p-ve[ae-4],B+=m-ve[ae-3]),N=w.C,q=R[M++],de=R[M++],p=R[M++],m=R[M++],T.addData(N,U,B,q,de,p,m);break;case"s":U=p,B=m;var ae=T.len(),ve=T.data;E===w.C&&(U+=p-ve[ae-4],B+=m-ve[ae-3]),N=w.C,q=p+R[M++],de=m+R[M++],p+=R[M++],m+=R[M++],T.addData(N,U,B,q,de,p,m);break;case"Q":q=R[M++],de=R[M++],p=R[M++],m=R[M++],N=w.Q,T.addData(N,q,de,p,m);break;case"q":q=R[M++]+p,de=R[M++]+m,p+=R[M++],m+=R[M++],N=w.Q,T.addData(N,q,de,p,m);break;case"T":U=p,B=m;var ae=T.len(),ve=T.data;E===w.Q&&(U+=p-ve[ae-4],B+=m-ve[ae-3]),p=R[M++],m=R[M++],N=w.Q,T.addData(N,U,B,p,m);break;case"t":U=p,B=m;var ae=T.len(),ve=T.data;E===w.Q&&(U+=p-ve[ae-4],B+=m-ve[ae-3]),p+=R[M++],m+=R[M++],N=w.Q,T.addData(N,U,B,p,m);break;case"A":j=R[M++],W=R[M++],V=R[M++],z=R[M++],J=R[M++],q=p,de=m,p=R[M++],m=R[M++],N=w.A,i(q,de,p,m,z,J,j,W,V,N,T);break;case"a":j=R[M++],W=R[M++],V=R[M++],z=R[M++],J=R[M++],q=p,de=m,p+=R[M++],m+=R[M++],N=w.A,i(q,de,p,m,z,J,j,W,V,N,T);break}}(L==="z"||L==="Z")&&(N=w.Z,T.addData(N),p=v,m=y),E=N}return T.toStatic(),T}function t(h,p){var m=l(h);return p=p||{},p.buildPath=function(v){if(v.setData){v.setData(m.data);var y=v.getContext();y&&v.rebuildPath(y)}else{var y=v;m.rebuildPath(y)}},p.applyTransform=function(v){C(m,v),this.dirty(!0)},p}function a(h,p){return new O(t(h,p))}function s(h,p){return O.extend(t(h,p))}function u(h,p){for(var m=[],v=h.length,y=0;y<v;y++){var E=h[y];E.path||E.createPathProxy(),E.__dirtyPath&&E.buildPath(E.path,E.shape,!0),m.push(E.path)}var T=new O(p);return T.createPathProxy(),T.buildPath=function(w){w.appendPath(m);var S=w.getContext();S&&w.rebuildPath(S)},T}k.createFromString=a,k.extendFromString=s,k.mergePath=u},NFKh:function(H,k,d){(function(O,x,C){H.exports=k=x(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(H,k,d){var O=d("bYtY"),x=d("mFDi"),C=d("Fofx"),A=d("IwbS"),b=d("+TT/"),g=d("kzvK"),f=d("CMP+"),c=d("oVpE"),o=c.createSymbol,r=d("aX7z"),i=d("OELB"),n=d("7aKB"),e=n.encodeHTML,l=O.bind,t=O.each,a=Math.PI,s=g.extend({type:"timeline.slider",init:function(v,y){this.api=y,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(v,y,E,T){if(this.model=v,this.api=E,this.ecModel=y,this.group.removeAll(),v.get("show",!0)){var w=this._layout(v,E),S=this._createGroup("mainGroup"),_=this._createGroup("labelGroup"),I=this._axis=this._createAxis(w,v);v.formatTooltip=function(L){return e(I.scale.getLabel(L))},t(["AxisLine","AxisTick","Control","CurrentPointer"],function(L){this["_render"+L](w,S,I,v)},this),this._renderAxisLabel(w,_,I,v),this._position(w,v)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(v,y){var E=v.get("label.position"),T=v.get("orient"),w=u(v,y);E==null||E==="auto"?E=T==="horizontal"?w.y+w.height/2<y.getHeight()/2?"-":"+":w.x+w.width/2<y.getWidth()/2?"+":"-":isNaN(E)&&(E={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[T][E]);var S={horizontal:"center",vertical:E>=0||E==="+"?"left":"right"},_={horizontal:E>=0||E==="+"?"top":"bottom",vertical:"middle"},I={horizontal:0,vertical:a/2},L=T==="vertical"?w.height:w.width,N=v.getModel("controlStyle"),R=N.get("show",!0),D=R?N.get("itemSize"):0,F=R?N.get("itemGap"):0,M=D+F,U=v.get("label.rotate")||0;U=U*a/180;var B,j,W,V,z=N.get("position",!0),J=R&&N.get("showPlayBtn",!0),q=R&&N.get("showPrevBtn",!0),de=R&&N.get("showNextBtn",!0),ae=0,ve=L;return z==="left"||z==="bottom"?(J&&(B=[0,0],ae+=M),q&&(j=[ae,0],ae+=M),de&&(W=[ve-D,0],ve-=M)):(J&&(B=[ve-D,0],ve-=M),q&&(j=[0,0],ae+=M),de&&(W=[ve-D,0],ve-=M)),V=[ae,ve],v.get("inverse")&&V.reverse(),{viewRect:w,mainLength:L,orient:T,rotation:I[T],labelRotation:U,labelPosOpt:E,labelAlign:v.get("label.align")||S[T],labelBaseline:v.get("label.verticalAlign")||v.get("label.baseline")||_[T],playPosition:B,prevBtnPosition:j,nextBtnPosition:W,axisExtent:V,controlSize:D,controlGap:F}},_position:function(v,y){var E=this._mainGroup,T=this._labelGroup,w=v.viewRect;if(v.orient==="vertical"){var S=C.create(),_=w.x,I=w.y+w.height;C.translate(S,S,[-_,-I]),C.rotate(S,S,-a/2),C.translate(S,S,[_,I]),w=w.clone(),w.applyTransform(S)}var L=j(w),N=j(E.getBoundingRect()),R=j(T.getBoundingRect()),D=E.position,F=T.position;F[0]=D[0]=L[0][0];var M=v.labelPosOpt;if(isNaN(M)){var U=M==="+"?0:1;W(D,N,L,1,U),W(F,R,L,1,1-U)}else{var U=M>=0?0:1;W(D,N,L,1,U),F[1]=D[1]+M}E.attr("position",D),T.attr("position",F),E.rotation=T.rotation=v.rotation,B(E),B(T);function B(V){var z=V.position;V.origin=[L[0][0]-z[0],L[1][0]-z[1]]}function j(V){return[[V.x,V.x+V.width],[V.y,V.y+V.height]]}function W(V,z,J,q,de){V[q]+=J[q][de]-z[q][de]}},_createAxis:function(v,y){var E=y.getData(),T=y.get("axisType"),w=r.createScaleByModel(y,T);w.getTicks=function(){return E.mapArray(["value"],function(I){return I})};var S=E.getDataExtent("value");w.setExtent(S[0],S[1]),w.niceTicks();var _=new f("value",w,v.axisExtent,T);return _.model=y,_},_createGroup:function(v){var y=this["_"+v]=new A.Group;return this.group.add(y),y},_renderAxisLine:function(v,y,E,T){var w=E.getExtent();if(!T.get("lineStyle.show"))return;y.add(new A.Line({shape:{x1:w[0],y1:0,x2:w[1],y2:0},style:O.extend({lineCap:"round"},T.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(v,y,E,T){var w=T.getData(),S=E.scale.getTicks();t(S,function(_){var I=E.dataToCoord(_),L=w.getItemModel(_),N=L.getModel("itemStyle"),R=L.getModel("emphasis.itemStyle"),D={position:[I,0],onclick:l(this._changeTimeline,this,_)},F=p(L,N,y,D);A.setHoverStyle(F,R.getItemStyle()),L.get("tooltip")?(F.dataIndex=_,F.dataModel=T):F.dataIndex=F.dataModel=null},this)},_renderAxisLabel:function(v,y,E,T){var w=E.getLabelModel();if(!w.get("show"))return;var S=T.getData(),_=E.getViewLabels();t(_,function(I){var L=I.tickValue,N=S.getItemModel(L),R=N.getModel("label"),D=N.getModel("emphasis.label"),F=E.dataToCoord(I.tickValue),M=new A.Text({position:[F,0],rotation:v.labelRotation-v.rotation,onclick:l(this._changeTimeline,this,L),silent:!1});A.setTextStyle(M.style,R,{text:I.formattedLabel,textAlign:v.labelAlign,textVerticalAlign:v.labelBaseline}),y.add(M),A.setHoverStyle(M,A.setTextStyle({},D))},this)},_renderControl:function(v,y,E,T){var w=v.controlSize,S=v.rotation,_=T.getModel("controlStyle").getItemStyle(),I=T.getModel("emphasis.controlStyle").getItemStyle(),L=[0,-w/2,w,w],N=T.getPlayState(),R=T.get("inverse",!0);D(v.nextBtnPosition,"controlStyle.nextIcon",l(this._changeTimeline,this,R?"-":"+")),D(v.prevBtnPosition,"controlStyle.prevIcon",l(this._changeTimeline,this,R?"+":"-")),D(v.playPosition,"controlStyle."+(N?"stopIcon":"playIcon"),l(this._handlePlayClick,this,!N),!0);function D(F,M,U,B){if(!F)return;var j={position:F,origin:[w/2,0],rotation:B?-S:0,rectHover:!0,style:_,onclick:U},W=h(T,M,L,j);y.add(W),A.setHoverStyle(W,I)}},_renderCurrentPointer:function(v,y,E,T){var w=T.getData(),S=T.getCurrentIndex(),_=w.getItemModel(S).getModel("checkpointStyle"),I=this,L={onCreate:function(N){N.draggable=!0,N.drift=l(I._handlePointerDrag,I),N.ondragend=l(I._handlePointerDragend,I),m(N,S,E,T,!0)},onUpdate:function(N){m(N,S,E,T)}};this._currentPointer=p(_,_,this._mainGroup,{},this._currentPointer,L)},_handlePlayClick:function(v){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:v,from:this.uid})},_handlePointerDrag:function(v,y,E){this._clearTimer(),this._pointerChangeTimeline([E.offsetX,E.offsetY])},_handlePointerDragend:function(v){this._pointerChangeTimeline([v.offsetX,v.offsetY],!0)},_pointerChangeTimeline:function(v,y){var E=this._toAxisCoord(v)[0],T=this._axis,w=i.asc(T.getExtent().slice());E>w[1]&&(E=w[1]),E<w[0]&&(E=w[0]),this._currentPointer.position[0]=E,this._currentPointer.dirty();var S=this._findNearestTick(E),_=this.model;(y||S!==_.getCurrentIndex()&&_.get("realtime"))&&this._changeTimeline(S)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(l(v,this),this.model.get("playInterval")));function v(){var y=this.model;this._changeTimeline(y.getCurrentIndex()+(y.get("rewind",!0)?-1:1))}},_toAxisCoord:function(v){var y=this._mainGroup.getLocalTransform();return A.applyTransform(v,y,!0)},_findNearestTick:function(v){var y=this.model.getData(),E=Infinity,T,w=this._axis;return y.each(["value"],function(S,_){var I=w.dataToCoord(S),L=Math.abs(I-v);L<E&&(E=L,T=_)}),T},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(v){var y=this.model.getCurrentIndex();v==="+"?v=y+1:v==="-"&&(v=y-1),this.api.dispatchAction({type:"timelineChange",currentIndex:v,from:this.uid})}});function u(v,y){return b.getLayoutRect(v.getBoxLayoutParams(),{width:y.getWidth(),height:y.getHeight()},v.get("padding"))}function h(v,y,E,T){var w=A.makePath(v.get(y).replace(/^path:\/\//,""),O.clone(T||{}),new x(E[0],E[1],E[2],E[3]),"center");return w}function p(v,y,E,T,w,S){var _=y.get("color");if(w)w.setColor(_),E.add(w),S&&S.onUpdate(w);else{var I=v.get("symbol");w=o(I,-1,-1,2,2,_),w.setStyle("strokeNoScale",!0),E.add(w),S&&S.onCreate(w)}var L=y.getItemStyle(["color","symbol","symbolSize"]);w.setStyle(L),T=O.merge({rectHover:!0,z2:100},T,!0);var N=v.get("symbolSize");N=N instanceof Array?N.slice():[+N,+N],N[0]/=2,N[1]/=2,T.scale=N;var R=v.get("symbolOffset");if(R){var D=T.position=T.position||[0,0];D[0]+=i.parsePercent(R[0],N[0]),D[1]+=i.parsePercent(R[1],N[1])}var F=v.get("symbolRotate");return T.rotation=(F||0)*Math.PI/180||0,w.attr(T),w.updateTransform(),w}function m(v,y,E,T,w){if(v.dragging)return;var S=T.getModel("checkpointStyle"),_=E.dataToCoord(T.getData().get(["value"],y));w||!S.get("animation",!0)?v.attr({position:[_,0]}):(v.stopAnimation(!0),v.animateTo({position:[_,0]},S.get("animationDuration",!0),S.get("animationEasing",!0)))}H.exports=s},NJEC:function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("J4zp"),A=d.n(C),b=d("q1tI"),g=d.n(b),f=d("TSYQ"),c=d.n(f),o=d("sKbD"),r=d.n(o),i=d("4IlW"),n=d("3S7+"),e=d("2/Rp"),l=d("zvFY"),t=d("YMnH"),a=d("ZvpZ"),s=d("H84U"),u=d("bogI"),h=d("0n0R"),p=void 0,m=function(y,E){var T={};for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&E.indexOf(w)<0&&(T[w]=y[w]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,w=Object.getOwnPropertySymbols(y);S<w.length;S++)E.indexOf(w[S])<0&&Object.prototype.propertyIsEnumerable.call(y,w[S])&&(T[w[S]]=y[w[S]]);return T},v=b.forwardRef(function(y,E){var T=b.useState(y.visible),w=A()(T,2),S=w[0],_=w[1];b.useEffect(function(){"visible"in y&&_(y.visible)},[y.visible]),b.useEffect(function(){"defaultVisible"in y&&_(y.defaultVisible)},[y.defaultVisible]);var I=function(_e,Ie){"visible"in y||_(_e),y.onVisibleChange&&y.onVisibleChange(_e,Ie)},L=function(_e){I(!1,_e),y.onConfirm&&y.onConfirm.call(p,_e)},N=function(_e){I(!1,_e),y.onCancel&&y.onCancel.call(p,_e)},R=function(_e){_e.keyCode===i.a.ESC&&S&&I(!1,_e)},D=function(_e){var Ie=y.disabled;if(Ie)return;I(_e)},F=function(_e,Ie){var He=y.okButtonProps,me=y.cancelButtonProps,ke=y.title,se=y.cancelText,te=y.okText,Ge=y.okType,oe=y.icon;return b.createElement("div",{className:"".concat(_e,"-inner-content")},b.createElement("div",{className:"".concat(_e,"-message")},oe,b.createElement("div",{className:"".concat(_e,"-message-title")},Object(u.a)(ke))),b.createElement("div",{className:"".concat(_e,"-buttons")},b.createElement(e.a,x()({onClick:N,size:"small"},me),se||Ie.cancelText),b.createElement(e.a,x()({onClick:L},Object(l.a)(Ge),{size:"small"},He),te||Ie.okText)))},M=b.useContext(s.b),U=M.getPrefixCls,B=y.prefixCls,j=y.placement,W=y.children,V=y.overlayClassName,z=m(y,["prefixCls","placement","children","overlayClassName"]),J=U("popover",B),q=U("popconfirm",B),de=c()(q,V),ae=b.createElement(t.a,{componentName:"Popconfirm",defaultLocale:a.a.Popconfirm},function(ve){return F(J,ve)});return b.createElement(n.a,x()({},z,{prefixCls:J,placement:j,onVisibleChange:D,visible:S,overlay:ae,overlayClassName:de,ref:E}),Object(h.a)(W,{onKeyDown:function(_e){var Ie,He;(He=W==null?void 0:(Ie=W.props).onKeyDown)===null||He===void 0||He.call(Ie,_e),R(_e)}}))});v.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:b.createElement(r.a,null),disabled:!1},k.a=v},NUBc:function(H,k,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),b=d("q1tI"),g=d.n(b),f=d("wx14"),c=d("rePB"),o=d("VTBJ"),r=d("1OyB"),i=d("vuIU"),n=d("Ji7U"),e=d("LK+K"),l=d("TSYQ"),t=d.n(l),a=function(Ie){var He,me="".concat(Ie.rootPrefixCls,"-item"),ke=t()(me,"".concat(me,"-").concat(Ie.page),(He={},Object(c.a)(He,"".concat(me,"-active"),Ie.active),Object(c.a)(He,Ie.className,!!Ie.className),Object(c.a)(He,"".concat(me,"-disabled"),!Ie.page),He)),se=function(){Ie.onClick(Ie.page)},te=function(oe){Ie.onKeyPress(oe,Ie.onClick,Ie.page)};return g.a.createElement("li",{title:Ie.showTitle?Ie.page:null,className:ke,onClick:se,onKeyPress:te,tabIndex:"0"},Ie.itemRender(Ie.page,"page",g.a.createElement("a",{rel:"nofollow"},Ie.page)))},s=a,u={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},h=function(_e){Object(n.a)(He,_e);var Ie=Object(e.a)(He);function He(){var me;Object(r.a)(this,He);for(var ke=arguments.length,se=new Array(ke),te=0;te<ke;te++)se[te]=arguments[te];return me=Ie.call.apply(Ie,[this].concat(se)),me.state={goInputText:""},me.buildOptionText=function(Ge){return"".concat(Ge," ").concat(me.props.locale.items_per_page)},me.changeSize=function(Ge){me.props.changeSize(Number(Ge))},me.handleChange=function(Ge){me.setState({goInputText:Ge.target.value})},me.handleBlur=function(Ge){var oe=me.props,Y=oe.goButton,G=oe.quickGo,Q=oe.rootPrefixCls,ye=me.state.goInputText;if(Y||ye==="")return;if(Ge.relatedTarget&&(Ge.relatedTarget.className.indexOf("".concat(Q,"-prev"))>=0||Ge.relatedTarget.className.indexOf("".concat(Q,"-next"))>=0))return;me.setState({goInputText:""}),G(me.getValidValue())},me.go=function(Ge){var oe=me.state.goInputText;if(oe==="")return;(Ge.keyCode===u.ENTER||Ge.type==="click")&&(me.setState({goInputText:""}),me.props.quickGo(me.getValidValue()))},me}return Object(i.a)(He,[{key:"getValidValue",value:function(){var ke=this.state,se=ke.goInputText,te=ke.current;return!se||isNaN(se)?te:Number(se)}},{key:"getPageSizeOptions",value:function(){var ke=this.props,se=ke.pageSize,te=ke.pageSizeOptions;return te.some(function(Ge){return Ge.toString()===se.toString()})?te:te.concat([se.toString()]).sort(function(Ge,oe){var Y=isNaN(Number(Ge))?0:Number(Ge),G=isNaN(Number(oe))?0:Number(oe);return Y-G})}},{key:"render",value:function(){var ke=this,se=this.props,te=se.pageSize,Ge=se.locale,oe=se.rootPrefixCls,Y=se.changeSize,G=se.quickGo,Q=se.goButton,ye=se.selectComponentClass,ce=se.buildOptionText,Te=se.selectPrefixCls,Se=se.disabled,le=this.state.goInputText,fe="".concat(oe,"-options"),Ee=ye,Ve=null,vt=null,et=null;if(!Y&&!G)return null;var Oe=this.getPageSizeOptions();if(Y&&Ee){var Tt=Oe.map(function(Je,St){return g.a.createElement(Ee.Option,{key:St,value:Je.toString()},(ce||ke.buildOptionText)(Je))});Ve=g.a.createElement(Ee,{disabled:Se,prefixCls:Te,showSearch:!1,className:"".concat(fe,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(te||Oe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(St){return St.parentNode}},Tt)}return G&&(Q&&(et=typeof Q=="boolean"?g.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Se,className:"".concat(fe,"-quick-jumper-button")},Ge.jump_to_confirm):g.a.createElement("span",{onClick:this.go,onKeyUp:this.go},Q)),vt=g.a.createElement("div",{className:"".concat(fe,"-quick-jumper")},Ge.jump_to,g.a.createElement("input",{disabled:Se,type:"text",value:le,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),Ge.page,et)),g.a.createElement("li",{className:"".concat(fe)},Ve,vt)}}]),He}(g.a.Component);h.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=h,m=d("N2Kk");function v(){}function y(_e){return typeof _e=="number"&&isFinite(_e)&&Math.floor(_e)===_e}function E(_e,Ie,He){return He}function T(_e,Ie,He){var me=typeof _e=="undefined"?Ie.pageSize:_e;return Math.floor((He.total-1)/me)+1}var w=function(_e){Object(n.a)(He,_e);var Ie=Object(e.a)(He);function He(me){var ke;Object(r.a)(this,He),ke=Ie.call(this,me),ke.getJumpPrevPage=function(){return Math.max(1,ke.state.current-(ke.props.showLessItems?3:5))},ke.getJumpNextPage=function(){return Math.min(T(void 0,ke.state,ke.props),ke.state.current+(ke.props.showLessItems?3:5))},ke.getItemIcon=function(Y,G){var Q=ke.props.prefixCls,ye=Y||g.a.createElement("button",{type:"button","aria-label":G,className:"".concat(Q,"-item-link")});return typeof Y=="function"&&(ye=g.a.createElement(Y,Object(o.a)({},ke.props))),ye},ke.savePaginationNode=function(Y){ke.paginationNode=Y},ke.isValid=function(Y){return y(Y)&&Y!==ke.state.current},ke.shouldDisplayQuickJumper=function(){var Y=ke.props,G=Y.showQuickJumper,Q=Y.pageSize,ye=Y.total;return ye<=Q?!1:G},ke.handleKeyDown=function(Y){(Y.keyCode===u.ARROW_UP||Y.keyCode===u.ARROW_DOWN)&&Y.preventDefault()},ke.handleKeyUp=function(Y){var G=ke.getValidValue(Y),Q=ke.state.currentInputValue;G!==Q&&ke.setState({currentInputValue:G}),Y.keyCode===u.ENTER?ke.handleChange(G):Y.keyCode===u.ARROW_UP?ke.handleChange(G-1):Y.keyCode===u.ARROW_DOWN&&ke.handleChange(G+1)},ke.changePageSize=function(Y){var G=ke.state.current,Q=T(Y,ke.state,ke.props);G=G>Q?Q:G,Q===0&&(G=ke.state.current),typeof Y=="number"&&("pageSize"in ke.props||ke.setState({pageSize:Y}),"current"in ke.props||ke.setState({current:G,currentInputValue:G})),ke.props.onShowSizeChange(G,Y),"onChange"in ke.props&&ke.props.onChange&&ke.props.onChange(G,Y)},ke.handleChange=function(Y){var G=ke.props.disabled,Q=Y;if(ke.isValid(Q)&&!G){var ye=T(void 0,ke.state,ke.props);Q>ye?Q=ye:Q<1&&(Q=1),"current"in ke.props||ke.setState({current:Q,currentInputValue:Q});var ce=ke.state.pageSize;return ke.props.onChange(Q,ce),Q}return ke.state.current},ke.prev=function(){ke.hasPrev()&&ke.handleChange(ke.state.current-1)},ke.next=function(){ke.hasNext()&&ke.handleChange(ke.state.current+1)},ke.jumpPrev=function(){ke.handleChange(ke.getJumpPrevPage())},ke.jumpNext=function(){ke.handleChange(ke.getJumpNextPage())},ke.hasPrev=function(){return ke.state.current>1},ke.hasNext=function(){return ke.state.current<T(void 0,ke.state,ke.props)},ke.runIfEnter=function(Y,G){if(Y.key==="Enter"||Y.charCode===13){for(var Q=arguments.length,ye=new Array(Q>2?Q-2:0),ce=2;ce<Q;ce++)ye[ce-2]=arguments[ce];G.apply(void 0,ye)}},ke.runIfEnterPrev=function(Y){ke.runIfEnter(Y,ke.prev)},ke.runIfEnterNext=function(Y){ke.runIfEnter(Y,ke.next)},ke.runIfEnterJumpPrev=function(Y){ke.runIfEnter(Y,ke.jumpPrev)},ke.runIfEnterJumpNext=function(Y){ke.runIfEnter(Y,ke.jumpNext)},ke.handleGoTO=function(Y){(Y.keyCode===u.ENTER||Y.type==="click")&&ke.handleChange(ke.state.currentInputValue)};var se=me.onChange!==v,te="current"in me;te&&!se&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Ge=me.defaultCurrent;"current"in me&&(Ge=me.current);var oe=me.defaultPageSize;return"pageSize"in me&&(oe=me.pageSize),Ge=Math.min(Ge,T(oe,void 0,me)),ke.state={current:Ge,currentInputValue:Ge,pageSize:oe},ke}return Object(i.a)(He,[{key:"componentDidUpdate",value:function(ke,se){var te=this.props.prefixCls;if(se.current!==this.state.current&&this.paginationNode){var Ge=this.paginationNode.querySelector(".".concat(te,"-item-").concat(se.current));Ge&&document.activeElement===Ge&&Ge.blur()}}},{key:"getValidValue",value:function(ke){var se=ke.target.value,te=T(void 0,this.state,this.props),Ge=this.state.currentInputValue,oe;return se===""?oe=se:isNaN(Number(se))?oe=Ge:se>=te?oe=te:oe=Number(se),oe}},{key:"getShowSizeChanger",value:function(){var ke=this.props,se=ke.showSizeChanger,te=ke.total,Ge=ke.totalBoundaryShowSizeChanger;return typeof se!="undefined"?se:te>Ge}},{key:"renderPrev",value:function(ke){var se=this.props,te=se.prevIcon,Ge=se.itemRender,oe=Ge(ke,"prev",this.getItemIcon(te,"prev page")),Y=!this.hasPrev();return Object(b.isValidElement)(oe)?Object(b.cloneElement)(oe,{disabled:Y}):oe}},{key:"renderNext",value:function(ke){var se=this.props,te=se.nextIcon,Ge=se.itemRender,oe=Ge(ke,"next",this.getItemIcon(te,"next page")),Y=!this.hasNext();return Object(b.isValidElement)(oe)?Object(b.cloneElement)(oe,{disabled:Y}):oe}},{key:"render",value:function(){var ke=this,se=this.props,te=se.prefixCls,Ge=se.className,oe=se.style,Y=se.disabled,G=se.hideOnSinglePage,Q=se.total,ye=se.locale,ce=se.showQuickJumper,Te=se.showLessItems,Se=se.showTitle,le=se.showTotal,fe=se.simple,Ee=se.itemRender,Ve=se.showPrevNextJumpers,vt=se.jumpPrevIcon,et=se.jumpNextIcon,Oe=se.selectComponentClass,Tt=se.selectPrefixCls,Je=se.pageSizeOptions,St=this.state,Mt=St.current,er=St.pageSize,It=St.currentInputValue;if(G===!0&&Q<=er)return null;var _t=T(void 0,this.state,this.props),Xe=[],ie=null,X=null,Be=null,Ce=null,Z=null,nt=ce&&ce.goButton,ct=Te?1:2,Qe=Mt-1>0?Mt-1:0,dt=Mt+1<_t?Mt+1:_t,Ft=Object.keys(this.props).reduce(function(Nn,jt){return(jt.substr(0,5)==="data-"||jt.substr(0,5)==="aria-"||jt==="role")&&(Nn[jt]=ke.props[jt]),Nn},{});if(fe)return nt&&(typeof nt=="boolean"?Z=g.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ye.jump_to_confirm):Z=g.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},nt),Z=g.a.createElement("li",{title:Se?"".concat(ye.jump_to).concat(Mt,"/").concat(_t):null,className:"".concat(te,"-simple-pager")},Z)),g.a.createElement("ul",Object(f.a)({className:t()(te,"".concat(te,"-simple"),Object(c.a)({},"".concat(te,"-disabled"),Y),Ge),style:oe,ref:this.savePaginationNode},Ft),g.a.createElement("li",{title:Se?ye.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:t()("".concat(te,"-prev"),Object(c.a)({},"".concat(te,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(Qe)),g.a.createElement("li",{title:Se?"".concat(Mt,"/").concat(_t):null,className:"".concat(te,"-simple-pager")},g.a.createElement("input",{type:"text",value:It,disabled:Y,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),g.a.createElement("span",{className:"".concat(te,"-slash")},"/"),_t),g.a.createElement("li",{title:Se?ye.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:t()("".concat(te,"-next"),Object(c.a)({},"".concat(te,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(dt)),Z);if(_t<=3+ct*2){var Lr={locale:ye,rootPrefixCls:te,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Se,itemRender:Ee};_t||Xe.push(g.a.createElement(s,Object(f.a)({},Lr,{key:"noPager",page:_t,className:"".concat(te,"-disabled")})));for(var Wt=1;Wt<=_t;Wt+=1){var ar=Mt===Wt;Xe.push(g.a.createElement(s,Object(f.a)({},Lr,{key:Wt,page:Wt,active:ar})))}}else{var Ut=Te?ye.prev_3:ye.prev_5,kt=Te?ye.next_3:ye.next_5;Ve&&(ie=g.a.createElement("li",{title:Se?Ut:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:t()("".concat(te,"-jump-prev"),Object(c.a)({},"".concat(te,"-jump-prev-custom-icon"),!!vt))},Ee(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(vt,"prev page"))),X=g.a.createElement("li",{title:Se?kt:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:t()("".concat(te,"-jump-next"),Object(c.a)({},"".concat(te,"-jump-next-custom-icon"),!!et))},Ee(this.getJumpNextPage(),"jump-next",this.getItemIcon(et,"next page")))),Ce=g.a.createElement(s,{locale:ye,last:!0,rootPrefixCls:te,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_t,page:_t,active:!1,showTitle:Se,itemRender:Ee}),Be=g.a.createElement(s,{locale:ye,rootPrefixCls:te,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Se,itemRender:Ee});var st=Math.max(1,Mt-ct),Rr=Math.min(Mt+ct,_t);Mt-1<=ct&&(Rr=1+ct*2),_t-Mt<=ct&&(st=_t-ct*2);for(var on=st;on<=Rr;on+=1){var Sn=Mt===on;Xe.push(g.a.createElement(s,{locale:ye,rootPrefixCls:te,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:on,page:on,active:Sn,showTitle:Se,itemRender:Ee}))}Mt-1>=ct*2&&Mt!==1+2&&(Xe[0]=Object(b.cloneElement)(Xe[0],{className:"".concat(te,"-item-after-jump-prev")}),Xe.unshift(ie)),_t-Mt>=ct*2&&Mt!==_t-2&&(Xe[Xe.length-1]=Object(b.cloneElement)(Xe[Xe.length-1],{className:"".concat(te,"-item-before-jump-next")}),Xe.push(X)),st!==1&&Xe.unshift(Be),Rr!==_t&&Xe.push(Ce)}var zn=null;le&&(zn=g.a.createElement("li",{className:"".concat(te,"-total-text")},le(Q,[Q===0?0:(Mt-1)*er+1,Mt*er>Q?Q:Mt*er])));var Ii=!this.hasPrev()||!_t,yn=!this.hasNext()||!_t;return g.a.createElement("ul",Object(f.a)({className:t()(te,Ge,Object(c.a)({},"".concat(te,"-disabled"),Y)),style:oe,unselectable:"unselectable",ref:this.savePaginationNode},Ft),zn,g.a.createElement("li",{title:Se?ye.prev_page:null,onClick:this.prev,tabIndex:Ii?null:0,onKeyPress:this.runIfEnterPrev,className:t()("".concat(te,"-prev"),Object(c.a)({},"".concat(te,"-disabled"),Ii)),"aria-disabled":Ii},this.renderPrev(Qe)),Xe,g.a.createElement("li",{title:Se?ye.next_page:null,onClick:this.next,tabIndex:yn?null:0,onKeyPress:this.runIfEnterNext,className:t()("".concat(te,"-next"),Object(c.a)({},"".concat(te,"-disabled"),yn)),"aria-disabled":yn},this.renderNext(dt)),g.a.createElement(p,{disabled:Y,locale:ye,rootPrefixCls:te,selectComponentClass:Oe,selectPrefixCls:Tt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Mt,pageSize:er,pageSizeOptions:Je,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:nt}))}}],[{key:"getDerivedStateFromProps",value:function(ke,se){var te={};if("current"in ke&&(te.current=ke.current,ke.current!==se.current&&(te.currentInputValue=te.current)),"pageSize"in ke&&ke.pageSize!==se.pageSize){var Ge=se.current,oe=T(ke.pageSize,se,ke);Ge=Ge>oe?oe:Ge,"current"in ke||(te.current=Ge,te.currentInputValue=Ge),te.pageSize=ke.pageSize}return te}}]),He}(g.a.Component);w.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:v,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:v,locale:m.a,style:{},itemRender:E,totalBoundaryShowSizeChanger:50};var S=w,_=d("H4fg"),I=d("DFhj"),L=d.n(I),N=d("fEPi"),R=d.n(N),D=d("u9fO"),F=d.n(D),M=d("mO/d"),U=d.n(M),B=d("2fM7"),j=function(Ie){return b.createElement(B.a,A()({size:"small"},Ie))};j.Option=B.a.Option;var W=j,V=d("YMnH"),z=d("H84U"),J=d("5OYt"),q=function(_e,Ie){var He={};for(var me in _e)Object.prototype.hasOwnProperty.call(_e,me)&&Ie.indexOf(me)<0&&(He[me]=_e[me]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,me=Object.getOwnPropertySymbols(_e);ke<me.length;ke++)Ie.indexOf(me[ke])<0&&Object.prototype.propertyIsEnumerable.call(_e,me[ke])&&(He[me[ke]]=_e[me[ke]]);return He},de=function(Ie){var He=Ie.prefixCls,me=Ie.selectPrefixCls,ke=Ie.className,se=Ie.size,te=Ie.locale,Ge=q(Ie,["prefixCls","selectPrefixCls","className","size","locale"]),oe=Object(J.a)(),Y=oe.xs,G=b.useContext(z.b),Q=G.getPrefixCls,ye=G.direction,ce=Q("pagination",He),Te=function(){var fe=b.createElement("span",{className:"".concat(ce,"-item-ellipsis")},"\u2022\u2022\u2022"),Ee=b.createElement("button",{className:"".concat(ce,"-item-link"),type:"button",tabIndex:-1},b.createElement(L.a,null)),Ve=b.createElement("button",{className:"".concat(ce,"-item-link"),type:"button",tabIndex:-1},b.createElement(R.a,null)),vt=b.createElement("a",{className:"".concat(ce,"-item-link")},b.createElement("div",{className:"".concat(ce,"-item-container")},b.createElement(F.a,{className:"".concat(ce,"-item-link-icon")}),fe)),et=b.createElement("a",{className:"".concat(ce,"-item-link")},b.createElement("div",{className:"".concat(ce,"-item-container")},b.createElement(U.a,{className:"".concat(ce,"-item-link-icon")}),fe));if(ye==="rtl"){var Oe=[Ve,Ee];Ee=Oe[0],Ve=Oe[1];var Tt=[et,vt];vt=Tt[0],et=Tt[1]}return{prevIcon:Ee,nextIcon:Ve,jumpPrevIcon:vt,jumpNextIcon:et}},Se=function(fe){var Ee=A()(A()({},fe),te),Ve=se==="small"||!!(Y&&!se&&Ge.responsive),vt=Q("select",me),et=t()(ke,x()({mini:Ve},"".concat(ce,"-rtl"),ye==="rtl"));return b.createElement(S,A()({},Ge,{prefixCls:ce,selectPrefixCls:vt},Te(),{className:et,selectComponentClass:Ve?W:B.a,locale:Ee}))};return b.createElement(V.a,{componentName:"Pagination",defaultLocale:_.a},Se)},ae=de,ve=k.a=ae},NohK:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=function(C){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,b=null;return function(){for(var g=this,f=arguments.length,c=new Array(f),o=0;o<f;o++)c[o]=arguments[o];clearTimeout(b),b=setTimeout(function(){C.apply(g,c)},A)}};k.default=O},Nu4q:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var O={icon:function(C,A){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:C}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:A}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:A}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:A}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:C}}]}},name:"picture",theme:"twotone"};k.default=O},"O/iA":function(H,k,d){},O3gP:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("O/iA"),A=d.n(C),b=d("OaEy")},OELB:function(H,k,d){var O=d("bYtY"),x=1e-4;function C(y){return y.replace(/^\s+|\s+$/g,"")}function A(y,E,T,w){var S=E[1]-E[0],_=T[1]-T[0];if(S===0)return _===0?T[0]:(T[0]+T[1])/2;if(w)if(S>0){if(y<=E[0])return T[0];if(y>=E[1])return T[1]}else{if(y>=E[0])return T[0];if(y<=E[1])return T[1]}else{if(y===E[0])return T[0];if(y===E[1])return T[1]}return(y-E[0])/S*_+T[0]}function b(y,E){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*E:parseFloat(y):y==null?NaN:+y}function g(y,E,T){return E==null&&(E=10),E=Math.min(Math.max(0,E),20),y=(+y).toFixed(E),T?y:+y}function f(y){return y.sort(function(E,T){return E-T}),y}function c(y){if(y=+y,isNaN(y))return 0;for(var E=1,T=0;Math.round(y*E)/E!==y;)E*=10,T++;return T}function o(y){var E=y.toString(),T=E.indexOf("e");if(T>0){var w=+E.slice(T+1);return w<0?-w:0}else{var S=E.indexOf(".");return S<0?0:E.length-1-S}}function r(y,E){var T=Math.log,w=Math.LN10,S=Math.floor(T(y[1]-y[0])/w),_=Math.round(T(Math.abs(E[1]-E[0]))/w),I=Math.min(Math.max(-S+_,0),20);return isFinite(I)?I:20}function i(y,E,T){if(!y[E])return 0;var w=O.reduce(y,function(B,j){return B+(isNaN(j)?0:j)},0);if(w===0)return 0;for(var S=Math.pow(10,T),_=O.map(y,function(B){return(isNaN(B)?0:B)/w*S*100}),I=S*100,L=O.map(_,function(B){return Math.floor(B)}),N=O.reduce(L,function(B,j){return B+j},0),R=O.map(_,function(B,j){return B-L[j]});N<I;){for(var D=Number.NEGATIVE_INFINITY,F=null,M=0,U=R.length;M<U;++M)R[M]>D&&(D=R[M],F=M);++L[F],R[F]=0,++N}return L[E]/S}var n=9007199254740991;function e(y){var E=Math.PI*2;return(y%E+E)%E}function l(y){return y>-x&&y<x}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 E=t.exec(y);if(!E)return new Date(NaN);if(E[8]){var T=+E[4]||0;return E[8].toUpperCase()!=="Z"&&(T-=E[8].slice(0,3)),new Date(Date.UTC(+E[1],+(E[2]||1)-1,+E[3]||1,T,+(E[5]||0),+E[6]||0,+E[7]||0))}else return new Date(+E[1],+(E[2]||1)-1,+E[3]||1,+E[4]||0,+(E[5]||0),+E[6]||0,+E[7]||0)}else if(y==null)return new Date(NaN);return new Date(Math.round(y))}function s(y){return Math.pow(10,u(y))}function u(y){if(y===0)return 0;var E=Math.floor(Math.log(y)/Math.LN10);return y/Math.pow(10,E)>=10&&E++,E}function h(y,E){var T=u(y),w=Math.pow(10,T),S=y/w,_;return E?S<1.5?_=1:S<2.5?_=2:S<4?_=3:S<7?_=5:_=10:S<1?_=1:S<2?_=2:S<3?_=3:S<5?_=5:_=10,y=_*w,T>=-20?+y.toFixed(T<0?-T:0):y}function p(y,E){var T=(y.length-1)*E+1,w=Math.floor(T),S=+y[w-1],_=T-w;return _?S+_*(y[w]-S):S}function m(y){y.sort(function(N,R){return L(N,R,0)?-1:1});for(var E=-Infinity,T=1,w=0;w<y.length;){for(var S=y[w].interval,_=y[w].close,I=0;I<2;I++)S[I]<=E&&(S[I]=E,_[I]=I?1:1-T),E=S[I],T=_[I];S[0]===S[1]&&_[0]*_[1]!==1?y.splice(w,1):w++}return y;function L(N,R,D){return N.interval[D]<R.interval[D]||N.interval[D]===R.interval[D]&&(N.close[D]-R.close[D]===(D?-1:1)||!D&&L(N,R,1))}}function v(y){return y-parseFloat(y)>=0}k.linearMap=A,k.parsePercent=b,k.round=g,k.asc=f,k.getPrecision=c,k.getPrecisionSafe=o,k.getPixelPrecision=r,k.getPercentWithPrecision=i,k.MAX_SAFE_INTEGER=n,k.remRadian=e,k.isRadianAroundZero=l,k.parseDate=a,k.quantity=s,k.quantityExponent=u,k.nice=h,k.quantile=p,k.reformIntervals=m,k.isNumeric=v},OKJ2:function(H,k,d){var O=d("KxfA"),x=O.retrieveRawValue,C=d("7aKB"),A=C.getTooltipMarker,b=C.formatTpl,g=d("4NO4"),f=g.getTooltipRenderMode,c=/\{@(.+?)\}/g,o={getDataParams:function(r,i){var n=this.getData(i),e=this.getRawValue(r,i),l=n.getRawIndex(r),t=n.getName(r),a=n.getRawDataItem(r),s=n.getItemVisual(r,"color"),u=n.getItemVisual(r,"borderColor"),h=this.ecModel.getComponent("tooltip"),p=h&&h.get("renderMode"),m=f(p),v=this.mainType,y=v==="series",E=n.userOutput;return{componentType:v,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:l,data:a,dataType:i,value:e,color:s,borderColor:u,dimensionNames:E?E.dimensionNames:null,encode:E?E.encode:null,marker:A({color:s,renderMode:m}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(r,i,n,e,l){i=i||"normal";var t=this.getData(n),a=t.getItemModel(r),s=this.getDataParams(r,n);e!=null&&s.value instanceof Array&&(s.value=s.value[e]);var u=a.get(i==="normal"?[l||"label","formatter"]:[i,l||"label","formatter"]);if(typeof u=="function")return s.status=i,s.dimensionIndex=e,u(s);if(typeof u=="string"){var h=b(u,s);return h.replace(c,function(p,m){var v=m.length;return m.charAt(0)==="["&&m.charAt(v-1)==="]"&&(m=+m.slice(1,v-1)),x(t,r,m)})}},getRawValue:function(r,i){return x(this.getData(i),r)},formatTooltip:function(){}};H.exports=o},OLod:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("K3mO"))})(this,function(O){O.lib.Cipher||function(x){var C=O,A=C.lib,b=A.Base,g=A.WordArray,f=A.BufferedBlockAlgorithm,c=C.enc,o=c.Utf8,r=c.Base64,i=C.algo,n=i.EvpKDF,e=A.Cipher=f.extend({cfg:b.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,N){this.cfg=this.cfg.extend(N),this._xformMode=I,this._key=L,this.reset()},reset:function(){f.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"?S:E}return function(I){return{encrypt:function(N,R,D){return _(R).encrypt(I,N,R,D)},decrypt:function(N,R,D){return _(R).decrypt(I,N,R,D)}}}}()}),l=A.StreamCipher=e.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1}),t=C.mode={},a=A.BlockCipherMode=b.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}}),s=t.CBC=function(){var _=a.extend();_.Encryptor=_.extend({processBlock:function(N,R){var D=this._cipher,F=D.blockSize;I.call(this,N,R,F),D.encryptBlock(N,R),this._prevBlock=N.slice(R,R+F)}}),_.Decryptor=_.extend({processBlock:function(N,R){var D=this._cipher,F=D.blockSize,M=N.slice(R,R+F);D.decryptBlock(N,R),I.call(this,N,R,F),this._prevBlock=M}});function I(L,N,R){var D,F=this._iv;F?(D=F,this._iv=x):D=this._prevBlock;for(var M=0;M<R;M++)L[N+M]^=D[M]}return _}(),u=C.pad={},h=u.Pkcs7={pad:function(I,L){for(var N=L*4,R=N-I.sigBytes%N,D=R<<24|R<<16|R<<8|R,F=[],M=0;M<R;M+=4)F.push(D);var U=g.create(F,R);I.concat(U)},unpad:function(I){var L=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=L}},p=A.BlockCipher=e.extend({cfg:e.cfg.extend({mode:s,padding:h}),reset:function(){var I;e.reset.call(this);var L=this.cfg,N=L.iv,R=L.mode;this._xformMode==this._ENC_XFORM_MODE?I=R.createEncryptor:(I=R.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,N&&N.words):(this._mode=I.call(R,this,N&&N.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}),m=A.CipherParams=b.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),v=C.format={},y=v.OpenSSL={stringify:function(I){var L,N=I.ciphertext,R=I.salt;return R?L=g.create([1398893684,1701076831]).concat(R).concat(N):L=N,L.toString(r)},parse:function(I){var L,N=r.parse(I),R=N.words;return R[0]==1398893684&&R[1]==1701076831&&(L=g.create(R.slice(2,4)),R.splice(0,4),N.sigBytes-=16),m.create({ciphertext:N,salt:L})}},E=A.SerializableCipher=b.extend({cfg:b.extend({format:y}),encrypt:function(I,L,N,R){R=this.cfg.extend(R);var D=I.createEncryptor(N,R),F=D.finalize(L),M=D.cfg;return m.create({ciphertext:F,key:N,iv:M.iv,algorithm:I,mode:M.mode,padding:M.padding,blockSize:I.blockSize,formatter:R.format})},decrypt:function(I,L,N,R){R=this.cfg.extend(R),L=this._parse(L,R.format);var D=I.createDecryptor(N,R).finalize(L.ciphertext);return D},_parse:function(I,L){return typeof I=="string"?L.parse(I,this):I}}),T=C.kdf={},w=T.OpenSSL={execute:function(I,L,N,R){R||(R=g.random(64/8));var D=n.create({keySize:L+N}).compute(I,R),F=g.create(D.words.slice(L),N*4);return D.sigBytes=L*4,m.create({key:D,iv:F,salt:R})}},S=A.PasswordBasedCipher=E.extend({cfg:E.cfg.extend({kdf:w}),encrypt:function(I,L,N,R){R=this.cfg.extend(R);var D=R.kdf.execute(N,I.keySize,I.ivSize);R.iv=D.iv;var F=E.encrypt.call(this,I,L,D.key,R);return F.mixIn(D),F},decrypt:function(I,L,N,R){R=this.cfg.extend(R),L=this._parse(L,R.format);var D=R.kdf.execute(N,I.keySize,I.ivSize,L.salt);R.iv=D.iv;var F=E.decrypt.call(this,I,L,D.key,R);return F}})}()})},OPEp:function(H,k,d){},OQFs:function(H,k,d){var O=d("KCsZ"),x=O([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),C={getLineStyle:function(A){var b=x(this,A);return b.lineDash=this.getLineDash(b.lineWidth),b},getLineDash:function(A){A==null&&(A=1);var b=this.get("type"),g=Math.max(A,2),f=A*4;return b==="solid"||b==null?!1:b==="dashed"?[f,f]:[g,g]}};H.exports=C},OS9S:function(H,k,d){var O=d("bYtY"),x=O.inherits,C=d("Gev7"),A=d("mFDi");function b(c){C.call(this,c),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}b.prototype.incremental=!0,b.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},b.prototype.addDisplayable=function(c,o){o?this._temporaryDisplayables.push(c):this._displayables.push(c),this.dirty()},b.prototype.addDisplayables=function(c,o){o=o||!1;for(var r=0;r<c.length;r++)this.addDisplayable(c[r],o)},b.prototype.eachPendingDisplayable=function(c){for(var o=this._cursor;o<this._displayables.length;o++)c&&c(this._displayables[o]);for(var o=0;o<this._temporaryDisplayables.length;o++)c&&c(this._temporaryDisplayables[o])},b.prototype.update=function(){this.updateTransform();for(var c=this._cursor;c<this._displayables.length;c++){var o=this._displayables[c];o.parent=this,o.update(),o.parent=null}for(var c=0;c<this._temporaryDisplayables.length;c++){var o=this._temporaryDisplayables[c];o.parent=this,o.update(),o.parent=null}},b.prototype.brush=function(c,o){for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.beforeBrush&&i.beforeBrush(c),i.brush(c,r===this._cursor?null:this._displayables[r-1]),i.afterBrush&&i.afterBrush(c)}this._cursor=r;for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.beforeBrush&&i.beforeBrush(c),i.brush(c,r===0?null:this._temporaryDisplayables[r-1]),i.afterBrush&&i.afterBrush(c)}this._temporaryDisplayables=[],this.notClear=!0};var g=[];b.prototype.getBoundingRect=function(){if(!this._rect){for(var c=new A(Infinity,Infinity,-Infinity,-Infinity),o=0;o<this._displayables.length;o++){var r=this._displayables[o],i=r.getBoundingRect().clone();r.needLocalTransform()&&i.applyTransform(r.getLocalTransform(g)),c.union(i)}this._rect=c}return this._rect},b.prototype.contain=function(c,o){var r=this.transformCoordToLocal(c,o),i=this.getBoundingRect();if(i.contain(r[0],r[1]))for(var n=0;n<this._displayables.length;n++){var e=this._displayables[n];if(e.contain(c,o))return!0}return!1},x(b,C);var f=b;H.exports=f},OUJF:function(H,k,d){var O=d("ProS"),x=d("bYtY");O.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(C,A){var b=A.getComponent("timeline");return b&&C.currentIndex!=null&&(b.setCurrentIndex(C.currentIndex),!b.get("loop",!0)&&b.isIndexMax()&&b.setPlayState(!1)),A.resetOption("timeline"),x.defaults({currentIndex:b.option.currentIndex},C)}),O.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(C,A){var b=A.getComponent("timeline");b&&C.playState!=null&&b.setPlayState(C.playState)})},OXB0:function(H,k,d){var O=d("T4UG"),x=d("MwEJ"),C=d("IDmD"),A=O.extend({type:"series.heatmap",getInitialData:function(b,g){return x(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var b=C.get(this.get("coordinateSystem"));if(b&&b.dimensions)return b.dimensions[0]==="lng"&&b.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});H.exports=A},OaEy:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("bKJz"),A=d.n(C),b=d("R9oj")},Ol7k:function(H,k,d){"use strict";var O=d("PKem"),x=d("ZX9x");O.b.Sider=x.b,k.a=O.b},OlYY:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),b=d("ItGF"),g=d("4NO4"),f=d("UOVi"),c=d("zDms"),o=A.each,r=f.eachAxisDim,i=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,s){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,s),this.doInit(u)},mergeOption:function(t){var a=n(t);A.merge(this.option,t,!0),A.merge(this.settledOption,a,!0),this.doInit(a)},doInit:function(t){var a=this.option;b.canvasSupported||(a.realtime=!1),this._setDefaultThrottle(t),e(this,t);var s=this.settledOption;o([["start","startValue"],["end","endValue"]],function(u,h){this._rangePropMode[h]==="value"&&(a[u[0]]=s[u[0]]=null)},this),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(a,s,u,h){var p=this.dependentModels[a.axis][s],m=p.__dzAxisProxy||(p.__dzAxisProxy=new c(a.name,s,this,h));t[a.name+"_"+s]=m},this)},_resetTarget:function(){var t=this.option,a=this._judgeAutoMode();r(function(s){var u=s.axisIndex;t[u]=g.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 s=t.orient;if(s==null&&a)return"orient";if(!a)return s==null&&(t.orient="horizontal"),"axisIndex"},_autoSetAxisIndex:function(){var t=!0,a=this.get("orient",!0),s=this.option,u=this.dependentModels;if(t){var h=a==="vertical"?"y":"x";u[h+"Axis"].length?(s[h+"AxisIndex"]=[0],t=!1):o(u.singleAxis,function(p){t&&p.get("orient",!0)===a&&(s.singleAxisIndex=[p.componentIndex],t=!1)})}t&&r(function(p){if(!t)return;var m=[],v=this.dependentModels[p.axis];if(v.length&&!m.length)for(var y=0,E=v.length;y<E;y++)v[y].get("type")==="category"&&m.push(y);s[p.axisIndex]=m,m.length&&(t=!1)},this),t&&this.ecModel.eachSeries(function(p){this._isSeriesHasAllAxesTypeOf(p,"value")&&r(function(m){var v=s[m.axisIndex],y=p.get(m.axisIndex),E=p.get(m.axisId),T=p.ecModel.queryComponents({mainType:m.axis,index:y,id:E})[0];y=T.componentIndex,A.indexOf(v,y)<0&&v.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 s=!0;return r(function(u){var h=t.get(u.axisIndex),p=this.dependentModels[u.axis][h];(!p||p.get("type")!==a)&&(s=!1)},this),s},_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 s=this.get(a.axisIndex);s.length&&(t=this.dependentModels[a.axis][s[0]])}},this),t},eachTargetAxis:function(t,a){var s=this.ecModel;r(function(u){o(this.get(u.axisIndex),function(h){t.call(a,u,h,this,s)},this)},this)},getAxisProxy:function(t,a){return this._axisProxies[t+"_"+a]},getAxisModel:function(t,a){var s=this.getAxisProxy(t,a);return s&&s.getAxisModel()},setRawRange:function(t){var a=this.option,s=this.settledOption;o([["start","startValue"],["end","endValue"]],function(u){(t[u[0]]!=null||t[u[1]]!=null)&&(a[u[0]]=s[u[0]]=t[u[0]],a[u[1]]=s[u[1]]=t[u[1]])},this),e(this,t)},setCalculatedRange:function(t){var a=this.option;o(["start","startValue","end","endValue"],function(s){a[s]=t[s]})},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,a){if(t==null&&a==null){var s=this.findRepresentativeAxisProxy();if(s)return s.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},findRepresentativeAxisProxy:function(t){if(t)return t.__dzAxisProxy;var a=this._axisProxies;for(var s in a)if(a.hasOwnProperty(s)&&a[s].hostedBy(this))return a[s];for(var s in a)if(a.hasOwnProperty(s)&&!a[s].hostedBy(this))return a[s]},getRangePropMode:function(){return this._rangePropMode.slice()}});function n(t){var a={};return o(["start","end","startValue","endValue","throttle"],function(s){t.hasOwnProperty(s)&&(a[s]=t[s])}),a}function e(t,a){var s=t._rangePropMode,u=t.get("rangeMode");o([["start","startValue"],["end","endValue"]],function(h,p){var m=a[h[0]]!=null,v=a[h[1]]!=null;m&&!v?s[p]="percent":!m&&v?s[p]="value":u?s[p]=u[p]:m&&(s[p]="percent")})}var l=i;H.exports=l},OnYD:function(H,k,d){},"Oy/b":function(H,k,d){(function(x,C){H.exports=C()})(typeof self!="undefined"?self:this,function(){return function(O){var x={};function C(A){if(x[A])return x[A].exports;var b=x[A]={i:A,l:!1,exports:{}};return O[A].call(b.exports,b,b.exports,C),b.l=!0,b.exports}return C.m=O,C.c=x,C.d=function(A,b,g){C.o(A,b)||Object.defineProperty(A,b,{enumerable:!0,get:g})},C.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},C.t=function(A,b){if(b&1&&(A=C(A)),b&8)return A;if(b&4&&typeof A=="object"&&A&&A.__esModule)return A;var g=Object.create(null);if(C.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:A}),b&2&&typeof A!="string")for(var f in A)C.d(g,f,function(c){return A[c]}.bind(null,f));return g},C.n=function(A){var b=A&&A.__esModule?function(){return A.default}:function(){return A};return C.d(b,"a",b),b},C.o=function(A,b){return Object.prototype.hasOwnProperty.call(A,b)},C.p="",C(C.s=1)}([function(O,x,C){},function(O,x,C){"use strict";C.r(x);var A=C(0),b=function(){function ht(ne,pe,be){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ne,this.start=pe,this.end=be}return ht.range=function(pe,be){return be?!pe||!pe.loc||!be.loc||pe.loc.lexer!==be.loc.lexer?null:new ht(pe.loc.lexer,pe.loc.start,be.loc.end):pe&&pe.loc},ht}(),g=function(){function ht(pe,be){this.text=void 0,this.loc=void 0,this.text=pe,this.loc=be}var ne=ht.prototype;return ne.range=function(be,Ue){return new ht(Ue,b.range(this,be))},ht}(),f=function ht(ne,pe){this.position=void 0;var be="KaTeX parse error: "+ne,Ue,pt=pe&&pe.loc;if(pt&&pt.start<=pt.end){var Xt=pt.lexer.input;Ue=pt.start;var Or=pt.end;Ue===Xt.length?be+=" at end of input: ":be+=" at position "+(Ue+1)+": ";var Qr=Xt.slice(Ue,Or).replace(/[^]/g,"$&\u0332"),dn;Ue>15?dn="\u2026"+Xt.slice(Ue-15,Ue):dn=Xt.slice(0,Ue);var jn;Or+15<Xt.length?jn=Xt.slice(Or,Or+15)+"\u2026":jn=Xt.slice(Or),be+=dn+Qr+jn}var ai=new Error(be);return ai.name="ParseError",ai.__proto__=ht.prototype,ai.position=Ue,ai};f.prototype.__proto__=Error.prototype;var c=f,o=function(ne,pe){return ne.indexOf(pe)!==-1},r=function(ne,pe){return ne===void 0?pe:ne},i=/([A-Z])/g,n=function(ne){return ne.replace(i,"-$1").toLowerCase()},e={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},l=/[&><"']/g;function t(ht){return String(ht).replace(l,function(ne){return e[ne]})}var a=function ht(ne){return ne.type==="ordgroup"||ne.type==="color"?ne.body.length===1?ht(ne.body[0]):ne:ne.type==="font"?ht(ne.body):ne},s=function(ne){var pe=a(ne);return pe.type==="mathord"||pe.type==="textord"||pe.type==="atom"},u=function(ne){if(!ne)throw new Error("Expected non-null, but got "+String(ne));return ne},h=function(ne){var pe=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(ne);return pe!=null?pe[1]:"_relative"},p={contains:o,deflt:r,escape:t,hyphenate:n,getBaseElem:a,isCharacterBox:s,protocolFromUrl:h},m=function(){function ht(pe){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,pe=pe||{},this.displayMode=p.deflt(pe.displayMode,!1),this.output=p.deflt(pe.output,"htmlAndMathml"),this.leqno=p.deflt(pe.leqno,!1),this.fleqn=p.deflt(pe.fleqn,!1),this.throwOnError=p.deflt(pe.throwOnError,!0),this.errorColor=p.deflt(pe.errorColor,"#cc0000"),this.macros=pe.macros||{},this.minRuleThickness=Math.max(0,p.deflt(pe.minRuleThickness,0)),this.colorIsTextColor=p.deflt(pe.colorIsTextColor,!1),this.strict=p.deflt(pe.strict,"warn"),this.trust=p.deflt(pe.trust,!1),this.maxSize=Math.max(0,p.deflt(pe.maxSize,Infinity)),this.maxExpand=Math.max(0,p.deflt(pe.maxExpand,1e3))}var ne=ht.prototype;return ne.reportNonstrict=function(be,Ue,pt){var Xt=this.strict;if(typeof Xt=="function"&&(Xt=Xt(be,Ue,pt)),!Xt||Xt==="ignore")return;if(Xt===!0||Xt==="error")throw new c("LaTeX-incompatible input and strict mode is set to 'error': "+(Ue+" ["+be+"]"),pt);Xt==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Ue+" ["+be+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Xt+"': "+Ue+" ["+be+"]"))},ne.useStrictBehavior=function(be,Ue,pt){var Xt=this.strict;if(typeof Xt=="function")try{Xt=Xt(be,Ue,pt)}catch(Or){Xt="error"}return!Xt||Xt==="ignore"?!1:Xt===!0||Xt==="error"?!0:Xt==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Ue+" ["+be+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Xt+"': "+Ue+" ["+be+"]")),!1)},ne.isTrusted=function(be){be.url&&!be.protocol&&(be.protocol=p.protocolFromUrl(be.url));var Ue=typeof this.trust=="function"?this.trust(be):this.trust;return Boolean(Ue)},ht}(),v=function(){function ht(pe,be,Ue){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=pe,this.size=be,this.cramped=Ue}var ne=ht.prototype;return ne.sup=function(){return N[R[this.id]]},ne.sub=function(){return N[D[this.id]]},ne.fracNum=function(){return N[F[this.id]]},ne.fracDen=function(){return N[M[this.id]]},ne.cramp=function(){return N[U[this.id]]},ne.text=function(){return N[B[this.id]]},ne.isTight=function(){return this.size>=2},ht}(),y=0,E=1,T=2,w=3,S=4,_=5,I=6,L=7,N=[new v(y,0,!1),new v(E,0,!0),new v(T,1,!1),new v(w,1,!0),new v(S,2,!1),new v(_,2,!0),new v(I,3,!1),new v(L,3,!0)],R=[S,_,S,_,I,L,I,L],D=[_,_,_,_,L,L,L,L],F=[T,w,S,_,I,L,I,L],M=[w,w,_,_,L,L,L,L],U=[E,E,w,w,_,_,L,L],B=[y,E,T,w,T,w,T,w],j={DISPLAY:N[y],TEXT:N[T],SCRIPT:N[S],SCRIPTSCRIPT:N[I]},W=[{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(ht){for(var ne=0;ne<W.length;ne++)for(var pe=W[ne],be=0;be<pe.blocks.length;be++){var Ue=pe.blocks[be];if(ht>=Ue[0]&&ht<=Ue[1])return pe.name}return null}var z=[];W.forEach(function(ht){return ht.blocks.forEach(function(ne){return z.push.apply(z,ne)})});function J(ht){for(var ne=0;ne<z.length;ne+=2)if(ht>=z[ne]&&ht<=z[ne+1])return!0;return!1}var q=80,de=function(ne,pe){return"M95,"+(622+ne+pe)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+ne/2.075+" -"+ne+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+ne)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+ne)+" "+pe+"h400000v"+(40+ne)+"h-400000z"},ae=function(ne,pe){return"M263,"+(601+ne+pe)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+ne/2.084+" -"+ne+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+ne)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+ne)+" "+pe+"h400000v"+(40+ne)+"h-400000z"},ve=function(ne,pe){return"M983 "+(10+ne+pe)+`
l`+ne/3.13+" -"+ne+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+ne)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+ne)+" "+pe+"h400000v"+(40+ne)+"h-400000z"},_e=function(ne,pe){return"M424,"+(2398+ne+pe)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+ne/4.223+" -"+ne+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+ne)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+ne)+" "+pe+`
h400000v`+(40+ne)+"h-400000z"},Ie=function(ne,pe){return"M473,"+(2713+ne+pe)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+ne/5.298+" -"+ne+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+ne)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+ne)+" "+pe+"h400000v"+(40+ne)+"H1017.7z"},He=function(ne,pe,be){var Ue=be-54-pe-ne;return"M702 "+(ne+pe)+"H400000"+(40+ne)+`
H742v`+Ue+`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 `+pe+"H400000v"+(40+ne)+"H742z"},me=function(ne,pe,be){pe=1e3*pe;var Ue="";switch(ne){case"sqrtMain":Ue=de(pe,q);break;case"sqrtSize1":Ue=ae(pe,q);break;case"sqrtSize2":Ue=ve(pe,q);break;case"sqrtSize3":Ue=_e(pe,q);break;case"sqrtSize4":Ue=Ie(pe,q);break;case"sqrtTall":Ue=He(pe,q,be)}return Ue},ke={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`},se=function(){function ht(pe){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=pe,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var ne=ht.prototype;return ne.hasClass=function(be){return p.contains(this.classes,be)},ne.toNode=function(){for(var be=document.createDocumentFragment(),Ue=0;Ue<this.children.length;Ue++)be.appendChild(this.children[Ue].toNode());return be},ne.toMarkup=function(){for(var be="",Ue=0;Ue<this.children.length;Ue++)be+=this.children[Ue].toMarkup();return be},ne.toText=function(){var be=function(pt){return pt.toText()};return this.children.map(be).join("")},ht}(),te=function(ne){return ne.filter(function(pe){return pe}).join(" ")},Ge=function(ne,pe,be){if(this.classes=ne||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=be||{},pe){pe.style.isTight()&&this.classes.push("mtight");var Ue=pe.getColor();Ue&&(this.style.color=Ue)}},oe=function(ne){var pe=document.createElement(ne);pe.className=te(this.classes);for(var be in this.style)this.style.hasOwnProperty(be)&&(pe.style[be]=this.style[be]);for(var Ue in this.attributes)this.attributes.hasOwnProperty(Ue)&&pe.setAttribute(Ue,this.attributes[Ue]);for(var pt=0;pt<this.children.length;pt++)pe.appendChild(this.children[pt].toNode());return pe},Y=function(ne){var pe="<"+ne;this.classes.length&&(pe+=' class="'+p.escape(te(this.classes))+'"');var be="";for(var Ue in this.style)this.style.hasOwnProperty(Ue)&&(be+=p.hyphenate(Ue)+":"+this.style[Ue]+";");be&&(pe+=' style="'+p.escape(be)+'"');for(var pt in this.attributes)this.attributes.hasOwnProperty(pt)&&(pe+=" "+pt+'="'+p.escape(this.attributes[pt])+'"');pe+=">";for(var Xt=0;Xt<this.children.length;Xt++)pe+=this.children[Xt].toMarkup();return pe+="</"+ne+">",pe},G=function(){function ht(pe,be,Ue,pt){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,Ge.call(this,pe,Ue,pt),this.children=be||[]}var ne=ht.prototype;return ne.setAttribute=function(be,Ue){this.attributes[be]=Ue},ne.hasClass=function(be){return p.contains(this.classes,be)},ne.toNode=function(){return oe.call(this,"span")},ne.toMarkup=function(){return Y.call(this,"span")},ht}(),Q=function(){function ht(pe,be,Ue,pt){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,Ge.call(this,be,pt),this.children=Ue||[],this.setAttribute("href",pe)}var ne=ht.prototype;return ne.setAttribute=function(be,Ue){this.attributes[be]=Ue},ne.hasClass=function(be){return p.contains(this.classes,be)},ne.toNode=function(){return oe.call(this,"a")},ne.toMarkup=function(){return Y.call(this,"a")},ht}(),ye=function(){function ht(pe,be,Ue){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=be,this.src=pe,this.classes=["mord"],this.style=Ue}var ne=ht.prototype;return ne.hasClass=function(be){return p.contains(this.classes,be)},ne.toNode=function(){var be=document.createElement("img");be.src=this.src,be.alt=this.alt,be.className="mord";for(var Ue in this.style)this.style.hasOwnProperty(Ue)&&(be.style[Ue]=this.style[Ue]);return be},ne.toMarkup=function(){var be="<img src='"+this.src+" 'alt='"+this.alt+"' ",Ue="";for(var pt in this.style)this.style.hasOwnProperty(pt)&&(Ue+=p.hyphenate(pt)+":"+this.style[pt]+";");return Ue&&(be+=' style="'+p.escape(Ue)+'"'),be+="'/>",be},ht}(),ce={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Te=function(){function ht(pe,be,Ue,pt,Xt,Or,Qr,dn){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=pe,this.height=be||0,this.depth=Ue||0,this.italic=pt||0,this.skew=Xt||0,this.width=Or||0,this.classes=Qr||[],this.style=dn||{},this.maxFontSize=0;var jn=V(this.text.charCodeAt(0));jn&&this.classes.push(jn+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=ce[this.text])}var ne=ht.prototype;return ne.hasClass=function(be){return p.contains(this.classes,be)},ne.toNode=function(){var be=document.createTextNode(this.text),Ue=null;this.italic>0&&(Ue=document.createElement("span"),Ue.style.marginRight=this.italic+"em"),this.classes.length>0&&(Ue=Ue||document.createElement("span"),Ue.className=te(this.classes));for(var pt in this.style)this.style.hasOwnProperty(pt)&&(Ue=Ue||document.createElement("span"),Ue.style[pt]=this.style[pt]);return Ue?(Ue.appendChild(be),Ue):be},ne.toMarkup=function(){var be=!1,Ue="<span";this.classes.length&&(be=!0,Ue+=' class="',Ue+=p.escape(te(this.classes)),Ue+='"');var pt="";this.italic>0&&(pt+="margin-right:"+this.italic+"em;");for(var Xt in this.style)this.style.hasOwnProperty(Xt)&&(pt+=p.hyphenate(Xt)+":"+this.style[Xt]+";");pt&&(be=!0,Ue+=' style="'+p.escape(pt)+'"');var Or=p.escape(this.text);return be?(Ue+=">",Ue+=Or,Ue+="</span>",Ue):Or},ht}(),Se=function(){function ht(pe,be){this.children=void 0,this.attributes=void 0,this.children=pe||[],this.attributes=be||{}}var ne=ht.prototype;return ne.toNode=function(){var be="http://www.w3.org/2000/svg",Ue=document.createElementNS(be,"svg");for(var pt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,pt)&&Ue.setAttribute(pt,this.attributes[pt]);for(var Xt=0;Xt<this.children.length;Xt++)Ue.appendChild(this.children[Xt].toNode());return Ue},ne.toMarkup=function(){var be="<svg";for(var Ue in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ue)&&(be+=" "+Ue+"='"+this.attributes[Ue]+"'");be+=">";for(var pt=0;pt<this.children.length;pt++)be+=this.children[pt].toMarkup();return be+="</svg>",be},ht}(),le=function(){function ht(pe,be){this.pathName=void 0,this.alternate=void 0,this.pathName=pe,this.alternate=be}var ne=ht.prototype;return ne.toNode=function(){var be="http://www.w3.org/2000/svg",Ue=document.createElementNS(be,"path");return this.alternate?Ue.setAttribute("d",this.alternate):Ue.setAttribute("d",ke[this.pathName]),Ue},ne.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+ke[this.pathName]+"'/>"},ht}(),fe=function(){function ht(pe){this.attributes=void 0,this.attributes=pe||{}}var ne=ht.prototype;return ne.toNode=function(){var be="http://www.w3.org/2000/svg",Ue=document.createElementNS(be,"line");for(var pt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,pt)&&Ue.setAttribute(pt,this.attributes[pt]);return Ue},ne.toMarkup=function(){var be="<line";for(var Ue in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ue)&&(be+=" "+Ue+"='"+this.attributes[Ue]+"'");return be+="/>",be},ht}();function Ee(ht){if(ht instanceof Te)return ht;throw new Error("Expected symbolNode but got "+String(ht)+".")}function Ve(ht){if(ht instanceof G)return ht;throw new Error("Expected span<HtmlDomNode> but got "+String(ht)+".")}var vt={"AMS-Regular":{"65":[0,.68889,0,0,.72222],"66":[0,.68889,0,0,.66667],"67":[0,.68889,0,0,.72222],"68":[0,.68889,0,0,.72222],"69":[0,.68889,0,0,.66667],"70":[0,.68889,0,0,.61111],"71":[0,.68889,0,0,.77778],"72":[0,.68889,0,0,.77778],"73":[0,.68889,0,0,.38889],"74":[.16667,.68889,0,0,.5],"75":[0,.68889,0,0,.77778],"76":[0,.68889,0,0,.66667],"77":[0,.68889,0,0,.94445],"78":[0,.68889,0,0,.72222],"79":[.16667,.68889,0,0,.77778],"80":[0,.68889,0,0,.61111],"81":[.16667,.68889,0,0,.77778],"82":[0,.68889,0,0,.72222],"83":[0,.68889,0,0,.55556],"84":[0,.68889,0,0,.66667],"85":[0,.68889,0,0,.72222],"86":[0,.68889,0,0,.72222],"87":[0,.68889,0,0,1],"88":[0,.68889,0,0,.72222],"89":[0,.68889,0,0,.72222],"90":[0,.68889,0,0,.66667],"107":[0,.68889,0,0,.55556],"165":[0,.675,.025,0,.75],"174":[.15559,.69224,0,0,.94666],"240":[0,.68889,0,0,.55556],"295":[0,.68889,0,0,.54028],"710":[0,.825,0,0,2.33334],"732":[0,.9,0,0,2.33334],"770":[0,.825,0,0,2.33334],"771":[0,.9,0,0,2.33334],"989":[.08167,.58167,0,0,.77778],"1008":[0,.43056,.04028,0,.66667],"8245":[0,.54986,0,0,.275],"8463":[0,.68889,0,0,.54028],"8487":[0,.68889,0,0,.72222],"8498":[0,.68889,0,0,.55556],"8502":[0,.68889,0,0,.66667],"8503":[0,.68889,0,0,.44445],"8504":[0,.68889,0,0,.66667],"8513":[0,.68889,0,0,.63889],"8592":[-.03598,.46402,0,0,.5],"8594":[-.03598,.46402,0,0,.5],"8602":[-.13313,.36687,0,0,1],"8603":[-.13313,.36687,0,0,1],"8606":[.01354,.52239,0,0,1],"8608":[.01354,.52239,0,0,1],"8610":[.01354,.52239,0,0,1.11111],"8611":[.01354,.52239,0,0,1.11111],"8619":[0,.54986,0,0,1],"8620":[0,.54986,0,0,1],"8621":[-.13313,.37788,0,0,1.38889],"8622":[-.13313,.36687,0,0,1],"8624":[0,.69224,0,0,.5],"8625":[0,.69224,0,0,.5],"8630":[0,.43056,0,0,1],"8631":[0,.43056,0,0,1],"8634":[.08198,.58198,0,0,.77778],"8635":[.08198,.58198,0,0,.77778],"8638":[.19444,.69224,0,0,.41667],"8639":[.19444,.69224,0,0,.41667],"8642":[.19444,.69224,0,0,.41667],"8643":[.19444,.69224,0,0,.41667],"8644":[.1808,.675,0,0,1],"8646":[.1808,.675,0,0,1],"8647":[.1808,.675,0,0,1],"8648":[.19444,.69224,0,0,.83334],"8649":[.1808,.675,0,0,1],"8650":[.19444,.69224,0,0,.83334],"8651":[.01354,.52239,0,0,1],"8652":[.01354,.52239,0,0,1],"8653":[-.13313,.36687,0,0,1],"8654":[-.13313,.36687,0,0,1],"8655":[-.13313,.36687,0,0,1],"8666":[.13667,.63667,0,0,1],"8667":[.13667,.63667,0,0,1],"8669":[-.13313,.37788,0,0,1],"8672":[-.064,.437,0,0,1.334],"8674":[-.064,.437,0,0,1.334],"8705":[0,.825,0,0,.5],"8708":[0,.68889,0,0,.55556],"8709":[.08167,.58167,0,0,.77778],"8717":[0,.43056,0,0,.42917],"8722":[-.03598,.46402,0,0,.5],"8724":[.08198,.69224,0,0,.77778],"8726":[.08167,.58167,0,0,.77778],"8733":[0,.69224,0,0,.77778],"8736":[0,.69224,0,0,.72222],"8737":[0,.69224,0,0,.72222],"8738":[.03517,.52239,0,0,.72222],"8739":[.08167,.58167,0,0,.22222],"8740":[.25142,.74111,0,0,.27778],"8741":[.08167,.58167,0,0,.38889],"8742":[.25142,.74111,0,0,.5],"8756":[0,.69224,0,0,.66667],"8757":[0,.69224,0,0,.66667],"8764":[-.13313,.36687,0,0,.77778],"8765":[-.13313,.37788,0,0,.77778],"8769":[-.13313,.36687,0,0,.77778],"8770":[-.03625,.46375,0,0,.77778],"8774":[.30274,.79383,0,0,.77778],"8776":[-.01688,.48312,0,0,.77778],"8778":[.08167,.58167,0,0,.77778],"8782":[.06062,.54986,0,0,.77778],"8783":[.06062,.54986,0,0,.77778],"8785":[.08198,.58198,0,0,.77778],"8786":[.08198,.58198,0,0,.77778],"8787":[.08198,.58198,0,0,.77778],"8790":[0,.69224,0,0,.77778],"8791":[.22958,.72958,0,0,.77778],"8796":[.08198,.91667,0,0,.77778],"8806":[.25583,.75583,0,0,.77778],"8807":[.25583,.75583,0,0,.77778],"8808":[.25142,.75726,0,0,.77778],"8809":[.25142,.75726,0,0,.77778],"8812":[.25583,.75583,0,0,.5],"8814":[.20576,.70576,0,0,.77778],"8815":[.20576,.70576,0,0,.77778],"8816":[.30274,.79383,0,0,.77778],"8817":[.30274,.79383,0,0,.77778],"8818":[.22958,.72958,0,0,.77778],"8819":[.22958,.72958,0,0,.77778],"8822":[.1808,.675,0,0,.77778],"8823":[.1808,.675,0,0,.77778],"8828":[.13667,.63667,0,0,.77778],"8829":[.13667,.63667,0,0,.77778],"8830":[.22958,.72958,0,0,.77778],"8831":[.22958,.72958,0,0,.77778],"8832":[.20576,.70576,0,0,.77778],"8833":[.20576,.70576,0,0,.77778],"8840":[.30274,.79383,0,0,.77778],"8841":[.30274,.79383,0,0,.77778],"8842":[.13597,.63597,0,0,.77778],"8843":[.13597,.63597,0,0,.77778],"8847":[.03517,.54986,0,0,.77778],"8848":[.03517,.54986,0,0,.77778],"8858":[.08198,.58198,0,0,.77778],"8859":[.08198,.58198,0,0,.77778],"8861":[.08198,.58198,0,0,.77778],"8862":[0,.675,0,0,.77778],"8863":[0,.675,0,0,.77778],"8864":[0,.675,0,0,.77778],"8865":[0,.675,0,0,.77778],"8872":[0,.69224,0,0,.61111],"8873":[0,.69224,0,0,.72222],"8874":[0,.69224,0,0,.88889],"8876":[0,.68889,0,0,.61111],"8877":[0,.68889,0,0,.61111],"8878":[0,.68889,0,0,.72222],"8879":[0,.68889,0,0,.72222],"8882":[.03517,.54986,0,0,.77778],"8883":[.03517,.54986,0,0,.77778],"8884":[.13667,.63667,0,0,.77778],"8885":[.13667,.63667,0,0,.77778],"8888":[0,.54986,0,0,1.11111],"8890":[.19444,.43056,0,0,.55556],"8891":[.19444,.69224,0,0,.61111],"8892":[.19444,.69224,0,0,.61111],"8901":[0,.54986,0,0,.27778],"8903":[.08167,.58167,0,0,.77778],"8905":[.08167,.58167,0,0,.77778],"8906":[.08167,.58167,0,0,.77778],"8907":[0,.69224,0,0,.77778],"8908":[0,.69224,0,0,.77778],"8909":[-.03598,.46402,0,0,.77778],"8910":[0,.54986,0,0,.76042],"8911":[0,.54986,0,0,.76042],"8912":[.03517,.54986,0,0,.77778],"8913":[.03517,.54986,0,0,.77778],"8914":[0,.54986,0,0,.66667],"8915":[0,.54986,0,0,.66667],"8916":[0,.69224,0,0,.66667],"8918":[.0391,.5391,0,0,.77778],"8919":[.0391,.5391,0,0,.77778],"8920":[.03517,.54986,0,0,1.33334],"8921":[.03517,.54986,0,0,1.33334],"8922":[.38569,.88569,0,0,.77778],"8923":[.38569,.88569,0,0,.77778],"8926":[.13667,.63667,0,0,.77778],"8927":[.13667,.63667,0,0,.77778],"8928":[.30274,.79383,0,0,.77778],"8929":[.30274,.79383,0,0,.77778],"8934":[.23222,.74111,0,0,.77778],"8935":[.23222,.74111,0,0,.77778],"8936":[.23222,.74111,0,0,.77778],"8937":[.23222,.74111,0,0,.77778],"8938":[.20576,.70576,0,0,.77778],"8939":[.20576,.70576,0,0,.77778],"8940":[.30274,.79383,0,0,.77778],"8941":[.30274,.79383,0,0,.77778],"8994":[.19444,.69224,0,0,.77778],"8995":[.19444,.69224,0,0,.77778],"9416":[.15559,.69224,0,0,.90222],"9484":[0,.69224,0,0,.5],"9488":[0,.69224,0,0,.5],"9492":[0,.37788,0,0,.5],"9496":[0,.37788,0,0,.5],"9585":[.19444,.68889,0,0,.88889],"9586":[.19444,.74111,0,0,.88889],"9632":[0,.675,0,0,.77778],"9633":[0,.675,0,0,.77778],"9650":[0,.54986,0,0,.72222],"9651":[0,.54986,0,0,.72222],"9654":[.03517,.54986,0,0,.77778],"9660":[0,.54986,0,0,.72222],"9661":[0,.54986,0,0,.72222],"9664":[.03517,.54986,0,0,.77778],"9674":[.11111,.69224,0,0,.66667],"9733":[.19444,.69224,0,0,.94445],"10003":[0,.69224,0,0,.83334],"10016":[0,.69224,0,0,.83334],"10731":[.11111,.69224,0,0,.66667],"10846":[.19444,.75583,0,0,.61111],"10877":[.13667,.63667,0,0,.77778],"10878":[.13667,.63667,0,0,.77778],"10885":[.25583,.75583,0,0,.77778],"10886":[.25583,.75583,0,0,.77778],"10887":[.13597,.63597,0,0,.77778],"10888":[.13597,.63597,0,0,.77778],"10889":[.26167,.75726,0,0,.77778],"10890":[.26167,.75726,0,0,.77778],"10891":[.48256,.98256,0,0,.77778],"10892":[.48256,.98256,0,0,.77778],"10901":[.13667,.63667,0,0,.77778],"10902":[.13667,.63667,0,0,.77778],"10933":[.25142,.75726,0,0,.77778],"10934":[.25142,.75726,0,0,.77778],"10935":[.26167,.75726,0,0,.77778],"10936":[.26167,.75726,0,0,.77778],"10937":[.26167,.75726,0,0,.77778],"10938":[.26167,.75726,0,0,.77778],"10949":[.25583,.75583,0,0,.77778],"10950":[.25583,.75583,0,0,.77778],"10955":[.28481,.79383,0,0,.77778],"10956":[.28481,.79383,0,0,.77778],"57350":[.08167,.58167,0,0,.22222],"57351":[.08167,.58167,0,0,.38889],"57352":[.08167,.58167,0,0,.77778],"57353":[0,.43056,.04028,0,.66667],"57356":[.25142,.75726,0,0,.77778],"57357":[.25142,.75726,0,0,.77778],"57358":[.41951,.91951,0,0,.77778],"57359":[.30274,.79383,0,0,.77778],"57360":[.30274,.79383,0,0,.77778],"57361":[.41951,.91951,0,0,.77778],"57366":[.25142,.75726,0,0,.77778],"57367":[.25142,.75726,0,0,.77778],"57368":[.25142,.75726,0,0,.77778],"57369":[.25142,.75726,0,0,.77778],"57370":[.13597,.63597,0,0,.77778],"57371":[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{"48":[0,.43056,0,0,.5],"49":[0,.43056,0,0,.5],"50":[0,.43056,0,0,.5],"51":[.19444,.43056,0,0,.5],"52":[.19444,.43056,0,0,.5],"53":[.19444,.43056,0,0,.5],"54":[0,.64444,0,0,.5],"55":[.19444,.43056,0,0,.5],"56":[0,.64444,0,0,.5],"57":[.19444,.43056,0,0,.5],"65":[0,.68333,0,.19445,.79847],"66":[0,.68333,.03041,.13889,.65681],"67":[0,.68333,.05834,.13889,.52653],"68":[0,.68333,.02778,.08334,.77139],"69":[0,.68333,.08944,.11111,.52778],"70":[0,.68333,.09931,.11111,.71875],"71":[.09722,.68333,.0593,.11111,.59487],"72":[0,.68333,.00965,.11111,.84452],"73":[0,.68333,.07382,0,.54452],"74":[.09722,.68333,.18472,.16667,.67778],"75":[0,.68333,.01445,.05556,.76195],"76":[0,.68333,0,.13889,.68972],"77":[0,.68333,0,.13889,1.2009],"78":[0,.68333,.14736,.08334,.82049],"79":[0,.68333,.02778,.11111,.79611],"80":[0,.68333,.08222,.08334,.69556],"81":[.09722,.68333,0,.11111,.81667],"82":[0,.68333,0,.08334,.8475],"83":[0,.68333,.075,.13889,.60556],"84":[0,.68333,.25417,0,.54464],"85":[0,.68333,.09931,.08334,.62583],"86":[0,.68333,.08222,0,.61278],"87":[0,.68333,.08222,.08334,.98778],"88":[0,.68333,.14643,.13889,.7133],"89":[.09722,.68333,.08222,.08334,.66834],"90":[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{"33":[0,.69141,0,0,.29574],"34":[0,.69141,0,0,.21471],"38":[0,.69141,0,0,.73786],"39":[0,.69141,0,0,.21201],"40":[.24982,.74947,0,0,.38865],"41":[.24982,.74947,0,0,.38865],"42":[0,.62119,0,0,.27764],"43":[.08319,.58283,0,0,.75623],"44":[0,.10803,0,0,.27764],"45":[.08319,.58283,0,0,.75623],"46":[0,.10803,0,0,.27764],"47":[.24982,.74947,0,0,.50181],"48":[0,.47534,0,0,.50181],"49":[0,.47534,0,0,.50181],"50":[0,.47534,0,0,.50181],"51":[.18906,.47534,0,0,.50181],"52":[.18906,.47534,0,0,.50181],"53":[.18906,.47534,0,0,.50181],"54":[0,.69141,0,0,.50181],"55":[.18906,.47534,0,0,.50181],"56":[0,.69141,0,0,.50181],"57":[.18906,.47534,0,0,.50181],"58":[0,.47534,0,0,.21606],"59":[.12604,.47534,0,0,.21606],"61":[-.13099,.36866,0,0,.75623],"63":[0,.69141,0,0,.36245],"65":[0,.69141,0,0,.7176],"66":[0,.69141,0,0,.88397],"67":[0,.69141,0,0,.61254],"68":[0,.69141,0,0,.83158],"69":[0,.69141,0,0,.66278],"70":[.12604,.69141,0,0,.61119],"71":[0,.69141,0,0,.78539],"72":[.06302,.69141,0,0,.7203],"73":[0,.69141,0,0,.55448],"74":[.12604,.69141,0,0,.55231],"75":[0,.69141,0,0,.66845],"76":[0,.69141,0,0,.66602],"77":[0,.69141,0,0,1.04953],"78":[0,.69141,0,0,.83212],"79":[0,.69141,0,0,.82699],"80":[.18906,.69141,0,0,.82753],"81":[.03781,.69141,0,0,.82699],"82":[0,.69141,0,0,.82807],"83":[0,.69141,0,0,.82861],"84":[0,.69141,0,0,.66899],"85":[0,.69141,0,0,.64576],"86":[0,.69141,0,0,.83131],"87":[0,.69141,0,0,1.04602],"88":[0,.69141,0,0,.71922],"89":[.18906,.69141,0,0,.83293],"90":[.12604,.69141,0,0,.60201],"91":[.24982,.74947,0,0,.27764],"93":[.24982,.74947,0,0,.27764],"94":[0,.69141,0,0,.49965],"97":[0,.47534,0,0,.50046],"98":[0,.69141,0,0,.51315],"99":[0,.47534,0,0,.38946],"100":[0,.62119,0,0,.49857],"101":[0,.47534,0,0,.40053],"102":[.18906,.69141,0,0,.32626],"103":[.18906,.47534,0,0,.5037],"104":[.18906,.69141,0,0,.52126],"105":[0,.69141,0,0,.27899],"106":[0,.69141,0,0,.28088],"107":[0,.69141,0,0,.38946],"108":[0,.69141,0,0,.27953],"109":[0,.47534,0,0,.76676],"110":[0,.47534,0,0,.52666],"111":[0,.47534,0,0,.48885],"112":[.18906,.52396,0,0,.50046],"113":[.18906,.47534,0,0,.48912],"114":[0,.47534,0,0,.38919],"115":[0,.47534,0,0,.44266],"116":[0,.62119,0,0,.33301],"117":[0,.47534,0,0,.5172],"118":[0,.52396,0,0,.5118],"119":[0,.52396,0,0,.77351],"120":[.18906,.47534,0,0,.38865],"121":[.18906,.47534,0,0,.49884],"122":[.18906,.47534,0,0,.39054],"8216":[0,.69141,0,0,.21471],"8217":[0,.69141,0,0,.21471],"58112":[0,.62119,0,0,.49749],"58113":[0,.62119,0,0,.4983],"58114":[.18906,.69141,0,0,.33328],"58115":[.18906,.69141,0,0,.32923],"58116":[.18906,.47534,0,0,.50343],"58117":[0,.69141,0,0,.33301],"58118":[0,.62119,0,0,.33409],"58119":[0,.47534,0,0,.50073]},"Main-Bold":{"33":[0,.69444,0,0,.35],"34":[0,.69444,0,0,.60278],"35":[.19444,.69444,0,0,.95833],"36":[.05556,.75,0,0,.575],"37":[.05556,.75,0,0,.95833],"38":[0,.69444,0,0,.89444],"39":[0,.69444,0,0,.31944],"40":[.25,.75,0,0,.44722],"41":[.25,.75,0,0,.44722],"42":[0,.75,0,0,.575],"43":[.13333,.63333,0,0,.89444],"44":[.19444,.15556,0,0,.31944],"45":[0,.44444,0,0,.38333],"46":[0,.15556,0,0,.31944],"47":[.25,.75,0,0,.575],"48":[0,.64444,0,0,.575],"49":[0,.64444,0,0,.575],"50":[0,.64444,0,0,.575],"51":[0,.64444,0,0,.575],"52":[0,.64444,0,0,.575],"53":[0,.64444,0,0,.575],"54":[0,.64444,0,0,.575],"55":[0,.64444,0,0,.575],"56":[0,.64444,0,0,.575],"57":[0,.64444,0,0,.575],"58":[0,.44444,0,0,.31944],"59":[.19444,.44444,0,0,.31944],"60":[.08556,.58556,0,0,.89444],"61":[-.10889,.39111,0,0,.89444],"62":[.08556,.58556,0,0,.89444],"63":[0,.69444,0,0,.54305],"64":[0,.69444,0,0,.89444],"65":[0,.68611,0,0,.86944],"66":[0,.68611,0,0,.81805],"67":[0,.68611,0,0,.83055],"68":[0,.68611,0,0,.88194],"69":[0,.68611,0,0,.75555],"70":[0,.68611,0,0,.72361],"71":[0,.68611,0,0,.90416],"72":[0,.68611,0,0,.9],"73":[0,.68611,0,0,.43611],"74":[0,.68611,0,0,.59444],"75":[0,.68611,0,0,.90138],"76":[0,.68611,0,0,.69166],"77":[0,.68611,0,0,1.09166],"78":[0,.68611,0,0,.9],"79":[0,.68611,0,0,.86388],"80":[0,.68611,0,0,.78611],"81":[.19444,.68611,0,0,.86388],"82":[0,.68611,0,0,.8625],"83":[0,.68611,0,0,.63889],"84":[0,.68611,0,0,.8],"85":[0,.68611,0,0,.88472],"86":[0,.68611,.01597,0,.86944],"87":[0,.68611,.01597,0,1.18888],"88":[0,.68611,0,0,.86944],"89":[0,.68611,.02875,0,.86944],"90":[0,.68611,0,0,.70277],"91":[.25,.75,0,0,.31944],"92":[.25,.75,0,0,.575],"93":[.25,.75,0,0,.31944],"94":[0,.69444,0,0,.575],"95":[.31,.13444,.03194,0,.575],"97":[0,.44444,0,0,.55902],"98":[0,.69444,0,0,.63889],"99":[0,.44444,0,0,.51111],"100":[0,.69444,0,0,.63889],"101":[0,.44444,0,0,.52708],"102":[0,.69444,.10903,0,.35139],"103":[.19444,.44444,.01597,0,.575],"104":[0,.69444,0,0,.63889],"105":[0,.69444,0,0,.31944],"106":[.19444,.69444,0,0,.35139],"107":[0,.69444,0,0,.60694],"108":[0,.69444,0,0,.31944],"109":[0,.44444,0,0,.95833],"110":[0,.44444,0,0,.63889],"111":[0,.44444,0,0,.575],"112":[.19444,.44444,0,0,.63889],"113":[.19444,.44444,0,0,.60694],"114":[0,.44444,0,0,.47361],"115":[0,.44444,0,0,.45361],"116":[0,.63492,0,0,.44722],"117":[0,.44444,0,0,.63889],"118":[0,.44444,.01597,0,.60694],"119":[0,.44444,.01597,0,.83055],"120":[0,.44444,0,0,.60694],"121":[.19444,.44444,.01597,0,.60694],"122":[0,.44444,0,0,.51111],"123":[.25,.75,0,0,.575],"124":[.25,.75,0,0,.31944],"125":[.25,.75,0,0,.575],"126":[.35,.34444,0,0,.575],"168":[0,.69444,0,0,.575],"172":[0,.44444,0,0,.76666],"176":[0,.69444,0,0,.86944],"177":[.13333,.63333,0,0,.89444],"184":[.17014,0,0,0,.51111],"198":[0,.68611,0,0,1.04166],"215":[.13333,.63333,0,0,.89444],"216":[.04861,.73472,0,0,.89444],"223":[0,.69444,0,0,.59722],"230":[0,.44444,0,0,.83055],"247":[.13333,.63333,0,0,.89444],"248":[.09722,.54167,0,0,.575],"305":[0,.44444,0,0,.31944],"338":[0,.68611,0,0,1.16944],"339":[0,.44444,0,0,.89444],"567":[.19444,.44444,0,0,.35139],"710":[0,.69444,0,0,.575],"711":[0,.63194,0,0,.575],"713":[0,.59611,0,0,.575],"714":[0,.69444,0,0,.575],"715":[0,.69444,0,0,.575],"728":[0,.69444,0,0,.575],"729":[0,.69444,0,0,.31944],"730":[0,.69444,0,0,.86944],"732":[0,.69444,0,0,.575],"733":[0,.69444,0,0,.575],"915":[0,.68611,0,0,.69166],"916":[0,.68611,0,0,.95833],"920":[0,.68611,0,0,.89444],"923":[0,.68611,0,0,.80555],"926":[0,.68611,0,0,.76666],"928":[0,.68611,0,0,.9],"931":[0,.68611,0,0,.83055],"933":[0,.68611,0,0,.89444],"934":[0,.68611,0,0,.83055],"936":[0,.68611,0,0,.89444],"937":[0,.68611,0,0,.83055],"8211":[0,.44444,.03194,0,.575],"8212":[0,.44444,.03194,0,1.14999],"8216":[0,.69444,0,0,.31944],"8217":[0,.69444,0,0,.31944],"8220":[0,.69444,0,0,.60278],"8221":[0,.69444,0,0,.60278],"8224":[.19444,.69444,0,0,.51111],"8225":[.19444,.69444,0,0,.51111],"8242":[0,.55556,0,0,.34444],"8407":[0,.72444,.15486,0,.575],"8463":[0,.69444,0,0,.66759],"8465":[0,.69444,0,0,.83055],"8467":[0,.69444,0,0,.47361],"8472":[.19444,.44444,0,0,.74027],"8476":[0,.69444,0,0,.83055],"8501":[0,.69444,0,0,.70277],"8592":[-.10889,.39111,0,0,1.14999],"8593":[.19444,.69444,0,0,.575],"8594":[-.10889,.39111,0,0,1.14999],"8595":[.19444,.69444,0,0,.575],"8596":[-.10889,.39111,0,0,1.14999],"8597":[.25,.75,0,0,.575],"8598":[.19444,.69444,0,0,1.14999],"8599":[.19444,.69444,0,0,1.14999],"8600":[.19444,.69444,0,0,1.14999],"8601":[.19444,.69444,0,0,1.14999],"8636":[-.10889,.39111,0,0,1.14999],"8637":[-.10889,.39111,0,0,1.14999],"8640":[-.10889,.39111,0,0,1.14999],"8641":[-.10889,.39111,0,0,1.14999],"8656":[-.10889,.39111,0,0,1.14999],"8657":[.19444,.69444,0,0,.70277],"8658":[-.10889,.39111,0,0,1.14999],"8659":[.19444,.69444,0,0,.70277],"8660":[-.10889,.39111,0,0,1.14999],"8661":[.25,.75,0,0,.70277],"8704":[0,.69444,0,0,.63889],"8706":[0,.69444,.06389,0,.62847],"8707":[0,.69444,0,0,.63889],"8709":[.05556,.75,0,0,.575],"8711":[0,.68611,0,0,.95833],"8712":[.08556,.58556,0,0,.76666],"8715":[.08556,.58556,0,0,.76666],"8722":[.13333,.63333,0,0,.89444],"8723":[.13333,.63333,0,0,.89444],"8725":[.25,.75,0,0,.575],"8726":[.25,.75,0,0,.575],"8727":[-.02778,.47222,0,0,.575],"8728":[-.02639,.47361,0,0,.575],"8729":[-.02639,.47361,0,0,.575],"8730":[.18,.82,0,0,.95833],"8733":[0,.44444,0,0,.89444],"8734":[0,.44444,0,0,1.14999],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.31944],"8741":[.25,.75,0,0,.575],"8743":[0,.55556,0,0,.76666],"8744":[0,.55556,0,0,.76666],"8745":[0,.55556,0,0,.76666],"8746":[0,.55556,0,0,.76666],"8747":[.19444,.69444,.12778,0,.56875],"8764":[-.10889,.39111,0,0,.89444],"8768":[.19444,.69444,0,0,.31944],"8771":[.00222,.50222,0,0,.89444],"8776":[.02444,.52444,0,0,.89444],"8781":[.00222,.50222,0,0,.89444],"8801":[.00222,.50222,0,0,.89444],"8804":[.19667,.69667,0,0,.89444],"8805":[.19667,.69667,0,0,.89444],"8810":[.08556,.58556,0,0,1.14999],"8811":[.08556,.58556,0,0,1.14999],"8826":[.08556,.58556,0,0,.89444],"8827":[.08556,.58556,0,0,.89444],"8834":[.08556,.58556,0,0,.89444],"8835":[.08556,.58556,0,0,.89444],"8838":[.19667,.69667,0,0,.89444],"8839":[.19667,.69667,0,0,.89444],"8846":[0,.55556,0,0,.76666],"8849":[.19667,.69667,0,0,.89444],"8850":[.19667,.69667,0,0,.89444],"8851":[0,.55556,0,0,.76666],"8852":[0,.55556,0,0,.76666],"8853":[.13333,.63333,0,0,.89444],"8854":[.13333,.63333,0,0,.89444],"8855":[.13333,.63333,0,0,.89444],"8856":[.13333,.63333,0,0,.89444],"8857":[.13333,.63333,0,0,.89444],"8866":[0,.69444,0,0,.70277],"8867":[0,.69444,0,0,.70277],"8868":[0,.69444,0,0,.89444],"8869":[0,.69444,0,0,.89444],"8900":[-.02639,.47361,0,0,.575],"8901":[-.02639,.47361,0,0,.31944],"8902":[-.02778,.47222,0,0,.575],"8968":[.25,.75,0,0,.51111],"8969":[.25,.75,0,0,.51111],"8970":[.25,.75,0,0,.51111],"8971":[.25,.75,0,0,.51111],"8994":[-.13889,.36111,0,0,1.14999],"8995":[-.13889,.36111,0,0,1.14999],"9651":[.19444,.69444,0,0,1.02222],"9657":[-.02778,.47222,0,0,.575],"9661":[.19444,.69444,0,0,1.02222],"9667":[-.02778,.47222,0,0,.575],"9711":[.19444,.69444,0,0,1.14999],"9824":[.12963,.69444,0,0,.89444],"9825":[.12963,.69444,0,0,.89444],"9826":[.12963,.69444,0,0,.89444],"9827":[.12963,.69444,0,0,.89444],"9837":[0,.75,0,0,.44722],"9838":[.19444,.69444,0,0,.44722],"9839":[.19444,.69444,0,0,.44722],"10216":[.25,.75,0,0,.44722],"10217":[.25,.75,0,0,.44722],"10815":[0,.68611,0,0,.9],"10927":[.19667,.69667,0,0,.89444],"10928":[.19667,.69667,0,0,.89444],"57376":[.19444,.69444,0,0,0]},"Main-BoldItalic":{"33":[0,.69444,.11417,0,.38611],"34":[0,.69444,.07939,0,.62055],"35":[.19444,.69444,.06833,0,.94444],"37":[.05556,.75,.12861,0,.94444],"38":[0,.69444,.08528,0,.88555],"39":[0,.69444,.12945,0,.35555],"40":[.25,.75,.15806,0,.47333],"41":[.25,.75,.03306,0,.47333],"42":[0,.75,.14333,0,.59111],"43":[.10333,.60333,.03306,0,.88555],"44":[.19444,.14722,0,0,.35555],"45":[0,.44444,.02611,0,.41444],"46":[0,.14722,0,0,.35555],"47":[.25,.75,.15806,0,.59111],"48":[0,.64444,.13167,0,.59111],"49":[0,.64444,.13167,0,.59111],"50":[0,.64444,.13167,0,.59111],"51":[0,.64444,.13167,0,.59111],"52":[.19444,.64444,.13167,0,.59111],"53":[0,.64444,.13167,0,.59111],"54":[0,.64444,.13167,0,.59111],"55":[.19444,.64444,.13167,0,.59111],"56":[0,.64444,.13167,0,.59111],"57":[0,.64444,.13167,0,.59111],"58":[0,.44444,.06695,0,.35555],"59":[.19444,.44444,.06695,0,.35555],"61":[-.10889,.39111,.06833,0,.88555],"63":[0,.69444,.11472,0,.59111],"64":[0,.69444,.09208,0,.88555],"65":[0,.68611,0,0,.86555],"66":[0,.68611,.0992,0,.81666],"67":[0,.68611,.14208,0,.82666],"68":[0,.68611,.09062,0,.87555],"69":[0,.68611,.11431,0,.75666],"70":[0,.68611,.12903,0,.72722],"71":[0,.68611,.07347,0,.89527],"72":[0,.68611,.17208,0,.8961],"73":[0,.68611,.15681,0,.47166],"74":[0,.68611,.145,0,.61055],"75":[0,.68611,.14208,0,.89499],"76":[0,.68611,0,0,.69777],"77":[0,.68611,.17208,0,1.07277],"78":[0,.68611,.17208,0,.8961],"79":[0,.68611,.09062,0,.85499],"80":[0,.68611,.0992,0,.78721],"81":[.19444,.68611,.09062,0,.85499],"82":[0,.68611,.02559,0,.85944],"83":[0,.68611,.11264,0,.64999],"84":[0,.68611,.12903,0,.7961],"85":[0,.68611,.17208,0,.88083],"86":[0,.68611,.18625,0,.86555],"87":[0,.68611,.18625,0,1.15999],"88":[0,.68611,.15681,0,.86555],"89":[0,.68611,.19803,0,.86555],"90":[0,.68611,.14208,0,.70888],"91":[.25,.75,.1875,0,.35611],"93":[.25,.75,.09972,0,.35611],"94":[0,.69444,.06709,0,.59111],"95":[.31,.13444,.09811,0,.59111],"97":[0,.44444,.09426,0,.59111],"98":[0,.69444,.07861,0,.53222],"99":[0,.44444,.05222,0,.53222],"100":[0,.69444,.10861,0,.59111],"101":[0,.44444,.085,0,.53222],"102":[.19444,.69444,.21778,0,.4],"103":[.19444,.44444,.105,0,.53222],"104":[0,.69444,.09426,0,.59111],"105":[0,.69326,.11387,0,.35555],"106":[.19444,.69326,.1672,0,.35555],"107":[0,.69444,.11111,0,.53222],"108":[0,.69444,.10861,0,.29666],"109":[0,.44444,.09426,0,.94444],"110":[0,.44444,.09426,0,.64999],"111":[0,.44444,.07861,0,.59111],"112":[.19444,.44444,.07861,0,.59111],"113":[.19444,.44444,.105,0,.53222],"114":[0,.44444,.11111,0,.50167],"115":[0,.44444,.08167,0,.48694],"116":[0,.63492,.09639,0,.385],"117":[0,.44444,.09426,0,.62055],"118":[0,.44444,.11111,0,.53222],"119":[0,.44444,.11111,0,.76777],"120":[0,.44444,.12583,0,.56055],"121":[.19444,.44444,.105,0,.56166],"122":[0,.44444,.13889,0,.49055],"126":[.35,.34444,.11472,0,.59111],"163":[0,.69444,0,0,.86853],"168":[0,.69444,.11473,0,.59111],"176":[0,.69444,0,0,.94888],"184":[.17014,0,0,0,.53222],"198":[0,.68611,.11431,0,1.02277],"216":[.04861,.73472,.09062,0,.88555],"223":[.19444,.69444,.09736,0,.665],"230":[0,.44444,.085,0,.82666],"248":[.09722,.54167,.09458,0,.59111],"305":[0,.44444,.09426,0,.35555],"338":[0,.68611,.11431,0,1.14054],"339":[0,.44444,.085,0,.82666],"567":[.19444,.44444,.04611,0,.385],"710":[0,.69444,.06709,0,.59111],"711":[0,.63194,.08271,0,.59111],"713":[0,.59444,.10444,0,.59111],"714":[0,.69444,.08528,0,.59111],"715":[0,.69444,0,0,.59111],"728":[0,.69444,.10333,0,.59111],"729":[0,.69444,.12945,0,.35555],"730":[0,.69444,0,0,.94888],"732":[0,.69444,.11472,0,.59111],"733":[0,.69444,.11472,0,.59111],"915":[0,.68611,.12903,0,.69777],"916":[0,.68611,0,0,.94444],"920":[0,.68611,.09062,0,.88555],"923":[0,.68611,0,0,.80666],"926":[0,.68611,.15092,0,.76777],"928":[0,.68611,.17208,0,.8961],"931":[0,.68611,.11431,0,.82666],"933":[0,.68611,.10778,0,.88555],"934":[0,.68611,.05632,0,.82666],"936":[0,.68611,.10778,0,.88555],"937":[0,.68611,.0992,0,.82666],"8211":[0,.44444,.09811,0,.59111],"8212":[0,.44444,.09811,0,1.18221],"8216":[0,.69444,.12945,0,.35555],"8217":[0,.69444,.12945,0,.35555],"8220":[0,.69444,.16772,0,.62055],"8221":[0,.69444,.07939,0,.62055]},"Main-Italic":{"33":[0,.69444,.12417,0,.30667],"34":[0,.69444,.06961,0,.51444],"35":[.19444,.69444,.06616,0,.81777],"37":[.05556,.75,.13639,0,.81777],"38":[0,.69444,.09694,0,.76666],"39":[0,.69444,.12417,0,.30667],"40":[.25,.75,.16194,0,.40889],"41":[.25,.75,.03694,0,.40889],"42":[0,.75,.14917,0,.51111],"43":[.05667,.56167,.03694,0,.76666],"44":[.19444,.10556,0,0,.30667],"45":[0,.43056,.02826,0,.35778],"46":[0,.10556,0,0,.30667],"47":[.25,.75,.16194,0,.51111],"48":[0,.64444,.13556,0,.51111],"49":[0,.64444,.13556,0,.51111],"50":[0,.64444,.13556,0,.51111],"51":[0,.64444,.13556,0,.51111],"52":[.19444,.64444,.13556,0,.51111],"53":[0,.64444,.13556,0,.51111],"54":[0,.64444,.13556,0,.51111],"55":[.19444,.64444,.13556,0,.51111],"56":[0,.64444,.13556,0,.51111],"57":[0,.64444,.13556,0,.51111],"58":[0,.43056,.0582,0,.30667],"59":[.19444,.43056,.0582,0,.30667],"61":[-.13313,.36687,.06616,0,.76666],"63":[0,.69444,.1225,0,.51111],"64":[0,.69444,.09597,0,.76666],"65":[0,.68333,0,0,.74333],"66":[0,.68333,.10257,0,.70389],"67":[0,.68333,.14528,0,.71555],"68":[0,.68333,.09403,0,.755],"69":[0,.68333,.12028,0,.67833],"70":[0,.68333,.13305,0,.65277],"71":[0,.68333,.08722,0,.77361],"72":[0,.68333,.16389,0,.74333],"73":[0,.68333,.15806,0,.38555],"74":[0,.68333,.14028,0,.525],"75":[0,.68333,.14528,0,.76888],"76":[0,.68333,0,0,.62722],"77":[0,.68333,.16389,0,.89666],"78":[0,.68333,.16389,0,.74333],"79":[0,.68333,.09403,0,.76666],"80":[0,.68333,.10257,0,.67833],"81":[.19444,.68333,.09403,0,.76666],"82":[0,.68333,.03868,0,.72944],"83":[0,.68333,.11972,0,.56222],"84":[0,.68333,.13305,0,.71555],"85":[0,.68333,.16389,0,.74333],"86":[0,.68333,.18361,0,.74333],"87":[0,.68333,.18361,0,.99888],"88":[0,.68333,.15806,0,.74333],"89":[0,.68333,.19383,0,.74333],"90":[0,.68333,.14528,0,.61333],"91":[.25,.75,.1875,0,.30667],"93":[.25,.75,.10528,0,.30667],"94":[0,.69444,.06646,0,.51111],"95":[.31,.12056,.09208,0,.51111],"97":[0,.43056,.07671,0,.51111],"98":[0,.69444,.06312,0,.46],"99":[0,.43056,.05653,0,.46],"100":[0,.69444,.10333,0,.51111],"101":[0,.43056,.07514,0,.46],"102":[.19444,.69444,.21194,0,.30667],"103":[.19444,.43056,.08847,0,.46],"104":[0,.69444,.07671,0,.51111],"105":[0,.65536,.1019,0,.30667],"106":[.19444,.65536,.14467,0,.30667],"107":[0,.69444,.10764,0,.46],"108":[0,.69444,.10333,0,.25555],"109":[0,.43056,.07671,0,.81777],"110":[0,.43056,.07671,0,.56222],"111":[0,.43056,.06312,0,.51111],"112":[.19444,.43056,.06312,0,.51111],"113":[.19444,.43056,.08847,0,.46],"114":[0,.43056,.10764,0,.42166],"115":[0,.43056,.08208,0,.40889],"116":[0,.61508,.09486,0,.33222],"117":[0,.43056,.07671,0,.53666],"118":[0,.43056,.10764,0,.46],"119":[0,.43056,.10764,0,.66444],"120":[0,.43056,.12042,0,.46389],"121":[.19444,.43056,.08847,0,.48555],"122":[0,.43056,.12292,0,.40889],"126":[.35,.31786,.11585,0,.51111],"163":[0,.69444,0,0,.76909],"168":[0,.66786,.10474,0,.51111],"176":[0,.69444,0,0,.83129],"184":[.17014,0,0,0,.46],"198":[0,.68333,.12028,0,.88277],"216":[.04861,.73194,.09403,0,.76666],"223":[.19444,.69444,.10514,0,.53666],"230":[0,.43056,.07514,0,.71555],"248":[.09722,.52778,.09194,0,.51111],"305":[0,.43056,0,.02778,.32246],"338":[0,.68333,.12028,0,.98499],"339":[0,.43056,.07514,0,.71555],"567":[.19444,.43056,0,.08334,.38403],"710":[0,.69444,.06646,0,.51111],"711":[0,.62847,.08295,0,.51111],"713":[0,.56167,.10333,0,.51111],"714":[0,.69444,.09694,0,.51111],"715":[0,.69444,0,0,.51111],"728":[0,.69444,.10806,0,.51111],"729":[0,.66786,.11752,0,.30667],"730":[0,.69444,0,0,.83129],"732":[0,.66786,.11585,0,.51111],"733":[0,.69444,.1225,0,.51111],"915":[0,.68333,.13305,0,.62722],"916":[0,.68333,0,0,.81777],"920":[0,.68333,.09403,0,.76666],"923":[0,.68333,0,0,.69222],"926":[0,.68333,.15294,0,.66444],"928":[0,.68333,.16389,0,.74333],"931":[0,.68333,.12028,0,.71555],"933":[0,.68333,.11111,0,.76666],"934":[0,.68333,.05986,0,.71555],"936":[0,.68333,.11111,0,.76666],"937":[0,.68333,.10257,0,.71555],"8211":[0,.43056,.09208,0,.51111],"8212":[0,.43056,.09208,0,1.02222],"8216":[0,.69444,.12417,0,.30667],"8217":[0,.69444,.12417,0,.30667],"8220":[0,.69444,.1685,0,.51444],"8221":[0,.69444,.06961,0,.51444],"8463":[0,.68889,0,0,.54028]},"Main-Regular":{"32":[0,0,0,0,.25],"33":[0,.69444,0,0,.27778],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.77778],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.19444,.10556,0,0,.27778],"45":[0,.43056,0,0,.33333],"46":[0,.10556,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.64444,0,0,.5],"49":[0,.64444,0,0,.5],"50":[0,.64444,0,0,.5],"51":[0,.64444,0,0,.5],"52":[0,.64444,0,0,.5],"53":[0,.64444,0,0,.5],"54":[0,.64444,0,0,.5],"55":[0,.64444,0,0,.5],"56":[0,.64444,0,0,.5],"57":[0,.64444,0,0,.5],"58":[0,.43056,0,0,.27778],"59":[.19444,.43056,0,0,.27778],"60":[.0391,.5391,0,0,.77778],"61":[-.13313,.36687,0,0,.77778],"62":[.0391,.5391,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.77778],"65":[0,.68333,0,0,.75],"66":[0,.68333,0,0,.70834],"67":[0,.68333,0,0,.72222],"68":[0,.68333,0,0,.76389],"69":[0,.68333,0,0,.68056],"70":[0,.68333,0,0,.65278],"71":[0,.68333,0,0,.78472],"72":[0,.68333,0,0,.75],"73":[0,.68333,0,0,.36111],"74":[0,.68333,0,0,.51389],"75":[0,.68333,0,0,.77778],"76":[0,.68333,0,0,.625],"77":[0,.68333,0,0,.91667],"78":[0,.68333,0,0,.75],"79":[0,.68333,0,0,.77778],"80":[0,.68333,0,0,.68056],"81":[.19444,.68333,0,0,.77778],"82":[0,.68333,0,0,.73611],"83":[0,.68333,0,0,.55556],"84":[0,.68333,0,0,.72222],"85":[0,.68333,0,0,.75],"86":[0,.68333,.01389,0,.75],"87":[0,.68333,.01389,0,1.02778],"88":[0,.68333,0,0,.75],"89":[0,.68333,.025,0,.75],"90":[0,.68333,0,0,.61111],"91":[.25,.75,0,0,.27778],"92":[.25,.75,0,0,.5],"93":[.25,.75,0,0,.27778],"94":[0,.69444,0,0,.5],"95":[.31,.12056,.02778,0,.5],"97":[0,.43056,0,0,.5],"98":[0,.69444,0,0,.55556],"99":[0,.43056,0,0,.44445],"100":[0,.69444,0,0,.55556],"101":[0,.43056,0,0,.44445],"102":[0,.69444,.07778,0,.30556],"103":[.19444,.43056,.01389,0,.5],"104":[0,.69444,0,0,.55556],"105":[0,.66786,0,0,.27778],"106":[.19444,.66786,0,0,.30556],"107":[0,.69444,0,0,.52778],"108":[0,.69444,0,0,.27778],"109":[0,.43056,0,0,.83334],"110":[0,.43056,0,0,.55556],"111":[0,.43056,0,0,.5],"112":[.19444,.43056,0,0,.55556],"113":[.19444,.43056,0,0,.52778],"114":[0,.43056,0,0,.39167],"115":[0,.43056,0,0,.39445],"116":[0,.61508,0,0,.38889],"117":[0,.43056,0,0,.55556],"118":[0,.43056,.01389,0,.52778],"119":[0,.43056,.01389,0,.72222],"120":[0,.43056,0,0,.52778],"121":[.19444,.43056,.01389,0,.52778],"122":[0,.43056,0,0,.44445],"123":[.25,.75,0,0,.5],"124":[.25,.75,0,0,.27778],"125":[.25,.75,0,0,.5],"126":[.35,.31786,0,0,.5],"160":[0,0,0,0,.25],"167":[.19444,.69444,0,0,.44445],"168":[0,.66786,0,0,.5],"172":[0,.43056,0,0,.66667],"176":[0,.69444,0,0,.75],"177":[.08333,.58333,0,0,.77778],"182":[.19444,.69444,0,0,.61111],"184":[.17014,0,0,0,.44445],"198":[0,.68333,0,0,.90278],"215":[.08333,.58333,0,0,.77778],"216":[.04861,.73194,0,0,.77778],"223":[0,.69444,0,0,.5],"230":[0,.43056,0,0,.72222],"247":[.08333,.58333,0,0,.77778],"248":[.09722,.52778,0,0,.5],"305":[0,.43056,0,0,.27778],"338":[0,.68333,0,0,1.01389],"339":[0,.43056,0,0,.77778],"567":[.19444,.43056,0,0,.30556],"710":[0,.69444,0,0,.5],"711":[0,.62847,0,0,.5],"713":[0,.56778,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.66786,0,0,.27778],"730":[0,.69444,0,0,.75],"732":[0,.66786,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.68333,0,0,.625],"916":[0,.68333,0,0,.83334],"920":[0,.68333,0,0,.77778],"923":[0,.68333,0,0,.69445],"926":[0,.68333,0,0,.66667],"928":[0,.68333,0,0,.75],"931":[0,.68333,0,0,.72222],"933":[0,.68333,0,0,.77778],"934":[0,.68333,0,0,.72222],"936":[0,.68333,0,0,.77778],"937":[0,.68333,0,0,.72222],"8211":[0,.43056,.02778,0,.5],"8212":[0,.43056,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5],"8224":[.19444,.69444,0,0,.44445],"8225":[.19444,.69444,0,0,.44445],"8230":[0,.12,0,0,1.172],"8242":[0,.55556,0,0,.275],"8407":[0,.71444,.15382,0,.5],"8463":[0,.68889,0,0,.54028],"8465":[0,.69444,0,0,.72222],"8467":[0,.69444,0,.11111,.41667],"8472":[.19444,.43056,0,.11111,.63646],"8476":[0,.69444,0,0,.72222],"8501":[0,.69444,0,0,.61111],"8592":[-.13313,.36687,0,0,1],"8593":[.19444,.69444,0,0,.5],"8594":[-.13313,.36687,0,0,1],"8595":[.19444,.69444,0,0,.5],"8596":[-.13313,.36687,0,0,1],"8597":[.25,.75,0,0,.5],"8598":[.19444,.69444,0,0,1],"8599":[.19444,.69444,0,0,1],"8600":[.19444,.69444,0,0,1],"8601":[.19444,.69444,0,0,1],"8614":[.011,.511,0,0,1],"8617":[.011,.511,0,0,1.126],"8618":[.011,.511,0,0,1.126],"8636":[-.13313,.36687,0,0,1],"8637":[-.13313,.36687,0,0,1],"8640":[-.13313,.36687,0,0,1],"8641":[-.13313,.36687,0,0,1],"8652":[.011,.671,0,0,1],"8656":[-.13313,.36687,0,0,1],"8657":[.19444,.69444,0,0,.61111],"8658":[-.13313,.36687,0,0,1],"8659":[.19444,.69444,0,0,.61111],"8660":[-.13313,.36687,0,0,1],"8661":[.25,.75,0,0,.61111],"8704":[0,.69444,0,0,.55556],"8706":[0,.69444,.05556,.08334,.5309],"8707":[0,.69444,0,0,.55556],"8709":[.05556,.75,0,0,.5],"8711":[0,.68333,0,0,.83334],"8712":[.0391,.5391,0,0,.66667],"8715":[.0391,.5391,0,0,.66667],"8722":[.08333,.58333,0,0,.77778],"8723":[.08333,.58333,0,0,.77778],"8725":[.25,.75,0,0,.5],"8726":[.25,.75,0,0,.5],"8727":[-.03472,.46528,0,0,.5],"8728":[-.05555,.44445,0,0,.5],"8729":[-.05555,.44445,0,0,.5],"8730":[.2,.8,0,0,.83334],"8733":[0,.43056,0,0,.77778],"8734":[0,.43056,0,0,1],"8736":[0,.69224,0,0,.72222],"8739":[.25,.75,0,0,.27778],"8741":[.25,.75,0,0,.5],"8743":[0,.55556,0,0,.66667],"8744":[0,.55556,0,0,.66667],"8745":[0,.55556,0,0,.66667],"8746":[0,.55556,0,0,.66667],"8747":[.19444,.69444,.11111,0,.41667],"8764":[-.13313,.36687,0,0,.77778],"8768":[.19444,.69444,0,0,.27778],"8771":[-.03625,.46375,0,0,.77778],"8773":[-.022,.589,0,0,1],"8776":[-.01688,.48312,0,0,.77778],"8781":[-.03625,.46375,0,0,.77778],"8784":[-.133,.67,0,0,.778],"8801":[-.03625,.46375,0,0,.77778],"8804":[.13597,.63597,0,0,.77778],"8805":[.13597,.63597,0,0,.77778],"8810":[.0391,.5391,0,0,1],"8811":[.0391,.5391,0,0,1],"8826":[.0391,.5391,0,0,.77778],"8827":[.0391,.5391,0,0,.77778],"8834":[.0391,.5391,0,0,.77778],"8835":[.0391,.5391,0,0,.77778],"8838":[.13597,.63597,0,0,.77778],"8839":[.13597,.63597,0,0,.77778],"8846":[0,.55556,0,0,.66667],"8849":[.13597,.63597,0,0,.77778],"8850":[.13597,.63597,0,0,.77778],"8851":[0,.55556,0,0,.66667],"8852":[0,.55556,0,0,.66667],"8853":[.08333,.58333,0,0,.77778],"8854":[.08333,.58333,0,0,.77778],"8855":[.08333,.58333,0,0,.77778],"8856":[.08333,.58333,0,0,.77778],"8857":[.08333,.58333,0,0,.77778],"8866":[0,.69444,0,0,.61111],"8867":[0,.69444,0,0,.61111],"8868":[0,.69444,0,0,.77778],"8869":[0,.69444,0,0,.77778],"8872":[.249,.75,0,0,.867],"8900":[-.05555,.44445,0,0,.5],"8901":[-.05555,.44445,0,0,.27778],"8902":[-.03472,.46528,0,0,.5],"8904":[.005,.505,0,0,.9],"8942":[.03,.9,0,0,.278],"8943":[-.19,.31,0,0,1.172],"8945":[-.1,.82,0,0,1.282],"8968":[.25,.75,0,0,.44445],"8969":[.25,.75,0,0,.44445],"8970":[.25,.75,0,0,.44445],"8971":[.25,.75,0,0,.44445],"8994":[-.14236,.35764,0,0,1],"8995":[-.14236,.35764,0,0,1],"9136":[.244,.744,0,0,.412],"9137":[.244,.744,0,0,.412],"9651":[.19444,.69444,0,0,.88889],"9657":[-.03472,.46528,0,0,.5],"9661":[.19444,.69444,0,0,.88889],"9667":[-.03472,.46528,0,0,.5],"9711":[.19444,.69444,0,0,1],"9824":[.12963,.69444,0,0,.77778],"9825":[.12963,.69444,0,0,.77778],"9826":[.12963,.69444,0,0,.77778],"9827":[.12963,.69444,0,0,.77778],"9837":[0,.75,0,0,.38889],"9838":[.19444,.69444,0,0,.38889],"9839":[.19444,.69444,0,0,.38889],"10216":[.25,.75,0,0,.38889],"10217":[.25,.75,0,0,.38889],"10222":[.244,.744,0,0,.412],"10223":[.244,.744,0,0,.412],"10229":[.011,.511,0,0,1.609],"10230":[.011,.511,0,0,1.638],"10231":[.011,.511,0,0,1.859],"10232":[.024,.525,0,0,1.609],"10233":[.024,.525,0,0,1.638],"10234":[.024,.525,0,0,1.858],"10236":[.011,.511,0,0,1.638],"10815":[0,.68333,0,0,.75],"10927":[.13597,.63597,0,0,.77778],"10928":[.13597,.63597,0,0,.77778],"57376":[.19444,.69444,0,0,0]},"Math-BoldItalic":{"65":[0,.68611,0,0,.86944],"66":[0,.68611,.04835,0,.8664],"67":[0,.68611,.06979,0,.81694],"68":[0,.68611,.03194,0,.93812],"69":[0,.68611,.05451,0,.81007],"70":[0,.68611,.15972,0,.68889],"71":[0,.68611,0,0,.88673],"72":[0,.68611,.08229,0,.98229],"73":[0,.68611,.07778,0,.51111],"74":[0,.68611,.10069,0,.63125],"75":[0,.68611,.06979,0,.97118],"76":[0,.68611,0,0,.75555],"77":[0,.68611,.11424,0,1.14201],"78":[0,.68611,.11424,0,.95034],"79":[0,.68611,.03194,0,.83666],"80":[0,.68611,.15972,0,.72309],"81":[.19444,.68611,0,0,.86861],"82":[0,.68611,.00421,0,.87235],"83":[0,.68611,.05382,0,.69271],"84":[0,.68611,.15972,0,.63663],"85":[0,.68611,.11424,0,.80027],"86":[0,.68611,.25555,0,.67778],"87":[0,.68611,.15972,0,1.09305],"88":[0,.68611,.07778,0,.94722],"89":[0,.68611,.25555,0,.67458],"90":[0,.68611,.06979,0,.77257],"97":[0,.44444,0,0,.63287],"98":[0,.69444,0,0,.52083],"99":[0,.44444,0,0,.51342],"100":[0,.69444,0,0,.60972],"101":[0,.44444,0,0,.55361],"102":[.19444,.69444,.11042,0,.56806],"103":[.19444,.44444,.03704,0,.5449],"104":[0,.69444,0,0,.66759],"105":[0,.69326,0,0,.4048],"106":[.19444,.69326,.0622,0,.47083],"107":[0,.69444,.01852,0,.6037],"108":[0,.69444,.0088,0,.34815],"109":[0,.44444,0,0,1.0324],"110":[0,.44444,0,0,.71296],"111":[0,.44444,0,0,.58472],"112":[.19444,.44444,0,0,.60092],"113":[.19444,.44444,.03704,0,.54213],"114":[0,.44444,.03194,0,.5287],"115":[0,.44444,0,0,.53125],"116":[0,.63492,0,0,.41528],"117":[0,.44444,0,0,.68102],"118":[0,.44444,.03704,0,.56666],"119":[0,.44444,.02778,0,.83148],"120":[0,.44444,0,0,.65903],"121":[.19444,.44444,.03704,0,.59028],"122":[0,.44444,.04213,0,.55509],"915":[0,.68611,.15972,0,.65694],"916":[0,.68611,0,0,.95833],"920":[0,.68611,.03194,0,.86722],"923":[0,.68611,0,0,.80555],"926":[0,.68611,.07458,0,.84125],"928":[0,.68611,.08229,0,.98229],"931":[0,.68611,.05451,0,.88507],"933":[0,.68611,.15972,0,.67083],"934":[0,.68611,0,0,.76666],"936":[0,.68611,.11653,0,.71402],"937":[0,.68611,.04835,0,.8789],"945":[0,.44444,0,0,.76064],"946":[.19444,.69444,.03403,0,.65972],"947":[.19444,.44444,.06389,0,.59003],"948":[0,.69444,.03819,0,.52222],"949":[0,.44444,0,0,.52882],"950":[.19444,.69444,.06215,0,.50833],"951":[.19444,.44444,.03704,0,.6],"952":[0,.69444,.03194,0,.5618],"953":[0,.44444,0,0,.41204],"954":[0,.44444,0,0,.66759],"955":[0,.69444,0,0,.67083],"956":[.19444,.44444,0,0,.70787],"957":[0,.44444,.06898,0,.57685],"958":[.19444,.69444,.03021,0,.50833],"959":[0,.44444,0,0,.58472],"960":[0,.44444,.03704,0,.68241],"961":[.19444,.44444,0,0,.6118],"962":[.09722,.44444,.07917,0,.42361],"963":[0,.44444,.03704,0,.68588],"964":[0,.44444,.13472,0,.52083],"965":[0,.44444,.03704,0,.63055],"966":[.19444,.44444,0,0,.74722],"967":[.19444,.44444,0,0,.71805],"968":[.19444,.69444,.03704,0,.75833],"969":[0,.44444,.03704,0,.71782],"977":[0,.69444,0,0,.69155],"981":[.19444,.69444,0,0,.7125],"982":[0,.44444,.03194,0,.975],"1009":[.19444,.44444,0,0,.6118],"1013":[0,.44444,0,0,.48333]},"Math-Italic":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"Math-Regular":{"65":[0,.68333,0,.13889,.75],"66":[0,.68333,.05017,.08334,.75851],"67":[0,.68333,.07153,.08334,.71472],"68":[0,.68333,.02778,.05556,.82792],"69":[0,.68333,.05764,.08334,.7382],"70":[0,.68333,.13889,.08334,.64306],"71":[0,.68333,0,.08334,.78625],"72":[0,.68333,.08125,.05556,.83125],"73":[0,.68333,.07847,.11111,.43958],"74":[0,.68333,.09618,.16667,.55451],"75":[0,.68333,.07153,.05556,.84931],"76":[0,.68333,0,.02778,.68056],"77":[0,.68333,.10903,.08334,.97014],"78":[0,.68333,.10903,.08334,.80347],"79":[0,.68333,.02778,.08334,.76278],"80":[0,.68333,.13889,.08334,.64201],"81":[.19444,.68333,0,.08334,.79056],"82":[0,.68333,.00773,.08334,.75929],"83":[0,.68333,.05764,.08334,.6132],"84":[0,.68333,.13889,.08334,.58438],"85":[0,.68333,.10903,.02778,.68278],"86":[0,.68333,.22222,0,.58333],"87":[0,.68333,.13889,0,.94445],"88":[0,.68333,.07847,.08334,.82847],"89":[0,.68333,.22222,0,.58056],"90":[0,.68333,.07153,.08334,.68264],"97":[0,.43056,0,0,.52859],"98":[0,.69444,0,0,.42917],"99":[0,.43056,0,.05556,.43276],"100":[0,.69444,0,.16667,.52049],"101":[0,.43056,0,.05556,.46563],"102":[.19444,.69444,.10764,.16667,.48959],"103":[.19444,.43056,.03588,.02778,.47697],"104":[0,.69444,0,0,.57616],"105":[0,.65952,0,0,.34451],"106":[.19444,.65952,.05724,0,.41181],"107":[0,.69444,.03148,0,.5206],"108":[0,.69444,.01968,.08334,.29838],"109":[0,.43056,0,0,.87801],"110":[0,.43056,0,0,.60023],"111":[0,.43056,0,.05556,.48472],"112":[.19444,.43056,0,.08334,.50313],"113":[.19444,.43056,.03588,.08334,.44641],"114":[0,.43056,.02778,.05556,.45116],"115":[0,.43056,0,.05556,.46875],"116":[0,.61508,0,.08334,.36111],"117":[0,.43056,0,.02778,.57246],"118":[0,.43056,.03588,.02778,.48472],"119":[0,.43056,.02691,.08334,.71592],"120":[0,.43056,0,.02778,.57153],"121":[.19444,.43056,.03588,.05556,.49028],"122":[0,.43056,.04398,.05556,.46505],"915":[0,.68333,.13889,.08334,.61528],"916":[0,.68333,0,.16667,.83334],"920":[0,.68333,.02778,.08334,.76278],"923":[0,.68333,0,.16667,.69445],"926":[0,.68333,.07569,.08334,.74236],"928":[0,.68333,.08125,.05556,.83125],"931":[0,.68333,.05764,.08334,.77986],"933":[0,.68333,.13889,.05556,.58333],"934":[0,.68333,0,.08334,.66667],"936":[0,.68333,.11,.05556,.61222],"937":[0,.68333,.05017,.08334,.7724],"945":[0,.43056,.0037,.02778,.6397],"946":[.19444,.69444,.05278,.08334,.56563],"947":[.19444,.43056,.05556,0,.51773],"948":[0,.69444,.03785,.05556,.44444],"949":[0,.43056,0,.08334,.46632],"950":[.19444,.69444,.07378,.08334,.4375],"951":[.19444,.43056,.03588,.05556,.49653],"952":[0,.69444,.02778,.08334,.46944],"953":[0,.43056,0,.05556,.35394],"954":[0,.43056,0,0,.57616],"955":[0,.69444,0,0,.58334],"956":[.19444,.43056,0,.02778,.60255],"957":[0,.43056,.06366,.02778,.49398],"958":[.19444,.69444,.04601,.11111,.4375],"959":[0,.43056,0,.05556,.48472],"960":[0,.43056,.03588,0,.57003],"961":[.19444,.43056,0,.08334,.51702],"962":[.09722,.43056,.07986,.08334,.36285],"963":[0,.43056,.03588,0,.57141],"964":[0,.43056,.1132,.02778,.43715],"965":[0,.43056,.03588,.02778,.54028],"966":[.19444,.43056,0,.08334,.65417],"967":[.19444,.43056,0,.05556,.62569],"968":[.19444,.69444,.03588,.11111,.65139],"969":[0,.43056,.03588,0,.62245],"977":[0,.69444,0,.08334,.59144],"981":[.19444,.69444,0,.08334,.59583],"982":[0,.43056,.02778,0,.82813],"1009":[.19444,.43056,0,.08334,.51702],"1013":[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{"33":[0,.69444,0,0,.36667],"34":[0,.69444,0,0,.55834],"35":[.19444,.69444,0,0,.91667],"36":[.05556,.75,0,0,.55],"37":[.05556,.75,0,0,1.02912],"38":[0,.69444,0,0,.83056],"39":[0,.69444,0,0,.30556],"40":[.25,.75,0,0,.42778],"41":[.25,.75,0,0,.42778],"42":[0,.75,0,0,.55],"43":[.11667,.61667,0,0,.85556],"44":[.10556,.13056,0,0,.30556],"45":[0,.45833,0,0,.36667],"46":[0,.13056,0,0,.30556],"47":[.25,.75,0,0,.55],"48":[0,.69444,0,0,.55],"49":[0,.69444,0,0,.55],"50":[0,.69444,0,0,.55],"51":[0,.69444,0,0,.55],"52":[0,.69444,0,0,.55],"53":[0,.69444,0,0,.55],"54":[0,.69444,0,0,.55],"55":[0,.69444,0,0,.55],"56":[0,.69444,0,0,.55],"57":[0,.69444,0,0,.55],"58":[0,.45833,0,0,.30556],"59":[.10556,.45833,0,0,.30556],"61":[-.09375,.40625,0,0,.85556],"63":[0,.69444,0,0,.51945],"64":[0,.69444,0,0,.73334],"65":[0,.69444,0,0,.73334],"66":[0,.69444,0,0,.73334],"67":[0,.69444,0,0,.70278],"68":[0,.69444,0,0,.79445],"69":[0,.69444,0,0,.64167],"70":[0,.69444,0,0,.61111],"71":[0,.69444,0,0,.73334],"72":[0,.69444,0,0,.79445],"73":[0,.69444,0,0,.33056],"74":[0,.69444,0,0,.51945],"75":[0,.69444,0,0,.76389],"76":[0,.69444,0,0,.58056],"77":[0,.69444,0,0,.97778],"78":[0,.69444,0,0,.79445],"79":[0,.69444,0,0,.79445],"80":[0,.69444,0,0,.70278],"81":[.10556,.69444,0,0,.79445],"82":[0,.69444,0,0,.70278],"83":[0,.69444,0,0,.61111],"84":[0,.69444,0,0,.73334],"85":[0,.69444,0,0,.76389],"86":[0,.69444,.01528,0,.73334],"87":[0,.69444,.01528,0,1.03889],"88":[0,.69444,0,0,.73334],"89":[0,.69444,.0275,0,.73334],"90":[0,.69444,0,0,.67223],"91":[.25,.75,0,0,.34306],"93":[.25,.75,0,0,.34306],"94":[0,.69444,0,0,.55],"95":[.35,.10833,.03056,0,.55],"97":[0,.45833,0,0,.525],"98":[0,.69444,0,0,.56111],"99":[0,.45833,0,0,.48889],"100":[0,.69444,0,0,.56111],"101":[0,.45833,0,0,.51111],"102":[0,.69444,.07639,0,.33611],"103":[.19444,.45833,.01528,0,.55],"104":[0,.69444,0,0,.56111],"105":[0,.69444,0,0,.25556],"106":[.19444,.69444,0,0,.28611],"107":[0,.69444,0,0,.53056],"108":[0,.69444,0,0,.25556],"109":[0,.45833,0,0,.86667],"110":[0,.45833,0,0,.56111],"111":[0,.45833,0,0,.55],"112":[.19444,.45833,0,0,.56111],"113":[.19444,.45833,0,0,.56111],"114":[0,.45833,.01528,0,.37222],"115":[0,.45833,0,0,.42167],"116":[0,.58929,0,0,.40417],"117":[0,.45833,0,0,.56111],"118":[0,.45833,.01528,0,.5],"119":[0,.45833,.01528,0,.74445],"120":[0,.45833,0,0,.5],"121":[.19444,.45833,.01528,0,.5],"122":[0,.45833,0,0,.47639],"126":[.35,.34444,0,0,.55],"168":[0,.69444,0,0,.55],"176":[0,.69444,0,0,.73334],"180":[0,.69444,0,0,.55],"184":[.17014,0,0,0,.48889],"305":[0,.45833,0,0,.25556],"567":[.19444,.45833,0,0,.28611],"710":[0,.69444,0,0,.55],"711":[0,.63542,0,0,.55],"713":[0,.63778,0,0,.55],"728":[0,.69444,0,0,.55],"729":[0,.69444,0,0,.30556],"730":[0,.69444,0,0,.73334],"732":[0,.69444,0,0,.55],"733":[0,.69444,0,0,.55],"915":[0,.69444,0,0,.58056],"916":[0,.69444,0,0,.91667],"920":[0,.69444,0,0,.85556],"923":[0,.69444,0,0,.67223],"926":[0,.69444,0,0,.73334],"928":[0,.69444,0,0,.79445],"931":[0,.69444,0,0,.79445],"933":[0,.69444,0,0,.85556],"934":[0,.69444,0,0,.79445],"936":[0,.69444,0,0,.85556],"937":[0,.69444,0,0,.79445],"8211":[0,.45833,.03056,0,.55],"8212":[0,.45833,.03056,0,1.10001],"8216":[0,.69444,0,0,.30556],"8217":[0,.69444,0,0,.30556],"8220":[0,.69444,0,0,.55834],"8221":[0,.69444,0,0,.55834]},"SansSerif-Italic":{"33":[0,.69444,.05733,0,.31945],"34":[0,.69444,.00316,0,.5],"35":[.19444,.69444,.05087,0,.83334],"36":[.05556,.75,.11156,0,.5],"37":[.05556,.75,.03126,0,.83334],"38":[0,.69444,.03058,0,.75834],"39":[0,.69444,.07816,0,.27778],"40":[.25,.75,.13164,0,.38889],"41":[.25,.75,.02536,0,.38889],"42":[0,.75,.11775,0,.5],"43":[.08333,.58333,.02536,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,.01946,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,.13164,0,.5],"48":[0,.65556,.11156,0,.5],"49":[0,.65556,.11156,0,.5],"50":[0,.65556,.11156,0,.5],"51":[0,.65556,.11156,0,.5],"52":[0,.65556,.11156,0,.5],"53":[0,.65556,.11156,0,.5],"54":[0,.65556,.11156,0,.5],"55":[0,.65556,.11156,0,.5],"56":[0,.65556,.11156,0,.5],"57":[0,.65556,.11156,0,.5],"58":[0,.44444,.02502,0,.27778],"59":[.125,.44444,.02502,0,.27778],"61":[-.13,.37,.05087,0,.77778],"63":[0,.69444,.11809,0,.47222],"64":[0,.69444,.07555,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,.08293,0,.66667],"67":[0,.69444,.11983,0,.63889],"68":[0,.69444,.07555,0,.72223],"69":[0,.69444,.11983,0,.59722],"70":[0,.69444,.13372,0,.56945],"71":[0,.69444,.11983,0,.66667],"72":[0,.69444,.08094,0,.70834],"73":[0,.69444,.13372,0,.27778],"74":[0,.69444,.08094,0,.47222],"75":[0,.69444,.11983,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,.08094,0,.875],"78":[0,.69444,.08094,0,.70834],"79":[0,.69444,.07555,0,.73611],"80":[0,.69444,.08293,0,.63889],"81":[.125,.69444,.07555,0,.73611],"82":[0,.69444,.08293,0,.64584],"83":[0,.69444,.09205,0,.55556],"84":[0,.69444,.13372,0,.68056],"85":[0,.69444,.08094,0,.6875],"86":[0,.69444,.1615,0,.66667],"87":[0,.69444,.1615,0,.94445],"88":[0,.69444,.13372,0,.66667],"89":[0,.69444,.17261,0,.66667],"90":[0,.69444,.11983,0,.61111],"91":[.25,.75,.15942,0,.28889],"93":[.25,.75,.08719,0,.28889],"94":[0,.69444,.0799,0,.5],"95":[.35,.09444,.08616,0,.5],"97":[0,.44444,.00981,0,.48056],"98":[0,.69444,.03057,0,.51667],"99":[0,.44444,.08336,0,.44445],"100":[0,.69444,.09483,0,.51667],"101":[0,.44444,.06778,0,.44445],"102":[0,.69444,.21705,0,.30556],"103":[.19444,.44444,.10836,0,.5],"104":[0,.69444,.01778,0,.51667],"105":[0,.67937,.09718,0,.23889],"106":[.19444,.67937,.09162,0,.26667],"107":[0,.69444,.08336,0,.48889],"108":[0,.69444,.09483,0,.23889],"109":[0,.44444,.01778,0,.79445],"110":[0,.44444,.01778,0,.51667],"111":[0,.44444,.06613,0,.5],"112":[.19444,.44444,.0389,0,.51667],"113":[.19444,.44444,.04169,0,.51667],"114":[0,.44444,.10836,0,.34167],"115":[0,.44444,.0778,0,.38333],"116":[0,.57143,.07225,0,.36111],"117":[0,.44444,.04169,0,.51667],"118":[0,.44444,.10836,0,.46111],"119":[0,.44444,.10836,0,.68334],"120":[0,.44444,.09169,0,.46111],"121":[.19444,.44444,.10836,0,.46111],"122":[0,.44444,.08752,0,.43472],"126":[.35,.32659,.08826,0,.5],"168":[0,.67937,.06385,0,.5],"176":[0,.69444,0,0,.73752],"184":[.17014,0,0,0,.44445],"305":[0,.44444,.04169,0,.23889],"567":[.19444,.44444,.04169,0,.26667],"710":[0,.69444,.0799,0,.5],"711":[0,.63194,.08432,0,.5],"713":[0,.60889,.08776,0,.5],"714":[0,.69444,.09205,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,.09483,0,.5],"729":[0,.67937,.07774,0,.27778],"730":[0,.69444,0,0,.73752],"732":[0,.67659,.08826,0,.5],"733":[0,.69444,.09205,0,.5],"915":[0,.69444,.13372,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,.07555,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,.12816,0,.66667],"928":[0,.69444,.08094,0,.70834],"931":[0,.69444,.11983,0,.72222],"933":[0,.69444,.09031,0,.77778],"934":[0,.69444,.04603,0,.72222],"936":[0,.69444,.09031,0,.77778],"937":[0,.69444,.08293,0,.72222],"8211":[0,.44444,.08616,0,.5],"8212":[0,.44444,.08616,0,1],"8216":[0,.69444,.07816,0,.27778],"8217":[0,.69444,.07816,0,.27778],"8220":[0,.69444,.14205,0,.5],"8221":[0,.69444,.00316,0,.5]},"SansSerif-Regular":{"33":[0,.69444,0,0,.31945],"34":[0,.69444,0,0,.5],"35":[.19444,.69444,0,0,.83334],"36":[.05556,.75,0,0,.5],"37":[.05556,.75,0,0,.83334],"38":[0,.69444,0,0,.75834],"39":[0,.69444,0,0,.27778],"40":[.25,.75,0,0,.38889],"41":[.25,.75,0,0,.38889],"42":[0,.75,0,0,.5],"43":[.08333,.58333,0,0,.77778],"44":[.125,.08333,0,0,.27778],"45":[0,.44444,0,0,.33333],"46":[0,.08333,0,0,.27778],"47":[.25,.75,0,0,.5],"48":[0,.65556,0,0,.5],"49":[0,.65556,0,0,.5],"50":[0,.65556,0,0,.5],"51":[0,.65556,0,0,.5],"52":[0,.65556,0,0,.5],"53":[0,.65556,0,0,.5],"54":[0,.65556,0,0,.5],"55":[0,.65556,0,0,.5],"56":[0,.65556,0,0,.5],"57":[0,.65556,0,0,.5],"58":[0,.44444,0,0,.27778],"59":[.125,.44444,0,0,.27778],"61":[-.13,.37,0,0,.77778],"63":[0,.69444,0,0,.47222],"64":[0,.69444,0,0,.66667],"65":[0,.69444,0,0,.66667],"66":[0,.69444,0,0,.66667],"67":[0,.69444,0,0,.63889],"68":[0,.69444,0,0,.72223],"69":[0,.69444,0,0,.59722],"70":[0,.69444,0,0,.56945],"71":[0,.69444,0,0,.66667],"72":[0,.69444,0,0,.70834],"73":[0,.69444,0,0,.27778],"74":[0,.69444,0,0,.47222],"75":[0,.69444,0,0,.69445],"76":[0,.69444,0,0,.54167],"77":[0,.69444,0,0,.875],"78":[0,.69444,0,0,.70834],"79":[0,.69444,0,0,.73611],"80":[0,.69444,0,0,.63889],"81":[.125,.69444,0,0,.73611],"82":[0,.69444,0,0,.64584],"83":[0,.69444,0,0,.55556],"84":[0,.69444,0,0,.68056],"85":[0,.69444,0,0,.6875],"86":[0,.69444,.01389,0,.66667],"87":[0,.69444,.01389,0,.94445],"88":[0,.69444,0,0,.66667],"89":[0,.69444,.025,0,.66667],"90":[0,.69444,0,0,.61111],"91":[.25,.75,0,0,.28889],"93":[.25,.75,0,0,.28889],"94":[0,.69444,0,0,.5],"95":[.35,.09444,.02778,0,.5],"97":[0,.44444,0,0,.48056],"98":[0,.69444,0,0,.51667],"99":[0,.44444,0,0,.44445],"100":[0,.69444,0,0,.51667],"101":[0,.44444,0,0,.44445],"102":[0,.69444,.06944,0,.30556],"103":[.19444,.44444,.01389,0,.5],"104":[0,.69444,0,0,.51667],"105":[0,.67937,0,0,.23889],"106":[.19444,.67937,0,0,.26667],"107":[0,.69444,0,0,.48889],"108":[0,.69444,0,0,.23889],"109":[0,.44444,0,0,.79445],"110":[0,.44444,0,0,.51667],"111":[0,.44444,0,0,.5],"112":[.19444,.44444,0,0,.51667],"113":[.19444,.44444,0,0,.51667],"114":[0,.44444,.01389,0,.34167],"115":[0,.44444,0,0,.38333],"116":[0,.57143,0,0,.36111],"117":[0,.44444,0,0,.51667],"118":[0,.44444,.01389,0,.46111],"119":[0,.44444,.01389,0,.68334],"120":[0,.44444,0,0,.46111],"121":[.19444,.44444,.01389,0,.46111],"122":[0,.44444,0,0,.43472],"126":[.35,.32659,0,0,.5],"168":[0,.67937,0,0,.5],"176":[0,.69444,0,0,.66667],"184":[.17014,0,0,0,.44445],"305":[0,.44444,0,0,.23889],"567":[.19444,.44444,0,0,.26667],"710":[0,.69444,0,0,.5],"711":[0,.63194,0,0,.5],"713":[0,.60889,0,0,.5],"714":[0,.69444,0,0,.5],"715":[0,.69444,0,0,.5],"728":[0,.69444,0,0,.5],"729":[0,.67937,0,0,.27778],"730":[0,.69444,0,0,.66667],"732":[0,.67659,0,0,.5],"733":[0,.69444,0,0,.5],"915":[0,.69444,0,0,.54167],"916":[0,.69444,0,0,.83334],"920":[0,.69444,0,0,.77778],"923":[0,.69444,0,0,.61111],"926":[0,.69444,0,0,.66667],"928":[0,.69444,0,0,.70834],"931":[0,.69444,0,0,.72222],"933":[0,.69444,0,0,.77778],"934":[0,.69444,0,0,.72222],"936":[0,.69444,0,0,.77778],"937":[0,.69444,0,0,.72222],"8211":[0,.44444,.02778,0,.5],"8212":[0,.44444,.02778,0,1],"8216":[0,.69444,0,0,.27778],"8217":[0,.69444,0,0,.27778],"8220":[0,.69444,0,0,.5],"8221":[0,.69444,0,0,.5]},"Script-Regular":{"65":[0,.7,.22925,0,.80253],"66":[0,.7,.04087,0,.90757],"67":[0,.7,.1689,0,.66619],"68":[0,.7,.09371,0,.77443],"69":[0,.7,.18583,0,.56162],"70":[0,.7,.13634,0,.89544],"71":[0,.7,.17322,0,.60961],"72":[0,.7,.29694,0,.96919],"73":[0,.7,.19189,0,.80907],"74":[.27778,.7,.19189,0,1.05159],"75":[0,.7,.31259,0,.91364],"76":[0,.7,.19189,0,.87373],"77":[0,.7,.15981,0,1.08031],"78":[0,.7,.3525,0,.9015],"79":[0,.7,.08078,0,.73787],"80":[0,.7,.08078,0,1.01262],"81":[0,.7,.03305,0,.88282],"82":[0,.7,.06259,0,.85],"83":[0,.7,.19189,0,.86767],"84":[0,.7,.29087,0,.74697],"85":[0,.7,.25815,0,.79996],"86":[0,.7,.27523,0,.62204],"87":[0,.7,.27523,0,.80532],"88":[0,.7,.26006,0,.94445],"89":[0,.7,.2939,0,.70961],"90":[0,.7,.24037,0,.8212]},"Size1-Regular":{"40":[.35001,.85,0,0,.45834],"41":[.35001,.85,0,0,.45834],"47":[.35001,.85,0,0,.57778],"91":[.35001,.85,0,0,.41667],"92":[.35001,.85,0,0,.57778],"93":[.35001,.85,0,0,.41667],"123":[.35001,.85,0,0,.58334],"125":[.35001,.85,0,0,.58334],"710":[0,.72222,0,0,.55556],"732":[0,.72222,0,0,.55556],"770":[0,.72222,0,0,.55556],"771":[0,.72222,0,0,.55556],"8214":[-99e-5,.601,0,0,.77778],"8593":[1e-5,.6,0,0,.66667],"8595":[1e-5,.6,0,0,.66667],"8657":[1e-5,.6,0,0,.77778],"8659":[1e-5,.6,0,0,.77778],"8719":[.25001,.75,0,0,.94445],"8720":[.25001,.75,0,0,.94445],"8721":[.25001,.75,0,0,1.05556],"8730":[.35001,.85,0,0,1],"8739":[-.00599,.606,0,0,.33333],"8741":[-.00599,.606,0,0,.55556],"8747":[.30612,.805,.19445,0,.47222],"8748":[.306,.805,.19445,0,.47222],"8749":[.306,.805,.19445,0,.47222],"8750":[.30612,.805,.19445,0,.47222],"8896":[.25001,.75,0,0,.83334],"8897":[.25001,.75,0,0,.83334],"8898":[.25001,.75,0,0,.83334],"8899":[.25001,.75,0,0,.83334],"8968":[.35001,.85,0,0,.47222],"8969":[.35001,.85,0,0,.47222],"8970":[.35001,.85,0,0,.47222],"8971":[.35001,.85,0,0,.47222],"9168":[-99e-5,.601,0,0,.66667],"10216":[.35001,.85,0,0,.47222],"10217":[.35001,.85,0,0,.47222],"10752":[.25001,.75,0,0,1.11111],"10753":[.25001,.75,0,0,1.11111],"10754":[.25001,.75,0,0,1.11111],"10756":[.25001,.75,0,0,.83334],"10758":[.25001,.75,0,0,.83334]},"Size2-Regular":{"40":[.65002,1.15,0,0,.59722],"41":[.65002,1.15,0,0,.59722],"47":[.65002,1.15,0,0,.81111],"91":[.65002,1.15,0,0,.47222],"92":[.65002,1.15,0,0,.81111],"93":[.65002,1.15,0,0,.47222],"123":[.65002,1.15,0,0,.66667],"125":[.65002,1.15,0,0,.66667],"710":[0,.75,0,0,1],"732":[0,.75,0,0,1],"770":[0,.75,0,0,1],"771":[0,.75,0,0,1],"8719":[.55001,1.05,0,0,1.27778],"8720":[.55001,1.05,0,0,1.27778],"8721":[.55001,1.05,0,0,1.44445],"8730":[.65002,1.15,0,0,1],"8747":[.86225,1.36,.44445,0,.55556],"8748":[.862,1.36,.44445,0,.55556],"8749":[.862,1.36,.44445,0,.55556],"8750":[.86225,1.36,.44445,0,.55556],"8896":[.55001,1.05,0,0,1.11111],"8897":[.55001,1.05,0,0,1.11111],"8898":[.55001,1.05,0,0,1.11111],"8899":[.55001,1.05,0,0,1.11111],"8968":[.65002,1.15,0,0,.52778],"8969":[.65002,1.15,0,0,.52778],"8970":[.65002,1.15,0,0,.52778],"8971":[.65002,1.15,0,0,.52778],"10216":[.65002,1.15,0,0,.61111],"10217":[.65002,1.15,0,0,.61111],"10752":[.55001,1.05,0,0,1.51112],"10753":[.55001,1.05,0,0,1.51112],"10754":[.55001,1.05,0,0,1.51112],"10756":[.55001,1.05,0,0,1.11111],"10758":[.55001,1.05,0,0,1.11111]},"Size3-Regular":{"40":[.95003,1.45,0,0,.73611],"41":[.95003,1.45,0,0,.73611],"47":[.95003,1.45,0,0,1.04445],"91":[.95003,1.45,0,0,.52778],"92":[.95003,1.45,0,0,1.04445],"93":[.95003,1.45,0,0,.52778],"123":[.95003,1.45,0,0,.75],"125":[.95003,1.45,0,0,.75],"710":[0,.75,0,0,1.44445],"732":[0,.75,0,0,1.44445],"770":[0,.75,0,0,1.44445],"771":[0,.75,0,0,1.44445],"8730":[.95003,1.45,0,0,1],"8968":[.95003,1.45,0,0,.58334],"8969":[.95003,1.45,0,0,.58334],"8970":[.95003,1.45,0,0,.58334],"8971":[.95003,1.45,0,0,.58334],"10216":[.95003,1.45,0,0,.75],"10217":[.95003,1.45,0,0,.75]},"Size4-Regular":{"40":[1.25003,1.75,0,0,.79167],"41":[1.25003,1.75,0,0,.79167],"47":[1.25003,1.75,0,0,1.27778],"91":[1.25003,1.75,0,0,.58334],"92":[1.25003,1.75,0,0,1.27778],"93":[1.25003,1.75,0,0,.58334],"123":[1.25003,1.75,0,0,.80556],"125":[1.25003,1.75,0,0,.80556],"710":[0,.825,0,0,1.8889],"732":[0,.825,0,0,1.8889],"770":[0,.825,0,0,1.8889],"771":[0,.825,0,0,1.8889],"8730":[1.25003,1.75,0,0,1],"8968":[1.25003,1.75,0,0,.63889],"8969":[1.25003,1.75,0,0,.63889],"8970":[1.25003,1.75,0,0,.63889],"8971":[1.25003,1.75,0,0,.63889],"9115":[.64502,1.155,0,0,.875],"9116":[1e-5,.6,0,0,.875],"9117":[.64502,1.155,0,0,.875],"9118":[.64502,1.155,0,0,.875],"9119":[1e-5,.6,0,0,.875],"9120":[.64502,1.155,0,0,.875],"9121":[.64502,1.155,0,0,.66667],"9122":[-99e-5,.601,0,0,.66667],"9123":[.64502,1.155,0,0,.66667],"9124":[.64502,1.155,0,0,.66667],"9125":[-99e-5,.601,0,0,.66667],"9126":[.64502,1.155,0,0,.66667],"9127":[1e-5,.9,0,0,.88889],"9128":[.65002,1.15,0,0,.88889],"9129":[.90001,0,0,0,.88889],"9130":[0,.3,0,0,.88889],"9131":[1e-5,.9,0,0,.88889],"9132":[.65002,1.15,0,0,.88889],"9133":[.90001,0,0,0,.88889],"9143":[.88502,.915,0,0,1.05556],"10216":[1.25003,1.75,0,0,.80556],"10217":[1.25003,1.75,0,0,.80556],"57344":[-.00499,.605,0,0,1.05556],"57345":[-.00499,.605,0,0,1.05556],"57680":[0,.12,0,0,.45],"57681":[0,.12,0,0,.45],"57682":[0,.12,0,0,.45],"57683":[0,.12,0,0,.45]},"Typewriter-Regular":{"32":[0,0,0,0,.525],"33":[0,.61111,0,0,.525],"34":[0,.61111,0,0,.525],"35":[0,.61111,0,0,.525],"36":[.08333,.69444,0,0,.525],"37":[.08333,.69444,0,0,.525],"38":[0,.61111,0,0,.525],"39":[0,.61111,0,0,.525],"40":[.08333,.69444,0,0,.525],"41":[.08333,.69444,0,0,.525],"42":[0,.52083,0,0,.525],"43":[-.08056,.53055,0,0,.525],"44":[.13889,.125,0,0,.525],"45":[-.08056,.53055,0,0,.525],"46":[0,.125,0,0,.525],"47":[.08333,.69444,0,0,.525],"48":[0,.61111,0,0,.525],"49":[0,.61111,0,0,.525],"50":[0,.61111,0,0,.525],"51":[0,.61111,0,0,.525],"52":[0,.61111,0,0,.525],"53":[0,.61111,0,0,.525],"54":[0,.61111,0,0,.525],"55":[0,.61111,0,0,.525],"56":[0,.61111,0,0,.525],"57":[0,.61111,0,0,.525],"58":[0,.43056,0,0,.525],"59":[.13889,.43056,0,0,.525],"60":[-.05556,.55556,0,0,.525],"61":[-.19549,.41562,0,0,.525],"62":[-.05556,.55556,0,0,.525],"63":[0,.61111,0,0,.525],"64":[0,.61111,0,0,.525],"65":[0,.61111,0,0,.525],"66":[0,.61111,0,0,.525],"67":[0,.61111,0,0,.525],"68":[0,.61111,0,0,.525],"69":[0,.61111,0,0,.525],"70":[0,.61111,0,0,.525],"71":[0,.61111,0,0,.525],"72":[0,.61111,0,0,.525],"73":[0,.61111,0,0,.525],"74":[0,.61111,0,0,.525],"75":[0,.61111,0,0,.525],"76":[0,.61111,0,0,.525],"77":[0,.61111,0,0,.525],"78":[0,.61111,0,0,.525],"79":[0,.61111,0,0,.525],"80":[0,.61111,0,0,.525],"81":[.13889,.61111,0,0,.525],"82":[0,.61111,0,0,.525],"83":[0,.61111,0,0,.525],"84":[0,.61111,0,0,.525],"85":[0,.61111,0,0,.525],"86":[0,.61111,0,0,.525],"87":[0,.61111,0,0,.525],"88":[0,.61111,0,0,.525],"89":[0,.61111,0,0,.525],"90":[0,.61111,0,0,.525],"91":[.08333,.69444,0,0,.525],"92":[.08333,.69444,0,0,.525],"93":[.08333,.69444,0,0,.525],"94":[0,.61111,0,0,.525],"95":[.09514,0,0,0,.525],"96":[0,.61111,0,0,.525],"97":[0,.43056,0,0,.525],"98":[0,.61111,0,0,.525],"99":[0,.43056,0,0,.525],"100":[0,.61111,0,0,.525],"101":[0,.43056,0,0,.525],"102":[0,.61111,0,0,.525],"103":[.22222,.43056,0,0,.525],"104":[0,.61111,0,0,.525],"105":[0,.61111,0,0,.525],"106":[.22222,.61111,0,0,.525],"107":[0,.61111,0,0,.525],"108":[0,.61111,0,0,.525],"109":[0,.43056,0,0,.525],"110":[0,.43056,0,0,.525],"111":[0,.43056,0,0,.525],"112":[.22222,.43056,0,0,.525],"113":[.22222,.43056,0,0,.525],"114":[0,.43056,0,0,.525],"115":[0,.43056,0,0,.525],"116":[0,.55358,0,0,.525],"117":[0,.43056,0,0,.525],"118":[0,.43056,0,0,.525],"119":[0,.43056,0,0,.525],"120":[0,.43056,0,0,.525],"121":[.22222,.43056,0,0,.525],"122":[0,.43056,0,0,.525],"123":[.08333,.69444,0,0,.525],"124":[.08333,.69444,0,0,.525],"125":[.08333,.69444,0,0,.525],"126":[0,.61111,0,0,.525],"127":[0,.61111,0,0,.525],"160":[0,0,0,0,.525],"176":[0,.61111,0,0,.525],"184":[.19445,0,0,0,.525],"305":[0,.43056,0,0,.525],"567":[.22222,.43056,0,0,.525],"711":[0,.56597,0,0,.525],"713":[0,.56555,0,0,.525],"714":[0,.61111,0,0,.525],"715":[0,.61111,0,0,.525],"728":[0,.61111,0,0,.525],"730":[0,.61111,0,0,.525],"770":[0,.61111,0,0,.525],"771":[0,.61111,0,0,.525],"776":[0,.61111,0,0,.525],"915":[0,.61111,0,0,.525],"916":[0,.61111,0,0,.525],"920":[0,.61111,0,0,.525],"923":[0,.61111,0,0,.525],"926":[0,.61111,0,0,.525],"928":[0,.61111,0,0,.525],"931":[0,.61111,0,0,.525],"933":[0,.61111,0,0,.525],"934":[0,.61111,0,0,.525],"936":[0,.61111,0,0,.525],"937":[0,.61111,0,0,.525],"8216":[0,.61111,0,0,.525],"8217":[0,.61111,0,0,.525],"8242":[0,.61111,0,0,.525],"9251":[.11111,.21944,0,0,.525]}},et={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Oe={\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Tt(ht,ne){vt[ht]=ne}function Je(ht,ne,pe){if(!vt[ne])throw new Error("Font metrics not found for font: "+ne+".");var be=ht.charCodeAt(0),Ue=vt[ne][be];if(!Ue&&ht[0]in Oe&&(be=Oe[ht[0]].charCodeAt(0),Ue=vt[ne][be]),!Ue&&pe==="text"&&(J(be)&&(Ue=vt[ne][77])),Ue)return{depth:Ue[0],height:Ue[1],italic:Ue[2],skew:Ue[3],width:Ue[4]}}var St={};function Mt(ht){var ne;if(ht>=5?ne=0:ht>=3?ne=1:ne=2,!St[ne]){var pe=St[ne]={cssEmPerMu:et.quad[ne]/18};for(var be in et)et.hasOwnProperty(be)&&(pe[be]=et[be][ne])}return St[ne]}var er={bin:1,close:1,inner:1,open:1,punct:1,rel:1},It={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},_t={math:{},text:{}},Xe=_t;function ie(ht,ne,pe,be,Ue,pt){_t[ht][Ue]={font:ne,group:pe,replace:be},pt&&be&&(_t[ht][be]=_t[ht][Ue])}var X="math",Be="text",Ce="main",Z="ams",nt="accent-token",ct="bin",Qe="close",dt="inner",Ft="mathord",Lr="op-token",Wt="open",ar="punct",Ut="rel",kt="spacing",st="textord";ie(X,Ce,Ut,"\u2261","\\equiv",!0),ie(X,Ce,Ut,"\u227A","\\prec",!0),ie(X,Ce,Ut,"\u227B","\\succ",!0),ie(X,Ce,Ut,"\u223C","\\sim",!0),ie(X,Ce,Ut,"\u22A5","\\perp"),ie(X,Ce,Ut,"\u2AAF","\\preceq",!0),ie(X,Ce,Ut,"\u2AB0","\\succeq",!0),ie(X,Ce,Ut,"\u2243","\\simeq",!0),ie(X,Ce,Ut,"\u2223","\\mid",!0),ie(X,Ce,Ut,"\u226A","\\ll",!0),ie(X,Ce,Ut,"\u226B","\\gg",!0),ie(X,Ce,Ut,"\u224D","\\asymp",!0),ie(X,Ce,Ut,"\u2225","\\parallel"),ie(X,Ce,Ut,"\u22C8","\\bowtie",!0),ie(X,Ce,Ut,"\u2323","\\smile",!0),ie(X,Ce,Ut,"\u2291","\\sqsubseteq",!0),ie(X,Ce,Ut,"\u2292","\\sqsupseteq",!0),ie(X,Ce,Ut,"\u2250","\\doteq",!0),ie(X,Ce,Ut,"\u2322","\\frown",!0),ie(X,Ce,Ut,"\u220B","\\ni",!0),ie(X,Ce,Ut,"\u221D","\\propto",!0),ie(X,Ce,Ut,"\u22A2","\\vdash",!0),ie(X,Ce,Ut,"\u22A3","\\dashv",!0),ie(X,Ce,Ut,"\u220B","\\owns"),ie(X,Ce,ar,".","\\ldotp"),ie(X,Ce,ar,"\u22C5","\\cdotp"),ie(X,Ce,st,"#","\\#"),ie(Be,Ce,st,"#","\\#"),ie(X,Ce,st,"&","\\&"),ie(Be,Ce,st,"&","\\&"),ie(X,Ce,st,"\u2135","\\aleph",!0),ie(X,Ce,st,"\u2200","\\forall",!0),ie(X,Ce,st,"\u210F","\\hbar",!0),ie(X,Ce,st,"\u2203","\\exists",!0),ie(X,Ce,st,"\u2207","\\nabla",!0),ie(X,Ce,st,"\u266D","\\flat",!0),ie(X,Ce,st,"\u2113","\\ell",!0),ie(X,Ce,st,"\u266E","\\natural",!0),ie(X,Ce,st,"\u2663","\\clubsuit",!0),ie(X,Ce,st,"\u2118","\\wp",!0),ie(X,Ce,st,"\u266F","\\sharp",!0),ie(X,Ce,st,"\u2662","\\diamondsuit",!0),ie(X,Ce,st,"\u211C","\\Re",!0),ie(X,Ce,st,"\u2661","\\heartsuit",!0),ie(X,Ce,st,"\u2111","\\Im",!0),ie(X,Ce,st,"\u2660","\\spadesuit",!0),ie(Be,Ce,st,"\xA7","\\S",!0),ie(Be,Ce,st,"\xB6","\\P",!0),ie(X,Ce,st,"\u2020","\\dag"),ie(Be,Ce,st,"\u2020","\\dag"),ie(Be,Ce,st,"\u2020","\\textdagger"),ie(X,Ce,st,"\u2021","\\ddag"),ie(Be,Ce,st,"\u2021","\\ddag"),ie(Be,Ce,st,"\u2021","\\textdaggerdbl"),ie(X,Ce,Qe,"\u23B1","\\rmoustache",!0),ie(X,Ce,Wt,"\u23B0","\\lmoustache",!0),ie(X,Ce,Qe,"\u27EF","\\rgroup",!0),ie(X,Ce,Wt,"\u27EE","\\lgroup",!0),ie(X,Ce,ct,"\u2213","\\mp",!0),ie(X,Ce,ct,"\u2296","\\ominus",!0),ie(X,Ce,ct,"\u228E","\\uplus",!0),ie(X,Ce,ct,"\u2293","\\sqcap",!0),ie(X,Ce,ct,"\u2217","\\ast"),ie(X,Ce,ct,"\u2294","\\sqcup",!0),ie(X,Ce,ct,"\u25EF","\\bigcirc"),ie(X,Ce,ct,"\u2219","\\bullet"),ie(X,Ce,ct,"\u2021","\\ddagger"),ie(X,Ce,ct,"\u2240","\\wr",!0),ie(X,Ce,ct,"\u2A3F","\\amalg"),ie(X,Ce,ct,"&","\\And"),ie(X,Ce,Ut,"\u27F5","\\longleftarrow",!0),ie(X,Ce,Ut,"\u21D0","\\Leftarrow",!0),ie(X,Ce,Ut,"\u27F8","\\Longleftarrow",!0),ie(X,Ce,Ut,"\u27F6","\\longrightarrow",!0),ie(X,Ce,Ut,"\u21D2","\\Rightarrow",!0),ie(X,Ce,Ut,"\u27F9","\\Longrightarrow",!0),ie(X,Ce,Ut,"\u2194","\\leftrightarrow",!0),ie(X,Ce,Ut,"\u27F7","\\longleftrightarrow",!0),ie(X,Ce,Ut,"\u21D4","\\Leftrightarrow",!0),ie(X,Ce,Ut,"\u27FA","\\Longleftrightarrow",!0),ie(X,Ce,Ut,"\u21A6","\\mapsto",!0),ie(X,Ce,Ut,"\u27FC","\\longmapsto",!0),ie(X,Ce,Ut,"\u2197","\\nearrow",!0),ie(X,Ce,Ut,"\u21A9","\\hookleftarrow",!0),ie(X,Ce,Ut,"\u21AA","\\hookrightarrow",!0),ie(X,Ce,Ut,"\u2198","\\searrow",!0),ie(X,Ce,Ut,"\u21BC","\\leftharpoonup",!0),ie(X,Ce,Ut,"\u21C0","\\rightharpoonup",!0),ie(X,Ce,Ut,"\u2199","\\swarrow",!0),ie(X,Ce,Ut,"\u21BD","\\leftharpoondown",!0),ie(X,Ce,Ut,"\u21C1","\\rightharpoondown",!0),ie(X,Ce,Ut,"\u2196","\\nwarrow",!0),ie(X,Ce,Ut,"\u21CC","\\rightleftharpoons",!0),ie(X,Z,Ut,"\u226E","\\nless",!0),ie(X,Z,Ut,"\uE010","\\@nleqslant"),ie(X,Z,Ut,"\uE011","\\@nleqq"),ie(X,Z,Ut,"\u2A87","\\lneq",!0),ie(X,Z,Ut,"\u2268","\\lneqq",!0),ie(X,Z,Ut,"\uE00C","\\@lvertneqq"),ie(X,Z,Ut,"\u22E6","\\lnsim",!0),ie(X,Z,Ut,"\u2A89","\\lnapprox",!0),ie(X,Z,Ut,"\u2280","\\nprec",!0),ie(X,Z,Ut,"\u22E0","\\npreceq",!0),ie(X,Z,Ut,"\u22E8","\\precnsim",!0),ie(X,Z,Ut,"\u2AB9","\\precnapprox",!0),ie(X,Z,Ut,"\u2241","\\nsim",!0),ie(X,Z,Ut,"\uE006","\\@nshortmid"),ie(X,Z,Ut,"\u2224","\\nmid",!0),ie(X,Z,Ut,"\u22AC","\\nvdash",!0),ie(X,Z,Ut,"\u22AD","\\nvDash",!0),ie(X,Z,Ut,"\u22EA","\\ntriangleleft"),ie(X,Z,Ut,"\u22EC","\\ntrianglelefteq",!0),ie(X,Z,Ut,"\u228A","\\subsetneq",!0),ie(X,Z,Ut,"\uE01A","\\@varsubsetneq"),ie(X,Z,Ut,"\u2ACB","\\subsetneqq",!0),ie(X,Z,Ut,"\uE017","\\@varsubsetneqq"),ie(X,Z,Ut,"\u226F","\\ngtr",!0),ie(X,Z,Ut,"\uE00F","\\@ngeqslant"),ie(X,Z,Ut,"\uE00E","\\@ngeqq"),ie(X,Z,Ut,"\u2A88","\\gneq",!0),ie(X,Z,Ut,"\u2269","\\gneqq",!0),ie(X,Z,Ut,"\uE00D","\\@gvertneqq"),ie(X,Z,Ut,"\u22E7","\\gnsim",!0),ie(X,Z,Ut,"\u2A8A","\\gnapprox",!0),ie(X,Z,Ut,"\u2281","\\nsucc",!0),ie(X,Z,Ut,"\u22E1","\\nsucceq",!0),ie(X,Z,Ut,"\u22E9","\\succnsim",!0),ie(X,Z,Ut,"\u2ABA","\\succnapprox",!0),ie(X,Z,Ut,"\u2246","\\ncong",!0),ie(X,Z,Ut,"\uE007","\\@nshortparallel"),ie(X,Z,Ut,"\u2226","\\nparallel",!0),ie(X,Z,Ut,"\u22AF","\\nVDash",!0),ie(X,Z,Ut,"\u22EB","\\ntriangleright"),ie(X,Z,Ut,"\u22ED","\\ntrianglerighteq",!0),ie(X,Z,Ut,"\uE018","\\@nsupseteqq"),ie(X,Z,Ut,"\u228B","\\supsetneq",!0),ie(X,Z,Ut,"\uE01B","\\@varsupsetneq"),ie(X,Z,Ut,"\u2ACC","\\supsetneqq",!0),ie(X,Z,Ut,"\uE019","\\@varsupsetneqq"),ie(X,Z,Ut,"\u22AE","\\nVdash",!0),ie(X,Z,Ut,"\u2AB5","\\precneqq",!0),ie(X,Z,Ut,"\u2AB6","\\succneqq",!0),ie(X,Z,Ut,"\uE016","\\@nsubseteqq"),ie(X,Z,ct,"\u22B4","\\unlhd"),ie(X,Z,ct,"\u22B5","\\unrhd"),ie(X,Z,Ut,"\u219A","\\nleftarrow",!0),ie(X,Z,Ut,"\u219B","\\nrightarrow",!0),ie(X,Z,Ut,"\u21CD","\\nLeftarrow",!0),ie(X,Z,Ut,"\u21CF","\\nRightarrow",!0),ie(X,Z,Ut,"\u21AE","\\nleftrightarrow",!0),ie(X,Z,Ut,"\u21CE","\\nLeftrightarrow",!0),ie(X,Z,Ut,"\u25B3","\\vartriangle"),ie(X,Z,st,"\u210F","\\hslash"),ie(X,Z,st,"\u25BD","\\triangledown"),ie(X,Z,st,"\u25CA","\\lozenge"),ie(X,Z,st,"\u24C8","\\circledS"),ie(X,Z,st,"\xAE","\\circledR"),ie(Be,Z,st,"\xAE","\\circledR"),ie(X,Z,st,"\u2221","\\measuredangle",!0),ie(X,Z,st,"\u2204","\\nexists"),ie(X,Z,st,"\u2127","\\mho"),ie(X,Z,st,"\u2132","\\Finv",!0),ie(X,Z,st,"\u2141","\\Game",!0),ie(X,Z,st,"\u2035","\\backprime"),ie(X,Z,st,"\u25B2","\\blacktriangle"),ie(X,Z,st,"\u25BC","\\blacktriangledown"),ie(X,Z,st,"\u25A0","\\blacksquare"),ie(X,Z,st,"\u29EB","\\blacklozenge"),ie(X,Z,st,"\u2605","\\bigstar"),ie(X,Z,st,"\u2222","\\sphericalangle",!0),ie(X,Z,st,"\u2201","\\complement",!0),ie(X,Z,st,"\xF0","\\eth",!0),ie(X,Z,st,"\u2571","\\diagup"),ie(X,Z,st,"\u2572","\\diagdown"),ie(X,Z,st,"\u25A1","\\square"),ie(X,Z,st,"\u25A1","\\Box"),ie(X,Z,st,"\u25CA","\\Diamond"),ie(X,Z,st,"\xA5","\\yen",!0),ie(Be,Z,st,"\xA5","\\yen",!0),ie(X,Z,st,"\u2713","\\checkmark",!0),ie(Be,Z,st,"\u2713","\\checkmark"),ie(X,Z,st,"\u2136","\\beth",!0),ie(X,Z,st,"\u2138","\\daleth",!0),ie(X,Z,st,"\u2137","\\gimel",!0),ie(X,Z,st,"\u03DD","\\digamma",!0),ie(X,Z,st,"\u03F0","\\varkappa"),ie(X,Z,Wt,"\u250C","\\ulcorner",!0),ie(X,Z,Qe,"\u2510","\\urcorner",!0),ie(X,Z,Wt,"\u2514","\\llcorner",!0),ie(X,Z,Qe,"\u2518","\\lrcorner",!0),ie(X,Z,Ut,"\u2266","\\leqq",!0),ie(X,Z,Ut,"\u2A7D","\\leqslant",!0),ie(X,Z,Ut,"\u2A95","\\eqslantless",!0),ie(X,Z,Ut,"\u2272","\\lesssim",!0),ie(X,Z,Ut,"\u2A85","\\lessapprox",!0),ie(X,Z,Ut,"\u224A","\\approxeq",!0),ie(X,Z,ct,"\u22D6","\\lessdot"),ie(X,Z,Ut,"\u22D8","\\lll",!0),ie(X,Z,Ut,"\u2276","\\lessgtr",!0),ie(X,Z,Ut,"\u22DA","\\lesseqgtr",!0),ie(X,Z,Ut,"\u2A8B","\\lesseqqgtr",!0),ie(X,Z,Ut,"\u2251","\\doteqdot"),ie(X,Z,Ut,"\u2253","\\risingdotseq",!0),ie(X,Z,Ut,"\u2252","\\fallingdotseq",!0),ie(X,Z,Ut,"\u223D","\\backsim",!0),ie(X,Z,Ut,"\u22CD","\\backsimeq",!0),ie(X,Z,Ut,"\u2AC5","\\subseteqq",!0),ie(X,Z,Ut,"\u22D0","\\Subset",!0),ie(X,Z,Ut,"\u228F","\\sqsubset",!0),ie(X,Z,Ut,"\u227C","\\preccurlyeq",!0),ie(X,Z,Ut,"\u22DE","\\curlyeqprec",!0),ie(X,Z,Ut,"\u227E","\\precsim",!0),ie(X,Z,Ut,"\u2AB7","\\precapprox",!0),ie(X,Z,Ut,"\u22B2","\\vartriangleleft"),ie(X,Z,Ut,"\u22B4","\\trianglelefteq"),ie(X,Z,Ut,"\u22A8","\\vDash",!0),ie(X,Z,Ut,"\u22AA","\\Vvdash",!0),ie(X,Z,Ut,"\u2323","\\smallsmile"),ie(X,Z,Ut,"\u2322","\\smallfrown"),ie(X,Z,Ut,"\u224F","\\bumpeq",!0),ie(X,Z,Ut,"\u224E","\\Bumpeq",!0),ie(X,Z,Ut,"\u2267","\\geqq",!0),ie(X,Z,Ut,"\u2A7E","\\geqslant",!0),ie(X,Z,Ut,"\u2A96","\\eqslantgtr",!0),ie(X,Z,Ut,"\u2273","\\gtrsim",!0),ie(X,Z,Ut,"\u2A86","\\gtrapprox",!0),ie(X,Z,ct,"\u22D7","\\gtrdot"),ie(X,Z,Ut,"\u22D9","\\ggg",!0),ie(X,Z,Ut,"\u2277","\\gtrless",!0),ie(X,Z,Ut,"\u22DB","\\gtreqless",!0),ie(X,Z,Ut,"\u2A8C","\\gtreqqless",!0),ie(X,Z,Ut,"\u2256","\\eqcirc",!0),ie(X,Z,Ut,"\u2257","\\circeq",!0),ie(X,Z,Ut,"\u225C","\\triangleq",!0),ie(X,Z,Ut,"\u223C","\\thicksim"),ie(X,Z,Ut,"\u2248","\\thickapprox"),ie(X,Z,Ut,"\u2AC6","\\supseteqq",!0),ie(X,Z,Ut,"\u22D1","\\Supset",!0),ie(X,Z,Ut,"\u2290","\\sqsupset",!0),ie(X,Z,Ut,"\u227D","\\succcurlyeq",!0),ie(X,Z,Ut,"\u22DF","\\curlyeqsucc",!0),ie(X,Z,Ut,"\u227F","\\succsim",!0),ie(X,Z,Ut,"\u2AB8","\\succapprox",!0),ie(X,Z,Ut,"\u22B3","\\vartriangleright"),ie(X,Z,Ut,"\u22B5","\\trianglerighteq"),ie(X,Z,Ut,"\u22A9","\\Vdash",!0),ie(X,Z,Ut,"\u2223","\\shortmid"),ie(X,Z,Ut,"\u2225","\\shortparallel"),ie(X,Z,Ut,"\u226C","\\between",!0),ie(X,Z,Ut,"\u22D4","\\pitchfork",!0),ie(X,Z,Ut,"\u221D","\\varpropto"),ie(X,Z,Ut,"\u25C0","\\blacktriangleleft"),ie(X,Z,Ut,"\u2234","\\therefore",!0),ie(X,Z,Ut,"\u220D","\\backepsilon"),ie(X,Z,Ut,"\u25B6","\\blacktriangleright"),ie(X,Z,Ut,"\u2235","\\because",!0),ie(X,Z,Ut,"\u22D8","\\llless"),ie(X,Z,Ut,"\u22D9","\\gggtr"),ie(X,Z,ct,"\u22B2","\\lhd"),ie(X,Z,ct,"\u22B3","\\rhd"),ie(X,Z,Ut,"\u2242","\\eqsim",!0),ie(X,Ce,Ut,"\u22C8","\\Join"),ie(X,Z,Ut,"\u2251","\\Doteq",!0),ie(X,Z,ct,"\u2214","\\dotplus",!0),ie(X,Z,ct,"\u2216","\\smallsetminus"),ie(X,Z,ct,"\u22D2","\\Cap",!0),ie(X,Z,ct,"\u22D3","\\Cup",!0),ie(X,Z,ct,"\u2A5E","\\doublebarwedge",!0),ie(X,Z,ct,"\u229F","\\boxminus",!0),ie(X,Z,ct,"\u229E","\\boxplus",!0),ie(X,Z,ct,"\u22C7","\\divideontimes",!0),ie(X,Z,ct,"\u22C9","\\ltimes",!0),ie(X,Z,ct,"\u22CA","\\rtimes",!0),ie(X,Z,ct,"\u22CB","\\leftthreetimes",!0),ie(X,Z,ct,"\u22CC","\\rightthreetimes",!0),ie(X,Z,ct,"\u22CF","\\curlywedge",!0),ie(X,Z,ct,"\u22CE","\\curlyvee",!0),ie(X,Z,ct,"\u229D","\\circleddash",!0),ie(X,Z,ct,"\u229B","\\circledast",!0),ie(X,Z,ct,"\u22C5","\\centerdot"),ie(X,Z,ct,"\u22BA","\\intercal",!0),ie(X,Z,ct,"\u22D2","\\doublecap"),ie(X,Z,ct,"\u22D3","\\doublecup"),ie(X,Z,ct,"\u22A0","\\boxtimes",!0),ie(X,Z,Ut,"\u21E2","\\dashrightarrow",!0),ie(X,Z,Ut,"\u21E0","\\dashleftarrow",!0),ie(X,Z,Ut,"\u21C7","\\leftleftarrows",!0),ie(X,Z,Ut,"\u21C6","\\leftrightarrows",!0),ie(X,Z,Ut,"\u21DA","\\Lleftarrow",!0),ie(X,Z,Ut,"\u219E","\\twoheadleftarrow",!0),ie(X,Z,Ut,"\u21A2","\\leftarrowtail",!0),ie(X,Z,Ut,"\u21AB","\\looparrowleft",!0),ie(X,Z,Ut,"\u21CB","\\leftrightharpoons",!0),ie(X,Z,Ut,"\u21B6","\\curvearrowleft",!0),ie(X,Z,Ut,"\u21BA","\\circlearrowleft",!0),ie(X,Z,Ut,"\u21B0","\\Lsh",!0),ie(X,Z,Ut,"\u21C8","\\upuparrows",!0),ie(X,Z,Ut,"\u21BF","\\upharpoonleft",!0),ie(X,Z,Ut,"\u21C3","\\downharpoonleft",!0),ie(X,Z,Ut,"\u22B8","\\multimap",!0),ie(X,Z,Ut,"\u21AD","\\leftrightsquigarrow",!0),ie(X,Z,Ut,"\u21C9","\\rightrightarrows",!0),ie(X,Z,Ut,"\u21C4","\\rightleftarrows",!0),ie(X,Z,Ut,"\u21A0","\\twoheadrightarrow",!0),ie(X,Z,Ut,"\u21A3","\\rightarrowtail",!0),ie(X,Z,Ut,"\u21AC","\\looparrowright",!0),ie(X,Z,Ut,"\u21B7","\\curvearrowright",!0),ie(X,Z,Ut,"\u21BB","\\circlearrowright",!0),ie(X,Z,Ut,"\u21B1","\\Rsh",!0),ie(X,Z,Ut,"\u21CA","\\downdownarrows",!0),ie(X,Z,Ut,"\u21BE","\\upharpoonright",!0),ie(X,Z,Ut,"\u21C2","\\downharpoonright",!0),ie(X,Z,Ut,"\u21DD","\\rightsquigarrow",!0),ie(X,Z,Ut,"\u21DD","\\leadsto"),ie(X,Z,Ut,"\u21DB","\\Rrightarrow",!0),ie(X,Z,Ut,"\u21BE","\\restriction"),ie(X,Ce,st,"\u2018","`"),ie(X,Ce,st,"$","\\$"),ie(Be,Ce,st,"$","\\$"),ie(Be,Ce,st,"$","\\textdollar"),ie(X,Ce,st,"%","\\%"),ie(Be,Ce,st,"%","\\%"),ie(X,Ce,st,"_","\\_"),ie(Be,Ce,st,"_","\\_"),ie(Be,Ce,st,"_","\\textunderscore"),ie(X,Ce,st,"\u2220","\\angle",!0),ie(X,Ce,st,"\u221E","\\infty",!0),ie(X,Ce,st,"\u2032","\\prime"),ie(X,Ce,st,"\u25B3","\\triangle"),ie(X,Ce,st,"\u0393","\\Gamma",!0),ie(X,Ce,st,"\u0394","\\Delta",!0),ie(X,Ce,st,"\u0398","\\Theta",!0),ie(X,Ce,st,"\u039B","\\Lambda",!0),ie(X,Ce,st,"\u039E","\\Xi",!0),ie(X,Ce,st,"\u03A0","\\Pi",!0),ie(X,Ce,st,"\u03A3","\\Sigma",!0),ie(X,Ce,st,"\u03A5","\\Upsilon",!0),ie(X,Ce,st,"\u03A6","\\Phi",!0),ie(X,Ce,st,"\u03A8","\\Psi",!0),ie(X,Ce,st,"\u03A9","\\Omega",!0),ie(X,Ce,st,"A","\u0391"),ie(X,Ce,st,"B","\u0392"),ie(X,Ce,st,"E","\u0395"),ie(X,Ce,st,"Z","\u0396"),ie(X,Ce,st,"H","\u0397"),ie(X,Ce,st,"I","\u0399"),ie(X,Ce,st,"K","\u039A"),ie(X,Ce,st,"M","\u039C"),ie(X,Ce,st,"N","\u039D"),ie(X,Ce,st,"O","\u039F"),ie(X,Ce,st,"P","\u03A1"),ie(X,Ce,st,"T","\u03A4"),ie(X,Ce,st,"X","\u03A7"),ie(X,Ce,st,"\xAC","\\neg",!0),ie(X,Ce,st,"\xAC","\\lnot"),ie(X,Ce,st,"\u22A4","\\top"),ie(X,Ce,st,"\u22A5","\\bot"),ie(X,Ce,st,"\u2205","\\emptyset"),ie(X,Z,st,"\u2205","\\varnothing"),ie(X,Ce,Ft,"\u03B1","\\alpha",!0),ie(X,Ce,Ft,"\u03B2","\\beta",!0),ie(X,Ce,Ft,"\u03B3","\\gamma",!0),ie(X,Ce,Ft,"\u03B4","\\delta",!0),ie(X,Ce,Ft,"\u03F5","\\epsilon",!0),ie(X,Ce,Ft,"\u03B6","\\zeta",!0),ie(X,Ce,Ft,"\u03B7","\\eta",!0),ie(X,Ce,Ft,"\u03B8","\\theta",!0),ie(X,Ce,Ft,"\u03B9","\\iota",!0),ie(X,Ce,Ft,"\u03BA","\\kappa",!0),ie(X,Ce,Ft,"\u03BB","\\lambda",!0),ie(X,Ce,Ft,"\u03BC","\\mu",!0),ie(X,Ce,Ft,"\u03BD","\\nu",!0),ie(X,Ce,Ft,"\u03BE","\\xi",!0),ie(X,Ce,Ft,"\u03BF","\\omicron",!0),ie(X,Ce,Ft,"\u03C0","\\pi",!0),ie(X,Ce,Ft,"\u03C1","\\rho",!0),ie(X,Ce,Ft,"\u03C3","\\sigma",!0),ie(X,Ce,Ft,"\u03C4","\\tau",!0),ie(X,Ce,Ft,"\u03C5","\\upsilon",!0),ie(X,Ce,Ft,"\u03D5","\\phi",!0),ie(X,Ce,Ft,"\u03C7","\\chi",!0),ie(X,Ce,Ft,"\u03C8","\\psi",!0),ie(X,Ce,Ft,"\u03C9","\\omega",!0),ie(X,Ce,Ft,"\u03B5","\\varepsilon",!0),ie(X,Ce,Ft,"\u03D1","\\vartheta",!0),ie(X,Ce,Ft,"\u03D6","\\varpi",!0),ie(X,Ce,Ft,"\u03F1","\\varrho",!0),ie(X,Ce,Ft,"\u03C2","\\varsigma",!0),ie(X,Ce,Ft,"\u03C6","\\varphi",!0),ie(X,Ce,ct,"\u2217","*"),ie(X,Ce,ct,"+","+"),ie(X,Ce,ct,"\u2212","-"),ie(X,Ce,ct,"\u22C5","\\cdot",!0),ie(X,Ce,ct,"\u2218","\\circ"),ie(X,Ce,ct,"\xF7","\\div",!0),ie(X,Ce,ct,"\xB1","\\pm",!0),ie(X,Ce,ct,"\xD7","\\times",!0),ie(X,Ce,ct,"\u2229","\\cap",!0),ie(X,Ce,ct,"\u222A","\\cup",!0),ie(X,Ce,ct,"\u2216","\\setminus"),ie(X,Ce,ct,"\u2227","\\land"),ie(X,Ce,ct,"\u2228","\\lor"),ie(X,Ce,ct,"\u2227","\\wedge",!0),ie(X,Ce,ct,"\u2228","\\vee",!0),ie(X,Ce,st,"\u221A","\\surd"),ie(X,Ce,Wt,"(","("),ie(X,Ce,Wt,"[","["),ie(X,Ce,Wt,"\u27E8","\\langle",!0),ie(X,Ce,Wt,"\u2223","\\lvert"),ie(X,Ce,Wt,"\u2225","\\lVert"),ie(X,Ce,Qe,")",")"),ie(X,Ce,Qe,"]","]"),ie(X,Ce,Qe,"?","?"),ie(X,Ce,Qe,"!","!"),ie(X,Ce,Qe,"\u27E9","\\rangle",!0),ie(X,Ce,Qe,"\u2223","\\rvert"),ie(X,Ce,Qe,"\u2225","\\rVert"),ie(X,Ce,Ut,"=","="),ie(X,Ce,Ut,"<","<"),ie(X,Ce,Ut,">",">"),ie(X,Ce,Ut,":",":"),ie(X,Ce,Ut,"\u2248","\\approx",!0),ie(X,Ce,Ut,"\u2245","\\cong",!0),ie(X,Ce,Ut,"\u2265","\\ge"),ie(X,Ce,Ut,"\u2265","\\geq",!0),ie(X,Ce,Ut,"\u2190","\\gets"),ie(X,Ce,Ut,">","\\gt"),ie(X,Ce,Ut,"\u2208","\\in",!0),ie(X,Ce,Ut,"\uE020","\\@not"),ie(X,Ce,Ut,"\u2282","\\subset",!0),ie(X,Ce,Ut,"\u2283","\\supset",!0),ie(X,Ce,Ut,"\u2286","\\subseteq",!0),ie(X,Ce,Ut,"\u2287","\\supseteq",!0),ie(X,Z,Ut,"\u2288","\\nsubseteq",!0),ie(X,Z,Ut,"\u2289","\\nsupseteq",!0),ie(X,Ce,Ut,"\u22A8","\\models"),ie(X,Ce,Ut,"\u2190","\\leftarrow",!0),ie(X,Ce,Ut,"\u2264","\\le"),ie(X,Ce,Ut,"\u2264","\\leq",!0),ie(X,Ce,Ut,"<","\\lt"),ie(X,Ce,Ut,"\u2192","\\rightarrow",!0),ie(X,Ce,Ut,"\u2192","\\to"),ie(X,Z,Ut,"\u2271","\\ngeq",!0),ie(X,Z,Ut,"\u2270","\\nleq",!0),ie(X,Ce,kt,"\xA0","\\ "),ie(X,Ce,kt,"\xA0","~"),ie(X,Ce,kt,"\xA0","\\space"),ie(X,Ce,kt,"\xA0","\\nobreakspace"),ie(Be,Ce,kt,"\xA0","\\ "),ie(Be,Ce,kt,"\xA0","~"),ie(Be,Ce,kt,"\xA0","\\space"),ie(Be,Ce,kt,"\xA0","\\nobreakspace"),ie(X,Ce,kt,null,"\\nobreak"),ie(X,Ce,kt,null,"\\allowbreak"),ie(X,Ce,ar,",",","),ie(X,Ce,ar,";",";"),ie(X,Z,ct,"\u22BC","\\barwedge",!0),ie(X,Z,ct,"\u22BB","\\veebar",!0),ie(X,Ce,ct,"\u2299","\\odot",!0),ie(X,Ce,ct,"\u2295","\\oplus",!0),ie(X,Ce,ct,"\u2297","\\otimes",!0),ie(X,Ce,st,"\u2202","\\partial",!0),ie(X,Ce,ct,"\u2298","\\oslash",!0),ie(X,Z,ct,"\u229A","\\circledcirc",!0),ie(X,Z,ct,"\u22A1","\\boxdot",!0),ie(X,Ce,ct,"\u25B3","\\bigtriangleup"),ie(X,Ce,ct,"\u25BD","\\bigtriangledown"),ie(X,Ce,ct,"\u2020","\\dagger"),ie(X,Ce,ct,"\u22C4","\\diamond"),ie(X,Ce,ct,"\u22C6","\\star"),ie(X,Ce,ct,"\u25C3","\\triangleleft"),ie(X,Ce,ct,"\u25B9","\\triangleright"),ie(X,Ce,Wt,"{","\\{"),ie(Be,Ce,st,"{","\\{"),ie(Be,Ce,st,"{","\\textbraceleft"),ie(X,Ce,Qe,"}","\\}"),ie(Be,Ce,st,"}","\\}"),ie(Be,Ce,st,"}","\\textbraceright"),ie(X,Ce,Wt,"{","\\lbrace"),ie(X,Ce,Qe,"}","\\rbrace"),ie(X,Ce,Wt,"[","\\lbrack"),ie(Be,Ce,st,"[","\\lbrack"),ie(X,Ce,Qe,"]","\\rbrack"),ie(Be,Ce,st,"]","\\rbrack"),ie(X,Ce,Wt,"(","\\lparen"),ie(X,Ce,Qe,")","\\rparen"),ie(Be,Ce,st,"<","\\textless"),ie(Be,Ce,st,">","\\textgreater"),ie(X,Ce,Wt,"\u230A","\\lfloor",!0),ie(X,Ce,Qe,"\u230B","\\rfloor",!0),ie(X,Ce,Wt,"\u2308","\\lceil",!0),ie(X,Ce,Qe,"\u2309","\\rceil",!0),ie(X,Ce,st,"\\","\\backslash"),ie(X,Ce,st,"\u2223","|"),ie(X,Ce,st,"\u2223","\\vert"),ie(Be,Ce,st,"|","\\textbar"),ie(X,Ce,st,"\u2225","\\|"),ie(X,Ce,st,"\u2225","\\Vert"),ie(Be,Ce,st,"\u2225","\\textbardbl"),ie(Be,Ce,st,"~","\\textasciitilde"),ie(Be,Ce,st,"\\","\\textbackslash"),ie(Be,Ce,st,"^","\\textasciicircum"),ie(X,Ce,Ut,"\u2191","\\uparrow",!0),ie(X,Ce,Ut,"\u21D1","\\Uparrow",!0),ie(X,Ce,Ut,"\u2193","\\downarrow",!0),ie(X,Ce,Ut,"\u21D3","\\Downarrow",!0),ie(X,Ce,Ut,"\u2195","\\updownarrow",!0),ie(X,Ce,Ut,"\u21D5","\\Updownarrow",!0),ie(X,Ce,Lr,"\u2210","\\coprod"),ie(X,Ce,Lr,"\u22C1","\\bigvee"),ie(X,Ce,Lr,"\u22C0","\\bigwedge"),ie(X,Ce,Lr,"\u2A04","\\biguplus"),ie(X,Ce,Lr,"\u22C2","\\bigcap"),ie(X,Ce,Lr,"\u22C3","\\bigcup"),ie(X,Ce,Lr,"\u222B","\\int"),ie(X,Ce,Lr,"\u222B","\\intop"),ie(X,Ce,Lr,"\u222C","\\iint"),ie(X,Ce,Lr,"\u222D","\\iiint"),ie(X,Ce,Lr,"\u220F","\\prod"),ie(X,Ce,Lr,"\u2211","\\sum"),ie(X,Ce,Lr,"\u2A02","\\bigotimes"),ie(X,Ce,Lr,"\u2A01","\\bigoplus"),ie(X,Ce,Lr,"\u2A00","\\bigodot"),ie(X,Ce,Lr,"\u222E","\\oint"),ie(X,Ce,Lr,"\u222F","\\oiint"),ie(X,Ce,Lr,"\u2230","\\oiiint"),ie(X,Ce,Lr,"\u2A06","\\bigsqcup"),ie(X,Ce,Lr,"\u222B","\\smallint"),ie(Be,Ce,dt,"\u2026","\\textellipsis"),ie(X,Ce,dt,"\u2026","\\mathellipsis"),ie(Be,Ce,dt,"\u2026","\\ldots",!0),ie(X,Ce,dt,"\u2026","\\ldots",!0),ie(X,Ce,dt,"\u22EF","\\@cdots",!0),ie(X,Ce,dt,"\u22F1","\\ddots",!0),ie(X,Ce,st,"\u22EE","\\varvdots"),ie(X,Ce,nt,"\u02CA","\\acute"),ie(X,Ce,nt,"\u02CB","\\grave"),ie(X,Ce,nt,"\xA8","\\ddot"),ie(X,Ce,nt,"~","\\tilde"),ie(X,Ce,nt,"\u02C9","\\bar"),ie(X,Ce,nt,"\u02D8","\\breve"),ie(X,Ce,nt,"\u02C7","\\check"),ie(X,Ce,nt,"^","\\hat"),ie(X,Ce,nt,"\u20D7","\\vec"),ie(X,Ce,nt,"\u02D9","\\dot"),ie(X,Ce,nt,"\u02DA","\\mathring"),ie(X,Ce,Ft,"\u0131","\\imath",!0),ie(X,Ce,Ft,"\u0237","\\jmath",!0),ie(Be,Ce,st,"\u0131","\\i",!0),ie(Be,Ce,st,"\u0237","\\j",!0),ie(Be,Ce,st,"\xDF","\\ss",!0),ie(Be,Ce,st,"\xE6","\\ae",!0),ie(Be,Ce,st,"\xE6","\\ae",!0),ie(Be,Ce,st,"\u0153","\\oe",!0),ie(Be,Ce,st,"\xF8","\\o",!0),ie(Be,Ce,st,"\xC6","\\AE",!0),ie(Be,Ce,st,"\u0152","\\OE",!0),ie(Be,Ce,st,"\xD8","\\O",!0),ie(Be,Ce,nt,"\u02CA","\\'"),ie(Be,Ce,nt,"\u02CB","\\`"),ie(Be,Ce,nt,"\u02C6","\\^"),ie(Be,Ce,nt,"\u02DC","\\~"),ie(Be,Ce,nt,"\u02C9","\\="),ie(Be,Ce,nt,"\u02D8","\\u"),ie(Be,Ce,nt,"\u02D9","\\."),ie(Be,Ce,nt,"\u02DA","\\r"),ie(Be,Ce,nt,"\u02C7","\\v"),ie(Be,Ce,nt,"\xA8",'\\"'),ie(Be,Ce,nt,"\u02DD","\\H"),ie(Be,Ce,nt,"\u25EF","\\textcircled");var Rr={"--":!0,"---":!0,"``":!0,"''":!0};ie(Be,Ce,st,"\u2013","--"),ie(Be,Ce,st,"\u2013","\\textendash"),ie(Be,Ce,st,"\u2014","---"),ie(Be,Ce,st,"\u2014","\\textemdash"),ie(Be,Ce,st,"\u2018","`"),ie(Be,Ce,st,"\u2018","\\textquoteleft"),ie(Be,Ce,st,"\u2019","'"),ie(Be,Ce,st,"\u2019","\\textquoteright"),ie(Be,Ce,st,"\u201C","``"),ie(Be,Ce,st,"\u201C","\\textquotedblleft"),ie(Be,Ce,st,"\u201D","''"),ie(Be,Ce,st,"\u201D","\\textquotedblright"),ie(X,Ce,st,"\xB0","\\degree",!0),ie(Be,Ce,st,"\xB0","\\degree"),ie(Be,Ce,st,"\xB0","\\textdegree",!0),ie(X,Ce,Ft,"\xA3","\\pounds"),ie(X,Ce,Ft,"\xA3","\\mathsterling",!0),ie(Be,Ce,Ft,"\xA3","\\pounds"),ie(Be,Ce,Ft,"\xA3","\\textsterling",!0),ie(X,Z,st,"\u2720","\\maltese"),ie(Be,Z,st,"\u2720","\\maltese"),ie(Be,Ce,kt,"\xA0","\\ "),ie(Be,Ce,kt,"\xA0"," "),ie(Be,Ce,kt,"\xA0","~");for(var on='0123456789/@."',Sn=0;Sn<on.length;Sn++){var zn=on.charAt(Sn);ie(X,Ce,st,zn,zn)}for(var Ii='0123456789!@*()-=+[]<>|";:?/.,',yn=0;yn<Ii.length;yn++){var Nn=Ii.charAt(yn);ie(Be,Ce,st,Nn,Nn)}for(var jt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",At=0;At<jt.length;At++){var Re=jt.charAt(At);ie(X,Ce,Ft,Re,Re),ie(Be,Ce,st,Re,Re)}ie(X,Z,st,"C","\u2102"),ie(Be,Z,st,"C","\u2102"),ie(X,Z,st,"H","\u210D"),ie(Be,Z,st,"H","\u210D"),ie(X,Z,st,"N","\u2115"),ie(Be,Z,st,"N","\u2115"),ie(X,Z,st,"P","\u2119"),ie(Be,Z,st,"P","\u2119"),ie(X,Z,st,"Q","\u211A"),ie(Be,Z,st,"Q","\u211A"),ie(X,Z,st,"R","\u211D"),ie(Be,Z,st,"R","\u211D"),ie(X,Z,st,"Z","\u2124"),ie(Be,Z,st,"Z","\u2124"),ie(X,Ce,Ft,"h","\u210E"),ie(Be,Ce,Ft,"h","\u210E");for(var Ke="",Pe=0;Pe<jt.length;Pe++){var at=jt.charAt(Pe);Ke=String.fromCharCode(55349,56320+Pe),ie(X,Ce,Ft,at,Ke),ie(Be,Ce,st,at,Ke),Ke=String.fromCharCode(55349,56372+Pe),ie(X,Ce,Ft,at,Ke),ie(Be,Ce,st,at,Ke),Ke=String.fromCharCode(55349,56424+Pe),ie(X,Ce,Ft,at,Ke),ie(Be,Ce,st,at,Ke),Ke=String.fromCharCode(55349,56580+Pe),ie(X,Ce,Ft,at,Ke),ie(Be,Ce,st,at,Ke),Ke=String.fromCharCode(55349,56736+Pe),ie(X,Ce,Ft,at,Ke),ie(Be,Ce,st,at,Ke),Ke=String.fromCharCode(55349,56788+Pe),ie(X,Ce,Ft,at,Ke),ie(Be,Ce,st,at,Ke),Ke=String.fromCharCode(55349,56840+Pe),ie(X,Ce,Ft,at,Ke),ie(Be,Ce,st,at,Ke),Ke=String.fromCharCode(55349,56944+Pe),ie(X,Ce,Ft,at,Ke),ie(Be,Ce,st,at,Ke),Pe<26&&(Ke=String.fromCharCode(55349,56632+Pe),ie(X,Ce,Ft,at,Ke),ie(Be,Ce,st,at,Ke),Ke=String.fromCharCode(55349,56476+Pe),ie(X,Ce,Ft,at,Ke),ie(Be,Ce,st,at,Ke))}Ke=String.fromCharCode(55349,56668),ie(X,Ce,Ft,"k",Ke),ie(Be,Ce,st,"k",Ke);for(var wt=0;wt<10;wt++){var Rt=wt.toString();Ke=String.fromCharCode(55349,57294+wt),ie(X,Ce,Ft,Rt,Ke),ie(Be,Ce,st,Rt,Ke),Ke=String.fromCharCode(55349,57314+wt),ie(X,Ce,Ft,Rt,Ke),ie(Be,Ce,st,Rt,Ke),Ke=String.fromCharCode(55349,57324+wt),ie(X,Ce,Ft,Rt,Ke),ie(Be,Ce,st,Rt,Ke),Ke=String.fromCharCode(55349,57334+wt),ie(X,Ce,Ft,Rt,Ke),ie(Be,Ce,st,Rt,Ke)}for(var xt="\xC7\xD0\xDE\xE7\xFE",Lt=0;Lt<xt.length;Lt++){var gr=xt.charAt(Lt);ie(X,Ce,Ft,gr,gr),ie(Be,Ce,st,gr,gr)}ie(Be,Ce,st,"\xF0","\xF0"),ie(Be,Ce,st,"\u2013","\u2013"),ie(Be,Ce,st,"\u2014","\u2014"),ie(Be,Ce,st,"\u2018","\u2018"),ie(Be,Ce,st,"\u2019","\u2019"),ie(Be,Ce,st,"\u201C","\u201C"),ie(Be,Ce,st,"\u201D","\u201D");var Br=[["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"]],Et=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],it=function(ne,pe){var be=ne.charCodeAt(0),Ue=ne.charCodeAt(1),pt=(be-55296)*1024+(Ue-56320)+65536,Xt=pe==="math"?0:1;if(119808<=pt&&pt<120484){var Or=Math.floor((pt-119808)/26);return[Br[Or][2],Br[Or][Xt]]}else if(120782<=pt&&pt<=120831){var Qr=Math.floor((pt-120782)/10);return[Et[Qr][2],Et[Qr][Xt]]}else{if(pt===120485||pt===120486)return[Br[0][2],Br[0][Xt]];if(120486<pt&&pt<120782)return["",""];throw new c("Unsupported character: "+ne)}},rt=[[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]],Pt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Ht=function(ne,pe){return pe.size<2?ne:rt[ne-1][pe.size-1]},bt=function(){function ht(pe){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=pe.style,this.color=pe.color,this.size=pe.size||ht.BASESIZE,this.textSize=pe.textSize||this.size,this.phantom=!!pe.phantom,this.font=pe.font||"",this.fontFamily=pe.fontFamily||"",this.fontWeight=pe.fontWeight||"",this.fontShape=pe.fontShape||"",this.sizeMultiplier=Pt[this.size-1],this.maxSize=pe.maxSize,this.minRuleThickness=pe.minRuleThickness,this._fontMetrics=void 0}var ne=ht.prototype;return ne.extend=function(be){var Ue={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 pt in be)be.hasOwnProperty(pt)&&(Ue[pt]=be[pt]);return new ht(Ue)},ne.havingStyle=function(be){return this.style===be?this:this.extend({style:be,size:Ht(this.textSize,be)})},ne.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},ne.havingSize=function(be){return this.size===be&&this.textSize===be?this:this.extend({style:this.style.text(),size:be,textSize:be,sizeMultiplier:Pt[be-1]})},ne.havingBaseStyle=function(be){be=be||this.style.text();var Ue=Ht(ht.BASESIZE,be);return this.size===Ue&&this.textSize===ht.BASESIZE&&this.style===be?this:this.extend({style:be,size:Ue})},ne.havingBaseSizing=function(){var be;switch(this.style.id){case 4:case 5:be=3;break;case 6:case 7:be=1;break;default:be=6}return this.extend({style:this.style.text(),size:be})},ne.withColor=function(be){return this.extend({color:be})},ne.withPhantom=function(){return this.extend({phantom:!0})},ne.withFont=function(be){return this.extend({font:be})},ne.withTextFontFamily=function(be){return this.extend({fontFamily:be,font:""})},ne.withTextFontWeight=function(be){return this.extend({fontWeight:be,font:""})},ne.withTextFontShape=function(be){return this.extend({fontShape:be,font:""})},ne.sizingClasses=function(be){return be.size!==this.size?["sizing","reset-size"+be.size,"size"+this.size]:[]},ne.baseSizingClasses=function(){return this.size!==ht.BASESIZE?["sizing","reset-size"+this.size,"size"+ht.BASESIZE]:[]},ne.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Mt(this.size)),this._fontMetrics},ne.getColor=function(){return this.phantom?"transparent":this.color},ht}();bt.BASESIZE=6;var Gt=bt,ut={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},Kt={ex:!0,em:!0,mu:!0},Ar=function(ne){return typeof ne!="string"&&(ne=ne.unit),ne in ut||ne in Kt||ne==="ex"},ir=function(ne,pe){var be;if(ne.unit in ut)be=ut[ne.unit]/pe.fontMetrics().ptPerEm/pe.sizeMultiplier;else if(ne.unit==="mu")be=pe.fontMetrics().cssEmPerMu;else{var Ue;if(pe.style.isTight()?Ue=pe.havingStyle(pe.style.text()):Ue=pe,ne.unit==="ex")be=Ue.fontMetrics().xHeight;else if(ne.unit==="em")be=Ue.fontMetrics().quad;else throw new c("Invalid unit: '"+ne.unit+"'");Ue!==pe&&(be*=Ue.sizeMultiplier/pe.sizeMultiplier)}return Math.min(ne.number*be,pe.maxSize)},pr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],tn=function(ne,pe,be){return Xe[be][ne]&&Xe[be][ne].replace&&(ne=Xe[be][ne].replace),{value:ne,metrics:Je(ne,pe,be)}},fn=function(ne,pe,be,Ue,pt){var Xt=tn(ne,pe,be),Or=Xt.metrics;ne=Xt.value;var Qr;if(Or){var dn=Or.italic;(be==="text"||Ue&&Ue.font==="mathit")&&(dn=0),Qr=new Te(ne,Or.height,Or.depth,dn,Or.skew,Or.width,pt)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ne+"' in style '"+pe+"' and mode '"+be+"'")),Qr=new Te(ne,0,0,0,0,0,pt);if(Ue){Qr.maxFontSize=Ue.sizeMultiplier,Ue.style.isTight()&&Qr.classes.push("mtight");var jn=Ue.getColor();jn&&(Qr.style.color=jn)}return Qr},Mn=function(ne,pe,be,Ue){return Ue===void 0&&(Ue=[]),be.font==="boldsymbol"&&tn(ne,"Main-Bold",pe).metrics?fn(ne,"Main-Bold",pe,be,Ue.concat(["mathbf"])):ne==="\\"||Xe[pe][ne].font==="main"?fn(ne,"Main-Regular",pe,be,Ue):fn(ne,"AMS-Regular",pe,be,Ue.concat(["amsrm"]))},Yn=function(ne,pe,be,Ue){return/[0-9]/.test(ne.charAt(0))||p.contains(pr,ne)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},si=function(ne,pe,be,Ue){return p.contains(pr,ne)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(ne.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},vi=function(ne,pe,be,Ue){return tn(ne,"Math-BoldItalic",pe).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},xi=function(ne,pe,be){var Ue=ne.mode,pt=ne.text,Xt=["mord"],Or=Ue==="math"||Ue==="text"&&pe.font,Qr=Or?pe.font:pe.fontFamily;if(pt.charCodeAt(0)===55349){var dn=it(pt,Ue),jn=dn[0],ai=dn[1];return fn(pt,jn,Ue,pe,Xt.concat(ai))}else if(Qr){var Qn,Di;if(Qr==="boldsymbol"||Qr==="mathnormal"){var Vi=Qr==="boldsymbol"?vi(pt,Ue,pe,Xt):si(pt,Ue,pe,Xt);Qn=Vi.fontName,Di=[Vi.fontClass]}else p.contains(pr,pt)?(Qn="Main-Italic",Di=["mathit"]):Or?(Qn=jr[Qr].fontName,Di=[Qr]):(Qn=Sr(Qr,pe.fontWeight,pe.fontShape),Di=[Qr,pe.fontWeight,pe.fontShape]);if(tn(pt,Qn,Ue).metrics)return fn(pt,Qn,Ue,pe,Xt.concat(Di));if(Rr.hasOwnProperty(pt)&&Qn.substr(0,10)==="Typewriter"){for(var Ta=[],Ga=0;Ga<pt.length;Ga++)Ta.push(fn(pt[Ga],Qn,Ue,pe,Xt.concat(Di)));return qe(Ta)}}if(be==="mathord"){var ao=Yn(pt,Ue,pe,Xt);return fn(pt,ao.fontName,Ue,pe,Xt.concat([ao.fontClass]))}else if(be==="textord"){var Do=Xe[Ue][pt]&&Xe[Ue][pt].font;if(Do==="ams"){var fo=Sr("amsrm",pe.fontWeight,pe.fontShape);return fn(pt,fo,Ue,pe,Xt.concat("amsrm",pe.fontWeight,pe.fontShape))}else if(Do==="main"||!Do){var as=Sr("textrm",pe.fontWeight,pe.fontShape);return fn(pt,as,Ue,pe,Xt.concat(pe.fontWeight,pe.fontShape))}else{var io=Sr(Do,pe.fontWeight,pe.fontShape);return fn(pt,io,Ue,pe,Xt.concat(io,pe.fontWeight,pe.fontShape))}}else throw new Error("unexpected type: "+be+" in makeOrd")},_i=function(ne,pe){if(te(ne.classes)!==te(pe.classes)||ne.skew!==pe.skew||ne.maxFontSize!==pe.maxFontSize)return!1;for(var be in ne.style)if(ne.style.hasOwnProperty(be)&&ne.style[be]!==pe.style[be])return!1;for(var Ue in pe.style)if(pe.style.hasOwnProperty(Ue)&&ne.style[Ue]!==pe.style[Ue])return!1;return!0},Ze=function(ne){for(var pe=0;pe<ne.length-1;pe++){var be=ne[pe],Ue=ne[pe+1];be instanceof Te&&Ue instanceof Te&&_i(be,Ue)&&(be.text+=Ue.text,be.height=Math.max(be.height,Ue.height),be.depth=Math.max(be.depth,Ue.depth),be.italic=Ue.italic,ne.splice(pe+1,1),pe--)}return ne},we=function(ne){for(var pe=0,be=0,Ue=0,pt=0;pt<ne.children.length;pt++){var Xt=ne.children[pt];Xt.height>pe&&(pe=Xt.height),Xt.depth>be&&(be=Xt.depth),Xt.maxFontSize>Ue&&(Ue=Xt.maxFontSize)}ne.height=pe,ne.depth=be,ne.maxFontSize=Ue},Ne=function(ne,pe,be,Ue){var pt=new G(ne,pe,be,Ue);return we(pt),pt},Fe=function(ne,pe,be,Ue){return new G(ne,pe,be,Ue)},Ye=function(ne,pe,be){var Ue=Ne([ne],[],pe);return Ue.height=Math.max(be||pe.fontMetrics().defaultRuleThickness,pe.minRuleThickness),Ue.style.borderBottomWidth=Ue.height+"em",Ue.maxFontSize=1,Ue},We=function(ne,pe,be,Ue){var pt=new Q(ne,pe,be,Ue);return we(pt),pt},qe=function(ne){var pe=new se(ne);return we(pe),pe},yt=function(ne,pe){return ne instanceof se?Ne([],[ne],pe):ne},ot=function(ne){if(ne.positionType==="individualShift"){for(var pe=ne.children,be=[pe[0]],Ue=-pe[0].shift-pe[0].elem.depth,pt=Ue,Xt=1;Xt<pe.length;Xt++){var Or=-pe[Xt].shift-pt-pe[Xt].elem.depth,Qr=Or-(pe[Xt-1].elem.height+pe[Xt-1].elem.depth);pt=pt+Or,be.push({type:"kern",size:Qr}),be.push(pe[Xt])}return{children:be,depth:Ue}}var dn;if(ne.positionType==="top"){for(var jn=ne.positionData,ai=0;ai<ne.children.length;ai++){var Qn=ne.children[ai];jn-=Qn.type==="kern"?Qn.size:Qn.elem.height+Qn.elem.depth}dn=jn}else if(ne.positionType==="bottom")dn=-ne.positionData;else{var Di=ne.children[0];if(Di.type!=="elem")throw new Error('First child must have type "elem".');if(ne.positionType==="shift")dn=-Di.elem.depth-ne.positionData;else if(ne.positionType==="firstBaseline")dn=-Di.elem.depth;else throw new Error("Invalid positionType "+ne.positionType+".")}return{children:ne.children,depth:dn}},$t=function(ne,pe){for(var be=ot(ne),Ue=be.children,pt=be.depth,Xt=0,Or=0;Or<Ue.length;Or++){var Qr=Ue[Or];if(Qr.type==="elem"){var dn=Qr.elem;Xt=Math.max(Xt,dn.maxFontSize,dn.height)}}Xt+=2;var jn=Ne(["pstrut"],[]);jn.style.height=Xt+"em";for(var ai=[],Qn=pt,Di=pt,Vi=pt,Ta=0;Ta<Ue.length;Ta++){var Ga=Ue[Ta];if(Ga.type==="kern")Vi+=Ga.size;else{var ao=Ga.elem,Do=Ga.wrapperClasses||[],fo=Ga.wrapperStyle||{},as=Ne(Do,[jn,ao],void 0,fo);as.style.top=-Xt-Vi-ao.depth+"em",Ga.marginLeft&&(as.style.marginLeft=Ga.marginLeft),Ga.marginRight&&(as.style.marginRight=Ga.marginRight),ai.push(as),Vi+=ao.height+ao.depth}Qn=Math.min(Qn,Vi),Di=Math.max(Di,Vi)}var io=Ne(["vlist"],ai);io.style.height=Di+"em";var Xa;if(Qn<0){var Ya=Ne([],[]),ka=Ne(["vlist"],[Ya]);ka.style.height=-Qn+"em";var os=Ne(["vlist-s"],[new Te("\u200B")]);Xa=[Ne(["vlist-r"],[io,os]),Ne(["vlist-r"],[ka])]}else Xa=[Ne(["vlist-r"],[io])];var Es=Ne(["vlist-t"],Xa);return Xa.length===2&&Es.classes.push("vlist-t2"),Es.height=Di,Es.depth=-Qn,Es},Mr=function(ne,pe){var be=Ne(["mspace"],[],pe),Ue=ir(ne,pe);return be.style.marginRight=Ue+"em",be},Sr=function(ne,pe,be){var Ue="";switch(ne){case"amsrm":Ue="AMS";break;case"textrm":Ue="Main";break;case"textsf":Ue="SansSerif";break;case"texttt":Ue="Typewriter";break;default:Ue=ne}var pt;return pe==="textbf"&&be==="textit"?pt="BoldItalic":pe==="textbf"?pt="Bold":pe==="textit"?pt="Italic":pt="Regular",Ue+"-"+pt},jr={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"}},tr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},gn=function(ne,pe){var be=tr[ne],Ue=be[0],pt=be[1],Xt=be[2],Or=new le(Ue),Qr=new Se([Or],{width:pt+"em",height:Xt+"em",style:"width:"+pt+"em",viewBox:"0 0 "+1e3*pt+" "+1e3*Xt,preserveAspectRatio:"xMinYMin"}),dn=Fe(["overlay"],[Qr],pe);return dn.height=Xt,dn.style.height=Xt+"em",dn.style.width=pt+"em",dn},sr={fontMap:jr,makeSymbol:fn,mathsym:Mn,makeSpan:Ne,makeSvgSpan:Fe,makeLineSpan:Ye,makeAnchor:We,makeFragment:qe,wrapFragment:yt,makeVList:$t,makeOrd:xi,makeGlue:Mr,staticSvg:gn,svgData:tr,tryCombineChars:Ze};function un(ht,ne){var pe=an(ht,ne);if(!pe)throw new Error("Expected node of type "+ne+", but got "+(ht?"node of type "+ht.type:String(ht)));return pe}function an(ht,ne){return ht&&ht.type===ne?ht:null}function Pr(ht,ne){var pe=In(ht,ne);if(!pe)throw new Error('Expected node of type "atom" and family "'+ne+'", but got '+(ht?ht.type==="atom"?"atom of family "+ht.family:"node of type "+ht.type:String(ht)));return pe}function In(ht,ne){return ht&&ht.type==="atom"&&ht.family===ne?ht:null}function ci(ht){var ne=Ui(ht);if(!ne)throw new Error("Expected node of symbol group type, but got "+(ht?"node of type "+ht.type:String(ht)));return ne}function Ui(ht){return ht&&(ht.type==="atom"||It.hasOwnProperty(ht.type))?ht:null}var ki={number:3,unit:"mu"},Ri={number:4,unit:"mu"},Ki={number:5,unit:"mu"},Hr={mord:{mop:ki,mbin:Ri,mrel:Ki,minner:ki},mop:{mord:ki,mop:ki,mrel:Ki,minner:ki},mbin:{mord:Ri,mop:Ri,mopen:Ri,minner:Ri},mrel:{mord:Ki,mop:Ki,mopen:Ki,minner:Ki},mopen:{},mclose:{mop:ki,mbin:Ri,mrel:Ki,minner:ki},mpunct:{mord:ki,mop:ki,mrel:Ki,mopen:ki,mclose:ki,mpunct:ki,minner:ki},minner:{mord:ki,mop:ki,mbin:Ri,mrel:Ki,mopen:ki,mpunct:ki,minner:ki}},Cn={mord:{mop:ki},mop:{mord:ki,mop:ki},mbin:{},mrel:{},mopen:{},mclose:{mop:ki},mpunct:{},minner:{mop:ki}},kr={},mr={},Cr={};function Nt(ht){for(var ne=ht.type,pe=ht.names,be=ht.props,Ue=ht.handler,pt=ht.htmlBuilder,Xt=ht.mathmlBuilder,Or={type:ne,numArgs:be.numArgs,argTypes:be.argTypes,greediness:be.greediness===void 0?1:be.greediness,allowedInText:!!be.allowedInText,allowedInMath:be.allowedInMath===void 0?!0:be.allowedInMath,numOptionalArgs:be.numOptionalArgs||0,infix:!!be.infix,handler:Ue},Qr=0;Qr<pe.length;++Qr)kr[pe[Qr]]=Or;ne&&(pt&&(mr[ne]=pt),Xt&&(Cr[ne]=Xt))}function wr(ht){var ne=ht.type,pe=ht.htmlBuilder,be=ht.mathmlBuilder;Nt({type:ne,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:pe,mathmlBuilder:be})}var Gr=function(ne){var pe=an(ne,"ordgroup");return pe?pe.body:[ne]},Kr=sr.makeSpan,qr=["leftmost","mbin","mopen","mrel","mop","mpunct"],oi=["rightmost","mrel","mclose","mpunct"],Gn={display:j.DISPLAY,text:j.TEXT,script:j.SCRIPT,scriptscript:j.SCRIPTSCRIPT},Ti={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},hn=function(ne,pe,be,Ue){Ue===void 0&&(Ue=[null,null]);for(var pt=[],Xt=0;Xt<ne.length;Xt++){var Or=Oi(ne[Xt],pe);if(Or instanceof se){var Qr=Or.children;pt.push.apply(pt,Qr)}else pt.push(Or)}if(!be)return pt;var dn=pe;if(ne.length===1){var jn=an(ne[0],"sizing")||an(ne[0],"styling");jn&&(jn.type==="sizing"?dn=pe.havingSize(jn.size):jn.type==="styling"&&(dn=pe.havingStyle(Gn[jn.style])))}var ai=Kr([Ue[0]||"leftmost"],[],pe),Qn=Kr([Ue[1]||"rightmost"],[],pe);return _r(pt,function(Di,Vi){var Ta=Vi.classes[0],Ga=Di.classes[0];Ta==="mbin"&&p.contains(oi,Ga)?Vi.classes[0]="mord":Ga==="mbin"&&p.contains(qr,Ta)&&(Di.classes[0]="mord")},{node:ai},Qn),_r(pt,function(Di,Vi){var Ta=Vn(Vi),Ga=Vn(Di),ao=Ta&&Ga?Di.hasClass("mtight")?Cn[Ta][Ga]:Hr[Ta][Ga]:null;if(ao)return sr.makeGlue(ao,dn)},{node:ai},Qn),pt},_r=function ht(ne,pe,be,Ue){Ue&&ne.push(Ue);for(var pt=0;pt<ne.length;pt++){var Xt=ne[pt],Or=En(Xt);if(Or){ht(Or.children,pe,be);continue}if(Xt.classes[0]==="mspace")continue;var Qr=pe(Xt,be.node);Qr&&(be.insertAfter?be.insertAfter(Qr):(ne.unshift(Qr),pt++)),be.node=Xt,be.insertAfter=function(dn){return function(jn){ne.splice(dn+1,0,jn),pt++}}(pt)}Ue&&ne.pop()},En=function(ne){return ne instanceof se||ne instanceof Q?ne:null},Fn=function ht(ne,pe){var be=En(ne);if(be){var Ue=be.children;if(Ue.length){if(pe==="right")return ht(Ue[Ue.length-1],"right");if(pe==="left")return ht(Ue[0],"left")}}return ne},Vn=function(ne,pe){return ne?(pe&&(ne=Fn(ne,pe)),Ti[ne.classes[0]]||null):null},qn=function(ne,pe){var be=["nulldelimiter"].concat(ne.baseSizingClasses());return Kr(pe.concat(be))},Oi=function(ne,pe,be){if(!ne)return Kr();if(mr[ne.type]){var Ue=mr[ne.type](ne,pe);if(be&&pe.size!==be.size){Ue=Kr(pe.sizingClasses(be),[Ue],pe);var pt=pe.sizeMultiplier/be.sizeMultiplier;Ue.height*=pt,Ue.depth*=pt}return Ue}else throw new c("Got group of unknown type: '"+ne.type+"'")};function Ni(ht,ne){var pe=Kr(["base"],ht,ne),be=Kr(["strut"]);return be.style.height=pe.height+pe.depth+"em",be.style.verticalAlign=-pe.depth+"em",pe.children.unshift(be),pe}function Mi(ht,ne){var pe=null;ht.length===1&&ht[0].type==="tag"&&(pe=ht[0].tag,ht=ht[0].body);for(var be=hn(ht,ne,!0),Ue=[],pt=[],Xt=0;Xt<be.length;Xt++)if(pt.push(be[Xt]),be[Xt].hasClass("mbin")||be[Xt].hasClass("mrel")||be[Xt].hasClass("allowbreak")){for(var Or=!1;Xt<be.length-1&&be[Xt+1].hasClass("mspace")&&!be[Xt+1].hasClass("newline");)Xt++,pt.push(be[Xt]),be[Xt].hasClass("nobreak")&&(Or=!0);Or||(Ue.push(Ni(pt,ne)),pt=[])}else be[Xt].hasClass("newline")&&(pt.pop(),pt.length>0&&(Ue.push(Ni(pt,ne)),pt=[]),Ue.push(be[Xt]));pt.length>0&&Ue.push(Ni(pt,ne));var Qr;pe&&(Qr=Ni(hn(pe,ne,!0)),Qr.classes=["tag"],Ue.push(Qr));var dn=Kr(["katex-html"],Ue);if(dn.setAttribute("aria-hidden","true"),Qr){var jn=Qr.children[0];jn.style.height=dn.height+dn.depth+"em",jn.style.verticalAlign=-dn.depth+"em"}return dn}function Ji(ht){return new se(ht)}var ma=function(){function ht(pe,be){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=pe,this.attributes={},this.children=be||[]}var ne=ht.prototype;return ne.setAttribute=function(be,Ue){this.attributes[be]=Ue},ne.getAttribute=function(be){return this.attributes[be]},ne.toNode=function(){var be=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var Ue in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ue)&&be.setAttribute(Ue,this.attributes[Ue]);for(var pt=0;pt<this.children.length;pt++)be.appendChild(this.children[pt].toNode());return be},ne.toMarkup=function(){var be="<"+this.type;for(var Ue in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Ue)&&(be+=" "+Ue+'="',be+=p.escape(this.attributes[Ue]),be+='"');be+=">";for(var pt=0;pt<this.children.length;pt++)be+=this.children[pt].toMarkup();return be+="</"+this.type+">",be},ne.toText=function(){return this.children.map(function(be){return be.toText()}).join("")},ht}(),la=function(){function ht(pe){this.text=void 0,this.text=pe}var ne=ht.prototype;return ne.toNode=function(){return document.createTextNode(this.text)},ne.toMarkup=function(){return p.escape(this.toText())},ne.toText=function(){return this.text},ht}(),qa=function(){function ht(pe){this.width=void 0,this.character=void 0,this.width=pe,pe>=.05555&&pe<=.05556?this.character="\u200A":pe>=.1666&&pe<=.1667?this.character="\u2009":pe>=.2222&&pe<=.2223?this.character="\u2005":pe>=.2777&&pe<=.2778?this.character="\u2005\u200A":pe>=-.05556&&pe<=-.05555?this.character="\u200A\u2063":pe>=-.1667&&pe<=-.1666?this.character="\u2009\u2063":pe>=-.2223&&pe<=-.2222?this.character="\u205F\u2063":pe>=-.2778&&pe<=-.2777?this.character="\u2005\u2063":this.character=null}var ne=ht.prototype;return ne.toNode=function(){if(this.character)return document.createTextNode(this.character);var be=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return be.setAttribute("width",this.width+"em"),be},ne.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},ne.toText=function(){return this.character?this.character:" "},ht}(),bi={MathNode:ma,TextNode:la,SpaceNode:qa,newDocumentFragment:Ji},xn=function(ne,pe,be){return Xe[pe][ne]&&Xe[pe][ne].replace&&ne.charCodeAt(0)!==55349&&!(Rr.hasOwnProperty(ne)&&be&&(be.fontFamily&&be.fontFamily.substr(4,2)==="tt"||be.font&&be.font.substr(4,2)==="tt"))&&(ne=Xe[pe][ne].replace),new bi.TextNode(ne)},zi=function(ne){return ne.length===1?ne[0]:new bi.MathNode("mrow",ne)},oa=function(ne,pe){if(pe.fontFamily==="texttt")return"monospace";if(pe.fontFamily==="textsf")return pe.fontShape==="textit"&&pe.fontWeight==="textbf"?"sans-serif-bold-italic":pe.fontShape==="textit"?"sans-serif-italic":pe.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(pe.fontShape==="textit"&&pe.fontWeight==="textbf")return"bold-italic";if(pe.fontShape==="textit")return"italic";if(pe.fontWeight==="textbf")return"bold";var be=pe.font;if(!be||be==="mathnormal")return null;var Ue=ne.mode;if(be==="mathit")return"italic";if(be==="boldsymbol")return"bold-italic";if(be==="mathbf")return"bold";if(be==="mathbb")return"double-struck";if(be==="mathfrak")return"fraktur";if(be==="mathscr"||be==="mathcal")return"script";if(be==="mathsf")return"sans-serif";if(be==="mathtt")return"monospace";var pt=ne.text;if(p.contains(["\\imath","\\jmath"],pt))return null;Xe[Ue][pt]&&Xe[Ue][pt].replace&&(pt=Xe[Ue][pt].replace);var Xt=sr.fontMap[be].fontName;return Je(pt,Xt,Ue)?sr.fontMap[be].variant:null},Yi=function(ne,pe,be){if(ne.length===1){var Ue=Hi(ne[0],pe);return be&&Ue instanceof ma&&Ue.type==="mo"&&(Ue.setAttribute("lspace","0em"),Ue.setAttribute("rspace","0em")),[Ue]}for(var pt=[],Xt,Or=0;Or<ne.length;Or++){var Qr=Hi(ne[Or],pe);if(Qr instanceof ma&&Xt instanceof ma){if(Qr.type==="mtext"&&Xt.type==="mtext"&&Qr.getAttribute("mathvariant")===Xt.getAttribute("mathvariant")){var dn;(dn=Xt.children).push.apply(dn,Qr.children);continue}else if(Qr.type==="mn"&&Xt.type==="mn"){var jn;(jn=Xt.children).push.apply(jn,Qr.children);continue}else if(Qr.type==="mi"&&Qr.children.length===1&&Xt.type==="mn"){var ai=Qr.children[0];if(ai instanceof la&&ai.text==="."){var Qn;(Qn=Xt.children).push.apply(Qn,Qr.children);continue}}else if(Xt.type==="mi"&&Xt.children.length===1){var Di=Xt.children[0];if(Di instanceof la&&Di.text==="\u0338"&&(Qr.type==="mo"||Qr.type==="mi"||Qr.type==="mn")){var Vi=Qr.children[0];Vi instanceof la&&Vi.text.length>0&&(Vi.text=Vi.text.slice(0,1)+"\u0338"+Vi.text.slice(1),pt.pop())}}}pt.push(Qr),Xt=Qr}return pt},ca=function(ne,pe,be){return zi(Yi(ne,pe,be))},Hi=function(ne,pe){if(!ne)return new bi.MathNode("mrow");if(Cr[ne.type]){var be=Cr[ne.type](ne,pe);return be}else throw new c("Got group of unknown type: '"+ne.type+"'")};function Ia(ht,ne,pe,be){var Ue=Yi(ht,pe),pt;Ue.length===1&&Ue[0]instanceof ma&&p.contains(["mrow","mtable"],Ue[0].type)?pt=Ue[0]:pt=new bi.MathNode("mrow",Ue);var Xt=new bi.MathNode("annotation",[new bi.TextNode(ne)]);Xt.setAttribute("encoding","application/x-tex");var Or=new bi.MathNode("semantics",[pt,Xt]),Qr=new bi.MathNode("math",[Or]);Qr.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var dn=be?"katex":"katex-mathml";return sr.makeSpan([dn],[Qr])}var Da=function(ne){return new Gt({style:ne.displayMode?j.DISPLAY:j.TEXT,maxSize:ne.maxSize,minRuleThickness:ne.minRuleThickness})},Qa=function(ne,pe){if(pe.displayMode){var be=["katex-display"];pe.leqno&&be.push("leqno"),pe.fleqn&&be.push("fleqn"),ne=sr.makeSpan(be,[ne])}return ne},Wo=function(ne,pe,be){var Ue=Da(be),pt;if(be.output==="mathml")return Ia(ne,pe,Ue,!0);if(be.output==="html"){var Xt=Mi(ne,Ue);pt=sr.makeSpan(["katex"],[Xt])}else{var Or=Ia(ne,pe,Ue,!1),Qr=Mi(ne,Ue);pt=sr.makeSpan(["katex"],[Or,Qr])}return Qa(pt,be)},po=function(ne,pe,be){var Ue=Da(be),pt=Mi(ne,Ue),Xt=sr.makeSpan(["katex"],[pt]);return Qa(Xt,be)},Mo=Wo,Fo={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"},yo=function(ne){var pe=new bi.MathNode("mo",[new bi.TextNode(Fo[ne.substr(1)])]);return pe.setAttribute("stretchy","true"),pe},Oo={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]},sa=function(ne){return ne.type==="ordgroup"?ne.body.length:1},hs=function(ne,pe){function be(){var Qr=4e5,dn=ne.label.substr(1);if(p.contains(["widehat","widecheck","widetilde","utilde"],dn)){var jn=ne,ai=sa(jn.base),Qn,Di,Vi;if(ai>5)dn==="widehat"||dn==="widecheck"?(Qn=420,Qr=2364,Vi=.42,Di=dn+"4"):(Qn=312,Qr=2340,Vi=.34,Di="tilde4");else{var Ta=[1,1,2,2,3,3][ai];dn==="widehat"||dn==="widecheck"?(Qr=[0,1062,2364,2364,2364][Ta],Qn=[0,239,300,360,420][Ta],Vi=[0,.24,.3,.3,.36,.42][Ta],Di=dn+Ta):(Qr=[0,600,1033,2339,2340][Ta],Qn=[0,260,286,306,312][Ta],Vi=[0,.26,.286,.3,.306,.34][Ta],Di="tilde"+Ta)}var Ga=new le(Di),ao=new Se([Ga],{width:"100%",height:Vi+"em",viewBox:"0 0 "+Qr+" "+Qn,preserveAspectRatio:"none"});return{span:sr.makeSvgSpan([],[ao],pe),minWidth:0,height:Vi}}else{var Do=[],fo=Oo[dn],as=fo[0],io=fo[1],Xa=fo[2],Ya=Xa/1e3,ka=as.length,os,Es;if(ka===1){var qo=fo[3];os=["hide-tail"],Es=[qo]}else if(ka===2)os=["halfarrow-left","halfarrow-right"],Es=["xMinYMin","xMaxYMin"];else if(ka===3)os=["brace-left","brace-center","brace-right"],Es=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+ka+" children.");for(var pa=0;pa<ka;pa++){var ls=new le(as[pa]),Os=new Se([ls],{width:"400em",height:Ya+"em",viewBox:"0 0 "+Qr+" "+Xa,preserveAspectRatio:Es[pa]+" slice"}),ys=sr.makeSvgSpan([os[pa]],[Os],pe);if(ka===1)return{span:ys,minWidth:io,height:Ya};ys.style.height=Ya+"em",Do.push(ys)}return{span:sr.makeSpan(["stretchy"],Do,pe),minWidth:io,height:Ya}}}var Ue=be(),pt=Ue.span,Xt=Ue.minWidth,Or=Ue.height;return pt.height=Or,pt.style.height=Or+"em",Xt>0&&(pt.style.minWidth=Xt+"em"),pt},Jo=function(ne,pe,be,Ue){var pt,Xt=ne.height+ne.depth+2*be;if(/fbox|color/.test(pe)){if(pt=sr.makeSpan(["stretchy",pe],[],Ue),pe==="fbox"){var Or=Ue.color&&Ue.getColor();Or&&(pt.style.borderColor=Or)}}else{var Qr=[];/^[bx]cancel$/.test(pe)&&Qr.push(new fe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(pe)&&Qr.push(new fe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var dn=new Se(Qr,{width:"100%",height:Xt+"em"});pt=sr.makeSvgSpan([],[dn],Ue)}return pt.height=Xt,pt.style.height=Xt+"em",pt},wo={encloseSpan:Jo,mathMLnode:yo,svgSpan:hs},_o=function(ne,pe){var be,Ue,pt=an(ne,"supsub"),Xt;pt?(Ue=un(pt.base,"accent"),be=Ue.base,pt.base=be,Xt=Ve(Oi(pt,pe)),pt.base=Ue):(Ue=un(ne,"accent"),be=Ue.base);var Or=Oi(be,pe.havingCrampedStyle()),Qr=Ue.isShifty&&p.isCharacterBox(be),dn=0;if(Qr){var jn=p.getBaseElem(be),ai=Oi(jn,pe.havingCrampedStyle());dn=Ee(ai).skew}var Qn=Math.min(Or.height,pe.fontMetrics().xHeight),Di;if(Ue.isStretchy)Di=wo.svgSpan(Ue,pe),Di=sr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Or},{type:"elem",elem:Di,wrapperClasses:["svg-align"],wrapperStyle:dn>0?{width:"calc(100% - "+2*dn+"em)",marginLeft:2*dn+"em"}:void 0}]},pe);else{var Vi,Ta;Ue.label==="\\vec"?(Vi=sr.staticSvg("vec",pe),Ta=sr.svgData.vec[1]):(Vi=sr.makeOrd({mode:Ue.mode,text:Ue.label},pe,"textord"),Vi=Ee(Vi),Vi.italic=0,Ta=Vi.width),Di=sr.makeSpan(["accent-body"],[Vi]);var Ga=Ue.label==="\\textcircled";Ga&&(Di.classes.push("accent-full"),Qn=Or.height);var ao=dn;Ga||(ao-=Ta/2),Di.style.left=ao+"em",Ue.label==="\\textcircled"&&(Di.style.top=".2em"),Di=sr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Or},{type:"kern",size:-Qn},{type:"elem",elem:Di}]},pe)}var Do=sr.makeSpan(["mord","accent"],[Di],pe);return Xt?(Xt.children[0]=Do,Xt.height=Math.max(Do.height,Xt.height),Xt.classes[0]="mord",Xt):Do},Bo=function(ne,pe){var be=ne.isStretchy?wo.mathMLnode(ne.label):new bi.MathNode("mo",[xn(ne.label,ne.mode)]),Ue=new bi.MathNode("mover",[Hi(ne.base,pe),be]);return Ue.setAttribute("accent","true"),Ue},Ds=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(ht){return"\\"+ht}).join("|"));Nt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(ne,pe){var be=pe[0],Ue=!Ds.test(ne.funcName),pt=!Ue||ne.funcName==="\\widehat"||ne.funcName==="\\widetilde"||ne.funcName==="\\widecheck";return{type:"accent",mode:ne.parser.mode,label:ne.funcName,isStretchy:Ue,isShifty:pt,base:be}},htmlBuilder:_o,mathmlBuilder:Bo}),Nt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ne,pe){var be=pe[0];return{type:"accent",mode:ne.parser.mode,label:ne.funcName,isStretchy:!1,isShifty:!0,base:be}},htmlBuilder:_o,mathmlBuilder:Bo}),Nt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=pe[0];return{type:"accentUnder",mode:be.mode,label:Ue,base:pt}},htmlBuilder:function(ne,pe){var be=Oi(ne.base,pe),Ue=wo.svgSpan(ne,pe),pt=ne.label==="\\utilde"?.12:0,Xt=sr.makeVList({positionType:"bottom",positionData:Ue.height+pt,children:[{type:"elem",elem:Ue,wrapperClasses:["svg-align"]},{type:"kern",size:pt},{type:"elem",elem:be}]},pe);return sr.makeSpan(["mord","accentunder"],[Xt],pe)},mathmlBuilder:function(ne,pe){var be=wo.mathMLnode(ne.label),Ue=new bi.MathNode("munder",[Hi(ne.base,pe),be]);return Ue.setAttribute("accentunder","true"),Ue}});var Dr=function(ne){var pe=new bi.MathNode("mpadded",ne?[ne]:[]);return pe.setAttribute("width","+0.6em"),pe.setAttribute("lspace","0.3em"),pe};Nt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(ne,pe,be){var Ue=ne.parser,pt=ne.funcName;return{type:"xArrow",mode:Ue.mode,label:pt,body:pe[0],below:be[0]}},htmlBuilder:function(ne,pe){var be=pe.style,Ue=pe.havingStyle(be.sup()),pt=sr.wrapFragment(Oi(ne.body,Ue,pe),pe);pt.classes.push("x-arrow-pad");var Xt;ne.below&&(Ue=pe.havingStyle(be.sub()),Xt=sr.wrapFragment(Oi(ne.below,Ue,pe),pe),Xt.classes.push("x-arrow-pad"));var Or=wo.svgSpan(ne,pe),Qr=-pe.fontMetrics().axisHeight+.5*Or.height,dn=-pe.fontMetrics().axisHeight-.5*Or.height-.111;(pt.depth>.25||ne.label==="\\xleftequilibrium")&&(dn-=pt.depth);var jn;if(Xt){var ai=-pe.fontMetrics().axisHeight+Xt.height+.5*Or.height+.111;jn=sr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:pt,shift:dn},{type:"elem",elem:Or,shift:Qr},{type:"elem",elem:Xt,shift:ai}]},pe)}else jn=sr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:pt,shift:dn},{type:"elem",elem:Or,shift:Qr}]},pe);return jn.children[0].children[0].children[1].classes.push("svg-align"),sr.makeSpan(["mrel","x-arrow"],[jn],pe)},mathmlBuilder:function(ne,pe){var be=wo.mathMLnode(ne.label),Ue;if(ne.body){var pt=Dr(Hi(ne.body,pe));if(ne.below){var Xt=Dr(Hi(ne.below,pe));Ue=new bi.MathNode("munderover",[be,Xt,pt])}else Ue=new bi.MathNode("mover",[be,pt])}else if(ne.below){var Or=Dr(Hi(ne.below,pe));Ue=new bi.MathNode("munder",[be,Or])}else Ue=Dr(),Ue=new bi.MathNode("mover",[be,Ue]);return Ue}}),Nt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ne,pe){for(var be=ne.parser,Ue=un(pe[0],"ordgroup"),pt=Ue.body,Xt="",Or=0;Or<pt.length;Or++){var Qr=un(pt[Or],"textord");Xt+=Qr.text}var dn=parseInt(Xt);if(isNaN(dn))throw new c("\\@char has non-numeric argument "+Xt);return{type:"textord",mode:be.mode,text:String.fromCharCode(dn)}}});var rn=function(ne,pe){var be=hn(ne.body,pe.withColor(ne.color),!1);return sr.makeFragment(be)},Tn=function(ne,pe){var be=Yi(ne.body,pe.withColor(ne.color)),Ue=new bi.MathNode("mstyle",be);return Ue.setAttribute("mathcolor",ne.color),Ue};Nt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ne,pe){var be=ne.parser,Ue=un(pe[0],"color-token").color,pt=pe[1];return{type:"color",mode:be.mode,color:Ue,body:Gr(pt)}},htmlBuilder:rn,mathmlBuilder:Tn}),Nt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ne,pe){var be=ne.parser,Ue=ne.breakOnTokenText,pt=un(pe[0],"color-token").color;be.gullet.macros.set("\\current@color",pt);var Xt=be.parseExpression(!0,Ue);return{type:"color",mode:be.mode,color:pt,body:Xt}},htmlBuilder:rn,mathmlBuilder:Tn}),Nt({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ne,pe,be){var Ue=ne.parser,pt=ne.funcName,Xt=be[0],Or=pt==="\\cr",Qr=!1;return Or||(Ue.settings.displayMode&&Ue.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?Qr=!1:Qr=!0),{type:"cr",mode:Ue.mode,newLine:Qr,newRow:Or,size:Xt&&un(Xt,"size").value}},htmlBuilder:function(ne,pe){if(ne.newRow)throw new c("\\cr valid only within a tabular/array environment");var be=sr.makeSpan(["mspace"],[],pe);return ne.newLine&&(be.classes.push("newline"),ne.size&&(be.style.marginTop=ir(ne.size,pe)+"em")),be},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mspace");return ne.newLine&&(be.setAttribute("linebreak","newline"),ne.size&&be.setAttribute("height",ir(ne.size,pe)+"em")),be}});var en=function(ne,pe,be){var Ue=Xe.math[ne]&&Xe.math[ne].replace,pt=Je(Ue||ne,pe,be);if(!pt)throw new Error("Unsupported symbol "+ne+" and font size "+pe+".");return pt},ur=function(ne,pe,be,Ue){var pt=be.havingBaseStyle(pe),Xt=sr.makeSpan(Ue.concat(pt.sizingClasses(be)),[ne],be),Or=pt.sizeMultiplier/be.sizeMultiplier;return Xt.height*=Or,Xt.depth*=Or,Xt.maxFontSize=pt.sizeMultiplier,Xt},sn=function(ne,pe,be){var Ue=pe.havingBaseStyle(be),pt=(1-pe.sizeMultiplier/Ue.sizeMultiplier)*pe.fontMetrics().axisHeight;ne.classes.push("delimcenter"),ne.style.top=pt+"em",ne.height-=pt,ne.depth+=pt},Bn=function(ne,pe,be,Ue,pt,Xt){var Or=sr.makeSymbol(ne,"Main-Regular",pt,Ue),Qr=ur(Or,pe,Ue,Xt);return be&&sn(Qr,Ue,pe),Qr},Hn=function(ne,pe,be,Ue){return sr.makeSymbol(ne,"Size"+pe+"-Regular",be,Ue)},Li=function(ne,pe,be,Ue,pt,Xt){var Or=Hn(ne,pe,pt,Ue),Qr=ur(sr.makeSpan(["delimsizing","size"+pe],[Or],Ue),j.TEXT,Ue,Xt);return be&&sn(Qr,Ue,j.TEXT),Qr},Ci=function(ne,pe,be){var Ue;pe==="Size1-Regular"?Ue="delim-size1":Ue="delim-size4";var pt=sr.makeSpan(["delimsizinginner",Ue],[sr.makeSpan([],[sr.makeSymbol(ne,pe,be)])]);return{type:"elem",elem:pt}},Jn={type:"kern",size:-.005},mi=function(ne,pe,be,Ue,pt,Xt){var Or,Qr,dn,jn;Or=dn=jn=ne,Qr=null;var ai="Size1-Regular";ne==="\\uparrow"?dn=jn="\u23D0":ne==="\\Uparrow"?dn=jn="\u2016":ne==="\\downarrow"?Or=dn="\u23D0":ne==="\\Downarrow"?Or=dn="\u2016":ne==="\\updownarrow"?(Or="\\uparrow",dn="\u23D0",jn="\\downarrow"):ne==="\\Updownarrow"?(Or="\\Uparrow",dn="\u2016",jn="\\Downarrow"):ne==="["||ne==="\\lbrack"?(Or="\u23A1",dn="\u23A2",jn="\u23A3",ai="Size4-Regular"):ne==="]"||ne==="\\rbrack"?(Or="\u23A4",dn="\u23A5",jn="\u23A6",ai="Size4-Regular"):ne==="\\lfloor"||ne==="\u230A"?(dn=Or="\u23A2",jn="\u23A3",ai="Size4-Regular"):ne==="\\lceil"||ne==="\u2308"?(Or="\u23A1",dn=jn="\u23A2",ai="Size4-Regular"):ne==="\\rfloor"||ne==="\u230B"?(dn=Or="\u23A5",jn="\u23A6",ai="Size4-Regular"):ne==="\\rceil"||ne==="\u2309"?(Or="\u23A4",dn=jn="\u23A5",ai="Size4-Regular"):ne==="("||ne==="\\lparen"?(Or="\u239B",dn="\u239C",jn="\u239D",ai="Size4-Regular"):ne===")"||ne==="\\rparen"?(Or="\u239E",dn="\u239F",jn="\u23A0",ai="Size4-Regular"):ne==="\\{"||ne==="\\lbrace"?(Or="\u23A7",Qr="\u23A8",jn="\u23A9",dn="\u23AA",ai="Size4-Regular"):ne==="\\}"||ne==="\\rbrace"?(Or="\u23AB",Qr="\u23AC",jn="\u23AD",dn="\u23AA",ai="Size4-Regular"):ne==="\\lgroup"||ne==="\u27EE"?(Or="\u23A7",jn="\u23A9",dn="\u23AA",ai="Size4-Regular"):ne==="\\rgroup"||ne==="\u27EF"?(Or="\u23AB",jn="\u23AD",dn="\u23AA",ai="Size4-Regular"):ne==="\\lmoustache"||ne==="\u23B0"?(Or="\u23A7",jn="\u23AD",dn="\u23AA",ai="Size4-Regular"):(ne==="\\rmoustache"||ne==="\u23B1")&&(Or="\u23AB",jn="\u23A9",dn="\u23AA",ai="Size4-Regular");var Qn=en(Or,ai,pt),Di=Qn.height+Qn.depth,Vi=en(dn,ai,pt),Ta=Vi.height+Vi.depth,Ga=en(jn,ai,pt),ao=Ga.height+Ga.depth,Do=0,fo=1;if(Qr!==null){var as=en(Qr,ai,pt);Do=as.height+as.depth,fo=2}var io=Di+ao+Do,Xa=Math.max(0,Math.ceil((pe-io)/(fo*Ta))),Ya=io+Xa*fo*Ta,ka=Ue.fontMetrics().axisHeight;be&&(ka*=Ue.sizeMultiplier);var os=Ya/2-ka,Es=(Xa+1)*.005-Ta,qo=[];if(qo.push(Ci(jn,ai,pt)),Qr===null)for(var pa=0;pa<Xa;pa++)qo.push(Jn),qo.push(Ci(dn,ai,pt));else{for(var ls=0;ls<Xa;ls++)qo.push(Jn),qo.push(Ci(dn,ai,pt));qo.push({type:"kern",size:Es}),qo.push(Ci(dn,ai,pt)),qo.push(Jn),qo.push(Ci(Qr,ai,pt));for(var Os=0;Os<Xa;Os++)qo.push(Jn),qo.push(Ci(dn,ai,pt))}qo.push({type:"kern",size:Es}),qo.push(Ci(dn,ai,pt)),qo.push(Jn),qo.push(Ci(Or,ai,pt));var ys=Ue.havingBaseStyle(j.TEXT),ms=sr.makeVList({positionType:"bottom",positionData:os,children:qo},ys);return ur(sr.makeSpan(["delimsizing","mult"],[ms],ys),j.TEXT,Ue,Xt)},yi=80,da=.08,ha=function(ne,pe,be,Ue,pt){var Xt=me(ne,Ue,be),Or=new le(ne,Xt),Qr=new Se([Or],{width:"400em",height:pe+"em",viewBox:"0 0 400000 "+be,preserveAspectRatio:"xMinYMin slice"});return sr.makeSvgSpan(["hide-tail"],[Qr],pt)},Pa=function(ne,pe){var be=pe.havingBaseSizing(),Ue=ni("\\surd",ne*be.sizeMultiplier,cn,be),pt=be.sizeMultiplier,Xt=Math.max(0,pe.minRuleThickness-pe.fontMetrics().sqrtRuleThickness),Or,Qr=0,dn=0,jn=0,ai;return Ue.type==="small"?(jn=1e3+1e3*Xt+yi,ne<1?pt=1:ne<1.4&&(pt=.7),Qr=(1+Xt+da)/pt,dn=(1+Xt)/pt,Or=ha("sqrtMain",Qr,jn,Xt,pe),Or.style.minWidth="0.853em",ai=.833/pt):Ue.type==="large"?(jn=(1e3+yi)*lo[Ue.size],dn=(lo[Ue.size]+Xt)/pt,Qr=(lo[Ue.size]+Xt+da)/pt,Or=ha("sqrtSize"+Ue.size,Qr,jn,Xt,pe),Or.style.minWidth="1.02em",ai=1/pt):(Qr=ne+Xt+da,dn=ne+Xt,jn=Math.floor(1e3*ne+Xt)+yi,Or=ha("sqrtTall",Qr,jn,Xt,pe),Or.style.minWidth="0.742em",ai=1.056),Or.height=dn,Or.style.height=Qr+"em",{span:Or,advanceWidth:ai,ruleWidth:(pe.fontMetrics().sqrtRuleThickness+Xt)*pt}},Ra=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],so=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],La=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],lo=[0,1.2,1.8,2.4,3],So=function(ne,pe,be,Ue,pt){if(ne==="<"||ne==="\\lt"||ne==="\u27E8"?ne="\\langle":(ne===">"||ne==="\\gt"||ne==="\u27E9")&&(ne="\\rangle"),p.contains(Ra,ne)||p.contains(La,ne))return Li(ne,pe,!1,be,Ue,pt);if(p.contains(so,ne))return mi(ne,lo[pe],!1,be,Ue,pt);throw new c("Illegal delimiter: '"+ne+"'")},Qt=[{type:"small",style:j.SCRIPTSCRIPT},{type:"small",style:j.SCRIPT},{type:"small",style:j.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Vr=[{type:"small",style:j.SCRIPTSCRIPT},{type:"small",style:j.SCRIPT},{type:"small",style:j.TEXT},{type:"stack"}],cn=[{type:"small",style:j.SCRIPTSCRIPT},{type:"small",style:j.SCRIPT},{type:"small",style:j.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],vn=function(ne){if(ne.type==="small")return"Main-Regular";if(ne.type==="large")return"Size"+ne.size+"-Regular";if(ne.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+ne.type+"' here.")},ni=function(ne,pe,be,Ue){for(var pt=Math.min(2,3-Ue.style.size),Xt=pt;Xt<be.length&&!(be[Xt].type==="stack");Xt++){var Or=en(ne,vn(be[Xt]),"math"),Qr=Or.height+Or.depth;if(be[Xt].type==="small"){var dn=Ue.havingBaseStyle(be[Xt].style);Qr*=dn.sizeMultiplier}if(Qr>pe)return be[Xt]}return be[be.length-1]},li=function(ne,pe,be,Ue,pt,Xt){ne==="<"||ne==="\\lt"||ne==="\u27E8"?ne="\\langle":(ne===">"||ne==="\\gt"||ne==="\u27E9")&&(ne="\\rangle");var Or;p.contains(La,ne)?Or=Qt:p.contains(Ra,ne)?Or=cn:Or=Vr;var Qr=ni(ne,pe,Or,Ue);return Qr.type==="small"?Bn(ne,Qr.style,be,Ue,pt,Xt):Qr.type==="large"?Li(ne,Qr.size,be,Ue,pt,Xt):mi(ne,pe,be,Ue,pt,Xt)},fi=function(ne,pe,be,Ue,pt,Xt){var Or=Ue.fontMetrics().axisHeight*Ue.sizeMultiplier,Qr=901,dn=5/Ue.fontMetrics().ptPerEm,jn=Math.max(pe-Or,be+Or),ai=Math.max(jn/500*Qr,2*jn-dn);return li(ne,ai,!0,Ue,pt,Xt)},di={sqrtImage:Pa,sizedDelim:So,customSizedDelim:li,leftRightDelim:fi},Jt={"\\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}},Ot=["(","\\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 yr(ht,ne){var pe=Ui(ht);if(pe&&p.contains(Ot,pe.text))return pe;throw new c("Invalid delimiter: '"+(pe?pe.text:JSON.stringify(ht))+"' after '"+ne.funcName+"'",ht)}Nt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(ne,pe){var be=yr(pe[0],ne);return{type:"delimsizing",mode:ne.parser.mode,size:Jt[ne.funcName].size,mclass:Jt[ne.funcName].mclass,delim:be.text}},htmlBuilder:function(ne,pe){return ne.delim==="."?sr.makeSpan([ne.mclass]):di.sizedDelim(ne.delim,ne.size,pe,ne.mode,[ne.mclass])},mathmlBuilder:function(ne){var pe=[];ne.delim!=="."&&pe.push(xn(ne.delim,ne.mode));var be=new bi.MathNode("mo",pe);return ne.mclass==="mopen"||ne.mclass==="mclose"?be.setAttribute("fence","true"):be.setAttribute("fence","false"),be}});function ft(ht){if(!ht.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Nt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser.gullet.macros.get("\\current@color");if(be&&typeof be!="string")throw new c("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:ne.parser.mode,delim:yr(pe[0],ne).text,color:be}}}),Nt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ne,pe){var be=yr(pe[0],ne),Ue=ne.parser;++Ue.leftrightDepth;var pt=Ue.parseExpression(!1);--Ue.leftrightDepth,Ue.expect("\\right",!1);var Xt=un(Ue.parseFunction(),"leftright-right");return{type:"leftright",mode:Ue.mode,body:pt,left:be.text,right:Xt.delim,rightColor:Xt.color}},htmlBuilder:function(ne,pe){ft(ne);for(var be=hn(ne.body,pe,!0,["mopen","mclose"]),Ue=0,pt=0,Xt=!1,Or=0;Or<be.length;Or++)be[Or].isMiddle?Xt=!0:(Ue=Math.max(be[Or].height,Ue),pt=Math.max(be[Or].depth,pt));Ue*=pe.sizeMultiplier,pt*=pe.sizeMultiplier;var Qr;if(ne.left==="."?Qr=qn(pe,["mopen"]):Qr=di.leftRightDelim(ne.left,Ue,pt,pe,ne.mode,["mopen"]),be.unshift(Qr),Xt)for(var dn=1;dn<be.length;dn++){var jn=be[dn],ai=jn.isMiddle;ai&&(be[dn]=di.leftRightDelim(ai.delim,Ue,pt,ai.options,ne.mode,[]))}var Qn;if(ne.right===".")Qn=qn(pe,["mclose"]);else{var Di=ne.rightColor?pe.withColor(ne.rightColor):pe;Qn=di.leftRightDelim(ne.right,Ue,pt,Di,ne.mode,["mclose"])}return be.push(Qn),sr.makeSpan(["minner"],be,pe)},mathmlBuilder:function(ne,pe){ft(ne);var be=Yi(ne.body,pe);if(ne.left!=="."){var Ue=new bi.MathNode("mo",[xn(ne.left,ne.mode)]);Ue.setAttribute("fence","true"),be.unshift(Ue)}if(ne.right!=="."){var pt=new bi.MathNode("mo",[xn(ne.right,ne.mode)]);pt.setAttribute("fence","true"),ne.rightColor&&pt.setAttribute("mathcolor",ne.rightColor),be.push(pt)}return zi(be)}}),Nt({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ne,pe){var be=yr(pe[0],ne);if(!ne.parser.leftrightDepth)throw new c("\\middle without preceding \\left",be);return{type:"middle",mode:ne.parser.mode,delim:be.text}},htmlBuilder:function(ne,pe){var be;if(ne.delim===".")be=qn(pe,[]);else{be=di.sizedDelim(ne.delim,1,pe,ne.mode,[]);var Ue={delim:ne.delim,options:pe};be.isMiddle=Ue}return be},mathmlBuilder:function(ne,pe){var be=ne.delim==="\\vert"||ne.delim==="|"?xn("|","text"):xn(ne.delim,ne.mode),Ue=new bi.MathNode("mo",[be]);return Ue.setAttribute("fence","true"),Ue.setAttribute("lspace","0.05em"),Ue.setAttribute("rspace","0.05em"),Ue}});var qt=function(ne,pe){var be=sr.wrapFragment(Oi(ne.body,pe),pe),Ue=ne.label.substr(1),pt=pe.sizeMultiplier,Xt,Or=0,Qr=p.isCharacterBox(ne.body);if(Ue==="sout")Xt=sr.makeSpan(["stretchy","sout"]),Xt.height=pe.fontMetrics().defaultRuleThickness/pt,Or=-.5*pe.fontMetrics().xHeight;else{/cancel/.test(Ue)?Qr||be.classes.push("cancel-pad"):be.classes.push("boxpad");var dn=0,jn=0;/box/.test(Ue)?(jn=Math.max(pe.fontMetrics().fboxrule,pe.minRuleThickness),dn=pe.fontMetrics().fboxsep+(Ue==="colorbox"?0:jn)):dn=Qr?.2:0,Xt=wo.encloseSpan(be,Ue,dn,pe),/fbox|boxed|fcolorbox/.test(Ue)&&(Xt.style.borderStyle="solid",Xt.style.borderWidth=jn+"em"),Or=be.depth+dn,ne.backgroundColor&&(Xt.style.backgroundColor=ne.backgroundColor,ne.borderColor&&(Xt.style.borderColor=ne.borderColor))}var ai;return ne.backgroundColor?ai=sr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Xt,shift:Or},{type:"elem",elem:be,shift:0}]},pe):ai=sr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:be,shift:0},{type:"elem",elem:Xt,shift:Or,wrapperClasses:/cancel/.test(Ue)?["svg-align"]:[]}]},pe),/cancel/.test(Ue)&&(ai.height=be.height,ai.depth=be.depth),/cancel/.test(Ue)&&!Qr?sr.makeSpan(["mord","cancel-lap"],[ai],pe):sr.makeSpan(["mord"],[ai],pe)},dr=function(ne,pe){var be=0,Ue=new bi.MathNode(ne.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Hi(ne.body,pe)]);switch(ne.label){case"\\cancel":Ue.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":Ue.setAttribute("notation","downdiagonalstrike");break;case"\\sout":Ue.setAttribute("notation","horizontalstrike");break;case"\\fbox":Ue.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(be=pe.fontMetrics().fboxsep*pe.fontMetrics().ptPerEm,Ue.setAttribute("width","+"+2*be+"pt"),Ue.setAttribute("height","+"+2*be+"pt"),Ue.setAttribute("lspace",be+"pt"),Ue.setAttribute("voffset",be+"pt"),ne.label==="\\fcolorbox"){var pt=Math.max(pe.fontMetrics().fboxrule,pe.minRuleThickness);Ue.setAttribute("style","border: "+pt+"em solid "+String(ne.borderColor))}break;case"\\xcancel":Ue.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ne.backgroundColor&&Ue.setAttribute("mathbackground",ne.backgroundColor),Ue};Nt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ne,pe,be){var Ue=ne.parser,pt=ne.funcName,Xt=un(pe[0],"color-token").color,Or=pe[1];return{type:"enclose",mode:Ue.mode,label:pt,backgroundColor:Xt,body:Or}},htmlBuilder:qt,mathmlBuilder:dr}),Nt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ne,pe,be){var Ue=ne.parser,pt=ne.funcName,Xt=un(pe[0],"color-token").color,Or=un(pe[1],"color-token").color,Qr=pe[2];return{type:"enclose",mode:Ue.mode,label:pt,backgroundColor:Or,borderColor:Xt,body:Qr}},htmlBuilder:qt,mathmlBuilder:dr}),Nt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ne,pe){var be=ne.parser;return{type:"enclose",mode:be.mode,label:"\\fbox",body:pe[0]}}}),Nt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ne,pe,be){var Ue=ne.parser,pt=ne.funcName,Xt=pe[0];return{type:"enclose",mode:Ue.mode,label:pt,body:Xt}},htmlBuilder:qt,mathmlBuilder:dr});var Nr={};function Zr(ht){for(var ne=ht.type,pe=ht.names,be=ht.props,Ue=ht.handler,pt=ht.htmlBuilder,Xt=ht.mathmlBuilder,Or={type:ne,numArgs:be.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Ue},Qr=0;Qr<pe.length;++Qr)Nr[pe[Qr]]=Or;pt&&(mr[ne]=pt),Xt&&(Cr[ne]=Xt)}function pn(ht){var ne=[];ht.consumeSpaces();for(var pe=ht.fetch().text;pe==="\\hline"||pe==="\\hdashline";)ht.consume(),ne.push(pe==="\\hdashline"),ht.consumeSpaces(),pe=ht.fetch().text;return ne}function _n(ht,ne,pe){var be=ne.hskipBeforeAndAfter,Ue=ne.addJot,pt=ne.cols,Xt=ne.arraystretch,Or=ne.colSeparationType;if(ht.gullet.beginGroup(),ht.gullet.macros.set("\\\\","\\cr"),!Xt){var Qr=ht.gullet.expandMacroAsText("\\arraystretch");if(Qr==null)Xt=1;else if(Xt=parseFloat(Qr),!Xt||Xt<0)throw new c("Invalid \\arraystretch: "+Qr)}ht.gullet.beginGroup();var dn=[],jn=[dn],ai=[],Qn=[];for(Qn.push(pn(ht));;){var Di=ht.parseExpression(!1,"\\cr");ht.gullet.endGroup(),ht.gullet.beginGroup(),Di={type:"ordgroup",mode:ht.mode,body:Di},pe&&(Di={type:"styling",mode:ht.mode,style:pe,body:[Di]}),dn.push(Di);var Vi=ht.fetch().text;if(Vi==="&")ht.consume();else if(Vi==="\\end"){dn.length===1&&Di.type==="styling"&&Di.body[0].body.length===0&&jn.pop(),Qn.length<jn.length+1&&Qn.push([]);break}else if(Vi==="\\cr"){var Ta=un(ht.parseFunction(),"cr");ai.push(Ta.size),Qn.push(pn(ht)),dn=[],jn.push(dn)}else throw new c("Expected & or \\\\ or \\cr or \\end",ht.nextToken)}return ht.gullet.endGroup(),ht.gullet.endGroup(),{type:"array",mode:ht.mode,addJot:Ue,arraystretch:Xt,body:jn,cols:pt,rowGaps:ai,hskipBeforeAndAfter:be,hLinesBeforeRow:Qn,colSeparationType:Or}}function Dn(ht){return ht.substr(0,1)==="d"?"display":"text"}var Zn=function(ne,pe){var be,Ue,pt=ne.body.length,Xt=ne.hLinesBeforeRow,Or=0,Qr=new Array(pt),dn=[],jn=Math.max(pe.fontMetrics().arrayRuleWidth,pe.minRuleThickness),ai=1/pe.fontMetrics().ptPerEm,Qn=5*ai;if(ne.colSeparationType&&ne.colSeparationType==="small"){var Di=pe.havingStyle(j.SCRIPT).sizeMultiplier;Qn=.2778*(Di/pe.sizeMultiplier)}var Vi=12*ai,Ta=3*ai,Ga=ne.arraystretch*Vi,ao=.7*Ga,Do=.3*Ga,fo=0;function as(Gs){for(var zs=0;zs<Gs.length;++zs)zs>0&&(fo+=.25),dn.push({pos:fo,isDashed:Gs[zs]})}for(as(Xt[0]),be=0;be<ne.body.length;++be){var io=ne.body[be],Xa=ao,Ya=Do;Or<io.length&&(Or=io.length);var ka=new Array(io.length);for(Ue=0;Ue<io.length;++Ue){var os=Oi(io[Ue],pe);Ya<os.depth&&(Ya=os.depth),Xa<os.height&&(Xa=os.height),ka[Ue]=os}var Es=ne.rowGaps[be],qo=0;Es&&(qo=ir(Es,pe),qo>0&&(qo+=Do,Ya<qo&&(Ya=qo),qo=0)),ne.addJot&&(Ya+=Ta),ka.height=Xa,ka.depth=Ya,fo+=Xa,ka.pos=fo,fo+=Ya+qo,Qr[be]=ka,as(Xt[be+1])}var pa=fo/2+pe.fontMetrics().axisHeight,ls=ne.cols||[],Os=[],ys,ms;for(Ue=0,ms=0;Ue<Or||ms<ls.length;++Ue,++ms){for(var ws=ls[ms]||{},Pl=!0;ws.type==="separator";){if(Pl||(ys=sr.makeSpan(["arraycolsep"],[]),ys.style.width=pe.fontMetrics().doubleRuleSep+"em",Os.push(ys)),ws.separator==="|"||ws.separator===":"){var ml=ws.separator==="|"?"solid":"dashed",Ws=sr.makeSpan(["vertical-separator"],[],pe);Ws.style.height=fo+"em",Ws.style.borderRightWidth=jn+"em",Ws.style.borderRightStyle=ml,Ws.style.margin="0 -"+jn/2+"em",Ws.style.verticalAlign=-(fo-pa)+"em",Os.push(Ws)}else throw new c("Invalid separator type: "+ws.separator);ms++,ws=ls[ms]||{},Pl=!1}if(Ue>=Or)continue;var fs=void 0;(Ue>0||ne.hskipBeforeAndAfter)&&(fs=p.deflt(ws.pregap,Qn),fs!==0&&(ys=sr.makeSpan(["arraycolsep"],[]),ys.style.width=fs+"em",Os.push(ys)));var _s=[];for(be=0;be<pt;++be){var gl=Qr[be],Bs=gl[Ue];if(!Bs)continue;var Us=gl.pos-pa;Bs.depth=gl.depth,Bs.height=gl.height,_s.push({type:"elem",elem:Bs,shift:Us})}_s=sr.makeVList({positionType:"individualShift",children:_s},pe),_s=sr.makeSpan(["col-align-"+(ws.align||"c")],[_s]),Os.push(_s),(Ue<Or-1||ne.hskipBeforeAndAfter)&&(fs=p.deflt(ws.postgap,Qn),fs!==0&&(ys=sr.makeSpan(["arraycolsep"],[]),ys.style.width=fs+"em",Os.push(ys)))}if(Qr=sr.makeSpan(["mtable"],Os),dn.length>0){for(var Qs=sr.makeLineSpan("hline",pe,jn),al=sr.makeLineSpan("hdashline",pe,jn),El=[{type:"elem",elem:Qr,shift:0}];dn.length>0;){var bl=dn.pop(),ol=bl.pos-pa;bl.isDashed?El.push({type:"elem",elem:al,shift:ol}):El.push({type:"elem",elem:Qs,shift:ol})}Qr=sr.makeVList({positionType:"individualShift",children:El},pe)}return sr.makeSpan(["mord"],[Qr],pe)},ii={c:"center ",l:"left ",r:"right "},pi=function(ne,pe){var be=new bi.MathNode("mtable",ne.body.map(function(fo){return new bi.MathNode("mtr",fo.map(function(as){return new bi.MathNode("mtd",[Hi(as,pe)])}))})),Ue=ne.arraystretch===.5?.1:.16+ne.arraystretch-1+(ne.addJot?.09:0);be.setAttribute("rowspacing",Ue+"em");var pt="",Xt="";if(ne.cols){var Or=ne.cols,Qr="",dn=!1,jn=0,ai=Or.length;Or[0].type==="separator"&&(pt+="top ",jn=1),Or[Or.length-1].type==="separator"&&(pt+="bottom ",ai-=1);for(var Qn=jn;Qn<ai;Qn++)Or[Qn].type==="align"?(Xt+=ii[Or[Qn].align],dn&&(Qr+="none "),dn=!0):Or[Qn].type==="separator"&&(dn&&(Qr+=Or[Qn].separator==="|"?"solid ":"dashed ",dn=!1));be.setAttribute("columnalign",Xt.trim()),/[sd]/.test(Qr)&&be.setAttribute("columnlines",Qr.trim())}if(ne.colSeparationType==="align"){for(var Di=ne.cols||[],Vi="",Ta=1;Ta<Di.length;Ta++)Vi+=Ta%2?"0em ":"1em ";be.setAttribute("columnspacing",Vi.trim())}else ne.colSeparationType==="alignat"?be.setAttribute("columnspacing","0em"):ne.colSeparationType==="small"?be.setAttribute("columnspacing","0.2778em"):be.setAttribute("columnspacing","1em");var Ga="",ao=ne.hLinesBeforeRow;pt+=ao[0].length>0?"left ":"",pt+=ao[ao.length-1].length>0?"right ":"";for(var Do=1;Do<ao.length-1;Do++)Ga+=ao[Do].length===0?"none ":ao[Do][0]?"dashed ":"solid ";return/[sd]/.test(Ga)&&be.setAttribute("rowlines",Ga.trim()),pt!==""&&(be=new bi.MathNode("menclose",[be]),be.setAttribute("notation",pt.trim())),ne.arraystretch&&ne.arraystretch<1&&(be=new bi.MathNode("mstyle",[be]),be.setAttribute("scriptlevel","1")),be},ri=function(ne,pe){var be=[],Ue=_n(ne.parser,{cols:be,addJot:!0},"display"),pt,Xt=0,Or={type:"ordgroup",mode:ne.mode,body:[]},Qr=an(pe[0],"ordgroup");if(Qr){for(var dn="",jn=0;jn<Qr.body.length;jn++){var ai=un(Qr.body[jn],"textord");dn+=ai.text}pt=Number(dn),Xt=pt*2}var Qn=!Xt;Ue.body.forEach(function(Ga){for(var ao=1;ao<Ga.length;ao+=2){var Do=un(Ga[ao],"styling"),fo=un(Do.body[0],"ordgroup");fo.body.unshift(Or)}if(Qn)Xt<Ga.length&&(Xt=Ga.length);else{var as=Ga.length/2;if(pt<as)throw new c("Too many math in a row: "+("expected "+pt+", but got "+as),Ga[0])}});for(var Di=0;Di<Xt;++Di){var Vi="r",Ta=0;Di%2===1?Vi="l":Di>0&&Qn&&(Ta=1),be[Di]={type:"align",align:Vi,pregap:Ta,postgap:0}}return Ue.colSeparationType=Qn?"align":"alignat",Ue};Zr({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(ne,pe){var be=Ui(pe[0]),Ue=be?[pe[0]]:un(pe[0],"ordgroup").body,pt=Ue.map(function(Or){var Qr=ci(Or),dn=Qr.text;if("lcr".indexOf(dn)!==-1)return{type:"align",align:dn};if(dn==="|")return{type:"separator",separator:"|"};if(dn===":")return{type:"separator",separator:":"};throw new c("Unknown column alignment: "+dn,Or)}),Xt={cols:pt,hskipBeforeAndAfter:!0};return _n(ne.parser,Xt,Dn(ne.envName))},htmlBuilder:Zn,mathmlBuilder:pi}),Zr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(ne){var pe={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[ne.envName],be={hskipBeforeAndAfter:!1},Ue=_n(ne.parser,be,Dn(ne.envName));return pe?{type:"leftright",mode:ne.mode,body:[Ue],left:pe[0],right:pe[1],rightColor:void 0}:Ue},htmlBuilder:Zn,mathmlBuilder:pi}),Zr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(ne){var pe={arraystretch:.5},be=_n(ne.parser,pe,"script");return be.colSeparationType="small",be},htmlBuilder:Zn,mathmlBuilder:pi}),Zr({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ne,pe){var be=Ui(pe[0]),Ue=be?[pe[0]]:un(pe[0],"ordgroup").body,pt=Ue.map(function(Or){var Qr=ci(Or),dn=Qr.text;if("lc".indexOf(dn)!==-1)return{type:"align",align:dn};throw new c("Unknown column alignment: "+dn,Or)});if(pt.length>1)throw new c("{subarray} can contain only one column");var Xt={cols:pt,hskipBeforeAndAfter:!1,arraystretch:.5};if(Xt=_n(ne.parser,Xt,"script"),Xt.body[0].length>1)throw new c("{subarray} can contain only one column");return Xt},htmlBuilder:Zn,mathmlBuilder:pi}),Zr({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(ne){var pe={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},be=_n(ne.parser,pe,Dn(ne.envName));return{type:"leftright",mode:ne.mode,body:[be],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Zn,mathmlBuilder:pi}),Zr({type:"array",names:["aligned"],props:{numArgs:0},handler:ri,htmlBuilder:Zn,mathmlBuilder:pi}),Zr({type:"array",names:["gathered"],props:{numArgs:0},handler:function(ne){var pe={cols:[{type:"align",align:"c"}],addJot:!0};return _n(ne.parser,pe,"display")},htmlBuilder:Zn,mathmlBuilder:pi}),Zr({type:"array",names:["alignedat"],props:{numArgs:1},handler:ri,htmlBuilder:Zn,mathmlBuilder:pi}),Nt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ne,pe){throw new c(ne.funcName+" valid only within array environment")}});var ji=Nr,ei=ji;Nt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=pe[0];if(pt.type!=="ordgroup")throw new c("Invalid environment name",pt);for(var Xt="",Or=0;Or<pt.body.length;++Or)Xt+=un(pt.body[Or],"textord").text;if(Ue==="\\begin"){if(!ei.hasOwnProperty(Xt))throw new c("No such environment: "+Xt,pt);var Qr=ei[Xt],dn=be.parseArguments("\\begin{"+Xt+"}",Qr),jn=dn.args,ai=dn.optArgs,Qn={mode:be.mode,envName:Xt,parser:be},Di=Qr.handler(Qn,jn,ai);be.expect("\\end",!1);var Vi=be.nextToken,Ta=un(be.parseFunction(),"environment");if(Ta.name!==Xt)throw new c("Mismatch: \\begin{"+Xt+"} matched by \\end{"+Ta.name+"}",Vi);return Di}return{type:"environment",mode:be.mode,name:Xt,nameGroup:pt}}});var $e=sr.makeSpan;function Yt(ht,ne){var pe=hn(ht.body,ne,!0);return $e([ht.mclass],pe,ne)}function vr(ht,ne){var pe,be=Yi(ht.body,ne);return ht.mclass==="minner"?bi.newDocumentFragment(be):(ht.mclass==="mord"?ht.isCharacterBox?(pe=be[0],pe.type="mi"):pe=new bi.MathNode("mi",be):(ht.isCharacterBox?(pe=be[0],pe.type="mo"):pe=new bi.MathNode("mo",be),ht.mclass==="mbin"?(pe.attributes.lspace="0.22em",pe.attributes.rspace="0.22em"):ht.mclass==="mpunct"?(pe.attributes.lspace="0em",pe.attributes.rspace="0.17em"):(ht.mclass==="mopen"||ht.mclass==="mclose")&&(pe.attributes.lspace="0em",pe.attributes.rspace="0em")),pe)}Nt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=pe[0];return{type:"mclass",mode:be.mode,mclass:"m"+Ue.substr(5),body:Gr(pt),isCharacterBox:p.isCharacterBox(pt)}},htmlBuilder:Yt,mathmlBuilder:vr});var fr=function(ne){var pe=ne.type==="ordgroup"&&ne.body.length?ne.body[0]:ne;return pe.type==="atom"&&(pe.family==="bin"||pe.family==="rel")?"m"+pe.family:"mord"};Nt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ne,pe){var be=ne.parser;return{type:"mclass",mode:be.mode,mclass:fr(pe[0]),body:[pe[1]],isCharacterBox:p.isCharacterBox(pe[1])}}}),Nt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=pe[1],Xt=pe[0],Or;Ue!=="\\stackrel"?Or=fr(pt):Or="mrel";var Qr={type:"op",mode:pt.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Ue!=="\\stackrel",body:Gr(pt)},dn={type:"supsub",mode:Xt.mode,base:Qr,sup:Ue==="\\underset"?null:Xt,sub:Ue==="\\underset"?Xt:null};return{type:"mclass",mode:be.mode,mclass:Or,body:[dn],isCharacterBox:p.isCharacterBox(dn)}},htmlBuilder:Yt,mathmlBuilder:vr});var Xr=function(ne,pe){var be=ne.font,Ue=pe.withFont(be);return Oi(ne.body,Ue)},Fr=function(ne,pe){var be=ne.font,Ue=pe.withFont(be);return Hi(ne.body,Ue)},hr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Nt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=pe[0],Xt=Ue;return Xt in hr&&(Xt=hr[Xt]),{type:"font",mode:be.mode,font:Xt.slice(1),body:pt}},htmlBuilder:Xr,mathmlBuilder:Fr}),Nt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ne,pe){var be=ne.parser,Ue=pe[0],pt=p.isCharacterBox(Ue);return{type:"mclass",mode:be.mode,mclass:fr(Ue),body:[{type:"font",mode:be.mode,font:"boldsymbol",body:Ue}],isCharacterBox:pt}}}),Nt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=ne.breakOnTokenText,Xt=be.mode,Or=be.parseExpression(!0,pt),Qr="math"+Ue.slice(1);return{type:"font",mode:Xt,font:Qr,body:{type:"ordgroup",mode:be.mode,body:Or}}},htmlBuilder:Xr,mathmlBuilder:Fr});var An=function(ne,pe){var be=pe;return ne==="display"?be=be.id>=j.SCRIPT.id?be.text():j.DISPLAY:ne==="text"&&be.size===j.DISPLAY.size?be=j.TEXT:ne==="script"?be=j.SCRIPT:ne==="scriptscript"&&(be=j.SCRIPTSCRIPT),be},br=function(ne,pe){var be=An(ne.size,pe.style),Ue=be.fracNum(),pt=be.fracDen(),Xt;Xt=pe.havingStyle(Ue);var Or=Oi(ne.numer,Xt,pe);if(ne.continued){var Qr=8.5/pe.fontMetrics().ptPerEm,dn=3.5/pe.fontMetrics().ptPerEm;Or.height=Or.height<Qr?Qr:Or.height,Or.depth=Or.depth<dn?dn:Or.depth}Xt=pe.havingStyle(pt);var jn=Oi(ne.denom,Xt,pe),ai,Qn,Di;ne.hasBarLine?(ne.barSize?(Qn=ir(ne.barSize,pe),ai=sr.makeLineSpan("frac-line",pe,Qn)):ai=sr.makeLineSpan("frac-line",pe),Qn=ai.height,Di=ai.height):(ai=null,Qn=0,Di=pe.fontMetrics().defaultRuleThickness);var Vi,Ta,Ga;be.size===j.DISPLAY.size||ne.size==="display"?(Vi=pe.fontMetrics().num1,Qn>0?Ta=3*Di:Ta=7*Di,Ga=pe.fontMetrics().denom1):(Qn>0?(Vi=pe.fontMetrics().num2,Ta=Di):(Vi=pe.fontMetrics().num3,Ta=3*Di),Ga=pe.fontMetrics().denom2);var ao;if(ai){var fo=pe.fontMetrics().axisHeight;Vi-Or.depth-(fo+.5*Qn)<Ta&&(Vi+=Ta-(Vi-Or.depth-(fo+.5*Qn))),fo-.5*Qn-(jn.height-Ga)<Ta&&(Ga+=Ta-(fo-.5*Qn-(jn.height-Ga)));var as=-(fo-.5*Qn);ao=sr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:jn,shift:Ga},{type:"elem",elem:ai,shift:as},{type:"elem",elem:Or,shift:-Vi}]},pe)}else{var Do=Vi-Or.depth-(jn.height-Ga);Do<Ta&&(Vi+=.5*(Ta-Do),Ga+=.5*(Ta-Do)),ao=sr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:jn,shift:Ga},{type:"elem",elem:Or,shift:-Vi}]},pe)}Xt=pe.havingStyle(be),ao.height*=Xt.sizeMultiplier/pe.sizeMultiplier,ao.depth*=Xt.sizeMultiplier/pe.sizeMultiplier;var io;be.size===j.DISPLAY.size?io=pe.fontMetrics().delim1:io=pe.fontMetrics().delim2;var Xa,Ya;return ne.leftDelim==null?Xa=qn(pe,["mopen"]):Xa=di.customSizedDelim(ne.leftDelim,io,!0,pe.havingStyle(be),ne.mode,["mopen"]),ne.continued?Ya=sr.makeSpan([]):ne.rightDelim==null?Ya=qn(pe,["mclose"]):Ya=di.customSizedDelim(ne.rightDelim,io,!0,pe.havingStyle(be),ne.mode,["mclose"]),sr.makeSpan(["mord"].concat(Xt.sizingClasses(pe)),[Xa,sr.makeSpan(["mfrac"],[ao]),Ya],pe)},mn=function(ne,pe){var be=new bi.MathNode("mfrac",[Hi(ne.numer,pe),Hi(ne.denom,pe)]);if(!ne.hasBarLine)be.setAttribute("linethickness","0px");else if(ne.barSize){var Ue=ir(ne.barSize,pe);be.setAttribute("linethickness",Ue+"em")}var pt=An(ne.size,pe.style);if(pt.size!==pe.style.size){be=new bi.MathNode("mstyle",[be]);var Xt=pt.size===j.DISPLAY.size?"true":"false";be.setAttribute("displaystyle",Xt),be.setAttribute("scriptlevel","0")}if(ne.leftDelim!=null||ne.rightDelim!=null){var Or=[];if(ne.leftDelim!=null){var Qr=new bi.MathNode("mo",[new bi.TextNode(ne.leftDelim.replace("\\",""))]);Qr.setAttribute("fence","true"),Or.push(Qr)}if(Or.push(be),ne.rightDelim!=null){var dn=new bi.MathNode("mo",[new bi.TextNode(ne.rightDelim.replace("\\",""))]);dn.setAttribute("fence","true"),Or.push(dn)}return zi(Or)}return be};Nt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=pe[0],Xt=pe[1],Or,Qr=null,dn=null,jn="auto";switch(Ue){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Or=!0;break;case"\\\\atopfrac":Or=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Or=!1,Qr="(",dn=")";break;case"\\\\bracefrac":Or=!1,Qr="\\{",dn="\\}";break;case"\\\\brackfrac":Or=!1,Qr="[",dn="]";break;default:throw new Error("Unrecognized genfrac command")}switch(Ue){case"\\cfrac":case"\\dfrac":case"\\dbinom":jn="display";break;case"\\tfrac":case"\\tbinom":jn="text";break}return{type:"genfrac",mode:be.mode,continued:Ue==="\\cfrac",numer:pt,denom:Xt,hasBarLine:Or,leftDelim:Qr,rightDelim:dn,size:jn,barSize:null}},htmlBuilder:br,mathmlBuilder:mn}),Nt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ne){var pe=ne.parser,be=ne.funcName,Ue=ne.token,pt;switch(be){case"\\over":pt="\\frac";break;case"\\choose":pt="\\binom";break;case"\\atop":pt="\\\\atopfrac";break;case"\\brace":pt="\\\\bracefrac";break;case"\\brack":pt="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:pe.mode,replaceWith:pt,token:Ue}}});var Kn=["display","text","script","scriptscript"],Wn=function(ne){var pe=null;return ne.length>0&&(pe=ne,pe=pe==="."?null:pe),pe};Nt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ne,pe){var be=ne.parser,Ue=pe[4],pt=pe[5],Xt=an(pe[0],"atom");Xt&&(Xt=Pr(pe[0],"open"));var Or=Xt?Wn(Xt.text):null,Qr=an(pe[1],"atom");Qr&&(Qr=Pr(pe[1],"close"));var dn=Qr?Wn(Qr.text):null,jn=un(pe[2],"size"),ai,Qn=null;jn.isBlank?ai=!0:(Qn=jn.value,ai=Qn.number>0);var Di="auto",Vi=an(pe[3],"ordgroup");if(Vi){if(Vi.body.length>0){var Ta=un(Vi.body[0],"textord");Di=Kn[Number(Ta.text)]}}else Vi=un(pe[3],"textord"),Di=Kn[Number(Vi.text)];return{type:"genfrac",mode:be.mode,numer:Ue,denom:pt,continued:!1,hasBarLine:ai,barSize:Qn,leftDelim:Or,rightDelim:dn,size:Di}},htmlBuilder:br,mathmlBuilder:mn}),Nt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=ne.token;return{type:"infix",mode:be.mode,replaceWith:"\\\\abovefrac",size:un(pe[0],"size").value,token:pt}}}),Nt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=pe[0],Xt=u(un(pe[1],"infix").size),Or=pe[2],Qr=Xt.number>0;return{type:"genfrac",mode:be.mode,numer:pt,denom:Or,continued:!1,hasBarLine:Qr,barSize:Xt,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:br,mathmlBuilder:mn});var Ln=function(ne,pe){var be=pe.style,Ue,pt,Xt=an(ne,"supsub");Xt?(Ue=Xt.sup?Oi(Xt.sup,pe.havingStyle(be.sup()),pe):Oi(Xt.sub,pe.havingStyle(be.sub()),pe),pt=un(Xt.base,"horizBrace")):pt=un(ne,"horizBrace");var Or=Oi(pt.base,pe.havingBaseStyle(j.DISPLAY)),Qr=wo.svgSpan(pt,pe),dn;if(pt.isOver?(dn=sr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Or},{type:"kern",size:.1},{type:"elem",elem:Qr}]},pe),dn.children[0].children[0].children[1].classes.push("svg-align")):(dn=sr.makeVList({positionType:"bottom",positionData:Or.depth+.1+Qr.height,children:[{type:"elem",elem:Qr},{type:"kern",size:.1},{type:"elem",elem:Or}]},pe),dn.children[0].children[0].children[0].classes.push("svg-align")),Ue){var jn=sr.makeSpan(["mord",pt.isOver?"mover":"munder"],[dn],pe);pt.isOver?dn=sr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:jn},{type:"kern",size:.2},{type:"elem",elem:Ue}]},pe):dn=sr.makeVList({positionType:"bottom",positionData:jn.depth+.2+Ue.height+Ue.depth,children:[{type:"elem",elem:Ue},{type:"kern",size:.2},{type:"elem",elem:jn}]},pe)}return sr.makeSpan(["mord",pt.isOver?"mover":"munder"],[dn],pe)},$n=function(ne,pe){var be=wo.mathMLnode(ne.label);return new bi.MathNode(ne.isOver?"mover":"munder",[Hi(ne.base,pe),be])};Nt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName;return{type:"horizBrace",mode:be.mode,label:Ue,isOver:/^\\over/.test(Ue),base:pe[0]}},htmlBuilder:Ln,mathmlBuilder:$n}),Nt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ne,pe){var be=ne.parser,Ue=pe[1],pt=un(pe[0],"url").url;return be.settings.isTrusted({command:"\\href",url:pt})?{type:"href",mode:be.mode,href:pt,body:Gr(Ue)}:be.formatUnsupportedCmd("\\href")},htmlBuilder:function(ne,pe){var be=hn(ne.body,pe,!1);return sr.makeAnchor(ne.href,[],be,pe)},mathmlBuilder:function(ne,pe){var be=ca(ne.body,pe);return be instanceof ma||(be=new ma("mrow",[be])),be.setAttribute("href",ne.href),be}}),Nt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ne,pe){var be=ne.parser,Ue=un(pe[0],"url").url;if(!be.settings.isTrusted({command:"\\url",url:Ue}))return be.formatUnsupportedCmd("\\url");for(var pt=[],Xt=0;Xt<Ue.length;Xt++){var Or=Ue[Xt];Or==="~"&&(Or="\\textasciitilde"),pt.push({type:"textord",mode:"text",text:Or})}var Qr={type:"text",mode:be.mode,font:"\\texttt",body:pt};return{type:"href",mode:be.mode,href:Ue,body:Gr(Qr)}}}),Nt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ne,pe){var be=ne.parser;return{type:"htmlmathml",mode:be.mode,html:Gr(pe[0]),mathml:Gr(pe[1])}},htmlBuilder:function(ne,pe){var be=hn(ne.html,pe,!1);return sr.makeFragment(be)},mathmlBuilder:function(ne,pe){return ca(ne.mathml,pe)}});var Un=function(ne){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(ne))return{number:+ne,unit:"bp"};var pe=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(ne);if(!pe)throw new c("Invalid size: '"+ne+"' in \\includegraphics");var be={number:+(pe[1]+pe[2]),unit:pe[3]};if(!Ar(be))throw new c("Invalid unit: '"+be.unit+"' in \\includegraphics.");return be};Nt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ne,pe,be){var Ue=ne.parser,pt={number:0,unit:"em"},Xt={number:.9,unit:"em"},Or={number:0,unit:"em"},Qr="";if(be[0])for(var dn=un(be[0],"raw").string,jn=dn.split(","),ai=0;ai<jn.length;ai++){var Qn=jn[ai].split("=");if(Qn.length===2){var Di=Qn[1].trim();switch(Qn[0].trim()){case"alt":Qr=Di;break;case"width":pt=Un(Di);break;case"height":Xt=Un(Di);break;case"totalheight":Or=Un(Di);break;default:throw new c("Invalid key: '"+Qn[0]+"' in \\includegraphics.")}}}var Vi=un(pe[0],"url").url;return Qr===""&&(Qr=Vi,Qr=Qr.replace(/^.*[\\/]/,""),Qr=Qr.substring(0,Qr.lastIndexOf("."))),Ue.settings.isTrusted({command:"\\includegraphics",url:Vi})?{type:"includegraphics",mode:Ue.mode,alt:Qr,width:pt,height:Xt,totalheight:Or,src:Vi}:Ue.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ne,pe){var be=ir(ne.height,pe),Ue=0;ne.totalheight.number>0&&(Ue=ir(ne.totalheight,pe)-be,Ue=Number(Ue.toFixed(2)));var pt=0;ne.width.number>0&&(pt=ir(ne.width,pe));var Xt={height:be+Ue+"em"};pt>0&&(Xt.width=pt+"em"),Ue>0&&(Xt.verticalAlign=-Ue+"em");var Or=new ye(ne.src,ne.alt,Xt);return Or.height=be,Or.depth=Ue,Or},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mglyph",[]);be.setAttribute("alt",ne.alt);var Ue=ir(ne.height,pe),pt=0;if(ne.totalheight.number>0&&(pt=ir(ne.totalheight,pe)-Ue,pt=pt.toFixed(2),be.setAttribute("valign","-"+pt+"em")),be.setAttribute("height",Ue+pt+"em"),ne.width.number>0){var Xt=ir(ne.width,pe);be.setAttribute("width",Xt+"em")}return be.setAttribute("src",ne.src),be}}),Nt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=un(pe[0],"size");if(be.settings.strict){var Xt=Ue[1]==="m",Or=pt.value.unit==="mu";Xt?(Or||be.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Ue+" supports only mu units, "+("not "+pt.value.unit+" units")),be.mode!=="math"&&be.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Ue+" works only in math mode")):Or&&be.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Ue+" doesn't support mu units")}return{type:"kern",mode:be.mode,dimension:pt.value}},htmlBuilder:function(ne,pe){return sr.makeGlue(ne.dimension,pe)},mathmlBuilder:function(ne,pe){var be=ir(ne.dimension,pe);return new bi.SpaceNode(be)}}),Nt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=pe[0];return{type:"lap",mode:be.mode,alignment:Ue.slice(5),body:pt}},htmlBuilder:function(ne,pe){var be;ne.alignment==="clap"?(be=sr.makeSpan([],[Oi(ne.body,pe)]),be=sr.makeSpan(["inner"],[be],pe)):be=sr.makeSpan(["inner"],[Oi(ne.body,pe)]);var Ue=sr.makeSpan(["fix"],[]),pt=sr.makeSpan([ne.alignment],[be,Ue],pe),Xt=sr.makeSpan(["strut"]);return Xt.style.height=pt.height+pt.depth+"em",Xt.style.verticalAlign=-pt.depth+"em",pt.children.unshift(Xt),pt=sr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:pt}]},pe),sr.makeSpan(["mord"],[pt],pe)},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mpadded",[Hi(ne.body,pe)]);if(ne.alignment!=="rlap"){var Ue=ne.alignment==="llap"?"-1":"-0.5";be.setAttribute("lspace",Ue+"width")}return be.setAttribute("width","0px"),be}}),Nt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ne,pe){var be=ne.funcName,Ue=ne.parser,pt=Ue.mode;Ue.switchMode("math");var Xt=be==="\\("?"\\)":"$",Or=Ue.parseExpression(!1,Xt);return Ue.expect(Xt),Ue.switchMode(pt),{type:"styling",mode:Ue.mode,style:"text",body:Or}}}),Nt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ne,pe){throw new c("Mismatched "+ne.funcName)}});var ti=function(ne,pe){switch(pe.style.size){case j.DISPLAY.size:return ne.display;case j.TEXT.size:return ne.text;case j.SCRIPT.size:return ne.script;case j.SCRIPTSCRIPT.size:return ne.scriptscript;default:return ne.text}};Nt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ne,pe){var be=ne.parser;return{type:"mathchoice",mode:be.mode,display:Gr(pe[0]),text:Gr(pe[1]),script:Gr(pe[2]),scriptscript:Gr(pe[3])}},htmlBuilder:function(ne,pe){var be=ti(ne,pe),Ue=hn(be,pe,!1);return sr.makeFragment(Ue)},mathmlBuilder:function(ne,pe){var be=ti(ne,pe);return ca(be,pe)}});var Xn=function(ne,pe,be,Ue,pt,Xt,Or){ne=sr.makeSpan([],[ne]);var Qr,dn;if(pe){var jn=Oi(pe,Ue.havingStyle(pt.sup()),Ue);dn={elem:jn,kern:Math.max(Ue.fontMetrics().bigOpSpacing1,Ue.fontMetrics().bigOpSpacing3-jn.depth)}}if(be){var ai=Oi(be,Ue.havingStyle(pt.sub()),Ue);Qr={elem:ai,kern:Math.max(Ue.fontMetrics().bigOpSpacing2,Ue.fontMetrics().bigOpSpacing4-ai.height)}}var Qn;if(dn&&Qr){var Di=Ue.fontMetrics().bigOpSpacing5+Qr.elem.height+Qr.elem.depth+Qr.kern+ne.depth+Or;Qn=sr.makeVList({positionType:"bottom",positionData:Di,children:[{type:"kern",size:Ue.fontMetrics().bigOpSpacing5},{type:"elem",elem:Qr.elem,marginLeft:-Xt+"em"},{type:"kern",size:Qr.kern},{type:"elem",elem:ne},{type:"kern",size:dn.kern},{type:"elem",elem:dn.elem,marginLeft:Xt+"em"},{type:"kern",size:Ue.fontMetrics().bigOpSpacing5}]},Ue)}else if(Qr){var Vi=ne.height-Or;Qn=sr.makeVList({positionType:"top",positionData:Vi,children:[{type:"kern",size:Ue.fontMetrics().bigOpSpacing5},{type:"elem",elem:Qr.elem,marginLeft:-Xt+"em"},{type:"kern",size:Qr.kern},{type:"elem",elem:ne}]},Ue)}else if(dn){var Ta=ne.depth+Or;Qn=sr.makeVList({positionType:"bottom",positionData:Ta,children:[{type:"elem",elem:ne},{type:"kern",size:dn.kern},{type:"elem",elem:dn.elem,marginLeft:Xt+"em"},{type:"kern",size:Ue.fontMetrics().bigOpSpacing5}]},Ue)}else return ne;return sr.makeSpan(["mop","op-limits"],[Qn],Ue)},wi=["\\smallint"],Ei=function(ne,pe){var be,Ue,pt=!1,Xt,Or=an(ne,"supsub");Or?(be=Or.sup,Ue=Or.sub,Xt=un(Or.base,"op"),pt=!0):Xt=un(ne,"op");var Qr=pe.style,dn=!1;Qr.size===j.DISPLAY.size&&Xt.symbol&&!p.contains(wi,Xt.name)&&(dn=!0);var jn;if(Xt.symbol){var ai=dn?"Size2-Regular":"Size1-Regular",Qn="";if((Xt.name==="\\oiint"||Xt.name==="\\oiiint")&&(Qn=Xt.name.substr(1),Xt.name=Qn==="oiint"?"\\iint":"\\iiint"),jn=sr.makeSymbol(Xt.name,ai,"math",pe,["mop","op-symbol",dn?"large-op":"small-op"]),Qn.length>0){var Di=jn.italic,Vi=sr.staticSvg(Qn+"Size"+(dn?"2":"1"),pe);jn=sr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:jn,shift:0},{type:"elem",elem:Vi,shift:dn?.08:0}]},pe),Xt.name="\\"+Qn,jn.classes.unshift("mop"),jn.italic=Di}}else if(Xt.body){var Ta=hn(Xt.body,pe,!0);Ta.length===1&&Ta[0]instanceof Te?(jn=Ta[0],jn.classes[0]="mop"):jn=sr.makeSpan(["mop"],sr.tryCombineChars(Ta),pe)}else{for(var Ga=[],ao=1;ao<Xt.name.length;ao++)Ga.push(sr.mathsym(Xt.name[ao],Xt.mode,pe));jn=sr.makeSpan(["mop"],Ga,pe)}var Do=0,fo=0;return(jn instanceof Te||Xt.name==="\\oiint"||Xt.name==="\\oiiint")&&!Xt.suppressBaseShift&&(Do=(jn.height-jn.depth)/2-pe.fontMetrics().axisHeight,fo=jn.italic),pt?Xn(jn,be,Ue,pe,Qr,fo,Do):(Do&&(jn.style.position="relative",jn.style.top=Do+"em"),jn)},Zi=function(ne,pe){var be;if(ne.symbol)be=new ma("mo",[xn(ne.name,ne.mode)]),p.contains(wi,ne.name)&&be.setAttribute("largeop","false");else if(ne.body)be=new ma("mo",Yi(ne.body,pe));else{be=new ma("mi",[new la(ne.name.slice(1))]);var Ue=new ma("mo",[xn("\u2061","text")]);ne.parentIsSupSub?be=new ma("mo",[be,Ue]):be=Ji([be,Ue])}return be},ua={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Nt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=Ue;return pt.length===1&&(pt=ua[pt]),{type:"op",mode:be.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:pt}},htmlBuilder:Ei,mathmlBuilder:Zi}),Nt({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser,Ue=pe[0];return{type:"op",mode:be.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Gr(Ue)}},htmlBuilder:Ei,mathmlBuilder:Zi});var Xi={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Nt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(ne){var pe=ne.parser,be=ne.funcName;return{type:"op",mode:pe.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:be}},htmlBuilder:Ei,mathmlBuilder:Zi}),Nt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ne){var pe=ne.parser,be=ne.funcName;return{type:"op",mode:pe.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:be}},htmlBuilder:Ei,mathmlBuilder:Zi}),Nt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ne){var pe=ne.parser,be=ne.funcName,Ue=be;return Ue.length===1&&(Ue=Xi[Ue]),{type:"op",mode:pe.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Ue}},htmlBuilder:Ei,mathmlBuilder:Zi});var Gi=function(ne,pe){var be,Ue,pt=!1,Xt,Or=an(ne,"supsub");Or?(be=Or.sup,Ue=Or.sub,Xt=un(Or.base,"operatorname"),pt=!0):Xt=un(ne,"operatorname");var Qr;if(Xt.body.length>0){for(var dn=Xt.body.map(function(Di){var Vi=Di.text;return typeof Vi=="string"?{type:"textord",mode:Di.mode,text:Vi}:Di}),jn=hn(dn,pe.withFont("mathrm"),!0),ai=0;ai<jn.length;ai++){var Qn=jn[ai];Qn instanceof Te&&(Qn.text=Qn.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Qr=sr.makeSpan(["mop"],jn,pe)}else Qr=sr.makeSpan(["mop"],[],pe);return pt?Xn(Qr,be,Ue,pe,pe.style,0,0):Qr},wa=function(ne,pe){for(var be=Yi(ne.body,pe.withFont("mathrm")),Ue=!0,pt=0;pt<be.length;pt++){var Xt=be[pt];if(!(Xt instanceof bi.SpaceNode))if(Xt instanceof bi.MathNode)switch(Xt.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Or=Xt.children[0];Xt.children.length===1&&Or instanceof bi.TextNode?Or.text=Or.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Ue=!1;break}default:Ue=!1}else Ue=!1}if(Ue){var Qr=be.map(function(ai){return ai.toText()}).join("");be=[new bi.TextNode(Qr)]}var dn=new bi.MathNode("mi",be);dn.setAttribute("mathvariant","normal");var jn=new bi.MathNode("mo",[xn("\u2061","text")]);return ne.parentIsSupSub?new bi.MathNode("mo",[dn,jn]):bi.newDocumentFragment([dn,jn])};Nt({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=pe[0];return{type:"operatorname",mode:be.mode,body:Gr(pt),alwaysHandleSupSub:Ue==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:Gi,mathmlBuilder:wa}),wr({type:"ordgroup",htmlBuilder:function(ne,pe){return ne.semisimple?sr.makeFragment(hn(ne.body,pe,!1)):sr.makeSpan(["mord"],hn(ne.body,pe,!0),pe)},mathmlBuilder:function(ne,pe){return ca(ne.body,pe,!0)}}),Nt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ne,pe){var be=ne.parser,Ue=pe[0];return{type:"overline",mode:be.mode,body:Ue}},htmlBuilder:function(ne,pe){var be=Oi(ne.body,pe.havingCrampedStyle()),Ue=sr.makeLineSpan("overline-line",pe),pt=pe.fontMetrics().defaultRuleThickness,Xt=sr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be},{type:"kern",size:3*pt},{type:"elem",elem:Ue},{type:"kern",size:pt}]},pe);return sr.makeSpan(["mord","overline"],[Xt],pe)},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mo",[new bi.TextNode("\u203E")]);be.setAttribute("stretchy","true");var Ue=new bi.MathNode("mover",[Hi(ne.body,pe),be]);return Ue.setAttribute("accent","true"),Ue}}),Nt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ne,pe){var be=ne.parser,Ue=pe[0];return{type:"phantom",mode:be.mode,body:Gr(Ue)}},htmlBuilder:function(ne,pe){var be=hn(ne.body,pe.withPhantom(),!1);return sr.makeFragment(be)},mathmlBuilder:function(ne,pe){var be=Yi(ne.body,pe);return new bi.MathNode("mphantom",be)}}),Nt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ne,pe){var be=ne.parser,Ue=pe[0];return{type:"hphantom",mode:be.mode,body:Ue}},htmlBuilder:function(ne,pe){var be=sr.makeSpan([],[Oi(ne.body,pe.withPhantom())]);if(be.height=0,be.depth=0,be.children)for(var Ue=0;Ue<be.children.length;Ue++)be.children[Ue].height=0,be.children[Ue].depth=0;return be=sr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be}]},pe),sr.makeSpan(["mord"],[be],pe)},mathmlBuilder:function(ne,pe){var be=Yi(Gr(ne.body),pe),Ue=new bi.MathNode("mphantom",be),pt=new bi.MathNode("mpadded",[Ue]);return pt.setAttribute("height","0px"),pt.setAttribute("depth","0px"),pt}}),Nt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ne,pe){var be=ne.parser,Ue=pe[0];return{type:"vphantom",mode:be.mode,body:Ue}},htmlBuilder:function(ne,pe){var be=sr.makeSpan(["inner"],[Oi(ne.body,pe.withPhantom())]),Ue=sr.makeSpan(["fix"],[]);return sr.makeSpan(["mord","rlap"],[be,Ue],pe)},mathmlBuilder:function(ne,pe){var be=Yi(Gr(ne.body),pe),Ue=new bi.MathNode("mphantom",be),pt=new bi.MathNode("mpadded",[Ue]);return pt.setAttribute("width","0px"),pt}}),Nt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ne,pe){var be=ne.parser,Ue=un(pe[0],"size").value,pt=pe[1];return{type:"raisebox",mode:be.mode,dy:Ue,body:pt}},htmlBuilder:function(ne,pe){var be=Oi(ne.body,pe),Ue=ir(ne.dy,pe);return sr.makeVList({positionType:"shift",positionData:-Ue,children:[{type:"elem",elem:be}]},pe)},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mpadded",[Hi(ne.body,pe)]),Ue=ne.dy.number+ne.dy.unit;return be.setAttribute("voffset",Ue),be}}),Nt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ne,pe,be){var Ue=ne.parser,pt=be[0],Xt=un(pe[0],"size"),Or=un(pe[1],"size");return{type:"rule",mode:Ue.mode,shift:pt&&un(pt,"size").value,width:Xt.value,height:Or.value}},htmlBuilder:function(ne,pe){var be=sr.makeSpan(["mord","rule"],[],pe),Ue=ir(ne.width,pe),pt=ir(ne.height,pe),Xt=ne.shift?ir(ne.shift,pe):0;return be.style.borderRightWidth=Ue+"em",be.style.borderTopWidth=pt+"em",be.style.bottom=Xt+"em",be.width=Ue,be.height=pt+Xt,be.depth=-Xt,be.maxFontSize=pt*1.125*pe.sizeMultiplier,be},mathmlBuilder:function(ne,pe){var be=ir(ne.width,pe),Ue=ir(ne.height,pe),pt=ne.shift?ir(ne.shift,pe):0,Xt=pe.color&&pe.getColor()||"black",Or=new bi.MathNode("mspace");Or.setAttribute("mathbackground",Xt),Or.setAttribute("width",be+"em"),Or.setAttribute("height",Ue+"em");var Qr=new bi.MathNode("mpadded",[Or]);return pt>=0?Qr.setAttribute("height","+"+pt+"em"):(Qr.setAttribute("height",pt+"em"),Qr.setAttribute("depth","+"+-pt+"em")),Qr.setAttribute("voffset",pt+"em"),Qr}});function na(ht,ne,pe){for(var be=hn(ht,ne,!1),Ue=ne.sizeMultiplier/pe.sizeMultiplier,pt=0;pt<be.length;pt++){var Xt=be[pt].classes.indexOf("sizing");Xt<0?Array.prototype.push.apply(be[pt].classes,ne.sizingClasses(pe)):be[pt].classes[Xt+1]==="reset-size"+ne.size&&(be[pt].classes[Xt+1]="reset-size"+pe.size),be[pt].height*=Ue,be[pt].depth*=Ue}return sr.makeFragment(be)}var mo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ca=function(ne,pe){var be=pe.havingSize(ne.size);return na(ne.body,be,pe)};Nt({type:"sizing",names:mo,props:{numArgs:0,allowedInText:!0},handler:function(ne,pe){var be=ne.breakOnTokenText,Ue=ne.funcName,pt=ne.parser,Xt=pt.parseExpression(!1,be);return{type:"sizing",mode:pt.mode,size:mo.indexOf(Ue)+1,body:Xt}},htmlBuilder:Ca,mathmlBuilder:function(ne,pe){var be=pe.havingSize(ne.size),Ue=Yi(ne.body,be),pt=new bi.MathNode("mstyle",Ue);return pt.setAttribute("mathsize",be.sizeMultiplier+"em"),pt}}),Nt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ne,pe,be){var Ue=ne.parser,pt=!1,Xt=!1,Or=be[0]&&un(be[0],"ordgroup");if(Or)for(var Qr="",dn=0;dn<Or.body.length;++dn){var jn=Or.body[dn];if(Qr=jn.text,Qr==="t")pt=!0;else if(Qr==="b")Xt=!0;else{pt=!1,Xt=!1;break}}else pt=!0,Xt=!0;var ai=pe[0];return{type:"smash",mode:Ue.mode,body:ai,smashHeight:pt,smashDepth:Xt}},htmlBuilder:function(ne,pe){var be=sr.makeSpan([],[Oi(ne.body,pe)]);if(!ne.smashHeight&&!ne.smashDepth)return be;if(ne.smashHeight&&(be.height=0,be.children))for(var Ue=0;Ue<be.children.length;Ue++)be.children[Ue].height=0;if(ne.smashDepth&&(be.depth=0,be.children))for(var pt=0;pt<be.children.length;pt++)be.children[pt].depth=0;var Xt=sr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be}]},pe);return sr.makeSpan(["mord"],[Xt],pe)},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mpadded",[Hi(ne.body,pe)]);return ne.smashHeight&&be.setAttribute("height","0px"),ne.smashDepth&&be.setAttribute("depth","0px"),be}}),Nt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ne,pe,be){var Ue=ne.parser,pt=be[0],Xt=pe[0];return{type:"sqrt",mode:Ue.mode,body:Xt,index:pt}},htmlBuilder:function(ne,pe){var be=Oi(ne.body,pe.havingCrampedStyle());be.height===0&&(be.height=pe.fontMetrics().xHeight),be=sr.wrapFragment(be,pe);var Ue=pe.fontMetrics(),pt=Ue.defaultRuleThickness,Xt=pt;pe.style.id<j.TEXT.id&&(Xt=pe.fontMetrics().xHeight);var Or=pt+Xt/4,Qr=be.height+be.depth+Or+pt,dn=di.sqrtImage(Qr,pe),jn=dn.span,ai=dn.ruleWidth,Qn=dn.advanceWidth,Di=jn.height-ai;Di>be.height+be.depth+Or&&(Or=(Or+Di-be.height-be.depth)/2);var Vi=jn.height-be.height-Or-ai;be.style.paddingLeft=Qn+"em";var Ta=sr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:be,wrapperClasses:["svg-align"]},{type:"kern",size:-(be.height+Vi)},{type:"elem",elem:jn},{type:"kern",size:ai}]},pe);if(ne.index){var Ga=pe.havingStyle(j.SCRIPTSCRIPT),ao=Oi(ne.index,Ga,pe),Do=.6*(Ta.height-Ta.depth),fo=sr.makeVList({positionType:"shift",positionData:-Do,children:[{type:"elem",elem:ao}]},pe),as=sr.makeSpan(["root"],[fo]);return sr.makeSpan(["mord","sqrt"],[as,Ta],pe)}else return sr.makeSpan(["mord","sqrt"],[Ta],pe)},mathmlBuilder:function(ne,pe){var be=ne.body,Ue=ne.index;return Ue?new bi.MathNode("mroot",[Hi(be,pe),Hi(Ue,pe)]):new bi.MathNode("msqrt",[Hi(be,pe)])}});var qi={display:j.DISPLAY,text:j.TEXT,script:j.SCRIPT,scriptscript:j.SCRIPTSCRIPT};Nt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ne,pe){var be=ne.breakOnTokenText,Ue=ne.funcName,pt=ne.parser,Xt=pt.parseExpression(!0,be),Or=Ue.slice(1,Ue.length-5);return{type:"styling",mode:pt.mode,style:Or,body:Xt}},htmlBuilder:function(ne,pe){var be=qi[ne.style],Ue=pe.havingStyle(be).withFont("");return na(ne.body,Ue,pe)},mathmlBuilder:function(ne,pe){var be=qi[ne.style],Ue=pe.havingStyle(be),pt=Yi(ne.body,Ue),Xt=new bi.MathNode("mstyle",pt),Or={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},Qr=Or[ne.style];return Xt.setAttribute("scriptlevel",Qr[0]),Xt.setAttribute("displaystyle",Qr[1]),Xt}});var aa=function(ne,pe){var be=ne.base;if(be)if(be.type==="op"){var Ue=be.limits&&(pe.style.size===j.DISPLAY.size||be.alwaysHandleSupSub);return Ue?Ei:null}else if(be.type==="operatorname"){var pt=be.alwaysHandleSupSub&&(pe.style.size===j.DISPLAY.size||be.limits);return pt?Gi:null}else{if(be.type==="accent")return p.isCharacterBox(be.base)?_o:null;if(be.type==="horizBrace"){var Xt=!ne.sub;return Xt===be.isOver?Ln:null}else return null}else return null};wr({type:"supsub",htmlBuilder:function(ne,pe){var be=aa(ne,pe);if(be)return be(ne,pe);var Ue=ne.base,pt=ne.sup,Xt=ne.sub,Or=Oi(Ue,pe),Qr,dn,jn=pe.fontMetrics(),ai=0,Qn=0,Di=Ue&&p.isCharacterBox(Ue);if(pt){var Vi=pe.havingStyle(pe.style.sup());Qr=Oi(pt,Vi,pe),Di||(ai=Or.height-Vi.fontMetrics().supDrop*Vi.sizeMultiplier/pe.sizeMultiplier)}if(Xt){var Ta=pe.havingStyle(pe.style.sub());dn=Oi(Xt,Ta,pe),Di||(Qn=Or.depth+Ta.fontMetrics().subDrop*Ta.sizeMultiplier/pe.sizeMultiplier)}var Ga;pe.style===j.DISPLAY?Ga=jn.sup1:pe.style.cramped?Ga=jn.sup3:Ga=jn.sup2;var ao=pe.sizeMultiplier,Do=.5/jn.ptPerEm/ao+"em",fo=null;if(dn){var as=ne.base&&ne.base.type==="op"&&ne.base.name&&(ne.base.name==="\\oiint"||ne.base.name==="\\oiiint");(Or instanceof Te||as)&&(fo=-Or.italic+"em")}var io;if(Qr&&dn){ai=Math.max(ai,Ga,Qr.depth+.25*jn.xHeight),Qn=Math.max(Qn,jn.sub2);var Xa=jn.defaultRuleThickness,Ya=4*Xa;if(ai-Qr.depth-(dn.height-Qn)<Ya){Qn=Ya-(ai-Qr.depth)+dn.height;var ka=.8*jn.xHeight-(ai-Qr.depth);ka>0&&(ai+=ka,Qn-=ka)}var os=[{type:"elem",elem:dn,shift:Qn,marginRight:Do,marginLeft:fo},{type:"elem",elem:Qr,shift:-ai,marginRight:Do}];io=sr.makeVList({positionType:"individualShift",children:os},pe)}else if(dn){Qn=Math.max(Qn,jn.sub1,dn.height-.8*jn.xHeight);var Es=[{type:"elem",elem:dn,marginLeft:fo,marginRight:Do}];io=sr.makeVList({positionType:"shift",positionData:Qn,children:Es},pe)}else if(Qr)ai=Math.max(ai,Ga,Qr.depth+.25*jn.xHeight),io=sr.makeVList({positionType:"shift",positionData:-ai,children:[{type:"elem",elem:Qr,marginRight:Do}]},pe);else throw new Error("supsub must have either sup or sub.");var qo=Vn(Or,"right")||"mord";return sr.makeSpan([qo],[Or,sr.makeSpan(["msupsub"],[io])],pe)},mathmlBuilder:function(ne,pe){var be=!1,Ue,pt,Xt=an(ne.base,"horizBrace");Xt&&(pt=!!ne.sup,pt===Xt.isOver&&(be=!0,Ue=Xt.isOver)),ne.base&&(ne.base.type==="op"||ne.base.type==="operatorname")&&(ne.base.parentIsSupSub=!0);var Or=[Hi(ne.base,pe)];ne.sub&&Or.push(Hi(ne.sub,pe)),ne.sup&&Or.push(Hi(ne.sup,pe));var Qr;if(be)Qr=Ue?"mover":"munder";else if(ne.sub)if(ne.sup){var ai=ne.base;ai&&ai.type==="op"&&ai.limits&&pe.style===j.DISPLAY||ai&&ai.type==="operatorname"&&ai.alwaysHandleSupSub&&(pe.style===j.DISPLAY||ai.limits)?Qr="munderover":Qr="msubsup"}else{var jn=ne.base;jn&&jn.type==="op"&&jn.limits&&(pe.style===j.DISPLAY||jn.alwaysHandleSupSub)||jn&&jn.type==="operatorname"&&jn.alwaysHandleSupSub&&(jn.limits||pe.style===j.DISPLAY)?Qr="munder":Qr="msub"}else{var dn=ne.base;dn&&dn.type==="op"&&dn.limits&&(pe.style===j.DISPLAY||dn.alwaysHandleSupSub)||dn&&dn.type==="operatorname"&&dn.alwaysHandleSupSub&&(dn.limits||pe.style===j.DISPLAY)?Qr="mover":Qr="msup"}var Qn=new bi.MathNode(Qr,Or);return Qn}}),wr({type:"atom",htmlBuilder:function(ne,pe){return sr.mathsym(ne.text,ne.mode,pe,["m"+ne.family])},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mo",[xn(ne.text,ne.mode)]);if(ne.family==="bin"){var Ue=oa(ne,pe);Ue==="bold-italic"&&be.setAttribute("mathvariant",Ue)}else ne.family==="punct"?be.setAttribute("separator","true"):(ne.family==="open"||ne.family==="close")&&be.setAttribute("stretchy","false");return be}});var $i={mi:"italic",mn:"normal",mtext:"normal"};wr({type:"mathord",htmlBuilder:function(ne,pe){return sr.makeOrd(ne,pe,"mathord")},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mi",[xn(ne.text,ne.mode,pe)]),Ue=oa(ne,pe)||"italic";return Ue!==$i[be.type]&&be.setAttribute("mathvariant",Ue),be}}),wr({type:"textord",htmlBuilder:function(ne,pe){return sr.makeOrd(ne,pe,"textord")},mathmlBuilder:function(ne,pe){var be=xn(ne.text,ne.mode,pe),Ue=oa(ne,pe)||"normal",pt;return ne.mode==="text"?pt=new bi.MathNode("mtext",[be]):/[0-9]/.test(ne.text)?pt=new bi.MathNode("mn",[be]):ne.text==="\\prime"?pt=new bi.MathNode("mo",[be]):pt=new bi.MathNode("mi",[be]),Ue!==$i[pt.type]&&pt.setAttribute("mathvariant",Ue),pt}});var Aa={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},ya={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};wr({type:"spacing",htmlBuilder:function(ne,pe){if(ya.hasOwnProperty(ne.text)){var be=ya[ne.text].className||"";if(ne.mode==="text"){var Ue=sr.makeOrd(ne,pe,"textord");return Ue.classes.push(be),Ue}else return sr.makeSpan(["mspace",be],[sr.mathsym(ne.text,ne.mode,pe)],pe)}else{if(Aa.hasOwnProperty(ne.text))return sr.makeSpan(["mspace",Aa[ne.text]],[],pe);throw new c('Unknown type of space "'+ne.text+'"')}},mathmlBuilder:function(ne,pe){var be;if(ya.hasOwnProperty(ne.text))be=new bi.MathNode("mtext",[new bi.TextNode("\xA0")]);else{if(Aa.hasOwnProperty(ne.text))return new bi.MathNode("mspace");throw new c('Unknown type of space "'+ne.text+'"')}return be}});var Ha=function(){var ne=new bi.MathNode("mtd",[]);return ne.setAttribute("width","50%"),ne};wr({type:"tag",mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mtable",[new bi.MathNode("mtr",[Ha(),new bi.MathNode("mtd",[ca(ne.body,pe)]),Ha(),new bi.MathNode("mtd",[ca(ne.tag,pe)])])]);return be.setAttribute("width","100%"),be}});var ta={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ra={"\\textbf":"textbf","\\textmd":"textmd"},_a={"\\textit":"textit","\\textup":"textup"},Ka=function(ne,pe){var be=ne.font;return be?ta[be]?pe.withTextFontFamily(ta[be]):ra[be]?pe.withTextFontWeight(ra[be]):pe.withTextFontShape(_a[be]):pe};Nt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ne,pe){var be=ne.parser,Ue=ne.funcName,pt=pe[0];return{type:"text",mode:be.mode,body:Gr(pt),font:Ue}},htmlBuilder:function(ne,pe){var be=Ka(ne,pe),Ue=hn(ne.body,be,!0);return sr.makeSpan(["mord","text"],sr.tryCombineChars(Ue),be)},mathmlBuilder:function(ne,pe){var be=Ka(ne,pe);return ca(ne.body,be)}}),Nt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ne,pe){var be=ne.parser;return{type:"underline",mode:be.mode,body:pe[0]}},htmlBuilder:function(ne,pe){var be=Oi(ne.body,pe),Ue=sr.makeLineSpan("underline-line",pe),pt=pe.fontMetrics().defaultRuleThickness,Xt=sr.makeVList({positionType:"top",positionData:be.height,children:[{type:"kern",size:pt},{type:"elem",elem:Ue},{type:"kern",size:3*pt},{type:"elem",elem:be}]},pe);return sr.makeSpan(["mord","underline"],[Xt],pe)},mathmlBuilder:function(ne,pe){var be=new bi.MathNode("mo",[new bi.TextNode("\u203E")]);be.setAttribute("stretchy","true");var Ue=new bi.MathNode("munder",[Hi(ne.body,pe),be]);return Ue.setAttribute("accentunder","true"),Ue}}),Nt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ne,pe,be){throw new c("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ne,pe){for(var be=bo(ne),Ue=[],pt=pe.havingStyle(pe.style.text()),Xt=0;Xt<be.length;Xt++){var Or=be[Xt];Or==="~"&&(Or="\\textasciitilde"),Ue.push(sr.makeSymbol(Or,"Typewriter-Regular",ne.mode,pt,["mord","texttt"]))}return sr.makeSpan(["mord","text"].concat(pt.sizingClasses(pe)),sr.tryCombineChars(Ue),pt)},mathmlBuilder:function(ne,pe){var be=new bi.TextNode(bo(ne)),Ue=new bi.MathNode("mtext",[be]);return Ue.setAttribute("mathvariant","monospace"),Ue}});var bo=function(ne){return ne.body.replace(/ /g,ne.star?"\u2423":"\xA0")},ga=kr,go=ga,Sa=`[ \r
]`,Va="\\\\[a-zA-Z@]+",uo="\\\\[^\uD800-\uDFFF]",No=""+Va+Sa+"*",Po=new RegExp("^("+Va+")"+Sa+"*$"),to="[\u0300-\u036F]",Uo=new RegExp(to+"+$"),co="("+Sa+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(to+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(to+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+No)+("|"+uo+")"),fa=function(){function ht(pe,be){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=pe,this.settings=be,this.tokenRegex=new RegExp(co,"g"),this.catcodes={"%":14}}var ne=ht.prototype;return ne.setCatcode=function(be,Ue){this.catcodes[be]=Ue},ne.lex=function(){var be=this.input,Ue=this.tokenRegex.lastIndex;if(Ue===be.length)return new g("EOF",new b(this,Ue,Ue));var pt=this.tokenRegex.exec(be);if(pt===null||pt.index!==Ue)throw new c("Unexpected character: '"+be[Ue]+"'",new g(be[Ue],new b(this,Ue,Ue+1)));var Xt=pt[2]||" ";if(this.catcodes[Xt]===14){var Or=be.indexOf(`
`,this.tokenRegex.lastIndex);return Or===-1?(this.tokenRegex.lastIndex=be.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=Or+1,this.lex()}var Qr=Xt.match(Po);return Qr&&(Xt=Qr[1]),new g(Xt,new b(this,Ue,this.tokenRegex.lastIndex))},ht}(),ro=function(){function ht(pe,be){pe===void 0&&(pe={}),be===void 0&&(be={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=be,this.builtins=pe,this.undefStack=[]}var ne=ht.prototype;return ne.beginGroup=function(){this.undefStack.push({})},ne.endGroup=function(){if(this.undefStack.length===0)throw new c("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var be=this.undefStack.pop();for(var Ue in be)be.hasOwnProperty(Ue)&&(be[Ue]===void 0?delete this.current[Ue]:this.current[Ue]=be[Ue])},ne.has=function(be){return this.current.hasOwnProperty(be)||this.builtins.hasOwnProperty(be)},ne.get=function(be){return this.current.hasOwnProperty(be)?this.current[be]:this.builtins[be]},ne.set=function(be,Ue,pt){if(pt===void 0&&(pt=!1),pt){for(var Xt=0;Xt<this.undefStack.length;Xt++)delete this.undefStack[Xt][be];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][be]=Ue)}else{var Or=this.undefStack[this.undefStack.length-1];Or&&!Or.hasOwnProperty(be)&&(Or[be]=this.current[be])}this.current[be]=Ue},ht}(),Wa={},Ea=Wa;function Jr(ht,ne){Wa[ht]=ne}Jr("\\@firstoftwo",function(ht){var ne=ht.consumeArgs(2);return{tokens:ne[0],numArgs:0}}),Jr("\\@secondoftwo",function(ht){var ne=ht.consumeArgs(2);return{tokens:ne[1],numArgs:0}}),Jr("\\@ifnextchar",function(ht){var ne=ht.consumeArgs(3),pe=ht.future();return ne[0].length===1&&ne[0][0].text===pe.text?{tokens:ne[1],numArgs:0}:{tokens:ne[2],numArgs:0}}),Jr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Jr("\\TextOrMath",function(ht){var ne=ht.consumeArgs(2);return ht.mode==="text"?{tokens:ne[0],numArgs:0}:{tokens:ne[1],numArgs:0}});var za={"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};Jr("\\char",function(ht){var ne=ht.popToken(),pe,be="";if(ne.text==="'")pe=8,ne=ht.popToken();else if(ne.text==='"')pe=16,ne=ht.popToken();else if(ne.text==="`")if(ne=ht.popToken(),ne.text[0]==="\\")be=ne.text.charCodeAt(1);else{if(ne.text==="EOF")throw new c("\\char` missing argument");be=ne.text.charCodeAt(0)}else pe=10;if(pe){if(be=za[ne.text],be==null||be>=pe)throw new c("Invalid base-"+pe+" digit "+ne.text);for(var Ue;(Ue=za[ht.future().text])!=null&&Ue<pe;)be*=pe,be+=Ue,ht.popToken()}return"\\@char{"+be+"}"});var rs=function(ne,pe){var be=ne.consumeArgs(1)[0];if(be.length!==1)throw new c("\\gdef's first argument must be a macro name");var Ue=be[0].text,pt=0;for(be=ne.consumeArgs(1)[0];be.length===1&&be[0].text==="#";){if(be=ne.consumeArgs(1)[0],be.length!==1)throw new c('Invalid argument number length "'+be.length+'"');if(!/^[1-9]$/.test(be[0].text))throw new c('Invalid argument number "'+be[0].text+'"');if(pt++,parseInt(be[0].text)!==pt)throw new c('Argument number "'+be[0].text+'" out of order');be=ne.consumeArgs(1)[0]}return ne.macros.set(Ue,{tokens:be,numArgs:pt},pe),""};Jr("\\gdef",function(ht){return rs(ht,!0)}),Jr("\\def",function(ht){return rs(ht,!1)}),Jr("\\global",function(ht){var ne=ht.consumeArgs(1)[0];if(ne.length!==1)throw new c("Invalid command after \\global");var pe=ne[0].text;if(pe==="\\def")return rs(ht,!0);throw new c("Invalid command '"+pe+"' after \\global")});var Vo=function(ne,pe,be){var Ue=ne.consumeArgs(1)[0];if(Ue.length!==1)throw new c("\\newcommand's first argument must be a macro name");var pt=Ue[0].text,Xt=ne.isDefined(pt);if(Xt&&!pe)throw new c("\\newcommand{"+pt+"} attempting to redefine "+(pt+"; use \\renewcommand"));if(!Xt&&!be)throw new c("\\renewcommand{"+pt+"} when command "+pt+" does not yet exist; use \\newcommand");var Or=0;if(Ue=ne.consumeArgs(1)[0],Ue.length===1&&Ue[0].text==="["){for(var Qr="",dn=ne.expandNextToken();dn.text!=="]"&&dn.text!=="EOF";)Qr+=dn.text,dn=ne.expandNextToken();if(!Qr.match(/^\s*[0-9]+\s*$/))throw new c("Invalid number of arguments: "+Qr);Or=parseInt(Qr),Ue=ne.consumeArgs(1)[0]}return ne.macros.set(pt,{tokens:Ue,numArgs:Or}),""};Jr("\\newcommand",function(ht){return Vo(ht,!1,!0)}),Jr("\\renewcommand",function(ht){return Vo(ht,!0,!1)}),Jr("\\providecommand",function(ht){return Vo(ht,!0,!0)}),Jr("\\bgroup","{"),Jr("\\egroup","}"),Jr("\\lq","`"),Jr("\\rq","'"),Jr("\\aa","\\r a"),Jr("\\AA","\\r A"),Jr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Jr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Jr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Jr("\u212C","\\mathscr{B}"),Jr("\u2130","\\mathscr{E}"),Jr("\u2131","\\mathscr{F}"),Jr("\u210B","\\mathscr{H}"),Jr("\u2110","\\mathscr{I}"),Jr("\u2112","\\mathscr{L}"),Jr("\u2133","\\mathscr{M}"),Jr("\u211B","\\mathscr{R}"),Jr("\u212D","\\mathfrak{C}"),Jr("\u210C","\\mathfrak{H}"),Jr("\u2128","\\mathfrak{Z}"),Jr("\\Bbbk","\\Bbb{k}"),Jr("\xB7","\\cdotp"),Jr("\\llap","\\mathllap{\\textrm{#1}}"),Jr("\\rlap","\\mathrlap{\\textrm{#1}}"),Jr("\\clap","\\mathclap{\\textrm{#1}}"),Jr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Jr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Jr("\\ne","\\neq"),Jr("\u2260","\\neq"),Jr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Jr("\u2209","\\notin"),Jr("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Jr("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Jr("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Jr("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Jr("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Jr("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Jr("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Jr("\u27C2","\\perp"),Jr("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Jr("\u220C","\\notni"),Jr("\u231C","\\ulcorner"),Jr("\u231D","\\urcorner"),Jr("\u231E","\\llcorner"),Jr("\u231F","\\lrcorner"),Jr("\xA9","\\copyright"),Jr("\xAE","\\textregistered"),Jr("\uFE0F","\\textregistered"),Jr("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Jr("\u22EE","\\vdots"),Jr("\\varGamma","\\mathit{\\Gamma}"),Jr("\\varDelta","\\mathit{\\Delta}"),Jr("\\varTheta","\\mathit{\\Theta}"),Jr("\\varLambda","\\mathit{\\Lambda}"),Jr("\\varXi","\\mathit{\\Xi}"),Jr("\\varPi","\\mathit{\\Pi}"),Jr("\\varSigma","\\mathit{\\Sigma}"),Jr("\\varUpsilon","\\mathit{\\Upsilon}"),Jr("\\varPhi","\\mathit{\\Phi}"),Jr("\\varPsi","\\mathit{\\Psi}"),Jr("\\varOmega","\\mathit{\\Omega}"),Jr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Jr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Jr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Jr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Jr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Jr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Go={",":"\\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"};Jr("\\dots",function(ht){var ne="\\dotso",pe=ht.expandAfterFuture().text;return pe in Go?ne=Go[pe]:pe.substr(0,4)==="\\not"?ne="\\dotsb":pe in Xe.math&&(p.contains(["bin","rel"],Xe.math[pe].group)&&(ne="\\dotsb")),ne});var Qo={")":!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};Jr("\\dotso",function(ht){var ne=ht.future().text;return ne in Qo?"\\ldots\\,":"\\ldots"}),Jr("\\dotsc",function(ht){var ne=ht.future().text;return ne in Qo&&ne!==","?"\\ldots\\,":"\\ldots"}),Jr("\\cdots",function(ht){var ne=ht.future().text;return ne in Qo?"\\@cdots\\,":"\\@cdots"}),Jr("\\dotsb","\\cdots"),Jr("\\dotsm","\\cdots"),Jr("\\dotsi","\\!\\cdots"),Jr("\\dotsx","\\ldots\\,"),Jr("\\DOTSI","\\relax"),Jr("\\DOTSB","\\relax"),Jr("\\DOTSX","\\relax"),Jr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Jr("\\,","\\tmspace+{3mu}{.1667em}"),Jr("\\thinspace","\\,"),Jr("\\>","\\mskip{4mu}"),Jr("\\:","\\tmspace+{4mu}{.2222em}"),Jr("\\medspace","\\:"),Jr("\\;","\\tmspace+{5mu}{.2777em}"),Jr("\\thickspace","\\;"),Jr("\\!","\\tmspace-{3mu}{.1667em}"),Jr("\\negthinspace","\\!"),Jr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Jr("\\negthickspace","\\tmspace-{5mu}{.277em}"),Jr("\\enspace","\\kern.5em "),Jr("\\enskip","\\hskip.5em\\relax"),Jr("\\quad","\\hskip1em\\relax"),Jr("\\qquad","\\hskip2em\\relax"),Jr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Jr("\\tag@paren","\\tag@literal{({#1})}"),Jr("\\tag@literal",function(ht){if(ht.macros.get("\\df@tag"))throw new c("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Jr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Jr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Jr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Jr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Jr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Jr("\\\\","\\newline"),Jr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Yo=vt["Main-Regular"]["T".charCodeAt(0)][1]-.7*vt["Main-Regular"]["A".charCodeAt(0)][1]+"em";Jr("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Yo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Jr("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Yo+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Jr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Jr("\\@hspace","\\hskip #1\\relax"),Jr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Jr("\\ordinarycolon",":"),Jr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Jr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Jr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Jr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Jr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Jr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Jr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Jr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Jr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Jr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Jr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Jr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Jr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Jr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Jr("\u2237","\\dblcolon"),Jr("\u2239","\\eqcolon"),Jr("\u2254","\\coloneqq"),Jr("\u2255","\\eqqcolon"),Jr("\u2A74","\\Coloneqq"),Jr("\\ratio","\\vcentcolon"),Jr("\\coloncolon","\\dblcolon"),Jr("\\colonequals","\\coloneqq"),Jr("\\coloncolonequals","\\Coloneqq"),Jr("\\equalscolon","\\eqqcolon"),Jr("\\equalscoloncolon","\\Eqqcolon"),Jr("\\colonminus","\\coloneq"),Jr("\\coloncolonminus","\\Coloneq"),Jr("\\minuscolon","\\eqcolon"),Jr("\\minuscoloncolon","\\Eqcolon"),Jr("\\coloncolonapprox","\\Colonapprox"),Jr("\\coloncolonsim","\\Colonsim"),Jr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Jr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Jr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Jr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Jr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Jr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Jr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Jr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Jr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Jr("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Jr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Jr("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Jr("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Jr("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Jr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Jr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Jr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Jr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Jr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Jr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Jr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Jr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Jr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Jr("\u27E6","\\llbracket"),Jr("\u27E7","\\rrbracket"),Jr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Jr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Jr("\u2983","\\lBrace"),Jr("\u2984","\\rBrace"),Jr("\\darr","\\downarrow"),Jr("\\dArr","\\Downarrow"),Jr("\\Darr","\\Downarrow"),Jr("\\lang","\\langle"),Jr("\\rang","\\rangle"),Jr("\\uarr","\\uparrow"),Jr("\\uArr","\\Uparrow"),Jr("\\Uarr","\\Uparrow"),Jr("\\N","\\mathbb{N}"),Jr("\\R","\\mathbb{R}"),Jr("\\Z","\\mathbb{Z}"),Jr("\\alef","\\aleph"),Jr("\\alefsym","\\aleph"),Jr("\\Alpha","\\mathrm{A}"),Jr("\\Beta","\\mathrm{B}"),Jr("\\bull","\\bullet"),Jr("\\Chi","\\mathrm{X}"),Jr("\\clubs","\\clubsuit"),Jr("\\cnums","\\mathbb{C}"),Jr("\\Complex","\\mathbb{C}"),Jr("\\Dagger","\\ddagger"),Jr("\\diamonds","\\diamondsuit"),Jr("\\empty","\\emptyset"),Jr("\\Epsilon","\\mathrm{E}"),Jr("\\Eta","\\mathrm{H}"),Jr("\\exist","\\exists"),Jr("\\harr","\\leftrightarrow"),Jr("\\hArr","\\Leftrightarrow"),Jr("\\Harr","\\Leftrightarrow"),Jr("\\hearts","\\heartsuit"),Jr("\\image","\\Im"),Jr("\\infin","\\infty"),Jr("\\Iota","\\mathrm{I}"),Jr("\\isin","\\in"),Jr("\\Kappa","\\mathrm{K}"),Jr("\\larr","\\leftarrow"),Jr("\\lArr","\\Leftarrow"),Jr("\\Larr","\\Leftarrow"),Jr("\\lrarr","\\leftrightarrow"),Jr("\\lrArr","\\Leftrightarrow"),Jr("\\Lrarr","\\Leftrightarrow"),Jr("\\Mu","\\mathrm{M}"),Jr("\\natnums","\\mathbb{N}"),Jr("\\Nu","\\mathrm{N}"),Jr("\\Omicron","\\mathrm{O}"),Jr("\\plusmn","\\pm"),Jr("\\rarr","\\rightarrow"),Jr("\\rArr","\\Rightarrow"),Jr("\\Rarr","\\Rightarrow"),Jr("\\real","\\Re"),Jr("\\reals","\\mathbb{R}"),Jr("\\Reals","\\mathbb{R}"),Jr("\\Rho","\\mathrm{P}"),Jr("\\sdot","\\cdot"),Jr("\\sect","\\S"),Jr("\\spades","\\spadesuit"),Jr("\\sub","\\subset"),Jr("\\sube","\\subseteq"),Jr("\\supe","\\supseteq"),Jr("\\Tau","\\mathrm{T}"),Jr("\\thetasym","\\vartheta"),Jr("\\weierp","\\wp"),Jr("\\Zeta","\\mathrm{Z}"),Jr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Jr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Jr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Jr("\\blue","\\textcolor{##6495ed}{#1}"),Jr("\\orange","\\textcolor{##ffa500}{#1}"),Jr("\\pink","\\textcolor{##ff00af}{#1}"),Jr("\\red","\\textcolor{##df0030}{#1}"),Jr("\\green","\\textcolor{##28ae7b}{#1}"),Jr("\\gray","\\textcolor{gray}{#1}"),Jr("\\purple","\\textcolor{##9d38bd}{#1}"),Jr("\\blueA","\\textcolor{##ccfaff}{#1}"),Jr("\\blueB","\\textcolor{##80f6ff}{#1}"),Jr("\\blueC","\\textcolor{##63d9ea}{#1}"),Jr("\\blueD","\\textcolor{##11accd}{#1}"),Jr("\\blueE","\\textcolor{##0c7f99}{#1}"),Jr("\\tealA","\\textcolor{##94fff5}{#1}"),Jr("\\tealB","\\textcolor{##26edd5}{#1}"),Jr("\\tealC","\\textcolor{##01d1c1}{#1}"),Jr("\\tealD","\\textcolor{##01a995}{#1}"),Jr("\\tealE","\\textcolor{##208170}{#1}"),Jr("\\greenA","\\textcolor{##b6ffb0}{#1}"),Jr("\\greenB","\\textcolor{##8af281}{#1}"),Jr("\\greenC","\\textcolor{##74cf70}{#1}"),Jr("\\greenD","\\textcolor{##1fab54}{#1}"),Jr("\\greenE","\\textcolor{##0d923f}{#1}"),Jr("\\goldA","\\textcolor{##ffd0a9}{#1}"),Jr("\\goldB","\\textcolor{##ffbb71}{#1}"),Jr("\\goldC","\\textcolor{##ff9c39}{#1}"),Jr("\\goldD","\\textcolor{##e07d10}{#1}"),Jr("\\goldE","\\textcolor{##a75a05}{#1}"),Jr("\\redA","\\textcolor{##fca9a9}{#1}"),Jr("\\redB","\\textcolor{##ff8482}{#1}"),Jr("\\redC","\\textcolor{##f9685d}{#1}"),Jr("\\redD","\\textcolor{##e84d39}{#1}"),Jr("\\redE","\\textcolor{##bc2612}{#1}"),Jr("\\maroonA","\\textcolor{##ffbde0}{#1}"),Jr("\\maroonB","\\textcolor{##ff92c6}{#1}"),Jr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Jr("\\maroonD","\\textcolor{##ca337c}{#1}"),Jr("\\maroonE","\\textcolor{##9e034e}{#1}"),Jr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Jr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Jr("\\purpleC","\\textcolor{##aa87ff}{#1}"),Jr("\\purpleD","\\textcolor{##7854ab}{#1}"),Jr("\\purpleE","\\textcolor{##543b78}{#1}"),Jr("\\mintA","\\textcolor{##f5f9e8}{#1}"),Jr("\\mintB","\\textcolor{##edf2df}{#1}"),Jr("\\mintC","\\textcolor{##e0e5cc}{#1}"),Jr("\\grayA","\\textcolor{##f6f7f7}{#1}"),Jr("\\grayB","\\textcolor{##f0f1f2}{#1}"),Jr("\\grayC","\\textcolor{##e3e5e6}{#1}"),Jr("\\grayD","\\textcolor{##d6d8da}{#1}"),Jr("\\grayE","\\textcolor{##babec2}{#1}"),Jr("\\grayF","\\textcolor{##888d93}{#1}"),Jr("\\grayG","\\textcolor{##626569}{#1}"),Jr("\\grayH","\\textcolor{##3b3e40}{#1}"),Jr("\\grayI","\\textcolor{##21242c}{#1}"),Jr("\\kaBlue","\\textcolor{##314453}{#1}"),Jr("\\kaGreen","\\textcolor{##71B307}{#1}");var vo={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Io=function(){function ht(pe,be,Ue){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=be,this.expansionCount=0,this.feed(pe),this.macros=new ro(Ea,be.macros),this.mode=Ue,this.stack=[]}var ne=ht.prototype;return ne.feed=function(be){this.lexer=new fa(be,this.settings)},ne.switchMode=function(be){this.mode=be},ne.beginGroup=function(){this.macros.beginGroup()},ne.endGroup=function(){this.macros.endGroup()},ne.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},ne.popToken=function(){return this.future(),this.stack.pop()},ne.pushToken=function(be){this.stack.push(be)},ne.pushTokens=function(be){var Ue;(Ue=this.stack).push.apply(Ue,be)},ne.consumeSpaces=function(){for(;;){var be=this.future();if(be.text===" ")this.stack.pop();else break}},ne.consumeArgs=function(be){for(var Ue=[],pt=0;pt<be;++pt){this.consumeSpaces();var Xt=this.popToken();if(Xt.text==="{"){for(var Or=[],Qr=1;Qr!==0;){var dn=this.popToken();if(Or.push(dn),dn.text==="{")++Qr;else if(dn.text==="}")--Qr;else if(dn.text==="EOF")throw new c("End of input in macro argument",Xt)}Or.pop(),Or.reverse(),Ue[pt]=Or}else{if(Xt.text==="EOF")throw new c("End of input expecting macro argument");Ue[pt]=[Xt]}}return Ue},ne.expandOnce=function(){var be=this.popToken(),Ue=be.text,pt=this._getExpansion(Ue);if(pt==null)return this.pushToken(be),be;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new c("Too many expansions: infinite loop or need to increase maxExpand setting");var Xt=pt.tokens;if(pt.numArgs){var Or=this.consumeArgs(pt.numArgs);Xt=Xt.slice();for(var Qr=Xt.length-1;Qr>=0;--Qr){var dn=Xt[Qr];if(dn.text==="#"){if(Qr===0)throw new c("Incomplete placeholder at end of macro body",dn);if(dn=Xt[--Qr],dn.text==="#")Xt.splice(Qr+1,1);else if(/^[1-9]$/.test(dn.text)){var jn;(jn=Xt).splice.apply(jn,[Qr,2].concat(Or[+dn.text-1]))}else throw new c("Not a valid argument number",dn)}}}return this.pushTokens(Xt),Xt},ne.expandAfterFuture=function(){return this.expandOnce(),this.future()},ne.expandNextToken=function(){for(;;){var be=this.expandOnce();if(be instanceof g)if(be.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},ne.expandMacro=function(be){if(!this.macros.get(be))return;var Ue=[],pt=this.stack.length;for(this.pushToken(new g(be));this.stack.length>pt;){var Xt=this.expandOnce();Xt instanceof g&&Ue.push(this.stack.pop())}return Ue},ne.expandMacroAsText=function(be){var Ue=this.expandMacro(be);return Ue&&Ue.map(function(pt){return pt.text}).join("")},ne._getExpansion=function(be){var Ue=this.macros.get(be);if(Ue==null)return Ue;var pt=typeof Ue=="function"?Ue(this):Ue;if(typeof pt=="string"){var Xt=0;if(pt.indexOf("#")!==-1)for(var Or=pt.replace(/##/g,"");Or.indexOf("#"+(Xt+1))!==-1;)++Xt;for(var Qr=new fa(pt,this.settings),dn=[],jn=Qr.lex();jn.text!=="EOF";)dn.push(jn),jn=Qr.lex();dn.reverse();var ai={tokens:dn,numArgs:Xt};return ai}return pt},ne.isDefined=function(be){return this.macros.has(be)||go.hasOwnProperty(be)||Xe.math.hasOwnProperty(be)||Xe.text.hasOwnProperty(be)||vo.hasOwnProperty(be)},ht}(),zo={"\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"}},Fa={\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"},Ja=function(){function ht(pe,be){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 Io(pe,be,this.mode),this.settings=be,this.leftrightDepth=0}var ne=ht.prototype;return ne.expect=function(be,Ue){if(Ue===void 0&&(Ue=!0),this.fetch().text!==be)throw new c("Expected '"+be+"', got '"+this.fetch().text+"'",this.fetch());Ue&&this.consume()},ne.consume=function(){this.nextToken=null},ne.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},ne.switchMode=function(be){this.mode=be,this.gullet.switchMode(be)},ne.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var be=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),be},ne.parseExpression=function(be,Ue){for(var pt=[];;){this.mode==="math"&&this.consumeSpaces();var Xt=this.fetch();if(ht.endOfExpression.indexOf(Xt.text)!==-1)break;if(Ue&&Xt.text===Ue)break;if(be&&go[Xt.text]&&go[Xt.text].infix)break;var Or=this.parseAtom(Ue);if(!Or)break;pt.push(Or)}return this.mode==="text"&&this.formLigatures(pt),this.handleInfixNodes(pt)},ne.handleInfixNodes=function(be){for(var Ue=-1,pt,Xt=0;Xt<be.length;Xt++){var Or=an(be[Xt],"infix");if(Or){if(Ue!==-1)throw new c("only one infix operator per group",Or.token);Ue=Xt,pt=Or.replaceWith}}if(Ue!==-1&&pt){var Qr,dn,jn=be.slice(0,Ue),ai=be.slice(Ue+1);jn.length===1&&jn[0].type==="ordgroup"?Qr=jn[0]:Qr={type:"ordgroup",mode:this.mode,body:jn},ai.length===1&&ai[0].type==="ordgroup"?dn=ai[0]:dn={type:"ordgroup",mode:this.mode,body:ai};var Qn;return pt==="\\\\abovefrac"?Qn=this.callFunction(pt,[Qr,be[Ue],dn],[]):Qn=this.callFunction(pt,[Qr,dn],[]),[Qn]}else return be},ne.handleSupSubscript=function(be){var Ue=this.fetch(),pt=Ue.text;this.consume();var Xt=this.parseGroup(be,!1,ht.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!Xt)throw new c("Expected group after '"+pt+"'",Ue);return Xt},ne.formatUnsupportedCmd=function(be){for(var Ue=[],pt=0;pt<be.length;pt++)Ue.push({type:"textord",mode:"text",text:be[pt]});var Xt={type:"text",mode:this.mode,body:Ue},Or={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Xt]};return Or},ne.parseAtom=function(be){var Ue=this.parseGroup("atom",!1,null,be);if(this.mode==="text")return Ue;for(var pt,Xt;;){this.consumeSpaces();var Or=this.fetch();if(Or.text==="\\limits"||Or.text==="\\nolimits"){var Qr=an(Ue,"op");if(Qr){var dn=Or.text==="\\limits";Qr.limits=dn,Qr.alwaysHandleSupSub=!0}else if(Qr=an(Ue,"operatorname"),Qr&&Qr.alwaysHandleSupSub){var jn=Or.text==="\\limits";Qr.limits=jn}else throw new c("Limit controls must follow a math operator",Or);this.consume()}else if(Or.text==="^"){if(pt)throw new c("Double superscript",Or);pt=this.handleSupSubscript("superscript")}else if(Or.text==="_"){if(Xt)throw new c("Double subscript",Or);Xt=this.handleSupSubscript("subscript")}else if(Or.text==="'"){if(pt)throw new c("Double superscript",Or);var ai={type:"textord",mode:this.mode,text:"\\prime"},Qn=[ai];for(this.consume();this.fetch().text==="'";)Qn.push(ai),this.consume();this.fetch().text==="^"&&Qn.push(this.handleSupSubscript("superscript")),pt={type:"ordgroup",mode:this.mode,body:Qn}}else break}return pt||Xt?{type:"supsub",mode:this.mode,base:Ue,sup:pt,sub:Xt}:Ue},ne.parseFunction=function(be,Ue,pt){var Xt=this.fetch(),Or=Xt.text,Qr=go[Or];if(!Qr)return null;if(this.consume(),pt!=null&&Qr.greediness<=pt)throw new c("Got function '"+Or+"' with no arguments"+(Ue?" as "+Ue:""),Xt);if(this.mode==="text"&&!Qr.allowedInText)throw new c("Can't use function '"+Or+"' in text mode",Xt);if(this.mode==="math"&&Qr.allowedInMath===!1)throw new c("Can't use function '"+Or+"' in math mode",Xt);var dn=this.parseArguments(Or,Qr),jn=dn.args,ai=dn.optArgs;return this.callFunction(Or,jn,ai,Xt,be)},ne.callFunction=function(be,Ue,pt,Xt,Or){var Qr={funcName:be,parser:this,token:Xt,breakOnTokenText:Or},dn=go[be];if(dn&&dn.handler)return dn.handler(Qr,Ue,pt);throw new c("No function handler for "+be)},ne.parseArguments=function(be,Ue){var pt=Ue.numArgs+Ue.numOptionalArgs;if(pt===0)return{args:[],optArgs:[]};for(var Xt=Ue.greediness,Or=[],Qr=[],dn=0;dn<pt;dn++){var jn=Ue.argTypes&&Ue.argTypes[dn],ai=dn<Ue.numOptionalArgs,Qn=dn>0&&!ai||dn===0&&!ai&&this.mode==="math",Di=this.parseGroupOfType("argument to '"+be+"'",jn,ai,Xt,Qn);if(!Di){if(ai){Qr.push(null);continue}throw new c("Expected group after '"+be+"'",this.fetch())}(ai?Qr:Or).push(Di)}return{args:Or,optArgs:Qr}},ne.parseGroupOfType=function(be,Ue,pt,Xt,Or){switch(Ue){case"color":return Or&&this.consumeSpaces(),this.parseColorGroup(pt);case"size":return Or&&this.consumeSpaces(),this.parseSizeGroup(pt);case"url":return this.parseUrlGroup(pt,Or);case"math":case"text":return this.parseGroup(be,pt,Xt,void 0,Ue,Or);case"hbox":{var Qr=this.parseGroup(be,pt,Xt,void 0,"text",Or);if(!Qr)return Qr;var dn={type:"styling",mode:Qr.mode,body:[Qr],style:"text"};return dn}case"raw":{if(Or&&this.consumeSpaces(),pt&&this.fetch().text==="{")return null;var jn=this.parseStringGroup("raw",pt,!0);if(jn)return{type:"raw",mode:"text",string:jn.text};throw new c("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(be,pt,Xt,void 0,void 0,Or);default:throw new c("Unknown group type as "+be,this.fetch())}},ne.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},ne.parseStringGroup=function(be,Ue,pt){var Xt=Ue?"[":"{",Or=Ue?"]":"}",Qr=this.fetch();if(Qr.text!==Xt){if(Ue)return null;if(pt&&Qr.text!=="EOF"&&/[^{}[\]]/.test(Qr.text))return this.consume(),Qr}var dn=this.mode;this.mode="text",this.expect(Xt);for(var jn="",ai=this.fetch(),Qn=0,Di=ai,Vi;(Vi=this.fetch()).text!==Or||pt&&Qn>0;){switch(Vi.text){case"EOF":throw new c("Unexpected end of input in "+be,ai.range(Di,jn));case Xt:Qn++;break;case Or:Qn--;break}Di=Vi,jn+=Di.text,this.consume()}return this.expect(Or),this.mode=dn,ai.range(Di,jn)},ne.parseRegexGroup=function(be,Ue){var pt=this.mode;this.mode="text";for(var Xt=this.fetch(),Or=Xt,Qr="",dn;(dn=this.fetch()).text!=="EOF"&&be.test(Qr+dn.text);)Or=dn,Qr+=Or.text,this.consume();if(Qr==="")throw new c("Invalid "+Ue+": '"+Xt.text+"'",Xt);return this.mode=pt,Xt.range(Or,Qr)},ne.parseColorGroup=function(be){var Ue=this.parseStringGroup("color",be);if(!Ue)return null;var pt=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Ue.text);if(!pt)throw new c("Invalid color: '"+Ue.text+"'",Ue);var Xt=pt[0];return/^[0-9a-f]{6}$/i.test(Xt)&&(Xt="#"+Xt),{type:"color-token",mode:this.mode,color:Xt}},ne.parseSizeGroup=function(be){var Ue,pt=!1;if(!be&&this.fetch().text!=="{"?Ue=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Ue=this.parseStringGroup("size",be),!Ue)return null;!be&&Ue.text.length===0&&(Ue.text="0pt",pt=!0);var Xt=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Ue.text);if(!Xt)throw new c("Invalid size: '"+Ue.text+"'",Ue);var Or={number:+(Xt[1]+Xt[2]),unit:Xt[3]};if(!Ar(Or))throw new c("Invalid unit: '"+Or.unit+"'",Ue);return{type:"size",mode:this.mode,value:Or,isBlank:pt}},ne.parseUrlGroup=function(be,Ue){this.gullet.lexer.setCatcode("%",13);var pt=this.parseStringGroup("url",be,!0);if(this.gullet.lexer.setCatcode("%",14),!pt)return null;var Xt=pt.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:Xt}},ne.parseGroup=function(be,Ue,pt,Xt,Or,Qr){var dn=this.mode;Or&&this.switchMode(Or),Qr&&this.consumeSpaces();var jn=this.fetch(),ai=jn.text,Qn;if(Ue?ai==="[":ai==="{"||ai==="\\begingroup"){this.consume();var Di=ht.endOfGroup[ai];this.gullet.beginGroup();var Vi=this.parseExpression(!1,Di),Ta=this.fetch();this.expect(Di),this.gullet.endGroup(),Qn={type:"ordgroup",mode:this.mode,loc:b.range(jn,Ta),body:Vi,semisimple:ai==="\\begingroup"||void 0}}else if(Ue)Qn=null;else if(Qn=this.parseFunction(Xt,be,pt)||this.parseSymbol(),Qn==null&&ai[0]==="\\"&&!vo.hasOwnProperty(ai)){if(this.settings.throwOnError)throw new c("Undefined control sequence: "+ai,jn);Qn=this.formatUnsupportedCmd(ai),this.consume()}return Or&&this.switchMode(dn),Qn},ne.formLigatures=function(be){for(var Ue=be.length-1,pt=0;pt<Ue;++pt){var Xt=be[pt],Or=Xt.text;Or==="-"&&be[pt+1].text==="-"&&(pt+1<Ue&&be[pt+2].text==="-"?(be.splice(pt,3,{type:"textord",mode:"text",loc:b.range(Xt,be[pt+2]),text:"---"}),Ue-=2):(be.splice(pt,2,{type:"textord",mode:"text",loc:b.range(Xt,be[pt+1]),text:"--"}),Ue-=1)),(Or==="'"||Or==="`")&&be[pt+1].text===Or&&(be.splice(pt,2,{type:"textord",mode:"text",loc:b.range(Xt,be[pt+1]),text:Or+Or}),Ue-=1)}},ne.parseSymbol=function(){var be=this.fetch(),Ue=be.text;if(/^\\verb[^a-zA-Z]/.test(Ue)){this.consume();var pt=Ue.slice(5),Xt=pt.charAt(0)==="*";if(Xt&&(pt=pt.slice(1)),pt.length<2||pt.charAt(0)!==pt.slice(-1))throw new c(`\\verb assertion failed --
please report what input caused this bug`);return pt=pt.slice(1,-1),{type:"verb",mode:"text",body:pt,star:Xt}}Fa.hasOwnProperty(Ue[0])&&!Xe[this.mode][Ue[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Ue[0]+'" used in math mode',be),Ue=Fa[Ue[0]]+Ue.substr(1));var Or=Uo.exec(Ue);Or&&(Ue=Ue.substring(0,Or.index),Ue==="i"?Ue="\u0131":Ue==="j"&&(Ue="\u0237"));var Qr;if(Xe[this.mode][Ue]){this.settings.strict&&this.mode==="math"&&xt.indexOf(Ue)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Ue[0]+'" used in math mode',be);var dn=Xe[this.mode][Ue].group,jn=b.range(be),ai;if(er.hasOwnProperty(dn)){var Qn=dn;ai={type:"atom",mode:this.mode,family:Qn,loc:jn,text:Ue}}else ai={type:dn,mode:this.mode,loc:jn,text:Ue};Qr=ai}else if(Ue.charCodeAt(0)>=128)this.settings.strict&&(J(Ue.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Ue[0]+'" used in math mode',be):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Ue[0]+'"'+(" ("+Ue.charCodeAt(0)+")"),be)),Qr={type:"textord",mode:"text",loc:b.range(be),text:Ue};else return null;if(this.consume(),Or)for(var Di=0;Di<Or[0].length;Di++){var Vi=Or[0][Di];if(!zo[Vi])throw new c("Unknown accent ' "+Vi+"'",be);var Ta=zo[Vi][this.mode];if(!Ta)throw new c("Accent "+Vi+" unsupported in "+this.mode+" mode",be);Qr={type:"accent",mode:this.mode,loc:b.range(be),label:Ta,isStretchy:!1,isShifty:!0,base:Qr}}return Qr},ht}();Ja.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Ja.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Ja.SUPSUB_GREEDINESS=1;var ho=function(ne,pe){if(!(typeof ne=="string"||ne instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var be=new Ja(ne,pe);delete be.gullet.macros.current["\\df@tag"];var Ue=be.parse();if(be.gullet.macros.get("\\df@tag")){if(!pe.displayMode)throw new c("\\tag works only in display equations");be.gullet.feed("\\df@tag"),Ue=[{type:"tag",mode:"text",body:Ue,tag:be.parse()}]}return Ue},Ao=ho,$o=function(ne,pe,be){pe.textContent="";var Ue=Ct(ne,be).toNode();pe.appendChild(Ue)};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."),$o=function(){throw new c("KaTeX doesn't work in quirks mode.")}));var ps=function(ne,pe){var be=Ct(ne,pe).toMarkup();return be},is=function(ne,pe){var be=new m(pe);return Ao(ne,be)},Za=function(ne,pe,be){if(be.throwOnError||!(ne instanceof c))throw ne;var Ue=sr.makeSpan(["katex-error"],[new Te(pe)]);return Ue.setAttribute("title",ne.toString()),Ue.setAttribute("style","color:"+be.errorColor),Ue},Ct=function(ne,pe){var be=new m(pe);try{var Ue=Ao(ne,be);return Wo(Ue,ne,be)}catch(pt){return Za(pt,ne,be)}},Bt=function(ne,pe){var be=new m(pe);try{var Ue=Ao(ne,be);return po(Ue,ne,be)}catch(pt){return Za(pt,ne,be)}},Wr={version:"0.11.1",render:$o,renderToString:ps,ParseError:c,__parse:is,__renderToDomTree:Ct,__renderToHTMLTree:Bt,__setFontMetrics:Tt,__defineSymbol:ie,__defineMacro:Jr,__domTree:{Span:G,Anchor:Q,SymbolNode:Te,SvgNode:Se,PathNode:le,LineNode:fe}},Pn=x.default=Wr}]).default})},P2fV:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("Q9mQ"),A=d("+L6B"),b=d("sE09"),g=d.n(b)},P2ho:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.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};k.default=O},P47w:function(H,k,d){var O=d("hydK"),x=O.createElement,C=d("IMiH"),A=d("mFDi"),b=d("Fofx"),g=d("6GrX"),f=d("pzxd"),c=d("dqUG"),o=C.CMD,r=Array.prototype.join,i="none",n=Math.round,e=Math.sin,l=Math.cos,t=Math.PI,a=Math.PI*2,s=180/t,u=1e-4;function h(V){return n(V*1e4)/1e4}function p(V){return V<u&&V>-u}function m(V,z){var J=z?V.textFill:V.fill;return J!=null&&J!==i}function v(V,z){var J=z?V.textStroke:V.stroke;return J!=null&&J!==i}function y(V,z){z&&E(V,"transform","matrix("+r.call(z,",")+")")}function E(V,z,J){(!J||J.type!=="linear"&&J.type!=="radial")&&V.setAttribute(z,J)}function T(V,z,J){V.setAttributeNS("http://www.w3.org/1999/xlink",z,J)}function w(V,z,J,q){if(m(z,J)){var de=J?z.textFill:z.fill;de=de==="transparent"?i:de,E(V,"fill",de),E(V,"fill-opacity",z.fillOpacity!=null?z.fillOpacity*z.opacity:z.opacity)}else E(V,"fill",i);if(v(z,J)){var ae=J?z.textStroke:z.stroke;ae=ae==="transparent"?i:ae,E(V,"stroke",ae);var ve=J?z.textStrokeWidth:z.lineWidth,_e=!J&&z.strokeNoScale?q.getLineScale():1;E(V,"stroke-width",ve/_e),E(V,"paint-order",J?"stroke":"fill"),E(V,"stroke-opacity",z.strokeOpacity!=null?z.strokeOpacity:z.opacity);var Ie=z.lineDash;Ie?(E(V,"stroke-dasharray",z.lineDash.join(",")),E(V,"stroke-dashoffset",n(z.lineDashOffset||0))):E(V,"stroke-dasharray",""),z.lineCap&&E(V,"stroke-linecap",z.lineCap),z.lineJoin&&E(V,"stroke-linejoin",z.lineJoin),z.miterLimit&&E(V,"stroke-miterlimit",z.miterLimit)}else E(V,"stroke",i)}function S(V){for(var z=[],J=V.data,q=V.len(),de=0;de<q;){var ae=J[de++],ve="",_e=0;switch(ae){case o.M:ve="M",_e=2;break;case o.L:ve="L",_e=2;break;case o.Q:ve="Q",_e=4;break;case o.C:ve="C",_e=6;break;case o.A:var Ie=J[de++],He=J[de++],me=J[de++],ke=J[de++],se=J[de++],te=J[de++],Ge=J[de++],oe=J[de++],Y=Math.abs(te),G=p(Y-a)||(oe?te>=a:-te>=a),Q=te>0?te%a:te%a+a,ye=!1;G?ye=!0:p(Y)?ye=!1:ye=Q>=t===!!oe;var ce=h(Ie+me*l(se)),Te=h(He+ke*e(se));G&&(oe?te=a-1e-4:te=-a+1e-4,ye=!0,de===9&&z.push("M",ce,Te));var Se=h(Ie+me*l(se+te)),le=h(He+ke*e(se+te));z.push("A",h(me),h(ke),n(Ge*s),+ye,+oe,Se,le);break;case o.Z:ve="Z";break;case o.R:var Se=h(J[de++]),le=h(J[de++]),fe=h(J[de++]),Ee=h(J[de++]);z.push("M",Se,le,"L",Se+fe,le,"L",Se+fe,le+Ee,"L",Se,le+Ee,"L",Se,le);break}ve&&z.push(ve);for(var Ve=0;Ve<_e;Ve++)z.push(h(J[de++]))}return z.join(" ")}var _={};_.brush=function(V){var z=V.style,J=V.__svgEl;J||(J=x("path"),V.__svgEl=J),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 de=S(q);de.indexOf("NaN")<0&&E(J,"d",de)}w(J,z,!1,V),y(J,V.transform),z.text!=null?M(V,V.getBoundingRect()):W(V)};var I={};I.brush=function(V){var z=V.style,J=z.image;if(J instanceof HTMLImageElement){var q=J.src;J=q}if(!J)return;var de=z.x||0,ae=z.y||0,ve=z.width,_e=z.height,Ie=V.__svgEl;Ie||(Ie=x("image"),V.__svgEl=Ie),J!==V.__imageSrc&&(T(Ie,"href",J),V.__imageSrc=J),E(Ie,"width",ve),E(Ie,"height",_e),E(Ie,"x",de),E(Ie,"y",ae),y(Ie,V.transform),z.text!=null?M(V,V.getBoundingRect()):W(V)};var L={},N=new A,R={},D=[],F={left:"start",right:"end",center:"middle",middle:"middle"},M=function(z,J){var q=z.style,de=z.transform,ae=z instanceof c||q.transformText;z.__dirty&&f.normalizeTextStyle(q,!0);var ve=q.text;if(ve!=null&&(ve+=""),!f.needDrawText(ve,q))return;ve==null&&(ve=""),!ae&&de&&(N.copy(J),N.applyTransform(de),J=N);var _e=z.__textSvgEl;_e||(_e=x("text"),z.__textSvgEl=_e);var Ie=_e.style,He=q.font||g.DEFAULT_FONT,me=_e.__computedFont;He!==_e.__styleFont&&(Ie.font=_e.__styleFont=He,me=_e.__computedFont=Ie.font);var ke=q.textPadding,se=q.textLineHeight,te=z.__textCotentBlock;(!te||z.__dirtyText)&&(te=z.__textCotentBlock=g.parsePlainText(ve,me,ke,se,q.truncate));var Ge=te.outerHeight,oe=te.lineHeight;f.getBoxPosition(R,z,q,J);var Y=R.baseX,G=R.baseY,Q=R.textAlign||"left",ye=R.textVerticalAlign;U(_e,ae,de,q,J,Y,G);var ce=g.adjustTextY(G,Ge,ye),Te=Y,Se=ce;ke&&(Te=B(Y,Q,ke),Se+=ke[0]),Se+=oe/2,w(_e,q,!0,z);var le=te.canCacheByTextString,fe=z.__tspanList||(z.__tspanList=[]),Ee=fe.length;if(le&&z.__canCacheByTextString&&z.__text===ve){if(z.__dirtyText&&Ee)for(var Ve=0;Ve<Ee;++Ve)j(fe[Ve],Q,Te,Se+Ve*oe)}else{z.__text=ve,z.__canCacheByTextString=le;for(var vt=te.lines,et=vt.length,Ve=0;Ve<et;Ve++){var Oe=fe[Ve],Tt=vt[Ve];Oe?Oe.__zrText!==Tt&&(Oe.innerHTML="",Oe.appendChild(document.createTextNode(Tt))):(Oe=fe[Ve]=x("tspan"),_e.appendChild(Oe),Oe.appendChild(document.createTextNode(Tt))),j(Oe,Q,Te,Se+Ve*oe)}if(Ee>et){for(;Ve<Ee;Ve++)_e.removeChild(fe[Ve]);fe.length=et}}};function U(V,z,J,q,de,ae,ve){b.identity(D),z&&J&&b.copy(D,J);var _e=q.textRotation;if(de&&_e){var Ie=q.textOrigin;Ie==="center"?(ae=de.width/2+de.x,ve=de.height/2+de.y):Ie&&(ae=Ie[0]+de.x,ve=Ie[1]+de.y),D[4]-=ae,D[5]-=ve,b.rotate(D,D,_e),D[4]+=ae,D[5]+=ve}y(V,D)}function B(V,z,J){return z==="right"?V-J[1]:z==="center"?V+J[3]/2-J[1]/2:V+J[3]}function j(V,z,J,q){E(V,"dominant-baseline","middle"),E(V,"text-anchor",F[z]),E(V,"x",J),E(V,"y",q)}function W(V){V&&V.__textSvgEl&&(V.__textSvgEl.parentNode&&V.__textSvgEl.parentNode.removeChild(V.__textSvgEl),V.__textSvgEl=null,V.__tspanList=[],V.__text=null)}L.drawRectText=M,L.brush=function(V){var z=V.style;z.text!=null?M(V,!1):W(V)},k.path=_,k.image=I,k.text=L},P4Qj:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.removeSensor=k.getSensor=void 0;var O=A(d("chpo")),x=d("FxDU"),C=d("24YM");function A(c){return c&&c.__esModule?c:{default:c}}var b={},g=function(o){var r=o.getAttribute(C.SizeSensorId);if(r&&b[r])return b[r];var i=(0,O.default)();o.setAttribute(C.SizeSensorId,i);var n=(0,x.createSensor)(o);return b[i]=n,n};k.getSensor=g;var f=function(o){var r=o.element.getAttribute(C.SizeSensorId);o.element.removeAttribute(C.SizeSensorId),o.destroy(),r&&b[r]&&delete b[r]};k.removeSensor=f},P5Jw:function(H,k,d){"use strict";var O=d("rHrb"),x=O.CopyToClipboard;x.CopyToClipboard=x,H.exports=x},PArb:function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),b=d("q1tI"),g=d.n(b),f=d("TSYQ"),c=d.n(f),o=d("H84U"),r=function(n,e){var l={};for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&e.indexOf(t)<0&&(l[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])&&(l[t[a]]=n[t[a]]);return l},i=function(e){return b.createElement(o.a,null,function(l){var t,a=l.getPrefixCls,s=l.direction,u=e.prefixCls,h=e.type,p=h===void 0?"horizontal":h,m=e.orientation,v=m===void 0?"center":m,y=e.className,E=e.children,T=e.dashed,w=e.plain,S=r(e,["prefixCls","type","orientation","className","children","dashed","plain"]),_=a("divider",u),I=v.length>0?"-".concat(v):v,L=!!E,N=c()(y,_,"".concat(_,"-").concat(p),(t={},A()(t,"".concat(_,"-with-text"),L),A()(t,"".concat(_,"-with-text").concat(I),L),A()(t,"".concat(_,"-dashed"),!!T),A()(t,"".concat(_,"-plain"),!!w),A()(t,"".concat(_,"-rtl"),s==="rtl"),t));return b.createElement("div",x()({className:N},S,{role:"separator"}),E&&b.createElement("span",{className:"".concat(_,"-inner-text")},E))})};k.a=i},PD8m:function(H,k){H.exports={name:"memoryStorage",read:O,write:x,each:C,remove:A,clearAll:b};var d={};function O(g){return d[g]}function x(g,f){d[g]=f}function C(g){for(var f in d)d.hasOwnProperty(f)&&g(d[f],f)}function A(g){delete d[g]}function b(g){d={}}},PKem:function(H,k,d){"use strict";d.d(k,"a",function(){return m});var O=d("RIqP"),x=d.n(O),C=d("lSNA"),A=d.n(C),b=d("pVnL"),g=d.n(b),f=d("lwsE"),c=d.n(f),o=d("W8MJ"),r=d.n(o),i=d("7W2i"),n=d.n(i),e=d("LQ03"),l=d.n(e),t=d("q1tI"),a=d.n(t),s=d("TSYQ"),u=d.n(s),h=d("H84U"),p=function(I,L){var N={};for(var R in I)Object.prototype.hasOwnProperty.call(I,R)&&L.indexOf(R)<0&&(N[R]=I[R]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,R=Object.getOwnPropertySymbols(I);D<R.length;D++)L.indexOf(R[D])<0&&Object.prototype.propertyIsEnumerable.call(I,R[D])&&(N[R[D]]=I[R[D]]);return N},m=t.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function v(I){var L=I.suffixCls,N=I.tagName,R=I.displayName;return function(D){var F;return F=function(M){n()(B,M);var U=l()(B);function B(){var j;return c()(this,B),j=U.apply(this,arguments),j.renderComponent=function(W){var V=W.getPrefixCls,z=j.props.prefixCls,J=V(L,z);return t.createElement(D,g()({prefixCls:J,tagName:N},j.props))},j}return r()(B,[{key:"render",value:function(){return t.createElement(h.a,null,this.renderComponent)}}]),B}(t.Component),F.displayName=R,F}}var y=function(L){var N=L.prefixCls,R=L.className,D=L.children,F=L.tagName,M=p(L,["prefixCls","className","children","tagName"]),U=u()(N,R);return t.createElement(F,g()({className:U},M),D)},E=function(I){n()(N,I);var L=l()(N);function N(){var R;return c()(this,N),R=L.apply(this,arguments),R.state={siders:[]},R.renderComponent=function(D){var F,M=D.direction,U=R.props,B=U.prefixCls,j=U.className,W=U.children,V=U.hasSider,z=U.tagName,J=p(U,["prefixCls","className","children","hasSider","tagName"]),q=u()(B,(F={},A()(F,"".concat(B,"-has-sider"),typeof V=="boolean"?V:R.state.siders.length>0),A()(F,"".concat(B,"-rtl"),M==="rtl"),F),j);return t.createElement(m.Provider,{value:{siderHook:R.getSiderHook()}},t.createElement(z,g()({className:q},J),W))},R}return r()(N,[{key:"getSiderHook",value:function(){var D=this;return{addSider:function(M){D.setState(function(U){return{siders:[].concat(x()(U.siders),[M])}})},removeSider:function(M){D.setState(function(U){return{siders:U.siders.filter(function(B){return B!==M})}})}}}},{key:"render",value:function(){return t.createElement(h.a,null,this.renderComponent)}}]),N}(t.Component),T=v({suffixCls:"layout",tagName:"section",displayName:"Layout"})(E),w=v({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(y),S=v({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(y),_=v({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(y);T.Header=w,T.Footer=S,T.Content=_,k.b=T},PNag:function(H,k,d){var O=d("bYtY"),x=d("SKnc"),C=d("YH21"),A=d("crZl"),b=d("IwbS"),g=d("OELB"),f=d("72pK"),c=d("y7Aq"),o=d("4NO4"),r=g.linearMap,i=O.each,n=Math.min,e=Math.max,l=12,t=6,a=A.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(E,T,w,S){(!S||S.type!=="selectDataRange"||S.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var E=this.visualMapModel,T=this.group;this._orient=E.get("orient"),this._useHandle=E.get("calculable"),this._resetInterval(),this._renderBar(T);var w=E.get("text");this._renderEndsText(T,w,0),this._renderEndsText(T,w,1),this._updateView(!0),this.renderBackground(T),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(T)},_renderEndsText:function(E,T,w){if(!T)return;var S=T[1-w];S=S!=null?S+"":"";var _=this.visualMapModel,I=_.get("textGap"),L=_.itemSize,N=this._shapes.barGroup,R=this._applyTransform([L[0]/2,w===0?-I:L[1]+I],N),D=this._applyTransform(w===0?"bottom":"top",N),F=this._orient,M=this.visualMapModel.textStyleModel;this.group.add(new b.Text({style:{x:R[0],y:R[1],textVerticalAlign:F==="horizontal"?"middle":D,textAlign:F==="horizontal"?D:"center",text:S,textFont:M.getFont(),textFill:M.getTextColor()}}))},_renderBar:function(E){var T=this.visualMapModel,w=this._shapes,S=T.itemSize,_=this._orient,I=this._useHandle,L=c.getItemAlign(T,this.api,S),N=w.barGroup=this._createBarGroup(L);N.add(w.outOfRange=s()),N.add(w.inRange=s(null,I?v(this._orient):null,O.bind(this._dragHandle,this,"all",!1),O.bind(this._dragHandle,this,"all",!0)));var R=T.textStyleModel.getTextRect("\u56FD"),D=e(R.width,R.height);I&&(w.handleThumbs=[],w.handleLabels=[],w.handleLabelPoints=[],this._createHandle(N,0,S,D,_,L),this._createHandle(N,1,S,D,_,L)),this._createIndicator(N,S,D,_),E.add(N)},_createHandle:function(E,T,w,S,_){var I=O.bind(this._dragHandle,this,T,!1),L=O.bind(this._dragHandle,this,T,!0),N=s(u(T,S),v(this._orient),I,L);N.position[0]=w[0],E.add(N);var R=this.visualMapModel.textStyleModel,D=new b.Text({draggable:!0,drift:I,onmousemove:function(U){C.stop(U.event)},ondragend:L,style:{x:0,y:0,text:"",textFont:R.getFont(),textFill:R.getTextColor()}});this.group.add(D);var F=[_==="horizontal"?S/2:S*1.5,_==="horizontal"?T===0?-(S*1.5):S*1.5:T===0?-S/2:S/2],M=this._shapes;M.handleThumbs[T]=N,M.handleLabelPoints[T]=F,M.handleLabels[T]=D},_createIndicator:function(E,T,w,S){var _=s([[0,0]],"move");_.position[0]=T[0],_.attr({invisible:!0,silent:!0}),E.add(_);var I=this.visualMapModel.textStyleModel,L=new b.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:I.getFont(),textFill:I.getTextColor()}});this.group.add(L);var N=[S==="horizontal"?w/2:t+3,0],R=this._shapes;R.indicator=_,R.indicatorLabel=L,R.indicatorLabelPoint=N},_dragHandle:function(E,T,w,S){if(!this._useHandle)return;if(this._dragging=!T,!T){var _=this._applyTransform([w,S],this._shapes.barGroup,!0);this._updateInterval(E,_[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():m(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[E],!1)},_resetInterval:function(){var E=this.visualMapModel,T=this._dataInterval=E.getSelected(),w=E.getExtent(),S=[0,E.itemSize[1]];this._handleEnds=[r(T[0],w,S,!0),r(T[1],w,S,!0)]},_updateInterval:function(E,T){T=T||0;var w=this.visualMapModel,S=this._handleEnds,_=[0,w.itemSize[1]];f(T,S,_,E,0);var I=w.getExtent();this._dataInterval=[r(S[0],_,I,!0),r(S[1],_,I,!0)]},_updateView:function(E){var T=this.visualMapModel,w=T.getExtent(),S=this._shapes,_=[0,T.itemSize[1]],I=E?_:this._handleEnds,L=this._createBarVisual(this._dataInterval,w,I,"inRange"),N=this._createBarVisual(w,w,_,"outOfRange");S.inRange.setStyle({fill:L.barColor,opacity:L.opacity}).setShape("points",L.barPoints),S.outOfRange.setStyle({fill:N.barColor,opacity:N.opacity}).setShape("points",N.barPoints),this._updateHandle(I,L)},_createBarVisual:function(E,T,w,S){var _={forceState:S,convertOpacityToAlpha:!0},I=this._makeColorGradient(E,_),L=[this.getControllerVisual(E[0],"symbolSize",_),this.getControllerVisual(E[1],"symbolSize",_)],N=this._createBarPoints(w,L);return{barColor:new x(0,0,0,1,I),barPoints:N,handlesColor:[I[0].color,I[I.length-1].color]}},_makeColorGradient:function(E,T){var w=100,S=[],_=(E[1]-E[0])/w;S.push({color:this.getControllerVisual(E[0],"color",T),offset:0});for(var I=1;I<w;I++){var L=E[0]+_*I;if(L>E[1])break;S.push({color:this.getControllerVisual(L,"color",T),offset:I/w})}return S.push({color:this.getControllerVisual(E[1],"color",T),offset:1}),S},_createBarPoints:function(E,T){var w=this.visualMapModel.itemSize;return[[w[0]-T[0],E[0]],[w[0],E[0]],[w[0],E[1]],[w[0]-T[1],E[1]]]},_createBarGroup:function(E){var T=this._orient,w=this.visualMapModel.get("inverse");return new b.Group(T==="horizontal"&&!w?{scale:E==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:T==="horizontal"&&w?{scale:E==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:T==="vertical"&&!w?{scale:E==="left"?[1,-1]:[-1,-1]}:{scale:E==="left"?[1,1]:[-1,1]})},_updateHandle:function(E,T){if(!this._useHandle)return;var w=this._shapes,S=this.visualMapModel,_=w.handleThumbs,I=w.handleLabels;i([0,1],function(L){var N=_[L];N.setStyle("fill",T.handlesColor[L]),N.position[1]=E[L];var R=b.applyTransform(w.handleLabelPoints[L],b.getTransform(N,this.group));I[L].setStyle({x:R[0],y:R[1],text:S.formatValueText(this._dataInterval[L]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?L===0?"bottom":"top":"left",w.barGroup)})},this)},_showIndicator:function(E,T,w,S){var _=this.visualMapModel,I=_.getExtent(),L=_.itemSize,N=[0,L[1]],R=r(E,I,N,!0),D=this._shapes,F=D.indicator;if(!F)return;F.position[1]=R,F.attr("invisible",!1),F.setShape("points",h(!!w,S,R,L[1]));var M={convertOpacityToAlpha:!0},U=this.getControllerVisual(E,"color",M);F.setStyle("fill",U);var B=b.applyTransform(D.indicatorLabelPoint,b.getTransform(F,this.group)),j=D.indicatorLabel;j.attr("invisible",!1);var W=this._applyTransform("left",D.barGroup),V=this._orient;j.setStyle({text:(w||"")+_.formatValueText(T),textVerticalAlign:V==="horizontal"?W:"middle",textAlign:V==="horizontal"?"center":W,x:B[0],y:B[1]})},_enableHoverLinkToSeries:function(){var E=this;this._shapes.barGroup.on("mousemove",function(T){if(E._hovering=!0,!E._dragging){var w=E.visualMapModel.itemSize,S=E._applyTransform([T.offsetX,T.offsetY],E._shapes.barGroup,!0,!0);S[1]=n(e(0,S[1]),w[1]),E._doHoverLinkToSeries(S[1],0<=S[0]&&S[0]<=w[0])}}).on("mouseout",function(){E._hovering=!1,!E._dragging&&E._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var E=this.api.getZr();this.visualMapModel.option.hoverLink?(E.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),E.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(E,T){var w=this.visualMapModel,S=w.itemSize;if(!w.option.hoverLink)return;var _=[0,S[1]],I=w.getExtent();E=n(e(_[0],E),_[1]);var L=p(w,I,_),N=[E-L,E+L],R=r(E,_,I,!0),D=[r(N[0],_,I,!0),r(N[1],_,I,!0)];N[0]<_[0]&&(D[0]=-Infinity),N[1]>_[1]&&(D[1]=Infinity),T&&(D[0]===-Infinity?this._showIndicator(R,D[1],"< ",L):D[1]===Infinity?this._showIndicator(R,D[0],"> ",L):this._showIndicator(R,R,"\u2248 ",L));var F=this._hoverLinkDataIndices,M=[];(T||m(w))&&(M=this._hoverLinkDataIndices=w.findTargetDataIndices(D));var U=o.compressBatches(F,M);this._dispatchHighDown("downplay",c.makeHighDownBatch(U[0],w)),this._dispatchHighDown("highlight",c.makeHighDownBatch(U[1],w))},_hoverLinkFromSeriesMouseOver:function(E){var T=E.target,w=this.visualMapModel;if(!T||T.dataIndex==null)return;var S=this.ecModel.getSeriesByIndex(T.seriesIndex);if(!w.isTargetSeries(S))return;var _=S.getData(T.dataType),I=_.get(w.getDataDimension(_),T.dataIndex,!0);isNaN(I)||this._showIndicator(I,I)},_hideIndicator:function(){var E=this._shapes;E.indicator&&E.indicator.attr("invisible",!0),E.indicatorLabel&&E.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var E=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",c.makeHighDownBatch(E,this.visualMapModel)),E.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var E=this.api.getZr();E.off("mouseover",this._hoverLinkFromSeriesMouseOver),E.off("mouseout",this._hideIndicator)},_applyTransform:function(E,T,w,S){var _=b.getTransform(T,S?null:this.group);return b[O.isArray(E)?"applyTransform":"transformDirection"](E,_,w)},_dispatchHighDown:function(E,T){T&&T.length&&this.api.dispatchAction({type:E,batch:T})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function s(E,T,w,S){return new b.Polygon({shape:{points:E},draggable:!!w,cursor:T,drift:w,onmousemove:function(_){C.stop(_.event)},ondragend:S})}function u(E,T){return E===0?[[0,0],[T,0],[T,-T]]:[[0,0],[T,0],[T,T]]}function h(E,T,w,S){return E?[[0,-n(T,e(w,0))],[t,0],[0,n(T,e(S-w,0))]]:[[0,0],[5,-5],[5,5]]}function p(E,T,w){var S=l/2,_=E.get("hoverLinkDataSize");return _&&(S=r(_,T,w,!0)/2),S}function m(E){var T=E.get("hoverLinkOnHandle");return!!(T==null?E.get("realtime"):T)}function v(E){return E==="vertical"?"ns-resize":"ew-resize"}var y=a;H.exports=y},PQMj:function(H,k,d){},PSzr:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},PVpz:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.StreamCipher,b=x.algo,g=[],f=[],c=[],o=b.RabbitLegacy=A.extend({_doReset:function(){var n=this._key.words,e=this.cfg.iv,l=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]^=l[a+4&7];if(e){var s=e.words,u=s[0],h=s[1],p=(u<<8|u>>>24)&16711935|(u<<24|u>>>8)&4278255360,m=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,v=p>>>16|m&4294901760,y=m<<16|p&65535;t[0]^=p,t[1]^=v,t[2]^=m,t[3]^=y,t[4]^=p,t[5]^=v,t[6]^=m,t[7]^=y;for(var a=0;a<4;a++)r.call(this)}},_doProcessBlock:function(n,e){var l=this._X;r.call(this),g[0]=l[0]^l[5]>>>16^l[3]<<16,g[1]=l[2]^l[7]>>>16^l[5]<<16,g[2]=l[4]^l[1]>>>16^l[7]<<16,g[3]=l[6]^l[3]>>>16^l[1]<<16;for(var t=0;t<4;t++)g[t]=(g[t]<<8|g[t]>>>24)&16711935|(g[t]<<24|g[t]>>>8)&4278255360,n[e+t]^=g[t]},blockSize:128/32,ivSize:64/32});function r(){for(var i=this._X,n=this._C,e=0;e<8;e++)f[e]=n[e];n[0]=n[0]+1295307597+this._b|0,n[1]=n[1]+3545052371+(n[0]>>>0<f[0]>>>0?1:0)|0,n[2]=n[2]+886263092+(n[1]>>>0<f[1]>>>0?1:0)|0,n[3]=n[3]+1295307597+(n[2]>>>0<f[2]>>>0?1:0)|0,n[4]=n[4]+3545052371+(n[3]>>>0<f[3]>>>0?1:0)|0,n[5]=n[5]+886263092+(n[4]>>>0<f[4]>>>0?1:0)|0,n[6]=n[6]+1295307597+(n[5]>>>0<f[5]>>>0?1:0)|0,n[7]=n[7]+3545052371+(n[6]>>>0<f[6]>>>0?1:0)|0,this._b=n[7]>>>0<f[7]>>>0?1:0;for(var e=0;e<8;e++){var l=i[e]+n[e],t=l&65535,a=l>>>16,s=((t*t>>>17)+t*a>>>15)+a*a,u=((l&4294901760)*l|0)+((l&65535)*l|0);c[e]=s^u}i[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,i[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,i[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,i[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,i[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,i[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,i[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,i[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}x.RabbitLegacy=A._createHelper(o)}(),O.RabbitLegacy})},ProS:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("aX58"),A=d("bYtY"),b=d("Qe9p"),g=d("ItGF"),f=d("BPZU"),c=d("H6uX"),o=d("fmMI"),r=d("hD7B"),i=d("IDmD"),n=d("ypgQ"),e=d("+wW9"),l=d("0V0F"),t=d("bLfw"),a=d("T4UG"),s=d("sS/r"),u=d("6Ic6"),h=d("IwbS"),p=d("4NO4"),m=d("iLNv"),v=m.throttle,y=d("/WM3"),E=d("uAnK"),T=d("mYwL"),w=d("af/B"),S=d("xTNl"),_=d("8hn6");d("A1Ka");var I=d("7DRL"),L=A.assert,N=A.each,R=A.isFunction,D=A.isObject,F=t.parseClassType,M="4.8.0",U={zrender:"4.3.1"},B=1,j=1e3,W=800,V=900,z=5e3,J=1e3,q=1100,de=2e3,ae=3e3,ve=3500,_e=4e3,Ie=5e3,He={PROCESSOR:{FILTER:j,SERIES_FILTER:W,STATISTIC:z},VISUAL:{LAYOUT:J,PROGRESSIVE_LAYOUT:q,GLOBAL:de,CHART:ae,POST_CHART_LAYOUT:ve,COMPONENT:_e,BRUSH:Ie}},me="__flagInMainProcess",ke="__optionUpdated",se=/^[a-zA-Z0-9_]+$/;function te(ut,Kt){return function(Ar,ir,pr){if(!Kt&&this._disposed){Mt(this.id);return}Ar=Ar&&Ar.toLowerCase(),c.prototype[ut].call(this,Ar,ir,pr)}}function Ge(){c.call(this)}Ge.prototype.on=te("on",!0),Ge.prototype.off=te("off",!0),Ge.prototype.one=te("one",!0),A.mixin(Ge,c);function oe(ut,Kt,Ar){Ar=Ar||{},typeof Kt=="string"&&(Kt=Qe[Kt]),this.id,this.group,this._dom=ut;var ir="canvas",pr=this._zr=C.init(ut,{renderer:Ar.renderer||ir,devicePixelRatio:Ar.devicePixelRatio,width:Ar.width,height:Ar.height});this._throttledZrFlush=v(A.bind(pr.flush,pr),17);var Kt=A.clone(Kt);Kt&&e(Kt,!0),this._theme=Kt,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new i;var tn=this._api=Xe(this);function fn(Mn,Yn){return Mn.__prio-Yn.__prio}f(ct,fn),f(Ce,fn),this._scheduler=new w(this,tn,Ce,ct),c.call(this,this._ecEventProcessor=new ie),this._messageCenter=new Ge,this._initEvents(),this.resize=A.bind(this.resize,this),this._pendingActions=[],pr.animation.on("frame",this._onframe,this),Ee(pr,this),A.setAsPrimitive(this)}var Y=oe.prototype;Y._onframe=function(){if(this._disposed)return;var ut=this._scheduler;if(this[ke]){var Kt=this[ke].silent;this[me]=!0,ye(this),Q.update.call(this),this[me]=!1,this[ke]=!1,le.call(this,Kt),fe.call(this,Kt)}else if(ut.unfinished){var Ar=B,ir=this._model,pr=this._api;ut.unfinished=!1;do{var tn=+new Date;ut.performSeriesTasks(ir),ut.performDataProcessorTasks(ir),Te(this,ir),ut.performVisualTasks(ir),Tt(this,this._model,pr,"remain"),Ar-=+new Date-tn}while(Ar>0&&ut.unfinished);ut.unfinished||this._zr.flush()}},Y.getDom=function(){return this._dom},Y.getZr=function(){return this._zr},Y.setOption=function(ut,Kt,Ar){if(this._disposed){Mt(this.id);return}var ir;if(D(Kt)&&(Ar=Kt.lazyUpdate,ir=Kt.silent,Kt=Kt.notMerge),this[me]=!0,!this._model||Kt){var pr=new n(this._api),tn=this._theme,fn=this._model=new o;fn.scheduler=this._scheduler,fn.init(null,null,tn,pr)}this._model.setOption(ut,Z),Ar?(this[ke]={silent:ir},this[me]=!1):(ye(this),Q.update.call(this),this._zr.flush(),this[ke]=!1,this[me]=!1,le.call(this,ir),fe.call(this,ir))},Y.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Y.getModel=function(){return this._model},Y.getOption=function(){return this._model&&this._model.getOption()},Y.getWidth=function(){return this._zr.getWidth()},Y.getHeight=function(){return this._zr.getHeight()},Y.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Y.getRenderedCanvas=function(ut){if(!g.canvasSupported)return;ut=ut||{},ut.pixelRatio=ut.pixelRatio||1,ut.backgroundColor=ut.backgroundColor||this._model.get("backgroundColor");var Kt=this._zr;return Kt.painter.getRenderedCanvas(ut)},Y.getSvgDataURL=function(){if(!g.svgSupported)return;var ut=this._zr,Kt=ut.storage.getDisplayList();return A.each(Kt,function(Ar){Ar.stopAnimation(!0)}),ut.painter.toDataURL()},Y.getDataURL=function(ut){if(this._disposed){Mt(this.id);return}ut=ut||{};var Kt=ut.excludeComponents,Ar=this._model,ir=[],pr=this;N(Kt,function(fn){Ar.eachComponent({mainType:fn},function(Mn){var Yn=pr._componentsMap[Mn.__viewId];Yn.group.ignore||(ir.push(Yn),Yn.group.ignore=!0)})});var tn=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(ut).toDataURL("image/"+(ut&&ut.type||"png"));return N(ir,function(fn){fn.group.ignore=!1}),tn},Y.getConnectedDataURL=function(ut){if(this._disposed){Mt(this.id);return}if(!g.canvasSupported)return;var Kt=ut.type==="svg",Ar=this.group,ir=Math.min,pr=Math.max,tn=Infinity;if(Lr[Ar]){var fn=tn,Mn=tn,Yn=-tn,si=-tn,vi=[],xi=ut&&ut.pixelRatio||1;A.each(Ft,function(Ye,We){if(Ye.group===Ar){var qe=Kt?Ye.getZr().painter.getSvgDom().innerHTML:Ye.getRenderedCanvas(A.clone(ut)),yt=Ye.getDom().getBoundingClientRect();fn=ir(yt.left,fn),Mn=ir(yt.top,Mn),Yn=pr(yt.right,Yn),si=pr(yt.bottom,si),vi.push({dom:qe,left:yt.left,top:yt.top})}}),fn*=xi,Mn*=xi,Yn*=xi,si*=xi;var _i=Yn-fn,Ze=si-Mn,we=A.createCanvas(),Ne=C.init(we,{renderer:Kt?"svg":"canvas"});if(Ne.resize({width:_i,height:Ze}),Kt){var Fe="";return N(vi,function(Ye){var We=Ye.left-fn,qe=Ye.top-Mn;Fe+='<g transform="translate('+We+","+qe+')">'+Ye.dom+"</g>"}),Ne.painter.getSvgRoot().innerHTML=Fe,ut.connectedBackgroundColor&&Ne.painter.setBackgroundColor(ut.connectedBackgroundColor),Ne.refreshImmediately(),Ne.painter.toDataURL()}else return ut.connectedBackgroundColor&&Ne.add(new h.Rect({shape:{x:0,y:0,width:_i,height:Ze},style:{fill:ut.connectedBackgroundColor}})),N(vi,function(Ye){var We=new h.Image({style:{x:Ye.left*xi-fn,y:Ye.top*xi-Mn,image:Ye.dom}});Ne.add(We)}),Ne.refreshImmediately(),we.toDataURL("image/"+(ut&&ut.type||"png"))}else return this.getDataURL(ut)},Y.convertToPixel=A.curry(G,"convertToPixel"),Y.convertFromPixel=A.curry(G,"convertFromPixel");function G(ut,Kt,Ar){if(this._disposed){Mt(this.id);return}var ir=this._model,pr=this._coordSysMgr.getCoordinateSystems(),tn;Kt=p.parseFinder(ir,Kt);for(var fn=0;fn<pr.length;fn++){var Mn=pr[fn];if(Mn[ut]&&(tn=Mn[ut](ir,Kt,Ar))!=null)return tn}}Y.containPixel=function(ut,Kt){if(this._disposed){Mt(this.id);return}var Ar=this._model,ir;return ut=p.parseFinder(Ar,ut),A.each(ut,function(pr,tn){tn.indexOf("Models")>=0&&A.each(pr,function(fn){var Mn=fn.coordinateSystem;if(Mn&&Mn.containPoint)ir|=!!Mn.containPoint(Kt);else if(tn==="seriesModels"){var Yn=this._chartsMap[fn.__viewId];Yn&&Yn.containPoint&&(ir|=Yn.containPoint(Kt,fn))}},this)},this),!!ir},Y.getVisual=function(ut,Kt){var Ar=this._model;ut=p.parseFinder(Ar,ut,{defaultMainType:"series"});var ir=ut.seriesModel,pr=ir.getData(),tn=ut.hasOwnProperty("dataIndexInside")?ut.dataIndexInside:ut.hasOwnProperty("dataIndex")?pr.indexOfRawIndex(ut.dataIndex):null;return tn!=null?pr.getItemVisual(tn,Kt):pr.getVisual(Kt)},Y.getViewOfComponentModel=function(ut){return this._componentsMap[ut.__viewId]},Y.getViewOfSeriesModel=function(ut){return this._chartsMap[ut.__viewId]};var Q={prepareAndUpdate:function(ut){ye(this),Q.update.call(this,ut)},update:function(ut){var Kt=this._model,Ar=this._api,ir=this._zr,pr=this._coordSysMgr,tn=this._scheduler;if(!Kt)return;tn.restoreData(Kt,ut),tn.performSeriesTasks(Kt),pr.create(Kt,Ar),tn.performDataProcessorTasks(Kt,ut),Te(this,Kt),pr.update(Kt,Ar),vt(Kt),tn.performVisualTasks(Kt,ut),et(this,Kt,Ar,ut);var fn=Kt.get("backgroundColor")||"transparent";if(g.canvasSupported)ir.setBackgroundColor(fn);else{var Mn=b.parse(fn);fn=b.stringify(Mn,"rgb"),Mn[3]===0&&(fn="transparent")}Je(Kt,Ar)},updateTransform:function(ut){var Kt=this._model,Ar=this,ir=this._api;if(!Kt)return;var pr=[];Kt.eachComponent(function(fn,Mn){var Yn=Ar.getViewOfComponentModel(Mn);if(Yn&&Yn.__alive)if(Yn.updateTransform){var si=Yn.updateTransform(Mn,Kt,ir,ut);si&&si.update&&pr.push(Yn)}else pr.push(Yn)});var tn=A.createHashMap();Kt.eachSeries(function(fn){var Mn=Ar._chartsMap[fn.__viewId];if(Mn.updateTransform){var Yn=Mn.updateTransform(fn,Kt,ir,ut);Yn&&Yn.update&&tn.set(fn.uid,1)}else tn.set(fn.uid,1)}),vt(Kt),this._scheduler.performVisualTasks(Kt,ut,{setDirty:!0,dirtyMap:tn}),Tt(Ar,Kt,ir,ut,tn),Je(Kt,this._api)},updateView:function(ut){var Kt=this._model;if(!Kt)return;u.markUpdateMethod(ut,"updateView"),vt(Kt),this._scheduler.performVisualTasks(Kt,ut,{setDirty:!0}),et(this,this._model,this._api,ut),Je(Kt,this._api)},updateVisual:function(ut){Q.update.call(this,ut)},updateLayout:function(ut){Q.update.call(this,ut)}};function ye(ut){var Kt=ut._model,Ar=ut._scheduler;Ar.restorePipelines(Kt),Ar.prepareStageTasks(),Ve(ut,"component",Kt,Ar),Ve(ut,"chart",Kt,Ar),Ar.plan()}function ce(ut,Kt,Ar,ir,pr){var tn=ut._model;if(!ir){N(ut._componentsViews.concat(ut._chartsViews),si);return}var fn={};fn[ir+"Id"]=Ar[ir+"Id"],fn[ir+"Index"]=Ar[ir+"Index"],fn[ir+"Name"]=Ar[ir+"Name"];var Mn={mainType:ir,query:fn};pr&&(Mn.subType=pr);var Yn=Ar.excludeSeriesId;Yn!=null&&(Yn=A.createHashMap(p.normalizeToArray(Yn))),tn&&tn.eachComponent(Mn,function(vi){(!Yn||Yn.get(vi.id)==null)&&si(ut[ir==="series"?"_chartsMap":"_componentsMap"][vi.__viewId])},ut);function si(vi){vi&&vi.__alive&&vi[Kt]&&vi[Kt](vi.__model,tn,ut._api,Ar)}}Y.resize=function(ut){if(this._disposed){Mt(this.id);return}this._zr.resize(ut);var Kt=this._model;if(this._loadingFX&&this._loadingFX.resize(),!Kt)return;var Ar=Kt.resetOption("media"),ir=ut&&ut.silent;this[me]=!0,Ar&&ye(this),Q.update.call(this),this[me]=!1,le.call(this,ir),fe.call(this,ir)};function Te(ut,Kt){var Ar=ut._chartsMap,ir=ut._scheduler;Kt.eachSeries(function(pr){ir.updateStreamModes(pr,Ar[pr.__viewId])})}Y.showLoading=function(ut,Kt){if(this._disposed){Mt(this.id);return}if(D(ut)&&(Kt=ut,ut=""),ut=ut||"default",this.hideLoading(),!dt[ut])return;var Ar=dt[ut](this._api,Kt),ir=this._zr;this._loadingFX=Ar,ir.add(Ar)},Y.hideLoading=function(){if(this._disposed){Mt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},Y.makeActionFromEvent=function(ut){var Kt=A.extend({},ut);return Kt.type=Be[ut.type],Kt},Y.dispatchAction=function(ut,Kt){if(this._disposed){Mt(this.id);return}if(D(Kt)||(Kt={silent:!!Kt}),!X[ut.type])return;if(!this._model)return;if(this[me]){this._pendingActions.push(ut);return}Se.call(this,ut,Kt.silent),Kt.flush?this._zr.flush(!0):Kt.flush!==!1&&g.browser.weChat&&this._throttledZrFlush(),le.call(this,Kt.silent),fe.call(this,Kt.silent)};function Se(ut,Kt){var Ar=ut.type,ir=ut.escapeConnect,pr=X[Ar],tn=pr.actionInfo,fn=(tn.update||"update").split(":"),Mn=fn.pop();fn=fn[0]!=null&&F(fn[0]),this[me]=!0;var Yn=[ut],si=!1;ut.batch&&(si=!0,Yn=A.map(ut.batch,function(Ze){return Ze=A.defaults(A.extend({},Ze),ut),Ze.batch=null,Ze}));var vi=[],xi,_i=Ar==="highlight"||Ar==="downplay";N(Yn,function(Ze){xi=pr.action(Ze,this._model,this._api),xi=xi||A.extend({},Ze),xi.type=tn.event||xi.type,vi.push(xi),_i?ce(this,Mn,Ze,"series"):fn&&ce(this,Mn,Ze,fn.main,fn.sub)},this),Mn!=="none"&&!_i&&!fn&&(this[ke]?(ye(this),Q.update.call(this,ut),this[ke]=!1):Q[Mn].call(this,ut)),si?xi={type:tn.event||Ar,escapeConnect:ir,batch:vi}:xi=vi[0],this[me]=!1,!Kt&&this._messageCenter.trigger(xi.type,xi)}function le(ut){for(var Kt=this._pendingActions;Kt.length;){var Ar=Kt.shift();Se.call(this,Ar,ut)}}function fe(ut){!ut&&this.trigger("updated")}function Ee(ut,Kt){ut.on("rendered",function(){Kt.trigger("rendered"),ut.animation.isFinished()&&!Kt[ke]&&!Kt._scheduler.unfinished&&!Kt._pendingActions.length&&Kt.trigger("finished")})}Y.appendData=function(ut){if(this._disposed){Mt(this.id);return}var Kt=ut.seriesIndex,Ar=this.getModel(),ir=Ar.getSeriesByIndex(Kt);ir.appendData(ut),this._scheduler.unfinished=!0},Y.on=te("on",!1),Y.off=te("off",!1),Y.one=te("one",!1);function Ve(ut,Kt,Ar,ir){for(var pr=Kt==="component",tn=pr?ut._componentsViews:ut._chartsViews,fn=pr?ut._componentsMap:ut._chartsMap,Mn=ut._zr,Yn=ut._api,si=0;si<tn.length;si++)tn[si].__alive=!1;pr?Ar.eachComponent(function(_i,Ze){_i!=="series"&&vi(Ze)}):Ar.eachSeries(vi);function vi(_i){var Ze="_ec_"+_i.id+"_"+_i.type,we=fn[Ze];if(!we){var Ne=F(_i.type),Fe=pr?s.getClass(Ne.main,Ne.sub):u.getClass(Ne.sub);we=new Fe,we.init(Ar,Yn),fn[Ze]=we,tn.push(we),Mn.add(we.group)}_i.__viewId=we.__id=Ze,we.__alive=!0,we.__model=_i,we.group.__ecComponentInfo={mainType:_i.mainType,index:_i.componentIndex},!pr&&ir.prepareView(we,_i,Ar,Yn)}for(var si=0;si<tn.length;){var xi=tn[si];xi.__alive?si++:(!pr&&xi.renderTask.dispose(),Mn.remove(xi.group),xi.dispose(Ar,Yn),tn.splice(si,1),delete fn[xi.__id],xi.__id=xi.group.__ecComponentInfo=null)}}function vt(ut){ut.clearColorPalette(),ut.eachSeries(function(Kt){Kt.clearColorPalette()})}function et(ut,Kt,Ar,ir){Oe(ut,Kt,Ar,ir),N(ut._chartsViews,function(pr){pr.__alive=!1}),Tt(ut,Kt,Ar,ir),N(ut._chartsViews,function(pr){pr.__alive||pr.remove(Kt,Ar)})}function Oe(ut,Kt,Ar,ir,pr){N(pr||ut._componentsViews,function(tn){var fn=tn.__model;tn.render(fn,Kt,Ar,ir),_t(fn,tn)})}function Tt(ut,Kt,Ar,ir,pr){var tn=ut._scheduler,fn;Kt.eachSeries(function(Mn){var Yn=ut._chartsMap[Mn.__viewId];Yn.__alive=!0;var si=Yn.renderTask;tn.updatePayload(si,ir),pr&&pr.get(Mn.uid)&&si.dirty(),fn|=si.perform(tn.getPerformArgs(si)),Yn.group.silent=!!Mn.get("silent"),_t(Mn,Yn),It(Mn,Yn)}),tn.unfinished|=fn,er(ut,Kt),E(ut._zr.dom,Kt)}function Je(ut,Kt){N(nt,function(Ar){Ar(ut,Kt)})}var St=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Y._initEvents=function(){N(St,function(ut){var Kt=function(Ar){var ir=this.getModel(),pr=Ar.target,tn,fn=ut==="globalout";if(fn)tn={};else if(pr&&pr.dataIndex!=null){var Mn=pr.dataModel||ir.getSeriesByIndex(pr.seriesIndex);tn=Mn&&Mn.getDataParams(pr.dataIndex,pr.dataType,pr)||{}}else pr&&pr.eventData&&(tn=A.extend({},pr.eventData));if(tn){var Yn=tn.componentType,si=tn.componentIndex;(Yn==="markLine"||Yn==="markPoint"||Yn==="markArea")&&(Yn="series",si=tn.seriesIndex);var vi=Yn&&si!=null&&ir.getComponent(Yn,si),xi=vi&&this[vi.mainType==="series"?"_chartsMap":"_componentsMap"][vi.__viewId];tn.event=Ar,tn.type=ut,this._ecEventProcessor.eventInfo={targetEl:pr,packedEvent:tn,model:vi,view:xi},this.trigger(ut,tn)}};Kt.zrEventfulCallAtLast=!0,this._zr.on(ut,Kt,this)},this),N(Be,function(ut,Kt){this._messageCenter.on(Kt,function(Ar){this.trigger(Kt,Ar)},this)},this)},Y.isDisposed=function(){return this._disposed},Y.clear=function(){if(this._disposed){Mt(this.id);return}this.setOption({series:[]},!0)},Y.dispose=function(){if(this._disposed){Mt(this.id);return}this._disposed=!0,p.setAttribute(this.getDom(),Ut,"");var ut=this._api,Kt=this._model;N(this._componentsViews,function(Ar){Ar.dispose(Kt,ut)}),N(this._chartsViews,function(Ar){Ar.dispose(Kt,ut)}),this._zr.dispose(),delete Ft[this.id]},A.mixin(oe,c);function Mt(ut){}function er(ut,Kt){var Ar=ut._zr,ir=Ar.storage,pr=0;ir.traverse(function(tn){pr++}),pr>Kt.get("hoverLayerThreshold")&&!g.node&&Kt.eachSeries(function(tn){if(tn.preventUsingHoverLayer)return;var fn=ut._chartsMap[tn.__viewId];fn.__alive&&fn.group.traverse(function(Mn){Mn.useHoverLayer=!0})})}function It(ut,Kt){var Ar=ut.get("blendMode")||null;Kt.group.traverse(function(ir){ir.isGroup||ir.style.blend!==Ar&&ir.setStyle("blend",Ar),ir.eachPendingDisplayable&&ir.eachPendingDisplayable(function(pr){pr.setStyle("blend",Ar)})})}function _t(ut,Kt){var Ar=ut.get("z"),ir=ut.get("zlevel");Kt.group.traverse(function(pr){pr.type!=="group"&&(Ar!=null&&(pr.z=Ar),ir!=null&&(pr.zlevel=ir))})}function Xe(ut){var Kt=ut._coordSysMgr;return A.extend(new r(ut),{getCoordinateSystems:A.bind(Kt.getCoordinateSystems,Kt),getComponentByElement:function(Ar){for(;Ar;){var ir=Ar.__ecComponentInfo;if(ir!=null)return ut._model.getComponent(ir.mainType,ir.index);Ar=Ar.parent}}})}function ie(){this.eventInfo}ie.prototype={constructor:ie,normalizeQuery:function(ut){var Kt={},Ar={},ir={};if(A.isString(ut)){var pr=F(ut);Kt.mainType=pr.main||null,Kt.subType=pr.sub||null}else{var tn=["Index","Name","Id"],fn={name:1,dataIndex:1,dataType:1};A.each(ut,function(Mn,Yn){for(var si=!1,vi=0;vi<tn.length;vi++){var xi=tn[vi],_i=Yn.lastIndexOf(xi);if(_i>0&&_i===Yn.length-xi.length){var Ze=Yn.slice(0,_i);Ze!=="data"&&(Kt.mainType=Ze,Kt[xi.toLowerCase()]=Mn,si=!0)}}fn.hasOwnProperty(Yn)&&(Ar[Yn]=Mn,si=!0),si||(ir[Yn]=Mn)})}return{cptQuery:Kt,dataQuery:Ar,otherQuery:ir}},filter:function(ut,Kt,Ar){var ir=this.eventInfo;if(!ir)return!0;var pr=ir.targetEl,tn=ir.packedEvent,fn=ir.model,Mn=ir.view;if(!fn||!Mn)return!0;var Yn=Kt.cptQuery,si=Kt.dataQuery;return vi(Yn,fn,"mainType")&&vi(Yn,fn,"subType")&&vi(Yn,fn,"index","componentIndex")&&vi(Yn,fn,"name")&&vi(Yn,fn,"id")&&vi(si,tn,"name")&&vi(si,tn,"dataIndex")&&vi(si,tn,"dataType")&&(!Mn.filterForExposedEvent||Mn.filterForExposedEvent(ut,Kt.otherQuery,pr,tn));function vi(xi,_i,Ze,we){return xi[Ze]==null||_i[we||Ze]===xi[Ze]}},afterTrigger:function(){this.eventInfo=null}};var X={},Be={},Ce=[],Z=[],nt=[],ct=[],Qe={},dt={},Ft={},Lr={},Wt=new Date-0,ar=new Date-0,Ut="_echarts_instance_";function kt(ut){var Kt=0,Ar=1,ir=2,pr="__connectUpdateStatus";function tn(fn,Mn){for(var Yn=0;Yn<fn.length;Yn++){var si=fn[Yn];si[pr]=Mn}}N(Be,function(fn,Mn){ut._messageCenter.on(Mn,function(Yn){if(Lr[ut.group]&&ut[pr]!==Kt){if(Yn&&Yn.escapeConnect)return;var si=ut.makeActionFromEvent(Yn),vi=[];N(Ft,function(xi){xi!==ut&&xi.group===ut.group&&vi.push(xi)}),tn(vi,Kt),N(vi,function(xi){xi[pr]!==Ar&&xi.dispatchAction(si)}),tn(vi,ir)}})})}function st(ut,Kt,Ar){var ir=Ii(ut);if(ir)return ir;var pr=new oe(ut,Kt,Ar);return pr.id="ec_"+Wt++,Ft[pr.id]=pr,p.setAttribute(ut,Ut,pr.id),kt(pr),pr}function Rr(ut){if(A.isArray(ut)){var Kt=ut;ut=null,N(Kt,function(Ar){Ar.group!=null&&(ut=Ar.group)}),ut=ut||"g_"+ar++,N(Kt,function(Ar){Ar.group=ut})}return Lr[ut]=!0,ut}function on(ut){Lr[ut]=!1}var Sn=on;function zn(ut){typeof ut=="string"?ut=Ft[ut]:ut instanceof oe||(ut=Ii(ut)),ut instanceof oe&&!ut.isDisposed()&&ut.dispose()}function Ii(ut){return Ft[p.getAttribute(ut,Ut)]}function yn(ut){return Ft[ut]}function Nn(ut,Kt){Qe[ut]=Kt}function jt(ut){Z.push(ut)}function At(ut,Kt){xt(Ce,ut,Kt,j)}function Re(ut){nt.push(ut)}function Ke(ut,Kt,Ar){typeof Kt=="function"&&(Ar=Kt,Kt="");var ir=D(ut)?ut.type:[ut,ut={event:Kt}][0];ut.event=(ut.event||ir).toLowerCase(),Kt=ut.event,L(se.test(ir)&&se.test(Kt)),X[ir]||(X[ir]={action:Ar,actionInfo:ut}),Be[Kt]=ir}function Pe(ut,Kt){i.register(ut,Kt)}function at(ut){var Kt=i.get(ut);if(Kt)return Kt.getDimensionsInfo?Kt.getDimensionsInfo():Kt.dimensions.slice()}function wt(ut,Kt){xt(ct,ut,Kt,J,"layout")}function Rt(ut,Kt){xt(ct,ut,Kt,ae,"visual")}function xt(ut,Kt,Ar,ir,pr){(R(Kt)||D(Kt))&&(Ar=Kt,Kt=ir);var tn=w.wrapStageHandler(Ar,pr);return tn.__prio=Kt,tn.__raw=Ar,ut.push(tn),tn}function Lt(ut,Kt){dt[ut]=Kt}function gr(ut){return t.extend(ut)}function Br(ut){return s.extend(ut)}function Et(ut){return a.extend(ut)}function it(ut){return u.extend(ut)}function rt(ut){A.$override("createCanvas",ut)}function Pt(ut,Kt,Ar){I.registerMap(ut,Kt,Ar)}function Ht(ut){var Kt=I.retrieveMap(ut);return Kt&&Kt[0]&&{geoJson:Kt[0].geoJSON,specialAreas:Kt[0].specialAreas}}Rt(de,y),jt(e),At(V,l),Lt("default",T),Ke({type:"highlight",event:"highlight",update:"highlight"},A.noop),Ke({type:"downplay",event:"downplay",update:"downplay"},A.noop),Nn("light",S),Nn("dark",_);var bt={};k.version=M,k.dependencies=U,k.PRIORITY=He,k.init=st,k.connect=Rr,k.disConnect=on,k.disconnect=Sn,k.dispose=zn,k.getInstanceByDom=Ii,k.getInstanceById=yn,k.registerTheme=Nn,k.registerPreprocessor=jt,k.registerProcessor=At,k.registerPostUpdate=Re,k.registerAction=Ke,k.registerCoordinateSystem=Pe,k.getCoordinateSystemDimensions=at,k.registerLayout=wt,k.registerVisual=Rt,k.registerLoading=Lt,k.extendComponentModel=gr,k.extendComponentView=Br,k.extendSeriesModel=Et,k.extendChartView=it,k.setCanvasCreator=rt,k.registerMap=Pt,k.getMap=Ht,k.dataTool=bt;var Gt=d("txkQ");(function(){for(var ut in Gt)Gt.hasOwnProperty(ut)&&(k[ut]=Gt[ut])})()},Pw59:function(H,k,d){"use strict";var O=d("q1tI"),x=d.n(O),C=Object(O.createContext)({});k.a=C},Q7if:function(H,k,d){var O=d("JEkh"),x=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"}}}});H.exports=x},Q9mQ:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("UADf"),A=d.n(C)},"QB+1":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("Ywus"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},QBsz:function(H,k){var d=typeof Float32Array=="undefined"?Array:Float32Array;function O(w,S){var _=new d(2);return w==null&&(w=0),S==null&&(S=0),_[0]=w,_[1]=S,_}function x(w,S){return w[0]=S[0],w[1]=S[1],w}function C(w){var S=new d(2);return S[0]=w[0],S[1]=w[1],S}function A(w,S,_){return w[0]=S,w[1]=_,w}function b(w,S,_){return w[0]=S[0]+_[0],w[1]=S[1]+_[1],w}function g(w,S,_,I){return w[0]=S[0]+_[0]*I,w[1]=S[1]+_[1]*I,w}function f(w,S,_){return w[0]=S[0]-_[0],w[1]=S[1]-_[1],w}function c(w){return Math.sqrt(r(w))}var o=c;function r(w){return w[0]*w[0]+w[1]*w[1]}var i=r;function n(w,S,_){return w[0]=S[0]*_[0],w[1]=S[1]*_[1],w}function e(w,S,_){return w[0]=S[0]/_[0],w[1]=S[1]/_[1],w}function l(w,S){return w[0]*S[0]+w[1]*S[1]}function t(w,S,_){return w[0]=S[0]*_,w[1]=S[1]*_,w}function a(w,S){var _=c(S);return _===0?(w[0]=0,w[1]=0):(w[0]=S[0]/_,w[1]=S[1]/_),w}function s(w,S){return Math.sqrt((w[0]-S[0])*(w[0]-S[0])+(w[1]-S[1])*(w[1]-S[1]))}var u=s;function h(w,S){return(w[0]-S[0])*(w[0]-S[0])+(w[1]-S[1])*(w[1]-S[1])}var p=h;function m(w,S){return w[0]=-S[0],w[1]=-S[1],w}function v(w,S,_,I){return w[0]=S[0]+I*(_[0]-S[0]),w[1]=S[1]+I*(_[1]-S[1]),w}function y(w,S,_){var I=S[0],L=S[1];return w[0]=_[0]*I+_[2]*L+_[4],w[1]=_[1]*I+_[3]*L+_[5],w}function E(w,S,_){return w[0]=Math.min(S[0],_[0]),w[1]=Math.min(S[1],_[1]),w}function T(w,S,_){return w[0]=Math.max(S[0],_[0]),w[1]=Math.max(S[1],_[1]),w}k.create=O,k.copy=x,k.clone=C,k.set=A,k.add=b,k.scaleAndAdd=g,k.sub=f,k.len=c,k.length=o,k.lenSquare=r,k.lengthSquare=i,k.mul=n,k.div=e,k.dot=l,k.scale=t,k.normalize=a,k.distance=s,k.dist=u,k.distanceSquare=h,k.distSquare=p,k.negate=m,k.lerp=v,k.applyTransform=y,k.min=E,k.max=T},"QO+J":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.createSensor=void 0;var O=C(d("NohK")),x=d("24YM");function C(b){return b&&b.__esModule?b:{default:b}}var A=function(g){var f=void 0,c=[],o=function(){getComputedStyle(g).position==="static"&&(g.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",x.SensorClassName),t.setAttribute("tabindex",x.SensorTabIndex),t.type="text/html",g.appendChild(t),t.data="about:blank",t},r=(0,O.default)(function(){c.forEach(function(l){l(g)})}),i=function(t){f||(f=o()),c.indexOf(t)===-1&&c.push(t)},n=function(){f&&f.parentNode&&(f.contentDocument&&f.contentDocument.defaultView.removeEventListener("resize",r),f.parentNode.removeChild(f),f=void 0,c=[])},e=function(t){var a=c.indexOf(t);a!==-1&&c.splice(a,1),c.length===0&&f&&n()};return{element:g,bind:i,destroy:n,unbind:e}};k.createSensor=A},"QQZ/":function(H,k,d){var O=d("Sq3C"),x=d("Z1HP"),C=d("Sxd8"),A=d("dt0z");function b(g,f,c){g=A(g),f=C(f);var o=f?x(g):0;return f&&o<f?O(f-o,c)+g:g}H.exports=b},QUw5:function(H,k,d){var O=d("OlYY"),x=O.extend({type:"dataZoom.select"});H.exports=x},QV2g:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=O;function O(){for(var A,b=[],g=0;g<256;g++){A=g;for(var f=0;f<8;f++)A=A&1?3988292384^A>>>1:A>>>1;b[g]=A}return b}var x=O();function C(A,b,g,f){var c=x,o=f+g;A^=-1;for(var r=f;r<o;r++)A=A>>>8^c[(A^b[r])&255];return A^-1}},QbM5:function(H,k,d){},Qe9p:function(H,k,d){var O=d("1RvN"),x={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(S){return S=Math.round(S),S<0?0:S>255?255:S}function A(S){return S=Math.round(S),S<0?0:S>360?360:S}function b(S){return S<0?0:S>1?1:S}function g(S){return S.length&&S.charAt(S.length-1)==="%"?C(parseFloat(S)/100*255):C(parseInt(S,10))}function f(S){return S.length&&S.charAt(S.length-1)==="%"?b(parseFloat(S)/100):b(parseFloat(S))}function c(S,_,I){return I<0?I+=1:I>1&&(I-=1),I*6<1?S+(_-S)*I*6:I*2<1?_:I*3<2?S+(_-S)*(2/3-I)*6:S}function o(S,_,I){return S+(_-S)*I}function r(S,_,I,L,N){return S[0]=_,S[1]=I,S[2]=L,S[3]=N,S}function i(S,_){return S[0]=_[0],S[1]=_[1],S[2]=_[2],S[3]=_[3],S}var n=new O(20),e=null;function l(S,_){e&&i(e,_),e=n.put(S,e||_.slice())}function t(S,_){if(!S)return;_=_||[];var I=n.get(S);if(I)return i(_,I);S=S+"";var L=S.replace(/ /g,"").toLowerCase();if(L in x)return i(_,x[L]),l(S,_),_;if(L.charAt(0)==="#"){if(L.length===4){var N=parseInt(L.substr(1),16);if(!(N>=0&&N<=4095)){r(_,0,0,0,1);return}return r(_,(N&3840)>>4|(N&3840)>>8,N&240|(N&240)>>4,N&15|(N&15)<<4,1),l(S,_),_}else if(L.length===7){var N=parseInt(L.substr(1),16);if(!(N>=0&&N<=16777215)){r(_,0,0,0,1);return}return r(_,(N&16711680)>>16,(N&65280)>>8,N&255,1),l(S,_),_}return}var R=L.indexOf("("),D=L.indexOf(")");if(R!==-1&&D+1===L.length){var F=L.substr(0,R),M=L.substr(R+1,D-(R+1)).split(","),U=1;switch(F){case"rgba":if(M.length!==4){r(_,0,0,0,1);return}U=f(M.pop());case"rgb":if(M.length!==3){r(_,0,0,0,1);return}return r(_,g(M[0]),g(M[1]),g(M[2]),U),l(S,_),_;case"hsla":if(M.length!==4){r(_,0,0,0,1);return}return M[3]=f(M[3]),a(M,_),l(S,_),_;case"hsl":if(M.length!==3){r(_,0,0,0,1);return}return a(M,_),l(S,_),_;default:return}}r(_,0,0,0,1);return}function a(S,_){var I=(parseFloat(S[0])%360+360)%360/360,L=f(S[1]),N=f(S[2]),R=N<=.5?N*(L+1):N+L-N*L,D=N*2-R;return _=_||[],r(_,C(c(D,R,I+1/3)*255),C(c(D,R,I)*255),C(c(D,R,I-1/3)*255),1),S.length===4&&(_[3]=S[3]),_}function s(S){if(!S)return;var _=S[0]/255,I=S[1]/255,L=S[2]/255,N=Math.min(_,I,L),R=Math.max(_,I,L),D=R-N,F=(R+N)/2,M,U;if(D===0)M=0,U=0;else{F<.5?U=D/(R+N):U=D/(2-R-N);var B=((R-_)/6+D/2)/D,j=((R-I)/6+D/2)/D,W=((R-L)/6+D/2)/D;_===R?M=W-j:I===R?M=1/3+B-W:L===R&&(M=2/3+j-B),M<0&&(M+=1),M>1&&(M-=1)}var V=[M*360,U,F];return S[3]!=null&&V.push(S[3]),V}function u(S,_){var I=t(S);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:S[L]<0&&(I[L]=0);return w(I,I.length===4?"rgba":"rgb")}}function h(S){var _=t(S);if(_)return((1<<24)+(_[0]<<16)+(_[1]<<8)+ +_[2]).toString(16).slice(1)}function p(S,_,I){if(!(_&&_.length)||!(S>=0&&S<=1))return;I=I||[];var L=S*(_.length-1),N=Math.floor(L),R=Math.ceil(L),D=_[N],F=_[R],M=L-N;return I[0]=C(o(D[0],F[0],M)),I[1]=C(o(D[1],F[1],M)),I[2]=C(o(D[2],F[2],M)),I[3]=b(o(D[3],F[3],M)),I}var m=p;function v(S,_,I){if(!(_&&_.length)||!(S>=0&&S<=1))return;var L=S*(_.length-1),N=Math.floor(L),R=Math.ceil(L),D=t(_[N]),F=t(_[R]),M=L-N,U=w([C(o(D[0],F[0],M)),C(o(D[1],F[1],M)),C(o(D[2],F[2],M)),b(o(D[3],F[3],M))],"rgba");return I?{color:U,leftIndex:N,rightIndex:R,value:L}:U}var y=v;function E(S,_,I,L){if(S=t(S),S)return S=s(S),_!=null&&(S[0]=A(_)),I!=null&&(S[1]=f(I)),L!=null&&(S[2]=f(L)),w(a(S),"rgba")}function T(S,_){if(S=t(S),S&&_!=null)return S[3]=b(_),w(S,"rgba")}function w(S,_){if(!S||!S.length)return;var I=S[0]+","+S[1]+","+S[2];return(_==="rgba"||_==="hsva"||_==="hsla")&&(I+=","+S[3]),_+"("+I+")"}k.parse=t,k.lift=u,k.toHex=h,k.fastLerp=p,k.fastMapToColor=m,k.lerp=v,k.mapToColor=y,k.modifyHSL=E,k.modifyAlpha=T,k.stringify=w},Qi1f:function(H,k,d){"use strict";d.d(k,"g",function(){return s}),d.d(k,"c",function(){return u}),d.d(k,"a",function(){return p}),d.d(k,"b",function(){return m}),d.d(k,"d",function(){return v}),d.d(k,"e",function(){return y}),d.d(k,"f",function(){return T});var O=d("VTBJ"),x=d("U8pU"),C=d("AJpP"),A=d("q1tI"),b=d.n(A),g=d("Kwbf"),f=d("MNnm"),c="rc-util-key";function o(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},S=w.mark;return S?S.startsWith("data-")?S:"data-".concat(S):c}function r(w){if(w.attachTo)return w.attachTo;var S=document.querySelector("head");return S||document.body}function i(w){var S,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(f.a)())return null;var I=document.createElement("style");if((S=_.csp)===null||S===void 0?void 0:S.nonce){var L;I.nonce=(L=_.csp)===null||L===void 0?void 0:L.nonce}I.innerHTML=w;var N=r(_),R=N.firstChild;return _.prepend&&N.prepend?N.prepend(I):_.prepend&&R?N.insertBefore(I,R):N.appendChild(I),I}var n=new Map;function e(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=r(S);return Array.from(n.get(_).children).find(function(I){return I.tagName==="STYLE"&&I.getAttribute(o(S))===w})}function l(w){var S,_=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=e(w,_);I==null||((S=I.parentNode)===null||S===void 0)||S.removeChild(I)}function t(w,S){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},I=r(_);if(!n.has(I)){var L=i("",_),N=L.parentNode;n.set(I,N),N.removeChild(L)}var R=e(S,_);if(R){var D,F;if(((D=_.csp)===null||D===void 0?void 0:D.nonce)&&R.nonce!==((F=_.csp)===null||F===void 0?void 0:F.nonce)){var M;R.nonce=(M=_.csp)===null||M===void 0?void 0:M.nonce}return R.innerHTML!==w&&(R.innerHTML=w),R}var U=i(w,_);return U.setAttribute(o(_),S),U}var a=d("Pw59");function s(w,S){Object(g.a)(w,"[@ant-design/icons] ".concat(S))}function u(w){return Object(x.a)(w)==="object"&&typeof w.name=="string"&&typeof w.theme=="string"&&(Object(x.a)(w.icon)==="object"||typeof w.icon=="function")}function h(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(w).reduce(function(S,_){var I=w[_];switch(_){case"class":S.className=I,delete S.class;break;default:S[_]=I}return S},{})}function p(w,S,_){return _?b.a.createElement(w.tag,Object(O.a)(Object(O.a)({key:S},h(w.attrs)),_),(w.children||[]).map(function(I,L){return p(I,"".concat(S,"-").concat(w.tag,"-").concat(L))})):b.a.createElement(w.tag,Object(O.a)({key:S},h(w.attrs)),(w.children||[]).map(function(I,L){return p(I,"".concat(S,"-").concat(w.tag,"-").concat(L))}))}function m(w){return Object(C.generate)(w)[0]}function v(w){return w?Array.isArray(w)?w:[w]:[]}var y={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},E=`
.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);
}
}
`,T=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:E,_=Object(A.useContext)(a.a),I=_.csp;Object(A.useEffect)(function(){t(S,"@ant-design-icons",{prepend:!0,csp:I})},[])}},Qs3X:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("X+im"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},Qs9O:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},QuXc:function(H,k){var d=function(C){this.colorStops=C||[]};d.prototype={constructor:d,addColorStop:function(C,A){this.colorStops.push({offset:C,color:A})}};var O=d;H.exports=O},Qvb6:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("ItGF"),A=d("B9fm"),b=d("gvm7"),g=d("7aKB"),f=d("OELB"),c=d("IwbS"),o=d("Ez2D"),r=d("+TT/"),i=d("Qxkt"),n=d("F9bG"),e=d("aX7z"),l=d("/y7N"),t=d("4NO4"),a=t.getTooltipRenderMode,s=x.bind,u=x.each,h=f.parsePercent,p=new c.Rect({shape:{x:-1,y:-1,width:2,height:2}}),m=O.extendComponentView({type:"tooltip",init:function(_,I){if(C.node)return;var L=_.getComponent("tooltip"),N=L.get("renderMode");this._renderMode=a(N);var R;this._renderMode==="html"?(R=new A(I.getDom(),I,{appendToBody:L.get("appendToBody",!0)}),this._newLine="<br/>"):(R=new b(I),this._newLine=`
`),this._tooltipContent=R},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 N=this._tooltipContent;N.update(),N.setEnterable(_.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var _=this._tooltipModel,I=_.get("triggerOn");n.register("itemTooltip",this._api,s(function(L,N,R){I!=="none"&&(I.indexOf(L)>=0?this._tryShow(N,R):L==="leave"&&this._hide(R))},this))},_keepShow:function(){var _=this._tooltipModel,I=this._ecModel,L=this._api;if(this._lastX!=null&&this._lastY!=null&&_.get("triggerOn")!=="none"){var N=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!L.isDisposed()&&N.manuallyShowTip(_,I,L,{x:N._lastX,y:N._lastY})})}},manuallyShowTip:function(_,I,L,N){if(N.from===this.uid||C.node)return;var R=y(N,L);this._ticket="";var D=N.dataByCoordSys;if(N.tooltip&&N.x!=null&&N.y!=null){var F=p;F.position=[N.x,N.y],F.update(),F.tooltip=N.tooltip,this._tryShow({offsetX:N.x,offsetY:N.y,target:F},R)}else if(D)this._tryShow({offsetX:N.x,offsetY:N.y,position:N.position,dataByCoordSys:N.dataByCoordSys,tooltipOption:N.tooltipOption},R);else if(N.seriesIndex!=null){if(this._manuallyAxisShowTip(_,I,L,N))return;var M=o(N,I),U=M.point[0],B=M.point[1];U!=null&&B!=null&&this._tryShow({offsetX:U,offsetY:B,position:N.position,target:M.el},R)}else N.x!=null&&N.y!=null&&(L.dispatchAction({type:"updateAxisPointer",x:N.x,y:N.y}),this._tryShow({offsetX:N.x,offsetY:N.y,position:N.position,target:L.getZr().findHover(N.x,N.y).target},R))},manuallyHideTip:function(_,I,L,N){var R=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&R.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,N.from!==this.uid&&this._hide(y(N,L))},_manuallyAxisShowTip:function(_,I,L,N){var R=N.seriesIndex,D=N.dataIndex,F=I.getComponent("axisPointer").coordSysAxesInfo;if(R==null||D==null||F==null)return;var M=I.getSeriesByIndex(R);if(!M)return;var U=M.getData(),_=v([U.getItemModel(D),M,(M.coordinateSystem||{}).model,_]);return _.get("trigger")!=="axis"?void 0:(L.dispatchAction({type:"updateAxisPointer",seriesIndex:R,dataIndex:D,position:N.position}),!0)},_tryShow:function(_,I){var L=_.target,N=this._tooltipModel;if(!N)return;this._lastX=_.offsetX,this._lastY=_.offsetY;var R=_.dataByCoordSys;R&&R.length?this._showAxisTooltip(R,_):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=x.bind(I,this),clearTimeout(this._showTimout),L>0?this._showTimout=setTimeout(I,L):I()},_showAxisTooltip:function(_,I){var L=this._ecModel,N=this._tooltipModel,R=[I.offsetX,I.offsetY],D=[],F=[],M=v([I.tooltipOption,N]),U=this._renderMode,B=this._newLine,j={};u(_,function(V){u(V.dataByAxis,function(z){var J=L.getComponent(z.axisDim+"Axis",z.axisIndex),q=z.value,de=[];if(!J||q==null)return;var ae=l.getValueLabel(q,J.axis,L,z.seriesDataIndices,z.valueLabelOpt);x.each(z.seriesDataIndices,function(_e){var Ie=L.getSeriesByIndex(_e.seriesIndex),He=_e.dataIndexInside,me=Ie&&Ie.getDataParams(He);if(me.axisDim=z.axisDim,me.axisIndex=z.axisIndex,me.axisType=z.axisType,me.axisId=z.axisId,me.axisValue=e.getAxisRawValue(J.axis,q),me.axisValueLabel=ae,me){F.push(me);var ke=Ie.formatTooltip(He,!0,null,U),se;if(x.isObject(ke)){se=ke.html;var te=ke.markers;x.merge(j,te)}else se=ke;de.push(se)}});var ve=ae;U!=="html"?D.push(de.join(B)):D.push((ve?g.encodeHTML(ve)+B:"")+de.join(B))})},this),D.reverse(),D=D.join(this._newLine+this._newLine);var W=I.position;this._showOrMove(M,function(){this._updateContentNotChangedOnAxis(_)?this._updatePosition(M,W,R[0],R[1],this._tooltipContent,F):this._showTooltipContent(M,D,F,Math.random(),R[0],R[1],W,void 0,j)})},_showSeriesItemTooltip:function(_,I,L){var N=this._ecModel,R=I.seriesIndex,D=N.getSeriesByIndex(R),F=I.dataModel||D,M=I.dataIndex,U=I.dataType,B=F.getData(U),j=v([B.getItemModel(M),F,D&&(D.coordinateSystem||{}).model,this._tooltipModel]),W=j.get("trigger");if(W!=null&&W!=="item")return;var V=F.getDataParams(M,U),z=F.formatTooltip(M,!1,U,this._renderMode),J,q;x.isObject(z)?(J=z.html,q=z.markers):(J=z,q=null);var de="item_"+F.name+"_"+M;this._showOrMove(j,function(){this._showTooltipContent(j,J,V,de,_.offsetX,_.offsetY,_.position,_.target,q)}),L({type:"showTip",dataIndexInside:M,dataIndex:B.getRawIndex(M),seriesIndex:R,from:this.uid})},_showComponentItemTooltip:function(_,I,L){var N=I.tooltip;if(typeof N=="string"){var R=N;N={content:R,formatter:R}}var D=new i(N,this._tooltipModel,this._ecModel),F=D.get("content"),M=Math.random();this._showOrMove(D,function(){this._showTooltipContent(D,F,D.get("formatterParams")||{},M,_.offsetX,_.offsetY,_.position,I)}),L({type:"showTip",from:this.uid})},_showTooltipContent:function(_,I,L,N,R,D,F,M,U){if(this._ticket="",!_.get("showContent")||!_.get("show"))return;var B=this._tooltipContent,j=_.get("formatter");F=F||_.get("position");var W=I;if(j&&typeof j=="string")W=g.formatTpl(j,L,!0);else if(typeof j=="function"){var V=s(function(z,J){z===this._ticket&&(B.setContent(J,U,_),this._updatePosition(_,F,R,D,B,L,M))},this);this._ticket=N,W=j(L,N,V)}B.setContent(W,U,_),B.show(_),this._updatePosition(_,F,R,D,B,L,M)},_updatePosition:function(_,I,L,N,R,D,F){var M=this._api.getWidth(),U=this._api.getHeight();I=I||_.get("position");var B=R.getSize(),j=_.get("align"),W=_.get("verticalAlign"),V=F&&F.getBoundingRect().clone();if(F&&V.applyTransform(F.transform),typeof I=="function"&&(I=I([L,N],D,R.el,V,{viewSize:[M,U],contentSize:B.slice()})),x.isArray(I))L=h(I[0],M),N=h(I[1],U);else if(x.isObject(I)){I.width=B[0],I.height=B[1];var z=r.getLayoutRect(I,{width:M,height:U});L=z.x,N=z.y,j=null,W=null}else if(typeof I=="string"&&F){var J=w(I,V,B);L=J[0],N=J[1]}else{var J=E(L,N,R,M,U,j?null:20,W?null:20);L=J[0],N=J[1]}if(j&&(L-=S(j)?B[0]/2:j==="right"?B[0]:0),W&&(N-=S(W)?B[1]/2:W==="bottom"?B[1]:0),_.get("confine")){var J=T(L,N,R,M,U);L=J[0],N=J[1]}R.moveTo(L,N)},_updateContentNotChangedOnAxis:function(_){var I=this._lastDataByCoordSys,L=!!I&&I.length===_.length;return L&&u(I,function(N,R){var D=N.dataByAxis||{},F=_[R]||{},M=F.dataByAxis||[];L&=D.length===M.length,L&&u(D,function(U,B){var j=M[B]||{},W=U.seriesDataIndices||[],V=j.seriesDataIndices||[];L&=U.value===j.value&&U.axisType===j.axisType&&U.axisId===j.axisId&&W.length===V.length,L&&u(W,function(z,J){var q=V[J];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 v(_){for(var I=_.pop();_.length;){var L=_.pop();L&&(i.isInstance(L)&&(L=L.get("tooltip",!0)),typeof L=="string"&&(L={formatter:L}),I=new i(L,I,I.ecModel))}return I}function y(_,I){return _.dispatchAction||x.bind(I.dispatchAction,I)}function E(_,I,L,N,R,D,F){var M=L.getOuterSize(),U=M.width,B=M.height;return D!=null&&(_+U+D>N?_-=U+D:_+=D),F!=null&&(I+B+F>R?I-=B+F:I+=F),[_,I]}function T(_,I,L,N,R){var D=L.getOuterSize(),F=D.width,M=D.height;return _=Math.min(_+F,N)-F,I=Math.min(I+M,R)-M,_=Math.max(_,0),I=Math.max(I,0),[_,I]}function w(_,I,L){var N=L[0],R=L[1],D=5,F=0,M=0,U=I.width,B=I.height;switch(_){case"inside":F=I.x+U/2-N/2,M=I.y+B/2-R/2;break;case"top":F=I.x+U/2-N/2,M=I.y-R-D;break;case"bottom":F=I.x+U/2-N/2,M=I.y+B+D;break;case"left":F=I.x-N-D,M=I.y+B/2-R/2;break;case"right":F=I.x+U+D,M=I.y+B/2-R/2}return[F,M]}function S(_){return _==="center"||_==="middle"}H.exports=m},Qxkt:function(H,k,d){var O=d("bYtY"),x=d("ItGF"),C=d("4NO4"),A=C.makeInner,b=d("Yl7c"),g=b.enableClassExtend,f=b.enableClassCheck,c=d("OQFs"),o=d("m9t5"),r=d("/iHx"),i=d("VR9l"),n=O.mixin,e=A();function l(u,h,p){this.parentModel=h,this.ecModel=p,this.option=u}l.prototype={constructor:l,init:null,mergeOption:function(u){O.merge(this.option,u,!0)},get:function(u,h){return u==null?this.option:t(this.option,this.parsePath(u),!h&&a(this,u))},getShallow:function(u,h){var p=this.option,m=p==null?p:p[u],v=!h&&a(this,u);return m==null&&v&&(m=v.getShallow(u)),m},getModel:function(u,h){var p=u==null?this.option:t(this.option,u=this.parsePath(u)),m;return h=h||(m=a(this,u))&&m.getModel(u),new l(p,h,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(!x.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function t(u,h,p){for(var m=0;m<h.length;m++){if(!h[m])continue;if(u=u&&typeof u=="object"?u[h[m]]:null,u==null)break}return u==null&&p&&(u=p.get(h)),u}function a(u,h){var p=e(u).getParent;return p?p.call(u,h):u.parentModel}g(l),f(l),n(l,c),n(l,o),n(l,r),n(l,i);var s=l;H.exports=s},QyFq:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},QzjZ:function(H,k,d){var O=d("S/Yl"),x=d("IDmD");function C(A,b){var g=[];return A.eachComponent("singleAxis",function(f,c){var o=new O(f,A,b);o.name="single_"+c,o.resize(f,b),f.coordinateSystem=o,g.push(o)}),A.eachSeries(function(f){if(f.get("coordinateSystem")==="singleAxis"){var c=A.queryComponents({mainType:"singleAxis",index:f.get("singleAxisIndex"),id:f.get("singleAxisId")})[0];f.coordinateSystem=c&&c.coordinateSystem}}),g}x.register("single",{create:C,dimensions:O.prototype.dimensions})},R4Th:function(H,k,d){var O=d("ProS"),x=d("9wZj"),C=d("yO87"),A=d("Fofx"),b=d("h8O9"),g=O.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new x(C)},render:function(f,c,o){var r=f.getData(),i=this._symbolDraw;i.updateData(r),this.group.add(i.group)},updateTransform:function(f,c,o){var r=f.getData();this.group.dirty();var i=b().reset(f);i.progress&&i.progress({start:0,end:r.count()},r),this._symbolDraw.updateLayout(r)},_updateGroupTransform:function(f){var c=f.coordinateSystem;c&&c.getRoamTransform&&(this.group.transform=A.clone(c.getRoamTransform()),this.group.decomposeTransform())},remove:function(f,c){this._symbolDraw&&this._symbolDraw.remove(c)},dispose:function(){}});H.exports=g},R9oj:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("pwpV"),A=d.n(C)},RBEP:function(H,k,d){for(var O=d("ProS"),x=d("VaxA"),C=function(){},A=["treemapZoomToNode","treemapRender","treemapMove"],b=0;b<A.length;b++)O.registerAction({type:A[b],update:"updateView"},C);O.registerAction({type:"treemapRootToNode",update:"updateView"},function(g,f){f.eachComponent({mainType:"series",subType:"treemap",query:g},c);function c(o,r){var i=["treemapZoomToNode","treemapRootToNode"],n=x.retrieveTargetInfo(g,i,o);if(n){var e=o.getViewRoot();e&&(g.direction=x.aboveViewRoot(e,n.node)?"rollUp":"drillDown"),o.resetViewRoot(n.node)}}})},RCxd:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="ExclamationCircleOutlined";var f=k.a=x.forwardRef(g)},RDYZ:function(H,k,d){var O=d("dMvE");function x(A){this._target=A.target,this._life=A.life||1e3,this._delay=A.delay||0,this._initialized=!1,this.loop=A.loop==null?!1:A.loop,this.gap=A.gap||0,this.easing=A.easing||"Linear",this.onframe=A.onframe,this.ondestroy=A.ondestroy,this.onrestart=A.onrestart,this._pausedTime=0,this._paused=!1}x.prototype={constructor:x,step:function(b,g){if(this._initialized||(this._startTime=b+this._delay,this._initialized=!0),this._paused){this._pausedTime+=g;return}var f=(b-this._startTime-this._pausedTime)/this._life;if(f<0)return;f=Math.min(f,1);var c=this.easing,o=typeof c=="string"?O[c]:c,r=typeof o=="function"?o(f):f;return this.fire("frame",r),f===1?this.loop?(this.restart(b),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(b){var g=(b-this._startTime-this._pausedTime)%this._life;this._startTime=b-g+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(b,g){b="on"+b,this[b]&&this[b](this._target,g)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var C=x;H.exports=C},RELg:function(H,k,d){var O=d("MFOe"),x=O.Global;H.exports={name:"oldIE-userDataStorage",write:f,read:c,each:o,remove:r,clearAll:i};var C="storejs",A=x.document,b=l(),g=(x.navigator?x.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function f(t,a){if(g)return;var s=e(t);b(function(u){u.setAttribute(s,a),u.save(C)})}function c(t){if(g)return;var a=e(t),s=null;return b(function(u){s=u.getAttribute(a)}),s}function o(t){b(function(a){for(var s=a.XMLDocument.documentElement.attributes,u=s.length-1;u>=0;u--){var h=s[u];t(a.getAttribute(h.name),h.name)}})}function r(t){var a=e(t);b(function(s){s.removeAttribute(a),s.save(C)})}function i(){b(function(t){var a=t.XMLDocument.documentElement.attributes;t.load(C);for(var s=a.length-1;s>=0;s--)t.removeAttribute(a[s].name);t.save(C)})}var n=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(t){return t.replace(/^\d/,"___$&").replace(n,"___")}function l(){if(!A||!A.documentElement||!A.documentElement.addBehavior)return null;var t="script",a,s,u;try{s=new ActiveXObject("htmlfile"),s.open(),s.write("<"+t+">document.w=window</"+t+'><iframe src="/favicon.ico"></iframe>'),s.close(),a=s.w.frames[0].document,u=a.createElement("div")}catch(h){u=A.createElement("div"),a=A.body}return function(h){var p=[].slice.call(arguments,0);p.unshift(u),a.appendChild(u),u.addBehavior("#default#userData"),u.load(C),h.apply(this,p),a.removeChild(u);return}}},RPvy:function(H,k,d){var O=d("ProS"),x=d("VaxA"),C="sunburstRootToNode";O.registerAction({type:C,update:"updateView"},function(g,f){f.eachComponent({mainType:"series",subType:"sunburst",query:g},c);function c(o,r){var i=x.retrieveTargetInfo(g,[C],o);if(i){var n=o.getViewRoot();n&&(g.direction=x.aboveViewRoot(n,i.node)?"rollUp":"drillDown"),o.resetViewRoot(i.node)}}});var A="sunburstHighlight";O.registerAction({type:A,update:"updateView"},function(g,f){f.eachComponent({mainType:"series",subType:"sunburst",query:g},c);function c(o,r){var i=x.retrieveTargetInfo(g,[A],o);i&&(g.highlight=i.node)}});var b="sunburstUnhighlight";O.registerAction({type:b,update:"updateView"},function(g,f){f.eachComponent({mainType:"series",subType:"sunburst",query:g},c);function c(o,r){g.unhighlight=!0}})},RSch:function(H,k,d){var O=d("IwbS"),x=d("bYtY");function C(g,f,c){O.Group.call(this),this._createPolyline(g,f,c)}var A=C.prototype;A._createPolyline=function(g,f,c){var o=g.getItemLayout(f),r=new O.Polyline({shape:{points:o}});this.add(r),this._updateCommonStl(g,f,c)},A.updateData=function(g,f,c){var o=g.hostModel,r=this.childAt(0),i={shape:{points:g.getItemLayout(f)}};O.updateProps(r,i,o,f),this._updateCommonStl(g,f,c)},A._updateCommonStl=function(g,f,c){var o=this.childAt(0),r=g.getItemModel(f),i=g.getItemVisual(f,"color"),n=c&&c.lineStyle,e=c&&c.hoverLineStyle;(!c||g.hasItemOption)&&(n=r.getModel("lineStyle").getLineStyle(),e=r.getModel("emphasis.lineStyle").getLineStyle()),o.useStyle(x.defaults({strokeNoScale:!0,fill:"none",stroke:i},n)),o.hoverStyle=e,O.setHoverStyle(this)},A.updateLayout=function(g,f){var c=this.childAt(0);c.setShape("points",g.getItemLayout(f))},x.inherits(C,O.Group);var b=C;H.exports=b},RXMa:function(H,k,d){var O=d("y+Vt"),x=O.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(A,b){var g=b.cx,f=b.cy,c=Math.PI*2;A.moveTo(g+b.r,f),A.arc(g,f,b.r,0,c,!1),A.moveTo(g+b.r0,f),A.arc(g,f,b.r0,0,c,!0)}});H.exports=x},RZPm:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("JgUQ")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="FileOutlined";var c=A.forwardRef(f);k.default=c},RlCK:function(H,k,d){var O=d("ProS"),x=d("bYtY");function C(A,b,g){var f={},c=A==="toggleSelected",o;return g.eachComponent("legend",function(r){c&&o!=null?r[o?"select":"unSelect"](b.name):A==="allSelect"||A==="inverseSelect"?r[A]():(r[A](b.name),o=r.isSelected(b.name));var i=r.getData();x.each(i,function(n){var e=n.get("name");if(e===`
`||e==="")return;var l=r.isSelected(e);f.hasOwnProperty(e)?f[e]=f[e]&&l:f[e]=l})}),A==="allSelect"||A==="inverseSelect"?{selected:f}:{name:b.name,selected:f}}O.registerAction("legendToggleSelect","legendselectchanged",x.curry(C,"toggleSelected")),O.registerAction("legendAllSelect","legendselectall",x.curry(C,"allSelect")),O.registerAction("legendInverseSelect","legendinverseselect",x.curry(C,"inverseSelect")),O.registerAction("legendSelect","legendselected",x.curry(C,"select")),O.registerAction("legendUnSelect","legendunselected",x.curry(C,"unSelect"))},RotF:function(H,k,d){H.exports=d("LSTS")},Rx6q:function(H,k){function d(O){var x=O.getRect(),C=O.getRangeInfo();return{coordSys:{type:"calendar",x:x.x,y:x.y,width:x.width,height:x.height,cellWidth:O.getCellWidth(),cellHeight:O.getCellHeight(),rangeInfo:{start:C.start,end:C.end,weeks:C.weeks,dayCount:C.allDay}},api:{coord:function(A,b){return O.dataToPoint(A,b)}}}}H.exports=d},"S/Yl":function(H,k,d){var O=d("Zvw2"),x=d("aX7z"),C=d("+TT/"),A=C.getLayoutRect,b=d("bYtY"),g=b.each;function f(o,r,i){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(o,r,i),this.model=o}f.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:f,_init:function(o,r,i){var n=this.dimension,e=new O(n,x.createScaleByModel(o),[0,0],o.get("type"),o.get("position")),l=e.type==="category";e.onBand=l&&o.get("boundaryGap"),e.inverse=o.get("inverse"),e.orient=o.get("orient"),o.axis=e,e.model=o,e.coordinateSystem=this,this._axis=e},update:function(o,r){o.eachSeries(function(i){if(i.coordinateSystem===this){var n=i.getData();g(n.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(n,e)},this),x.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(o,r){this._rect=A({left:o.get("left"),top:o.get("top"),right:o.get("right"),bottom:o.get("bottom"),width:o.get("width"),height:o.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var o=this._rect,r=this._axis,i=r.isHorizontal(),n=i?[0,o.width]:[0,o.height],e=r.reverse?1:0;r.setExtent(n[e],n[1-e]),this._updateAxisTransform(r,i?o.x:o.y)},_updateAxisTransform:function(o,r){var i=o.getExtent(),n=i[0]+i[1],e=o.isHorizontal();o.toGlobalCoord=e?function(l){return l+r}:function(l){return n-l+r},o.toLocalCoord=e?function(l){return l-r}:function(l){return n-l+r}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(o){var r=this.getRect(),i=this.getAxis(),n=i.orient;return n==="horizontal"?i.contain(i.toLocalCoord(o[0]))&&o[1]>=r.y&&o[1]<=r.y+r.height:i.contain(i.toLocalCoord(o[1]))&&o[0]>=r.y&&o[0]<=r.y+r.height},pointToData:function(o){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(o[r.orient==="horizontal"?0:1]))]},dataToPoint:function(o){var r=this.getAxis(),i=this.getRect(),n=[],e=r.orient==="horizontal"?0:1;return o instanceof Array&&(o=o[0]),n[e]=r.toGlobalCoord(r.dataToCoord(+o)),n[1-e]=e===0?i.y+i.height/2:i.x+i.width/2,n}};var c=f;H.exports=c},S6kV:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.OFB=function(){var x=O.lib.BlockCipherMode.extend(),C=x.Encryptor=x.extend({processBlock:function(b,g){var f=this._cipher,c=f.blockSize,o=this._iv,r=this._keystream;o&&(r=this._keystream=o.slice(0),this._iv=void 0),f.encryptBlock(r,0);for(var i=0;i<c;i++)b[g+i]^=r[i]}});return x.Decryptor=C,x}(),O.mode.OFB})},"SA+Z":function(H,k,d){var O=d("wTVA"),x=d("EbDI"),C=d("ZhPi"),A=d("wkBT");function b(g){return O(g)||x(g)||C(g)||A()}H.exports=b,H.exports.__esModule=!0,H.exports.default=H.exports},"SA4+":function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("IwbS"),b=d("zYTA"),g=d("bYtY");function f(i,n,e){var l=i[1]-i[0];n=g.map(n,function(s){return{interval:[(s.interval[0]-i[0])/l,(s.interval[1]-i[0])/l]}});var t=n.length,a=0;return function(s){for(var u=a;u<t;u++){var h=n[u].interval;if(h[0]<=s&&s<=h[1]){a=u;break}}if(u===t)for(var u=a-1;u>=0;u--){var h=n[u].interval;if(h[0]<=s&&s<=h[1]){a=u;break}}return u>=0&&u<t&&e[u]}}function c(i,n){var e=i[1]-i[0];return n=[(n[0]-i[0])/e,(n[1]-i[0])/e],function(l){return l>=n[0]&&l<=n[1]}}function o(i){var n=i.dimensions;return n[0]==="lng"&&n[1]==="lat"}var r=C.extendChartView({type:"heatmap",render:function(i,n,e){var l;n.eachComponent("visualMap",function(a){a.eachTargetSeries(function(s){s===i&&(l=a)})}),this.group.removeAll(),this._incrementalDisplayable=null;var t=i.coordinateSystem;t.type==="cartesian2d"||t.type==="calendar"?this._renderOnCartesianAndCalendar(i,e,0,i.getData().count()):o(t)&&this._renderOnGeo(t,i,l,e)},incrementalPrepareRender:function(i,n,e){this.group.removeAll()},incrementalRender:function(i,n,e,l){var t=n.coordinateSystem;t&&this._renderOnCartesianAndCalendar(n,l,i.start,i.end,!0)},_renderOnCartesianAndCalendar:function(i,n,e,l,t){var a=i.coordinateSystem,s,u;if(a.type==="cartesian2d"){var h=a.getAxis("x"),p=a.getAxis("y");s=h.getBandWidth(),u=p.getBandWidth()}for(var m=this.group,v=i.getData(),y="itemStyle",E="emphasis.itemStyle",T="label",w="emphasis.label",S=i.getModel(y).getItemStyle(["color"]),_=i.getModel(E).getItemStyle(),I=i.getModel(T),L=i.getModel(w),N=a.type,R=N==="cartesian2d"?[v.mapDimension("x"),v.mapDimension("y"),v.mapDimension("value")]:[v.mapDimension("time"),v.mapDimension("value")],D=e;D<l;D++){var F;if(N==="cartesian2d"){if(isNaN(v.get(R[2],D)))continue;var M=a.dataToPoint([v.get(R[0],D),v.get(R[1],D)]);F=new A.Rect({shape:{x:Math.floor(Math.round(M[0])-s/2),y:Math.floor(Math.round(M[1])-u/2),width:Math.ceil(s),height:Math.ceil(u)},style:{fill:v.getItemVisual(D,"color"),opacity:v.getItemVisual(D,"opacity")}})}else{if(isNaN(v.get(R[1],D)))continue;F=new A.Rect({z2:1,shape:a.dataToRect([v.get(R[0],D)]).contentShape,style:{fill:v.getItemVisual(D,"color"),opacity:v.getItemVisual(D,"opacity")}})}var U=v.getItemModel(D);v.hasItemOption&&(S=U.getModel(y).getItemStyle(["color"]),_=U.getModel(E).getItemStyle(),I=U.getModel(T),L=U.getModel(w));var B=i.getRawValue(D),j="-";B&&B[2]!=null&&(j=B[2]),A.setLabelStyle(S,_,I,L,{labelFetcher:i,labelDataIndex:D,defaultText:j,isRectText:!0}),F.setStyle(S),A.setHoverStyle(F,v.hasItemOption?_:g.extend({},_)),F.incremental=t,t&&(F.useHoverLayer=!0),m.add(F),v.setItemGraphicEl(D,F)}},_renderOnGeo:function(i,n,e,l){var t=e.targetVisuals.inRange,a=e.targetVisuals.outOfRange,s=n.getData(),u=this._hmLayer||this._hmLayer||new b;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var h=i.getViewRect().clone(),p=i.getRoamTransform();h.applyTransform(p);var m=Math.max(h.x,0),v=Math.max(h.y,0),y=Math.min(h.width+h.x,l.getWidth()),E=Math.min(h.height+h.y,l.getHeight()),T=y-m,w=E-v,S=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],_=s.mapArray(S,function(R,D,F){var M=i.dataToPoint([R,D]);return M[0]-=m,M[1]-=v,M.push(F),M}),I=e.getExtent(),L=e.type==="visualMap.continuous"?c(I,e.option.range):f(I,e.getPieceList(),e.option.selected);u.update(_,T,w,t.color.getNormalizer(),{inRange:t.color.getColorMapper(),outOfRange:a.color.getColorMapper()},L);var N=new A.Image({style:{width:T,height:w,x:m,y:v,image:u.canvas},silent:!0});this.group.add(N)},dispose:function(){}});H.exports=r},SA8n:function(H,k,d){var O=d("Sj9i"),x=d("QBsz"),C=d("U/Mo"),A=C.getSymbolSize,b=[],g=[],f=[],c=O.quadraticAt,o=x.distSquare,r=Math.abs;function i(e,l,t){for(var a=e[0],s=e[1],u=e[2],h=Infinity,p,m=t*t,v=.1,y=.1;y<=.9;y+=.1){b[0]=c(a[0],s[0],u[0],y),b[1]=c(a[1],s[1],u[1],y);var E=r(o(b,l)-m);E<h&&(h=E,p=y)}for(var T=0;T<32;T++){var w=p+v;g[0]=c(a[0],s[0],u[0],p),g[1]=c(a[1],s[1],u[1],p),f[0]=c(a[0],s[0],u[0],w),f[1]=c(a[1],s[1],u[1],w);var E=o(g,l)-m;if(r(E)<.01)break;var S=o(f,l)-m;v/=2,E<0?S>=0?p=p+v:p=p-v:S>=0?p=p-v:p=p+v}return p}function n(e,l){var t=[],a=O.quadraticSubdivide,s=[[],[],[]],u=[[],[]],h=[];l/=2,e.eachEdge(function(p,m){var v=p.getLayout(),y=p.getVisual("fromSymbol"),E=p.getVisual("toSymbol");v.__original||(v.__original=[x.clone(v[0]),x.clone(v[1])],v[2]&&v.__original.push(x.clone(v[2])));var T=v.__original;if(v[2]!=null){if(x.copy(s[0],T[0]),x.copy(s[1],T[2]),x.copy(s[2],T[1]),y&&y!=="none"){var w=A(p.node1),S=i(s,T[0],w*l);a(s[0][0],s[1][0],s[2][0],S,t),s[0][0]=t[3],s[1][0]=t[4],a(s[0][1],s[1][1],s[2][1],S,t),s[0][1]=t[3],s[1][1]=t[4]}if(E&&E!=="none"){var w=A(p.node2),S=i(s,T[1],w*l);a(s[0][0],s[1][0],s[2][0],S,t),s[1][0]=t[1],s[2][0]=t[2],a(s[0][1],s[1][1],s[2][1],S,t),s[1][1]=t[1],s[2][1]=t[2]}x.copy(v[0],s[0]),x.copy(v[1],s[2]),x.copy(v[2],s[1])}else{if(x.copy(u[0],T[0]),x.copy(u[1],T[1]),x.sub(h,u[1],u[0]),x.normalize(h,h),y&&y!=="none"){var w=A(p.node1);x.scaleAndAdd(u[0],u[0],h,w*l)}if(E&&E!=="none"){var w=A(p.node2);x.scaleAndAdd(u[1],u[1],h,-w*l)}x.copy(v[0],u[0]),x.copy(v[1],u[1])}})}H.exports=n},SJMd:function(H,k){/**
* @license
* Copyright (C) 2006 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/var d,O,x,C=!1,A,b;window.PR_SHOULD_USE_CONTINUATION=!0;var g,f;(function(){var c=window,o=["break,continue,do,else,for,if,return,while"],r=[o,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],i=[r,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],n=[i,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],e=[i,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],l=[i,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],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=[i,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",u=[o,"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"],h=[o,"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=[o,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],m=[n,l,e,a,s,u,h,p],v=/^(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",E="kwd",T="com",w="typ",S="lit",_="pun",I="pln",L="tag",N="dec",R="src",D="atn",F="atv",M="nocode",U="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function B(oe){for(var Y=0,G=!1,Q=!1,ye=0,ce=oe.length;ye<ce;++ye){var Te=oe[ye];if(Te.ignoreCase)Q=!0;else if(/[a-z]/i.test(Te.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){G=!0,Q=!1;break}}var Se={b:8,t:9,n:10,v:11,f:12,r:13};function le(et){var Oe=et.charCodeAt(0);if(Oe!==92)return Oe;var Tt=et.charAt(1);return Oe=Se[Tt],Oe||("0"<=Tt&&Tt<="7"?parseInt(et.substring(1),8):Tt==="u"||Tt==="x"?parseInt(et.substring(2),16):et.charCodeAt(1))}function fe(et){if(et<32)return(et<16?"\\x0":"\\x")+et.toString(16);var Oe=String.fromCharCode(et);return Oe==="\\"||Oe==="-"||Oe==="]"||Oe==="^"?"\\"+Oe:Oe}function Ee(et){var Oe=et.substring(1,et.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),Tt=[],Je=Oe[0]==="^",St=["["];Je&&St.push("^");for(var Mt=Je?1:0,er=Oe.length;Mt<er;++Mt){var It=Oe[Mt];if(/\\[bdsw]/i.test(It))St.push(It);else{var _t=le(It),Xe;Mt+2<er&&Oe[Mt+1]==="-"?(Xe=le(Oe[Mt+2]),Mt+=2):Xe=_t,Tt.push([_t,Xe]),Xe<65||_t>122||(Xe<65||_t>90||Tt.push([Math.max(65,_t)|32,Math.min(Xe,90)|32]),Xe<97||_t>122||Tt.push([Math.max(97,_t)&~32,Math.min(Xe,122)&~32]))}}Tt.sort(function(Ce,Z){return Ce[0]-Z[0]||Z[1]-Ce[1]});for(var ie=[],X=[],Mt=0;Mt<Tt.length;++Mt){var Be=Tt[Mt];Be[0]<=X[1]+1?X[1]=Math.max(X[1],Be[1]):ie.push(X=Be)}for(var Mt=0;Mt<ie.length;++Mt){var Be=ie[Mt];St.push(fe(Be[0])),Be[1]>Be[0]&&(Be[1]+1>Be[0]&&St.push("-"),St.push(fe(Be[1])))}return St.push("]"),St.join("")}function Ve(et){for(var Oe=et.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),Tt=Oe.length,Je=[],St=0,Mt=0;St<Tt;++St){var er=Oe[St];if(er==="(")++Mt;else if(er.charAt(0)==="\\"){var It=+er.substring(1);It&&(It<=Mt?Je[It]=-1:Oe[St]=fe(It))}}for(var St=1;St<Je.length;++St)Je[St]===-1&&(Je[St]=++Y);for(var St=0,Mt=0;St<Tt;++St){var er=Oe[St];if(er==="(")++Mt,Je[Mt]||(Oe[St]="(?:");else if(er.charAt(0)==="\\"){var It=+er.substring(1);It&&It<=Mt&&(Oe[St]="\\"+Je[It])}}for(var St=0;St<Tt;++St)Oe[St]==="^"&&Oe[St+1]!=="^"&&(Oe[St]="");if(et.ignoreCase&&G)for(var St=0;St<Tt;++St){var er=Oe[St],_t=er.charAt(0);er.length>=2&&_t==="["?Oe[St]=Ee(er):_t!=="\\"&&(Oe[St]=er.replace(/[a-zA-Z]/g,function(X){var Be=X.charCodeAt(0);return"["+String.fromCharCode(Be&~32,Be|32)+"]"}))}return Oe.join("")}for(var vt=[],ye=0,ce=oe.length;ye<ce;++ye){var Te=oe[ye];if(Te.global||Te.multiline)throw new Error(""+Te);vt.push("(?:"+Ve(Te)+")")}return new RegExp(vt.join("|"),Q?"gi":"g")}function j(oe,Y){var G=/(?:^|\s)nocode(?:\s|$)/,Q=[],ye=0,ce=[],Te=0;function Se(le){var fe=le.nodeType;if(fe==1){if(G.test(le.className))return;for(var Ee=le.firstChild;Ee;Ee=Ee.nextSibling)Se(Ee);var Ve=le.nodeName.toLowerCase();(Ve==="br"||Ve==="li")&&(Q[Te]=`
`,ce[Te<<1]=ye++,ce[Te++<<1|1]=le)}else if(fe==3||fe==4){var vt=le.nodeValue;vt.length&&(Y?vt=vt.replace(/\r\n?/g,`
`):vt=vt.replace(/[ \t\r\n]+/g," "),Q[Te]=vt,ce[Te<<1]=ye,ye+=vt.length,ce[Te++<<1|1]=le)}}return Se(oe),{sourceCode:Q.join("").replace(/\n$/,""),spans:ce}}function W(oe,Y,G,Q,ye){if(!G)return;var ce={sourceNode:oe,pre:1,langExtension:null,numberLines:null,sourceCode:G,spans:null,basePos:Y,decorations:null};Q(ce),ye.push.apply(ye,ce.decorations)}var V=/\S/;function z(oe){for(var Y=void 0,G=oe.firstChild;G;G=G.nextSibling){var Q=G.nodeType;Y=Q===1?Y?oe:G:Q===3&&V.test(G.nodeValue)?oe:Y}return Y===oe?void 0:Y}function J(oe,Y){var G={},Q;(function(){for(var Te=oe.concat(Y),Se=[],le={},fe=0,Ee=Te.length;fe<Ee;++fe){var Ve=Te[fe],vt=Ve[3];if(vt)for(var et=vt.length;--et>=0;)G[vt.charAt(et)]=Ve;var Oe=Ve[1],Tt=""+Oe;le.hasOwnProperty(Tt)||(Se.push(Oe),le[Tt]=null)}Se.push(/[\0-\uffff]/),Q=B(Se)})();var ye=Y.length,ce=function Te(Se){for(var le=Se.sourceCode,fe=Se.basePos,Ee=Se.sourceNode,Ve=[fe,I],vt=0,et=le.match(Q)||[],Oe={},Tt=0,Je=et.length;Tt<Je;++Tt){var St=et[Tt],Mt=Oe[St],er=void 0,It;if(typeof Mt=="string")It=!1;else{var _t=G[St.charAt(0)];if(_t)er=St.match(_t[1]),Mt=_t[0];else{for(var Xe=0;Xe<ye;++Xe)if(_t=Y[Xe],er=St.match(_t[1]),er){Mt=_t[0];break}er||(Mt=I)}It=Mt.length>=5&&Mt.substring(0,5)==="lang-",It&&!(er&&typeof er[1]=="string")&&(It=!1,Mt=R),It||(Oe[St]=Mt)}var ie=vt;if(vt+=St.length,!It)Ve.push(fe+ie,Mt);else{var X=er[1],Be=St.indexOf(X),Ce=Be+X.length;er[2]&&(Ce=St.length-er[2].length,Be=Ce-X.length);var Z=Mt.substring(5);W(Ee,fe+ie,St.substring(0,Be),Te,Ve),W(Ee,fe+ie+Be,X,He(Z,X),Ve),W(Ee,fe+ie+Ce,St.substring(Ce),Te,Ve)}}Se.decorations=Ve};return ce}function q(oe){var Y=[],G=[];oe.tripleQuotedStrings?Y.push([y,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):oe.multiLineStrings?Y.push([y,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Y.push([y,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),oe.verbatimStrings&&G.push([y,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Q=oe.hashComments;Q&&(oe.cStyleComments?(Q>1?Y.push([T,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Y.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])):Y.push([T,/^#[^\r\n]*/,null,"#"])),oe.cStyleComments&&(G.push([T,/^\/\/[^\r\n]*/,null]),G.push([T,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var ye=oe.regexLiterals;if(ye){var ce=ye>1?"":`
\r`,Te=ce?".":"[\\S\\s]",Se="/(?=[^/*"+ce+"])(?:[^/\\x5B\\x5C"+ce+"]|\\x5C"+Te+"|\\x5B(?:[^\\x5C\\x5D"+ce+"]|\\x5C"+Te+")*(?:\\x5D|$))+/";G.push(["lang-regex",RegExp("^"+U+"("+Se+")")])}var le=oe.types;le&&G.push([w,le]);var fe=(""+oe.keywords).replace(/^ | $/g,"");fe.length&&G.push([E,new RegExp("^(?:"+fe.replace(/[\s,]+/g,"|")+")\\b"),null]),Y.push([I,/^\s+/,null,` \r
\xA0`]);var Ee="^.[^\\s\\w.$@'\"`/\\\\]*";return oe.regexLiterals&&(Ee+="(?!s*/)"),G.push([S,/^@[a-z_$][a-z_$@0-9]*/i,null],[w,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[I,/^[a-z_$][a-z_$@0-9]*/i,null],[S,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[I,/^\\[\s\S]?/,null],[_,new RegExp(Ee),null]),J(Y,G)}var de=q({keywords:m,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ae(oe,Y,G){for(var Q=/(?:^|\s)nocode(?:\s|$)/,ye=/\r\n?|\n/,ce=oe.ownerDocument,Te=ce.createElement("li");oe.firstChild;)Te.appendChild(oe.firstChild);var Se=[Te];function le(Oe){var Tt=Oe.nodeType;if(Tt==1&&!Q.test(Oe.className))if(Oe.nodeName==="br")fe(Oe),Oe.parentNode&&Oe.parentNode.removeChild(Oe);else for(var Je=Oe.firstChild;Je;Je=Je.nextSibling)le(Je);else if((Tt==3||Tt==4)&&G){var St=Oe.nodeValue,Mt=St.match(ye);if(Mt){var er=St.substring(0,Mt.index);Oe.nodeValue=er;var It=St.substring(Mt.index+Mt[0].length);if(It){var _t=Oe.parentNode;_t.insertBefore(ce.createTextNode(It),Oe.nextSibling)}fe(Oe),er||Oe.parentNode.removeChild(Oe)}}}function fe(Oe){for(;!Oe.nextSibling;)if(Oe=Oe.parentNode,!Oe)return;function Tt(Mt,er){var It=er?Mt.cloneNode(!1):Mt,_t=Mt.parentNode;if(_t){var Xe=Tt(_t,1),ie=Mt.nextSibling;Xe.appendChild(It);for(var X=ie;X;X=ie)ie=X.nextSibling,Xe.appendChild(X)}return It}for(var Je=Tt(Oe.nextSibling,0),St;(St=Je.parentNode)&&St.nodeType===1;)Je=St;Se.push(Je)}for(var Ee=0;Ee<Se.length;++Ee)le(Se[Ee]);Y===(Y|0)&&Se[0].setAttribute("value",Y);var Ve=ce.createElement("ol");Ve.className="linenums";for(var vt=Math.max(0,Y-1|0)||0,Ee=0,et=Se.length;Ee<et;++Ee)Te=Se[Ee],Te.className="L"+(Ee+vt)%10,Te.firstChild||Te.appendChild(ce.createTextNode("\xA0")),Ve.appendChild(Te);oe.appendChild(Ve)}function ve(oe){var Y=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Y=Y&&+Y[1]<=8;var G=/\n/g,Q=oe.sourceCode,ye=Q.length,ce=0,Te=oe.spans,Se=Te.length,le=0,fe=oe.decorations,Ee=fe.length,Ve=0;fe[Ee]=ye;var vt,et;for(et=vt=0;et<Ee;)fe[et]!==fe[et+2]?(fe[vt++]=fe[et++],fe[vt++]=fe[et++]):et+=2;for(Ee=vt,et=vt=0;et<Ee;){for(var Oe=fe[et],Tt=fe[et+1],Je=et+2;Je+2<=Ee&&fe[Je+1]===Tt;)Je+=2;fe[vt++]=Oe,fe[vt++]=Tt,et=Je}Ee=fe.length=vt;var St=oe.sourceNode,Mt="";St&&(Mt=St.style.display,St.style.display="none");try{for(var er=null;le<Se;){var It=Te[le],_t=Te[le+2]||ye,Xe=fe[Ve+2]||ye,Je=Math.min(_t,Xe),ie=Te[le+1],X;if(ie.nodeType!==1&&(X=Q.substring(ce,Je))){Y&&(X=X.replace(G,"\r")),ie.nodeValue=X;var Be=ie.ownerDocument,Ce=Be.createElement("span");Ce.className=fe[Ve+1];var Z=ie.parentNode;Z.replaceChild(Ce,ie),Ce.appendChild(ie),ce<_t&&(Te[le+1]=ie=Be.createTextNode(Q.substring(Je,_t)),Z.insertBefore(ie,Ce.nextSibling))}ce=Je,ce>=_t&&(le+=2),ce>=Xe&&(Ve+=2)}}finally{St&&(St.style.display=Mt)}}var _e={};function Ie(oe,Y){for(var G=Y.length;--G>=0;){var Q=Y[G];_e.hasOwnProperty(Q)?c.console&&console.warn("cannot override language handler %s",Q):_e[Q]=oe}}function He(oe,Y){return oe&&_e.hasOwnProperty(oe)||(oe=/^\s*</.test(Y)?"default-markup":"default-code"),_e[oe]}Ie(de,["default-code"]),Ie(J([],[[I,/^[^<?]+/],[N,/^<!\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"]),Ie(J([[I,/^[\s]+/,null,` \r
`],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[L,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[D,/^(?!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"]),Ie(J([],[[F,/^[\s\S]+/]]),["uq.val"]),Ie(q({keywords:n,hashComments:!0,cStyleComments:!0,types:v}),["c","cc","cpp","cxx","cyc","m"]),Ie(q({keywords:"null,true,false"}),["json"]),Ie(q({keywords:l,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:v}),["cs"]),Ie(q({keywords:e,cStyleComments:!0}),["java"]),Ie(q({keywords:p,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ie(q({keywords:u,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ie(q({keywords:s,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ie(q({keywords:h,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ie(q({keywords:a,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ie(q({keywords:t,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ie(J([],[[y,/^[\s\S]+/]]),["regex"]);function me(oe){var Y=oe.langExtension;try{var G=j(oe.sourceNode,oe.pre),Q=G.sourceCode;oe.sourceCode=Q,oe.spans=G.spans,oe.basePos=0,He(Y,Q)(oe),ve(oe)}catch(ye){c.console&&console.log(ye&&ye.stack||ye)}}function ke(oe,Y,G){var Q=G||!1,ye=Y||null,ce=document.createElement("div");ce.innerHTML="<pre>"+oe+"</pre>",ce=ce.firstChild,Q&&ae(ce,Q,!0);var Te={langExtension:ye,numberLines:Q,sourceNode:ce,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return me(Te),ce.innerHTML}function se(oe,Y){var G=Y||document.body,Q=G.ownerDocument||document;function ye(It){return G.getElementsByTagName(It)}for(var ce=[ye("pre"),ye("code"),ye("xmp")],Te=[],Se=0;Se<ce.length;++Se)for(var le=0,fe=ce[Se].length;le<fe;++le)Te.push(ce[Se][le]);ce=null;var Ee=Date;Ee.now||(Ee={now:function(){return+new Date}});var Ve=0,vt=/\blang(?:uage)?-([\w.]+)(?!\S)/,et=/\bprettyprint\b/,Oe=/\bprettyprinted\b/,Tt=/pre|xmp/i,Je=/^code$/i,St=/^(?:pre|code|xmp)$/i,Mt={};function er(){for(var It=c.PR_SHOULD_USE_CONTINUATION?Ee.now()+250:Infinity;Ve<Te.length&&Ee.now()<It;Ve++){for(var _t=Te[Ve],Xe=Mt,ie=_t;ie=ie.previousSibling;){var X=ie.nodeType,Be=(X===7||X===8)&&ie.nodeValue;if(Be?!/^\??prettify\b/.test(Be):X!==3||/\S/.test(ie.nodeValue))break;if(Be){Xe={},Be.replace(/\b(\w+)=([\w:.%+-]+)/g,function(st,Rr,on){Xe[Rr]=on});break}}var Ce=_t.className;if((Xe!==Mt||et.test(Ce))&&!Oe.test(Ce)){for(var Z=!1,nt=_t.parentNode;nt;nt=nt.parentNode){var ct=nt.tagName;if(St.test(ct)&&nt.className&&et.test(nt.className)){Z=!0;break}}if(!Z){_t.className+=" prettyprinted";var Qe=Xe.lang;if(!Qe){Qe=Ce.match(vt);var dt;!Qe&&(dt=z(_t))&&Je.test(dt.tagName)&&(Qe=dt.className.match(vt)),Qe&&(Qe=Qe[1])}var Ft;if(Tt.test(_t.tagName))Ft=1;else{var Lr=_t.currentStyle,Wt=Q.defaultView,ar=Lr?Lr.whiteSpace:Wt&&Wt.getComputedStyle?Wt.getComputedStyle(_t,null).getPropertyValue("white-space"):0;Ft=ar&&ar.substring(0,3)==="pre"}var Ut=Xe.linenums;(Ut=Ut==="true"||+Ut)||(Ut=Ce.match(/\blinenums\b(?::(\d+))?/),Ut=Ut?Ut[1]&&Ut[1].length?+Ut[1]:!0:!1),Ut&&ae(_t,Ut,Ft);var kt={langExtension:Qe,sourceNode:_t,numberLines:Ut,pre:Ft,sourceCode:null,basePos:null,spans:null,decorations:null};me(kt)}}}Ve<Te.length?c.setTimeout(er,250):typeof oe=="function"&&oe()}er()}var te=c.PR={createSimpleLexer:J,registerLangHandler:Ie,sourceDecorator:q,PR_ATTRIB_NAME:D,PR_ATTRIB_VALUE:F,PR_COMMENT:T,PR_DECLARATION:N,PR_KEYWORD:E,PR_LITERAL:S,PR_NOCODE:M,PR_PLAIN:I,PR_PUNCTUATION:_,PR_SOURCE:R,PR_STRING:y,PR_TAG:L,PR_TYPE:w,prettyPrintOne:C?c.prettyPrintOne=ke:g=ke,prettyPrint:f=C?c.prettyPrint=se:f=se},Ge=c.define;typeof Ge=="function"&&Ge.amd&&Ge("google-code-prettify",[],function(){return te})})()},SKnc:function(H,k,d){var O=d("bYtY"),x=d("QuXc"),C=function(g,f,c,o,r,i){this.x=g==null?0:g,this.y=f==null?0:f,this.x2=c==null?1:c,this.y2=o==null?0:o,this.type="linear",this.global=i||!1,x.call(this,r)};C.prototype={constructor:C},O.inherits(C,x);var A=C;H.exports=A},"SKx+":function(H,k,d){var O=d("ProS"),x=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=x;H.exports=C},SMc4:function(H,k,d){var O=d("bYtY"),x=d("bLfw"),C=d("nkfE"),A=d("ICMv"),b=x.extend({type:"cartesian2dAxis",axis:null,init:function(){b.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){b.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){b.superApply(this,"restoreData",arguments),this.resetRange()},getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.option.gridIndex,id:this.option.gridId})[0]}});function g(o,r){return r.type||(r.data?"category":"value")}O.merge(b.prototype,A);var f={offset:0};C("x",b,g,f),C("y",b,g,f);var c=b;H.exports=c},SRve:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},SUKs:function(H,k,d){var O=d("LPTA"),x=O.debugMode,C=function(){};x===1&&(C=console.error);var A=C;H.exports=A},SZEN:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.clientToElement=O;function O(x,C,A){var b=A.getBoundingClientRect(),g={x:0,y:0};return x<b.left?g.x=0:x>=b.right?g.x=b.width-1:g.x=x-b.left,C<b.top?g.y=0:C>=b.bottom?g.y=b.height-1:g.y=C-b.top,g}},Sdc0:function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),b=d("q1tI"),g=d("rePB"),f=d("ODXe"),c=d("Ff2n"),o=d("TSYQ"),r=d.n(o),i=d("6cGi"),n=d("4IlW"),e=b.forwardRef(function(E,T){var w,S=E.prefixCls,_=S===void 0?"rc-switch":S,I=E.className,L=E.checked,N=E.defaultChecked,R=E.disabled,D=E.loadingIcon,F=E.checkedChildren,M=E.unCheckedChildren,U=E.onClick,B=E.onChange,j=E.onKeyDown,W=Object(c.a)(E,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),V=Object(i.a)(!1,{value:L,defaultValue:N}),z=Object(f.a)(V,2),J=z[0],q=z[1];function de(Ie,He){var me=J;return R||(me=Ie,q(me),B==null||B(me,He)),me}function ae(Ie){Ie.which===n.a.LEFT?de(!1,Ie):Ie.which===n.a.RIGHT&&de(!0,Ie),j==null||j(Ie)}function ve(Ie){var He=de(!J,Ie);U==null||U(He,Ie)}var _e=r()(_,I,(w={},Object(g.a)(w,"".concat(_,"-checked"),J),Object(g.a)(w,"".concat(_,"-disabled"),R),w));return b.createElement("button",Object.assign({},W,{type:"button",role:"switch","aria-checked":J,disabled:R,className:_e,ref:T,onKeyDown:ae,onClick:ve}),D,b.createElement("span",{className:"".concat(_,"-inner")},J?F:M))});e.displayName="Switch";var l=e,t=d("gZBC"),a=d.n(t),s=d("g0mS"),u=d("H84U"),h=d("3Nzz"),p=d("uaoM"),m=function(E,T){var w={};for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&T.indexOf(S)<0&&(w[S]=E[S]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,S=Object.getOwnPropertySymbols(E);_<S.length;_++)T.indexOf(S[_])<0&&Object.prototype.propertyIsEnumerable.call(E,S[_])&&(w[S[_]]=E[S[_]]);return w},v=b.forwardRef(function(E,T){var w,S=E.prefixCls,_=E.size,I=E.loading,L=E.className,N=L===void 0?"":L,R=E.disabled,D=m(E,["prefixCls","size","loading","className","disabled"]);Object(p.a)("checked"in D||!("value"in D),"Switch","`value` is not a valid prop, do you mean `checked`?");var F=b.useContext(u.b),M=F.getPrefixCls,U=F.direction,B=b.useContext(h.b),j=M("switch",S),W=b.createElement("div",{className:"".concat(j,"-handle")},I&&b.createElement(a.a,{className:"".concat(j,"-loading-icon")})),V=r()(N,(w={},A()(w,"".concat(j,"-small"),(_||B)==="small"),A()(w,"".concat(j,"-loading"),I),A()(w,"".concat(j,"-rtl"),U==="rtl"),w));return b.createElement(s.a,{insertExtraNode:!0},b.createElement(l,x()({},D,{prefixCls:j,className:V,disabled:R||I,ref:T,loadingIcon:W})))});v.__ANT_SWITCH=!0,v.displayName="Switch";var y=k.a=v},SehX:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("2B6p"),A=C.updateCenterAndZoom;O.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(b,g){var f=b.componentType||"series";g.eachComponent({mainType:f,query:b},function(c){var o=c.coordinateSystem;if(o.type!=="geo")return;var r=A(o,b,c.get("scaleLimit"));c.setCenter&&c.setCenter(r.center),c.setZoom&&c.setZoom(r.zoom),f==="series"&&x.each(c.seriesGroup,function(i){i.setCenter(r.center),i.setZoom(r.zoom)})})})},SgGq:function(H,k,d){var O=d("bYtY"),x=d("H6uX"),C=d("YH21"),A=d("pP6R");function b(t){this.pointerChecker,this._zr=t,this._opt={};var a=O.bind,s=a(g,this),u=a(f,this),h=a(c,this),p=a(o,this),m=a(r,this);x.call(this),this.setPointerChecker=function(v){this.pointerChecker=v},this.enable=function(v,y){this.disable(),this._opt=O.defaults(O.clone(y)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),v==null&&(v=!0),(v===!0||v==="move"||v==="pan")&&(t.on("mousedown",s),t.on("mousemove",u),t.on("mouseup",h)),(v===!0||v==="scale"||v==="zoom")&&(t.on("mousewheel",p),t.on("pinch",m))},this.disable=function(){t.off("mousedown",s),t.off("mousemove",u),t.off("mouseup",h),t.off("mousewheel",p),t.off("pinch",m)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}O.mixin(b,x);function g(t){if(C.isMiddleOrRightButtonOnMouseUpDown(t)||t.target&&t.target.draggable)return;var a=t.offsetX,s=t.offsetY;this.pointerChecker&&this.pointerChecker(t,a,s)&&(this._x=a,this._y=s,this._dragging=!0)}function f(t){if(!this._dragging||!e("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||A.isTaken(this._zr,"globalPan"))return;var a=t.offsetX,s=t.offsetY,u=this._x,h=this._y,p=a-u,m=s-h;this._x=a,this._y=s,this._opt.preventDefaultMouseMove&&C.stop(t.event),n(this,"pan","moveOnMouseMove",t,{dx:p,dy:m,oldX:u,oldY:h,newX:a,newY:s})}function c(t){C.isMiddleOrRightButtonOnMouseUpDown(t)||(this._dragging=!1)}function o(t){var a=e("zoomOnMouseWheel",t,this._opt),s=e("moveOnMouseWheel",t,this._opt),u=t.wheelDelta,h=Math.abs(u),p=t.offsetX,m=t.offsetY;if(u===0||!a&&!s)return;if(a){var v=h>3?1.4:h>1?1.2:1.1,y=u>0?v:1/v;i(this,"zoom","zoomOnMouseWheel",t,{scale:y,originX:p,originY:m})}if(s){var E=Math.abs(u),T=(u>0?1:-1)*(E>3?.4:E>1?.15:.05);i(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:T,originX:p,originY:m})}}function r(t){if(A.isTaken(this._zr,"globalPan"))return;var a=t.pinchScale>1?1.1:1/1.1;i(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY})}function i(t,a,s,u,h){t.pointerChecker&&t.pointerChecker(u,h.originX,h.originY)&&(C.stop(u.event),n(t,a,s,u,h))}function n(t,a,s,u,h){h.isAvailableBehavior=O.bind(e,null,s,u),t.trigger(a,h)}function e(t,a,s){var u=s[t];return!t||u&&(!O.isString(u)||a.event[u+"Key"])}var l=b;H.exports=l},SgaC:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;function O(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function x(b,g){for(var f=0;f<g.length;f++){var c=g[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(b,c.key,c)}}function C(b,g,f){return g&&x(b.prototype,g),f&&x(b,f),b}var A=function(){function b(){O(this,b),this._subrects=0}return C(b,[{key:"decodeRect",value:function(f,c,o,r,i,n,e){if(this._subrects===0){if(i.rQwait("RRE",4+4))return!1;this._subrects=i.rQshift32();var l=i.rQshiftBytes(4);n.fillRect(f,c,o,r,l)}for(;this._subrects>0;){if(i.rQwait("RRE",4+8))return!1;var t=i.rQshiftBytes(4),a=i.rQshift16(),s=i.rQshift16(),u=i.rQshift16(),h=i.rQshift16();n.fillRect(f+a,c+s,u,h,t),this._subrects--}return!0}}]),b}();k.default=A},Sj0X:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("XuBP")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="DownOutlined";var c=A.forwardRef(f);k.default=c},Sj9i:function(H,k,d){var O=d("QBsz"),x=O.create,C=O.distSquare,A=Math.pow,b=Math.sqrt,g=1e-8,f=1e-4,c=b(3),o=1/3,r=x(),i=x(),n=x();function e(S){return S>-g&&S<g}function l(S){return S>g||S<-g}function t(S,_,I,L,N){var R=1-N;return R*R*(R*S+3*N*_)+N*N*(N*L+3*R*I)}function a(S,_,I,L,N){var R=1-N;return 3*(((_-S)*R+2*(I-_)*N)*R+(L-I)*N*N)}function s(S,_,I,L,N,R){var D=L+3*(_-I)-S,F=3*(I-_*2+S),M=3*(_-S),U=S-N,B=F*F-3*D*M,j=F*M-9*D*U,W=M*M-3*F*U,V=0;if(e(B)&&e(j))if(e(F))R[0]=0;else{var z=-M/F;z>=0&&z<=1&&(R[V++]=z)}else{var J=j*j-4*B*W;if(e(J)){var q=j/B,z=-F/D+q,de=-q/2;z>=0&&z<=1&&(R[V++]=z),de>=0&&de<=1&&(R[V++]=de)}else if(J>0){var ae=b(J),ve=B*F+1.5*D*(-j+ae),_e=B*F+1.5*D*(-j-ae);ve<0?ve=-A(-ve,o):ve=A(ve,o),_e<0?_e=-A(-_e,o):_e=A(_e,o);var z=(-F-(ve+_e))/(3*D);z>=0&&z<=1&&(R[V++]=z)}else{var Ie=(2*B*F-3*D*j)/(2*b(B*B*B)),He=Math.acos(Ie)/3,me=b(B),ke=Math.cos(He),z=(-F-2*me*ke)/(3*D),de=(-F+me*(ke+c*Math.sin(He)))/(3*D),se=(-F+me*(ke-c*Math.sin(He)))/(3*D);z>=0&&z<=1&&(R[V++]=z),de>=0&&de<=1&&(R[V++]=de),se>=0&&se<=1&&(R[V++]=se)}}return V}function u(S,_,I,L,N){var R=6*I-12*_+6*S,D=9*_+3*L-3*S-9*I,F=3*_-3*S,M=0;if(e(D)){if(l(R)){var U=-F/R;U>=0&&U<=1&&(N[M++]=U)}}else{var B=R*R-4*D*F;if(e(B))N[0]=-R/(2*D);else if(B>0){var j=b(B),U=(-R+j)/(2*D),W=(-R-j)/(2*D);U>=0&&U<=1&&(N[M++]=U),W>=0&&W<=1&&(N[M++]=W)}}return M}function h(S,_,I,L,N,R){var D=(_-S)*N+S,F=(I-_)*N+_,M=(L-I)*N+I,U=(F-D)*N+D,B=(M-F)*N+F,j=(B-U)*N+U;R[0]=S,R[1]=D,R[2]=U,R[3]=j,R[4]=j,R[5]=B,R[6]=M,R[7]=L}function p(S,_,I,L,N,R,D,F,M,U,B){var j,W=.005,V=Infinity,z,J,q,de;r[0]=M,r[1]=U;for(var ae=0;ae<1;ae+=.05)i[0]=t(S,I,N,D,ae),i[1]=t(_,L,R,F,ae),q=C(r,i),q<V&&(j=ae,V=q);V=Infinity;for(var ve=0;ve<32&&!(W<f);ve++)z=j-W,J=j+W,i[0]=t(S,I,N,D,z),i[1]=t(_,L,R,F,z),q=C(i,r),z>=0&&q<V?(j=z,V=q):(n[0]=t(S,I,N,D,J),n[1]=t(_,L,R,F,J),de=C(n,r),J<=1&&de<V?(j=J,V=de):W*=.5);return B&&(B[0]=t(S,I,N,D,j),B[1]=t(_,L,R,F,j)),b(V)}function m(S,_,I,L){var N=1-L;return N*(N*S+2*L*_)+L*L*I}function v(S,_,I,L){return 2*((1-L)*(_-S)+L*(I-_))}function y(S,_,I,L,N){var R=S-2*_+I,D=2*(_-S),F=S-L,M=0;if(e(R)){if(l(D)){var U=-F/D;U>=0&&U<=1&&(N[M++]=U)}}else{var B=D*D-4*R*F;if(e(B)){var U=-D/(2*R);U>=0&&U<=1&&(N[M++]=U)}else if(B>0){var j=b(B),U=(-D+j)/(2*R),W=(-D-j)/(2*R);U>=0&&U<=1&&(N[M++]=U),W>=0&&W<=1&&(N[M++]=W)}}return M}function E(S,_,I){var L=S+I-2*_;return L===0?.5:(S-_)/L}function T(S,_,I,L,N){var R=(_-S)*L+S,D=(I-_)*L+_,F=(D-R)*L+R;N[0]=S,N[1]=R,N[2]=F,N[3]=F,N[4]=D,N[5]=I}function w(S,_,I,L,N,R,D,F,M){var U,B=.005,j=Infinity;r[0]=D,r[1]=F;for(var W=0;W<1;W+=.05){i[0]=m(S,I,N,W),i[1]=m(_,L,R,W);var V=C(r,i);V<j&&(U=W,j=V)}j=Infinity;for(var z=0;z<32&&!(B<f);z++){var J=U-B,q=U+B;i[0]=m(S,I,N,J),i[1]=m(_,L,R,J);var V=C(i,r);if(J>=0&&V<j)U=J,j=V;else{n[0]=m(S,I,N,q),n[1]=m(_,L,R,q);var de=C(n,r);q<=1&&de<j?(U=q,j=de):B*=.5}}return M&&(M[0]=m(S,I,N,U),M[1]=m(_,L,R,U)),b(j)}k.cubicAt=t,k.cubicDerivativeAt=a,k.cubicRootAt=s,k.cubicExtrema=u,k.cubicSubdivide=h,k.cubicProjectPoint=p,k.quadraticAt=m,k.quadraticDerivativeAt=v,k.quadraticRootAt=y,k.quadraticExtremum=E,k.quadraticSubdivide=T,k.quadraticProjectPoint=w},Sp2Z:function(H,k,d){var O=d("3LNs"),x=d("/y7N"),C=d("AVZG"),A=d("Znkb"),b=O.extend({makeElOption:function(r,i,n,e,l){var t=n.axis,a=t.grid,s=e.get("type"),u=g(a,t).getOtherAxis(t).getGlobalExtent(),h=t.toGlobalCoord(t.dataToCoord(i,!0));if(s&&s!=="none"){var p=x.buildElStyle(e),m=f[s](t,h,u);m.style=p,r.graphicKey=m.type,r.pointer=m}var v=C.layout(a.model,n);x.buildCartesianSingleLabelElOption(i,r,v,n,e,l)},getHandleTransform:function(r,i,n){var e=C.layout(i.axis.grid.model,i,{labelInside:!1});return e.labelMargin=n.get("handle.margin"),{position:x.getTransformedPosition(i.axis,r,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(r,i,n,e){var l=n.axis,t=l.grid,a=l.getGlobalExtent(!0),s=g(t,l).getOtherAxis(l).getGlobalExtent(),u=l.dim==="x"?0:1,h=r.position;h[u]+=i[u],h[u]=Math.min(a[1],h[u]),h[u]=Math.max(a[0],h[u]);var p=(s[1]+s[0])/2,m=[p,p];m[u]=h[u];var v=[{verticalAlign:"middle"},{align:"center"}];return{position:h,rotation:r.rotation,cursorPoint:m,tooltipOption:v[u]}}});function g(r,i){var n={};return n[i.dim+"AxisIndex"]=i.index,r.getCartesian(n)}var f={line:function(r,i,n){var e=x.makeLineShape([i,n[0]],[i,n[1]],c(r));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(r,i,n){var e=Math.max(1,r.getBandWidth()),l=n[1]-n[0];return{type:"Rect",shape:x.makeRectShape([i-e/2,n[0]],[e,l],c(r))}}};function c(r){return r.dim==="x"?0:1}A.registerAxisPointerClass("CartesianAxisPointer",b);var o=b;H.exports=o},Sq3C:function(H,k,d){var O=d("sKgW"),x=d("zoYe"),C=d("wy8a"),A=d("quyA"),b=d("Z1HP"),g=d("Em2t"),f=Math.ceil;function c(o,r){r=r===void 0?" ":x(r);var i=r.length;if(i<2)return i?O(r,o):r;var n=O(r,f(o/b(r)));return A(r)?C(g(n),0,o).join(""):n.slice(0,o)}H.exports=c},SqI9:function(H,k,d){var O=d("y+Vt"),x=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:x(O.prototype.brush),buildPath:function(b,g){var f=g.cx,c=g.cy,o=Math.max(g.r0||0,0),r=Math.max(g.r,0),i=g.startAngle,n=g.endAngle,e=g.clockwise,l=Math.cos(i),t=Math.sin(i);b.moveTo(l*o+f,t*o+c),b.lineTo(l*r+f,t*r+c),b.arc(f,c,r,i,n,!e),b.lineTo(Math.cos(n)*o+f,Math.sin(n)*o+c),o!==0&&b.arc(f,c,o,n,i,e),b.closePath()}});H.exports=C},SrGk:function(H,k,d){var O=d("hydK"),x=O.createElement,C=d("bYtY"),A=d("y+Vt"),b=d("Dagg"),g=d("dqUG"),f=d("P47w"),c=f.path,o=f.image,r=f.text,i="0",n="1";function e(t,a,s,u,h){this._zrId=t,this._svgRoot=a,this._tagNames=typeof s=="string"?[s]:s,this._markLabel=u,this._domName=h||"_dom",this.nextId=0}e.prototype.createElement=x,e.prototype.getDefs=function(t){var a=this._svgRoot,s=this._svgRoot.getElementsByTagName("defs");return s.length===0?t?(s=a.insertBefore(this.createElement("defs"),a.firstChild),s.contains||(s.contains=function(u){var h=s.children;if(!h)return!1;for(var p=h.length-1;p>=0;--p)if(h[p]===u)return!0;return!1}),s):null:s[0]},e.prototype.update=function(t,a){if(!t)return;var s=this.getDefs(!1);if(t[this._domName]&&s.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(s){var u=t.getElementsByTagName(s);a=a.concat([].slice.call(u))}),a},e.prototype.markAllUnused=function(){var t=this.getDoms(),a=this;C.each(t,function(s){s[a._markLabel]=i})},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(),s=this;C.each(a,function(u){u[s._markLabel]!==n&&t.removeChild(u)})},e.prototype.getSvgProxy=function(t){return t instanceof A?c:t instanceof b?o:t instanceof g?r:c},e.prototype.getTextSvgElement=function(t){return t.__textSvgEl},e.prototype.getSvgElement=function(t){return t.__svgEl};var l=e;H.exports=l},Swgg:function(H,k,d){var O=d("fc+c"),x=O.extend({type:"dataZoom.select"});H.exports=x},Sxd8:function(H,k,d){var O=d("ZCgT");function x(C){var A=O(C),b=A%1;return A===A?b?A-b:A:0}H.exports=x},T1rO:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("zdCA"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},T4UG:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("ItGF"),b=d("7aKB"),g=b.formatTime,f=b.encodeHTML,c=b.addCommas,o=b.getTooltipMarker,r=d("4NO4"),i=d("bLfw"),n=d("5Hur"),e=d("OKJ2"),l=d("+TT/"),t=l.getLayoutParams,a=l.mergeLayoutParam,s=d("9H2F"),u=s.createTask,h=d("D5nY"),p=h.prepareSource,m=h.getSource,v=d("KxfA"),y=v.retrieveRawValue,E=r.makeInner(),T=i.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(M,U,B,j){this.seriesIndex=this.componentIndex,this.dataTask=u({count:_,reset:I}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(M,B),p(this);var W=this.getInitialData(M,B);N(W,this),this.dataTask.context.data=W,E(this).dataBeforeProcessed=W,w(this)},mergeDefaultAndTheme:function(M,U){var B=this.layoutMode,j=B?t(M):{},W=this.subType;i.hasClass(W)&&(W+="Series"),C.merge(M,U.getTheme().get(this.subType)),C.merge(M,this.getDefaultOption()),r.defaultEmphasis(M,"label",["show"]),this.fillDataTextStyle(M.data),B&&a(M,j,B)},mergeOption:function(M,U){M=C.merge(this.option,M,!0),this.fillDataTextStyle(M.data);var B=this.layoutMode;B&&a(this.option,M,B),p(this);var j=this.getInitialData(M,U);N(j,this),this.dataTask.dirty(),this.dataTask.context.data=j,E(this).dataBeforeProcessed=j,w(this)},fillDataTextStyle:function(M){if(M&&!C.isTypedArray(M))for(var U=["show"],B=0;B<M.length;B++)M[B]&&M[B].label&&r.defaultEmphasis(M[B],"label",U)},getInitialData:function(){},appendData:function(M){var U=this.getRawData();U.appendData(M.data)},getData:function(M){var U=D(this);if(U){var B=U.context.data;return M==null?B:B.getLinkedData(M)}else return E(this).data},setData:function(M){var U=D(this);if(U){var B=U.context;B.data!==M&&U.modifyOutputEnd&&U.setOutputEnd(M.count()),B.outputData=M,U!==this.dataTask&&(B.data=M)}E(this).data=M},getSource:function(){return m(this)},getRawData:function(){return E(this).dataBeforeProcessed},getBaseAxis:function(){var M=this.coordinateSystem;return M&&M.getBaseAxis&&M.getBaseAxis()},formatTooltip:function(M,U,B,j){var W=this;j=j||"html";var V=j==="html"?"<br/>":`
`,z=j==="richText",J={},q=0;function de(ce){var Te=C.reduce(ce,function(Ve,vt,et){var Oe=ve.getDimensionInfo(et);return Ve|=Oe&&Oe.tooltip!==!1&&Oe.displayName!=null},0),Se=[];_e.length?C.each(_e,function(Ve){le(y(ve,M,Ve),Ve)}):C.each(ce,le);function le(Ve,vt){var et=ve.getDimensionInfo(vt);if(!et||et.otherDims.tooltip===!1)return;var Oe=et.type,Tt="sub"+W.seriesIndex+"at"+q,Je=o({color:ke,type:"subItem",renderMode:j,markerId:Tt}),St=typeof Je=="string"?Je:Je.content,Mt=(Te?St+f(et.displayName||"-")+": ":"")+f(Oe==="ordinal"?Ve+"":Oe==="time"?U?"":g("yyyy/MM/dd hh:mm:ss",Ve):c(Ve));Mt&&Se.push(Mt),z&&(J[Tt]=ke,++q)}var fe=Te?z?`
`:"<br/>":"",Ee=fe+Se.join(fe||", ");return{renderMode:j,content:Ee,style:J}}function ae(ce){return{renderMode:j,content:f(c(ce)),style:J}}var ve=this.getData(),_e=ve.mapDimension("defaultedTooltip",!0),Ie=_e.length,He=this.getRawValue(M),me=C.isArray(He),ke=ve.getItemVisual(M,"color");C.isObject(ke)&&ke.colorStops&&(ke=(ke.colorStops[0]||{}).color),ke=ke||"transparent";var se=Ie>1||me&&!Ie?de(He):ae(Ie?y(ve,M,_e[0]):me?He[0]:He),te=se.content,Ge=W.seriesIndex+"at"+q,oe=o({color:ke,type:"item",renderMode:j,markerId:Ge});J[Ge]=ke,++q;var Y=ve.getName(M),G=this.name;r.isNameSpecified(this)||(G=""),G=G?f(G)+(U?": ":V):"";var Q=typeof oe=="string"?oe:oe.content,ye=U?Q+G+te:G+Q+(Y?f(Y)+": "+te:te);return{html:ye,markers:J}},isAnimationEnabled:function(){if(A.node)return!1;var M=this.getShallow("animation");return M&&(this.getData().count()>this.getShallow("animationThreshold")&&(M=!1)),M},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(M,U,B){var j=this.ecModel,W=n.getColorFromPalette.call(this,M,U,B);return W||(W=j.getColorFromPalette(M,U,B)),W},coordDimToDataDim:function(M){return this.getRawData().mapDimension(M,!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 w(M){var U=M.name;r.isNameSpecified(M)||(M.name=S(M)||U)}function S(M){var U=M.getRawData(),B=U.mapDimension("seriesName",!0),j=[];return C.each(B,function(W){var V=U.getDimensionInfo(W);V.displayName&&j.push(V.displayName)}),j.join(" ")}function _(M){return M.model.getRawData().count()}function I(M){var U=M.model;return U.setData(U.getRawData().cloneShallow()),L}function L(M,U){U.outputData&&M.end>U.outputData.count()&&U.model.getRawData().cloneShallow(U.outputData)}function N(M,U){C.each(M.CHANGABLE_METHODS,function(B){M.wrapMethod(B,C.curry(R,U))})}function R(M){var U=D(M);U&&U.setOutputEnd(this.count())}function D(M){var U=(M.ecModel||{}).scheduler,B=U&&U.getPipeline(M.uid);if(B){var j=B.currentTask;if(j){var W=j.agentStubMap;W&&(j=W.get(M.uid))}return j}}var F=T;H.exports=F},T6xi:function(H,k,d){var O=d("YgsL"),x=d("nCxF");function C(A,b,g){var f=b.points,c=b.smooth;if(f&&f.length>=2){if(c&&c!=="spline"){var o=x(f,c,g,b.smoothConstraint);A.moveTo(f[0][0],f[0][1]);for(var r=f.length,i=0;i<(g?r:r-1);i++){var n=o[i*2],e=o[i*2+1],l=f[(i+1)%r];A.bezierCurveTo(n[0],n[1],e[0],e[1],l[0],l[1])}}else{c==="spline"&&(f=O(f,g)),A.moveTo(f[0][0],f[0][1]);for(var i=1,t=f.length;i<t;i++)A.lineTo(f[i][0],f[i][1])}g&&A.closePath()}}k.buildPath=C},TIY9:function(H,k,d){var O=d("bYtY"),x=O.each,C=d("vafp"),A=d("4NO4"),b=A.makeInner,g=d("Mgri"),f=d("F5Ls"),c=d("a9QJ"),o=d("p/La"),r=b(),i={load:function(e,l,t){var a=r(l).parsed;if(a)return a;var s=l.specialAreas||{},u=l.geoJSON,h;try{h=u?C(u,t):[]}catch(p){throw new Error(`Invalid geoJson format
`+p.message)}return g(e,h),x(h,function(p){var m=p.name;f(e,p),c(e,p),o(e,p);var v=s[m];v&&p.transformTo(v.left,v.top,v.width,v.height)}),r(l).parsed={regions:h,boundingRect:n(h)}}};function n(e){for(var l,t=0;t<e.length;t++){var a=e[t].getBoundingRect();l=l||a.clone(),l.union(a)}return l}H.exports=i},TJmX:function(H,k,d){var O=d("zM3Q"),x=["itemStyle","borderColor"],C=["itemStyle","borderColor0"],A=["itemStyle","color"],b=["itemStyle","color0"],g={seriesType:"candlestick",plan:O(),performRawSeries:!0,reset:function(f,c){var o=f.getData();if(o.setVisual({legendSymbol:"roundRect",colorP:n(1,f),colorN:n(-1,f),borderColorP:e(1,f),borderColorN:e(-1,f)}),c.isSeriesFiltered(f))return;var r=f.pipelineContext.large;return!r&&{progress:i};function i(l,t){for(var a;(a=l.next())!=null;){var s=t.getItemModel(a),u=t.getItemLayout(a).sign;t.setItemVisual(a,{color:n(u,s),borderColor:e(u,s)})}}function n(l,t){return t.get(l>0?A:b)}function e(l,t){return t.get(l>0?x:C)}}};H.exports=g},TNol:function(H,k,d){"use strict";var O=d("q1tI"),x=d.n(O),C=d("MNnm"),A=Object(C.a)()?O.useLayoutEffect:O.useEffect;k.a=A},TWL2:function(H,k,d){var O=d("IwbS"),x=d("bYtY"),C=d("6Ic6");function A(o,r){O.Group.call(this);var i=new O.Polygon,n=new O.Polyline,e=new O.Text;this.add(i),this.add(n),this.add(e),this.highDownOnUpdate=function(l,t){t==="emphasis"?(n.ignore=n.hoverIgnore,e.ignore=e.hoverIgnore):(n.ignore=n.normalIgnore,e.ignore=e.normalIgnore)},this.updateData(o,r,!0)}var b=A.prototype,g=["itemStyle","opacity"];b.updateData=function(o,r,i){var n=this.childAt(0),e=o.hostModel,l=o.getItemModel(r),t=o.getItemLayout(r),a=o.getItemModel(r).get(g);a=a==null?1:a,n.useStyle({}),i?(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 s=l.getModel("itemStyle"),u=o.getItemVisual(r,"color");n.setStyle(x.defaults({lineJoin:"round",fill:u},s.getItemStyle(["opacity"]))),n.hoverStyle=s.getModel("emphasis").getItemStyle(),this._updateLabel(o,r),O.setHoverStyle(this)},b._updateLabel=function(o,r){var i=this.childAt(1),n=this.childAt(2),e=o.hostModel,l=o.getItemModel(r),t=o.getItemLayout(r),a=t.label,s=o.getItemVisual(r,"color");O.updateProps(i,{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=l.getModel("label"),h=l.getModel("emphasis.label"),p=l.getModel("labelLine"),m=l.getModel("emphasis.labelLine"),s=o.getItemVisual(r,"color");O.setLabelStyle(n.style,n.hoverStyle={},u,h,{labelFetcher:o.hostModel,labelDataIndex:r,defaultText:o.getName(r),autoColor:s,useInsideStyle:!!a.inside},{textAlign:a.textAlign,textVerticalAlign:a.verticalAlign}),n.ignore=n.normalIgnore=!u.get("show"),n.hoverIgnore=!h.get("show"),i.ignore=i.normalIgnore=!p.get("show"),i.hoverIgnore=!m.get("show"),i.setStyle({stroke:s}),i.setStyle(p.getModel("lineStyle").getLineStyle()),i.hoverStyle=m.getModel("lineStyle").getLineStyle()},x.inherits(A,O.Group);var f=C.extend({type:"funnel",render:function(o,r,i){var n=o.getData(),e=this._data,l=this.group;n.diff(e).add(function(t){var a=new A(n,t);n.setItemGraphicEl(t,a),l.add(a)}).update(function(t,a){var s=e.getItemGraphicEl(a);s.updateData(n,t),l.add(s),n.setItemGraphicEl(t,s)}).remove(function(t){var a=e.getItemGraphicEl(t);l.remove(a)}).execute(),this._data=n},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),c=f;H.exports=c},TYVI:function(H,k,d){var O=d("5GtS"),x=d("T4UG"),C=x.extend({type:"series.gauge",getInitialData:function(b,g){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}}}),A=C;H.exports=A},Tghj:function(H,k,d){(function(O){var x;typeof window!="undefined"?x=window.__DEV__:typeof O!="undefined"&&(x=O.__DEV__),typeof x=="undefined"&&(x=!0);var C=x;k.__DEV__=C}).call(this,d("yLpj"))},ThAp:function(H,k,d){var O=d("bYtY"),x=d("5GtS"),C=d("T4UG"),A=d("7aKB"),b=A.encodeHTML,g=A.addCommas,f=d("cCMj"),c=d("KxfA"),o=c.retrieveRawAttr,r=d("W4dC"),i=d("D5nY"),n=i.makeSeriesEncodeForNameBased,e=C.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(t){for(var a=x(this,{coordDimensions:["value"],encodeDefaulter:O.curry(n,this)}),s=a.mapDimension("value"),u=O.createHashMap(),h=[],p=[],m=0,v=a.count();m<v;m++){var y=a.getName(m);u.set(y,!0),h.push({name:y,value:a.get(s,m),selected:o(a,m,"selected")})}var E=r.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return O.each(E.regions,function(T){var w=T.name;u.get(w)||(h.push({name:w}),p.push(w))}),this.updateSelectedMap(h),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(),s=g(this.getRawValue(t)),u=a.getName(t),h=this.seriesGroup,p=[],m=0;m<h.length;m++){var v=h[m].originalData.indexOfName(u),y=a.mapDimension("value");isNaN(h[m].originalData.get(y,v))||p.push(b(h[m].name))}return p.join(", ")+"<br />"+b(u+" : "+s)},getTooltipPosition:function(t){if(t!=null){var a=this.getData().getName(t),s=this.coordinateSystem,u=s.getRegion(a);return u&&s.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,f);var l=e;H.exports=l},TkdX:function(H,k,d){var O=d("bYtY"),x=d("IwbS"),C={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},A=2,b=4;function g(e,l,t){x.Group.call(this);var a=new x.Sector({z2:A});a.seriesIndex=l.seriesIndex;var s=new x.Text({z2:b,silent:e.getModel("label").get("silent")});this.add(a),this.add(s),this.updateData(!0,e,"normal",l,t);function u(){s.ignore=s.hoverIgnore}function h(){s.ignore=s.normalIgnore}this.on("emphasis",u).on("normal",h).on("mouseover",u).on("mouseout",h)}var f=g.prototype;f.updateData=function(e,l,t,a,s){this.node=l,l.piece=this,a=a||this._seriesModel,s=s||this._ecModel;var u=this.childAt(0);u.dataIndex=l.dataIndex;var h=l.getModel(),p=l.getLayout(),m=O.extend({},p);m.label=null;var v=o(l,a,s);n(l,a,v);var y=h.getModel("itemStyle").getItemStyle(),E;if(t==="normal")E=y;else{var T=h.getModel(t+".itemStyle").getItemStyle();E=O.merge(T,y)}E=O.defaults({lineJoin:"bevel",fill:E.fill||v},E),e?(u.setShape(m),u.shape.r=p.r0,x.updateProps(u,{shape:{r:p.r}},a,l.dataIndex),u.useStyle(E)):typeof E.fill=="object"&&E.fill.type||typeof u.style.fill=="object"&&u.style.fill.type?(x.updateProps(u,{shape:m},a),u.useStyle(E)):x.updateProps(u,{shape:m,style:E},a),this._updateLabel(a,v,t);var w=h.getShallow("cursor");if(w&&u.attr("cursor",w),e){var S=a.getShallow("highlightPolicy");this._initEvents(u,l,a,S)}this._seriesModel=a||this._seriesModel,this._ecModel=s||this._ecModel,x.setHoverStyle(this)},f.onEmphasis=function(e){var l=this;this.node.hostTree.root.eachNode(function(t){t.piece&&(l.node===t?t.piece.updateData(!1,t,"emphasis"):i(t,l.node,e)?t.piece.childAt(0).trigger("highlight"):e!==C.NONE&&t.piece.childAt(0).trigger("downplay"))})},f.onNormal=function(){this.node.hostTree.root.eachNode(function(e){e.piece&&e.piece.updateData(!1,e,"normal")})},f.onHighlight=function(){this.updateData(!1,this.node,"highlight")},f.onDownplay=function(){this.updateData(!1,this.node,"downplay")},f._updateLabel=function(e,l,t){var a=this.node.getModel(),s=a.getModel("label"),u=t==="normal"||t==="emphasis"?s:a.getModel(t+".label"),h=a.getModel("emphasis.label"),p=O.retrieve(e.getFormattedLabel(this.node.dataIndex,t,null,null,"label"),this.node.name);U("show")===!1&&(p="");var m=this.node.getLayout(),v=u.get("minAngle");v==null&&(v=s.get("minAngle")),v=v/180*Math.PI;var y=m.endAngle-m.startAngle;v!=null&&Math.abs(y)<v&&(p="");var E=this.childAt(1);x.setLabelStyle(E.style,E.hoverStyle||{},s,h,{defaultText:u.getShallow("show")?p:null,autoColor:l,useInsideStyle:!0});var T=(m.startAngle+m.endAngle)/2,w=Math.cos(T),S=Math.sin(T),_,I=U("position"),L=U("distance")||0,N=U("align");I==="outside"?(_=m.r+L,N=T>Math.PI/2?"right":"left"):!N||N==="center"?(_=(m.r+m.r0)/2,N="center"):N==="left"?(_=m.r0+L,T>Math.PI/2&&(N="right")):N==="right"&&(_=m.r-L,T>Math.PI/2&&(N="left")),E.attr("style",{text:p,textAlign:N,textVerticalAlign:U("verticalAlign")||"middle",opacity:U("opacity")});var R=_*w+m.cx,D=_*S+m.cy;E.attr("position",[R,D]);var F=U("rotate"),M=0;F==="radial"?(M=-T,M<-Math.PI/2&&(M+=Math.PI)):F==="tangential"?(M=Math.PI/2-T,M>Math.PI/2?M-=Math.PI:M<-Math.PI/2&&(M+=Math.PI)):typeof F=="number"&&(M=F*Math.PI/180),E.attr("rotation",M);function U(B){var j=u.get(B);return j==null?s.get(B):j}},f._initEvents=function(e,l,t,a){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var s=this,u=function(){s.onEmphasis(a)},h=function(){s.onNormal()},p=function(){s.onDownplay()},m=function(){s.onHighlight()};t.isAnimationEnabled()&&e.on("mouseover",u).on("mouseout",h).on("emphasis",u).on("normal",h).on("downplay",p).on("highlight",m)},O.inherits(g,x.Group);var c=g;function o(e,l,t){var a=e.getVisual("color"),s=e.getVisual("visualMeta");(!s||s.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 h=t.option.color.length;return u=t.option.color[r(e)%h],u}function r(e){for(var l=e;l.depth>1;)l=l.parentNode;var t=e.getAncestors()[0];return O.indexOf(t.children,l)}function i(e,l,t){return t===C.NONE?!1:t===C.SELF?e===l:t===C.ANCESTOR?e===l||e.isAncestorOf(l):e===l||e.isDescendantOf(l)}function n(e,l,t){var a=l.getData();a.setItemVisual(e.dataIndex,"color",t)}H.exports=c},Tp9H:function(H,k,d){var O=d("ItGF"),x=d("Kagy"),C=d("IUWy"),A=x.toolbox.saveAsImage;function b(c){this.model=c}b.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:A.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:A.lang.slice()},b.prototype.unusable=!O.canvasSupported;var g=b.prototype;g.onclick=function(c,o){var r=this.model,i=r.get("name")||c.get("title.0.text")||"echarts",n=o.getZr().painter.getType()==="svg",e=n?"svg":r.get("type",!0)||"png",l=o.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=i+"."+e,t.target="_blank",t.href=l;var a=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});t.dispatchEvent(a)}else if(window.navigator.msSaveOrOpenBlob){for(var s=atob(l.split(",")[1]),u=s.length,h=new Uint8Array(u);u--;)h[u]=s.charCodeAt(u);var p=new Blob([h]);window.navigator.msSaveOrOpenBlob(p,i+"."+e)}else{var m=r.get("lang"),v='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(m&&m[0]||"")+'" /></body>',y=window.open();y.document.write(v)}},C.register("saveAsImage",b);var f=b;H.exports=f},"U/Mo":function(H,k){function d(x){var C=x.coordinateSystem;if(C.type!=="view")return 1;var A=x.option.nodeScaleRatio,b=C.scale,g=b&&b[0]||1,f=C.getZoom(),c=(f-1)*A+1;return c/g}function O(x){var C=x.getVisual("symbolSize");return C instanceof Array&&(C=(C[0]+C[1])/2),+C}k.getNodeGlobalScale=d,k.getSymbolSize=O},UADf:function(H,k,d){},UESt:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="RightOutlined";var f=k.a=x.forwardRef(g)},UOVi:function(H,k,d){var O=d("bYtY"),x=d("7aKB"),C=["x","y","z","radius","angle","single"],A=["cartesian2d","polar","singleAxis"];function b(o){return O.indexOf(A,o)>=0}function g(o,r){o=o.slice();var i=O.map(o,x.capitalFirst);r=(r||[]).slice();var n=O.map(r,x.capitalFirst);return function(e,l){O.each(o,function(t,a){for(var s={name:t,capital:i[a]},u=0;u<r.length;u++)s[r[u]]=t+n[u];e.call(l,s)})}}var f=g(C,["axisIndex","axis","index","id"]);function c(o,r,i){return function(t){var a={nodes:[],records:{}};if(r(function(h){a.records[h.name]={}}),!t)return a;l(t,a);var s;do s=!1,o(u);while(s);function u(h){!n(h,a)&&e(h,a)&&(l(h,a),s=!0)}return a};function n(t,a){return O.indexOf(a.nodes,t)>=0}function e(t,a){var s=!1;return r(function(u){O.each(i(t,u)||[],function(h){a.records[u.name][h]&&(s=!0)})}),s}function l(t,a){a.nodes.push(t),r(function(s){O.each(i(t,s)||[],function(u){a.records[s.name][u]=!0})})}}k.isCoordSupported=b,k.createNameEach=g,k.eachAxisDim=f,k.createLinkedNodesFinder=c},Uc92:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},UnoB:function(H,k,d){var O=d("bYtY"),x=d("OELB");function C(g,f){g.eachSeriesByType("themeRiver",function(c){var o=c.getData(),r=c.coordinateSystem,i={},n=r.getRect();i.rect=n;var e=c.get("boundaryGap"),l=r.getAxis();if(i.boundaryGap=e,l.orient==="horizontal"){e[0]=x.parsePercent(e[0],n.height),e[1]=x.parsePercent(e[1],n.height);var t=n.height-e[0]-e[1];A(o,c,t)}else{e[0]=x.parsePercent(e[0],n.width),e[1]=x.parsePercent(e[1],n.width);var a=n.width-e[0]-e[1];A(o,c,a)}o.setLayout("layoutInfo",i)})}function A(g,f,c){if(!g.count())return;for(var o=f.coordinateSystem,r=f.getLayerSeries(),i=g.mapDimension("single"),n=g.mapDimension("value"),e=O.map(r,function(v){return O.map(v.indices,function(y){var E=o.dataToPoint(g.get(i,y));return E[1]=g.get(n,y),E})}),l=b(e),t=l.y0,a=c/l.max,s=r.length,u=r[0].indices.length,h,p=0;p<u;++p){h=t[p]*a,g.setItemLayout(r[0].indices[p],{layerIndex:0,x:e[0][p][0],y0:h,y:e[0][p][1]*a});for(var m=1;m<s;++m)h+=e[m-1][p][1]*a,g.setItemLayout(r[m].indices[p],{layerIndex:m,x:e[m][p][0],y0:h,y:e[m][p][1]*a})}}function b(g){for(var f=g.length,c=g[0].length,o=[],r=[],i=0,n,e={},l=0;l<c;++l){for(var t=0,n=0;t<f;++t)n+=g[t][l][1];n>i&&(i=n),o.push(n)}for(var a=0;a<c;++a)r[a]=(i-o[a])/2;i=0;for(var s=0;s<c;++s){var u=o[s]+r[s];u>i&&(i=u)}return e.y0=r,e.max=i,e}H.exports=C},Urep:function(H,k,d){},V7ic:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("digP")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="FileTwoTone";var c=A.forwardRef(f);k.default=c},VFCP:function(H,k,d){d("dBmv"),d("KamJ")},VPsl:function(H,k){function d(O){O.eachSeriesByType("map",function(x){var C=x.get("color"),A=x.getModel("itemStyle"),b=A.get("areaColor"),g=A.get("color")||C[x.seriesIndex%C.length];x.getData().setVisual({areaColor:b,color:g})})}H.exports=d},VR9l:function(H,k,d){var O=d("KCsZ"),x=O([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),C={getItemStyle:function(A,b){var g=x(this,A,b),f=this.getBorderLineDash();return f&&(g.lineDash=f),g},getBorderLineDash:function(){var A=this.get("borderType");return A==="solid"||A==null?null:A==="dashed"?[5,5]:[1,1]}};H.exports=C},VSLf:function(H,k,d){d("I+Bx"),d("F0hE"),d("bBKM")},VSMT:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.decodeUTF8=O,k.encodeUTF8=x;function O(C){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(C))}catch(b){if(b instanceof URIError&&A)return C;throw b}}function x(C){return unescape(encodeURIComponent(C))}},VXYp:function(H,k,d){var O=d("bYtY"),x=d("SgGq"),C=d("iLNv"),A="\0_ec_dataZoom_roams";function b(e,l){var t=c(e),a=l.dataZoomId,s=l.coordId;O.each(t,function(p,m){var v=p.dataZoomInfos;v[a]&&O.indexOf(l.allCoordIds,s)<0&&(delete v[a],p.count--)}),r(t);var u=t[s];u||(u=t[s]={coordId:s,dataZoomInfos:{},count:0},u.controller=o(e,u),u.dispatchAction=O.curry(i,e)),!u.dataZoomInfos[a]&&u.count++,u.dataZoomInfos[a]=l;var h=n(u.dataZoomInfos);u.controller.enable(h.controlType,h.opt),u.controller.setPointerChecker(l.containsPoint),C.createOrUpdate(u,"dispatchAction",l.dataZoomModel.get("throttle",!0),"fixRate")}function g(e,l){var t=c(e);O.each(t,function(a){a.controller.dispose();var s=a.dataZoomInfos;s[l]&&(delete s[l],a.count--)}),r(t)}function f(e){return e.type+"\0_"+e.id}function c(e){var l=e.getZr();return l[A]||(l[A]={})}function o(e,l){var t=new x(e.getZr());return O.each(["pan","zoom","scrollMove"],function(a){t.on(a,function(s){var u=[];O.each(l.dataZoomInfos,function(h){if(!s.isAvailableBehavior(h.dataZoomModel.option))return;var p=(h.getRange||{})[a],m=p&&p(l.controller,s);!h.dataZoomModel.get("disabled",!0)&&m&&u.push({dataZoomId:h.dataZoomId,start:m[0],end:m[1]})}),u.length&&l.dispatchAction(u)})}),t}function r(e){O.each(e,function(l,t){l.count||(l.controller.dispose(),delete e[t])})}function i(e,l){e.dispatchAction({type:"dataZoom",batch:l})}function n(e){var l,t="type_",a={type_true:2,type_move:1,type_false:0,type_undefined:-1},s=!0;return O.each(e,function(u){var h=u.dataZoomModel,p=h.get("disabled",!0)?!1:h.get("zoomLock",!0)?"move":!0;a[t+p]>a[t+l]&&(l=p),s&=h.get("preventDefaultMouseMove",!0)}),{controlType:l,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!s}}}k.register=b,k.unregister=g,k.generateCoordId=f},VaxA:function(H,k,d){var O=d("bYtY");function x(g,f,c){if(g&&O.indexOf(f,g.type)>=0){var o=c.getData().tree.root,r=g.targetNode;if(typeof r=="string"&&(r=o.getNodeById(r)),r&&o.contains(r))return{node:r};var i=g.targetNodeId;if(i!=null&&(r=o.getNodeById(i)))return{node:r}}}function C(g){for(var f=[];g;)g=g.parentNode,g&&f.push(g);return f.reverse()}function A(g,f){var c=C(g);return O.indexOf(c,f)>=0}function b(g,f){for(var c=[];g;){var o=g.dataIndex;c.push({name:g.name,dataIndex:o,value:f.getRawValue(o)}),g=g.parentNode}return c.reverse(),c}k.retrieveTargetInfo=x,k.getPathToRoot=C,k.aboveViewRoot=A,k.wrapTreePathInfo=b},Vi4m:function(H,k,d){var O=d("bYtY");function x(A){A!=null&&O.extend(this,A),this.otherDims={}}var C=x;H.exports=C},Vl3Y:function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("J4zp"),A=d.n(C),b=d("lSNA"),g=d.n(b),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=d("85Yc"),i=d("H84U"),n=d("BGR+"),e=f.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),l=f.createContext({updateItemErrors:function(){}}),t=function(nt){var ct=Object(n.default)(nt,["prefixCls"]);return f.createElement(r.FormProvider,ct)};function a(Z){return typeof Z=="object"&&Z!=null&&Z.nodeType===1}function s(Z,nt){return(!nt||Z!=="hidden")&&Z!=="visible"&&Z!=="clip"}function u(Z,nt){if(Z.clientHeight<Z.scrollHeight||Z.clientWidth<Z.scrollWidth){var ct=getComputedStyle(Z,null);return s(ct.overflowY,nt)||s(ct.overflowX,nt)||function(Qe){var dt=function(Ft){if(!Ft.ownerDocument||!Ft.ownerDocument.defaultView)return null;try{return Ft.ownerDocument.defaultView.frameElement}catch(Lr){return null}}(Qe);return!!dt&&(dt.clientHeight<Qe.scrollHeight||dt.clientWidth<Qe.scrollWidth)}(Z)}return!1}function h(Z,nt,ct,Qe,dt,Ft,Lr,Wt){return Ft<Z&&Lr>nt||Ft>Z&&Lr<nt?0:Ft<=Z&&Wt<=ct||Lr>=nt&&Wt>=ct?Ft-Z-Qe:Lr>nt&&Wt<ct||Ft<Z&&Wt>ct?Lr-nt+dt:0}var p=function(Z,nt){var ct=window,Qe=nt.scrollMode,dt=nt.block,Ft=nt.inline,Lr=nt.boundary,Wt=nt.skipOverflowHiddenElements,ar=typeof Lr=="function"?Lr:function(Yn){return Yn!==Lr};if(!a(Z))throw new TypeError("Invalid target");for(var Ut=document.scrollingElement||document.documentElement,kt=[],st=Z;a(st)&&ar(st);){if((st=st.parentElement)===Ut){kt.push(st);break}st!=null&&st===document.body&&u(st)&&!u(document.documentElement)||st!=null&&u(st,Wt)&&kt.push(st)}for(var Rr=ct.visualViewport?ct.visualViewport.width:innerWidth,on=ct.visualViewport?ct.visualViewport.height:innerHeight,Sn=window.scrollX||pageXOffset,zn=window.scrollY||pageYOffset,Ii=Z.getBoundingClientRect(),yn=Ii.height,Nn=Ii.width,jt=Ii.top,At=Ii.right,Re=Ii.bottom,Ke=Ii.left,Pe=dt==="start"||dt==="nearest"?jt:dt==="end"?Re:jt+yn/2,at=Ft==="center"?Ke+Nn/2:Ft==="end"?At:Ke,wt=[],Rt=0;Rt<kt.length;Rt++){var xt=kt[Rt],Lt=xt.getBoundingClientRect(),gr=Lt.height,Br=Lt.width,Et=Lt.top,it=Lt.right,rt=Lt.bottom,Pt=Lt.left;if(Qe==="if-needed"&&jt>=0&&Ke>=0&&Re<=on&&At<=Rr&&jt>=Et&&Re<=rt&&Ke>=Pt&&At<=it)return wt;var Ht=getComputedStyle(xt),bt=parseInt(Ht.borderLeftWidth,10),Gt=parseInt(Ht.borderTopWidth,10),ut=parseInt(Ht.borderRightWidth,10),Kt=parseInt(Ht.borderBottomWidth,10),Ar=0,ir=0,pr="offsetWidth"in xt?xt.offsetWidth-xt.clientWidth-bt-ut:0,tn="offsetHeight"in xt?xt.offsetHeight-xt.clientHeight-Gt-Kt:0;if(Ut===xt)Ar=dt==="start"?Pe:dt==="end"?Pe-on:dt==="nearest"?h(zn,zn+on,on,Gt,Kt,zn+Pe,zn+Pe+yn,yn):Pe-on/2,ir=Ft==="start"?at:Ft==="center"?at-Rr/2:Ft==="end"?at-Rr:h(Sn,Sn+Rr,Rr,bt,ut,Sn+at,Sn+at+Nn,Nn),Ar=Math.max(0,Ar+zn),ir=Math.max(0,ir+Sn);else{Ar=dt==="start"?Pe-Et-Gt:dt==="end"?Pe-rt+Kt+tn:dt==="nearest"?h(Et,rt,gr,Gt,Kt+tn,Pe,Pe+yn,yn):Pe-(Et+gr/2)+tn/2,ir=Ft==="start"?at-Pt-bt:Ft==="center"?at-(Pt+Br/2)+pr/2:Ft==="end"?at-it+ut+pr:h(Pt,it,Br,bt,ut+pr,at,at+Nn,Nn);var fn=xt.scrollLeft,Mn=xt.scrollTop;Pe+=Mn-(Ar=Math.max(0,Math.min(Mn+Ar,xt.scrollHeight-gr+tn))),at+=fn-(ir=Math.max(0,Math.min(fn+ir,xt.scrollWidth-Br+pr)))}wt.push({el:xt,top:Ar,left:ir})}return wt};function m(Z){return Z===Object(Z)&&Object.keys(Z).length!==0}function v(Z,nt){nt===void 0&&(nt="auto");var ct="scrollBehavior"in document.body.style;Z.forEach(function(Qe){var dt=Qe.el,Ft=Qe.top,Lr=Qe.left;dt.scroll&&ct?dt.scroll({top:Ft,left:Lr,behavior:nt}):(dt.scrollTop=Ft,dt.scrollLeft=Lr)})}function y(Z){return Z===!1?{block:"end",inline:"nearest"}:m(Z)?Z:{block:"start",inline:"nearest"}}function E(Z,nt){var ct=Z.isConnected||Z.ownerDocument.documentElement.contains(Z);if(m(nt)&&typeof nt.behavior=="function")return nt.behavior(ct?p(Z,nt):[]);if(!ct)return;var Qe=y(nt);return v(p(Z,Qe),Qe.behavior)}var T=E;function w(Z){return Z===void 0||Z===!1?[]:Array.isArray(Z)?Z:[Z]}function S(Z,nt){if(!Z.length)return;var ct=Z.join("_");return nt?"".concat(nt,"_").concat(ct):ct}function _(Z){var nt=w(Z);return nt.join("_")}function I(Z){var nt=Object(r.useForm)(),ct=A()(nt,1),Qe=ct[0],dt=Object(f.useRef)({}),Ft=Object(f.useMemo)(function(){return Z||x()(x()({},Qe),{__INTERNAL__:{itemRef:function(Wt){return function(ar){var Ut=_(Wt);ar?dt.current[Ut]=ar:delete dt.current[Ut]}}},scrollToField:function(Wt){var ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ut=w(Wt),kt=S(Ut,Ft.__INTERNAL__.name),st=kt?document.getElementById(kt):null;st&&T(st,x()({scrollMode:"if-needed",block:"nearest"},ar))},getFieldInstance:function(Wt){var ar=_(Wt);return dt.current[ar]}})},[Z,Qe]);return[Ft]}var L=d("3Nzz"),N=function(Z,nt){var ct={};for(var Qe in Z)Object.prototype.hasOwnProperty.call(Z,Qe)&&nt.indexOf(Qe)<0&&(ct[Qe]=Z[Qe]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Qe=Object.getOwnPropertySymbols(Z);dt<Qe.length;dt++)nt.indexOf(Qe[dt])<0&&Object.prototype.propertyIsEnumerable.call(Z,Qe[dt])&&(ct[Qe[dt]]=Z[Qe[dt]]);return ct},R=function(nt,ct){var Qe,dt=f.useContext(L.b),Ft=f.useContext(i.b),Lr=Ft.getPrefixCls,Wt=Ft.direction,ar=nt.name,Ut=nt.prefixCls,kt=nt.className,st=kt===void 0?"":kt,Rr=nt.size,on=Rr===void 0?dt:Rr,Sn=nt.form,zn=nt.colon,Ii=nt.labelAlign,yn=nt.labelCol,Nn=nt.wrapperCol,jt=nt.hideRequiredMark,At=nt.layout,Re=At===void 0?"horizontal":At,Ke=nt.scrollToFirstError,Pe=nt.requiredMark,at=nt.onFinishFailed,wt=N(nt,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),Rt=Object(f.useMemo)(function(){return Pe!==void 0?Pe:!jt},[jt,Pe]),xt=Lr("form",Ut),Lt=o()(xt,(Qe={},g()(Qe,"".concat(xt,"-").concat(Re),!0),g()(Qe,"".concat(xt,"-hide-required-mark"),Rt===!1),g()(Qe,"".concat(xt,"-rtl"),Wt==="rtl"),g()(Qe,"".concat(xt,"-").concat(on),on),Qe),st),gr=I(Sn),Br=A()(gr,1),Et=Br[0],it=Et.__INTERNAL__;it.name=ar;var rt=Object(f.useMemo)(function(){return{name:ar,labelAlign:Ii,labelCol:yn,wrapperCol:Nn,vertical:Re==="vertical",colon:zn,requiredMark:Rt,itemRef:it.itemRef}},[ar,Ii,yn,Nn,Re,zn,Rt]);f.useImperativeHandle(ct,function(){return Et});var Pt=function(bt){at&&at(bt),Ke&&bt.errorFields.length&&Et.scrollToField(bt.errorFields[0].name)};return f.createElement(L.a,{size:on},f.createElement(e.Provider,{value:rt},f.createElement(r.default,x()({id:ar},wt,{onFinishFailed:Pt,form:Et,className:Lt}))))},D=f.forwardRef(R),F=D,M=d("cDf5"),U=d.n(M),B=d("RIqP"),j=d.n(B),W=d("Y+p1"),V=d.n(W),z=d("KW7l"),J=d("c+Xe"),q=d("qrJ5"),de=d("CWQg"),ae=d("uaoM"),ve=d("/kpp"),_e=d("YMnH"),Ie=d("ZvpZ"),He=function(nt){var ct=nt.prefixCls,Qe=nt.label,dt=nt.htmlFor,Ft=nt.labelCol,Lr=nt.labelAlign,Wt=nt.colon,ar=nt.required,Ut=nt.requiredMark,kt=Object(_e.b)("Form"),st=A()(kt,1),Rr=st[0];return Qe?f.createElement(e.Consumer,{key:"label"},function(on){var Sn,zn=on.vertical,Ii=on.labelAlign,yn=on.labelCol,Nn=on.colon,jt,At=Ft||yn||{},Re=Lr||Ii,Ke="".concat(ct,"-item-label"),Pe=o()(Ke,Re==="left"&&"".concat(Ke,"-left"),At.className),at=Qe,wt=Wt===!0||Nn!==!1&&Wt!==!1,Rt=wt&&!zn;Rt&&typeof Qe=="string"&&Qe.trim()!==""&&(at=Qe.replace(/[:|]\s*$/,"")),Ut==="optional"&&!ar&&(at=f.createElement(f.Fragment,null,at,f.createElement("span",{className:"".concat(ct,"-item-optional")},(Rr==null?void 0:Rr.optional)||((jt=Ie.a.Form)===null||jt===void 0?void 0:jt.optional))));var xt=o()((Sn={},g()(Sn,"".concat(ct,"-item-required"),ar),g()(Sn,"".concat(ct,"-item-required-mark-optional"),Ut==="optional"),g()(Sn,"".concat(ct,"-item-no-colon"),!wt),Sn));return f.createElement(ve.a,x()({},At,{className:Pe}),f.createElement("label",{htmlFor:dt,className:xt,title:typeof Qe=="string"?Qe:""},at))}):null},me=He,ke=d("gZBC"),se=d.n(ke),te=d("kbBi"),Ge=d.n(te),oe=d("J84W"),Y=d.n(oe),G=d("sKbD"),Q=d.n(G),ye=d("YrtM"),ce=d("HTfv"),Te=d("hkKa");function Se(Z,nt,ct){var Qe=f.useRef({errors:Z,visible:!!Z.length}),dt=Object(Te.a)(),Ft=function(){var Wt=Qe.current.visible,ar=!!Z.length,Ut=Qe.current.errors;Qe.current.errors=Z,Qe.current.visible=ar,Wt!==ar?nt(ar):(Ut.length!==Z.length||Ut.some(function(kt,st){return kt!==Z[st]}))&&dt()};return f.useEffect(function(){if(!ct){var Lr=setTimeout(Ft,10);return function(){return clearTimeout(Lr)}}},[Z]),ct&&Ft(),[Qe.current.visible,Qe.current.errors]}var le={success:Y.a,warning:Q.a,error:Ge.a,validating:se.a},fe=function(nt){var ct=nt.prefixCls,Qe=nt.wrapperCol,dt=nt.children,Ft=nt.help,Lr=nt.errors,Wt=nt.onDomErrorVisibleChange,ar=nt.hasFeedback,Ut=nt.validateStatus,kt=nt.extra,st=Object(Te.a)(),Rr="".concat(ct,"-item"),on=f.useContext(e),Sn=Qe||on.wrapperCol||{},zn=o()("".concat(Rr,"-control"),Sn.className),Ii=Se(Lr,function(at){at&&Promise.resolve().then(function(){Wt(!0)}),st()},!!Ft),yn=A()(Ii,2),Nn=yn[0],jt=yn[1];f.useEffect(function(){return function(){Wt(!1)}},[]);var At=Object(ye.a)(function(){return jt},Nn,function(at,wt){return wt}),Re=Ut&&le[Ut],Ke=ar&&Re?f.createElement("span",{className:"".concat(Rr,"-children-icon")},f.createElement(Re,null)):null,Pe=x()({},on);return delete Pe.labelCol,delete Pe.wrapperCol,f.createElement(e.Provider,{value:Pe},f.createElement(ve.a,x()({},Sn,{className:zn}),f.createElement("div",{className:"".concat(Rr,"-control-input")},f.createElement("div",{className:"".concat(Rr,"-control-input-content")},dt),Ke),f.createElement(ce.default,{motionDeadline:500,visible:Nn,motionName:"show-help",onLeaveEnd:function(){Wt(!1)},motionAppear:!0,removeOnLeave:!0},function(at){var wt=at.className;return f.createElement("div",{className:o()("".concat(Rr,"-explain"),wt),key:"help"},At.map(function(Rt,xt){return f.createElement("div",{key:xt,role:"alert"},Rt)}))}),kt&&f.createElement("div",{className:"".concat(Rr,"-extra")},kt)))},Ee=fe,Ve=d("0n0R"),vt=d("xEkU"),et=d.n(vt);function Oe(Z){var nt=f.useState(Z),ct=A()(nt,2),Qe=ct[0],dt=ct[1],Ft=Object(f.useRef)(null),Lr=Object(f.useRef)([]),Wt=Object(f.useRef)(!1);f.useEffect(function(){return function(){Wt.current=!0,et.a.cancel(Ft.current)}},[]);function ar(Ut){if(Wt.current)return;Ft.current===null&&(Lr.current=[],Ft.current=et()(function(){Ft.current=null,dt(function(kt){var st=kt;return Lr.current.forEach(function(Rr){st=Rr(st)}),st})})),Lr.current.push(Ut)}return[Qe,ar]}function Tt(){var Z=f.useContext(e),nt=Z.itemRef,ct=f.useRef({});function Qe(dt,Ft){var Lr=Ft&&U()(Ft)==="object"&&Ft.ref,Wt=dt.join("_");return(ct.current.name!==Wt||ct.current.originRef!==Lr)&&(ct.current.name=Wt,ct.current.originRef=Lr,ct.current.ref=Object(J.a)(nt(dt),Lr)),ct.current.ref}return Qe}var Je=function(Z,nt){var ct={};for(var Qe in Z)Object.prototype.hasOwnProperty.call(Z,Qe)&&nt.indexOf(Qe)<0&&(ct[Qe]=Z[Qe]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Qe=Object.getOwnPropertySymbols(Z);dt<Qe.length;dt++)nt.indexOf(Qe[dt])<0&&Object.prototype.propertyIsEnumerable.call(Z,Qe[dt])&&(ct[Qe[dt]]=Z[Qe[dt]]);return ct},St=Object(de.a)("success","warning","error","validating",""),Mt=f.memo(function(Z){var nt=Z.children;return nt},function(Z,nt){return Z.value===nt.value&&Z.update===nt.update});function er(Z){return Z===null&&Object(ae.a)(!1,"Form.Item","`null` is passed as `name` property"),!(Z==null)}function It(Z){var nt=Z.name,ct=Z.fieldKey,Qe=Z.noStyle,dt=Z.dependencies,Ft=Z.prefixCls,Lr=Z.style,Wt=Z.className,ar=Z.shouldUpdate,Ut=Z.hasFeedback,kt=Z.help,st=Z.rules,Rr=Z.validateStatus,on=Z.children,Sn=Z.required,zn=Z.label,Ii=Z.trigger,yn=Ii===void 0?"onChange":Ii,Nn=Z.validateTrigger,jt=Z.hidden,At=Je(Z,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),Re=f.useRef(!1),Ke=f.useContext(i.b),Pe=Ke.getPrefixCls,at=f.useContext(e),wt=at.name,Rt=at.requiredMark,xt=f.useContext(l),Lt=xt.updateItemErrors,gr=f.useState(!!kt),Br=A()(gr,2),Et=Br[0],it=Br[1],rt=f.useRef(Rr),Pt=Oe({}),Ht=A()(Pt,2),bt=Ht[0],Gt=Ht[1],ut=f.useContext(z.b),Kt=ut.validateTrigger,Ar=Nn!==void 0?Nn:Kt;function ir(Ze){Re.current||it(Ze)}var pr=er(nt),tn=f.useRef([]);f.useEffect(function(){return function(){Re.current=!0,Lt(tn.current.join("__SPLIT__"),[])}},[]);var fn=Pe("form",Ft),Mn=Qe?Lt:function(Ze,we){Gt(function(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return V()(Ne[Ze],we)?Ne:x()(x()({},Ne),g()({},Ze,we))})},Yn=Tt();function si(Ze,we,Ne,Fe){var Ye,We;if(Qe&&!jt)return Ze;var qe=[];Object.keys(bt).forEach(function(Mr){qe=[].concat(j()(qe),j()(bt[Mr]||[]))});var yt;kt!=null?yt=w(kt):(yt=Ne?Ne.errors:[],yt=[].concat(j()(yt),j()(qe)));var ot="";Rr!==void 0?ot=Rr:(Ne==null?void 0:Ne.validating)?ot="validating":((We=Ne==null?void 0:Ne.errors)===null||We===void 0?void 0:We.length)||qe.length?ot="error":(Ne==null?void 0:Ne.touched)&&(ot="success"),Et&&kt&&(rt.current=ot);var $t=(Ye={},g()(Ye,"".concat(fn,"-item"),!0),g()(Ye,"".concat(fn,"-item-with-help"),Et||kt),g()(Ye,"".concat(Wt),!!Wt),g()(Ye,"".concat(fn,"-item-has-feedback"),ot&&Ut),g()(Ye,"".concat(fn,"-item-has-success"),ot==="success"),g()(Ye,"".concat(fn,"-item-has-warning"),ot==="warning"),g()(Ye,"".concat(fn,"-item-has-error"),ot==="error"),g()(Ye,"".concat(fn,"-item-has-error-leave"),!kt&&Et&&rt.current==="error"),g()(Ye,"".concat(fn,"-item-is-validating"),ot==="validating"),g()(Ye,"".concat(fn,"-item-hidden"),jt),Ye);return f.createElement(q.a,x()({className:o()($t),style:Lr,key:"row"},Object(n.default)(At,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),f.createElement(me,x()({htmlFor:we,required:Fe,requiredMark:Rt},Z,{prefixCls:fn})),f.createElement(Ee,x()({},Z,Ne,{errors:yt,prefixCls:fn,onDomErrorVisibleChange:ir,validateStatus:ot}),f.createElement(l.Provider,{value:{updateItemErrors:Mn}},Ze)))}var vi=typeof on=="function",xi=f.useRef(0);if(xi.current+=1,!pr&&!vi&&!dt)return si(on);var _i={};return typeof zn=="string"&&(_i.label=zn),f.createElement(r.Field,x()({},Z,{messageVariables:_i,trigger:yn,validateTrigger:Ar,onReset:function(){ir(!1)}}),function(Ze,we,Ne){var Fe=we.errors,Ye=w(nt).length&&we?we.name:[],We=S(Ye,wt);if(Qe){if(tn.current=j()(Ye),ct){var qe=Array.isArray(ct)?ct:[ct];tn.current=[].concat(j()(Ye.slice(0,-1)),j()(qe))}Lt(tn.current.join("__SPLIT__"),Fe)}var yt=Sn!==void 0?Sn:!!(st&&st.some(function(jr){if(jr&&U()(jr)==="object"&&jr.required)return!0;if(typeof jr=="function"){var tr=jr(Ne);return tr&&tr.required}return!1})),ot=x()({},Ze),$t=null;if(Object(ae.a)(!(ar&&dt),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(on)&&pr)Object(ae.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),$t=on;else if(vi&&(!(ar||dt)||pr))Object(ae.a)(!!(ar||dt),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(ae.a)(!pr,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(dt&&!vi&&!pr)Object(ae.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(Ve.b)(on)){Object(ae.a)(on.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var Mr=x()(x()({},on.props),ot);Mr.id||(Mr.id=We),Object(J.c)(on)&&(Mr.ref=Yn(Ye,on));var Sr=new Set([].concat(j()(w(yn)),j()(w(Ar))));Sr.forEach(function(jr){Mr[jr]=function(){for(var tr,gn,sr,un,an,Pr=arguments.length,In=new Array(Pr),ci=0;ci<Pr;ci++)In[ci]=arguments[ci];(sr=ot[jr])===null||sr===void 0||(tr=sr).call.apply(tr,[ot].concat(In)),(an=(un=on.props)[jr])===null||an===void 0||(gn=an).call.apply(gn,[un].concat(In))}}),$t=f.createElement(Mt,{value:ot[Z.valuePropName||"value"],update:xi.current},Object(Ve.a)(on,Mr))}else vi&&(ar||dt)&&!pr?$t=on(Ne):(Object(ae.a)(!Ye.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),$t=on);return si($t,We,we,yt)})}var _t=It,Xe=function(Z,nt){var ct={};for(var Qe in Z)Object.prototype.hasOwnProperty.call(Z,Qe)&&nt.indexOf(Qe)<0&&(ct[Qe]=Z[Qe]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,Qe=Object.getOwnPropertySymbols(Z);dt<Qe.length;dt++)nt.indexOf(Qe[dt])<0&&Object.prototype.propertyIsEnumerable.call(Z,Qe[dt])&&(ct[Qe[dt]]=Z[Qe[dt]]);return ct},ie=function(nt){var ct=nt.children,Qe=Xe(nt,["children"]);return Object(ae.a)(!!Qe.name,"Form.List","Miss `name` prop."),f.createElement(r.List,Qe,function(dt,Ft){return ct(dt.map(function(Lr){return x()(x()({},Lr),{fieldKey:Lr.key})}),Ft)})},X=ie,Be=F;Be.Item=_t,Be.List=X,Be.useForm=I,Be.Provider=t,Be.create=function(){Object(ae.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var Ce=k.a=Be},VpOo:function(H,k){function d(O,x){var C=x.x,A=x.y,b=x.width,g=x.height,f=x.r,c,o,r,i;b<0&&(C=C+b,b=-b),g<0&&(A=A+g,g=-g),typeof f=="number"?c=o=r=i=f:f instanceof Array?f.length===1?c=o=r=i=f[0]:f.length===2?(c=r=f[0],o=i=f[1]):f.length===3?(c=f[0],o=i=f[1],r=f[2]):(c=f[0],o=f[1],r=f[2],i=f[3]):c=o=r=i=0;var n;c+o>b&&(n=c+o,c*=b/n,o*=b/n),r+i>b&&(n=r+i,r*=b/n,i*=b/n),o+r>g&&(n=o+r,o*=g/n,r*=g/n),c+i>g&&(n=c+i,c*=g/n,i*=g/n),O.moveTo(C+c,A),O.lineTo(C+b-o,A),o!==0&&O.arc(C+b-o,A+o,o,-Math.PI/2,0),O.lineTo(C+b,A+g-r),r!==0&&O.arc(C+b-r,A+g-r,r,0,Math.PI/2),O.lineTo(C+i,A+g),i!==0&&O.arc(C+i,A+g-i,i,Math.PI/2,Math.PI),O.lineTo(C,A+c),c!==0&&O.arc(C+c,A+c,c,Math.PI,Math.PI*1.5)}k.buildPath=d},"VrN/":function(H,k,d){(function(O,x){H.exports=x()})(this,function(){"use strict";var O=navigator.userAgent,x=navigator.platform,C=/gecko\/\d/i.test(O),A=/MSIE \d/.test(O),b=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(O),g=/Edge\/(\d+)/.exec(O),f=A||b||g,c=f&&(A?document.documentMode||6:+(g||b)[1]),o=!g&&/WebKit\//.test(O),r=o&&/Qt\/\d+\.\d+/.test(O),i=!g&&/Chrome\//.test(O),n=/Opera\//.test(O),e=/Apple Computer/.test(navigator.vendor),l=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(O),t=/PhantomJS/.test(O),a=!g&&/AppleWebKit/.test(O)&&/Mobile\/\w+/.test(O),s=/Android/.test(O),u=a||s||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(O),h=a||/Mac/.test(x),p=/\bCrOS\b/.test(O),m=/win/i.test(x),v=n&&O.match(/Version\/(\d*\.\d*)/);v&&(v=Number(v[1])),v&&v>=15&&(n=!1,o=!0);var y=h&&(r||n&&(v==null||v<12.11)),E=C||f&&c>=9;function T(P){return new RegExp("(^|\\s)"+P+"(?:$|\\s)\\s*")}var w=function(K,$){var re=K.className,ue=T($).exec(re);if(ue){var Me=re.slice(ue.index+ue[0].length);K.className=re.slice(0,ue.index)+(Me?ue[1]+Me:"")}};function S(P){for(var K=P.childNodes.length;K>0;--K)P.removeChild(P.firstChild);return P}function _(P,K){return S(P).appendChild(K)}function I(P,K,$,re){var ue=document.createElement(P);if($&&(ue.className=$),re&&(ue.style.cssText=re),typeof K=="string")ue.appendChild(document.createTextNode(K));else if(K)for(var Me=0;Me<K.length;++Me)ue.appendChild(K[Me]);return ue}function L(P,K,$,re){var ue=I(P,K,$,re);return ue.setAttribute("role","presentation"),ue}var N;document.createRange?N=function(K,$,re,ue){var Me=document.createRange();return Me.setEnd(ue||K,re),Me.setStart(K,$),Me}:N=function(K,$,re){var ue=document.body.createTextRange();try{ue.moveToElementText(K.parentNode)}catch(Me){return ue}return ue.collapse(!0),ue.moveEnd("character",re),ue.moveStart("character",$),ue};function R(P,K){if(K.nodeType==3&&(K=K.parentNode),P.contains)return P.contains(K);do if(K.nodeType==11&&(K=K.host),K==P)return!0;while(K=K.parentNode)}function D(){var P;try{P=document.activeElement}catch(K){P=document.body||null}for(;P&&P.shadowRoot&&P.shadowRoot.activeElement;)P=P.shadowRoot.activeElement;return P}function F(P,K){var $=P.className;T(K).test($)||(P.className+=($?" ":"")+K)}function M(P,K){for(var $=P.split(" "),re=0;re<$.length;re++)$[re]&&!T($[re]).test(K)&&(K+=" "+$[re]);return K}var U=function(K){K.select()};a?U=function(K){K.selectionStart=0,K.selectionEnd=K.value.length}:f&&(U=function(K){try{K.select()}catch($){}});function B(P){var K=Array.prototype.slice.call(arguments,1);return function(){return P.apply(null,K)}}function j(P,K,$){K||(K={});for(var re in P)P.hasOwnProperty(re)&&($!==!1||!K.hasOwnProperty(re))&&(K[re]=P[re]);return K}function W(P,K,$,re,ue){K==null&&(K=P.search(/[^\s\u00a0]/),K==-1&&(K=P.length));for(var Me=re||0,gt=ue||0;;){var zt=P.indexOf(" ",Me);if(zt<0||zt>=K)return gt+(K-Me);gt+=zt-Me,gt+=$-gt%$,Me=zt+1}}var V=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};V.prototype.onTimeout=function(P){P.id=0,P.time<=+new Date?P.f():setTimeout(P.handler,P.time-+new Date)},V.prototype.set=function(P,K){this.f=K;var $=+new Date+P;(!this.id||$<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,P),this.time=$)};function z(P,K){for(var $=0;$<P.length;++$)if(P[$]==K)return $;return-1}var J=50,q={toString:function(){return"CodeMirror.Pass"}},de={scroll:!1},ae={origin:"*mouse"},ve={origin:"+move"};function _e(P,K,$){for(var re=0,ue=0;;){var Me=P.indexOf(" ",re);Me==-1&&(Me=P.length);var gt=Me-re;if(Me==P.length||ue+gt>=K)return re+Math.min(gt,K-ue);if(ue+=Me-re,ue+=$-ue%$,re=Me+1,ue>=K)return re}}var Ie=[""];function He(P){for(;Ie.length<=P;)Ie.push(me(Ie)+" ");return Ie[P]}function me(P){return P[P.length-1]}function ke(P,K){for(var $=[],re=0;re<P.length;re++)$[re]=K(P[re],re);return $}function se(P,K,$){for(var re=0,ue=$(K);re<P.length&&$(P[re])<=ue;)re++;P.splice(re,0,K)}function te(){}function Ge(P,K){var $;return Object.create?$=Object.create(P):(te.prototype=P,$=new te),K&&j(K,$),$}var oe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Y(P){return/\w/.test(P)||P>"\x80"&&(P.toUpperCase()!=P.toLowerCase()||oe.test(P))}function G(P,K){return K?K.source.indexOf("\\w")>-1&&Y(P)?!0:K.test(P):Y(P)}function Q(P){for(var K in P)if(P.hasOwnProperty(K)&&P[K])return!1;return!0}var ye=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ce(P){return P.charCodeAt(0)>=768&&ye.test(P)}function Te(P,K,$){for(;($<0?K>0:K<P.length)&&ce(P.charAt(K));)K+=$;return K}function Se(P,K,$){for(var re=K>$?-1:1;;){if(K==$)return K;var ue=(K+$)/2,Me=re<0?Math.ceil(ue):Math.floor(ue);if(Me==K)return P(Me)?K:$;P(Me)?$=Me:K=Me+re}}function le(P,K,$,re){if(!P)return re(K,$,"ltr",0);for(var ue=!1,Me=0;Me<P.length;++Me){var gt=P[Me];(gt.from<$&&gt.to>K||K==$&&gt.to==K)&&(re(Math.max(gt.from,K),Math.min(gt.to,$),gt.level==1?"rtl":"ltr",Me),ue=!0)}ue||re(K,$,"ltr")}var fe=null;function Ee(P,K,$){var re;fe=null;for(var ue=0;ue<P.length;++ue){var Me=P[ue];if(Me.from<K&&Me.to>K)return ue;Me.to==K&&(Me.from!=Me.to&&$=="before"?re=ue:fe=ue),Me.from==K&&(Me.from!=Me.to&&$!="before"?re=ue:fe=ue)}return re!=null?re:fe}var Ve=function(){var P="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",K="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function $(cr){return cr<=247?P.charAt(cr):1424<=cr&&cr<=1524?"R":1536<=cr&&cr<=1785?K.charAt(cr-1536):1774<=cr&&cr<=2220?"r":8192<=cr&&cr<=8203?"w":cr==8204?"b":"L"}var re=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ue=/[stwN]/,Me=/[LRr]/,gt=/[Lb1n]/,zt=/[1n]/;function or(cr,wn,Rn){this.level=cr,this.from=wn,this.to=Rn}return function(cr,wn){var Rn=wn=="ltr"?"L":"R";if(cr.length==0||wn=="ltr"&&!re.test(cr))return!1;for(var ui=cr.length,hi=[],Wi=0;Wi<ui;++Wi)hi.push($(cr.charCodeAt(Wi)));for(var ia=0,xa=Rn;ia<ui;++ia){var ba=hi[ia];ba=="m"?hi[ia]=xa:xa=ba}for(var va=0,Ua=Rn;va<ui;++va){var eo=hi[va];eo=="1"&&Ua=="r"?hi[va]="n":Me.test(eo)&&(Ua=eo,eo=="r"&&(hi[va]="R"))}for(var ko=1,To=hi[0];ko<ui-1;++ko){var ns=hi[ko];ns=="+"&&To=="1"&&hi[ko+1]=="1"?hi[ko]="1":ns==","&&To==hi[ko+1]&&(To=="1"||To=="n")&&(hi[ko]=To),To=ns}for(var Ss=0;Ss<ui;++Ss){var Hs=hi[Ss];if(Hs==",")hi[Ss]="N";else if(Hs=="%"){var Ls=void 0;for(Ls=Ss+1;Ls<ui&&hi[Ls]=="%";++Ls);for(var ul=Ss&&hi[Ss-1]=="!"||Ls<ui&&hi[Ls]=="1"?"1":"N",Sl=Ss;Sl<Ls;++Sl)hi[Sl]=ul;Ss=Ls-1}}for(var tl=0,xl=Rn;tl<ui;++tl){var cl=hi[tl];xl=="L"&&cl=="1"?hi[tl]="L":Me.test(cl)&&(xl=cl)}for(var Oa=0;Oa<ui;++Oa)if(ue.test(hi[Oa])){var ks=void 0;for(ks=Oa+1;ks<ui&&ue.test(hi[ks]);++ks);for(var Ps=(Oa?hi[Oa-1]:Rn)=="L",Ys=(ks<ui?hi[ks]:Rn)=="L",Lu=Ps==Ys?Ps?"L":"R":Rn,gs=Oa;gs<ks;++gs)hi[gs]=Lu;Oa=ks-1}for(var ts=[],zl,yl=0;yl<ui;)if(gt.test(hi[yl])){var Nu=yl;for(++yl;yl<ui&&gt.test(hi[yl]);++yl);ts.push(new or(0,Nu,yl))}else{var du=yl,Vl=ts.length,Su=wn=="rtl"?1:0;for(++yl;yl<ui&&hi[yl]!="L";++yl);for(var Il=du;Il<yl;)if(zt.test(hi[Il])){du<Il&&(ts.splice(Vl,0,new or(1,du,Il)),Vl+=Su);var hu=Il;for(++Il;Il<yl&&zt.test(hi[Il]);++Il);ts.splice(Vl,0,new or(2,hu,Il)),Vl+=Su,du=Il}else++Il;du<yl&&ts.splice(Vl,0,new or(1,du,yl))}return wn=="ltr"&&(ts[0].level==1&&(zl=cr.match(/^\s+/))&&(ts[0].from=zl[0].length,ts.unshift(new or(0,0,zl[0].length))),me(ts).level==1&&(zl=cr.match(/\s+$/))&&(me(ts).to-=zl[0].length,ts.push(new or(0,ui-zl[0].length,ui)))),wn=="rtl"?ts.reverse():ts}}();function vt(P,K){var $=P.order;return $==null&&($=P.order=Ve(P.text,K)),$}var et=[],Oe=function(K,$,re){if(K.addEventListener)K.addEventListener($,re,!1);else if(K.attachEvent)K.attachEvent("on"+$,re);else{var ue=K._handlers||(K._handlers={});ue[$]=(ue[$]||et).concat(re)}};function Tt(P,K){return P._handlers&&P._handlers[K]||et}function Je(P,K,$){if(P.removeEventListener)P.removeEventListener(K,$,!1);else if(P.detachEvent)P.detachEvent("on"+K,$);else{var re=P._handlers,ue=re&&re[K];if(ue){var Me=z(ue,$);Me>-1&&(re[K]=ue.slice(0,Me).concat(ue.slice(Me+1)))}}}function St(P,K){var $=Tt(P,K);if(!$.length)return;for(var re=Array.prototype.slice.call(arguments,2),ue=0;ue<$.length;++ue)$[ue].apply(null,re)}function Mt(P,K,$){return typeof K=="string"&&(K={type:K,preventDefault:function(){this.defaultPrevented=!0}}),St(P,$||K.type,P,K),X(K)||K.codemirrorIgnore}function er(P){var K=P._handlers&&P._handlers.cursorActivity;if(!K)return;for(var $=P.curOp.cursorActivityHandlers||(P.curOp.cursorActivityHandlers=[]),re=0;re<K.length;++re)z($,K[re])==-1&&$.push(K[re])}function It(P,K){return Tt(P,K).length>0}function _t(P){P.prototype.on=function(K,$){Oe(this,K,$)},P.prototype.off=function(K,$){Je(this,K,$)}}function Xe(P){P.preventDefault?P.preventDefault():P.returnValue=!1}function ie(P){P.stopPropagation?P.stopPropagation():P.cancelBubble=!0}function X(P){return P.defaultPrevented!=null?P.defaultPrevented:P.returnValue==!1}function Be(P){Xe(P),ie(P)}function Ce(P){return P.target||P.srcElement}function Z(P){var K=P.which;return K==null&&(P.button&1?K=1:P.button&2?K=3:P.button&4&&(K=2)),h&&P.ctrlKey&&K==1&&(K=3),K}var nt=function(){if(f&&c<9)return!1;var P=I("div");return"draggable"in P||"dragDrop"in P}(),ct;function Qe(P){if(ct==null){var K=I("span","\u200B");_(P,I("span",[K,document.createTextNode("x")])),P.firstChild.offsetHeight!=0&&(ct=K.offsetWidth<=1&&K.offsetHeight>2&&!(f&&c<8))}var $=ct?I("span","\u200B"):I("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return $.setAttribute("cm-text",""),$}var dt;function Ft(P){if(dt!=null)return dt;var K=_(P,document.createTextNode("A\u062EA")),$=N(K,0,1).getBoundingClientRect(),re=N(K,1,2).getBoundingClientRect();return S(P),!$||$.left==$.right?!1:dt=re.right-$.right<3}var Lr=`
b`.split(/\n/).length!=3?function(P){for(var K=0,$=[],re=P.length;K<=re;){var ue=P.indexOf(`
`,K);ue==-1&&(ue=P.length);var Me=P.slice(K,P.charAt(ue-1)=="\r"?ue-1:ue),gt=Me.indexOf("\r");gt!=-1?($.push(Me.slice(0,gt)),K+=gt+1):($.push(Me),K=ue+1)}return $}:function(P){return P.split(/\r\n?|\n/)},Wt=window.getSelection?function(P){try{return P.selectionStart!=P.selectionEnd}catch(K){return!1}}:function(P){var K;try{K=P.ownerDocument.selection.createRange()}catch($){}return!K||K.parentElement()!=P?!1:K.compareEndPoints("StartToEnd",K)!=0},ar=function(){var P=I("div");return"oncopy"in P?!0:(P.setAttribute("oncopy","return;"),typeof P.oncopy=="function")}(),Ut=null;function kt(P){if(Ut!=null)return Ut;var K=_(P,I("span","x")),$=K.getBoundingClientRect(),re=N(K,0,1).getBoundingClientRect();return Ut=Math.abs($.left-re.left)>1}var st={},Rr={};function on(P,K){arguments.length>2&&(K.dependencies=Array.prototype.slice.call(arguments,2)),st[P]=K}function Sn(P,K){Rr[P]=K}function zn(P){if(typeof P=="string"&&Rr.hasOwnProperty(P))P=Rr[P];else if(P&&typeof P.name=="string"&&Rr.hasOwnProperty(P.name)){var K=Rr[P.name];typeof K=="string"&&(K={name:K}),P=Ge(K,P),P.name=K.name}else{if(typeof P=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(P))return zn("application/xml");if(typeof P=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(P))return zn("application/json")}return typeof P=="string"?{name:P}:P||{name:"null"}}function Ii(P,K){K=zn(K);var $=st[K.name];if(!$)return Ii(P,"text/plain");var re=$(P,K);if(yn.hasOwnProperty(K.name)){var ue=yn[K.name];for(var Me in ue){if(!ue.hasOwnProperty(Me))continue;re.hasOwnProperty(Me)&&(re["_"+Me]=re[Me]),re[Me]=ue[Me]}}if(re.name=K.name,K.helperType&&(re.helperType=K.helperType),K.modeProps)for(var gt in K.modeProps)re[gt]=K.modeProps[gt];return re}var yn={};function Nn(P,K){var $=yn.hasOwnProperty(P)?yn[P]:yn[P]={};j(K,$)}function jt(P,K){if(K===!0)return K;if(P.copyState)return P.copyState(K);var $={};for(var re in K){var ue=K[re];ue instanceof Array&&(ue=ue.concat([])),$[re]=ue}return $}function At(P,K){for(var $;P.innerMode&&!($=P.innerMode(K),!$||$.mode==P);)K=$.state,P=$.mode;return $||{mode:P,state:K}}function Re(P,K,$){return P.startState?P.startState(K,$):!0}var Ke=function(K,$,re){this.pos=this.start=0,this.string=K,this.tabSize=$||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=re};Ke.prototype.eol=function(){return this.pos>=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ke.prototype.eat=function(P){var K=this.string.charAt(this.pos),$;if(typeof P=="string"?$=K==P:$=K&&(P.test?P.test(K):P(K)),$)return++this.pos,K},Ke.prototype.eatWhile=function(P){for(var K=this.pos;this.eat(P););return this.pos>K},Ke.prototype.eatSpace=function(){for(var P=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>P},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(P){var K=this.string.indexOf(P,this.pos);if(K>-1)return this.pos=K,!0},Ke.prototype.backUp=function(P){this.pos-=P},Ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=W(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.indentation=function(){return W(this.string,null,this.tabSize)-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.match=function(P,K,$){if(typeof P=="string"){var re=function(zt){return $?zt.toLowerCase():zt},ue=this.string.substr(this.pos,P.length);if(re(ue)==re(P))return K!==!1&&(this.pos+=P.length),!0}else{var Me=this.string.slice(this.pos).match(P);return Me&&Me.index>0?null:(Me&&K!==!1&&(this.pos+=Me[0].length),Me)}},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(P,K){this.lineStart+=P;try{return K()}finally{this.lineStart-=P}},Ke.prototype.lookAhead=function(P){var K=this.lineOracle;return K&&K.lookAhead(P)},Ke.prototype.baseToken=function(){var P=this.lineOracle;return P&&P.baseToken(this.pos)};function Pe(P,K){if(K-=P.first,K<0||K>=P.size)throw new Error("There is no line "+(K+P.first)+" in the document.");for(var $=P;!$.lines;)for(var re=0;;++re){var ue=$.children[re],Me=ue.chunkSize();if(K<Me){$=ue;break}K-=Me}return $.lines[K]}function at(P,K,$){var re=[],ue=K.line;return P.iter(K.line,$.line+1,function(Me){var gt=Me.text;ue==$.line&&(gt=gt.slice(0,$.ch)),ue==K.line&&(gt=gt.slice(K.ch)),re.push(gt),++ue}),re}function wt(P,K,$){var re=[];return P.iter(K,$,function(ue){re.push(ue.text)}),re}function Rt(P,K){var $=K-P.height;if($)for(var re=P;re;re=re.parent)re.height+=$}function xt(P){if(P.parent==null)return null;for(var K=P.parent,$=z(K.lines,P),re=K.parent;re;K=re,re=re.parent)for(var ue=0;!(re.children[ue]==K);++ue)$+=re.children[ue].chunkSize();return $+K.first}function Lt(P,K){var $=P.first;e:do{for(var re=0;re<P.children.length;++re){var ue=P.children[re],Me=ue.height;if(K<Me){P=ue;continue e}K-=Me,$+=ue.chunkSize()}return $}while(!P.lines);for(var gt=0;gt<P.lines.length;++gt){var zt=P.lines[gt],or=zt.height;if(K<or)break;K-=or}return $+gt}function gr(P,K){return K>=P.first&&K<P.first+P.size}function Br(P,K){return String(P.lineNumberFormatter(K+P.firstLineNumber))}function Et(P,K,$){if($===void 0&&($=null),!(this instanceof Et))return new Et(P,K,$);this.line=P,this.ch=K,this.sticky=$}function it(P,K){return P.line-K.line||P.ch-K.ch}function rt(P,K){return P.sticky==K.sticky&&it(P,K)==0}function Pt(P){return Et(P.line,P.ch)}function Ht(P,K){return it(P,K)<0?K:P}function bt(P,K){return it(P,K)<0?P:K}function Gt(P,K){return Math.max(P.first,Math.min(K,P.first+P.size-1))}function ut(P,K){if(K.line<P.first)return Et(P.first,0);var $=P.first+P.size-1;return K.line>$?Et($,Pe(P,$).text.length):Kt(K,Pe(P,K.line).text.length)}function Kt(P,K){var $=P.ch;return $==null||$>K?Et(P.line,K):$<0?Et(P.line,0):P}function Ar(P,K){for(var $=[],re=0;re<K.length;re++)$[re]=ut(P,K[re]);return $}var ir=function(K,$){this.state=K,this.lookAhead=$},pr=function(K,$,re,ue){this.state=$,this.doc=K,this.line=re,this.maxLookAhead=ue||0,this.baseTokens=null,this.baseTokenPos=1};pr.prototype.lookAhead=function(P){var K=this.doc.getLine(this.line+P);return K!=null&&P>this.maxLookAhead&&(this.maxLookAhead=P),K},pr.prototype.baseToken=function(P){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=P;)this.baseTokenPos+=2;var K=this.baseTokens[this.baseTokenPos+1];return{type:K&&K.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-P}},pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pr.fromSaved=function(P,K,$){return K instanceof ir?new pr(P,jt(P.mode,K.state),$,K.lookAhead):new pr(P,jt(P.mode,K),$)},pr.prototype.save=function(P){var K=P!==!1?jt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ir(K,this.maxLookAhead):K};function tn(P,K,$,re){var ue=[P.state.modeGen],Me={};we(P,K.text,P.doc.mode,$,function(cr,wn){return ue.push(cr,wn)},Me,re);for(var gt=$.state,zt=function(wn){$.baseTokens=ue;var Rn=P.state.overlays[wn],ui=1,hi=0;$.state=!0,we(P,K.text,Rn.mode,$,function(Wi,ia){for(var xa=ui;hi<Wi;){var ba=ue[ui];ba>Wi&&ue.splice(ui,1,Wi,ue[ui+1],ba),ui+=2,hi=Math.min(Wi,ba)}if(!ia)return;if(Rn.opaque)ue.splice(xa,ui-xa,Wi,"overlay "+ia),ui=xa+2;else for(;xa<ui;xa+=2){var va=ue[xa+1];ue[xa+1]=(va?va+" ":"")+"overlay "+ia}},Me),$.state=gt,$.baseTokens=null,$.baseTokenPos=1},or=0;or<P.state.overlays.length;++or)zt(or);return{styles:ue,classes:Me.bgClass||Me.textClass?Me:null}}function fn(P,K,$){if(!K.styles||K.styles[0]!=P.state.modeGen){var re=Mn(P,xt(K)),ue=K.text.length>P.options.maxHighlightLength&&jt(P.doc.mode,re.state),Me=tn(P,K,re);ue&&(re.state=ue),K.stateAfter=re.save(!ue),K.styles=Me.styles,Me.classes?K.styleClasses=Me.classes:K.styleClasses&&(K.styleClasses=null),$===P.doc.highlightFrontier&&(P.doc.modeFrontier=Math.max(P.doc.modeFrontier,++P.doc.highlightFrontier))}return K.styles}function Mn(P,K,$){var re=P.doc,ue=P.display;if(!re.mode.startState)return new pr(re,!0,K);var Me=Ne(P,K,$),gt=Me>re.first&&Pe(re,Me-1).stateAfter,zt=gt?pr.fromSaved(re,gt,Me):new pr(re,Re(re.mode),Me);return re.iter(Me,K,function(or){Yn(P,or.text,zt);var cr=zt.line;or.stateAfter=cr==K-1||cr%5==0||cr>=ue.viewFrom&&cr<ue.viewTo?zt.save():null,zt.nextLine()}),$&&(re.modeFrontier=zt.line),zt}function Yn(P,K,$,re){var ue=P.doc.mode,Me=new Ke(K,P.options.tabSize,$);for(Me.start=Me.pos=re||0,K==""&&si(ue,$.state);!Me.eol();)vi(ue,Me,$.state),Me.start=Me.pos}function si(P,K){if(P.blankLine)return P.blankLine(K);if(!P.innerMode)return;var $=At(P,K);if($.mode.blankLine)return $.mode.blankLine($.state)}function vi(P,K,$,re){for(var ue=0;ue<10;ue++){re&&(re[0]=At(P,$).mode);var Me=P.token(K,$);if(K.pos>K.start)return Me}throw new Error("Mode "+P.name+" failed to advance stream.")}var xi=function(K,$,re){this.start=K.start,this.end=K.pos,this.string=K.current(),this.type=$||null,this.state=re};function _i(P,K,$,re){var ue=P.doc,Me=ue.mode,gt;K=ut(ue,K);var zt=Pe(ue,K.line),or=Mn(P,K.line,$),cr=new Ke(zt.text,P.options.tabSize,or),wn;for(re&&(wn=[]);(re||cr.pos<K.ch)&&!cr.eol();)cr.start=cr.pos,gt=vi(Me,cr,or.state),re&&wn.push(new xi(cr,gt,jt(ue.mode,or.state)));return re?wn:new xi(cr,gt,or.state)}function Ze(P,K){if(P)for(;;){var $=P.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!$)break;P=P.slice(0,$.index)+P.slice($.index+$[0].length);var re=$[1]?"bgClass":"textClass";K[re]==null?K[re]=$[2]:new RegExp("(?:^|\\s)"+$[2]+"(?:$|\\s)").test(K[re])||(K[re]+=" "+$[2])}return P}function we(P,K,$,re,ue,Me,gt){var zt=$.flattenSpans;zt==null&&(zt=P.options.flattenSpans);var or=0,cr=null,wn=new Ke(K,P.options.tabSize,re),Rn,ui=P.options.addModeClass&&[null];for(K==""&&Ze(si($,re.state),Me);!wn.eol();){if(wn.pos>P.options.maxHighlightLength?(zt=!1,gt&&Yn(P,K,re,wn.pos),wn.pos=K.length,Rn=null):Rn=Ze(vi($,wn,re.state,ui),Me),ui){var hi=ui[0].name;hi&&(Rn="m-"+(Rn?hi+" "+Rn:hi))}if(!zt||cr!=Rn){for(;or<wn.start;)or=Math.min(wn.start,or+5e3),ue(or,cr);cr=Rn}wn.start=wn.pos}for(;or<wn.pos;){var Wi=Math.min(wn.pos,or+5e3);ue(Wi,cr),or=Wi}}function Ne(P,K,$){for(var re,ue,Me=P.doc,gt=$?-1:K-(P.doc.mode.innerMode?1e3:100),zt=K;zt>gt;--zt){if(zt<=Me.first)return Me.first;var or=Pe(Me,zt-1),cr=or.stateAfter;if(cr&&(!$||zt+(cr instanceof ir?cr.lookAhead:0)<=Me.modeFrontier))return zt;var wn=W(or.text,null,P.options.tabSize);(ue==null||re>wn)&&(ue=zt-1,re=wn)}return ue}function Fe(P,K){if(P.modeFrontier=Math.min(P.modeFrontier,K),P.highlightFrontier<K-10)return;for(var $=P.first,re=K-1;re>$;re--){var ue=Pe(P,re).stateAfter;if(ue&&(!(ue instanceof ir)||re+ue.lookAhead<K)){$=re+1;break}}P.highlightFrontier=Math.min(P.highlightFrontier,$)}var Ye=!1,We=!1;function qe(){Ye=!0}function yt(){We=!0}function ot(P,K,$){this.marker=P,this.from=K,this.to=$}function $t(P,K){if(P)for(var $=0;$<P.length;++$){var re=P[$];if(re.marker==K)return re}}function Mr(P,K){for(var $,re=0;re<P.length;++re)P[re]!=K&&($||($=[])).push(P[re]);return $}function Sr(P,K){P.markedSpans=P.markedSpans?P.markedSpans.concat([K]):[K],K.marker.attachLine(P)}function jr(P,K,$){var re;if(P)for(var ue=0;ue<P.length;++ue){var Me=P[ue],gt=Me.marker,zt=Me.from==null||(gt.inclusiveLeft?Me.from<=K:Me.from<K);if(zt||Me.from==K&&gt.type=="bookmark"&&(!$||!Me.marker.insertLeft)){var or=Me.to==null||(gt.inclusiveRight?Me.to>=K:Me.to>K);(re||(re=[])).push(new ot(gt,Me.from,or?null:Me.to))}}return re}function tr(P,K,$){var re;if(P)for(var ue=0;ue<P.length;++ue){var Me=P[ue],gt=Me.marker,zt=Me.to==null||(gt.inclusiveRight?Me.to>=K:Me.to>K);if(zt||Me.from==K&&gt.type=="bookmark"&&(!$||Me.marker.insertLeft)){var or=Me.from==null||(gt.inclusiveLeft?Me.from<=K:Me.from<K);(re||(re=[])).push(new ot(gt,or?null:Me.from-K,Me.to==null?null:Me.to-K))}}return re}function gn(P,K){if(K.full)return null;var $=gr(P,K.from.line)&&Pe(P,K.from.line).markedSpans,re=gr(P,K.to.line)&&Pe(P,K.to.line).markedSpans;if(!$&&!re)return null;var ue=K.from.ch,Me=K.to.ch,gt=it(K.from,K.to)==0,zt=jr($,ue,gt),or=tr(re,Me,gt),cr=K.text.length==1,wn=me(K.text).length+(cr?ue:0);if(zt)for(var Rn=0;Rn<zt.length;++Rn){var ui=zt[Rn];if(ui.to==null){var hi=$t(or,ui.marker);hi?cr&&(ui.to=hi.to==null?null:hi.to+wn):ui.to=ue}}if(or)for(var Wi=0;Wi<or.length;++Wi){var ia=or[Wi];if(ia.to!=null&&(ia.to+=wn),ia.from==null){var xa=$t(zt,ia.marker);xa||(ia.from=wn,cr&&(zt||(zt=[])).push(ia))}else ia.from+=wn,cr&&(zt||(zt=[])).push(ia)}zt&&(zt=sr(zt)),or&&or!=zt&&(or=sr(or));var ba=[zt];if(!cr){var va=K.text.length-2,Ua;if(va>0&&zt)for(var eo=0;eo<zt.length;++eo)zt[eo].to==null&&(Ua||(Ua=[])).push(new ot(zt[eo].marker,null,null));for(var ko=0;ko<va;++ko)ba.push(Ua);ba.push(or)}return ba}function sr(P){for(var K=0;K<P.length;++K){var $=P[K];$.from!=null&&$.from==$.to&&$.marker.clearWhenEmpty!==!1&&P.splice(K--,1)}return P.length?P:null}function un(P,K,$){var re=null;if(P.iter(K.line,$.line+1,function(hi){if(hi.markedSpans)for(var Wi=0;Wi<hi.markedSpans.length;++Wi){var ia=hi.markedSpans[Wi].marker;ia.readOnly&&(!re||z(re,ia)==-1)&&(re||(re=[])).push(ia)}}),!re)return null;for(var ue=[{from:K,to:$}],Me=0;Me<re.length;++Me)for(var gt=re[Me],zt=gt.find(0),or=0;or<ue.length;++or){var cr=ue[or];if(it(cr.to,zt.from)<0||it(cr.from,zt.to)>0)continue;var wn=[or,1],Rn=it(cr.from,zt.from),ui=it(cr.to,zt.to);(Rn<0||!gt.inclusiveLeft&&!Rn)&&wn.push({from:cr.from,to:zt.from}),(ui>0||!gt.inclusiveRight&&!ui)&&wn.push({from:zt.to,to:cr.to}),ue.splice.apply(ue,wn),or+=wn.length-3}return ue}function an(P){var K=P.markedSpans;if(!K)return;for(var $=0;$<K.length;++$)K[$].marker.detachLine(P);P.markedSpans=null}function Pr(P,K){if(!K)return;for(var $=0;$<K.length;++$)K[$].marker.attachLine(P);P.markedSpans=K}function In(P){return P.inclusiveLeft?-1:0}function ci(P){return P.inclusiveRight?1:0}function Ui(P,K){var $=P.lines.length-K.lines.length;if($!=0)return $;var re=P.find(),ue=K.find(),Me=it(re.from,ue.from)||In(P)-In(K);if(Me)return-Me;var gt=it(re.to,ue.to)||ci(P)-ci(K);return gt||K.id-P.id}function ki(P,K){var $=We&&P.markedSpans,re;if($)for(var ue=void 0,Me=0;Me<$.length;++Me)ue=$[Me],ue.marker.collapsed&&(K?ue.from:ue.to)==null&&(!re||Ui(re,ue.marker)<0)&&(re=ue.marker);return re}function Ri(P){return ki(P,!0)}function Ki(P){return ki(P,!1)}function Hr(P,K){var $=We&&P.markedSpans,re;if($)for(var ue=0;ue<$.length;++ue){var Me=$[ue];Me.marker.collapsed&&(Me.from==null||Me.from<K)&&(Me.to==null||Me.to>K)&&(!re||Ui(re,Me.marker)<0)&&(re=Me.marker)}return re}function Cn(P,K,$,re,ue){var Me=Pe(P,K),gt=We&&Me.markedSpans;if(gt)for(var zt=0;zt<gt.length;++zt){var or=gt[zt];if(!or.marker.collapsed)continue;var cr=or.marker.find(0),wn=it(cr.from,$)||In(or.marker)-In(ue),Rn=it(cr.to,re)||ci(or.marker)-ci(ue);if(wn>=0&&Rn<=0||wn<=0&&Rn>=0)continue;if(wn<=0&&(or.marker.inclusiveRight&&ue.inclusiveLeft?it(cr.to,$)>=0:it(cr.to,$)>0)||wn>=0&&(or.marker.inclusiveRight&&ue.inclusiveLeft?it(cr.from,re)<=0:it(cr.from,re)<0))return!0}}function kr(P){for(var K;K=Ri(P);)P=K.find(-1,!0).line;return P}function mr(P){for(var K;K=Ki(P);)P=K.find(1,!0).line;return P}function Cr(P){for(var K,$;K=Ki(P);)P=K.find(1,!0).line,($||($=[])).push(P);return $}function Nt(P,K){var $=Pe(P,K),re=kr($);return $==re?K:xt(re)}function wr(P,K){if(K>P.lastLine())return K;var $=Pe(P,K),re;if(!Gr(P,$))return K;for(;re=Ki($);)$=re.find(1,!0).line;return xt($)+1}function Gr(P,K){var $=We&&K.markedSpans;if($)for(var re=void 0,ue=0;ue<$.length;++ue){if(re=$[ue],!re.marker.collapsed)continue;if(re.from==null)return!0;if(re.marker.widgetNode)continue;if(re.from==0&&re.marker.inclusiveLeft&&Kr(P,K,re))return!0}}function Kr(P,K,$){if($.to==null){var re=$.marker.find(1,!0);return Kr(P,re.line,$t(re.line.markedSpans,$.marker))}if($.marker.inclusiveRight&&$.to==K.text.length)return!0;for(var ue=void 0,Me=0;Me<K.markedSpans.length;++Me)if(ue=K.markedSpans[Me],ue.marker.collapsed&&!ue.marker.widgetNode&&ue.from==$.to&&(ue.to==null||ue.to!=$.from)&&(ue.marker.inclusiveLeft||$.marker.inclusiveRight)&&Kr(P,K,ue))return!0}function qr(P){P=kr(P);for(var K=0,$=P.parent,re=0;re<$.lines.length;++re){var ue=$.lines[re];if(ue==P)break;K+=ue.height}for(var Me=$.parent;Me;$=Me,Me=$.parent)for(var gt=0;gt<Me.children.length;++gt){var zt=Me.children[gt];if(zt==$)break;K+=zt.height}return K}function oi(P){if(P.height==0)return 0;for(var K=P.text.length,$,re=P;$=Ri(re);){var ue=$.find(0,!0);re=ue.from.line,K+=ue.from.ch-ue.to.ch}for(re=P;$=Ki(re);){var Me=$.find(0,!0);K-=re.text.length-Me.from.ch,re=Me.to.line,K+=re.text.length-Me.to.ch}return K}function Gn(P){var K=P.display,$=P.doc;K.maxLine=Pe($,$.first),K.maxLineLength=oi(K.maxLine),K.maxLineChanged=!0,$.iter(function(re){var ue=oi(re);ue>K.maxLineLength&&(K.maxLineLength=ue,K.maxLine=re)})}var Ti=function(K,$,re){this.text=K,Pr(this,$),this.height=re?re(this):1};Ti.prototype.lineNo=function(){return xt(this)},_t(Ti);function hn(P,K,$,re){P.text=K,P.stateAfter&&(P.stateAfter=null),P.styles&&(P.styles=null),P.order!=null&&(P.order=null),an(P),Pr(P,$);var ue=re?re(P):1;ue!=P.height&&Rt(P,ue)}function _r(P){P.parent=null,an(P)}var En={},Fn={};function Vn(P,K){if(!P||/^\s*$/.test(P))return null;var $=K.addModeClass?Fn:En;return $[P]||($[P]=P.replace(/\S+/g,"cm-$&"))}function qn(P,K){var $=L("span",null,null,o?"padding-right: .1px":null),re={pre:L("pre",[$],"CodeMirror-line"),content:$,col:0,pos:0,cm:P,trailingSpace:!1,splitSpaces:P.getOption("lineWrapping")};K.measure={};for(var ue=0;ue<=(K.rest?K.rest.length:0);ue++){var Me=ue?K.rest[ue-1]:K.line,gt=void 0;re.pos=0,re.addToken=Ni,Ft(P.display.measure)&&(gt=vt(Me,P.doc.direction))&&(re.addToken=Ji(re.addToken,gt)),re.map=[];var zt=K!=P.display.externalMeasured&&xt(Me);la(Me,re,fn(P,Me,zt)),Me.styleClasses&&(Me.styleClasses.bgClass&&(re.bgClass=M(Me.styleClasses.bgClass,re.bgClass||"")),Me.styleClasses.textClass&&(re.textClass=M(Me.styleClasses.textClass,re.textClass||""))),re.map.length==0&&re.map.push(0,0,re.content.appendChild(Qe(P.display.measure))),ue==0?(K.measure.map=re.map,K.measure.cache={}):((K.measure.maps||(K.measure.maps=[])).push(re.map),(K.measure.caches||(K.measure.caches=[])).push({}))}if(o){var or=re.content.lastChild;(/\bcm-tab\b/.test(or.className)||or.querySelector&&or.querySelector(".cm-tab"))&&(re.content.className="cm-tab-wrap-hack")}return St(P,"renderLine",P,K.line,re.pre),re.pre.className&&(re.textClass=M(re.pre.className,re.textClass||"")),re}function Oi(P){var K=I("span","\u2022","cm-invalidchar");return K.title="\\u"+P.charCodeAt(0).toString(16),K.setAttribute("aria-label",K.title),K}function Ni(P,K,$,re,ue,Me,gt){if(!K)return;var zt=P.splitSpaces?Mi(K,P.trailingSpace):K,or=P.cm.state.specialChars,cr=!1,wn;if(!or.test(K))P.col+=K.length,wn=document.createTextNode(zt),P.map.push(P.pos,P.pos+K.length,wn),f&&c<9&&(cr=!0),P.pos+=K.length;else{wn=document.createDocumentFragment();for(var Rn=0;;){or.lastIndex=Rn;var ui=or.exec(K),hi=ui?ui.index-Rn:K.length-Rn;if(hi){var Wi=document.createTextNode(zt.slice(Rn,Rn+hi));f&&c<9?wn.appendChild(I("span",[Wi])):wn.appendChild(Wi),P.map.push(P.pos,P.pos+hi,Wi),P.col+=hi,P.pos+=hi}if(!ui)break;Rn+=hi+1;var ia=void 0;if(ui[0]==" "){var xa=P.cm.options.tabSize,ba=xa-P.col%xa;ia=wn.appendChild(I("span",He(ba),"cm-tab")),ia.setAttribute("role","presentation"),ia.setAttribute("cm-text"," "),P.col+=ba}else ui[0]=="\r"||ui[0]==`
`?(ia=wn.appendChild(I("span",ui[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ia.setAttribute("cm-text",ui[0]),P.col+=1):(ia=P.cm.options.specialCharPlaceholder(ui[0]),ia.setAttribute("cm-text",ui[0]),f&&c<9?wn.appendChild(I("span",[ia])):wn.appendChild(ia),P.col+=1);P.map.push(P.pos,P.pos+1,ia),P.pos++}}if(P.trailingSpace=zt.charCodeAt(K.length-1)==32,$||re||ue||cr||Me||gt){var va=$||"";re&&(va+=re),ue&&(va+=ue);var Ua=I("span",[wn],va,Me);if(gt)for(var eo in gt)gt.hasOwnProperty(eo)&&eo!="style"&&eo!="class"&&Ua.setAttribute(eo,gt[eo]);return P.content.appendChild(Ua)}P.content.appendChild(wn)}function Mi(P,K){if(P.length>1&&!/ /.test(P))return P;for(var $=K,re="",ue=0;ue<P.length;ue++){var Me=P.charAt(ue);Me==" "&&$&&(ue==P.length-1||P.charCodeAt(ue+1)==32)&&(Me="\xA0"),re+=Me,$=Me==" "}return re}function Ji(P,K){return function($,re,ue,Me,gt,zt,or){ue=ue?ue+" cm-force-border":"cm-force-border";for(var cr=$.pos,wn=cr+re.length;;){for(var Rn=void 0,ui=0;ui<K.length&&!(Rn=K[ui],Rn.to>cr&&Rn.from<=cr);ui++);if(Rn.to>=wn)return P($,re,ue,Me,gt,zt,or);P($,re.slice(0,Rn.to-cr),ue,Me,null,zt,or),Me=null,re=re.slice(Rn.to-cr),cr=Rn.to}}}function ma(P,K,$,re){var ue=!re&&$.widgetNode;ue&&P.map.push(P.pos,P.pos+K,ue),!re&&P.cm.display.input.needsContentAttribute&&(ue||(ue=P.content.appendChild(document.createElement("span"))),ue.setAttribute("cm-marker",$.id)),ue&&(P.cm.display.input.setUneditable(ue),P.content.appendChild(ue)),P.pos+=K,P.trailingSpace=!1}function la(P,K,$){var re=P.markedSpans,ue=P.text,Me=0;if(!re){for(var gt=1;gt<$.length;gt+=2)K.addToken(K,ue.slice(Me,Me=$[gt]),Vn($[gt+1],K.cm.options));return}for(var zt=ue.length,or=0,cr=1,wn="",Rn,ui,hi=0,Wi,ia,xa,ba,va;;){if(hi==or){Wi=ia=xa=ui="",va=null,ba=null,hi=Infinity;for(var Ua=[],eo=void 0,ko=0;ko<re.length;++ko){var To=re[ko],ns=To.marker;if(ns.type=="bookmark"&&To.from==or&&ns.widgetNode)Ua.push(ns);else if(To.from<=or&&(To.to==null||To.to>or||ns.collapsed&&To.to==or&&To.from==or)){if(To.to!=null&&To.to!=or&&hi>To.to&&(hi=To.to,ia=""),ns.className&&(Wi+=" "+ns.className),ns.css&&(ui=(ui?ui+";":"")+ns.css),ns.startStyle&&To.from==or&&(xa+=" "+ns.startStyle),ns.endStyle&&To.to==hi&&(eo||(eo=[])).push(ns.endStyle,To.to),ns.title&&((va||(va={})).title=ns.title),ns.attributes)for(var Ss in ns.attributes)(va||(va={}))[Ss]=ns.attributes[Ss];ns.collapsed&&(!ba||Ui(ba.marker,ns)<0)&&(ba=To)}else To.from>or&&hi>To.from&&(hi=To.from)}if(eo)for(var Hs=0;Hs<eo.length;Hs+=2)eo[Hs+1]==hi&&(ia+=" "+eo[Hs]);if(!ba||ba.from==or)for(var Ls=0;Ls<Ua.length;++Ls)ma(K,0,Ua[Ls]);if(ba&&(ba.from||0)==or){if(ma(K,(ba.to==null?zt+1:ba.to)-or,ba.marker,ba.from==null),ba.to==null)return;ba.to==or&&(ba=!1)}}if(or>=zt)break;for(var ul=Math.min(zt,hi);;){if(wn){var Sl=or+wn.length;if(!ba){var tl=Sl>ul?wn.slice(0,ul-or):wn;K.addToken(K,tl,Rn?Rn+Wi:Wi,xa,or+tl.length==hi?ia:"",ui,va)}if(Sl>=ul){wn=wn.slice(ul-or),or=ul;break}or=Sl,xa=""}wn=ue.slice(Me,Me=$[cr++]),Rn=Vn($[cr++],K.cm.options)}}}function qa(P,K,$){this.line=K,this.rest=Cr(K),this.size=this.rest?xt(me(this.rest))-$+1:1,this.node=this.text=null,this.hidden=Gr(P,K)}function bi(P,K,$){for(var re=[],ue,Me=K;Me<$;Me=ue){var gt=new qa(P.doc,Pe(P.doc,Me),Me);ue=Me+gt.size,re.push(gt)}return re}var xn=null;function zi(P){xn?xn.ops.push(P):P.ownsGroup=xn={ops:[P],delayedCallbacks:[]}}function oa(P){var K=P.delayedCallbacks,$=0;do{for(;$<K.length;$++)K[$].call(null);for(var re=0;re<P.ops.length;re++){var ue=P.ops[re];if(ue.cursorActivityHandlers)for(;ue.cursorActivityCalled<ue.cursorActivityHandlers.length;)ue.cursorActivityHandlers[ue.cursorActivityCalled++].call(null,ue.cm)}}while($<K.length)}function Yi(P,K){var $=P.ownsGroup;if(!$)return;try{oa($)}finally{xn=null,K($)}}var ca=null;function Hi(P,K){var $=Tt(P,K);if(!$.length)return;var re=Array.prototype.slice.call(arguments,2),ue;xn?ue=xn.delayedCallbacks:ca?ue=ca:(ue=ca=[],setTimeout(Ia,0));for(var Me=function(or){ue.push(function(){return $[or].apply(null,re)})},gt=0;gt<$.length;++gt)Me(gt)}function Ia(){var P=ca;ca=null;for(var K=0;K<P.length;++K)P[K]()}function Da(P,K,$,re){for(var ue=0;ue<K.changes.length;ue++){var Me=K.changes[ue];Me=="text"?Mo(P,K):Me=="gutter"?yo(P,K,$,re):Me=="class"?Fo(P,K):Me=="widget"&&Oo(P,K,re)}K.changes=null}function Qa(P){return P.node==P.text&&(P.node=I("div",null,null,"position: relative"),P.text.parentNode&&P.text.parentNode.replaceChild(P.node,P.text),P.node.appendChild(P.text),f&&c<8&&(P.node.style.zIndex=2)),P.node}function Wo(P,K){var $=K.bgClass?K.bgClass+" "+(K.line.bgClass||""):K.line.bgClass;if($&&($+=" CodeMirror-linebackground"),K.background)$?K.background.className=$:(K.background.parentNode.removeChild(K.background),K.background=null);else if($){var re=Qa(K);K.background=re.insertBefore(I("div",null,$),re.firstChild),P.display.input.setUneditable(K.background)}}function po(P,K){var $=P.display.externalMeasured;return $&&$.line==K.line?(P.display.externalMeasured=null,K.measure=$.measure,$.built):qn(P,K)}function Mo(P,K){var $=K.text.className,re=po(P,K);K.text==K.node&&(K.node=re.pre),K.text.parentNode.replaceChild(re.pre,K.text),K.text=re.pre,re.bgClass!=K.bgClass||re.textClass!=K.textClass?(K.bgClass=re.bgClass,K.textClass=re.textClass,Fo(P,K)):$&&(K.text.className=$)}function Fo(P,K){Wo(P,K),K.line.wrapClass?Qa(K).className=K.line.wrapClass:K.node!=K.text&&(K.node.className="");var $=K.textClass?K.textClass+" "+(K.line.textClass||""):K.line.textClass;K.text.className=$||""}function yo(P,K,$,re){if(K.gutter&&(K.node.removeChild(K.gutter),K.gutter=null),K.gutterBackground&&(K.node.removeChild(K.gutterBackground),K.gutterBackground=null),K.line.gutterClass){var ue=Qa(K);K.gutterBackground=I("div",null,"CodeMirror-gutter-background "+K.line.gutterClass,"left: "+(P.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px; width: "+re.gutterTotalWidth+"px"),P.display.input.setUneditable(K.gutterBackground),ue.insertBefore(K.gutterBackground,K.text)}var Me=K.line.gutterMarkers;if(P.options.lineNumbers||Me){var gt=Qa(K),zt=K.gutter=I("div",null,"CodeMirror-gutter-wrapper","left: "+(P.options.fixedGutter?re.fixedPos:-re.gutterTotalWidth)+"px");if(P.display.input.setUneditable(zt),gt.insertBefore(zt,K.text),K.line.gutterClass&&(zt.className+=" "+K.line.gutterClass),P.options.lineNumbers&&(!Me||!Me["CodeMirror-linenumbers"])&&(K.lineNumber=zt.appendChild(I("div",Br(P.options,$),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+re.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+P.display.lineNumInnerWidth+"px"))),Me)for(var or=0;or<P.display.gutterSpecs.length;++or){var cr=P.display.gutterSpecs[or].className,wn=Me.hasOwnProperty(cr)&&Me[cr];wn&&zt.appendChild(I("div",[wn],"CodeMirror-gutter-elt","left: "+re.gutterLeft[cr]+"px; width: "+re.gutterWidth[cr]+"px"))}}}function Oo(P,K,$){K.alignable&&(K.alignable=null);for(var re=T("CodeMirror-linewidget"),ue=K.node.firstChild,Me=void 0;ue;ue=Me)Me=ue.nextSibling,re.test(ue.className)&&K.node.removeChild(ue);hs(P,K,$)}function sa(P,K,$,re){var ue=po(P,K);return K.text=K.node=ue.pre,ue.bgClass&&(K.bgClass=ue.bgClass),ue.textClass&&(K.textClass=ue.textClass),Fo(P,K),yo(P,K,$,re),hs(P,K,re),K.node}function hs(P,K,$){if(Jo(P,K.line,K,$,!0),K.rest)for(var re=0;re<K.rest.length;re++)Jo(P,K.rest[re],K,$,!1)}function Jo(P,K,$,re,ue){if(!K.widgets)return;for(var Me=Qa($),gt=0,zt=K.widgets;gt<zt.length;++gt){var or=zt[gt],cr=I("div",[or.node],"CodeMirror-linewidget"+(or.className?" "+or.className:""));or.handleMouseEvents||cr.setAttribute("cm-ignore-events","true"),wo(or,cr,$,re),P.display.input.setUneditable(cr),ue&&or.above?Me.insertBefore(cr,$.gutter||$.text):Me.appendChild(cr),Hi(or,"redraw")}}function wo(P,K,$,re){if(P.noHScroll){($.alignable||($.alignable=[])).push(K);var ue=re.wrapperWidth;K.style.left=re.fixedPos+"px",P.coverGutter||(ue-=re.gutterTotalWidth,K.style.paddingLeft=re.gutterTotalWidth+"px"),K.style.width=ue+"px"}P.coverGutter&&(K.style.zIndex=5,K.style.position="relative",P.noHScroll||(K.style.marginLeft=-re.gutterTotalWidth+"px"))}function _o(P){if(P.height!=null)return P.height;var K=P.doc.cm;if(!K)return 0;if(!R(document.body,P.node)){var $="position: relative;";P.coverGutter&&($+="margin-left: -"+K.display.gutters.offsetWidth+"px;"),P.noHScroll&&($+="width: "+K.display.wrapper.clientWidth+"px;"),_(K.display.measure,I("div",[P.node],null,$))}return P.height=P.node.parentNode.offsetHeight}function Bo(P,K){for(var $=Ce(K);$!=P.wrapper;$=$.parentNode)if(!$||$.nodeType==1&&$.getAttribute("cm-ignore-events")=="true"||$.parentNode==P.sizer&&$!=P.mover)return!0}function Ds(P){return P.lineSpace.offsetTop}function Dr(P){return P.mover.offsetHeight-P.lineSpace.offsetHeight}function rn(P){if(P.cachedPaddingH)return P.cachedPaddingH;var K=_(P.measure,I("pre","x","CodeMirror-line-like")),$=window.getComputedStyle?window.getComputedStyle(K):K.currentStyle,re={left:parseInt($.paddingLeft),right:parseInt($.paddingRight)};return!isNaN(re.left)&&!isNaN(re.right)&&(P.cachedPaddingH=re),re}function Tn(P){return J-P.display.nativeBarWidth}function en(P){return P.display.scroller.clientWidth-Tn(P)-P.display.barWidth}function ur(P){return P.display.scroller.clientHeight-Tn(P)-P.display.barHeight}function sn(P,K,$){var re=P.options.lineWrapping,ue=re&&en(P);if(!K.measure.heights||re&&K.measure.width!=ue){var Me=K.measure.heights=[];if(re){K.measure.width=ue;for(var gt=K.text.firstChild.getClientRects(),zt=0;zt<gt.length-1;zt++){var or=gt[zt],cr=gt[zt+1];Math.abs(or.bottom-cr.bottom)>2&&Me.push((or.bottom+cr.top)/2-$.top)}}Me.push($.bottom-$.top)}}function Bn(P,K,$){if(P.line==K)return{map:P.measure.map,cache:P.measure.cache};for(var re=0;re<P.rest.length;re++)if(P.rest[re]==K)return{map:P.measure.maps[re],cache:P.measure.caches[re]};for(var ue=0;ue<P.rest.length;ue++)if(xt(P.rest[ue])>$)return{map:P.measure.maps[ue],cache:P.measure.caches[ue],before:!0}}function Hn(P,K){K=kr(K);var $=xt(K),re=P.display.externalMeasured=new qa(P.doc,K,$);re.lineN=$;var ue=re.built=qn(P,re);return re.text=ue.pre,_(P.display.lineMeasure,ue.pre),re}function Li(P,K,$,re){return mi(P,Jn(P,K),$,re)}function Ci(P,K){if(K>=P.display.viewFrom&&K<P.display.viewTo)return P.display.view[ji(P,K)];var $=P.display.externalMeasured;if($&&K>=$.lineN&&K<$.lineN+$.size)return $}function Jn(P,K){var $=xt(K),re=Ci(P,$);re&&!re.text?re=null:re&&re.changes&&(Da(P,re,$,Dn(P)),P.curOp.forceUpdate=!0),re||(re=Hn(P,K));var ue=Bn(re,K,$);return{line:K,view:re,rect:null,map:ue.map,cache:ue.cache,before:ue.before,hasHeights:!1}}function mi(P,K,$,re,ue){K.before&&($=-1);var Me=$+(re||""),gt;return K.cache.hasOwnProperty(Me)?gt=K.cache[Me]:(K.rect||(K.rect=K.view.text.getBoundingClientRect()),K.hasHeights||(sn(P,K.view,K.rect),K.hasHeights=!0),gt=Pa(P,K,$,re),gt.bogus||(K.cache[Me]=gt)),{left:gt.left,right:gt.right,top:ue?gt.rtop:gt.top,bottom:ue?gt.rbottom:gt.bottom}}var yi={left:0,right:0,top:0,bottom:0};function da(P,K,$){for(var re,ue,Me,gt,zt,or,cr=0;cr<P.length;cr+=3)if(zt=P[cr],or=P[cr+1],K<zt?(ue=0,Me=1,gt="left"):K<or?(ue=K-zt,Me=ue+1):(cr==P.length-3||K==or&&P[cr+3]>K)&&(Me=or-zt,ue=Me-1,K>=or&&(gt="right")),ue!=null){if(re=P[cr+2],zt==or&&$==(re.insertLeft?"left":"right")&&(gt=$),$=="left"&&ue==0)for(;cr&&P[cr-2]==P[cr-3]&&P[cr-1].insertLeft;)re=P[(cr-=3)+2],gt="left";if($=="right"&&ue==or-zt)for(;cr<P.length-3&&P[cr+3]==P[cr+4]&&!P[cr+5].insertLeft;)re=P[(cr+=3)+2],gt="right";break}return{node:re,start:ue,end:Me,collapse:gt,coverStart:zt,coverEnd:or}}function ha(P,K){var $=yi;if(K=="left")for(var re=0;re<P.length&&!(($=P[re]).left!=$.right);re++);else for(var ue=P.length-1;ue>=0&&!(($=P[ue]).left!=$.right);ue--);return $}function Pa(P,K,$,re){var ue=da(K.map,$,re),Me=ue.node,gt=ue.start,zt=ue.end,or=ue.collapse,cr;if(Me.nodeType==3){for(var wn=0;wn<4;wn++){for(;gt&&ce(K.line.text.charAt(ue.coverStart+gt));)--gt;for(;ue.coverStart+zt<ue.coverEnd&&ce(K.line.text.charAt(ue.coverStart+zt));)++zt;if(f&&c<9&&gt==0&&zt==ue.coverEnd-ue.coverStart?cr=Me.parentNode.getBoundingClientRect():cr=ha(N(Me,gt,zt).getClientRects(),re),cr.left||cr.right||gt==0)break;zt=gt,gt=gt-1,or="right"}f&&c<11&&(cr=Ra(P.display.measure,cr))}else{gt>0&&(or=re="right");var Rn;P.options.lineWrapping&&(Rn=Me.getClientRects()).length>1?cr=Rn[re=="right"?Rn.length-1:0]:cr=Me.getBoundingClientRect()}if(f&&c<9&&!gt&&(!cr||!cr.left&&!cr.right)){var ui=Me.parentNode.getClientRects()[0];ui?cr={left:ui.left,right:ui.left+_n(P.display),top:ui.top,bottom:ui.bottom}:cr=yi}for(var hi=cr.top-K.rect.top,Wi=cr.bottom-K.rect.top,ia=(hi+Wi)/2,xa=K.view.measure.heights,ba=0;ba<xa.length-1&&!(ia<xa[ba]);ba++);var va=ba?xa[ba-1]:0,Ua=xa[ba],eo={left:(or=="right"?cr.right:cr.left)-K.rect.left,right:(or=="left"?cr.left:cr.right)-K.rect.left,top:va,bottom:Ua};return!cr.left&&!cr.right&&(eo.bogus=!0),P.options.singleCursorHeightPerLine||(eo.rtop=hi,eo.rbottom=Wi),eo}function Ra(P,K){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!kt(P))return K;var $=screen.logicalXDPI/screen.deviceXDPI,re=screen.logicalYDPI/screen.deviceYDPI;return{left:K.left*$,right:K.right*$,top:K.top*re,bottom:K.bottom*re}}function so(P){if(P.measure&&(P.measure.cache={},P.measure.heights=null,P.rest))for(var K=0;K<P.rest.length;K++)P.measure.caches[K]={}}function La(P){P.display.externalMeasure=null,S(P.display.lineMeasure);for(var K=0;K<P.display.view.length;K++)so(P.display.view[K])}function lo(P){La(P),P.display.cachedCharWidth=P.display.cachedTextHeight=P.display.cachedPaddingH=null,P.options.lineWrapping||(P.display.maxLineChanged=!0),P.display.lineNumChars=null}function So(){return i&&s?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Qt(){return i&&s?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Vr(P){var K=0;if(P.widgets)for(var $=0;$<P.widgets.length;++$)P.widgets[$].above&&(K+=_o(P.widgets[$]));return K}function cn(P,K,$,re,ue){if(!ue){var Me=Vr(K);$.top+=Me,$.bottom+=Me}if(re=="line")return $;re||(re="local");var gt=qr(K);if(re=="local"?gt+=Ds(P.display):gt-=P.display.viewOffset,re=="page"||re=="window"){var zt=P.display.lineSpace.getBoundingClientRect();gt+=zt.top+(re=="window"?0:Qt());var or=zt.left+(re=="window"?0:So());$.left+=or,$.right+=or}return $.top+=gt,$.bottom+=gt,$}function vn(P,K,$){if($=="div")return K;var re=K.left,ue=K.top;if($=="page")re-=So(),ue-=Qt();else if($=="local"||!$){var Me=P.display.sizer.getBoundingClientRect();re+=Me.left,ue+=Me.top}var gt=P.display.lineSpace.getBoundingClientRect();return{left:re-gt.left,top:ue-gt.top}}function ni(P,K,$,re,ue){return re||(re=Pe(P.doc,K.line)),cn(P,re,Li(P,re,K.ch,ue),$)}function li(P,K,$,re,ue,Me){re=re||Pe(P.doc,K.line),ue||(ue=Jn(P,re));function gt(Wi,ia){var xa=mi(P,ue,Wi,ia?"right":"left",Me);return ia?xa.left=xa.right:xa.right=xa.left,cn(P,re,xa,$)}var zt=vt(re,P.doc.direction),or=K.ch,cr=K.sticky;if(or>=re.text.length?(or=re.text.length,cr="before"):or<=0&&(or=0,cr="after"),!zt)return gt(cr=="before"?or-1:or,cr=="before");function wn(Wi,ia,xa){var ba=zt[ia],va=ba.level==1;return gt(xa?Wi-1:Wi,va!=xa)}var Rn=Ee(zt,or,cr),ui=fe,hi=wn(or,Rn,cr=="before");return ui!=null&&(hi.other=wn(or,ui,cr!="before")),hi}function fi(P,K){var $=0;K=ut(P.doc,K),P.options.lineWrapping||($=_n(P.display)*K.ch);var re=Pe(P.doc,K.line),ue=qr(re)+Ds(P.display);return{left:$,right:$,top:ue,bottom:ue+re.height}}function di(P,K,$,re,ue){var Me=Et(P,K,$);return Me.xRel=ue,re&&(Me.outside=re),Me}function Jt(P,K,$){var re=P.doc;if($+=P.display.viewOffset,$<0)return di(re.first,0,null,-1,-1);var ue=Lt(re,$),Me=re.first+re.size-1;if(ue>Me)return di(re.first+re.size-1,Pe(re,Me).text.length,null,1,1);K<0&&(K=0);for(var gt=Pe(re,ue);;){var zt=qt(P,gt,ue,K,$),or=Hr(gt,zt.ch+(zt.xRel>0||zt.outside>0?1:0));if(!or)return zt;var cr=or.find(1);if(cr.line==ue)return cr;gt=Pe(re,ue=cr.line)}}function Ot(P,K,$,re){re-=Vr(K);var ue=K.text.length,Me=Se(function(gt){return mi(P,$,gt-1).bottom<=re},ue,0);return ue=Se(function(gt){return mi(P,$,gt).top>re},Me,ue),{begin:Me,end:ue}}function yr(P,K,$,re){$||($=Jn(P,K));var ue=cn(P,K,mi(P,$,re),"line").top;return Ot(P,K,$,ue)}function ft(P,K,$,re){return P.bottom<=$?!1:P.top>$?!0:(re?P.left:P.right)>K}function qt(P,K,$,re,ue){ue-=qr(K);var Me=Jn(P,K),gt=Vr(K),zt=0,or=K.text.length,cr=!0,wn=vt(K,P.doc.direction);if(wn){var Rn=(P.options.lineWrapping?Nr:dr)(P,K,$,Me,wn,re,ue);cr=Rn.level!=1,zt=cr?Rn.from:Rn.to-1,or=cr?Rn.to:Rn.from-1}var ui=null,hi=null,Wi=Se(function(ko){var To=mi(P,Me,ko);return To.top+=gt,To.bottom+=gt,ft(To,re,ue,!1)?(To.top<=ue&&To.left<=re&&(ui=ko,hi=To),!0):!1},zt,or),ia,xa,ba=!1;if(hi){var va=re-hi.left<hi.right-re,Ua=va==cr;Wi=ui+(Ua?0:1),xa=Ua?"after":"before",ia=va?hi.left:hi.right}else{!cr&&(Wi==or||Wi==zt)&&Wi++,xa=Wi==0?"after":Wi==K.text.length?"before":mi(P,Me,Wi-(cr?1:0)).bottom+gt<=ue==cr?"after":"before";var eo=li(P,Et($,Wi,xa),"line",K,Me);ia=eo.left,ba=ue<eo.top?-1:ue>=eo.bottom?1:0}return Wi=Te(K.text,Wi,1),di($,Wi,xa,ba,re-ia)}function dr(P,K,$,re,ue,Me,gt){var zt=Se(function(Rn){var ui=ue[Rn],hi=ui.level!=1;return ft(li(P,Et($,hi?ui.to:ui.from,hi?"before":"after"),"line",K,re),Me,gt,!0)},0,ue.length-1),or=ue[zt];if(zt>0){var cr=or.level!=1,wn=li(P,Et($,cr?or.from:or.to,cr?"after":"before"),"line",K,re);ft(wn,Me,gt,!0)&&wn.top>gt&&(or=ue[zt-1])}return or}function Nr(P,K,$,re,ue,Me,gt){var zt=Ot(P,K,re,gt),or=zt.begin,cr=zt.end;/\s/.test(K.text.charAt(cr-1))&&cr--;for(var wn=null,Rn=null,ui=0;ui<ue.length;ui++){var hi=ue[ui];if(hi.from>=cr||hi.to<=or)continue;var Wi=hi.level!=1,ia=mi(P,re,Wi?Math.min(cr,hi.to)-1:Math.max(or,hi.from)).right,xa=ia<Me?Me-ia+1e9:ia-Me;(!wn||Rn>xa)&&(wn=hi,Rn=xa)}return wn||(wn=ue[ue.length-1]),wn.from<or&&(wn={from:or,to:wn.to,level:wn.level}),wn.to>cr&&(wn={from:wn.from,to:cr,level:wn.level}),wn}var Zr;function pn(P){if(P.cachedTextHeight!=null)return P.cachedTextHeight;if(Zr==null){Zr=I("pre",null,"CodeMirror-line-like");for(var K=0;K<49;++K)Zr.appendChild(document.createTextNode("x")),Zr.appendChild(I("br"));Zr.appendChild(document.createTextNode("x"))}_(P.measure,Zr);var $=Zr.offsetHeight/50;return $>3&&(P.cachedTextHeight=$),S(P.measure),$||1}function _n(P){if(P.cachedCharWidth!=null)return P.cachedCharWidth;var K=I("span","xxxxxxxxxx"),$=I("pre",[K],"CodeMirror-line-like");_(P.measure,$);var re=K.getBoundingClientRect(),ue=(re.right-re.left)/10;return ue>2&&(P.cachedCharWidth=ue),ue||10}function Dn(P){for(var K=P.display,$={},re={},ue=K.gutters.clientLeft,Me=K.gutters.firstChild,gt=0;Me;Me=Me.nextSibling,++gt){var zt=P.display.gutterSpecs[gt].className;$[zt]=Me.offsetLeft+Me.clientLeft+ue,re[zt]=Me.clientWidth}return{fixedPos:Zn(K),gutterTotalWidth:K.gutters.offsetWidth,gutterLeft:$,gutterWidth:re,wrapperWidth:K.wrapper.clientWidth}}function Zn(P){return P.scroller.getBoundingClientRect().left-P.sizer.getBoundingClientRect().left}function ii(P){var K=pn(P.display),$=P.options.lineWrapping,re=$&&Math.max(5,P.display.scroller.clientWidth/_n(P.display)-3);return function(ue){if(Gr(P.doc,ue))return 0;var Me=0;if(ue.widgets)for(var gt=0;gt<ue.widgets.length;gt++)ue.widgets[gt].height&&(Me+=ue.widgets[gt].height);return $?Me+(Math.ceil(ue.text.length/re)||1)*K:Me+K}}function pi(P){var K=P.doc,$=ii(P);K.iter(function(re){var ue=$(re);ue!=re.height&&Rt(re,ue)})}function ri(P,K,$,re){var ue=P.display;if(!$&&Ce(K).getAttribute("cm-not-content")=="true")return null;var Me,gt,zt=ue.lineSpace.getBoundingClientRect();try{Me=K.clientX-zt.left,gt=K.clientY-zt.top}catch(Rn){return null}var or=Jt(P,Me,gt),cr;if(re&&or.xRel>0&&(cr=Pe(P.doc,or.line).text).length==or.ch){var wn=W(cr,cr.length,P.options.tabSize)-cr.length;or=Et(or.line,Math.max(0,Math.round((Me-rn(P.display).left)/_n(P.display))-wn))}return or}function ji(P,K){if(K>=P.display.viewTo)return null;if(K-=P.display.viewFrom,K<0)return null;for(var $=P.display.view,re=0;re<$.length;re++)if(K-=$[re].size,K<0)return re}function ei(P,K,$,re){K==null&&(K=P.doc.first),$==null&&($=P.doc.first+P.doc.size),re||(re=0);var ue=P.display;if(re&&$<ue.viewTo&&(ue.updateLineNumbers==null||ue.updateLineNumbers>K)&&(ue.updateLineNumbers=K),P.curOp.viewChanged=!0,K>=ue.viewTo)We&&Nt(P.doc,K)<ue.viewTo&&Yt(P);else if($<=ue.viewFrom)We&&wr(P.doc,$+re)>ue.viewFrom?Yt(P):(ue.viewFrom+=re,ue.viewTo+=re);else if(K<=ue.viewFrom&&$>=ue.viewTo)Yt(P);else if(K<=ue.viewFrom){var Me=vr(P,$,$+re,1);Me?(ue.view=ue.view.slice(Me.index),ue.viewFrom=Me.lineN,ue.viewTo+=re):Yt(P)}else if($>=ue.viewTo){var gt=vr(P,K,K,-1);gt?(ue.view=ue.view.slice(0,gt.index),ue.viewTo=gt.lineN):Yt(P)}else{var zt=vr(P,K,K,-1),or=vr(P,$,$+re,1);zt&&or?(ue.view=ue.view.slice(0,zt.index).concat(bi(P,zt.lineN,or.lineN)).concat(ue.view.slice(or.index)),ue.viewTo+=re):Yt(P)}var cr=ue.externalMeasured;cr&&($<cr.lineN?cr.lineN+=re:K<cr.lineN+cr.size&&(ue.externalMeasured=null))}function $e(P,K,$){P.curOp.viewChanged=!0;var re=P.display,ue=P.display.externalMeasured;if(ue&&K>=ue.lineN&&K<ue.lineN+ue.size&&(re.externalMeasured=null),K<re.viewFrom||K>=re.viewTo)return;var Me=re.view[ji(P,K)];if(Me.node==null)return;var gt=Me.changes||(Me.changes=[]);z(gt,$)==-1&&gt.push($)}function Yt(P){P.display.viewFrom=P.display.viewTo=P.doc.first,P.display.view=[],P.display.viewOffset=0}function vr(P,K,$,re){var ue=ji(P,K),Me,gt=P.display.view;if(!We||$==P.doc.first+P.doc.size)return{index:ue,lineN:$};for(var zt=P.display.viewFrom,or=0;or<ue;or++)zt+=gt[or].size;if(zt!=K){if(re>0){if(ue==gt.length-1)return null;Me=zt+gt[ue].size-K,ue++}else Me=zt-K;K+=Me,$+=Me}for(;Nt(P.doc,$)!=$;){if(ue==(re<0?0:gt.length-1))return null;$+=re*gt[ue-(re<0?1:0)].size,ue+=re}return{index:ue,lineN:$}}function fr(P,K,$){var re=P.display,ue=re.view;ue.length==0||K>=re.viewTo||$<=re.viewFrom?(re.view=bi(P,K,$),re.viewFrom=K):(re.viewFrom>K?re.view=bi(P,K,re.viewFrom).concat(re.view):re.viewFrom<K&&(re.view=re.view.slice(ji(P,K))),re.viewFrom=K,re.viewTo<$?re.view=re.view.concat(bi(P,re.viewTo,$)):re.viewTo>$&&(re.view=re.view.slice(0,ji(P,$)))),re.viewTo=$}function Xr(P){for(var K=P.display.view,$=0,re=0;re<K.length;re++){var ue=K[re];!ue.hidden&&(!ue.node||ue.changes)&&++$}return $}function Fr(P){P.display.input.showSelection(P.display.input.prepareSelection())}function hr(P,K){K===void 0&&(K=!0);for(var $=P.doc,re={},ue=re.cursors=document.createDocumentFragment(),Me=re.selection=document.createDocumentFragment(),gt=0;gt<$.sel.ranges.length;gt++){if(!K&&gt==$.sel.primIndex)continue;var zt=$.sel.ranges[gt];if(zt.from().line>=P.display.viewTo||zt.to().line<P.display.viewFrom)continue;var or=zt.empty();(or||P.options.showCursorWhenSelecting)&&An(P,zt.head,ue),or||mn(P,zt,Me)}return re}function An(P,K,$){var re=li(P,K,"div",null,null,!P.options.singleCursorHeightPerLine),ue=$.appendChild(I("div","\xA0","CodeMirror-cursor"));if(ue.style.left=re.left+"px",ue.style.top=re.top+"px",ue.style.height=Math.max(0,re.bottom-re.top)*P.options.cursorHeight+"px",re.other){var Me=$.appendChild(I("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Me.style.display="",Me.style.left=re.other.left+"px",Me.style.top=re.other.top+"px",Me.style.height=(re.other.bottom-re.other.top)*.85+"px"}}function br(P,K){return P.top-K.top||P.left-K.left}function mn(P,K,$){var re=P.display,ue=P.doc,Me=document.createDocumentFragment(),gt=rn(P.display),zt=gt.left,or=Math.max(re.sizerWidth,en(P)-re.sizer.offsetLeft)-gt.right,cr=ue.direction=="ltr";function wn(Ua,eo,ko,To){eo<0&&(eo=0),eo=Math.round(eo),To=Math.round(To),Me.appendChild(I("div",null,"CodeMirror-selected","position: absolute; left: "+Ua+`px;
top: `+eo+"px; width: "+(ko==null?or-Ua:ko)+`px;
height: `+(To-eo)+"px"))}function Rn(Ua,eo,ko){var To=Pe(ue,Ua),ns=To.text.length,Ss,Hs;function Ls(tl,xl){return ni(P,Et(Ua,tl),"div",To,xl)}function ul(tl,xl,cl){var Oa=yr(P,To,null,tl),ks=xl=="ltr"==(cl=="after")?"left":"right",Ps=cl=="after"?Oa.begin:Oa.end-(/\s/.test(To.text.charAt(Oa.end-1))?2:1);return Ls(Ps,ks)[ks]}var Sl=vt(To,ue.direction);return le(Sl,eo||0,ko==null?ns:ko,function(tl,xl,cl,Oa){var ks=cl=="ltr",Ps=Ls(tl,ks?"left":"right"),Ys=Ls(xl-1,ks?"right":"left"),Lu=eo==null&&tl==0,gs=ko==null&&xl==ns,ts=Oa==0,zl=!Sl||Oa==Sl.length-1;if(Ys.top-Ps.top<=3){var yl=(cr?Lu:gs)&&ts,Nu=(cr?gs:Lu)&&zl,du=yl?zt:(ks?Ps:Ys).left,Vl=Nu?or:(ks?Ys:Ps).right;wn(du,Ps.top,Vl-du,Ps.bottom)}else{var Su,Il,hu,ju;ks?(Su=cr&&Lu&&ts?zt:Ps.left,Il=cr?or:ul(tl,cl,"before"),hu=cr?zt:ul(xl,cl,"after"),ju=cr&&gs&&zl?or:Ys.right):(Su=cr?ul(tl,cl,"before"):zt,Il=!cr&&Lu&&ts?or:Ps.right,hu=!cr&&gs&&zl?zt:Ys.left,ju=cr?ul(xl,cl,"after"):or),wn(Su,Ps.top,Il-Su,Ps.bottom),Ps.bottom<Ys.top&&wn(zt,Ps.bottom,null,Ys.top),wn(hu,Ys.top,ju-hu,Ys.bottom)}(!Ss||br(Ps,Ss)<0)&&(Ss=Ps),br(Ys,Ss)<0&&(Ss=Ys),(!Hs||br(Ps,Hs)<0)&&(Hs=Ps),br(Ys,Hs)<0&&(Hs=Ys)}),{start:Ss,end:Hs}}var ui=K.from(),hi=K.to();if(ui.line==hi.line)Rn(ui.line,ui.ch,hi.ch);else{var Wi=Pe(ue,ui.line),ia=Pe(ue,hi.line),xa=kr(Wi)==kr(ia),ba=Rn(ui.line,ui.ch,xa?Wi.text.length+1:null).end,va=Rn(hi.line,xa?0:null,hi.ch).start;xa&&(ba.top<va.top-2?(wn(ba.right,ba.top,null,ba.bottom),wn(zt,va.top,va.left,va.bottom)):wn(ba.right,ba.top,va.left-ba.right,ba.bottom)),ba.bottom<va.top&&wn(zt,ba.bottom,null,va.top)}$.appendChild(Me)}function Kn(P){if(!P.state.focused)return;var K=P.display;clearInterval(K.blinker);var $=!0;K.cursorDiv.style.visibility="",P.options.cursorBlinkRate>0?K.blinker=setInterval(function(){P.hasFocus()||Un(P),K.cursorDiv.style.visibility=($=!$)?"":"hidden"},P.options.cursorBlinkRate):P.options.cursorBlinkRate<0&&(K.cursorDiv.style.visibility="hidden")}function Wn(P){P.state.focused||(P.display.input.focus(),$n(P))}function Ln(P){P.state.delayingBlurEvent=!0,setTimeout(function(){P.state.delayingBlurEvent&&(P.state.delayingBlurEvent=!1,Un(P))},100)}function $n(P,K){if(P.state.delayingBlurEvent&&(P.state.delayingBlurEvent=!1),P.options.readOnly=="nocursor")return;P.state.focused||(St(P,"focus",P,K),P.state.focused=!0,F(P.display.wrapper,"CodeMirror-focused"),!P.curOp&&P.display.selForContextMenu!=P.doc.sel&&(P.display.input.reset(),o&&setTimeout(function(){return P.display.input.reset(!0)},20)),P.display.input.receivedFocus()),Kn(P)}function Un(P,K){if(P.state.delayingBlurEvent)return;P.state.focused&&(St(P,"blur",P,K),P.state.focused=!1,w(P.display.wrapper,"CodeMirror-focused")),clearInterval(P.display.blinker),setTimeout(function(){P.state.focused||(P.display.shift=!1)},150)}function ti(P){for(var K=P.display,$=K.lineDiv.offsetTop,re=0;re<K.view.length;re++){var ue=K.view[re],Me=P.options.lineWrapping,gt=void 0,zt=0;if(ue.hidden)continue;if(f&&c<8){var or=ue.node.offsetTop+ue.node.offsetHeight;gt=or-$,$=or}else{var cr=ue.node.getBoundingClientRect();gt=cr.bottom-cr.top,!Me&&ue.text.firstChild&&(zt=ue.text.firstChild.getBoundingClientRect().right-cr.left-1)}var wn=ue.line.height-gt;if((wn>.005||wn<-.005)&&(Rt(ue.line,gt),Xn(ue.line),ue.rest))for(var Rn=0;Rn<ue.rest.length;Rn++)Xn(ue.rest[Rn]);if(zt>P.display.sizerWidth){var ui=Math.ceil(zt/_n(P.display));ui>P.display.maxLineLength&&(P.display.maxLineLength=ui,P.display.maxLine=ue.line,P.display.maxLineChanged=!0)}}}function Xn(P){if(P.widgets)for(var K=0;K<P.widgets.length;++K){var $=P.widgets[K],re=$.node.parentNode;re&&($.height=re.offsetHeight)}}function wi(P,K,$){var re=$&&$.top!=null?Math.max(0,$.top):P.scroller.scrollTop;re=Math.floor(re-Ds(P));var ue=$&&$.bottom!=null?$.bottom:re+P.wrapper.clientHeight,Me=Lt(K,re),gt=Lt(K,ue);if($&&$.ensure){var zt=$.ensure.from.line,or=$.ensure.to.line;zt<Me?(Me=zt,gt=Lt(K,qr(Pe(K,zt))+P.wrapper.clientHeight)):Math.min(or,K.lastLine())>=gt&&(Me=Lt(K,qr(Pe(K,or))-P.wrapper.clientHeight),gt=or)}return{from:Me,to:Math.max(gt,Me+1)}}function Ei(P,K){if(Mt(P,"scrollCursorIntoView"))return;var $=P.display,re=$.sizer.getBoundingClientRect(),ue=null;if(K.top+re.top<0?ue=!0:K.bottom+re.top>(window.innerHeight||document.documentElement.clientHeight)&&(ue=!1),ue!=null&&!t){var Me=I("div","\u200B",null,`position: absolute;
top: `+(K.top-$.viewOffset-Ds(P.display))+`px;
height: `+(K.bottom-K.top+Tn(P)+$.barHeight)+`px;
left: `+K.left+"px; width: "+Math.max(2,K.right-K.left)+"px;");P.display.lineSpace.appendChild(Me),Me.scrollIntoView(ue),P.display.lineSpace.removeChild(Me)}}function Zi(P,K,$,re){re==null&&(re=0);var ue;!P.options.lineWrapping&&K==$&&(K=K.ch?Et(K.line,K.sticky=="before"?K.ch-1:K.ch,"after"):K,$=K.sticky=="before"?Et(K.line,K.ch+1,"before"):K);for(var Me=0;Me<5;Me++){var gt=!1,zt=li(P,K),or=!$||$==K?zt:li(P,$);ue={left:Math.min(zt.left,or.left),top:Math.min(zt.top,or.top)-re,right:Math.max(zt.left,or.left),bottom:Math.max(zt.bottom,or.bottom)+re};var cr=Xi(P,ue),wn=P.doc.scrollTop,Rn=P.doc.scrollLeft;if(cr.scrollTop!=null&&(aa(P,cr.scrollTop),Math.abs(P.doc.scrollTop-wn)>1&&(gt=!0)),cr.scrollLeft!=null&&(Aa(P,cr.scrollLeft),Math.abs(P.doc.scrollLeft-Rn)>1&&(gt=!0)),!gt)break}return ue}function ua(P,K){var $=Xi(P,K);$.scrollTop!=null&&aa(P,$.scrollTop),$.scrollLeft!=null&&Aa(P,$.scrollLeft)}function Xi(P,K){var $=P.display,re=pn(P.display);K.top<0&&(K.top=0);var ue=P.curOp&&P.curOp.scrollTop!=null?P.curOp.scrollTop:$.scroller.scrollTop,Me=ur(P),gt={};K.bottom-K.top>Me&&(K.bottom=K.top+Me);var zt=P.doc.height+Dr($),or=K.top<re,cr=K.bottom>zt-re;if(K.top<ue)gt.scrollTop=or?0:K.top;else if(K.bottom>ue+Me){var wn=Math.min(K.top,(cr?zt:K.bottom)-Me);wn!=ue&&(gt.scrollTop=wn)}var Rn=P.options.fixedGutter?0:$.gutters.offsetWidth,ui=P.curOp&&P.curOp.scrollLeft!=null?P.curOp.scrollLeft:$.scroller.scrollLeft-Rn,hi=en(P)-$.gutters.offsetWidth,Wi=K.right-K.left>hi;return Wi&&(K.right=K.left+hi),K.left<10?gt.scrollLeft=0:K.left<ui?gt.scrollLeft=Math.max(0,K.left+Rn-(Wi?0:10)):K.right>hi+ui-3&&(gt.scrollLeft=K.right+(Wi?0:10)-hi),gt}function Gi(P,K){if(K==null)return;Ca(P),P.curOp.scrollTop=(P.curOp.scrollTop==null?P.doc.scrollTop:P.curOp.scrollTop)+K}function wa(P){Ca(P);var K=P.getCursor();P.curOp.scrollToPos={from:K,to:K,margin:P.options.cursorScrollMargin}}function na(P,K,$){(K!=null||$!=null)&&Ca(P),K!=null&&(P.curOp.scrollLeft=K),$!=null&&(P.curOp.scrollTop=$)}function mo(P,K){Ca(P),P.curOp.scrollToPos=K}function Ca(P){var K=P.curOp.scrollToPos;if(K){P.curOp.scrollToPos=null;var $=fi(P,K.from),re=fi(P,K.to);qi(P,$,re,K.margin)}}function qi(P,K,$,re){var ue=Xi(P,{left:Math.min(K.left,$.left),top:Math.min(K.top,$.top)-re,right:Math.max(K.right,$.right),bottom:Math.max(K.bottom,$.bottom)+re});na(P,ue.scrollLeft,ue.scrollTop)}function aa(P,K){if(Math.abs(P.doc.scrollTop-K)<2)return;C||vo(P,{top:K}),$i(P,K,!0),C&&vo(P),Ea(P,100)}function $i(P,K,$){if(K=Math.max(0,Math.min(P.display.scroller.scrollHeight-P.display.scroller.clientHeight,K)),P.display.scroller.scrollTop==K&&!$)return;P.doc.scrollTop=K,P.display.scrollbars.setScrollTop(K),P.display.scroller.scrollTop!=K&&(P.display.scroller.scrollTop=K)}function Aa(P,K,$,re){if(K=Math.max(0,Math.min(K,P.display.scroller.scrollWidth-P.display.scroller.clientWidth)),($?K==P.doc.scrollLeft:Math.abs(P.doc.scrollLeft-K)<2)&&!re)return;P.doc.scrollLeft=K,Ja(P),P.display.scroller.scrollLeft!=K&&(P.display.scroller.scrollLeft=K),P.display.scrollbars.setScrollLeft(K)}function ya(P){var K=P.display,$=K.gutters.offsetWidth,re=Math.round(P.doc.height+Dr(P.display));return{clientHeight:K.scroller.clientHeight,viewHeight:K.wrapper.clientHeight,scrollWidth:K.scroller.scrollWidth,clientWidth:K.scroller.clientWidth,viewWidth:K.wrapper.clientWidth,barLeft:P.options.fixedGutter?$:0,docHeight:re,scrollHeight:re+Tn(P)+K.barHeight,nativeBarWidth:K.nativeBarWidth,gutterWidth:$}}var Ha=function(K,$,re){this.cm=re;var ue=this.vert=I("div",[I("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Me=this.horiz=I("div",[I("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");ue.tabIndex=Me.tabIndex=-1,K(ue),K(Me),Oe(ue,"scroll",function(){ue.clientHeight&&$(ue.scrollTop,"vertical")}),Oe(Me,"scroll",function(){Me.clientWidth&&$(Me.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&c<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ha.prototype.update=function(P){var K=P.scrollWidth>P.clientWidth+1,$=P.scrollHeight>P.clientHeight+1,re=P.nativeBarWidth;if($){this.vert.style.display="block",this.vert.style.bottom=K?re+"px":"0";var ue=P.viewHeight-(K?re:0);this.vert.firstChild.style.height=Math.max(0,P.scrollHeight-P.clientHeight+ue)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(K){this.horiz.style.display="block",this.horiz.style.right=$?re+"px":"0",this.horiz.style.left=P.barLeft+"px";var Me=P.viewWidth-P.barLeft-($?re:0);this.horiz.firstChild.style.width=Math.max(0,P.scrollWidth-P.clientWidth+Me)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&P.clientHeight>0&&(re==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:$?re:0,bottom:K?re:0}},Ha.prototype.setScrollLeft=function(P){this.horiz.scrollLeft!=P&&(this.horiz.scrollLeft=P),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ha.prototype.setScrollTop=function(P){this.vert.scrollTop!=P&&(this.vert.scrollTop=P),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ha.prototype.zeroWidthHack=function(){var P=h&&!l?"12px":"18px";this.horiz.style.height=this.vert.style.width=P,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new V,this.disableVert=new V},Ha.prototype.enableZeroWidthBar=function(P,K,$){P.style.pointerEvents="auto";function re(){var ue=P.getBoundingClientRect(),Me=$=="vert"?document.elementFromPoint(ue.right-1,(ue.top+ue.bottom)/2):document.elementFromPoint((ue.right+ue.left)/2,ue.bottom-1);Me!=P?P.style.pointerEvents="none":K.set(1e3,re)}K.set(1e3,re)},Ha.prototype.clear=function(){var P=this.horiz.parentNode;P.removeChild(this.horiz),P.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function ra(P,K){K||(K=ya(P));var $=P.display.barWidth,re=P.display.barHeight;_a(P,K);for(var ue=0;ue<4&&$!=P.display.barWidth||re!=P.display.barHeight;ue++)$!=P.display.barWidth&&P.options.lineWrapping&&ti(P),_a(P,ya(P)),$=P.display.barWidth,re=P.display.barHeight}function _a(P,K){var $=P.display,re=$.scrollbars.update(K);$.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&&P.options.coverGutterNextToScrollbar&&P.options.fixedGutter?($.gutterFiller.style.display="block",$.gutterFiller.style.height=re.bottom+"px",$.gutterFiller.style.width=K.gutterWidth+"px"):$.gutterFiller.style.display=""}var Ka={native:Ha,null:ta};function bo(P){P.display.scrollbars&&(P.display.scrollbars.clear(),P.display.scrollbars.addClass&&w(P.display.wrapper,P.display.scrollbars.addClass)),P.display.scrollbars=new Ka[P.options.scrollbarStyle](function(K){P.display.wrapper.insertBefore(K,P.display.scrollbarFiller),Oe(K,"mousedown",function(){P.state.focused&&setTimeout(function(){return P.display.input.focus()},0)}),K.setAttribute("cm-not-content","true")},function(K,$){$=="horizontal"?Aa(P,K):aa(P,K)},P),P.display.scrollbars.addClass&&F(P.display.wrapper,P.display.scrollbars.addClass)}var ga=0;function go(P){P.curOp={cm:P,viewChanged:!1,startHeight:P.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ga},zi(P.curOp)}function Sa(P){var K=P.curOp;K&&Yi(K,function($){for(var re=0;re<$.ops.length;re++)$.ops[re].cm.curOp=null;Va($)})}function Va(P){for(var K=P.ops,$=0;$<K.length;$++)uo(K[$]);for(var re=0;re<K.length;re++)No(K[re]);for(var ue=0;ue<K.length;ue++)Po(K[ue]);for(var Me=0;Me<K.length;Me++)to(K[Me]);for(var gt=0;gt<K.length;gt++)Uo(K[gt])}function uo(P){var K=P.cm,$=K.display;rs(K),P.updateMaxLine&&Gn(K),P.mustUpdate=P.viewChanged||P.forceUpdate||P.scrollTop!=null||P.scrollToPos&&(P.scrollToPos.from.line<$.viewFrom||P.scrollToPos.to.line>=$.viewTo)||$.maxLineChanged&&K.options.lineWrapping,P.update=P.mustUpdate&&new za(K,P.mustUpdate&&{top:P.scrollTop,ensure:P.scrollToPos},P.forceUpdate)}function No(P){P.updatedDisplay=P.mustUpdate&&Qo(P.cm,P.update)}function Po(P){var K=P.cm,$=K.display;P.updatedDisplay&&ti(K),P.barMeasure=ya(K),$.maxLineChanged&&!K.options.lineWrapping&&(P.adjustWidthTo=Li(K,$.maxLine,$.maxLine.text.length).left+3,K.display.sizerWidth=P.adjustWidthTo,P.barMeasure.scrollWidth=Math.max($.scroller.clientWidth,$.sizer.offsetLeft+P.adjustWidthTo+Tn(K)+K.display.barWidth),P.maxScrollLeft=Math.max(0,$.sizer.offsetLeft+P.adjustWidthTo-en(K))),(P.updatedDisplay||P.selectionChanged)&&(P.preparedSelection=$.input.prepareSelection())}function to(P){var K=P.cm;P.adjustWidthTo!=null&&(K.display.sizer.style.minWidth=P.adjustWidthTo+"px",P.maxScrollLeft<K.doc.scrollLeft&&Aa(K,Math.min(K.display.scroller.scrollLeft,P.maxScrollLeft),!0),K.display.maxLineChanged=!1);var $=P.focus&&P.focus==D();P.preparedSelection&&K.display.input.showSelection(P.preparedSelection,$),(P.updatedDisplay||P.startHeight!=K.doc.height)&&ra(K,P.barMeasure),P.updatedDisplay&&Fa(K,P.barMeasure),P.selectionChanged&&Kn(K),K.state.focused&&P.updateInput&&K.display.input.reset(P.typing),$&&Wn(P.cm)}function Uo(P){var K=P.cm,$=K.display,re=K.doc;if(P.updatedDisplay&&Yo(K,P.update),$.wheelStartX!=null&&(P.scrollTop!=null||P.scrollLeft!=null||P.scrollToPos)&&($.wheelStartX=$.wheelStartY=null),P.scrollTop!=null&&$i(K,P.scrollTop,P.forceScroll),P.scrollLeft!=null&&Aa(K,P.scrollLeft,!0,!0),P.scrollToPos){var ue=Zi(K,ut(re,P.scrollToPos.from),ut(re,P.scrollToPos.to),P.scrollToPos.margin);Ei(K,ue)}var Me=P.maybeHiddenMarkers,gt=P.maybeUnhiddenMarkers;if(Me)for(var zt=0;zt<Me.length;++zt)Me[zt].lines.length||St(Me[zt],"hide");if(gt)for(var or=0;or<gt.length;++or)gt[or].lines.length&&St(gt[or],"unhide");$.wrapper.offsetHeight&&(re.scrollTop=K.display.scroller.scrollTop),P.changeObjs&&St(K,"changes",K,P.changeObjs),P.update&&P.update.finish()}function co(P,K){if(P.curOp)return K();go(P);try{return K()}finally{Sa(P)}}function fa(P,K){return function(){if(P.curOp)return K.apply(P,arguments);go(P);try{return K.apply(P,arguments)}finally{Sa(P)}}}function ro(P){return function(){if(this.curOp)return P.apply(this,arguments);go(this);try{return P.apply(this,arguments)}finally{Sa(this)}}}function Wa(P){return function(){var K=this.cm;if(!K||K.curOp)return P.apply(this,arguments);go(K);try{return P.apply(this,arguments)}finally{Sa(K)}}}function Ea(P,K){P.doc.highlightFrontier<P.display.viewTo&&P.state.highlight.set(K,B(Jr,P))}function Jr(P){var K=P.doc;if(K.highlightFrontier>=P.display.viewTo)return;var $=+new Date+P.options.workTime,re=Mn(P,K.highlightFrontier),ue=[];K.iter(re.line,Math.min(K.first+K.size,P.display.viewTo+500),function(Me){if(re.line>=P.display.viewFrom){var gt=Me.styles,zt=Me.text.length>P.options.maxHighlightLength?jt(K.mode,re.state):null,or=tn(P,Me,re,!0);zt&&(re.state=zt),Me.styles=or.styles;var cr=Me.styleClasses,wn=or.classes;wn?Me.styleClasses=wn:cr&&(Me.styleClasses=null);for(var Rn=!gt||gt.length!=Me.styles.length||cr!=wn&&(!cr||!wn||cr.bgClass!=wn.bgClass||cr.textClass!=wn.textClass),ui=0;!Rn&&ui<gt.length;++ui)Rn=gt[ui]!=Me.styles[ui];Rn&&ue.push(re.line),Me.stateAfter=re.save(),re.nextLine()}else Me.text.length<=P.options.maxHighlightLength&&Yn(P,Me.text,re),Me.stateAfter=re.line%5==0?re.save():null,re.nextLine();if(+new Date>$)return Ea(P,P.options.workDelay),!0}),K.highlightFrontier=re.line,K.modeFrontier=Math.max(K.modeFrontier,re.line),ue.length&&co(P,function(){for(var Me=0;Me<ue.length;Me++)$e(P,ue[Me],"text")})}var za=function(K,$,re){var ue=K.display;this.viewport=$,this.visible=wi(ue,K.doc,$),this.editorIsHidden=!ue.wrapper.offsetWidth,this.wrapperHeight=ue.wrapper.clientHeight,this.wrapperWidth=ue.wrapper.clientWidth,this.oldDisplayWidth=en(K),this.force=re,this.dims=Dn(K),this.events=[]};za.prototype.signal=function(P,K){It(P,K)&&this.events.push(arguments)},za.prototype.finish=function(){for(var P=0;P<this.events.length;P++)St.apply(null,this.events[P])};function rs(P){var K=P.display;!K.scrollbarsClipped&&K.scroller.offsetWidth&&(K.nativeBarWidth=K.scroller.offsetWidth-K.scroller.clientWidth,K.heightForcer.style.height=Tn(P)+"px",K.sizer.style.marginBottom=-K.nativeBarWidth+"px",K.sizer.style.borderRightWidth=Tn(P)+"px",K.scrollbarsClipped=!0)}function Vo(P){if(P.hasFocus())return null;var K=D();if(!K||!R(P.display.lineDiv,K))return null;var $={activeElt:K};if(window.getSelection){var re=window.getSelection();re.anchorNode&&re.extend&&R(P.display.lineDiv,re.anchorNode)&&($.anchorNode=re.anchorNode,$.anchorOffset=re.anchorOffset,$.focusNode=re.focusNode,$.focusOffset=re.focusOffset)}return $}function Go(P){if(!P||!P.activeElt||P.activeElt==D())return;if(P.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(P.activeElt.nodeName)&&P.anchorNode&&R(document.body,P.anchorNode)&&R(document.body,P.focusNode)){var K=window.getSelection(),$=document.createRange();$.setEnd(P.anchorNode,P.anchorOffset),$.collapse(!1),K.removeAllRanges(),K.addRange($),K.extend(P.focusNode,P.focusOffset)}}function Qo(P,K){var $=P.display,re=P.doc;if(K.editorIsHidden)return Yt(P),!1;if(!K.force&&K.visible.from>=$.viewFrom&&K.visible.to<=$.viewTo&&($.updateLineNumbers==null||$.updateLineNumbers>=$.viewTo)&&$.renderedView==$.view&&Xr(P)==0)return!1;ho(P)&&(Yt(P),K.dims=Dn(P));var ue=re.first+re.size,Me=Math.max(K.visible.from-P.options.viewportMargin,re.first),gt=Math.min(ue,K.visible.to+P.options.viewportMargin);$.viewFrom<Me&&Me-$.viewFrom<20&&(Me=Math.max(re.first,$.viewFrom)),$.viewTo>gt&&$.viewTo-gt<20&&(gt=Math.min(ue,$.viewTo)),We&&(Me=Nt(P.doc,Me),gt=wr(P.doc,gt));var zt=Me!=$.viewFrom||gt!=$.viewTo||$.lastWrapHeight!=K.wrapperHeight||$.lastWrapWidth!=K.wrapperWidth;fr(P,Me,gt),$.viewOffset=qr(Pe(P.doc,$.viewFrom)),P.display.mover.style.top=$.viewOffset+"px";var or=Xr(P);if(!zt&&or==0&&!K.force&&$.renderedView==$.view&&($.updateLineNumbers==null||$.updateLineNumbers>=$.viewTo))return!1;var cr=Vo(P);return or>4&&($.lineDiv.style.display="none"),Io(P,$.updateLineNumbers,K.dims),or>4&&($.lineDiv.style.display=""),$.renderedView=$.view,Go(cr),S($.cursorDiv),S($.selectionDiv),$.gutters.style.height=$.sizer.style.minHeight=0,zt&&($.lastWrapHeight=K.wrapperHeight,$.lastWrapWidth=K.wrapperWidth,Ea(P,400)),$.updateLineNumbers=null,!0}function Yo(P,K){for(var $=K.viewport,re=!0;;re=!1){if(!re||!P.options.lineWrapping||K.oldDisplayWidth==en(P)){if($&&$.top!=null&&($={top:Math.min(P.doc.height+Dr(P.display)-ur(P),$.top)}),K.visible=wi(P.display,P.doc,$),K.visible.from>=P.display.viewFrom&&K.visible.to<=P.display.viewTo)break}else re&&(K.visible=wi(P.display,P.doc,$));if(!Qo(P,K))break;ti(P);var ue=ya(P);Fr(P),ra(P,ue),Fa(P,ue),K.force=!1}K.signal(P,"update",P),(P.display.viewFrom!=P.display.reportedViewFrom||P.display.viewTo!=P.display.reportedViewTo)&&(K.signal(P,"viewportChange",P,P.display.viewFrom,P.display.viewTo),P.display.reportedViewFrom=P.display.viewFrom,P.display.reportedViewTo=P.display.viewTo)}function vo(P,K){var $=new za(P,K);if(Qo(P,$)){ti(P),Yo(P,$);var re=ya(P);Fr(P),ra(P,re),Fa(P,re),$.finish()}}function Io(P,K,$){var re=P.display,ue=P.options.lineNumbers,Me=re.lineDiv,gt=Me.firstChild;function zt(Wi){var ia=Wi.nextSibling;return o&&h&&P.display.currentWheelTarget==Wi?Wi.style.display="none":Wi.parentNode.removeChild(Wi),ia}for(var or=re.view,cr=re.viewFrom,wn=0;wn<or.length;wn++){var Rn=or[wn];if(!Rn.hidden)if(!Rn.node||Rn.node.parentNode!=Me){var ui=sa(P,Rn,cr,$);Me.insertBefore(ui,gt)}else{for(;gt!=Rn.node;)gt=zt(gt);var hi=ue&&K!=null&&K<=cr&&Rn.lineNumber;Rn.changes&&(z(Rn.changes,"gutter")>-1&&(hi=!1),Da(P,Rn,cr,$)),hi&&(S(Rn.lineNumber),Rn.lineNumber.appendChild(document.createTextNode(Br(P.options,cr)))),gt=Rn.node.nextSibling}cr+=Rn.size}for(;gt;)gt=zt(gt)}function zo(P){var K=P.gutters.offsetWidth;P.sizer.style.marginLeft=K+"px"}function Fa(P,K){P.display.sizer.style.minHeight=K.docHeight+"px",P.display.heightForcer.style.top=K.docHeight+"px",P.display.gutters.style.height=K.docHeight+P.display.barHeight+Tn(P)+"px"}function Ja(P){var K=P.display,$=K.view;if(!K.alignWidgets&&(!K.gutters.firstChild||!P.options.fixedGutter))return;for(var re=Zn(K)-K.scroller.scrollLeft+P.doc.scrollLeft,ue=K.gutters.offsetWidth,Me=re+"px",gt=0;gt<$.length;gt++)if(!$[gt].hidden){P.options.fixedGutter&&($[gt].gutter&&($[gt].gutter.style.left=Me),$[gt].gutterBackground&&($[gt].gutterBackground.style.left=Me));var zt=$[gt].alignable;if(zt)for(var or=0;or<zt.length;or++)zt[or].style.left=Me}P.options.fixedGutter&&(K.gutters.style.left=re+ue+"px")}function ho(P){if(!P.options.lineNumbers)return!1;var K=P.doc,$=Br(P.options,K.first+K.size-1),re=P.display;if($.length!=re.lineNumChars){var ue=re.measure.appendChild(I("div",[I("div",$)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Me=ue.firstChild.offsetWidth,gt=ue.offsetWidth-Me;return re.lineGutter.style.width="",re.lineNumInnerWidth=Math.max(Me,re.lineGutter.offsetWidth-gt)+1,re.lineNumWidth=re.lineNumInnerWidth+gt,re.lineNumChars=re.lineNumInnerWidth?$.length:-1,re.lineGutter.style.width=re.lineNumWidth+"px",zo(P.display),!0}return!1}function Ao(P,K){for(var $=[],re=!1,ue=0;ue<P.length;ue++){var Me=P[ue],gt=null;if(typeof Me!="string"&&(gt=Me.style,Me=Me.className),Me=="CodeMirror-linenumbers")if(K)re=!0;else continue;$.push({className:Me,style:gt})}return K&&!re&&$.push({className:"CodeMirror-linenumbers",style:null}),$}function $o(P){var K=P.gutters,$=P.gutterSpecs;S(K),P.lineGutter=null;for(var re=0;re<$.length;++re){var ue=$[re],Me=ue.className,gt=ue.style,zt=K.appendChild(I("div",null,"CodeMirror-gutter "+Me));gt&&(zt.style.cssText=gt),Me=="CodeMirror-linenumbers"&&(P.lineGutter=zt,zt.style.width=(P.lineNumWidth||1)+"px")}K.style.display=$.length?"":"none",zo(P)}function ps(P){$o(P.display),ei(P),Ja(P)}function is(P,K,$,re){var ue=this;this.input=$,ue.scrollbarFiller=I("div",null,"CodeMirror-scrollbar-filler"),ue.scrollbarFiller.setAttribute("cm-not-content","true"),ue.gutterFiller=I("div",null,"CodeMirror-gutter-filler"),ue.gutterFiller.setAttribute("cm-not-content","true"),ue.lineDiv=L("div",null,"CodeMirror-code"),ue.selectionDiv=I("div",null,null,"position: relative; z-index: 1"),ue.cursorDiv=I("div",null,"CodeMirror-cursors"),ue.measure=I("div",null,"CodeMirror-measure"),ue.lineMeasure=I("div",null,"CodeMirror-measure"),ue.lineSpace=L("div",[ue.measure,ue.lineMeasure,ue.selectionDiv,ue.cursorDiv,ue.lineDiv],null,"position: relative; outline: none");var Me=L("div",[ue.lineSpace],"CodeMirror-lines");ue.mover=I("div",[Me],null,"position: relative"),ue.sizer=I("div",[ue.mover],"CodeMirror-sizer"),ue.sizerWidth=null,ue.heightForcer=I("div",null,null,"position: absolute; height: "+J+"px; width: 1px;"),ue.gutters=I("div",null,"CodeMirror-gutters"),ue.lineGutter=null,ue.scroller=I("div",[ue.sizer,ue.heightForcer,ue.gutters],"CodeMirror-scroll"),ue.scroller.setAttribute("tabIndex","-1"),ue.wrapper=I("div",[ue.scrollbarFiller,ue.gutterFiller,ue.scroller],"CodeMirror"),f&&c<8&&(ue.gutters.style.zIndex=-1,ue.scroller.style.paddingRight=0),!o&&!(C&&u)&&(ue.scroller.draggable=!0),P&&(P.appendChild?P.appendChild(ue.wrapper):P(ue.wrapper)),ue.viewFrom=ue.viewTo=K.first,ue.reportedViewFrom=ue.reportedViewTo=K.first,ue.view=[],ue.renderedView=null,ue.externalMeasured=null,ue.viewOffset=0,ue.lastWrapHeight=ue.lastWrapWidth=0,ue.updateLineNumbers=null,ue.nativeBarWidth=ue.barHeight=ue.barWidth=0,ue.scrollbarsClipped=!1,ue.lineNumWidth=ue.lineNumInnerWidth=ue.lineNumChars=null,ue.alignWidgets=!1,ue.cachedCharWidth=ue.cachedTextHeight=ue.cachedPaddingH=null,ue.maxLine=null,ue.maxLineLength=0,ue.maxLineChanged=!1,ue.wheelDX=ue.wheelDY=ue.wheelStartX=ue.wheelStartY=null,ue.shift=!1,ue.selForContextMenu=null,ue.activeTouch=null,ue.gutterSpecs=Ao(re.gutters,re.lineNumbers),$o(ue),$.init(ue)}var Za=0,Ct=null;f?Ct=-.53:C?Ct=15:i?Ct=-.7:e&&(Ct=-1/3);function Bt(P){var K=P.wheelDeltaX,$=P.wheelDeltaY;return K==null&&P.detail&&P.axis==P.HORIZONTAL_AXIS&&(K=P.detail),$==null&&P.detail&&P.axis==P.VERTICAL_AXIS?$=P.detail:$==null&&($=P.wheelDelta),{x:K,y:$}}function Wr(P){var K=Bt(P);return K.x*=Ct,K.y*=Ct,K}function Pn(P,K){var $=Bt(K),re=$.x,ue=$.y,Me=P.display,gt=Me.scroller,zt=gt.scrollWidth>gt.clientWidth,or=gt.scrollHeight>gt.clientHeight;if(!(re&&zt||ue&&or))return;if(ue&&h&&o){e:for(var cr=K.target,wn=Me.view;cr!=gt;cr=cr.parentNode)for(var Rn=0;Rn<wn.length;Rn++)if(wn[Rn].node==cr){P.display.currentWheelTarget=cr;break e}}if(re&&!C&&!n&&Ct!=null){ue&&or&&aa(P,Math.max(0,gt.scrollTop+ue*Ct)),Aa(P,Math.max(0,gt.scrollLeft+re*Ct)),(!ue||ue&&or)&&Xe(K),Me.wheelStartX=null;return}if(ue&&Ct!=null){var ui=ue*Ct,hi=P.doc.scrollTop,Wi=hi+Me.wrapper.clientHeight;ui<0?hi=Math.max(0,hi+ui-50):Wi=Math.min(P.doc.height,Wi+ui+50),vo(P,{top:hi,bottom:Wi})}Za<20&&(Me.wheelStartX==null?(Me.wheelStartX=gt.scrollLeft,Me.wheelStartY=gt.scrollTop,Me.wheelDX=re,Me.wheelDY=ue,setTimeout(function(){if(Me.wheelStartX==null)return;var ia=gt.scrollLeft-Me.wheelStartX,xa=gt.scrollTop-Me.wheelStartY,ba=xa&&Me.wheelDY&&xa/Me.wheelDY||ia&&Me.wheelDX&&ia/Me.wheelDX;if(Me.wheelStartX=Me.wheelStartY=null,!ba)return;Ct=(Ct*Za+ba)/(Za+1),++Za},200)):(Me.wheelDX+=re,Me.wheelDY+=ue))}var ht=function(K,$){this.ranges=K,this.primIndex=$};ht.prototype.primary=function(){return this.ranges[this.primIndex]},ht.prototype.equals=function(P){if(P==this)return!0;if(P.primIndex!=this.primIndex||P.ranges.length!=this.ranges.length)return!1;for(var K=0;K<this.ranges.length;K++){var $=this.ranges[K],re=P.ranges[K];if(!rt($.anchor,re.anchor)||!rt($.head,re.head))return!1}return!0},ht.prototype.deepCopy=function(){for(var P=[],K=0;K<this.ranges.length;K++)P[K]=new ne(Pt(this.ranges[K].anchor),Pt(this.ranges[K].head));return new ht(P,this.primIndex)},ht.prototype.somethingSelected=function(){for(var P=0;P<this.ranges.length;P++)if(!this.ranges[P].empty())return!0;return!1},ht.prototype.contains=function(P,K){K||(K=P);for(var $=0;$<this.ranges.length;$++){var re=this.ranges[$];if(it(K,re.from())>=0&&it(P,re.to())<=0)return $}return-1};var ne=function(K,$){this.anchor=K,this.head=$};ne.prototype.from=function(){return bt(this.anchor,this.head)},ne.prototype.to=function(){return Ht(this.anchor,this.head)},ne.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function pe(P,K,$){var re=P&&P.options.selectionsMayTouch,ue=K[$];K.sort(function(ui,hi){return it(ui.from(),hi.from())}),$=z(K,ue);for(var Me=1;Me<K.length;Me++){var gt=K[Me],zt=K[Me-1],or=it(zt.to(),gt.from());if(re&&!gt.empty()?or>0:or>=0){var cr=bt(zt.from(),gt.from()),wn=Ht(zt.to(),gt.to()),Rn=zt.empty()?gt.from()==gt.head:zt.from()==zt.head;Me<=$&&--$,K.splice(--Me,2,new ne(Rn?wn:cr,Rn?cr:wn))}}return new ht(K,$)}function be(P,K){return new ht([new ne(P,K||P)],0)}function Ue(P){return P.text?Et(P.from.line+P.text.length-1,me(P.text).length+(P.text.length==1?P.from.ch:0)):P.to}function pt(P,K){if(it(P,K.from)<0)return P;if(it(P,K.to)<=0)return Ue(K);var $=P.line+K.text.length-(K.to.line-K.from.line)-1,re=P.ch;return P.line==K.to.line&&(re+=Ue(K).ch-K.to.ch),Et($,re)}function Xt(P,K){for(var $=[],re=0;re<P.sel.ranges.length;re++){var ue=P.sel.ranges[re];$.push(new ne(pt(ue.anchor,K),pt(ue.head,K)))}return pe(P.cm,$,P.sel.primIndex)}function Or(P,K,$){return P.line==K.line?Et($.line,P.ch-K.ch+$.ch):Et($.line+(P.line-K.line),P.ch)}function Qr(P,K,$){for(var re=[],ue=Et(P.first,0),Me=ue,gt=0;gt<K.length;gt++){var zt=K[gt],or=Or(zt.from,ue,Me),cr=Or(Ue(zt),ue,Me);if(ue=zt.to,Me=cr,$=="around"){var wn=P.sel.ranges[gt],Rn=it(wn.head,wn.anchor)<0;re[gt]=new ne(Rn?cr:or,Rn?or:cr)}else re[gt]=new ne(or,or)}return new ht(re,P.sel.primIndex)}function dn(P){P.doc.mode=Ii(P.options,P.doc.modeOption),jn(P)}function jn(P){P.doc.iter(function(K){K.stateAfter&&(K.stateAfter=null),K.styles&&(K.styles=null)}),P.doc.modeFrontier=P.doc.highlightFrontier=P.doc.first,Ea(P,100),P.state.modeGen++,P.curOp&&ei(P)}function ai(P,K){return K.from.ch==0&&K.to.ch==0&&me(K.text)==""&&(!P.cm||P.cm.options.wholeLineUpdateBefore)}function Qn(P,K,$,re){function ue(va){return $?$[va]:null}function Me(va,Ua,eo){hn(va,Ua,eo,re),Hi(va,"change",va,K)}function gt(va,Ua){for(var eo=[],ko=va;ko<Ua;++ko)eo.push(new Ti(cr[ko],ue(ko),re));return eo}var zt=K.from,or=K.to,cr=K.text,wn=Pe(P,zt.line),Rn=Pe(P,or.line),ui=me(cr),hi=ue(cr.length-1),Wi=or.line-zt.line;if(K.full)P.insert(0,gt(0,cr.length)),P.remove(cr.length,P.size-cr.length);else if(ai(P,K)){var ia=gt(0,cr.length-1);Me(Rn,Rn.text,hi),Wi&&P.remove(zt.line,Wi),ia.length&&P.insert(zt.line,ia)}else if(wn==Rn)if(cr.length==1)Me(wn,wn.text.slice(0,zt.ch)+ui+wn.text.slice(or.ch),hi);else{var xa=gt(1,cr.length-1);xa.push(new Ti(ui+wn.text.slice(or.ch),hi,re)),Me(wn,wn.text.slice(0,zt.ch)+cr[0],ue(0)),P.insert(zt.line+1,xa)}else if(cr.length==1)Me(wn,wn.text.slice(0,zt.ch)+cr[0]+Rn.text.slice(or.ch),ue(0)),P.remove(zt.line+1,Wi);else{Me(wn,wn.text.slice(0,zt.ch)+cr[0],ue(0)),Me(Rn,ui+Rn.text.slice(or.ch),hi);var ba=gt(1,cr.length-1);Wi>1&&P.remove(zt.line+1,Wi-1),P.insert(zt.line+1,ba)}Hi(P,"change",P,K)}function Di(P,K,$){function re(ue,Me,gt){if(ue.linked)for(var zt=0;zt<ue.linked.length;++zt){var or=ue.linked[zt];if(or.doc==Me)continue;var cr=gt&&or.sharedHist;if($&&!cr)continue;K(or.doc,cr),re(or.doc,ue,cr)}}re(P,null,!0)}function Vi(P,K){if(K.cm)throw new Error("This document is already in use.");P.doc=K,K.cm=P,pi(P),dn(P),Ta(P),P.options.lineWrapping||Gn(P),P.options.mode=K.modeOption,ei(P)}function Ta(P){(P.doc.direction=="rtl"?F:w)(P.display.lineDiv,"CodeMirror-rtl")}function Ga(P){co(P,function(){Ta(P),ei(P)})}function ao(P){this.done=[],this.undone=[],this.undoDepth=Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=P||1}function Do(P,K){var $={from:Pt(K.from),to:Ue(K),text:at(P,K.from,K.to)};return os(P,$,K.from.line,K.to.line+1),Di(P,function(re){return os(re,$,K.from.line,K.to.line+1)},!0),$}function fo(P){for(;P.length;){var K=me(P);if(K.ranges)P.pop();else break}}function as(P,K){if(K)return fo(P.done),me(P.done);if(P.done.length&&!me(P.done).ranges)return me(P.done);if(P.done.length>1&&!P.done[P.done.length-2].ranges)return P.done.pop(),me(P.done)}function io(P,K,$,re){var ue=P.history;ue.undone.length=0;var Me=+new Date,gt,zt;if((ue.lastOp==re||ue.lastOrigin==K.origin&&K.origin&&(K.origin.charAt(0)=="+"&&ue.lastModTime>Me-(P.cm?P.cm.options.historyEventDelay:500)||K.origin.charAt(0)=="*"))&&(gt=as(ue,ue.lastOp==re)))zt=me(gt.changes),it(K.from,K.to)==0&&it(K.from,zt.to)==0?zt.to=Ue(K):gt.changes.push(Do(P,K));else{var or=me(ue.done);for((!or||!or.ranges)&&ka(P.sel,ue.done),gt={changes:[Do(P,K)],generation:ue.generation},ue.done.push(gt);ue.done.length>ue.undoDepth;)ue.done.shift(),ue.done[0].ranges||ue.done.shift()}ue.done.push($),ue.generation=++ue.maxGeneration,ue.lastModTime=ue.lastSelTime=Me,ue.lastOp=ue.lastSelOp=re,ue.lastOrigin=ue.lastSelOrigin=K.origin,zt||St(P,"historyAdded")}function Xa(P,K,$,re){var ue=K.charAt(0);return ue=="*"||ue=="+"&&$.ranges.length==re.ranges.length&&$.somethingSelected()==re.somethingSelected()&&new Date-P.history.lastSelTime<=(P.cm?P.cm.options.historyEventDelay:500)}function Ya(P,K,$,re){var ue=P.history,Me=re&&re.origin;$==ue.lastSelOp||Me&&ue.lastSelOrigin==Me&&(ue.lastModTime==ue.lastSelTime&&ue.lastOrigin==Me||Xa(P,Me,me(ue.done),K))?ue.done[ue.done.length-1]=K:ka(K,ue.done),ue.lastSelTime=+new Date,ue.lastSelOrigin=Me,ue.lastSelOp=$,re&&re.clearRedo!==!1&&fo(ue.undone)}function ka(P,K){var $=me(K);$&&$.ranges&&$.equals(P)||K.push(P)}function os(P,K,$,re){var ue=K["spans_"+P.id],Me=0;P.iter(Math.max(P.first,$),Math.min(P.first+P.size,re),function(gt){gt.markedSpans&&((ue||(ue=K["spans_"+P.id]={}))[Me]=gt.markedSpans),++Me})}function Es(P){if(!P)return null;for(var K,$=0;$<P.length;++$)P[$].marker.explicitlyCleared?K||(K=P.slice(0,$)):K&&K.push(P[$]);return K?K.length?K:null:P}function qo(P,K){var $=K["spans_"+P.id];if(!$)return null;for(var re=[],ue=0;ue<K.text.length;++ue)re.push(Es($[ue]));return re}function pa(P,K){var $=qo(P,K),re=gn(P,K);if(!$)return re;if(!re)return $;for(var ue=0;ue<$.length;++ue){var Me=$[ue],gt=re[ue];if(Me&&gt){e:for(var zt=0;zt<gt.length;++zt){for(var or=gt[zt],cr=0;cr<Me.length;++cr)if(Me[cr].marker==or.marker)continue e;Me.push(or)}}else gt&&($[ue]=gt)}return $}function ls(P,K,$){for(var re=[],ue=0;ue<P.length;++ue){var Me=P[ue];if(Me.ranges){re.push($?ht.prototype.deepCopy.call(Me):Me);continue}var gt=Me.changes,zt=[];re.push({changes:zt});for(var or=0;or<gt.length;++or){var cr=gt[or],wn=void 0;if(zt.push({from:cr.from,to:cr.to,text:cr.text}),K)for(var Rn in cr)(wn=Rn.match(/^spans_(\d+)$/))&&(z(K,Number(wn[1]))>-1&&(me(zt)[Rn]=cr[Rn],delete cr[Rn]))}}return re}function Os(P,K,$,re){if(re){var ue=P.anchor;if($){var Me=it(K,ue)<0;Me!=it($,ue)<0?(ue=K,K=$):Me!=it(K,$)<0&&(K=$)}return new ne(ue,K)}else return new ne($||K,K)}function ys(P,K,$,re,ue){ue==null&&(ue=P.cm&&(P.cm.display.shift||P.extend)),fs(P,new ht([Os(P.sel.primary(),K,$,ue)],0),re)}function ms(P,K,$){for(var re=[],ue=P.cm&&(P.cm.display.shift||P.extend),Me=0;Me<P.sel.ranges.length;Me++)re[Me]=Os(P.sel.ranges[Me],K[Me],null,ue);var gt=pe(P.cm,re,P.sel.primIndex);fs(P,gt,$)}function ws(P,K,$,re){var ue=P.sel.ranges.slice(0);ue[K]=$,fs(P,pe(P.cm,ue,P.sel.primIndex),re)}function Pl(P,K,$,re){fs(P,be(K,$),re)}function ml(P,K,$){var re={ranges:K.ranges,update:function(Me){this.ranges=[];for(var gt=0;gt<Me.length;gt++)this.ranges[gt]=new ne(ut(P,Me[gt].anchor),ut(P,Me[gt].head))},origin:$&&$.origin};return St(P,"beforeSelectionChange",P,re),P.cm&&St(P.cm,"beforeSelectionChange",P.cm,re),re.ranges!=K.ranges?pe(P.cm,re.ranges,re.ranges.length-1):K}function Ws(P,K,$){var re=P.history.done,ue=me(re);ue&&ue.ranges?(re[re.length-1]=K,_s(P,K,$)):fs(P,K,$)}function fs(P,K,$){_s(P,K,$),Ya(P,P.sel,P.cm?P.cm.curOp.id:NaN,$)}function _s(P,K,$){(It(P,"beforeSelectionChange")||P.cm&&It(P.cm,"beforeSelectionChange"))&&(K=ml(P,K,$));var re=$&&$.bias||(it(K.primary().head,P.sel.primary().head)<0?-1:1);gl(P,Us(P,K,re,!0)),!($&&$.scroll===!1)&&P.cm&&wa(P.cm)}function gl(P,K){if(K.equals(P.sel))return;P.sel=K,P.cm&&(P.cm.curOp.updateInput=1,P.cm.curOp.selectionChanged=!0,er(P.cm)),Hi(P,"cursorActivity",P)}function Bs(P){gl(P,Us(P,P.sel,null,!1))}function Us(P,K,$,re){for(var ue,Me=0;Me<K.ranges.length;Me++){var gt=K.ranges[Me],zt=K.ranges.length==P.sel.ranges.length&&P.sel.ranges[Me],or=al(P,gt.anchor,zt&&zt.anchor,$,re),cr=al(P,gt.head,zt&&zt.head,$,re);(ue||or!=gt.anchor||cr!=gt.head)&&(ue||(ue=K.ranges.slice(0,Me)),ue[Me]=new ne(or,cr))}return ue?pe(P.cm,ue,K.primIndex):K}function Qs(P,K,$,re,ue){var Me=Pe(P,K.line);if(Me.markedSpans)for(var gt=0;gt<Me.markedSpans.length;++gt){var zt=Me.markedSpans[gt],or=zt.marker,cr="selectLeft"in or?!or.selectLeft:or.inclusiveLeft,wn="selectRight"in or?!or.selectRight:or.inclusiveRight;if((zt.from==null||(cr?zt.from<=K.ch:zt.from<K.ch))&&(zt.to==null||(wn?zt.to>=K.ch:zt.to>K.ch))){if(ue&&(St(or,"beforeCursorEnter"),or.explicitlyCleared))if(Me.markedSpans){--gt;continue}else break;if(!or.atomic)continue;if($){var Rn=or.find(re<0?1:-1),ui=void 0;if((re<0?wn:cr)&&(Rn=El(P,Rn,-re,Rn&&Rn.line==K.line?Me:null)),Rn&&Rn.line==K.line&&(ui=it(Rn,$))&&(re<0?ui<0:ui>0))return Qs(P,Rn,K,re,ue)}var hi=or.find(re<0?-1:1);return(re<0?cr:wn)&&(hi=El(P,hi,re,hi.line==K.line?Me:null)),hi?Qs(P,hi,K,re,ue):null}}return K}function al(P,K,$,re,ue){var Me=re||1,gt=Qs(P,K,$,Me,ue)||!ue&&Qs(P,K,$,Me,!0)||Qs(P,K,$,-Me,ue)||!ue&&Qs(P,K,$,-Me,!0);return gt||(P.cantEdit=!0,Et(P.first,0))}function El(P,K,$,re){return $<0&&K.ch==0?K.line>P.first?ut(P,Et(K.line-1)):null:$>0&&K.ch==(re||Pe(P,K.line)).text.length?K.line<P.first+P.size-1?Et(K.line+1,0):null:new Et(K.line,K.ch+$)}function bl(P){P.setSelection(Et(P.firstLine(),0),Et(P.lastLine()),de)}function ol(P,K,$){var re={canceled:!1,from:K.from,to:K.to,text:K.text,origin:K.origin,cancel:function(){return re.canceled=!0}};return $&&(re.update=function(ue,Me,gt,zt){ue&&(re.from=ut(P,ue)),Me&&(re.to=ut(P,Me)),gt&&(re.text=gt),zt!==void 0&&(re.origin=zt)}),St(P,"beforeChange",P,re),P.cm&&St(P.cm,"beforeChange",P.cm,re),re.canceled?(P.cm&&(P.cm.curOp.updateInput=2),null):{from:re.from,to:re.to,text:re.text,origin:re.origin}}function Gs(P,K,$){if(P.cm){if(!P.cm.curOp)return fa(P.cm,Gs)(P,K,$);if(P.cm.state.suppressEdits)return}if((It(P,"beforeChange")||P.cm&&It(P.cm,"beforeChange"))&&(K=ol(P,K,!0),!K))return;var re=Ye&&!$&&un(P,K.from,K.to);if(re)for(var ue=re.length-1;ue>=0;--ue)zs(P,{from:re[ue].from,to:re[ue].to,text:ue?[""]:K.text,origin:K.origin});else zs(P,K)}function zs(P,K){if(K.text.length==1&&K.text[0]==""&&it(K.from,K.to)==0)return;var $=Xt(P,K);io(P,K,$,P.cm?P.cm.curOp.id:NaN),sl(P,K,$,gn(P,K));var re=[];Di(P,function(ue,Me){!Me&&z(re,ue.history)==-1&&(Rs(ue.history,K),re.push(ue.history)),sl(ue,K,null,gn(ue,K))})}function vl(P,K,$){var re=P.cm&&P.cm.state.suppressEdits;if(re&&!$)return;for(var ue=P.history,Me,gt=P.sel,zt=K=="undo"?ue.done:ue.undone,or=K=="undo"?ue.undone:ue.done,cr=0;cr<zt.length&&!(Me=zt[cr],$?Me.ranges&&!Me.equals(P.sel):!Me.ranges);cr++);if(cr==zt.length)return;for(ue.lastOrigin=ue.lastSelOrigin=null;;)if(Me=zt.pop(),Me.ranges){if(ka(Me,or),$&&!Me.equals(P.sel)){fs(P,Me,{clearRedo:!1});return}gt=Me}else if(re){zt.push(Me);return}else break;var wn=[];ka(gt,or),or.push({changes:wn,generation:ue.generation}),ue.generation=Me.generation||++ue.maxGeneration;for(var Rn=It(P,"beforeChange")||P.cm&&It(P.cm,"beforeChange"),ui=function(xa){var ba=Me.changes[xa];if(ba.origin=K,Rn&&!ol(P,ba,!1))return zt.length=0,{};wn.push(Do(P,ba));var va=xa?Xt(P,ba):me(zt);sl(P,ba,va,pa(P,ba)),!xa&&P.cm&&P.cm.scrollIntoView({from:ba.from,to:Ue(ba)});var Ua=[];Di(P,function(eo,ko){!ko&&z(Ua,eo.history)==-1&&(Rs(eo.history,ba),Ua.push(eo.history)),sl(eo,ba,null,pa(eo,ba))})},hi=Me.changes.length-1;hi>=0;--hi){var Wi=ui(hi);if(Wi)return Wi.v}}function Xs(P,K){if(K==0)return;if(P.first+=K,P.sel=new ht(ke(P.sel.ranges,function(ue){return new ne(Et(ue.anchor.line+K,ue.anchor.ch),Et(ue.head.line+K,ue.head.ch))}),P.sel.primIndex),P.cm){ei(P.cm,P.first,P.first-K,K);for(var $=P.cm.display,re=$.viewFrom;re<$.viewTo;re++)$e(P.cm,re,"gutter")}}function sl(P,K,$,re){if(P.cm&&!P.cm.curOp)return fa(P.cm,sl)(P,K,$,re);if(K.to.line<P.first){Xs(P,K.text.length-1-(K.to.line-K.from.line));return}if(K.from.line>P.lastLine())return;if(K.from.line<P.first){var ue=K.text.length-1-(P.first-K.from.line);Xs(P,ue),K={from:Et(P.first,0),to:Et(K.to.line+ue,K.to.ch),text:[me(K.text)],origin:K.origin}}var Me=P.lastLine();K.to.line>Me&&(K={from:K.from,to:Et(Me,Pe(P,Me).text.length),text:[K.text[0]],origin:K.origin}),K.removed=at(P,K.from,K.to),$||($=Xt(P,K)),P.cm?dl(P.cm,K,re):Qn(P,K,re),_s(P,$,de),P.cantEdit&&al(P,Et(P.firstLine(),0))&&(P.cantEdit=!1)}function dl(P,K,$){var re=P.doc,ue=P.display,Me=K.from,gt=K.to,zt=!1,or=Me.line;P.options.lineWrapping||(or=xt(kr(Pe(re,Me.line))),re.iter(or,gt.line+1,function(hi){if(hi==ue.maxLine)return zt=!0,!0})),re.sel.contains(K.from,K.to)>-1&&er(P),Qn(re,K,$,ii(P)),P.options.lineWrapping||(re.iter(or,Me.line+K.text.length,function(hi){var Wi=oi(hi);Wi>ue.maxLineLength&&(ue.maxLine=hi,ue.maxLineLength=Wi,ue.maxLineChanged=!0,zt=!1)}),zt&&(P.curOp.updateMaxLine=!0)),Fe(re,Me.line),Ea(P,400);var cr=K.text.length-(gt.line-Me.line)-1;K.full?ei(P):Me.line==gt.line&&K.text.length==1&&!ai(P.doc,K)?$e(P,Me.line,"text"):ei(P,Me.line,gt.line+1,cr);var wn=It(P,"changes"),Rn=It(P,"change");if(Rn||wn){var ui={from:Me,to:gt,text:K.text,removed:K.removed,origin:K.origin};Rn&&Hi(P,"change",P,ui),wn&&(P.curOp.changeObjs||(P.curOp.changeObjs=[])).push(ui)}P.display.selForContextMenu=null}function rl(P,K,$,re,ue){var Me;re||(re=$),it(re,$)<0&&(Me=[re,$],$=Me[0],re=Me[1]),typeof K=="string"&&(K=P.splitLines(K)),Gs(P,{from:$,to:re,text:K,origin:ue})}function nl(P,K,$,re){$<P.line?P.line+=re:K<P.line&&(P.line=K,P.ch=0)}function Tl(P,K,$,re){for(var ue=0;ue<P.length;++ue){var Me=P[ue],gt=!0;if(Me.ranges){Me.copied||(Me=P[ue]=Me.deepCopy(),Me.copied=!0);for(var zt=0;zt<Me.ranges.length;zt++)nl(Me.ranges[zt].anchor,K,$,re),nl(Me.ranges[zt].head,K,$,re);continue}for(var or=0;or<Me.changes.length;++or){var cr=Me.changes[or];if($<cr.from.line)cr.from=Et(cr.from.line+re,cr.from.ch),cr.to=Et(cr.to.line+re,cr.to.ch);else if(K<=cr.to.line){gt=!1;break}}gt||(P.splice(0,ue+1),ue=0)}}function Rs(P,K){var $=K.from.line,re=K.to.line,ue=K.text.length-(re-$)-1;Tl(P.done,$,re,ue),Tl(P.undone,$,re,ue)}function bs(P,K,$,re){var ue=K,Me=K;return typeof K=="number"?Me=Pe(P,Gt(P,K)):ue=xt(K),ue==null?null:(re(Me,ue)&&P.cm&&$e(P.cm,ue,$),Me)}function Ms(P){this.lines=P,this.parent=null;for(var K=0,$=0;$<P.length;++$)P[$].parent=this,K+=P[$].height;this.height=K}Ms.prototype={chunkSize:function(){return this.lines.length},removeInner:function(K,$){for(var re=K,ue=K+$;re<ue;++re){var Me=this.lines[re];this.height-=Me.height,_r(Me),Hi(Me,"delete")}this.lines.splice(K,$)},collapse:function(K){K.push.apply(K,this.lines)},insertInner:function(K,$,re){this.height+=re,this.lines=this.lines.slice(0,K).concat($).concat(this.lines.slice(K));for(var ue=0;ue<$.length;++ue)$[ue].parent=this},iterN:function(K,$,re){for(var ue=K+$;K<ue;++K)if(re(this.lines[K]))return!0}};function Ts(P){this.children=P;for(var K=0,$=0,re=0;re<P.length;++re){var ue=P[re];K+=ue.chunkSize(),$+=ue.height,ue.parent=this}this.size=K,this.height=$,this.parent=null}Ts.prototype={chunkSize:function(){return this.size},removeInner:function(K,$){this.size-=$;for(var re=0;re<this.children.length;++re){var ue=this.children[re],Me=ue.chunkSize();if(K<Me){var gt=Math.min($,Me-K),zt=ue.height;if(ue.removeInner(K,gt),this.height-=zt-ue.height,Me==gt&&(this.children.splice(re--,1),ue.parent=null),($-=gt)==0)break;K=0}else K-=Me}if(this.size-$<25&&(this.children.length>1||!(this.children[0]instanceof Ms))){var or=[];this.collapse(or),this.children=[new Ms(or)],this.children[0].parent=this}},collapse:function(K){for(var $=0;$<this.children.length;++$)this.children[$].collapse(K)},insertInner:function(K,$,re){this.size+=$.length,this.height+=re;for(var ue=0;ue<this.children.length;++ue){var Me=this.children[ue],gt=Me.chunkSize();if(K<=gt){if(Me.insertInner(K,$,re),Me.lines&&Me.lines.length>50){for(var zt=Me.lines.length%25+25,or=zt;or<Me.lines.length;){var cr=new Ms(Me.lines.slice(or,or+=25));Me.height-=cr.height,this.children.splice(++ue,0,cr),cr.parent=this}Me.lines=Me.lines.slice(0,zt),this.maybeSpill()}break}K-=gt}},maybeSpill:function(){if(this.children.length<=10)return;var K=this;do{var $=K.children.splice(K.children.length-5,5),re=new Ts($);if(K.parent){K.size-=re.size,K.height-=re.height;var Me=z(K.parent.children,K);K.parent.children.splice(Me+1,0,re)}else{var ue=new Ts(K.children);ue.parent=K,K.children=[ue,re],K=ue}re.parent=K.parent}while(K.children.length>10);K.parent.maybeSpill()},iterN:function(K,$,re){for(var ue=0;ue<this.children.length;++ue){var Me=this.children[ue],gt=Me.chunkSize();if(K<gt){var zt=Math.min($,gt-K);if(Me.iterN(K,zt,re))return!0;if(($-=zt)==0)break;K=0}else K-=gt}}};var Zs=function(K,$,re){if(re)for(var ue in re)re.hasOwnProperty(ue)&&(this[ue]=re[ue]);this.doc=K,this.node=$};Zs.prototype.clear=function(){var P=this.doc.cm,K=this.line.widgets,$=this.line,re=xt($);if(re==null||!K)return;for(var ue=0;ue<K.length;++ue)K[ue]==this&&K.splice(ue--,1);K.length||($.widgets=null);var Me=_o(this);Rt($,Math.max(0,$.height-Me)),P&&(co(P,function(){hl(P,$,-Me),$e(P,re,"widget")}),Hi(P,"lineWidgetCleared",P,this,re))},Zs.prototype.changed=function(){var P=this,K=this.height,$=this.doc.cm,re=this.line;this.height=null;var ue=_o(this)-K;if(!ue)return;Gr(this.doc,re)||Rt(re,re.height+ue),$&&co($,function(){$.curOp.forceUpdate=!0,hl($,re,ue),Hi($,"lineWidgetChanged",$,P,xt(re))})},_t(Zs);function hl(P,K,$){qr(K)<(P.curOp&&P.curOp.scrollTop||P.doc.scrollTop)&&Gi(P,$)}function wl(P,K,$,re){var ue=new Zs(P,$,re),Me=P.cm;return Me&&ue.noHScroll&&(Me.display.alignWidgets=!0),bs(P,K,"widget",function(gt){var zt=gt.widgets||(gt.widgets=[]);if(ue.insertAt==null?zt.push(ue):zt.splice(Math.min(zt.length-1,Math.max(0,ue.insertAt)),0,ue),ue.line=gt,Me&&!Gr(P,gt)){var or=qr(gt)<P.scrollTop;Rt(gt,gt.height+_o(ue)),or&&Gi(Me,ue.height),Me.curOp.forceUpdate=!0}return!0}),Me&&Hi(Me,"lineWidgetAdded",Me,ue,typeof K=="number"?K:xt(K)),ue}var Kl=0,il=function(K,$){this.lines=[],this.type=$,this.doc=K,this.id=++Kl};il.prototype.clear=function(){if(this.explicitlyCleared)return;var P=this.doc.cm,K=P&&!P.curOp;if(K&&go(P),It(this,"clear")){var $=this.find();$&&Hi(this,"clear",$.from,$.to)}for(var re=null,ue=null,Me=0;Me<this.lines.length;++Me){var gt=this.lines[Me],zt=$t(gt.markedSpans,this);P&&!this.collapsed?$e(P,xt(gt),"text"):P&&(zt.to!=null&&(ue=xt(gt)),zt.from!=null&&(re=xt(gt))),gt.markedSpans=Mr(gt.markedSpans,zt),zt.from==null&&this.collapsed&&!Gr(this.doc,gt)&&P&&Rt(gt,pn(P.display))}if(P&&this.collapsed&&!P.options.lineWrapping)for(var or=0;or<this.lines.length;++or){var cr=kr(this.lines[or]),wn=oi(cr);wn>P.display.maxLineLength&&(P.display.maxLine=cr,P.display.maxLineLength=wn,P.display.maxLineChanged=!0)}re!=null&&P&&this.collapsed&&ei(P,re,ue+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,P&&Bs(P.doc)),P&&Hi(P,"markerCleared",P,this,re,ue),K&&Sa(P),this.parent&&this.parent.clear()},il.prototype.find=function(P,K){P==null&&this.type=="bookmark"&&(P=1);for(var $,re,ue=0;ue<this.lines.length;++ue){var Me=this.lines[ue],gt=$t(Me.markedSpans,this);if(gt.from!=null&&($=Et(K?Me:xt(Me),gt.from),P==-1))return $;if(gt.to!=null&&(re=Et(K?Me:xt(Me),gt.to),P==1))return re}return $&&{from:$,to:re}},il.prototype.changed=function(){var P=this,K=this.find(-1,!0),$=this,re=this.doc.cm;if(!K||!re)return;co(re,function(){var ue=K.line,Me=xt(K.line),gt=Ci(re,Me);if(gt&&(so(gt),re.curOp.selectionChanged=re.curOp.forceUpdate=!0),re.curOp.updateMaxLine=!0,!Gr($.doc,ue)&&$.height!=null){var zt=$.height;$.height=null;var or=_o($)-zt;or&&Rt(ue,ue.height+or)}Hi(re,"markerChanged",re,P)})},il.prototype.attachLine=function(P){if(!this.lines.length&&this.doc.cm){var K=this.doc.cm.curOp;(!K.maybeHiddenMarkers||z(K.maybeHiddenMarkers,this)==-1)&&(K.maybeUnhiddenMarkers||(K.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(P)},il.prototype.detachLine=function(P){if(this.lines.splice(z(this.lines,P),1),!this.lines.length&&this.doc.cm){var K=this.doc.cm.curOp;(K.maybeHiddenMarkers||(K.maybeHiddenMarkers=[])).push(this)}},_t(il);function fl(P,K,$,re,ue){if(re&&re.shared)return gu(P,K,$,re,ue);if(P.cm&&!P.cm.curOp)return fa(P.cm,fl)(P,K,$,re,ue);var Me=new il(P,ue),gt=it(K,$);if(re&&j(re,Me,!1),gt>0||gt==0&&Me.clearWhenEmpty!==!1)return Me;if(Me.replacedWith&&(Me.collapsed=!0,Me.widgetNode=L("span",[Me.replacedWith],"CodeMirror-widget"),re.handleMouseEvents||Me.widgetNode.setAttribute("cm-ignore-events","true"),re.insertLeft&&(Me.widgetNode.insertLeft=!0)),Me.collapsed){if(Cn(P,K.line,K,$,Me)||K.line!=$.line&&Cn(P,$.line,K,$,Me))throw new Error("Inserting collapsed marker partially overlapping an existing one");yt()}Me.addToHistory&&io(P,{from:K,to:$,origin:"markText"},P.sel,NaN);var zt=K.line,or=P.cm,cr;if(P.iter(zt,$.line+1,function(Rn){or&&Me.collapsed&&!or.options.lineWrapping&&kr(Rn)==or.display.maxLine&&(cr=!0),Me.collapsed&&zt!=K.line&&Rt(Rn,0),Sr(Rn,new ot(Me,zt==K.line?K.ch:null,zt==$.line?$.ch:null)),++zt}),Me.collapsed&&P.iter(K.line,$.line+1,function(Rn){Gr(P,Rn)&&Rt(Rn,0)}),Me.clearOnEnter&&Oe(Me,"beforeCursorEnter",function(){return Me.clear()}),Me.readOnly&&(qe(),(P.history.done.length||P.history.undone.length)&&P.clearHistory()),Me.collapsed&&(Me.id=++Kl,Me.atomic=!0),or){if(cr&&(or.curOp.updateMaxLine=!0),Me.collapsed)ei(or,K.line,$.line+1);else if(Me.className||Me.startStyle||Me.endStyle||Me.css||Me.attributes||Me.title)for(var wn=K.line;wn<=$.line;wn++)$e(or,wn,"text");Me.atomic&&Bs(or.doc),Hi(or,"markerAdded",or,Me)}return Me}var kl=function(K,$){this.markers=K,this.primary=$;for(var re=0;re<K.length;++re)K[re].parent=this};kl.prototype.clear=function(){if(this.explicitlyCleared)return;this.explicitlyCleared=!0;for(var P=0;P<this.markers.length;++P)this.markers[P].clear();Hi(this,"clear")},kl.prototype.find=function(P,K){return this.primary.find(P,K)},_t(kl);function gu(P,K,$,re,ue){re=j(re),re.shared=!1;var Me=[fl(P,K,$,re,ue)],gt=Me[0],zt=re.widgetNode;return Di(P,function(or){zt&&(re.widgetNode=zt.cloneNode(!0)),Me.push(fl(or,ut(or,K),ut(or,$),re,ue));for(var cr=0;cr<or.linked.length;++cr)if(or.linked[cr].isParent)return;gt=me(Me)}),new kl(Me,gt)}function Jl(P){return P.findMarks(Et(P.first,0),P.clipPos(Et(P.lastLine())),function(K){return K.parent})}function Zl(P,K){for(var $=0;$<K.length;$++){var re=K[$],ue=re.find(),Me=P.clipPos(ue.from),gt=P.clipPos(ue.to);if(it(Me,gt)){var zt=fl(P,Me,gt,re.primary,re.primary.type);re.markers.push(zt),zt.parent=re}}}function $l(P){for(var K=function(ue){var Me=P[ue],gt=[Me.primary.doc];Di(Me.primary.doc,function(cr){return gt.push(cr)});for(var zt=0;zt<Me.markers.length;zt++){var or=Me.markers[zt];z(gt,or.doc)==-1&&(or.parent=null,Me.markers.splice(zt--,1))}},$=0;$<P.length;$++)K($)}var Gl=0,$s=function P(K,$,re,ue,Me){if(!(this instanceof P))return new P(K,$,re,ue,Me);re==null&&(re=0),Ts.call(this,[new Ms([new Ti("",null)])]),this.first=re,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=re;var gt=Et(re,0);this.sel=be(gt),this.history=new ao(null),this.id=++Gl,this.modeOption=$,this.lineSep=ue,this.direction=Me=="rtl"?"rtl":"ltr",this.extend=!1,typeof K=="string"&&(K=this.splitLines(K)),Qn(this,{from:gt,to:gt,text:K}),fs(this,be(gt),de)};$s.prototype=Ge(Ts.prototype,{constructor:$s,iter:function(K,$,re){re?this.iterN(K-this.first,$-K,re):this.iterN(this.first,this.first+this.size,K)},insert:function(K,$){for(var re=0,ue=0;ue<$.length;++ue)re+=$[ue].height;this.insertInner(K-this.first,$,re)},remove:function(K,$){this.removeInner(K-this.first,$)},getValue:function(K){var $=wt(this,this.first,this.first+this.size);return K===!1?$:$.join(K||this.lineSeparator())},setValue:Wa(function(P){var K=Et(this.first,0),$=this.first+this.size-1;Gs(this,{from:K,to:Et($,Pe(this,$).text.length),text:this.splitLines(P),origin:"setValue",full:!0},!0),this.cm&&na(this.cm,0,0),fs(this,be(K),de)}),replaceRange:function(K,$,re,ue){$=ut(this,$),re=re?ut(this,re):$,rl(this,K,$,re,ue)},getRange:function(K,$,re){var ue=at(this,ut(this,K),ut(this,$));return re===!1?ue:ue.join(re||this.lineSeparator())},getLine:function(K){var $=this.getLineHandle(K);return $&&$.text},getLineHandle:function(K){if(gr(this,K))return Pe(this,K)},getLineNumber:function(K){return xt(K)},getLineHandleVisualStart:function(K){return typeof K=="number"&&(K=Pe(this,K)),kr(K)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(K){return ut(this,K)},getCursor:function(K){var $=this.sel.primary(),re;return K==null||K=="head"?re=$.head:K=="anchor"?re=$.anchor:K=="end"||K=="to"||K===!1?re=$.to():re=$.from(),re},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Wa(function(P,K,$){Pl(this,ut(this,typeof P=="number"?Et(P,K||0):P),null,$)}),setSelection:Wa(function(P,K,$){Pl(this,ut(this,P),ut(this,K||P),$)}),extendSelection:Wa(function(P,K,$){ys(this,ut(this,P),K&&ut(this,K),$)}),extendSelections:Wa(function(P,K){ms(this,Ar(this,P),K)}),extendSelectionsBy:Wa(function(P,K){var $=ke(this.sel.ranges,P);ms(this,Ar(this,$),K)}),setSelections:Wa(function(P,K,$){if(!P.length)return;for(var re=[],ue=0;ue<P.length;ue++)re[ue]=new ne(ut(this,P[ue].anchor),ut(this,P[ue].head));K==null&&(K=Math.min(P.length-1,this.sel.primIndex)),fs(this,pe(this.cm,re,K),$)}),addSelection:Wa(function(P,K,$){var re=this.sel.ranges.slice(0);re.push(new ne(ut(this,P),ut(this,K||P))),fs(this,pe(this.cm,re,re.length-1),$)}),getSelection:function(K){for(var $=this.sel.ranges,re,ue=0;ue<$.length;ue++){var Me=at(this,$[ue].from(),$[ue].to());re=re?re.concat(Me):Me}return K===!1?re:re.join(K||this.lineSeparator())},getSelections:function(K){for(var $=[],re=this.sel.ranges,ue=0;ue<re.length;ue++){var Me=at(this,re[ue].from(),re[ue].to());K!==!1&&(Me=Me.join(K||this.lineSeparator())),$[ue]=Me}return $},replaceSelection:function(K,$,re){for(var ue=[],Me=0;Me<this.sel.ranges.length;Me++)ue[Me]=K;this.replaceSelections(ue,$,re||"+input")},replaceSelections:Wa(function(P,K,$){for(var re=[],ue=this.sel,Me=0;Me<ue.ranges.length;Me++){var gt=ue.ranges[Me];re[Me]={from:gt.from(),to:gt.to(),text:this.splitLines(P[Me]),origin:$}}for(var zt=K&&K!="end"&&Qr(this,re,K),or=re.length-1;or>=0;or--)Gs(this,re[or]);zt?Ws(this,zt):this.cm&&wa(this.cm)}),undo:Wa(function(){vl(this,"undo")}),redo:Wa(function(){vl(this,"redo")}),undoSelection:Wa(function(){vl(this,"undo",!0)}),redoSelection:Wa(function(){vl(this,"redo",!0)}),setExtending:function(K){this.extend=K},getExtending:function(){return this.extend},historySize:function(){for(var K=this.history,$=0,re=0,ue=0;ue<K.done.length;ue++)K.done[ue].ranges||++$;for(var Me=0;Me<K.undone.length;Me++)K.undone[Me].ranges||++re;return{undo:$,redo:re}},clearHistory:function(){var K=this;this.history=new ao(this.history.maxGeneration),Di(this,function($){return $.history=K.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(K){return K&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(K){return this.history.generation==(K||this.cleanGeneration)},getHistory:function(){return{done:ls(this.history.done),undone:ls(this.history.undone)}},setHistory:function(K){var $=this.history=new ao(this.history.maxGeneration);$.done=ls(K.done.slice(0),null,!0),$.undone=ls(K.undone.slice(0),null,!0)},setGutterMarker:Wa(function(P,K,$){return bs(this,P,"gutter",function(re){var ue=re.gutterMarkers||(re.gutterMarkers={});return ue[K]=$,!$&&Q(ue)&&(re.gutterMarkers=null),!0})}),clearGutter:Wa(function(P){var K=this;this.iter(function($){$.gutterMarkers&&$.gutterMarkers[P]&&bs(K,$,"gutter",function(){return $.gutterMarkers[P]=null,Q($.gutterMarkers)&&($.gutterMarkers=null),!0})})}),lineInfo:function(K){var $;if(typeof K=="number"){if(!gr(this,K))return null;if($=K,K=Pe(this,K),!K)return null}else if($=xt(K),$==null)return null;return{line:$,handle:K,text:K.text,gutterMarkers:K.gutterMarkers,textClass:K.textClass,bgClass:K.bgClass,wrapClass:K.wrapClass,widgets:K.widgets}},addLineClass:Wa(function(P,K,$){return bs(this,P,K=="gutter"?"gutter":"class",function(re){var ue=K=="text"?"textClass":K=="background"?"bgClass":K=="gutter"?"gutterClass":"wrapClass";if(!re[ue])re[ue]=$;else{if(T($).test(re[ue]))return!1;re[ue]+=" "+$}return!0})}),removeLineClass:Wa(function(P,K,$){return bs(this,P,K=="gutter"?"gutter":"class",function(re){var ue=K=="text"?"textClass":K=="background"?"bgClass":K=="gutter"?"gutterClass":"wrapClass",Me=re[ue];if(Me)if($==null)re[ue]=null;else{var gt=Me.match(T($));if(!gt)return!1;var zt=gt.index+gt[0].length;re[ue]=Me.slice(0,gt.index)+(!gt.index||zt==Me.length?"":" ")+Me.slice(zt)||null}else return!1;return!0})}),addLineWidget:Wa(function(P,K,$){return wl(this,P,K,$)}),removeLineWidget:function(K){K.clear()},markText:function(K,$,re){return fl(this,ut(this,K),ut(this,$),re,re&&re.type||"range")},setBookmark:function(K,$){var re={replacedWith:$&&($.nodeType==null?$.widget:$),insertLeft:$&&$.insertLeft,clearWhenEmpty:!1,shared:$&&$.shared,handleMouseEvents:$&&$.handleMouseEvents};return K=ut(this,K),fl(this,K,K,re,"bookmark")},findMarksAt:function(K){K=ut(this,K);var $=[],re=Pe(this,K.line).markedSpans;if(re)for(var ue=0;ue<re.length;++ue){var Me=re[ue];(Me.from==null||Me.from<=K.ch)&&(Me.to==null||Me.to>=K.ch)&&$.push(Me.marker.parent||Me.marker)}return $},findMarks:function(K,$,re){K=ut(this,K),$=ut(this,$);var ue=[],Me=K.line;return this.iter(K.line,$.line+1,function(gt){var zt=gt.markedSpans;if(zt)for(var or=0;or<zt.length;or++){var cr=zt[or];!(cr.to!=null&&Me==K.line&&K.ch>=cr.to||cr.from==null&&Me!=K.line||cr.from!=null&&Me==$.line&&cr.from>=$.ch)&&(!re||re(cr.marker))&&ue.push(cr.marker.parent||cr.marker)}++Me}),ue},getAllMarks:function(){var K=[];return this.iter(function($){var re=$.markedSpans;if(re)for(var ue=0;ue<re.length;++ue)re[ue].from!=null&&K.push(re[ue].marker)}),K},posFromIndex:function(K){var $,re=this.first,ue=this.lineSeparator().length;return this.iter(function(Me){var gt=Me.text.length+ue;if(gt>K)return $=K,!0;K-=gt,++re}),ut(this,Et(re,$))},indexFromPos:function(K){K=ut(this,K);var $=K.ch;if(K.line<this.first||K.ch<0)return 0;var re=this.lineSeparator().length;return this.iter(this.first,K.line,function(ue){$+=ue.text.length+re}),$},copy:function(K){var $=new $s(wt(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,K&&($.history.undoDepth=this.history.undoDepth,$.setHistory(this.getHistory())),$},linkedDoc:function(K){K||(K={});var $=this.first,re=this.first+this.size;K.from!=null&&K.from>$&&($=K.from),K.to!=null&&K.to<re&&(re=K.to);var ue=new $s(wt(this,$,re),K.mode||this.modeOption,$,this.lineSep,this.direction);return K.sharedHist&&(ue.history=this.history),(this.linked||(this.linked=[])).push({doc:ue,sharedHist:K.sharedHist}),ue.linked=[{doc:this,isParent:!0,sharedHist:K.sharedHist}],Zl(ue,Jl(this)),ue},unlinkDoc:function(K){if(K instanceof Er&&(K=K.doc),this.linked)for(var $=0;$<this.linked.length;++$){var re=this.linked[$];if(re.doc!=K)continue;this.linked.splice($,1),K.unlinkDoc(this),$l(Jl(this));break}if(K.history==this.history){var ue=[K.id];Di(K,function(Me){return ue.push(Me.id)},!0),K.history=new ao(null),K.history.done=ls(this.history.done,ue),K.history.undone=ls(this.history.undone,ue)}},iterLinkedDocs:function(K){Di(this,K)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(K){return this.lineSep?K.split(this.lineSep):Lr(K)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Wa(function(P){if(P!="rtl"&&(P="ltr"),P==this.direction)return;this.direction=P,this.iter(function(K){return K.order=null}),this.cm&&Ga(this.cm)})}),$s.prototype.eachLine=$s.prototype.iter;var ll=0;function pl(P){var K=this;if(ql(K),Mt(K,P)||Bo(K.display,P))return;Xe(P),f&&(ll=+new Date);var $=ri(K,P,!0),re=P.dataTransfer.files;if(!$||K.isReadOnly())return;if(re&&re.length&&window.FileReader&&window.File)for(var ue=re.length,Me=Array(ue),gt=0,zt=function(){++gt==ue&&fa(K,function(){$=ut(K.doc,$);var Wi={from:$,to:$,text:K.doc.splitLines(Me.filter(function(ia){return ia!=null}).join(K.doc.lineSeparator())),origin:"paste"};Gs(K.doc,Wi),Ws(K.doc,be(ut(K.doc,$),ut(K.doc,Ue(Wi))))})()},or=function(Wi,ia){if(K.options.allowDropFileTypes&&z(K.options.allowDropFileTypes,Wi.type)==-1){zt();return}var xa=new FileReader;xa.onerror=function(){return zt()},xa.onload=function(){var ba=xa.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ba)){zt();return}Me[ia]=ba,zt()},xa.readAsText(Wi)},cr=0;cr<re.length;cr++)or(re[cr],cr);else{if(K.state.draggingText&&K.doc.sel.contains($)>-1){K.state.draggingText(P),setTimeout(function(){return K.display.input.focus()},20);return}try{var wn=P.dataTransfer.getData("Text");if(wn){var Rn;if(K.state.draggingText&&!K.state.draggingText.copy&&(Rn=K.listSelections()),_s(K.doc,be($,$)),Rn)for(var ui=0;ui<Rn.length;++ui)rl(K.doc,"",Rn[ui].anchor,Rn[ui].head,"drag");K.replaceSelection(wn,"around","paste"),K.display.input.focus()}}catch(hi){}}}function Nl(P,K){if(f&&(!P.state.draggingText||+new Date-ll<100)){Be(K);return}if(Mt(P,K)||Bo(P.display,K))return;if(K.dataTransfer.setData("Text",P.getSelection()),K.dataTransfer.effectAllowed="copyMove",K.dataTransfer.setDragImage&&!e){var $=I("img",null,null,"position: fixed; left: 0; top: 0;");$.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",n&&($.width=$.height=1,P.display.wrapper.appendChild($),$._top=$.offsetTop),K.dataTransfer.setDragImage($,0,0),n&&$.parentNode.removeChild($)}}function ou(P,K){var $=ri(P,K);if(!$)return;var re=document.createDocumentFragment();An(P,$,re),P.display.dragCursor||(P.display.dragCursor=I("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),P.display.lineSpace.insertBefore(P.display.dragCursor,P.display.cursorDiv)),_(P.display.dragCursor,re)}function ql(P){P.display.dragCursor&&(P.display.lineSpace.removeChild(P.display.dragCursor),P.display.dragCursor=null)}function eu(P){if(!document.getElementsByClassName)return;for(var K=document.getElementsByClassName("CodeMirror"),$=[],re=0;re<K.length;re++){var ue=K[re].CodeMirror;ue&&$.push(ue)}$.length&&$[0].operation(function(){for(var Me=0;Me<$.length;Me++)P($[Me])})}var el=!1;function tu(){if(el)return;ru(),el=!0}function ru(){var P;Oe(window,"resize",function(){P==null&&(P=setTimeout(function(){P=null,eu(su)},100))}),Oe(window,"blur",function(){return eu(Un)})}function su(P){var K=P.display;K.cachedCharWidth=K.cachedTextHeight=K.cachedPaddingH=null,K.scrollbarsClipped=!1,P.setSize()}for(var Cl={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"},Dl=0;Dl<10;Dl++)Cl[Dl+48]=Cl[Dl+96]=String(Dl);for(var Fl=65;Fl<=90;Fl++)Cl[Fl]=String.fromCharCode(Fl);for(var Xl=1;Xl<=12;Xl++)Cl[Xl+111]=Cl[Xl+63235]="F"+Xl;var jo={};jo.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"},jo.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"},jo.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"},jo.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"]},jo.default=h?jo.macDefault:jo.pcDefault;function Ho(P){var K=P.split(/-(?!$)/);P=K[K.length-1];for(var $,re,ue,Me,gt=0;gt<K.length-1;gt++){var zt=K[gt];if(/^(cmd|meta|m)$/i.test(zt))Me=!0;else if(/^a(lt)?$/i.test(zt))$=!0;else if(/^(c|ctrl|control)$/i.test(zt))re=!0;else if(/^s(hift)?$/i.test(zt))ue=!0;else throw new Error("Unrecognized modifier name: "+zt)}return $&&(P="Alt-"+P),re&&(P="Ctrl-"+P),Me&&(P="Cmd-"+P),ue&&(P="Shift-"+P),P}function us(P){var K={};for(var $ in P)if(P.hasOwnProperty($)){var re=P[$];if(/^(name|fallthrough|(de|at)tach)$/.test($))continue;if(re=="..."){delete P[$];continue}for(var ue=ke($.split(" "),Ho),Me=0;Me<ue.length;Me++){var gt=void 0,zt=void 0;Me==ue.length-1?(zt=ue.join(" "),gt=re):(zt=ue.slice(0,Me+1).join(" "),gt="...");var or=K[zt];if(!or)K[zt]=gt;else if(or!=gt)throw new Error("Inconsistent bindings for "+zt)}delete P[$]}for(var cr in K)P[cr]=K[cr];return P}function cs(P,K,$,re){K=ss(K);var ue=K.call?K.call(P,re):K[P];if(ue===!1)return"nothing";if(ue==="...")return"multi";if(ue!=null&&$(ue))return"handled";if(K.fallthrough){if(Object.prototype.toString.call(K.fallthrough)!="[object Array]")return cs(P,K.fallthrough,$,re);for(var Me=0;Me<K.fallthrough.length;Me++){var gt=cs(P,K.fallthrough[Me],$,re);if(gt)return gt}}}function Cs(P){var K=typeof P=="string"?P:Cl[P.keyCode];return K=="Ctrl"||K=="Alt"||K=="Shift"||K=="Mod"}function ds(P,K,$){var re=P;return K.altKey&&re!="Alt"&&(P="Alt-"+P),(y?K.metaKey:K.ctrlKey)&&re!="Ctrl"&&(P="Ctrl-"+P),(y?K.ctrlKey:K.metaKey)&&re!="Mod"&&(P="Cmd-"+P),!$&&K.shiftKey&&re!="Shift"&&(P="Shift-"+P),P}function Js(P,K){if(n&&P.keyCode==34&&P.char)return!1;var $=Cl[P.keyCode];return $==null||P.altGraphKey?!1:(P.keyCode==3&&P.code&&($=P.code),ds($,P,K))}function ss(P){return typeof P=="string"?jo[P]:P}function Is(P,K){for(var $=P.doc.sel.ranges,re=[],ue=0;ue<$.length;ue++){for(var Me=K($[ue]);re.length&&it(Me.from,me(re).to)<=0;){var gt=re.pop();if(it(gt.from,Me.from)<0){Me.from=gt.from;break}}re.push(Me)}co(P,function(){for(var zt=re.length-1;zt>=0;zt--)rl(P.doc,"",re[zt].from,re[zt].to,"+delete");wa(P)})}function Al(P,K,$){var re=Te(P.text,K+$,$);return re<0||re>P.text.length?null:re}function lu(P,K,$){var re=Al(P,K.ch,$);return re==null?null:new Et(K.line,re,$<0?"after":"before")}function uu(P,K,$,re,ue){if(P){K.doc.direction=="rtl"&&(ue=-ue);var Me=vt($,K.doc.direction);if(Me){var gt=ue<0?me(Me):Me[0],zt=ue<0==(gt.level==1),or=zt?"after":"before",cr;if(gt.level>0||K.doc.direction=="rtl"){var wn=Jn(K,$);cr=ue<0?$.text.length-1:0;var Rn=mi(K,wn,cr).top;cr=Se(function(ui){return mi(K,wn,ui).top==Rn},ue<0==(gt.level==1)?gt.from:gt.to-1,cr),or=="before"&&(cr=Al($,cr,1))}else cr=ue<0?gt.to:gt.from;return new Et(re,cr,or)}}return new Et(re,ue<0?$.text.length:0,ue<0?"before":"after")}function Yl(P,K,$,re){var ue=vt(K,P.doc.direction);if(!ue)return lu(K,$,re);$.ch>=K.text.length?($.ch=K.text.length,$.sticky="before"):$.ch<=0&&($.ch=0,$.sticky="after");var Me=Ee(ue,$.ch,$.sticky),gt=ue[Me];if(P.doc.direction=="ltr"&&gt.level%2==0&&(re>0?gt.to>$.ch:gt.from<$.ch))return lu(K,$,re);var zt=function(va,Ua){return Al(K,va instanceof Et?va.ch:va,Ua)},or,cr=function(va){return P.options.lineWrapping?(or=or||Jn(P,K),yr(P,K,or,va)):{begin:0,end:K.text.length}},wn=cr($.sticky=="before"?zt($,-1):$.ch);if(P.doc.direction=="rtl"||gt.level==1){var Rn=gt.level==1==re<0,ui=zt($,Rn?1:-1);if(ui!=null&&(Rn?ui<=gt.to&&ui<=wn.end:ui>=gt.from&&ui>=wn.begin)){var hi=Rn?"before":"after";return new Et($.line,ui,hi)}}var Wi=function(va,Ua,eo){for(var ko=function(Ls,ul){return ul?new Et($.line,zt(Ls,1),"before"):new Et($.line,Ls,"after")};va>=0&&va<ue.length;va+=Ua){var To=ue[va],ns=Ua>0==(To.level!=1),Ss=ns?eo.begin:zt(eo.end,-1);if(To.from<=Ss&&Ss<To.to)return ko(Ss,ns);if(Ss=ns?To.from:zt(To.to,-1),eo.begin<=Ss&&Ss<eo.end)return ko(Ss,ns)}},ia=Wi(Me+re,re,wn);if(ia)return ia;var xa=re>0?wn.end:zt(wn.begin,-1);return xa!=null&&!(re>0&&xa==K.text.length)&&(ia=Wi(re>0?0:ue.length-1,re,cr(xa)),ia)?ia:null}var nu={selectAll:bl,singleSelection:function(K){return K.setSelection(K.getCursor("anchor"),K.getCursor("head"),de)},killLine:function(K){return Is(K,function($){if($.empty()){var re=Pe(K.doc,$.head.line).text.length;return $.head.ch==re&&$.head.line<K.lastLine()?{from:$.head,to:Et($.head.line+1,0)}:{from:$.head,to:Et($.head.line,re)}}else return{from:$.from(),to:$.to()}})},deleteLine:function(K){return Is(K,function($){return{from:Et($.from().line,0),to:ut(K.doc,Et($.to().line+1,0))}})},delLineLeft:function(K){return Is(K,function($){return{from:Et($.from().line,0),to:$.from()}})},delWrappedLineLeft:function(K){return Is(K,function($){var re=K.charCoords($.head,"div").top+5,ue=K.coordsChar({left:0,top:re},"div");return{from:ue,to:$.from()}})},delWrappedLineRight:function(K){return Is(K,function($){var re=K.charCoords($.head,"div").top+5,ue=K.coordsChar({left:K.display.lineDiv.offsetWidth+100,top:re},"div");return{from:$.from(),to:ue}})},undo:function(K){return K.undo()},redo:function(K){return K.redo()},undoSelection:function(K){return K.undoSelection()},redoSelection:function(K){return K.redoSelection()},goDocStart:function(K){return K.extendSelection(Et(K.firstLine(),0))},goDocEnd:function(K){return K.extendSelection(Et(K.lastLine()))},goLineStart:function(K){return K.extendSelectionsBy(function($){return vu(K,$.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(K){return K.extendSelectionsBy(function($){return bu(K,$.head)},{origin:"+move",bias:1})},goLineEnd:function(K){return K.extendSelectionsBy(function($){return yu(K,$.head.line)},{origin:"+move",bias:-1})},goLineRight:function(K){return K.extendSelectionsBy(function($){var re=K.cursorCoords($.head,"div").top+5;return K.coordsChar({left:K.display.lineDiv.offsetWidth+100,top:re},"div")},ve)},goLineLeft:function(K){return K.extendSelectionsBy(function($){var re=K.cursorCoords($.head,"div").top+5;return K.coordsChar({left:0,top:re},"div")},ve)},goLineLeftSmart:function(K){return K.extendSelectionsBy(function($){var re=K.cursorCoords($.head,"div").top+5,ue=K.coordsChar({left:0,top:re},"div");return ue.ch<K.getLine(ue.line).search(/\S/)?bu(K,$.head):ue},ve)},goLineUp:function(K){return K.moveV(-1,"line")},goLineDown:function(K){return K.moveV(1,"line")},goPageUp:function(K){return K.moveV(-1,"page")},goPageDown:function(K){return K.moveV(1,"page")},goCharLeft:function(K){return K.moveH(-1,"char")},goCharRight:function(K){return K.moveH(1,"char")},goColumnLeft:function(K){return K.moveH(-1,"column")},goColumnRight:function(K){return K.moveH(1,"column")},goWordLeft:function(K){return K.moveH(-1,"word")},goGroupRight:function(K){return K.moveH(1,"group")},goGroupLeft:function(K){return K.moveH(-1,"group")},goWordRight:function(K){return K.moveH(1,"word")},delCharBefore:function(K){return K.deleteH(-1,"codepoint")},delCharAfter:function(K){return K.deleteH(1,"char")},delWordBefore:function(K){return K.deleteH(-1,"word")},delWordAfter:function(K){return K.deleteH(1,"word")},delGroupBefore:function(K){return K.deleteH(-1,"group")},delGroupAfter:function(K){return K.deleteH(1,"group")},indentAuto:function(K){return K.indentSelection("smart")},indentMore:function(K){return K.indentSelection("add")},indentLess:function(K){return K.indentSelection("subtract")},insertTab:function(K){return K.replaceSelection(" ")},insertSoftTab:function(K){for(var $=[],re=K.listSelections(),ue=K.options.tabSize,Me=0;Me<re.length;Me++){var gt=re[Me].from(),zt=W(K.getLine(gt.line),gt.ch,ue);$.push(He(ue-zt%ue))}K.replaceSelections($)},defaultTab:function(K){K.somethingSelected()?K.indentSelection("add"):K.execCommand("insertTab")},transposeChars:function(K){return co(K,function(){for(var $=K.listSelections(),re=[],ue=0;ue<$.length;ue++){if(!$[ue].empty())continue;var Me=$[ue].head,gt=Pe(K.doc,Me.line).text;if(gt){if(Me.ch==gt.length&&(Me=new Et(Me.line,Me.ch-1)),Me.ch>0)Me=new Et(Me.line,Me.ch+1),K.replaceRange(gt.charAt(Me.ch-1)+gt.charAt(Me.ch-2),Et(Me.line,Me.ch-2),Me,"+transpose");else if(Me.line>K.doc.first){var zt=Pe(K.doc,Me.line-1).text;zt&&(Me=new Et(Me.line,1),K.replaceRange(gt.charAt(0)+K.doc.lineSeparator()+zt.charAt(zt.length-1),Et(Me.line-1,zt.length-1),Me,"+transpose"))}}re.push(new ne(Me,Me))}K.setSelections(re)})},newlineAndIndent:function(K){return co(K,function(){for(var $=K.listSelections(),re=$.length-1;re>=0;re--)K.replaceRange(K.doc.lineSeparator(),$[re].anchor,$[re].head,"+input");$=K.listSelections();for(var ue=0;ue<$.length;ue++)K.indentLine($[ue].from().line,null,!0);wa(K)})},openLine:function(K){return K.replaceSelection(`
`,"start")},toggleOverwrite:function(K){return K.toggleOverwrite()}};function vu(P,K){var $=Pe(P.doc,K),re=kr($);return re!=$&&(K=xt(re)),uu(!0,P,re,K,1)}function yu(P,K){var $=Pe(P.doc,K),re=mr($);return re!=$&&(K=xt(re)),uu(!0,P,$,K,-1)}function bu(P,K){var $=vu(P,K.line),re=Pe(P.doc,$.line),ue=vt(re,P.doc.direction);if(!ue||ue[0].level==0){var Me=Math.max($.ch,re.text.search(/\S/)),gt=K.line==$.line&&K.ch<=Me&&K.ch;return Et($.line,gt?0:Me,$.sticky)}return $}function _l(P,K,$){if(typeof K=="string"&&(K=nu[K],!K))return!1;P.display.input.ensurePolled();var re=P.display.shift,ue=!1;try{P.isReadOnly()&&(P.state.suppressEdits=!0),$&&(P.display.shift=!1),ue=K(P)!=q}finally{P.display.shift=re,P.state.suppressEdits=!1}return ue}function Rl(P,K,$){for(var re=0;re<P.state.keyMaps.length;re++){var ue=cs(K,P.state.keyMaps[re],$,P);if(ue)return ue}return P.options.extraKeys&&cs(K,P.options.extraKeys,$,P)||cs(K,P.options.keyMap,$,P)}var Wl=new V;function es(P,K,$,re){var ue=P.state.keySeq;if(ue){if(Cs(K))return"handled";if(/\'$/.test(K)?P.state.keySeq=null:Wl.set(50,function(){P.state.keySeq==ue&&(P.state.keySeq=null,P.display.input.reset())}),$a(P,ue+" "+K,$,re))return!0}return $a(P,K,$,re)}function $a(P,K,$,re){var ue=Rl(P,K,re);return ue=="multi"&&(P.state.keySeq=K),ue=="handled"&&Hi(P,"keyHandled",P,K,$),(ue=="handled"||ue=="multi")&&(Xe($),Kn(P)),!!ue}function Eo(P,K){var $=Js(K,!0);return $?K.shiftKey&&!P.state.keySeq?es(P,"Shift-"+$,K,function(re){return _l(P,re,!0)})||es(P,$,K,function(re){if(typeof re=="string"?/^go[A-Z]/.test(re):re.motion)return _l(P,re)}):es(P,$,K,function(re){return _l(P,re)}):!1}function Ko(P,K,$){return es(P,"'"+$+"'",K,function(re){return _l(P,re,!0)})}var js=null;function Bl(P){var K=this;if(P.target&&P.target!=K.display.input.getField())return;if(K.curOp.focus=D(),Mt(K,P))return;f&&c<11&&P.keyCode==27&&(P.returnValue=!1);var $=P.keyCode;K.display.shift=$==16||P.shiftKey;var re=Eo(K,P);n&&(js=re?$:null,!re&&$==88&&!ar&&(h?P.metaKey:P.ctrlKey)&&K.replaceSelection("",null,"cut")),C&&!h&&!re&&$==46&&P.shiftKey&&!P.ctrlKey&&document.execCommand&&document.execCommand("cut"),$==18&&!/\bCodeMirror-crosshair\b/.test(K.display.lineDiv.className)&&Ul(K)}function Ul(P){var K=P.display.lineDiv;F(K,"CodeMirror-crosshair");function $(re){(re.keyCode==18||!re.altKey)&&(w(K,"CodeMirror-crosshair"),Je(document,"keyup",$),Je(document,"mouseover",$))}Oe(document,"keyup",$),Oe(document,"mouseover",$)}function Ol(P){P.keyCode==16&&(this.doc.sel.shift=!1),Mt(this,P)}function Ll(P){var K=this;if(P.target&&P.target!=K.display.input.getField())return;if(Bo(K.display,P)||Mt(K,P)||P.ctrlKey&&!P.altKey||h&&P.metaKey)return;var $=P.keyCode,re=P.charCode;if(n&&$==js){js=null,Xe(P);return}if(n&&(!P.which||P.which<10)&&Eo(K,P))return;var ue=String.fromCharCode(re==null?$:re);if(ue=="\b")return;if(Ko(K,P,ue))return;K.display.input.onKeyPress(P)}var jl=400,Hl=function(K,$,re){this.time=K,this.pos=$,this.button=re};Hl.prototype.compare=function(P,K,$){return this.time+jl>P&&it(K,this.pos)==0&&$==this.button};var Vs,cu;function wu(P,K){var $=+new Date;return cu&&cu.compare($,P,K)?(Vs=cu=null,"triple"):Vs&&Vs.compare($,P,K)?(cu=new Hl($,P,K),Vs=null,"double"):(Vs=new Hl($,P,K),cu=null,"single")}function Au(P){var K=this,$=K.display;if(Mt(K,P)||$.activeTouch&&$.input.supportsTouch())return;if($.input.ensurePolled(),$.shift=P.shiftKey,Bo($,P)){o||($.scroller.draggable=!1,setTimeout(function(){return $.scroller.draggable=!0},100));return}if(Uu(K,P))return;var re=ri(K,P),ue=Z(P),Me=re?wu(re,ue):"single";if(window.focus(),ue==1&&K.state.selectingText&&K.state.selectingText(P),re&&_u(K,ue,re,Me,P))return;ue==1?re?Fu(K,re,Me,P):Ce(P)==$.scroller&&Xe(P):ue==2?(re&&ys(K.doc,re),setTimeout(function(){return $.input.focus()},20)):ue==3&&(E?K.display.input.onContextMenu(P):Ln(K))}function _u(P,K,$,re,ue){var Me="Click";return re=="double"?Me="Double"+Me:re=="triple"&&(Me="Triple"+Me),Me=(K==1?"Left":K==2?"Middle":"Right")+Me,es(P,ds(Me,ue),ue,function(gt){if(typeof gt=="string"&&(gt=nu[gt]),!gt)return!1;var zt=!1;try{P.isReadOnly()&&(P.state.suppressEdits=!0),zt=gt(P,$)!=q}finally{P.state.suppressEdits=!1}return zt})}function Vu(P,K,$){var re=P.getOption("configureMouse"),ue=re?re(P,K,$):{};if(ue.unit==null){var Me=p?$.shiftKey&&$.metaKey:$.altKey;ue.unit=Me?"rectangle":K=="single"?"char":K=="double"?"word":"line"}return(ue.extend==null||P.doc.extend)&&(ue.extend=P.doc.extend||$.shiftKey),ue.addNew==null&&(ue.addNew=h?$.metaKey:$.ctrlKey),ue.moveOnDrag==null&&(ue.moveOnDrag=!(h?$.altKey:$.ctrlKey)),ue}function Fu(P,K,$,re){f?setTimeout(B(Wn,P),0):P.curOp.focus=D();var ue=Vu(P,$,re),Me=P.doc.sel,gt;P.options.dragDrop&&nt&&!P.isReadOnly()&&$=="single"&&(gt=Me.contains(K))>-1&&(it((gt=Me.ranges[gt]).from(),K)<0||K.xRel>0)&&(it(gt.to(),K)>0||K.xRel<0)?ec(P,re,K,ue):Gu(P,re,K,ue)}function ec(P,K,$,re){var ue=P.display,Me=!1,gt=fa(P,function(cr){o&&(ue.scroller.draggable=!1),P.state.draggingText=!1,Je(ue.wrapper.ownerDocument,"mouseup",gt),Je(ue.wrapper.ownerDocument,"mousemove",zt),Je(ue.scroller,"dragstart",or),Je(ue.scroller,"drop",gt),Me||(Xe(cr),re.addNew||ys(P.doc,$,null,null,re.extend),o&&!e||f&&c==9?setTimeout(function(){ue.wrapper.ownerDocument.body.focus({preventScroll:!0}),ue.input.focus()},20):ue.input.focus())}),zt=function(wn){Me=Me||Math.abs(K.clientX-wn.clientX)+Math.abs(K.clientY-wn.clientY)>=10},or=function(){return Me=!0};o&&(ue.scroller.draggable=!0),P.state.draggingText=gt,gt.copy=!re.moveOnDrag,ue.scroller.dragDrop&&ue.scroller.dragDrop(),Oe(ue.wrapper.ownerDocument,"mouseup",gt),Oe(ue.wrapper.ownerDocument,"mousemove",zt),Oe(ue.scroller,"dragstart",or),Oe(ue.scroller,"drop",gt),Ln(P),setTimeout(function(){return ue.input.focus()},20)}function Bu(P,K,$){if($=="char")return new ne(K,K);if($=="word")return P.findWordAt(K);if($=="line")return new ne(Et(K.line,0),ut(P.doc,Et(K.line+1,0)));var re=$(P,K);return new ne(re.from,re.to)}function Gu(P,K,$,re){var ue=P.display,Me=P.doc;Xe(K);var gt,zt,or=Me.sel,cr=or.ranges;if(re.addNew&&!re.extend?(zt=Me.sel.contains($),zt>-1?gt=cr[zt]:gt=new ne($,$)):(gt=Me.sel.primary(),zt=Me.sel.primIndex),re.unit=="rectangle")re.addNew||(gt=new ne($,$)),$=ri(P,K,!0,!0),zt=-1;else{var wn=Bu(P,$,re.unit);re.extend?gt=Os(gt,wn.anchor,wn.head,re.extend):gt=wn}re.addNew?zt==-1?(zt=cr.length,fs(Me,pe(P,cr.concat([gt]),zt),{scroll:!1,origin:"*mouse"})):cr.length>1&&cr[zt].empty()&&re.unit=="char"&&!re.extend?(fs(Me,pe(P,cr.slice(0,zt).concat(cr.slice(zt+1)),0),{scroll:!1,origin:"*mouse"}),or=Me.sel):ws(Me,zt,gt,ae):(zt=0,fs(Me,new ht([gt],0),ae),or=Me.sel);var Rn=$;function ui(Ua){if(it(Rn,Ua)==0)return;if(Rn=Ua,re.unit=="rectangle"){for(var eo=[],ko=P.options.tabSize,To=W(Pe(Me,$.line).text,$.ch,ko),ns=W(Pe(Me,Ua.line).text,Ua.ch,ko),Ss=Math.min(To,ns),Hs=Math.max(To,ns),Ls=Math.min($.line,Ua.line),ul=Math.min(P.lastLine(),Math.max($.line,Ua.line));Ls<=ul;Ls++){var Sl=Pe(Me,Ls).text,tl=_e(Sl,Ss,ko);Ss==Hs?eo.push(new ne(Et(Ls,tl),Et(Ls,tl))):Sl.length>tl&&eo.push(new ne(Et(Ls,tl),Et(Ls,_e(Sl,Hs,ko))))}eo.length||eo.push(new ne($,$)),fs(Me,pe(P,or.ranges.slice(0,zt).concat(eo),zt),{origin:"*mouse",scroll:!1}),P.scrollIntoView(Ua)}else{var xl=gt,cl=Bu(P,Ua,re.unit),Oa=xl.anchor,ks;it(cl.anchor,Oa)>0?(ks=cl.head,Oa=bt(xl.from(),cl.anchor)):(ks=cl.anchor,Oa=Ht(xl.to(),cl.head));var Ps=or.ranges.slice(0);Ps[zt]=Xu(P,new ne(ut(Me,Oa),ks)),fs(Me,pe(P,Ps,zt),ae)}}var hi=ue.wrapper.getBoundingClientRect(),Wi=0;function ia(Ua){var eo=++Wi,ko=ri(P,Ua,!0,re.unit=="rectangle");if(!ko)return;if(it(ko,Rn)!=0){P.curOp.focus=D(),ui(ko);var To=wi(ue,Me);(ko.line>=To.to||ko.line<To.from)&&setTimeout(fa(P,function(){Wi==eo&&ia(Ua)}),150)}else{var ns=Ua.clientY<hi.top?-20:Ua.clientY>hi.bottom?20:0;ns&&setTimeout(fa(P,function(){if(Wi!=eo)return;ue.scroller.scrollTop+=ns,ia(Ua)}),50)}}function xa(Ua){P.state.selectingText=!1,Wi=Infinity,Ua&&(Xe(Ua),ue.input.focus()),Je(ue.wrapper.ownerDocument,"mousemove",ba),Je(ue.wrapper.ownerDocument,"mouseup",va),Me.history.lastSelOrigin=null}var ba=fa(P,function(Ua){Ua.buttons===0||!Z(Ua)?xa(Ua):ia(Ua)}),va=fa(P,xa);P.state.selectingText=va,Oe(ue.wrapper.ownerDocument,"mousemove",ba),Oe(ue.wrapper.ownerDocument,"mouseup",va)}function Xu(P,K){var $=K.anchor,re=K.head,ue=Pe(P.doc,$.line);if(it($,re)==0&&$.sticky==re.sticky)return K;var Me=vt(ue);if(!Me)return K;var gt=Ee(Me,$.ch,$.sticky),zt=Me[gt];if(zt.from!=$.ch&&zt.to!=$.ch)return K;var or=gt+(zt.from==$.ch==(zt.level!=1)?0:1);if(or==0||or==Me.length)return K;var cr;if(re.line!=$.line)cr=(re.line-$.line)*(P.doc.direction=="ltr"?1:-1)>0;else{var wn=Ee(Me,re.ch,re.sticky),Rn=wn-gt||(re.ch-$.ch)*(zt.level==1?-1:1);wn==or-1||wn==or?cr=Rn<0:cr=Rn>0}var ui=Me[or+(cr?-1:0)],hi=cr==(ui.level==1),Wi=hi?ui.from:ui.to,ia=hi?"after":"before";return $.ch==Wi&&$.sticky==ia?K:new ne(new Et($.line,Wi,ia),re)}function Yu(P,K,$,re){var ue,Me;if(K.touches)ue=K.touches[0].clientX,Me=K.touches[0].clientY;else try{ue=K.clientX,Me=K.clientY}catch(ui){return!1}if(ue>=Math.floor(P.display.gutters.getBoundingClientRect().right))return!1;re&&Xe(K);var gt=P.display,zt=gt.lineDiv.getBoundingClientRect();if(Me>zt.bottom||!It(P,$))return X(K);Me-=zt.top-gt.viewOffset;for(var or=0;or<P.display.gutterSpecs.length;++or){var cr=gt.gutters.childNodes[or];if(cr&&cr.getBoundingClientRect().right>=ue){var wn=Lt(P.doc,Me),Rn=P.display.gutterSpecs[or];return St(P,$,P,wn,Rn.className,K),X(K)}}}function Uu(P,K){return Yu(P,K,"gutterClick",!0)}function Ou(P,K){if(Bo(P.display,K)||Ql(P,K))return;if(Mt(P,K,"contextmenu"))return;E||P.display.input.onContextMenu(K)}function Ql(P,K){return It(P,"gutterContextMenu")?Yu(P,K,"gutterContextMenu",!1):!1}function Iu(P){P.display.wrapper.className=P.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+P.options.theme.replace(/(^|\s)\s*/g," cm-s-"),lo(P)}var iu={toString:function(){return"CodeMirror.Init"}},Eu={},ge={};function je(P){var K=P.optionHandlers;function $(re,ue,Me,gt){P.defaults[re]=ue,Me&&(K[re]=gt?function(zt,or,cr){cr!=iu&&Me(zt,or,cr)}:Me)}P.defineOption=$,P.Init=iu,$("value","",function(re,ue){return re.setValue(ue)},!0),$("mode",null,function(re,ue){re.doc.modeOption=ue,dn(re)},!0),$("indentUnit",2,dn,!0),$("indentWithTabs",!1),$("smartIndent",!0),$("tabSize",4,function(re){jn(re),lo(re),ei(re)},!0),$("lineSeparator",null,function(re,ue){if(re.doc.lineSep=ue,!ue)return;var Me=[],gt=re.doc.first;re.doc.iter(function(or){for(var cr=0;;){var wn=or.text.indexOf(ue,cr);if(wn==-1)break;cr=wn+ue.length,Me.push(Et(gt,wn))}gt++});for(var zt=Me.length-1;zt>=0;zt--)rl(re.doc,ue,Me[zt],Et(Me[zt].line,Me[zt].ch+ue.length))}),$("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(re,ue,Me){re.state.specialChars=new RegExp(ue.source+(ue.test(" ")?"":"| "),"g"),Me!=iu&&re.refresh()}),$("specialCharPlaceholder",Oi,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,ue){return re.getInputField().spellcheck=ue},!0),$("autocorrect",!1,function(re,ue){return re.getInputField().autocorrect=ue},!0),$("autocapitalize",!1,function(re,ue){return re.getInputField().autocapitalize=ue},!0),$("rtlMoveVisually",!m),$("wholeLineUpdateBefore",!0),$("theme","default",function(re){Iu(re),ps(re)},!0),$("keyMap","default",function(re,ue,Me){var gt=ss(ue),zt=Me!=iu&&ss(Me);zt&&zt.detach&&zt.detach(re,gt),gt.attach&&gt.attach(re,zt||null)}),$("extraKeys",null),$("configureMouse",null),$("lineWrapping",!1,nr,!0),$("gutters",[],function(re,ue){re.display.gutterSpecs=Ao(ue,re.options.lineNumbers),ps(re)},!0),$("fixedGutter",!0,function(re,ue){re.display.gutters.style.left=ue?Zn(re.display)+"px":"0",re.refresh()},!0),$("coverGutterNextToScrollbar",!1,function(re){return ra(re)},!0),$("scrollbarStyle","native",function(re){bo(re),ra(re),re.display.scrollbars.setScrollTop(re.doc.scrollTop),re.display.scrollbars.setScrollLeft(re.doc.scrollLeft)},!0),$("lineNumbers",!1,function(re,ue){re.display.gutterSpecs=Ao(re.options.gutters,ue),ps(re)},!0),$("firstLineNumber",1,ps,!0),$("lineNumberFormatter",function(re){return re},ps,!0),$("showCursorWhenSelecting",!1,Fr,!0),$("resetSelectionOnContextMenu",!0),$("lineWiseCopyCut",!0),$("pasteLinesPerSelection",!0),$("selectionsMayTouch",!1),$("readOnly",!1,function(re,ue){ue=="nocursor"&&(Un(re),re.display.input.blur()),re.display.input.readOnlyChanged(ue)}),$("screenReaderLabel",null,function(re,ue){ue=ue===""?null:ue,re.display.input.screenReaderLabelChanged(ue)}),$("disableInput",!1,function(re,ue){ue||re.display.input.reset()},!0),$("dragDrop",!0,mt),$("allowDropFileTypes",null),$("cursorBlinkRate",530),$("cursorScrollMargin",0),$("cursorHeight",1,Fr,!0),$("singleCursorHeightPerLine",!0,Fr,!0),$("workTime",100),$("workDelay",100),$("flattenSpans",!0,jn,!0),$("addModeClass",!1,jn,!0),$("pollInterval",100),$("undoDepth",200,function(re,ue){return re.doc.history.undoDepth=ue}),$("historyEventDelay",1250),$("viewportMargin",10,function(re){return re.refresh()},!0),$("maxHighlightLength",1e4,jn,!0),$("moveInputWithCursor",!0,function(re,ue){ue||re.display.input.resetPosition()}),$("tabindex",null,function(re,ue){return re.display.input.getField().tabIndex=ue||""}),$("autofocus",null),$("direction","ltr",function(re,ue){return re.doc.setDirection(ue)},!0),$("phrases",null)}function mt(P,K,$){var re=$&&$!=iu;if(!K!=!re){var ue=P.display.dragFunctions,Me=K?Oe:Je;Me(P.display.scroller,"dragstart",ue.start),Me(P.display.scroller,"dragenter",ue.enter),Me(P.display.scroller,"dragover",ue.over),Me(P.display.scroller,"dragleave",ue.leave),Me(P.display.scroller,"drop",ue.drop)}}function nr(P){P.options.lineWrapping?(F(P.display.wrapper,"CodeMirror-wrap"),P.display.sizer.style.minWidth="",P.display.sizerWidth=null):(w(P.display.wrapper,"CodeMirror-wrap"),Gn(P)),pi(P),ei(P),lo(P),setTimeout(function(){return ra(P)},100)}function Er(P,K){var $=this;if(!(this instanceof Er))return new Er(P,K);this.options=K=K?j(K):{},j(Eu,K,!1);var re=K.value;typeof re=="string"?re=new $s(re,K.mode,null,K.lineSeparator,K.direction):K.mode&&(re.modeOption=K.mode),this.doc=re;var ue=new Er.inputStyles[K.inputStyle](this),Me=this.display=new is(P,re,ue,K);Me.wrapper.CodeMirror=this,Iu(this),K.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),bo(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},K.autofocus&&!u&&Me.input.focus(),f&&c<11&&setTimeout(function(){return $.display.input.reset(!0)},20),Yr(this),tu(),go(this),this.curOp.forceUpdate=!0,Vi(this,re),K.autofocus&&!u||this.hasFocus()?setTimeout(function(){$.hasFocus()&&!$.state.focused&&$n($)},20):Un(this);for(var gt in ge)ge.hasOwnProperty(gt)&&ge[gt](this,K[gt],iu);ho(this),K.finishInit&&K.finishInit(this);for(var zt=0;zt<Le.length;++zt)Le[zt](this);Sa(this),o&&K.lineWrapping&&getComputedStyle(Me.lineDiv).textRendering=="optimizelegibility"&&(Me.lineDiv.style.textRendering="auto")}Er.defaults=Eu,Er.optionHandlers=ge;function Yr(P){var K=P.display;Oe(K.scroller,"mousedown",fa(P,Au)),f&&c<11?Oe(K.scroller,"dblclick",fa(P,function(or){if(Mt(P,or))return;var cr=ri(P,or);if(!cr||Uu(P,or)||Bo(P.display,or))return;Xe(or);var wn=P.findWordAt(cr);ys(P.doc,wn.anchor,wn.head)})):Oe(K.scroller,"dblclick",function(or){return Mt(P,or)||Xe(or)}),Oe(K.scroller,"contextmenu",function(or){return Ou(P,or)}),Oe(K.input.getField(),"contextmenu",function(or){K.scroller.contains(or.target)||Ou(P,or)});var $,re={end:0};function ue(){K.activeTouch&&($=setTimeout(function(){return K.activeTouch=null},1e3),re=K.activeTouch,re.end=+new Date)}function Me(or){if(or.touches.length!=1)return!1;var cr=or.touches[0];return cr.radiusX<=1&&cr.radiusY<=1}function gt(or,cr){if(cr.left==null)return!0;var wn=cr.left-or.left,Rn=cr.top-or.top;return wn*wn+Rn*Rn>20*20}Oe(K.scroller,"touchstart",function(or){if(!Mt(P,or)&&!Me(or)&&!Uu(P,or)){K.input.ensurePolled(),clearTimeout($);var cr=+new Date;K.activeTouch={start:cr,moved:!1,prev:cr-re.end<=300?re:null},or.touches.length==1&&(K.activeTouch.left=or.touches[0].pageX,K.activeTouch.top=or.touches[0].pageY)}}),Oe(K.scroller,"touchmove",function(){K.activeTouch&&(K.activeTouch.moved=!0)}),Oe(K.scroller,"touchend",function(or){var cr=K.activeTouch;if(cr&&!Bo(K,or)&&cr.left!=null&&!cr.moved&&new Date-cr.start<300){var wn=P.coordsChar(K.activeTouch,"page"),Rn;!cr.prev||gt(cr,cr.prev)?Rn=new ne(wn,wn):!cr.prev.prev||gt(cr,cr.prev.prev)?Rn=P.findWordAt(wn):Rn=new ne(Et(wn.line,0),ut(P.doc,Et(wn.line+1,0))),P.setSelection(Rn.anchor,Rn.head),P.focus(),Xe(or)}ue()}),Oe(K.scroller,"touchcancel",ue),Oe(K.scroller,"scroll",function(){K.scroller.clientHeight&&(aa(P,K.scroller.scrollTop),Aa(P,K.scroller.scrollLeft,!0),St(P,"scroll",P))}),Oe(K.scroller,"mousewheel",function(or){return Pn(P,or)}),Oe(K.scroller,"DOMMouseScroll",function(or){return Pn(P,or)}),Oe(K.wrapper,"scroll",function(){return K.wrapper.scrollTop=K.wrapper.scrollLeft=0}),K.dragFunctions={enter:function(cr){Mt(P,cr)||Be(cr)},over:function(cr){Mt(P,cr)||(ou(P,cr),Be(cr))},start:function(cr){return Nl(P,cr)},drop:fa(P,pl),leave:function(cr){Mt(P,cr)||ql(P)}};var zt=K.input.getField();Oe(zt,"keyup",function(or){return Ol.call(P,or)}),Oe(zt,"keydown",fa(P,Bl)),Oe(zt,"keypress",fa(P,Ll)),Oe(zt,"focus",function(or){return $n(P,or)}),Oe(zt,"blur",function(or){return Un(P,or)})}var Le=[];Er.defineInitHook=function(P){return Le.push(P)};function ee(P,K,$,re){var ue=P.doc,Me;$==null&&($="add"),$=="smart"&&(ue.mode.indent?Me=Mn(P,K).state:$="prev");var gt=P.options.tabSize,zt=Pe(ue,K),or=W(zt.text,null,gt);zt.stateAfter&&(zt.stateAfter=null);var cr=zt.text.match(/^\s*/)[0],wn;if(!re&&!/\S/.test(zt.text))wn=0,$="not";else if($=="smart"&&(wn=ue.mode.indent(Me,zt.text.slice(cr.length),zt.text),wn==q||wn>150)){if(!re)return;$="prev"}$=="prev"?K>ue.first?wn=W(Pe(ue,K-1).text,null,gt):wn=0:$=="add"?wn=or+P.options.indentUnit:$=="subtract"?wn=or-P.options.indentUnit:typeof $=="number"&&(wn=or+$),wn=Math.max(0,wn);var Rn="",ui=0;if(P.options.indentWithTabs)for(var hi=Math.floor(wn/gt);hi;--hi)ui+=gt,Rn+=" ";if(ui<wn&&(Rn+=He(wn-ui)),Rn!=cr)return rl(ue,Rn,Et(K,0),Et(K,cr.length),"+input"),zt.stateAfter=null,!0;for(var Wi=0;Wi<ue.sel.ranges.length;Wi++){var ia=ue.sel.ranges[Wi];if(ia.head.line==K&&ia.head.ch<cr.length){var xa=Et(K,cr.length);ws(ue,Wi,new ne(xa,xa));break}}}var Ae=null;function ze(P){Ae=P}function lt(P,K,$,re,ue){var Me=P.doc;P.display.shift=!1,re||(re=Me.sel);var gt=+new Date-200,zt=ue=="paste"||P.state.pasteIncoming>gt,or=Lr(K),cr=null;if(zt&&re.ranges.length>1)if(Ae&&Ae.text.join(`
`)==K){if(re.ranges.length%Ae.text.length==0){cr=[];for(var wn=0;wn<Ae.text.length;wn++)cr.push(Me.splitLines(Ae.text[wn]))}}else or.length==re.ranges.length&&P.options.pasteLinesPerSelection&&(cr=ke(or,function(ba){return[ba]}));for(var Rn=P.curOp.updateInput,ui=re.ranges.length-1;ui>=0;ui--){var hi=re.ranges[ui],Wi=hi.from(),ia=hi.to();hi.empty()&&($&&$>0?Wi=Et(Wi.line,Wi.ch-$):P.state.overwrite&&!zt?ia=Et(ia.line,Math.min(Pe(Me,ia.line).text.length,ia.ch+me(or).length)):zt&&Ae&&Ae.lineWise&&Ae.text.join(`
`)==or.join(`
`)&&(Wi=ia=Et(Wi.line,0)));var xa={from:Wi,to:ia,text:cr?cr[ui%cr.length]:or,origin:ue||(zt?"paste":P.state.cutIncoming>gt?"cut":"+input")};Gs(P.doc,xa),Hi(P,"inputRead",P,xa)}K&&!zt&&Vt(P,K),wa(P),P.curOp.updateInput<2&&(P.curOp.updateInput=Rn),P.curOp.typing=!0,P.state.pasteIncoming=P.state.cutIncoming=-1}function Dt(P,K){var $=P.clipboardData&&P.clipboardData.getData("Text");if($)return P.preventDefault(),!K.isReadOnly()&&!K.options.disableInput&&co(K,function(){return lt(K,$,0,null,"paste")}),!0}function Vt(P,K){if(!P.options.electricChars||!P.options.smartIndent)return;for(var $=P.doc.sel,re=$.ranges.length-1;re>=0;re--){var ue=$.ranges[re];if(ue.head.ch>100||re&&$.ranges[re-1].head.line==ue.head.line)continue;var Me=P.getModeAt(ue.head),gt=!1;if(Me.electricChars){for(var zt=0;zt<Me.electricChars.length;zt++)if(K.indexOf(Me.electricChars.charAt(zt))>-1){gt=ee(P,ue.head.line,"smart");break}}else Me.electricInput&&(Me.electricInput.test(Pe(P.doc,ue.head.line).text.slice(0,ue.head.ch))&&(gt=ee(P,ue.head.line,"smart")));gt&&Hi(P,"electricInput",P,ue.head.line)}}function Zt(P){for(var K=[],$=[],re=0;re<P.doc.sel.ranges.length;re++){var ue=P.doc.sel.ranges[re].head.line,Me={anchor:Et(ue,0),head:Et(ue+1,0)};$.push(Me),K.push(P.getRange(Me.anchor,Me.head))}return{text:K,ranges:$}}function Ir(P,K,$,re){P.setAttribute("autocorrect",$?"":"off"),P.setAttribute("autocapitalize",re?"":"off"),P.setAttribute("spellcheck",!!K)}function $r(){var P=I("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),K=I("div",[P],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return o?P.style.width="1000px":P.setAttribute("wrap","off"),a&&(P.style.border="1px solid black"),Ir(P),K}function Tr(P){var K=P.optionHandlers,$=P.helpers={};P.prototype={constructor:P,focus:function(){window.focus(),this.display.input.focus()},setOption:function(ue,Me){var gt=this.options,zt=gt[ue];if(gt[ue]==Me&&ue!="mode")return;gt[ue]=Me,K.hasOwnProperty(ue)&&fa(this,K[ue])(this,Me,zt),St(this,"optionChange",this,ue)},getOption:function(ue){return this.options[ue]},getDoc:function(){return this.doc},addKeyMap:function(ue,Me){this.state.keyMaps[Me?"push":"unshift"](ss(ue))},removeKeyMap:function(ue){for(var Me=this.state.keyMaps,gt=0;gt<Me.length;++gt)if(Me[gt]==ue||Me[gt].name==ue)return Me.splice(gt,1),!0},addOverlay:ro(function(re,ue){var Me=re.token?re:P.getMode(this.options,re);if(Me.startState)throw new Error("Overlays may not be stateful.");se(this.state.overlays,{mode:Me,modeSpec:re,opaque:ue&&ue.opaque,priority:ue&&ue.priority||0},function(gt){return gt.priority}),this.state.modeGen++,ei(this)}),removeOverlay:ro(function(re){for(var ue=this.state.overlays,Me=0;Me<ue.length;++Me){var gt=ue[Me].modeSpec;if(gt==re||typeof re=="string"&&gt.name==re){ue.splice(Me,1),this.state.modeGen++,ei(this);return}}}),indentLine:ro(function(re,ue,Me){typeof ue!="string"&&typeof ue!="number"&&(ue==null?ue=this.options.smartIndent?"smart":"prev":ue=ue?"add":"subtract"),gr(this.doc,re)&&ee(this,re,ue,Me)}),indentSelection:ro(function(re){for(var ue=this.doc.sel.ranges,Me=-1,gt=0;gt<ue.length;gt++){var zt=ue[gt];if(zt.empty())zt.head.line>Me&&(ee(this,zt.head.line,re,!0),Me=zt.head.line,gt==this.doc.sel.primIndex&&wa(this));else{var or=zt.from(),cr=zt.to(),wn=Math.max(Me,or.line);Me=Math.min(this.lastLine(),cr.line-(cr.ch?0:1))+1;for(var Rn=wn;Rn<Me;++Rn)ee(this,Rn,re);var ui=this.doc.sel.ranges;or.ch==0&&ue.length==ui.length&&ui[gt].from().ch>0&&ws(this.doc,gt,new ne(or,ui[gt].to()),de)}}}),getTokenAt:function(ue,Me){return _i(this,ue,Me)},getLineTokens:function(ue,Me){return _i(this,Et(ue),Me,!0)},getTokenTypeAt:function(ue){ue=ut(this.doc,ue);var Me=fn(this,Pe(this.doc,ue.line)),gt=0,zt=(Me.length-1)/2,or=ue.ch,cr;if(or==0)cr=Me[2];else for(;;){var wn=gt+zt>>1;if((wn?Me[wn*2-1]:0)>=or)zt=wn;else if(Me[wn*2+1]<or)gt=wn+1;else{cr=Me[wn*2+2];break}}var Rn=cr?cr.indexOf("overlay "):-1;return Rn<0?cr:Rn==0?null:cr.slice(0,Rn-1)},getModeAt:function(ue){var Me=this.doc.mode;return Me.innerMode?P.innerMode(Me,this.getTokenAt(ue).state).mode:Me},getHelper:function(ue,Me){return this.getHelpers(ue,Me)[0]},getHelpers:function(ue,Me){var gt=[];if(!$.hasOwnProperty(Me))return gt;var zt=$[Me],or=this.getModeAt(ue);if(typeof or[Me]=="string")zt[or[Me]]&&gt.push(zt[or[Me]]);else if(or[Me])for(var cr=0;cr<or[Me].length;cr++){var wn=zt[or[Me][cr]];wn&&gt.push(wn)}else or.helperType&&zt[or.helperType]?gt.push(zt[or.helperType]):zt[or.name]&&gt.push(zt[or.name]);for(var Rn=0;Rn<zt._global.length;Rn++){var ui=zt._global[Rn];ui.pred(or,this)&&z(gt,ui.val)==-1&&gt.push(ui.val)}return gt},getStateAfter:function(ue,Me){var gt=this.doc;return ue=Gt(gt,ue==null?gt.first+gt.size-1:ue),Mn(this,ue+1,Me).state},cursorCoords:function(ue,Me){var gt,zt=this.doc.sel.primary();return ue==null?gt=zt.head:typeof ue=="object"?gt=ut(this.doc,ue):gt=ue?zt.from():zt.to(),li(this,gt,Me||"page")},charCoords:function(ue,Me){return ni(this,ut(this.doc,ue),Me||"page")},coordsChar:function(ue,Me){return ue=vn(this,ue,Me||"page"),Jt(this,ue.left,ue.top)},lineAtHeight:function(ue,Me){return ue=vn(this,{top:ue,left:0},Me||"page").top,Lt(this.doc,ue+this.display.viewOffset)},heightAtLine:function(ue,Me,gt){var zt=!1,or;if(typeof ue=="number"){var cr=this.doc.first+this.doc.size-1;ue<this.doc.first?ue=this.doc.first:ue>cr&&(ue=cr,zt=!0),or=Pe(this.doc,ue)}else or=ue;return cn(this,or,{top:0,left:0},Me||"page",gt||zt).top+(zt?this.doc.height-qr(or):0)},defaultTextHeight:function(){return pn(this.display)},defaultCharWidth:function(){return _n(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(ue,Me,gt,zt,or){var cr=this.display;ue=li(this,ut(this.doc,ue));var wn=ue.bottom,Rn=ue.left;if(Me.style.position="absolute",Me.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Me),cr.sizer.appendChild(Me),zt=="over")wn=ue.top;else if(zt=="above"||zt=="near"){var ui=Math.max(cr.wrapper.clientHeight,this.doc.height),hi=Math.max(cr.sizer.clientWidth,cr.lineSpace.clientWidth);(zt=="above"||ue.bottom+Me.offsetHeight>ui)&&ue.top>Me.offsetHeight?wn=ue.top-Me.offsetHeight:ue.bottom+Me.offsetHeight<=ui&&(wn=ue.bottom),Rn+Me.offsetWidth>hi&&(Rn=hi-Me.offsetWidth)}Me.style.top=wn+"px",Me.style.left=Me.style.right="",or=="right"?(Rn=cr.sizer.clientWidth-Me.offsetWidth,Me.style.right="0px"):(or=="left"?Rn=0:or=="middle"&&(Rn=(cr.sizer.clientWidth-Me.offsetWidth)/2),Me.style.left=Rn+"px"),gt&&ua(this,{left:Rn,top:wn,right:Rn+Me.offsetWidth,bottom:wn+Me.offsetHeight})},triggerOnKeyDown:ro(Bl),triggerOnKeyPress:ro(Ll),triggerOnKeyUp:Ol,triggerOnMouseDown:ro(Au),execCommand:function(ue){if(nu.hasOwnProperty(ue))return nu[ue].call(null,this)},triggerElectric:ro(function(re){Vt(this,re)}),findPosH:function(ue,Me,gt,zt){var or=1;Me<0&&(or=-1,Me=-Me);for(var cr=ut(this.doc,ue),wn=0;wn<Me&&!(cr=xr(this.doc,cr,or,gt,zt),cr.hitSide);++wn);return cr},moveH:ro(function(re,ue){var Me=this;this.extendSelectionsBy(function(gt){return Me.display.shift||Me.doc.extend||gt.empty()?xr(Me.doc,gt.head,re,ue,Me.options.rtlMoveVisually):re<0?gt.from():gt.to()},ve)}),deleteH:ro(function(re,ue){var Me=this.doc.sel,gt=this.doc;Me.somethingSelected()?gt.replaceSelection("",null,"+delete"):Is(this,function(zt){var or=xr(gt,zt.head,re,ue,!1);return re<0?{from:or,to:zt.head}:{from:zt.head,to:or}})}),findPosV:function(ue,Me,gt,zt){var or=1,cr=zt;Me<0&&(or=-1,Me=-Me);for(var wn=ut(this.doc,ue),Rn=0;Rn<Me;++Rn){var ui=li(this,wn,"div");if(cr==null?cr=ui.left:ui.left=cr,wn=zr(this,ui,or,gt),wn.hitSide)break}return wn},moveV:ro(function(re,ue){var Me=this,gt=this.doc,zt=[],or=!this.display.shift&&!gt.extend&&gt.sel.somethingSelected();if(gt.extendSelectionsBy(function(wn){if(or)return re<0?wn.from():wn.to();var Rn=li(Me,wn.head,"div");wn.goalColumn!=null&&(Rn.left=wn.goalColumn),zt.push(Rn.left);var ui=zr(Me,Rn,re,ue);return ue=="page"&&wn==gt.sel.primary()&&Gi(Me,ni(Me,ui,"div").top-Rn.top),ui},ve),zt.length)for(var cr=0;cr<gt.sel.ranges.length;cr++)gt.sel.ranges[cr].goalColumn=zt[cr]}),findWordAt:function(ue){var Me=this.doc,gt=Pe(Me,ue.line).text,zt=ue.ch,or=ue.ch;if(gt){var cr=this.getHelper(ue,"wordChars");(ue.sticky=="before"||or==gt.length)&&zt?--zt:++or;for(var wn=gt.charAt(zt),Rn=G(wn,cr)?function(ui){return G(ui,cr)}:/\s/.test(wn)?function(ui){return/\s/.test(ui)}:function(ui){return!/\s/.test(ui)&&!G(ui)};zt>0&&Rn(gt.charAt(zt-1));)--zt;for(;or<gt.length&&Rn(gt.charAt(or));)++or}return new ne(Et(ue.line,zt),Et(ue.line,or))},toggleOverwrite:function(ue){if(ue!=null&&ue==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?F(this.display.cursorDiv,"CodeMirror-overwrite"):w(this.display.cursorDiv,"CodeMirror-overwrite"),St(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==D()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ro(function(re,ue){na(this,re,ue)}),getScrollInfo:function(){var ue=this.display.scroller;return{left:ue.scrollLeft,top:ue.scrollTop,height:ue.scrollHeight-Tn(this)-this.display.barHeight,width:ue.scrollWidth-Tn(this)-this.display.barWidth,clientHeight:ur(this),clientWidth:en(this)}},scrollIntoView:ro(function(re,ue){re==null?(re={from:this.doc.sel.primary().head,to:null},ue==null&&(ue=this.options.cursorScrollMargin)):typeof re=="number"?re={from:Et(re,0),to:null}:re.from==null&&(re={from:re,to:null}),re.to||(re.to=re.from),re.margin=ue||0,re.from.line!=null?mo(this,re):qi(this,re.from,re.to,re.margin)}),setSize:ro(function(re,ue){var Me=this,gt=function(cr){return typeof cr=="number"||/^\d+$/.test(String(cr))?cr+"px":cr};re!=null&&(this.display.wrapper.style.width=gt(re)),ue!=null&&(this.display.wrapper.style.height=gt(ue)),this.options.lineWrapping&&La(this);var zt=this.display.viewFrom;this.doc.iter(zt,this.display.viewTo,function(or){if(or.widgets){for(var cr=0;cr<or.widgets.length;cr++)if(or.widgets[cr].noHScroll){$e(Me,zt,"widget");break}}++zt}),this.curOp.forceUpdate=!0,St(this,"refresh",this)}),operation:function(ue){return co(this,ue)},startOperation:function(){return go(this)},endOperation:function(){return Sa(this)},refresh:ro(function(){var re=this.display.cachedTextHeight;ei(this),this.curOp.forceUpdate=!0,lo(this),na(this,this.doc.scrollLeft,this.doc.scrollTop),zo(this.display),(re==null||Math.abs(re-pn(this.display))>.5||this.options.lineWrapping)&&pi(this),St(this,"refresh",this)}),swapDoc:ro(function(re){var ue=this.doc;return ue.cm=null,this.state.selectingText&&this.state.selectingText(),Vi(this,re),lo(this),this.display.input.reset(),na(this,re.scrollLeft,re.scrollTop),this.curOp.forceScroll=!0,Hi(this,"swapDoc",this,ue),ue}),phrase:function(ue){var Me=this.options.phrases;return Me&&Object.prototype.hasOwnProperty.call(Me,ue)?Me[ue]:ue},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}},_t(P),P.registerHelper=function(re,ue,Me){$.hasOwnProperty(re)||($[re]=P[re]={_global:[]}),$[re][ue]=Me},P.registerGlobalHelper=function(re,ue,Me,gt){P.registerHelper(re,ue,gt),$[re]._global.push({pred:Me,val:gt})}}function xr(P,K,$,re,ue){var Me=K,gt=$,zt=Pe(P,K.line),or=ue&&P.direction=="rtl"?-$:$;function cr(){var va=K.line+or;return va<P.first||va>=P.first+P.size?!1:(K=new Et(va,K.ch,K.sticky),zt=Pe(P,va))}function wn(va){var Ua;if(re=="codepoint"){var eo=zt.text.charCodeAt(K.ch+(re>0?0:-1));isNaN(eo)?Ua=null:Ua=new Et(K.line,Math.max(0,Math.min(zt.text.length,K.ch+$*(eo>=55296&&eo<56320?2:1))),-$)}else ue?Ua=Yl(P.cm,zt,K,$):Ua=lu(zt,K,$);if(Ua==null)if(!va&&cr())K=uu(ue,P.cm,zt,K.line,or);else return!1;else K=Ua;return!0}if(re=="char"||re=="codepoint")wn();else if(re=="column")wn(!0);else if(re=="word"||re=="group")for(var Rn=null,ui=re=="group",hi=P.cm&&P.cm.getHelper(K,"wordChars"),Wi=!0;!($<0&&!wn(!Wi));Wi=!1){var ia=zt.text.charAt(K.ch)||`
`,xa=G(ia,hi)?"w":ui&&ia==`
`?"n":!ui||/\s/.test(ia)?null:"p";if(ui&&!Wi&&!xa&&(xa="s"),Rn&&Rn!=xa){$<0&&($=1,wn(),K.sticky="after");break}if(xa&&(Rn=xa),$>0&&!wn(!Wi))break}var ba=al(P,K,Me,gt,!0);return rt(Me,ba)&&(ba.hitSide=!0),ba}function zr(P,K,$,re){var ue=P.doc,Me=K.left,gt;if(re=="page"){var zt=Math.min(P.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),or=Math.max(zt-.5*pn(P.display),3);gt=($>0?K.bottom:K.top)+$*or}else re=="line"&&(gt=$>0?K.bottom+3:K.top-3);for(var cr;!(cr=Jt(P,Me,gt),!cr.outside);){if($<0?gt<=0:gt>=ue.height){cr.hitSide=!0;break}gt+=$*5}return cr}var nn=function(K){this.cm=K,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};nn.prototype.init=function(P){var K=this,$=this,re=$.cm,ue=$.div=P.lineDiv;Ir(ue,re.options.spellcheck,re.options.autocorrect,re.options.autocapitalize);function Me(zt){for(var or=zt.target;or;or=or.parentNode){if(or==ue)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(or.className))break}return!1}Oe(ue,"paste",function(zt){if(!Me(zt)||Mt(re,zt)||Dt(zt,re))return;c<=11&&setTimeout(fa(re,function(){return K.updateFromDOM()}),20)}),Oe(ue,"compositionstart",function(zt){K.composing={data:zt.data,done:!1}}),Oe(ue,"compositionupdate",function(zt){K.composing||(K.composing={data:zt.data,done:!1})}),Oe(ue,"compositionend",function(zt){K.composing&&(zt.data!=K.composing.data&&K.readFromDOMSoon(),K.composing.done=!0)}),Oe(ue,"touchstart",function(){return $.forceCompositionEnd()}),Oe(ue,"input",function(){K.composing||K.readFromDOMSoon()});function gt(zt){if(!Me(zt)||Mt(re,zt))return;if(re.somethingSelected())ze({lineWise:!1,text:re.getSelections()}),zt.type=="cut"&&re.replaceSelection("",null,"cut");else if(re.options.lineWiseCopyCut){var or=Zt(re);ze({lineWise:!0,text:or.text}),zt.type=="cut"&&re.operation(function(){re.setSelections(or.ranges,0,de),re.replaceSelection("",null,"cut")})}else return;if(zt.clipboardData){zt.clipboardData.clearData();var cr=Ae.text.join(`
`);if(zt.clipboardData.setData("Text",cr),zt.clipboardData.getData("Text")==cr){zt.preventDefault();return}}var wn=$r(),Rn=wn.firstChild;re.display.lineSpace.insertBefore(wn,re.display.lineSpace.firstChild),Rn.value=Ae.text.join(`
`);var ui=document.activeElement;U(Rn),setTimeout(function(){re.display.lineSpace.removeChild(wn),ui.focus(),ui==ue&&$.showPrimarySelection()},50)}Oe(ue,"copy",gt),Oe(ue,"cut",gt)},nn.prototype.screenReaderLabelChanged=function(P){P?this.div.setAttribute("aria-label",P):this.div.removeAttribute("aria-label")},nn.prototype.prepareSelection=function(){var P=hr(this.cm,!1);return P.focus=document.activeElement==this.div,P},nn.prototype.showSelection=function(P,K){if(!P||!this.cm.display.view.length)return;(P.focus||K)&&this.showPrimarySelection(),this.showMultipleSelections(P)},nn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},nn.prototype.showPrimarySelection=function(){var P=this.getSelection(),K=this.cm,$=K.doc.sel.primary(),re=$.from(),ue=$.to();if(K.display.viewTo==K.display.viewFrom||re.line>=K.display.viewTo||ue.line<K.display.viewFrom){P.removeAllRanges();return}var Me=Bi(K,P.anchorNode,P.anchorOffset),gt=Bi(K,P.focusNode,P.focusOffset);if(Me&&!Me.bad&&gt&&!gt.bad&&it(bt(Me,gt),re)==0&&it(Ht(Me,gt),ue)==0)return;var zt=K.display.view,or=re.line>=K.display.viewFrom&&On(K,re)||{node:zt[0].measure.map[2],offset:0},cr=ue.line<K.display.viewTo&&On(K,ue);if(!cr){var wn=zt[zt.length-1].measure,Rn=wn.maps?wn.maps[wn.maps.length-1]:wn.map;cr={node:Rn[Rn.length-1],offset:Rn[Rn.length-2]-Rn[Rn.length-3]}}if(!or||!cr){P.removeAllRanges();return}var ui=P.rangeCount&&P.getRangeAt(0),hi;try{hi=N(or.node,or.offset,cr.offset,cr.node)}catch(Wi){}hi&&(!C&&K.state.focused?(P.collapse(or.node,or.offset),hi.collapsed||(P.removeAllRanges(),P.addRange(hi))):(P.removeAllRanges(),P.addRange(hi)),ui&&P.anchorNode==null?P.addRange(ui):C&&this.startGracePeriod()),this.rememberSelection()},nn.prototype.startGracePeriod=function(){var P=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){P.gracePeriod=!1,P.selectionChanged()&&P.cm.operation(function(){return P.cm.curOp.selectionChanged=!0})},20)},nn.prototype.showMultipleSelections=function(P){_(this.cm.display.cursorDiv,P.cursors),_(this.cm.display.selectionDiv,P.selection)},nn.prototype.rememberSelection=function(){var P=this.getSelection();this.lastAnchorNode=P.anchorNode,this.lastAnchorOffset=P.anchorOffset,this.lastFocusNode=P.focusNode,this.lastFocusOffset=P.focusOffset},nn.prototype.selectionInEditor=function(){var P=this.getSelection();if(!P.rangeCount)return!1;var K=P.getRangeAt(0).commonAncestorContainer;return R(this.div,K)},nn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},nn.prototype.blur=function(){this.div.blur()},nn.prototype.getField=function(){return this.div},nn.prototype.supportsTouch=function(){return!0},nn.prototype.receivedFocus=function(){var P=this;this.selectionInEditor()?this.pollSelection():co(this.cm,function(){return P.cm.curOp.selectionChanged=!0});function K(){P.cm.state.focused&&(P.pollSelection(),P.polling.set(P.cm.options.pollInterval,K))}this.polling.set(this.cm.options.pollInterval,K)},nn.prototype.selectionChanged=function(){var P=this.getSelection();return P.anchorNode!=this.lastAnchorNode||P.anchorOffset!=this.lastAnchorOffset||P.focusNode!=this.lastFocusNode||P.focusOffset!=this.lastFocusOffset},nn.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var P=this.getSelection(),K=this.cm;if(s&&i&&this.cm.display.gutterSpecs.length&&gi(P.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(this.composing)return;this.rememberSelection();var $=Bi(K,P.anchorNode,P.anchorOffset),re=Bi(K,P.focusNode,P.focusOffset);$&&re&&co(K,function(){fs(K.doc,be($,re),de),($.bad||re.bad)&&(K.curOp.selectionChanged=!0)})},nn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var P=this.cm,K=P.display,$=P.doc.sel.primary(),re=$.from(),ue=$.to();if(re.ch==0&&re.line>P.firstLine()&&(re=Et(re.line-1,Pe(P.doc,re.line-1).length)),ue.ch==Pe(P.doc,ue.line).text.length&&ue.line<P.lastLine()&&(ue=Et(ue.line+1,0)),re.line<K.viewFrom||ue.line>K.viewTo-1)return!1;var Me,gt,zt;re.line==K.viewFrom||(Me=ji(P,re.line))==0?(gt=xt(K.view[0].line),zt=K.view[0].node):(gt=xt(K.view[Me].line),zt=K.view[Me-1].node.nextSibling);var or=ji(P,ue.line),cr,wn;if(or==K.view.length-1?(cr=K.viewTo-1,wn=K.lineDiv.lastChild):(cr=xt(K.view[or+1].line)-1,wn=K.view[or+1].node.previousSibling),!zt)return!1;for(var Rn=P.doc.splitLines(Qi(P,zt,wn,gt,cr)),ui=at(P.doc,Et(gt,0),Et(cr,Pe(P.doc,cr).text.length));Rn.length>1&&ui.length>1;)if(me(Rn)==me(ui))Rn.pop(),ui.pop(),cr--;else if(Rn[0]==ui[0])Rn.shift(),ui.shift(),gt++;else break;for(var hi=0,Wi=0,ia=Rn[0],xa=ui[0],ba=Math.min(ia.length,xa.length);hi<ba&&ia.charCodeAt(hi)==xa.charCodeAt(hi);)++hi;for(var va=me(Rn),Ua=me(ui),eo=Math.min(va.length-(Rn.length==1?hi:0),Ua.length-(ui.length==1?hi:0));Wi<eo&&va.charCodeAt(va.length-Wi-1)==Ua.charCodeAt(Ua.length-Wi-1);)++Wi;if(Rn.length==1&&ui.length==1&&gt==re.line)for(;hi&&hi>re.ch&&va.charCodeAt(va.length-Wi-1)==Ua.charCodeAt(Ua.length-Wi-1);)hi--,Wi++;Rn[Rn.length-1]=va.slice(0,va.length-Wi).replace(/^\u200b+/,""),Rn[0]=Rn[0].slice(hi).replace(/\u200b+$/,"");var ko=Et(gt,hi),To=Et(cr,ui.length?me(ui).length-Wi:0);if(Rn.length>1||Rn[0]||it(ko,To))return rl(P.doc,Rn,ko,To,"+input"),!0},nn.prototype.ensurePolled=function(){this.forceCompositionEnd()},nn.prototype.reset=function(){this.forceCompositionEnd()},nn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},nn.prototype.readFromDOMSoon=function(){var P=this;if(this.readDOMTimeout!=null)return;this.readDOMTimeout=setTimeout(function(){if(P.readDOMTimeout=null,P.composing)if(P.composing.done)P.composing=null;else return;P.updateFromDOM()},80)},nn.prototype.updateFromDOM=function(){var P=this;(this.cm.isReadOnly()||!this.pollContent())&&co(this.cm,function(){return ei(P.cm)})},nn.prototype.setUneditable=function(P){P.contentEditable="false"},nn.prototype.onKeyPress=function(P){if(P.charCode==0||this.composing)return;P.preventDefault(),this.cm.isReadOnly()||fa(this.cm,lt)(this.cm,String.fromCharCode(P.charCode==null?P.keyCode:P.charCode),0)},nn.prototype.readOnlyChanged=function(P){this.div.contentEditable=String(P!="nocursor")},nn.prototype.onContextMenu=function(){},nn.prototype.resetPosition=function(){},nn.prototype.needsContentAttribute=!0;function On(P,K){var $=Ci(P,K.line);if(!$||$.hidden)return null;var re=Pe(P.doc,K.line),ue=Bn($,re,K.line),Me=vt(re,P.doc.direction),gt="left";if(Me){var zt=Ee(Me,K.ch);gt=zt%2?"right":"left"}var or=da(ue.map,K.ch,gt);return or.offset=or.collapse=="right"?or.end:or.start,or}function gi(P){for(var K=P;K;K=K.parentNode)if(/CodeMirror-gutter-wrapper/.test(K.className))return!0;return!1}function Ai(P,K){return K&&(P.bad=!0),P}function Qi(P,K,$,re,ue){var Me="",gt=!1,zt=P.doc.lineSeparator(),or=!1;function cr(hi){return function(Wi){return Wi.id==hi}}function wn(){gt&&(Me+=zt,or&&(Me+=zt),gt=or=!1)}function Rn(hi){hi&&(wn(),Me+=hi)}function ui(hi){if(hi.nodeType==1){var Wi=hi.getAttribute("cm-text");if(Wi){Rn(Wi);return}var ia=hi.getAttribute("cm-marker"),xa;if(ia){var ba=P.findMarks(Et(re,0),Et(ue+1,0),cr(+ia));ba.length&&(xa=ba[0].find(0))&&Rn(at(P.doc,xa.from,xa.to).join(zt));return}if(hi.getAttribute("contenteditable")=="false")return;var va=/^(pre|div|p|li|table|br)$/i.test(hi.nodeName);if(!/^br$/i.test(hi.nodeName)&&hi.textContent.length==0)return;va&&wn();for(var Ua=0;Ua<hi.childNodes.length;Ua++)ui(hi.childNodes[Ua]);/^(pre|p)$/i.test(hi.nodeName)&&(or=!0),va&&(gt=!0)}else hi.nodeType==3&&Rn(hi.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(ui(K),K==$);)K=K.nextSibling,or=!1;return Me}function Bi(P,K,$){var re;if(K==P.display.lineDiv){if(re=P.display.lineDiv.childNodes[$],!re)return Ai(P.clipPos(Et(P.display.viewTo-1)),!0);K=null,$=0}else for(re=K;;re=re.parentNode){if(!re||re==P.display.lineDiv)return null;if(re.parentNode&&re.parentNode==P.display.lineDiv)break}for(var ue=0;ue<P.display.view.length;ue++){var Me=P.display.view[ue];if(Me.node==re)return Ma(Me,K,$)}}function Ma(P,K,$){var re=P.text.firstChild,ue=!1;if(!K||!R(re,K))return Ai(Et(xt(P.line),0),!0);if(K==re&&(ue=!0,K=re.childNodes[$],$=0,!K)){var Me=P.rest?me(P.rest):P.line;return Ai(Et(xt(Me),Me.text.length),ue)}var gt=K.nodeType==3?K:null,zt=K;for(!gt&&K.childNodes.length==1&&K.firstChild.nodeType==3&&(gt=K.firstChild,$&&($=gt.nodeValue.length));zt.parentNode!=re;)zt=zt.parentNode;var or=P.measure,cr=or.maps;function wn(xa,ba,va){for(var Ua=-1;Ua<(cr?cr.length:0);Ua++)for(var eo=Ua<0?or.map:cr[Ua],ko=0;ko<eo.length;ko+=3){var To=eo[ko+2];if(To==xa||To==ba){var ns=xt(Ua<0?P.line:P.rest[Ua]),Ss=eo[ko]+va;return(va<0||To!=xa)&&(Ss=eo[ko+(va?1:0)]),Et(ns,Ss)}}}var Rn=wn(gt,zt,$);if(Rn)return Ai(Rn,ue);for(var ui=zt.nextSibling,hi=gt?gt.nodeValue.length-$:0;ui;ui=ui.nextSibling){if(Rn=wn(ui,ui.firstChild,0),Rn)return Ai(Et(Rn.line,Rn.ch-hi),ue);hi+=ui.textContent.length}for(var Wi=zt.previousSibling,ia=$;Wi;Wi=Wi.previousSibling){if(Rn=wn(Wi,Wi.firstChild,-1),Rn)return Ai(Et(Rn.line,Rn.ch+ia),ue);ia+=Wi.textContent.length}}var ea=function(K){this.cm=K,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null};ea.prototype.init=function(P){var K=this,$=this,re=this.cm;this.createField(P);var ue=this.textarea;P.wrapper.insertBefore(this.wrapper,P.wrapper.firstChild),a&&(ue.style.width="0px"),Oe(ue,"input",function(){f&&c>=9&&K.hasSelection&&(K.hasSelection=null),$.poll()}),Oe(ue,"paste",function(gt){if(Mt(re,gt)||Dt(gt,re))return;re.state.pasteIncoming=+new Date,$.fastPoll()});function Me(gt){if(Mt(re,gt))return;if(re.somethingSelected())ze({lineWise:!1,text:re.getSelections()});else if(re.options.lineWiseCopyCut){var zt=Zt(re);ze({lineWise:!0,text:zt.text}),gt.type=="cut"?re.setSelections(zt.ranges,null,de):($.prevInput="",ue.value=zt.text.join(`
`),U(ue))}else return;gt.type=="cut"&&(re.state.cutIncoming=+new Date)}Oe(ue,"cut",Me),Oe(ue,"copy",Me),Oe(P.scroller,"paste",function(gt){if(Bo(P,gt)||Mt(re,gt))return;if(!ue.dispatchEvent){re.state.pasteIncoming=+new Date,$.focus();return}var zt=new Event("paste");zt.clipboardData=gt.clipboardData,ue.dispatchEvent(zt)}),Oe(P.lineSpace,"selectstart",function(gt){Bo(P,gt)||Xe(gt)}),Oe(ue,"compositionstart",function(){var gt=re.getCursor("from");$.composing&&$.composing.range.clear(),$.composing={start:gt,range:re.markText(gt,re.getCursor("to"),{className:"CodeMirror-composing"})}}),Oe(ue,"compositionend",function(){$.composing&&($.poll(),$.composing.range.clear(),$.composing=null)})},ea.prototype.createField=function(P){this.wrapper=$r(),this.textarea=this.wrapper.firstChild},ea.prototype.screenReaderLabelChanged=function(P){P?this.textarea.setAttribute("aria-label",P):this.textarea.removeAttribute("aria-label")},ea.prototype.prepareSelection=function(){var P=this.cm,K=P.display,$=P.doc,re=hr(P);if(P.options.moveInputWithCursor){var ue=li(P,$.sel.primary().head,"div"),Me=K.wrapper.getBoundingClientRect(),gt=K.lineDiv.getBoundingClientRect();re.teTop=Math.max(0,Math.min(K.wrapper.clientHeight-10,ue.top+gt.top-Me.top)),re.teLeft=Math.max(0,Math.min(K.wrapper.clientWidth-10,ue.left+gt.left-Me.left))}return re},ea.prototype.showSelection=function(P){var K=this.cm,$=K.display;_($.cursorDiv,P.cursors),_($.selectionDiv,P.selection),P.teTop!=null&&(this.wrapper.style.top=P.teTop+"px",this.wrapper.style.left=P.teLeft+"px")},ea.prototype.reset=function(P){if(this.contextMenuPending||this.composing)return;var K=this.cm;if(K.somethingSelected()){this.prevInput="";var $=K.getSelection();this.textarea.value=$,K.state.focused&&U(this.textarea),f&&c>=9&&(this.hasSelection=$)}else P||(this.prevInput=this.textarea.value="",f&&c>=9&&(this.hasSelection=null))},ea.prototype.getField=function(){return this.textarea},ea.prototype.supportsTouch=function(){return!1},ea.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!u||D()!=this.textarea))try{this.textarea.focus()}catch(P){}},ea.prototype.blur=function(){this.textarea.blur()},ea.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ea.prototype.receivedFocus=function(){this.slowPoll()},ea.prototype.slowPoll=function(){var P=this;if(this.pollingFast)return;this.polling.set(this.cm.options.pollInterval,function(){P.poll(),P.cm.state.focused&&P.slowPoll()})},ea.prototype.fastPoll=function(){var P=!1,K=this;K.pollingFast=!0;function $(){var re=K.poll();!re&&!P?(P=!0,K.polling.set(60,$)):(K.pollingFast=!1,K.slowPoll())}K.polling.set(20,$)},ea.prototype.poll=function(){var P=this,K=this.cm,$=this.textarea,re=this.prevInput;if(this.contextMenuPending||!K.state.focused||Wt($)&&!re&&!this.composing||K.isReadOnly()||K.options.disableInput||K.state.keySeq)return!1;var ue=$.value;if(ue==re&&!K.somethingSelected())return!1;if(f&&c>=9&&this.hasSelection===ue||h&&/[\uf700-\uf7ff]/.test(ue))return K.display.input.reset(),!1;if(K.doc.sel==K.display.selForContextMenu){var Me=ue.charCodeAt(0);if(Me==8203&&!re&&(re="\u200B"),Me==8666)return this.reset(),this.cm.execCommand("undo")}for(var gt=0,zt=Math.min(re.length,ue.length);gt<zt&&re.charCodeAt(gt)==ue.charCodeAt(gt);)++gt;return co(K,function(){lt(K,ue.slice(gt),re.length-gt,null,P.composing?"*compose":null),ue.length>1e3||ue.indexOf(`
`)>-1?$.value=P.prevInput="":P.prevInput=ue,P.composing&&(P.composing.range.clear(),P.composing.range=K.markText(P.composing.start,K.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ea.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ea.prototype.onKeyPress=function(){f&&c>=9&&(this.hasSelection=null),this.fastPoll()},ea.prototype.onContextMenu=function(P){var K=this,$=K.cm,re=$.display,ue=K.textarea;K.contextMenuPending&&K.contextMenuPending();var Me=ri($,P),gt=re.scroller.scrollTop;if(!Me||n)return;var zt=$.options.resetSelectionOnContextMenu;zt&&$.doc.sel.contains(Me)==-1&&fa($,fs)($.doc,be(Me),de);var or=ue.style.cssText,cr=K.wrapper.style.cssText,wn=K.wrapper.offsetParent.getBoundingClientRect();K.wrapper.style.cssText="position: static",ue.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(P.clientY-wn.top-5)+"px; left: "+(P.clientX-wn.left-5)+`px;
z-index: 1000; background: `+(f?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Rn;o&&(Rn=window.scrollY),re.input.focus(),o&&window.scrollTo(null,Rn),re.input.reset(),$.somethingSelected()||(ue.value=K.prevInput=" "),K.contextMenuPending=hi,re.selForContextMenu=$.doc.sel,clearTimeout(re.detectingSelectAll);function ui(){if(ue.selectionStart!=null){var ia=$.somethingSelected(),xa="\u200B"+(ia?ue.value:"");ue.value="\u21DA",ue.value=xa,K.prevInput=ia?"":"\u200B",ue.selectionStart=1,ue.selectionEnd=xa.length,re.selForContextMenu=$.doc.sel}}function hi(){if(K.contextMenuPending!=hi)return;if(K.contextMenuPending=!1,K.wrapper.style.cssText=cr,ue.style.cssText=or,f&&c<9&&re.scrollbars.setScrollTop(re.scroller.scrollTop=gt),ue.selectionStart!=null){(!f||f&&c<9)&&ui();var ia=0,xa=function ba(){re.selForContextMenu==$.doc.sel&&ue.selectionStart==0&&ue.selectionEnd>0&&K.prevInput=="\u200B"?fa($,bl)($):ia++<10?re.detectingSelectAll=setTimeout(ba,500):(re.selForContextMenu=null,re.input.reset())};re.detectingSelectAll=setTimeout(xa,200)}}if(f&&c>=9&&ui(),E){Be(P);var Wi=function ia(){Je(window,"mouseup",ia),setTimeout(hi,20)};Oe(window,"mouseup",Wi)}else setTimeout(hi,50)},ea.prototype.readOnlyChanged=function(P){P||this.reset(),this.textarea.disabled=P=="nocursor",this.textarea.readOnly=!!P},ea.prototype.setUneditable=function(){},ea.prototype.needsContentAttribute=!1;function oo(P,K){if(K=K?j(K):{},K.value=P.value,!K.tabindex&&P.tabIndex&&(K.tabindex=P.tabIndex),!K.placeholder&&P.placeholder&&(K.placeholder=P.placeholder),K.autofocus==null){var $=D();K.autofocus=$==P||P.getAttribute("autofocus")!=null&&$==document.body}function re(){P.value=zt.getValue()}var ue;if(P.form&&(Oe(P.form,"submit",re),!K.leaveSubmitMethodAlone)){var Me=P.form;ue=Me.submit;try{var gt=Me.submit=function(){re(),Me.submit=ue,Me.submit(),Me.submit=gt}}catch(or){}}K.finishInit=function(or){or.save=re,or.getTextArea=function(){return P},or.toTextArea=function(){or.toTextArea=isNaN,re(),P.parentNode.removeChild(or.getWrapperElement()),P.style.display="",P.form&&(Je(P.form,"submit",re),!K.leaveSubmitMethodAlone&&typeof P.form.submit=="function"&&(P.form.submit=ue))}},P.style.display="none";var zt=Er(function(or){return P.parentNode.insertBefore(or,P.nextSibling)},K);return zt}function Ba(P){P.off=Je,P.on=Oe,P.wheelEventPixels=Wr,P.Doc=$s,P.splitLines=Lr,P.countColumn=W,P.findColumn=_e,P.isWordChar=Y,P.Pass=q,P.signal=St,P.Line=Ti,P.changeEnd=Ue,P.scrollbarModel=Ka,P.Pos=Et,P.cmpPos=it,P.modes=st,P.mimeModes=Rr,P.resolveMode=zn,P.getMode=Ii,P.modeExtensions=yn,P.extendMode=Nn,P.copyState=jt,P.startState=Re,P.innerMode=At,P.commands=nu,P.keyMap=jo,P.keyName=Js,P.isModifierKey=Cs,P.lookupKey=cs,P.normalizeKeyMap=us,P.StringStream=Ke,P.SharedTextMarker=kl,P.TextMarker=il,P.LineWidget=Zs,P.e_preventDefault=Xe,P.e_stopPropagation=ie,P.e_stop=Be,P.addClass=F,P.contains=R,P.rmClass=w,P.keyNames=Cl}je(Er),Tr(Er);var Ro="iter insert remove copy getEditor constructor".split(" ");for(var Zo in $s.prototype)$s.prototype.hasOwnProperty(Zo)&&z(Ro,Zo)<0&&(Er.prototype[Zo]=function(P){return function(){return P.apply(this.doc,arguments)}}($s.prototype[Zo]));return _t($s),Er.inputStyles={textarea:ea,contenteditable:nn},Er.defineMode=function(P){!Er.defaults.mode&&P!="null"&&(Er.defaults.mode=P),on.apply(this,arguments)},Er.defineMIME=Sn,Er.defineMode("null",function(){return{token:function(K){return K.skipToEnd()}}}),Er.defineMIME("text/plain","null"),Er.defineExtension=function(P,K){Er.prototype[P]=K},Er.defineDocExtension=function(P,K){$s.prototype[P]=K},Er.fromTextArea=oo,Ba(Er),Er.version="5.58.2",Er})},Vy0f:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("iYpf"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},W2nI:function(H,k,d){var O=d("IwbS"),x=d("ProS"),C=d("bYtY"),A=["itemStyle","opacity"],b=["emphasis","itemStyle","opacity"],g=["lineStyle","opacity"],f=["emphasis","lineStyle","opacity"];function c(l,t){return l.getVisual("opacity")||l.getModel().get(t)}function o(l,t,a){var s=l.getGraphicEl(),u=c(l,t);a!=null&&(u==null&&(u=1),u*=a),s.downplay&&s.downplay(),s.traverse(function(h){h.type!=="group"&&h.setStyle("opacity",u)})}function r(l,t){var a=c(l,t),s=l.getGraphicEl();s.traverse(function(u){u.type!=="group"&&u.setStyle("opacity",a)}),s.highlight&&s.highlight()}var i=O.extendShape({shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,cpx2:0,cpy2:0,extent:0,orient:""},buildPath:function(l,t){var a=t.extent;l.moveTo(t.x1,t.y1),l.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),t.orient==="vertical"?(l.lineTo(t.x2+a,t.y2),l.bezierCurveTo(t.cpx2+a,t.cpy2,t.cpx1+a,t.cpy1,t.x1+a,t.y1)):(l.lineTo(t.x2,t.y2+a),l.bezierCurveTo(t.cpx2,t.cpy2+a,t.cpx1,t.cpy1+a,t.x1,t.y1+a)),l.closePath()},highlight:function(){this.trigger("emphasis")},downplay:function(){this.trigger("normal")}}),n=x.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(l,t,a){var s=this,u=l.getGraph(),h=this.group,p=l.layoutInfo,m=p.width,v=p.height,y=l.getData(),E=l.getData("edge"),T=l.get("orient");this._model=l,h.removeAll(),h.attr("position",[p.x,p.y]),u.eachEdge(function(w){var S=new i;S.dataIndex=w.dataIndex,S.seriesIndex=l.seriesIndex,S.dataType="edge";var _=w.getModel("lineStyle"),I=_.get("curveness"),L=w.node1.getLayout(),N=w.node1.getModel(),R=N.get("localX"),D=N.get("localY"),F=w.node2.getLayout(),M=w.node2.getModel(),U=M.get("localX"),B=M.get("localY"),j=w.getLayout(),W,V,z,J,q,de,ae,ve;S.shape.extent=Math.max(1,j.dy),S.shape.orient=T,T==="vertical"?(W=(R!=null?R*m:L.x)+j.sy,V=(D!=null?D*v:L.y)+L.dy,z=(U!=null?U*m:F.x)+j.ty,J=B!=null?B*v:F.y,q=W,de=V*(1-I)+J*I,ae=z,ve=V*I+J*(1-I)):(W=(R!=null?R*m:L.x)+L.dx,V=(D!=null?D*v:L.y)+j.sy,z=U!=null?U*m:F.x,J=(B!=null?B*v:F.y)+j.ty,q=W*(1-I)+z*I,de=V,ae=W*I+z*(1-I),ve=J),S.setShape({x1:W,y1:V,x2:z,y2:J,cpx1:q,cpy1:de,cpx2:ae,cpy2:ve}),S.setStyle(_.getItemStyle());switch(S.style.fill){case"source":S.style.fill=w.node1.getVisual("color");break;case"target":S.style.fill=w.node2.getVisual("color");break}O.setHoverStyle(S,w.getModel("emphasis.lineStyle").getItemStyle()),h.add(S),E.setItemGraphicEl(w.dataIndex,S)}),u.eachNode(function(w){var S=w.getLayout(),_=w.getModel(),I=_.get("localX"),L=_.get("localY"),N=_.getModel("label"),R=_.getModel("emphasis.label"),D=new O.Rect({shape:{x:I!=null?I*m:S.x,y:L!=null?L*v:S.y,width:S.dx,height:S.dy},style:_.getModel("itemStyle").getItemStyle()}),F=w.getModel("emphasis.itemStyle").getItemStyle();O.setLabelStyle(D.style,F,N,R,{labelFetcher:l,labelDataIndex:w.dataIndex,defaultText:w.id,isRectText:!0}),D.setStyle("fill",w.getVisual("color")),O.setHoverStyle(D,F),h.add(D),y.setItemGraphicEl(w.dataIndex,D),D.dataType="node"}),y.eachItemGraphicEl(function(w,S){var _=y.getItemModel(S);_.get("draggable")&&(w.drift=function(I,L){s._focusAdjacencyDisabled=!0,this.shape.x+=I,this.shape.y+=L,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:l.id,dataIndex:y.getRawIndex(S),localX:this.shape.x/m,localY:this.shape.y/v})},w.ondragend=function(){s._focusAdjacencyDisabled=!1},w.draggable=!0,w.cursor="move"),w.highlight=function(){this.trigger("emphasis")},w.downplay=function(){this.trigger("normal")},w.focusNodeAdjHandler&&w.off("mouseover",w.focusNodeAdjHandler),w.unfocusNodeAdjHandler&&w.off("mouseout",w.unfocusNodeAdjHandler),_.get("focusNodeAdjacency")&&(w.on("mouseover",w.focusNodeAdjHandler=function(){s._focusAdjacencyDisabled||(s._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,dataIndex:w.dataIndex}))}),w.on("mouseout",w.unfocusNodeAdjHandler=function(){s._focusAdjacencyDisabled||s._dispatchUnfocus(a)}))}),E.eachItemGraphicEl(function(w,S){var _=E.getItemModel(S);w.focusNodeAdjHandler&&w.off("mouseover",w.focusNodeAdjHandler),w.unfocusNodeAdjHandler&&w.off("mouseout",w.unfocusNodeAdjHandler),_.get("focusNodeAdjacency")&&(w.on("mouseover",w.focusNodeAdjHandler=function(){s._focusAdjacencyDisabled||(s._clearTimer(),a.dispatchAction({type:"focusNodeAdjacency",seriesId:l.id,edgeDataIndex:w.dataIndex}))}),w.on("mouseout",w.unfocusNodeAdjHandler=function(){s._focusAdjacencyDisabled||s._dispatchUnfocus(a)}))}),!this._data&&l.get("animation")&&h.setClipPath(e(h.getBoundingRect(),l,function(){h.removeClipPath()})),this._data=l.getData()},dispose:function(){this._clearTimer()},_dispatchUnfocus:function(l){var t=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){t._unfocusDelayTimer=null,l.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(l,t,a,s){var u=l.getData(),h=u.graph,p=s.dataIndex,m=u.getItemModel(p),v=s.edgeDataIndex;if(p==null&&v==null)return;var y=h.getNodeByIndex(p),E=h.getEdgeByIndex(v);if(h.eachNode(function(w){o(w,A,.1)}),h.eachEdge(function(w){o(w,g,.1)}),y){r(y,b);var T=m.get("focusNodeAdjacency");T==="outEdges"?C.each(y.outEdges,function(w){if(w.dataIndex<0)return;r(w,f),r(w.node2,b)}):T==="inEdges"?C.each(y.inEdges,function(w){if(w.dataIndex<0)return;r(w,f),r(w.node1,b)}):T==="allEdges"&&C.each(y.edges,function(w){if(w.dataIndex<0)return;r(w,f),w.node1!==y&&r(w.node1,b),w.node2!==y&&r(w.node2,b)})}E&&(r(E,f),r(E.node1,b),r(E.node2,b))},unfocusNodeAdjacency:function(l,t,a,s){var u=l.getGraph();u.eachNode(function(h){o(h,A)}),u.eachEdge(function(h){o(h,g)})}});function e(l,t,a){var s=new O.Rect({shape:{x:l.x-10,y:l.y-10,width:0,height:l.height+20}});return O.initProps(s,{shape:{width:l.width+20}},t,a),s}H.exports=n},W4dC:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=C.each,b=C.createHashMap,g=d("7DRL"),f=d("TIY9"),c=d("yS9w"),o=d("mFDi"),r={geoJSON:f,svg:c},i={load:function(t,a,s){var u=[],h=b(),p=b(),m,v=l(t);return A(v,function(y){var E=r[y.type].load(t,y,s);A(E.regions,function(w){var S=w.name;a&&a.hasOwnProperty(S)&&(w=w.cloneShallow(S=a[S])),u.push(w),h.set(S,w),p.set(S,w.center)});var T=E.boundingRect;T&&(m?m.union(T):m=T.clone())}),{regions:u,regionsMap:h,nameCoordMap:p,boundingRect:m||new o(0,0,0,0)}},makeGraphic:n("makeGraphic"),removeGraphic:n("removeGraphic")};function n(t){return function(a,s){var u=l(a),h=[];return A(u,function(p){var m=r[p.type][t];m&&h.push(m(a,p,s))}),h}}function e(t){}function l(t){var a=g.retrieveMap(t)||[];return a}H.exports=i},WGYa:function(H,k,d){var O=d("7yuC"),x=O.forceLayout,C=d("HF/U"),A=C.simpleLayout,b=d("lOQZ"),g=b.circularLayout,f=d("OELB"),c=f.linearMap,o=d("QBsz"),r=d("bYtY");function i(n){n.eachSeriesByType("graph",function(e){var l=e.coordinateSystem;if(l&&l.type!=="view")return;if(e.get("layout")==="force"){var t=e.preservedPoints||{},a=e.getGraph(),s=a.data,u=a.edgeData,h=e.getModel("force"),p=h.get("initLayout");e.preservedPoints?s.each(function(N){var R=s.getId(N);s.setItemLayout(N,t[R]||[NaN,NaN])}):!p||p==="none"?A(e):p==="circular"&&g(e,"value");var m=s.getDataExtent("value"),v=u.getDataExtent("value"),y=h.get("repulsion"),E=h.get("edgeLength");r.isArray(y)||(y=[y,y]),r.isArray(E)||(E=[E,E]),E=[E[1],E[0]];var T=s.mapArray("value",function(N,R){var D=s.getItemLayout(R),F=c(N,m,y);return isNaN(F)&&(F=(y[0]+y[1])/2),{w:F,rep:F,fixed:s.getItemModel(R).get("fixed"),p:!D||isNaN(D[0])||isNaN(D[1])?null:D}}),w=u.mapArray("value",function(N,R){var D=a.getEdgeByIndex(R),F=c(N,v,E);isNaN(F)&&(F=(E[0]+E[1])/2);var M=D.getModel();return{n1:T[D.node1.dataIndex],n2:T[D.node2.dataIndex],d:F,curveness:M.get("lineStyle.curveness")||0,ignoreForceLayout:M.get("ignoreForceLayout")}}),l=e.coordinateSystem,S=l.getBoundingRect(),_=x(T,w,{rect:S,gravity:h.get("gravity"),friction:h.get("friction")}),I=_.step;_.step=function(N){for(var R=0,D=T.length;R<D;R++)T[R].fixed&&o.copy(T[R].p,a.getNodeByIndex(R).getLayout());I(function(F,M,U){for(var B=0,j=F.length;B<j;B++)F[B].fixed||a.getNodeByIndex(B).setLayout(F[B].p),t[s.getId(B)]=F[B].p;for(var B=0,j=M.length;B<j;B++){var W=M[B],V=a.getEdgeByIndex(B),z=W.n1.p,J=W.n2.p,q=V.getLayout();q=q?q.slice():[],q[0]=q[0]||[],q[1]=q[1]||[],o.copy(q[0],z),o.copy(q[1],J),+W.curveness&&(q[2]=[(z[0]+J[0])/2-(z[1]-J[1])*W.curveness,(z[1]+J[1])/2-(J[0]-z[0])*W.curveness]),V.setLayout(q)}N&&N(U)})},e.forceLayout=_,e.preservedPoints=t,_.step()}else e.forceLayout=null})}H.exports=i},"WN+l":function(H,k,d){var O=d("bYtY"),x=d("IwbS");function C(b,g,f,c){var o=f.axis;if(o.scale.isBlank())return;var r=f.getModel("splitArea"),i=r.getModel("areaStyle"),n=i.get("color"),e=c.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:r,clamp:!0});if(!l.length)return;var t=n.length,a=b.__splitAreaColors,s=O.createHashMap(),u=0;if(a)for(var h=0;h<l.length;h++){var p=a.get(l[h].tickValue);if(p!=null){u=(p+(t-1)*h)%t;break}}var m=o.toGlobalCoord(l[0].coord),v=i.getAreaStyle();n=O.isArray(n)?n:[n];for(var h=1;h<l.length;h++){var y=o.toGlobalCoord(l[h].coord),E,T,w,S;o.isHorizontal()?(E=m,T=e.y,w=y-E,S=e.height,m=E+w):(E=e.x,T=m,w=e.width,S=y-T,m=T+S);var _=l[h-1].tickValue;_!=null&&s.set(_,u),g.add(new x.Rect({anid:_!=null?"area_"+_:null,shape:{x:E,y:T,width:w,height:S},style:O.defaults({fill:n[u]},v),silent:!0})),u=(u+1)%t}b.__splitAreaColors=s}function A(b){b.__splitAreaColors=null}k.rectCoordAxisBuildSplitArea=C,k.rectCoordAxisHandleRemove=A},WXVj:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("Bqw1")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="MinusSquareOutlined";var c=A.forwardRef(f);k.default=c},WYAk:function(H,k,d){(function(O,x){H.exports=k=x(d("Ib8C"))})(this,function(O){(function(){var x=O,C=x.lib,A=C.Base,b=x.enc,g=b.Utf8,f=x.algo,c=f.HMAC=A.extend({init:function(r,i){r=this._hasher=new r.init,typeof i=="string"&&(i=g.parse(i));var n=r.blockSize,e=n*4;i.sigBytes>e&&(i=r.finalize(i)),i.clamp();for(var l=this._oKey=i.clone(),t=this._iKey=i.clone(),a=l.words,s=t.words,u=0;u<n;u++)a[u]^=1549556828,s[u]^=909522486;l.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 i=this._hasher,n=i.finalize(r);i.reset();var e=i.finalize(this._oKey.clone().concat(n));return e}})})()})},Wqna:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=C.isObject,b=C.each,g=C.map,f=C.indexOf,c=C.retrieve,o=d("+TT/"),r=o.getLayoutRect,i=d("aX7z"),n=i.createScaleByModel,e=i.ifAxisCrossZero,l=i.niceScaleExtent,t=i.estimateLabelUnionRect,a=d("y+lR"),s=d("7AJT"),u=d("IDmD"),h=d("7hqr"),p=h.getStackedDimension;d("jtI2");function m(N,R,D){return N.getCoordSysModel()===R}function v(N,R,D){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(N,R,D),this.model=N}var y=v.prototype;y.type="grid",y.axisPointerEnabled=!0,y.getRect=function(){return this._rect},y.update=function(N,R){var D=this._axesMap;this._updateScale(N,this.model),b(D.x,function(M){l(M.scale,M.model)}),b(D.y,function(M){l(M.scale,M.model)});var F={};b(D.x,function(M){E(D,"y",M,F)}),b(D.y,function(M){E(D,"x",M,F)}),this.resize(this.model,R)};function E(N,R,D,F){D.getAxesOnZeroOf=function(){return U?[U]:[]};var M=N[R],U,B=D.model,j=B.get("axisLine.onZero"),W=B.get("axisLine.onZeroAxisIndex");if(!j)return;if(W!=null)T(M[W])&&(U=M[W]);else for(var V in M)if(M.hasOwnProperty(V)&&T(M[V])&&!F[z(M[V])]){U=M[V];break}U&&(F[z(U)]=!0);function z(J){return J.dim+"_"+J.index}}function T(N){return N&&N.type!=="category"&&N.type!=="time"&&e(N)}y.resize=function(N,R,D){var F=r(N.getBoxLayoutParams(),{width:R.getWidth(),height:R.getHeight()});this._rect=F;var M=this._axesList;U(),!D&&N.get("containLabel")&&(b(M,function(B){if(!B.model.get("axisLabel.inside")){var j=t(B);if(j){var W=B.isHorizontal()?"height":"width",V=B.model.get("axisLabel.margin");F[W]-=j[W]+V,B.position==="top"?F.y+=j.height+V:B.position==="left"&&(F.x+=j.width+V)}}}),U());function U(){b(M,function(B){var j=B.isHorizontal(),W=j?[0,F.width]:[0,F.height],V=B.inverse?1:0;B.setExtent(W[V],W[1-V]),w(B,j?F.x:F.y)})}},y.getAxis=function(N,R){var D=this._axesMap[N];if(D!=null){if(R==null){for(var F in D)if(D.hasOwnProperty(F))return D[F]}return D[R]}},y.getAxes=function(){return this._axesList.slice()},y.getCartesian=function(N,R){if(N!=null&&R!=null){var D="x"+N+"y"+R;return this._coordsMap[D]}A(N)&&(R=N.yAxisIndex,N=N.xAxisIndex);for(var F=0,M=this._coordsList;F<M.length;F++)if(M[F].getAxis("x").index===N||M[F].getAxis("y").index===R)return M[F]},y.getCartesians=function(){return this._coordsList.slice()},y.convertToPixel=function(N,R,D){var F=this._findConvertTarget(N,R);return F.cartesian?F.cartesian.dataToPoint(D):F.axis?F.axis.toGlobalCoord(F.axis.dataToCoord(D)):null},y.convertFromPixel=function(N,R,D){var F=this._findConvertTarget(N,R);return F.cartesian?F.cartesian.pointToData(D):F.axis?F.axis.coordToData(F.axis.toLocalCoord(D)):null},y._findConvertTarget=function(N,R){var D=R.seriesModel,F=R.xAxisModel||D&&D.getReferringComponents("xAxis")[0],M=R.yAxisModel||D&&D.getReferringComponents("yAxis")[0],U=R.gridModel,B=this._coordsList,j,W;if(D)j=D.coordinateSystem,f(B,j)<0&&(j=null);else if(F&&M)j=this.getCartesian(F.componentIndex,M.componentIndex);else if(F)W=this.getAxis("x",F.componentIndex);else if(M)W=this.getAxis("y",M.componentIndex);else if(U){var V=U.coordinateSystem;V===this&&(j=this._coordsList[0])}return{cartesian:j,axis:W}},y.containPoint=function(N){var R=this._coordsList[0];if(R)return R.containPoint(N)},y._initCartesian=function(N,R,D){var F={left:!1,right:!1,top:!1,bottom:!1},M={x:{},y:{}},U={x:0,y:0};if(R.eachComponent("xAxis",B("x"),this),R.eachComponent("yAxis",B("y"),this),!U.x||!U.y){this._axesMap={},this._axesList=[];return}this._axesMap=M,b(M.x,function(j,W){b(M.y,function(V,z){var J="x"+W+"y"+z,q=new a(J);q.grid=this,q.model=N,this._coordsMap[J]=q,this._coordsList.push(q),q.addAxis(j),q.addAxis(V)},this)},this);function B(j){return function(W,V){if(!m(W,N,R))return;var z=W.get("position");j==="x"?z!=="top"&&z!=="bottom"&&(z=F.bottom?"top":"bottom"):z!=="left"&&z!=="right"&&(z=F.left?"right":"left"),F[z]=!0;var J=new s(j,n(W),[0,0],W.get("type"),z),q=J.type==="category";J.onBand=q&&W.get("boundaryGap"),J.inverse=W.get("inverse"),W.axis=J,J.model=W,J.grid=this,J.index=V,this._axesList.push(J),M[j][V]=J,U[j]++}}},y._updateScale=function(N,R){b(this._axesList,function(F){F.scale.setExtent(Infinity,-Infinity)}),N.eachSeries(function(F){if(I(F)){var M=_(F,N),U=M[0],B=M[1];if(!m(U,R,N)||!m(B,R,N))return;var j=this.getCartesian(U.componentIndex,B.componentIndex),W=F.getData(),V=j.getAxis("x"),z=j.getAxis("y");W.type==="list"&&(D(W,V,F),D(W,z,F))}},this);function D(F,M,U){b(F.mapDimension(M.dim,!0),function(B){M.scale.unionExtentFromData(F,p(F,B))})}},y.getTooltipAxes=function(N){var R=[],D=[];return b(this.getCartesians(),function(F){var M=N!=null&&N!=="auto"?F.getAxis(N):F.getBaseAxis(),U=F.getOtherAxis(M);f(R,M)<0&&R.push(M),f(D,U)<0&&D.push(U)}),{baseAxes:R,otherAxes:D}};function w(N,R){var D=N.getExtent(),F=D[0]+D[1];N.toGlobalCoord=N.dim==="x"?function(M){return M+R}:function(M){return F-M+R},N.toLocalCoord=N.dim==="x"?function(M){return M-R}:function(M){return F-M+R}}var S=["xAxis","yAxis"];function _(N,R){return g(S,function(D){var F=N.getReferringComponents(D)[0];return F})}function I(N){return N.get("coordinateSystem")==="cartesian2d"}v.create=function(N,R){var D=[];return N.eachComponent("grid",function(F,M){var U=new v(F,N,R);U.name="grid_"+M,U.resize(F,R,!0),F.coordinateSystem=U,D.push(U)}),N.eachSeries(function(F){if(!I(F))return;var M=_(F,N),U=M[0],B=M[1],j=U.getCoordSysModel(),W=j.coordinateSystem;F.coordinateSystem=W.getCartesian(U.componentIndex,B.componentIndex)}),D},v.dimensions=v.prototype.dimensions=a.prototype.dimensions,u.register("cartesian2d",v);var L=v;H.exports=L},"X+im":function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("KQeH")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="DownloadOutlined";var c=A.forwardRef(f);k.default=c},"X2/X":function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},XAae:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("hwYd"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},XOKv:function(H,k,d){d("OXB0"),d("SA4+")},Xmg4:function(H,k,d){var O=d("bYtY"),x=d("LPTA"),C=x.devicePixelRatio,A=d("K2GJ"),b=d("3C/r");function g(){return!1}function f(r,i,n){var e=O.createCanvas(),l=i.getWidth(),t=i.getHeight(),a=e.style;return a&&(a.position="absolute",a.left=0,a.top=0,a.width=l+"px",a.height=t+"px",e.setAttribute("data-zr-dom-id",r)),e.width=l*n,e.height=t*n,e}var c=function(i,n,e){var l;e=e||C,typeof i=="string"?l=f(i,n,e):O.isObject(i)&&(l=i,i=l.id),this.id=i,this.dom=l;var t=l.style;t&&(l.onselectstart=g,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 i=this.dpr;this.domBack=f("back-"+this.id,this.painter,i),this.ctxBack=this.domBack.getContext("2d"),i!==1&&this.ctxBack.scale(i,i)},resize:function(i,n){var e=this.dpr,l=this.dom,t=l.style,a=this.domBack;t&&(t.width=i+"px",t.height=n+"px"),l.width=i*e,l.height=n*e,a&&(a.width=i*e,a.height=n*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(i,n){var e=this.dom,l=this.ctx,t=e.width,a=e.height,n=n||this.clearColor,s=this.motionBlur&&!i,u=this.lastFrameAlpha,h=this.dpr;if(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,t/h,a/h)),l.clearRect(0,0,t,a),n&&n!=="transparent"){var p;n.colorStops?(p=n.__canvasGradient||A.getGradient(l,n,{x:0,y:0,width:t,height:a}),n.__canvasGradient=p):n.image&&(p=b.prototype.getCanvasPattern.call(n,l)),l.save(),l.fillStyle=p||n,l.fillRect(0,0,t,a),l.restore()}if(s){var m=this.domBack;l.save(),l.globalAlpha=u,l.drawImage(m,0,0,t,a),l.restore()}}};var o=c;H.exports=o},Xnb7:function(H,k,d){var O=d("1RvN"),x=new O(50);function C(f){if(typeof f=="string"){var c=x.get(f);return c&&c.image}else return f}function A(f,c,o,r,i){if(f)if(typeof f=="string"){if(c&&c.__zrImageSrc===f||!o)return c;var n=x.get(f),e={hostEl:o,cb:r,cbPayload:i};return n?(c=n.image,!g(c)&&n.pending.push(e)):(c=new Image,c.onload=c.onerror=b,x.put(f,c.__cachedImgObj={image:c,pending:[e]}),c.src=c.__zrImageSrc=f),c}else return f;else return c}function b(){var f=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var c=0;c<f.pending.length;c++){var o=f.pending[c],r=o.cb;r&&r(this,o.cbPayload),o.hostEl.dirty()}f.pending.length=0}function g(f){return f&&f.width&&f.height}k.findExistImage=C,k.createOrUpdateImage=A,k.isImageReady=g},XpcN:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),b=d("oVpE"),g=b.createSymbol,f=d("IwbS"),c=d("eRkO"),o=c.makeBackground,r=d("+TT/"),i=A.curry,n=A.each,e=f.Group,l=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(h,p,m){var v=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!h.get("show",!0))return;var y=h.get("align"),E=h.get("orient");(!y||y==="auto")&&(y=h.get("left")==="right"&&E==="vertical"?"right":"left");var T=h.get("selector",!0),w=h.get("selectorPosition",!0);T&&(!w||w==="auto")&&(w=E==="horizontal"?"end":"start"),this.renderInner(y,h,p,m,T,E,w);var S=h.getBoxLayoutParams(),_={width:m.getWidth(),height:m.getHeight()},I=h.get("padding"),L=r.getLayoutRect(S,_,I),N=this.layoutInner(h,y,L,v,T,w),R=r.getLayoutRect(A.defaults({width:N.width,height:N.height},S),_,I);this.group.attr("position",[R.x-N.x,R.y-N.y]),this.group.add(this._backgroundEl=o(N,h))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(h,p,m,v,y,E,T){var w=this.getContentGroup(),S=A.createHashMap(),_=p.get("selectedMode"),I=[];m.eachRawSeries(function(L){!L.get("legendHoverLink")&&I.push(L.id)}),n(p.getData(),function(L,N){var R=L.get("name");if(!this.newlineDisabled&&(R===""||R===`
`)){w.add(new e({newline:!0}));return}var D=m.getSeriesByName(R)[0];if(S.get(R))return;if(D){var F=D.getData(),M=F.getVisual("color"),U=F.getVisual("borderColor");typeof M=="function"&&(M=M(D.getDataParams(0))),typeof U=="function"&&(U=U(D.getDataParams(0)));var B=F.getVisual("legendSymbol")||"roundRect",j=F.getVisual("symbol"),W=this._createItem(R,N,L,p,B,j,h,M,U,_);W.on("click",i(a,R,null,v,I)).on("mouseover",i(s,D.name,null,v,I)).on("mouseout",i(u,D.name,null,v,I)),S.set(R,!0)}else m.eachRawSeries(function(V){if(S.get(R))return;if(V.legendVisualProvider){var z=V.legendVisualProvider;if(!z.containName(R))return;var J=z.indexOfName(R),q=z.getItemVisual(J,"color"),de=z.getItemVisual(J,"borderColor"),ae="roundRect",ve=this._createItem(R,N,L,p,ae,null,h,q,de,_);ve.on("click",i(a,null,R,v,I)).on("mouseover",i(s,null,R,v,I)).on("mouseout",i(u,null,R,v,I)),S.set(R,!0)}},this)},this),y&&this._createSelector(y,p,v,E,T)},_createSelector:function(h,p,m,v,y){var E=this.getSelectorGroup();n(h,function(w){T(w)});function T(w){var S=w.type,_=new f.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){m.dispatchAction({type:S==="all"?"legendAllSelect":"legendInverseSelect"})}});E.add(_);var I=p.getModel("selectorLabel"),L=p.getModel("emphasis.selectorLabel");f.setLabelStyle(_.style,_.hoverStyle={},I,L,{defaultText:w.title,isRectText:!1}),f.setHoverStyle(_)}},_createItem:function(h,p,m,v,y,E,T,w,S,_){var I=v.get("itemWidth"),L=v.get("itemHeight"),N=v.get("inactiveColor"),R=v.get("inactiveBorderColor"),D=v.get("symbolKeepAspect"),F=v.getModel("itemStyle"),M=v.isSelected(h),U=new e,B=m.getModel("textStyle"),j=m.get("icon"),W=m.getModel("tooltip"),V=W.parentModel;y=j||y;var z=g(y,0,0,I,L,M?w:N,D==null?!0:D);if(U.add(t(z,y,F,S,R,M)),!j&&E&&(E!==y||E==="none")){var J=L*.8;E==="none"&&(E="circle");var q=g(E,(I-J)/2,(L-J)/2,J,J,M?w:N,D==null?!0:D);U.add(t(q,E,F,S,R,M))}var de=T==="left"?I+5:-5,ae=T,ve=v.get("formatter"),_e=h;typeof ve=="string"&&ve?_e=ve.replace("{name}",h!=null?h:""):typeof ve=="function"&&(_e=ve(h)),U.add(new f.Text({style:f.setTextStyle({},B,{text:_e,x:de,y:L/2,textFill:M?B.getTextColor():N,textAlign:ae,textVerticalAlign:"middle"})}));var Ie=new f.Rect({shape:U.getBoundingRect(),invisible:!0,tooltip:W.get("show")?A.extend({content:h,formatter:V.get("formatter",!0)||function(){return h},formatterParams:{componentType:"legend",legendIndex:v.componentIndex,name:h,$vars:["name"]}},W.option):null});return U.add(Ie),U.eachChild(function(He){He.silent=!0}),Ie.silent=!_,this.getContentGroup().add(U),f.setHoverStyle(U),U.__legendDataIndex=p,U},layoutInner:function(h,p,m,v,y,E){var T=this.getContentGroup(),w=this.getSelectorGroup();r.box(h.get("orient"),T,h.get("itemGap"),m.width,m.height);var S=T.getBoundingRect(),_=[-S.x,-S.y];if(y){r.box("horizontal",w,h.get("selectorItemGap",!0));var I=w.getBoundingRect(),L=[-I.x,-I.y],N=h.get("selectorButtonGap",!0),R=h.getOrient().index,D=R===0?"width":"height",F=R===0?"height":"width",M=R===0?"y":"x";E==="end"?L[R]+=S[D]+N:_[R]+=I[D]+N,L[1-R]+=S[F]/2-I[F]/2,w.attr("position",L),T.attr("position",_);var U={x:0,y:0};return U[D]=S[D]+N+I[D],U[F]=Math.max(S[F],I[F]),U[M]=Math.min(0,I[M]+L[1-R]),U}else return T.attr("position",_),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function t(h,p,m,v,y,E){var T;return p!=="line"&&p.indexOf("empty")<0?(T=m.getItemStyle(),h.style.stroke=v,E||(T.stroke=y)):T=m.getItemStyle(["borderWidth","borderColor"]),h.setStyle(T)}function a(h,p,m,v){u(h,p,m,v),m.dispatchAction({type:"legendToggleSelect",name:h!=null?h:p}),s(h,p,m,v)}function s(h,p,m,v){var y=m.getZr().storage.getDisplayList()[0];y&&y.useHoverLayer||m.dispatchAction({type:"highlight",seriesName:h,name:p,excludeSeriesId:v})}function u(h,p,m,v){var y=m.getZr().storage.getDisplayList()[0];y&&y.useHoverLayer||m.dispatchAction({type:"downplay",seriesName:h,name:p,excludeSeriesId:v})}H.exports=l},XuBP:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},XxSj:function(H,k,d){var O=d("bYtY"),x=d("Qe9p"),C=d("OELB"),A=C.linearMap,b=O.each,g=O.isObject,f=-1,c=function(E){var T=E.mappingMethod,w=E.type,S=this.option=O.clone(E);this.type=w,this.mappingMethod=T,this._normalizeData=m[T];var _=o[w];this.applyVisual=_.applyVisual,this.getColorMapper=_.getColorMapper,this._doMap=_._doMap[T],T==="piecewise"?(n(S),r(S)):T==="category"?S.categories?i(S):n(S,!0):(O.assert(T!=="linear"||S.dataExtent),n(S))};c.prototype={constructor:c,mapValueToVisual:function(E){var T=this._normalizeData(E);return this._doMap(T,E)},getNormalizer:function(){return O.bind(this._normalizeData,this)}};var o=c.visualHandlers={color:{applyVisual:t("color"),getColorMapper:function(){var E=this.option;return O.bind(E.mappingMethod==="category"?function(T,w){return!w&&(T=this._normalizeData(T)),a.call(this,T)}:function(T,w,S){var _=!!S;return!w&&(T=this._normalizeData(T)),S=x.fastLerp(T,E.parsedVisual,S),_?S:x.stringify(S,"rgba")},this)},_doMap:{linear:function(E){return x.stringify(x.fastLerp(E,this.option.parsedVisual),"rgba")},category:a,piecewise:function(E,T){var w=h.call(this,T);return w==null&&(w=x.stringify(x.fastLerp(E,this.option.parsedVisual),"rgba")),w},fixed:s}},colorHue:e(function(E,T){return x.modifyHSL(E,T)}),colorSaturation:e(function(E,T){return x.modifyHSL(E,null,T)}),colorLightness:e(function(E,T){return x.modifyHSL(E,null,null,T)}),colorAlpha:e(function(E,T){return x.modifyAlpha(E,T)}),opacity:{applyVisual:t("opacity"),_doMap:u([0,1])},liftZ:{applyVisual:t("liftZ"),_doMap:{linear:s,category:s,piecewise:s,fixed:s}},symbol:{applyVisual:function(E,T,w){var S=this.mapValueToVisual(E);if(O.isString(S))w("symbol",S);else if(g(S))for(var _ in S)S.hasOwnProperty(_)&&w(_,S[_])},_doMap:{linear:l,category:a,piecewise:function(E,T){var w=h.call(this,T);return w==null&&(w=l.call(this,E)),w},fixed:s}},symbolSize:{applyVisual:t("symbolSize"),_doMap:u([0,1])}};function r(E){var T=E.pieceList;E.hasSpecialVisual=!1,O.each(T,function(w,S){w.originIndex=S,w.visual!=null&&(E.hasSpecialVisual=!0)})}function i(E){var T=E.categories,w=E.visual,S=E.categoryMap={};if(b(T,function(L,N){S[L]=N}),!O.isArray(w)){var _=[];O.isObject(w)?b(w,function(L,N){var R=S[N];_[R!=null?R:f]=L}):_[f]=w,w=p(E,_)}for(var I=T.length-1;I>=0;I--)w[I]==null&&(delete S[T[I]],T.pop())}function n(E,T){var w=E.visual,S=[];O.isObject(w)?b(w,function(I){S.push(I)}):w!=null&&S.push(w);var _={color:1,symbol:1};!T&&S.length===1&&!_.hasOwnProperty(E.type)&&(S[1]=S[0]),p(E,S)}function e(E){return{applyVisual:function(T,w,S){T=this.mapValueToVisual(T),S("color",E(w("color"),T))},_doMap:u([0,1])}}function l(E){var T=this.option.visual;return T[Math.round(A(E,[0,1],[0,T.length-1],!0))]||{}}function t(E){return function(T,w,S){S(E,this.mapValueToVisual(T))}}function a(E){var T=this.option.visual;return T[this.option.loop&&E!==f?E%T.length:E]}function s(){return this.option.visual[0]}function u(E){return{linear:function(T){return A(T,E,this.option.visual,!0)},category:a,piecewise:function(T,w){var S=h.call(this,w);return S==null&&(S=A(T,E,this.option.visual,!0)),S},fixed:s}}function h(E){var T=this.option,w=T.pieceList;if(T.hasSpecialVisual){var S=c.findPieceIndex(E,w),_=w[S];if(_&&_.visual)return _.visual[this.type]}}function p(E,T){return E.visual=T,E.type==="color"&&(E.parsedVisual=O.map(T,function(w){return x.parse(w)})),T}var m={linear:function(E){return A(E,this.option.dataExtent,[0,1],!0)},piecewise:function(E){var T=this.option.pieceList,w=c.findPieceIndex(E,T,!0);if(w!=null)return A(w,[0,T.length-1],[0,1],!0)},category:function(E){var T=this.option.categories?this.option.categoryMap[E]:E;return T==null?f:T},fixed:O.noop};c.listVisualTypes=function(){var E=[];return O.each(o,function(T,w){E.push(w)}),E},c.addVisualHandler=function(E,T){o[E]=T},c.isValidType=function(E){return o.hasOwnProperty(E)},c.eachVisual=function(E,T,w){O.isObject(E)?O.each(E,T,w):T.call(w,E)},c.mapVisual=function(E,T,w){var S,_=O.isArray(E)?[]:O.isObject(E)?{}:(S=!0,null);return c.eachVisual(E,function(I,L){var N=T.call(w,I,L);S?_=N:_[L]=N}),_},c.retrieveVisuals=function(E){var T={},w;return E&&b(o,function(S,_){E.hasOwnProperty(_)&&(T[_]=E[_],w=!0)}),w?T:null},c.prepareVisualTypes=function(E){if(g(E)){var T=[];b(E,function(w,S){T.push(S)}),E=T}else if(O.isArray(E))E=E.slice();else return[];return E.sort(function(w,S){return S==="color"&&w!=="color"&&w.indexOf("color")===0?1:-1}),E},c.dependsOn=function(E,T){return T==="color"?!!(E&&E.indexOf(T)===0):E===T},c.findPieceIndex=function(E,T,w){for(var S,_=Infinity,I=0,L=T.length;I<L;I++){var N=T[I].value;if(N!=null){if(N===E||typeof N=="string"&&N===E+"")return I;w&&M(N,I)}}for(var I=0,L=T.length;I<L;I++){var R=T[I],D=R.interval,F=R.close;if(D){if(D[0]===-Infinity){if(v(F[1],E,D[1]))return I}else if(D[1]===Infinity){if(v(F[0],D[0],E))return I}else if(v(F[0],D[0],E)&&v(F[1],E,D[1]))return I;w&&M(D[0],I),w&&M(D[1],I)}}if(w)return E===Infinity?T.length-1:E===-Infinity?0:S;function M(U,B){var j=Math.abs(U-E);j<_&&(_=j,S=B)}};function v(E,T,w){return E?T<=w:T<w}var y=c;H.exports=y},XzQk:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("KpQ+"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},Y1PL:function(H,k,d){"use strict";d.r(k),d.d(k,"ResizableTextArea",function(){return y});var O=d("wx14"),x=d("1OyB"),C=d("vuIU"),A=d("Ji7U"),b=d("LK+K"),g=d("q1tI"),f=d("VTBJ"),c=d("rePB"),o=d("t23M");function r(w,S){var _=Object(f.a)({},w);return Array.isArray(S)&&S.forEach(function(I){delete _[I]}),_}var i=d("TSYQ"),n=d.n(i),e=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important
`,l=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],t={},a;function s(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=w.getAttribute("id")||w.getAttribute("data-reactid")||w.getAttribute("name");if(S&&t[_])return t[_];var I=window.getComputedStyle(w),L=I.getPropertyValue("box-sizing")||I.getPropertyValue("-moz-box-sizing")||I.getPropertyValue("-webkit-box-sizing"),N=parseFloat(I.getPropertyValue("padding-bottom"))+parseFloat(I.getPropertyValue("padding-top")),R=parseFloat(I.getPropertyValue("border-bottom-width"))+parseFloat(I.getPropertyValue("border-top-width")),D=l.map(function(M){return"".concat(M,":").concat(I.getPropertyValue(M))}).join(";"),F={sizingStyle:D,paddingSize:N,borderSize:R,boxSizing:L};return S&&_&&(t[_]=F),F}function u(w){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,I=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)),w.getAttribute("wrap")?a.setAttribute("wrap",w.getAttribute("wrap")):a.removeAttribute("wrap");var L=s(w,S),N=L.paddingSize,R=L.borderSize,D=L.boxSizing,F=L.sizingStyle;a.setAttribute("style","".concat(F,";").concat(e)),a.value=w.value||w.placeholder||"";var M=Number.MIN_SAFE_INTEGER,U=Number.MAX_SAFE_INTEGER,B=a.scrollHeight,j;if(D==="border-box"?B+=R:D==="content-box"&&(B-=N),_!==null||I!==null){a.value=" ";var W=a.scrollHeight-N;_!==null&&(M=W*_,D==="border-box"&&(M=M+N+R),B=Math.max(M,B)),I!==null&&(U=W*I,D==="border-box"&&(U=U+N+R),j=B>U?"":"hidden",B=Math.min(U,B))}return{height:B,minHeight:M,maxHeight:U,overflowY:j,resize:"none"}}var h=d("Gytx"),p=d.n(h),m;(function(w){w[w.NONE=0]="NONE",w[w.RESIZING=1]="RESIZING",w[w.RESIZED=2]="RESIZED"})(m||(m={}));var v=function(w){Object(A.a)(_,w);var S=Object(b.a)(_);function _(I){var L;return Object(x.a)(this,_),L=S.call(this,I),L.nextFrameActionId=void 0,L.resizeFrameId=void 0,L.textArea=void 0,L.saveTextArea=function(N){L.textArea=N},L.handleResize=function(N){var R=L.state.resizeStatus,D=L.props,F=D.autoSize,M=D.onResize;if(R!==m.NONE)return;typeof M=="function"&&M(N),F&&L.resizeOnNextFrame()},L.resizeOnNextFrame=function(){cancelAnimationFrame(L.nextFrameActionId),L.nextFrameActionId=requestAnimationFrame(L.resizeTextarea)},L.resizeTextarea=function(){var N=L.props.autoSize;if(!N||!L.textArea)return;var R=N.minRows,D=N.maxRows,F=u(L.textArea,!1,R,D);L.setState({textareaStyles:F,resizeStatus:m.RESIZING},function(){cancelAnimationFrame(L.resizeFrameId),L.resizeFrameId=requestAnimationFrame(function(){L.setState({resizeStatus:m.RESIZED},function(){L.resizeFrameId=requestAnimationFrame(function(){L.setState({resizeStatus:m.NONE}),L.fixFirefoxAutoScroll()})})})})},L.renderTextArea=function(){var N=L.props,R=N.prefixCls,D=R===void 0?"rc-textarea":R,F=N.autoSize,M=N.onResize,U=N.className,B=N.disabled,j=L.state,W=j.textareaStyles,V=j.resizeStatus,z=r(L.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),J=n()(D,U,Object(c.a)({},"".concat(D,"-disabled"),B));"value"in z&&(z.value=z.value||"");var q=Object(f.a)(Object(f.a)(Object(f.a)({},L.props.style),W),V===m.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return g.createElement(o.a,{onResize:L.handleResize,disabled:!(F||M)},g.createElement("textarea",Object(O.a)({},z,{className:J,style:q,ref:L.saveTextArea})))},L.state={textareaStyles:{},resizeStatus:m.NONE},L}return Object(C.a)(_,[{key:"componentDidUpdate",value:function(L){(L.value!==this.props.value||!p()(L.autoSize,this.props.autoSize))&&this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var L=this.textArea.selectionStart,N=this.textArea.selectionEnd;this.textArea.setSelectionRange(L,N)}}catch(R){}}},{key:"render",value:function(){return this.renderTextArea()}}]),_}(g.Component),y=v,E=function(w){Object(A.a)(_,w);var S=Object(b.a)(_);function _(I){var L;Object(x.a)(this,_),L=S.call(this,I),L.resizableTextArea=void 0,L.focus=function(){L.resizableTextArea.textArea.focus()},L.saveTextArea=function(R){L.resizableTextArea=R},L.handleChange=function(R){var D=L.props.onChange;L.setValue(R.target.value,function(){L.resizableTextArea.resizeTextarea()}),D&&D(R)},L.handleKeyDown=function(R){var D=L.props,F=D.onPressEnter,M=D.onKeyDown;R.keyCode===13&&F&&F(R),M&&M(R)};var N=typeof I.value=="undefined"||I.value===null?I.defaultValue:I.value;return L.state={value:N},L}return Object(C.a)(_,[{key:"setValue",value:function(L,N){"value"in this.props||this.setState({value:L},N)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return g.createElement(y,Object(O.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(L){return"value"in L?{value:L.value}:null}}]),_}(g.Component),T=k.default=E},YH21:function(H,k,d){var O=d("H6uX");k.Dispatcher=O;var x=d("ItGF"),C=d("Ze12"),A=C.isCanvasEl,b=C.transformCoordWithViewport,g=typeof window!="undefined"&&!!window.addEventListener,f=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,c=[];function o(u,h,p,m){return p=p||{},m||!x.canvasSupported?r(u,h,p):x.browser.firefox&&h.layerX!=null&&h.layerX!==h.offsetX?(p.zrX=h.layerX,p.zrY=h.layerY):h.offsetX!=null?(p.zrX=h.offsetX,p.zrY=h.offsetY):r(u,h,p),p}function r(u,h,p){if(x.domSupported&&u.getBoundingClientRect){var m=h.clientX,v=h.clientY;if(A(u)){var y=u.getBoundingClientRect();p.zrX=m-y.left,p.zrY=v-y.top;return}else if(b(c,u,m,v)){p.zrX=c[0],p.zrY=c[1];return}}p.zrX=p.zrY=0}function i(u){return u||window.event}function n(u,h,p){if(h=i(h),h.zrX!=null)return h;var m=h.type,v=m&&m.indexOf("touch")>=0;if(!v)o(u,h,h,p),h.zrDelta=h.wheelDelta?h.wheelDelta/120:-(h.detail||0)/3;else{var y=m!=="touchend"?h.targetTouches[0]:h.changedTouches[0];y&&o(u,y,h,p)}var E=h.button;return h.which==null&&E!==void 0&&f.test(h.type)&&(h.which=E&1?1:E&2?3:E&4?2:0),h}function e(u,h,p,m){g?u.addEventListener(h,p,m):u.attachEvent("on"+h,p)}function l(u,h,p,m){g?u.removeEventListener(h,p,m):u.detachEvent("on"+h,p)}var t=g?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 s(u){return u.which>1}k.clientToLocal=o,k.getNativeEvent=i,k.normalizeEvent=n,k.addEventListener=e,k.removeEventListener=l,k.stop=t,k.isMiddleOrRightButtonOnMouseUpDown=a,k.notLeftMouse=s},YJ9k:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;function O(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function x(b,g){for(var f=0;f<g.length;f++){var c=g[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(b,c.key,c)}}function C(b,g,f){return g&&x(b.prototype,g),f&&x(b,f),b}var A=function(){function b(){O(this,b),this._listeners=new Map}return C(b,[{key:"addEventListener",value:function(f,c){this._listeners.has(f)||this._listeners.set(f,new Set),this._listeners.get(f).add(c)}},{key:"removeEventListener",value:function(f,c){this._listeners.has(f)&&this._listeners.get(f).delete(c)}},{key:"dispatchEvent",value:function(f){var c=this;return this._listeners.has(f.type)?(this._listeners.get(f.type).forEach(function(o){return o.call(c,f)}),!f.defaultPrevented):!0}}]),b}();k.default=A},YJCA:function(H,k,d){"use strict";d.d(k,"a",function(){return Q}),d.d(k,"b",function(){return Te});var O=d("wx14"),x=d("ODXe"),C=d("vpQ4"),A=d("1OyB"),b=d("vuIU"),g=d("md7G"),f=d("foSv"),c=d("Ji7U"),o=d("JX7q"),r=d("rePB"),i=d("q1tI"),n=d.n(i),e=d("17x9"),l=d.n(e),t=d("i8i4"),a=d.n(t),s=d("QLaP"),u=d.n(s),h=d("KQm4"),p=function(){function Se(){Object(A.a)(this,Se),Object(r.a)(this,"refs",{})}return Object(b.a)(Se,[{key:"add",value:function(fe,Ee){this.refs[fe]||(this.refs[fe]=[]),this.refs[fe].push(Ee)}},{key:"remove",value:function(fe,Ee){var Ve=this.getIndex(fe,Ee);Ve!==-1&&this.refs[fe].splice(Ve,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var fe=this;return this.refs[this.active.collection].find(function(Ee){var Ve=Ee.node;return Ve.sortableInfo.index==fe.active.index})}},{key:"getIndex",value:function(fe,Ee){return this.refs[fe].indexOf(Ee)}},{key:"getOrderedRefs",value:function(){var fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[fe].sort(m)}}]),Se}();function m(Se,le){var fe=Se.node.sortableInfo.index,Ee=le.node.sortableInfo.index;return fe-Ee}function v(Se,le,fe){return Se=Se.slice(),Se.splice(fe<0?Se.length+fe:fe,0,Se.splice(le,1)[0]),Se}function y(Se,le){return Object.keys(Se).reduce(function(fe,Ee){return le.indexOf(Ee)===-1&&(fe[Ee]=Se[Ee]),fe},{})}var E={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},T=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Se=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],le=(Array.prototype.slice.call(Se).join("").match(/-(moz|webkit|ms)-/)||Se.OLink===""&&["","o"])[1];switch(le){case"ms":return"ms";default:return le&&le.length?le[0].toUpperCase()+le.substr(1):""}}();function w(Se,le){Object.keys(le).forEach(function(fe){Se.style[fe]=le[fe]})}function S(Se,le){Se.style["".concat(T,"Transform")]=le==null?"":"translate3d(".concat(le.x,"px,").concat(le.y,"px,0)")}function _(Se,le){Se.style["".concat(T,"TransitionDuration")]=le==null?"":"".concat(le,"ms")}function I(Se,le){for(;Se;){if(le(Se))return Se;Se=Se.parentNode}return null}function L(Se,le,fe){return Math.max(Se,Math.min(fe,le))}function N(Se){return Se.substr(-2)==="px"?parseFloat(Se):0}function R(Se){var le=window.getComputedStyle(Se);return{bottom:N(le.marginBottom),left:N(le.marginLeft),right:N(le.marginRight),top:N(le.marginTop)}}function D(Se,le){var fe=le.displayName||le.name;return fe?"".concat(Se,"(").concat(fe,")"):Se}function F(Se,le){var fe=Se.getBoundingClientRect();return{top:fe.top+le.top,left:fe.left+le.left}}function M(Se){return Se.touches&&Se.touches.length?{x:Se.touches[0].pageX,y:Se.touches[0].pageY}:Se.changedTouches&&Se.changedTouches.length?{x:Se.changedTouches[0].pageX,y:Se.changedTouches[0].pageY}:{x:Se.pageX,y:Se.pageY}}function U(Se){return Se.touches&&Se.touches.length||Se.changedTouches&&Se.changedTouches.length}function B(Se,le){var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Se)return;var Ee={left:fe.left+Se.offsetLeft,top:fe.top+Se.offsetTop};return Se.parentNode===le?Ee:B(Se.parentNode,le,Ee)}function j(Se,le,fe){return Se<fe&&Se>le?Se-1:Se>fe&&Se<le?Se+1:Se}function W(Se){var le=Se.lockOffset,fe=Se.width,Ee=Se.height,Ve=le,vt=le,et="px";if(typeof le=="string"){var Oe=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(le);u()(Oe!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',le),Ve=parseFloat(le),vt=parseFloat(le),et=Oe[1]}return u()(isFinite(Ve)&&isFinite(vt),"lockOffset value should be a finite. Given %s",le),et==="%"&&(Ve=Ve*fe/100,vt=vt*Ee/100),{x:Ve,y:vt}}function V(Se){var le=Se.height,fe=Se.width,Ee=Se.lockOffset,Ve=Array.isArray(Ee)?Ee:[Ee,Ee];u()(Ve.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",Ee);var vt=Object(x.a)(Ve,2),et=vt[0],Oe=vt[1];return[W({height:le,lockOffset:et,width:fe}),W({height:le,lockOffset:Oe,width:fe})]}function z(Se){var le=window.getComputedStyle(Se),fe=/(auto|scroll)/,Ee=["overflow","overflowX","overflowY"];return Ee.find(function(Ve){return fe.test(le[Ve])})}function J(Se){return Se instanceof HTMLElement?z(Se)?Se:J(Se.parentNode):null}function q(Se){var le=window.getComputedStyle(Se);return le.display==="grid"?{x:N(le.gridColumnGap),y:N(le.gridRowGap)}:{x:0,y:0}}var de={TAB:9,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},ae={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function ve(Se){var le="input, textarea, select, canvas, [contenteditable]",fe=Se.querySelectorAll(le),Ee=Se.cloneNode(!0),Ve=Object(h.a)(Ee.querySelectorAll(le));return Ve.forEach(function(vt,et){if(vt.type!=="file"&&(vt.value=fe[et].value),vt.type==="radio"&&vt.name&&(vt.name="__sortableClone__".concat(vt.name)),vt.tagName===ae.Canvas&&fe[et].width>0&&fe[et].height>0){var Oe=vt.getContext("2d");Oe.drawImage(fe[et],0,0)}}),Ee}function _e(Se){var le,fe,Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return fe=le=function(Ve){Object(c.a)(vt,Ve);function vt(){return Object(A.a)(this,vt),Object(g.a)(this,Object(f.a)(vt).apply(this,arguments))}return Object(b.a)(vt,[{key:"componentDidMount",value:function(){var Oe=Object(t.findDOMNode)(this);Oe.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return u()(Ee.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var Oe=Ee.withRef?"wrappedInstance":null;return Object(i.createElement)(Se,Object(O.a)({ref:Oe},this.props))}}]),vt}(i.Component),Object(r.a)(le,"displayName",D("sortableHandle",Se)),fe}function Ie(Se){return Se.sortableHandle!=null}var He=function(){function Se(le,fe){Object(A.a)(this,Se),this.container=le,this.onScrollCallback=fe}return Object(b.a)(Se,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(fe){var Ee=this,Ve=fe.translate,vt=fe.minTranslate,et=fe.maxTranslate,Oe=fe.width,Tt=fe.height,Je={x:0,y:0},St={x:1,y:1},Mt={x:10,y:10},er=this.container,It=er.scrollTop,_t=er.scrollLeft,Xe=er.scrollHeight,ie=er.scrollWidth,X=er.clientHeight,Be=er.clientWidth,Ce=It===0,Z=Xe-It-X===0,nt=_t===0,ct=ie-_t-Be===0;Ve.y>=et.y-Tt/2&&!Z?(Je.y=1,St.y=Mt.y*Math.abs((et.y-Tt/2-Ve.y)/Tt)):Ve.x>=et.x-Oe/2&&!ct?(Je.x=1,St.x=Mt.x*Math.abs((et.x-Oe/2-Ve.x)/Oe)):Ve.y<=vt.y+Tt/2&&!Ce?(Je.y=-1,St.y=Mt.y*Math.abs((Ve.y-Tt/2-vt.y)/Tt)):Ve.x<=vt.x+Oe/2&&!nt&&(Je.x=-1,St.x=Mt.x*Math.abs((Ve.x-Oe/2-vt.x)/Oe)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(Je.x!==0||Je.y!==0)&&(this.interval=setInterval(function(){Ee.isAutoScrolling=!0;var Qe={left:St.x*Je.x,top:St.y*Je.y};Ee.container.scrollTop+=Qe.top,Ee.container.scrollLeft+=Qe.left,Ee.onScrollCallback(Qe)},5))}}]),Se}();function me(Se){var le=Se.node;return{height:le.offsetHeight,width:le.offsetWidth}}function ke(Se){var le=[ae.Input,ae.Textarea,ae.Select,ae.Option,ae.Button];return le.indexOf(Se.target.tagName)!==-1?!0:!!I(Se.target,function(fe){return fe.contentEditable==="true"})}var se={axis:l.a.oneOf(["x","y","xy"]),contentWindow:l.a.any,disableAutoscroll:l.a.bool,distance:l.a.number,getContainer:l.a.func,getHelperDimensions:l.a.func,helperClass:l.a.string,helperContainer:l.a.oneOfType([l.a.func,typeof HTMLElement=="undefined"?l.a.any:l.a.instanceOf(HTMLElement)]),hideSortableGhost:l.a.bool,keyboardSortingTransitionDuration:l.a.number,lockAxis:l.a.string,lockOffset:l.a.oneOfType([l.a.number,l.a.string,l.a.arrayOf(l.a.oneOfType([l.a.number,l.a.string]))]),lockToContainerEdges:l.a.bool,onSortEnd:l.a.func,onSortMove:l.a.func,onSortOver:l.a.func,onSortStart:l.a.func,pressDelay:l.a.number,pressThreshold:l.a.number,keyCodes:l.a.shape({lift:l.a.arrayOf(l.a.number),drop:l.a.arrayOf(l.a.number),cancel:l.a.arrayOf(l.a.number),up:l.a.arrayOf(l.a.number),down:l.a.arrayOf(l.a.number)}),shouldCancelStart:l.a.func,transitionDuration:l.a.number,updateBeforeSortStart:l.a.func,useDragHandle:l.a.bool,useWindowAsScrollContainer:l.a.bool},te={lift:[de.SPACE],drop:[de.SPACE],cancel:[de.ESC],up:[de.UP,de.LEFT],down:[de.DOWN,de.RIGHT]},Ge={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:me,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:te,shouldCancelStart:ke,transitionDuration:300,useWindowAsScrollContainer:!1},oe=Object.keys(se);function Y(Se){u()(!(Se.distance&&Se.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(Se,le){try{var fe=Se()}catch(Ee){return le(!0,Ee)}return fe&&fe.then?fe.then(le.bind(null,!1),le.bind(null,!0)):le(!1,value)}function Q(Se){var le,fe,Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return fe=le=function(Ve){Object(c.a)(vt,Ve);function vt(et){var Oe;return Object(A.a)(this,vt),Oe=Object(g.a)(this,Object(f.a)(vt).call(this,et)),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"state",{}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"handleStart",function(Tt){var Je=Oe.props,St=Je.distance,Mt=Je.shouldCancelStart;if(Tt.button===2||Mt(Tt))return;Oe.touched=!0,Oe.position=M(Tt);var er=I(Tt.target,function(Be){return Be.sortableInfo!=null});if(er&&er.sortableInfo&&Oe.nodeIsChild(er)&&!Oe.state.sorting){var It=Oe.props.useDragHandle,_t=er.sortableInfo,Xe=_t.index,ie=_t.collection,X=_t.disabled;if(X)return;if(It&&!I(Tt.target,Ie))return;Oe.manager.active={collection:ie,index:Xe},!U(Tt)&&Tt.target.tagName===ae.Anchor&&Tt.preventDefault(),St||(Oe.props.pressDelay===0?Oe.handlePress(Tt):Oe.pressTimer=setTimeout(function(){return Oe.handlePress(Tt)},Oe.props.pressDelay))}}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"nodeIsChild",function(Tt){return Tt.sortableInfo.manager===Oe.manager}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"handleMove",function(Tt){var Je=Oe.props,St=Je.distance,Mt=Je.pressThreshold;if(!Oe.state.sorting&&Oe.touched&&!Oe._awaitingUpdateBeforeSortStart){var er=M(Tt),It={x:Oe.position.x-er.x,y:Oe.position.y-er.y},_t=Math.abs(It.x)+Math.abs(It.y);Oe.delta=It,!St&&(!Mt||_t>=Mt)?(clearTimeout(Oe.cancelTimer),Oe.cancelTimer=setTimeout(Oe.cancel,0)):St&&_t>=St&&Oe.manager.isActive()&&Oe.handlePress(Tt)}}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"handleEnd",function(){Oe.touched=!1,Oe.cancel()}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"cancel",function(){var Tt=Oe.props.distance,Je=Oe.state.sorting;Je||(Tt||clearTimeout(Oe.pressTimer),Oe.manager.active=null)}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"handlePress",function(Tt){try{var Je=Oe.manager.getActive(),St=function(){if(Je){var Mt=function(){var Ft=Z.sortableInfo.index,Lr=R(Z),Wt=q(Oe.container),ar=Oe.scrollContainer.getBoundingClientRect(),Ut=_t({index:Ft,node:Z,collection:nt});if(Oe.node=Z,Oe.margin=Lr,Oe.gridGap=Wt,Oe.width=Ut.width,Oe.height=Ut.height,Oe.marginOffset={x:Oe.margin.left+Oe.margin.right+Oe.gridGap.x,y:Math.max(Oe.margin.top,Oe.margin.bottom,Oe.gridGap.y)},Oe.boundingClientRect=Z.getBoundingClientRect(),Oe.containerBoundingRect=ar,Oe.index=Ft,Oe.newIndex=Ft,Oe.axis={x:It.indexOf("x")>=0,y:It.indexOf("y")>=0},Oe.offsetEdge=B(Z,Oe.container),ct?Oe.initialOffset=M(Object(C.a)({},Tt,{pageX:Oe.boundingClientRect.left,pageY:Oe.boundingClientRect.top})):Oe.initialOffset=M(Tt),Oe.initialScroll={left:Oe.scrollContainer.scrollLeft,top:Oe.scrollContainer.scrollTop},Oe.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Oe.helper=Oe.helperContainer.appendChild(ve(Z)),w(Oe.helper,{boxSizing:"border-box",height:"".concat(Oe.height,"px"),left:"".concat(Oe.boundingClientRect.left-Lr.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Oe.boundingClientRect.top-Lr.top,"px"),width:"".concat(Oe.width,"px")}),ct&&Oe.helper.focus(),ie&&(Oe.sortableGhost=Z,w(Z,{opacity:0,visibility:"hidden"})),Oe.minTranslate={},Oe.maxTranslate={},ct){var kt=Ce?{top:0,left:0,width:Oe.contentWindow.innerWidth,height:Oe.contentWindow.innerHeight}:Oe.containerBoundingRect,st=kt.top,Rr=kt.left,on=kt.width,Sn=kt.height,zn=st+Sn,Ii=Rr+on;Oe.axis.x&&(Oe.minTranslate.x=Rr-Oe.boundingClientRect.left,Oe.maxTranslate.x=Ii-(Oe.boundingClientRect.left+Oe.width)),Oe.axis.y&&(Oe.minTranslate.y=st-Oe.boundingClientRect.top,Oe.maxTranslate.y=zn-(Oe.boundingClientRect.top+Oe.height))}else Oe.axis.x&&(Oe.minTranslate.x=(Ce?0:ar.left)-Oe.boundingClientRect.left-Oe.width/2,Oe.maxTranslate.x=(Ce?Oe.contentWindow.innerWidth:ar.left+ar.width)-Oe.boundingClientRect.left-Oe.width/2),Oe.axis.y&&(Oe.minTranslate.y=(Ce?0:ar.top)-Oe.boundingClientRect.top-Oe.height/2,Oe.maxTranslate.y=(Ce?Oe.contentWindow.innerHeight:ar.top+ar.height)-Oe.boundingClientRect.top-Oe.height/2);Xe&&Xe.split(" ").forEach(function(yn){return Oe.helper.classList.add(yn)}),Oe.listenerNode=Tt.touches?Z:Oe.contentWindow,ct?(Oe.listenerNode.addEventListener("wheel",Oe.handleKeyEnd,!0),Oe.listenerNode.addEventListener("mousedown",Oe.handleKeyEnd,!0),Oe.listenerNode.addEventListener("keydown",Oe.handleKeyDown)):(E.move.forEach(function(yn){return Oe.listenerNode.addEventListener(yn,Oe.handleSortMove,!1)}),E.end.forEach(function(yn){return Oe.listenerNode.addEventListener(yn,Oe.handleSortEnd,!1)})),Oe.setState({sorting:!0,sortingIndex:Ft}),Be&&Be({node:Z,index:Ft,collection:nt,isKeySorting:ct,nodes:Oe.manager.getOrderedRefs(),helper:Oe.helper},Tt),ct&&Oe.keyMove(0)},er=Oe.props,It=er.axis,_t=er.getHelperDimensions,Xe=er.helperClass,ie=er.hideSortableGhost,X=er.updateBeforeSortStart,Be=er.onSortStart,Ce=er.useWindowAsScrollContainer,Z=Je.node,nt=Je.collection,ct=Oe.manager.isKeySorting,Qe=function(){if(typeof X=="function"){Oe._awaitingUpdateBeforeSortStart=!0;var dt=G(function(){var Ft=Z.sortableInfo.index;return Promise.resolve(X({collection:nt,index:Ft,node:Z,isKeySorting:ct},Tt)).then(function(){})},function(Ft,Lr){if(Oe._awaitingUpdateBeforeSortStart=!1,Ft)throw Lr;return Lr});if(dt&&dt.then)return dt.then(function(){})}}();return Qe&&Qe.then?Qe.then(Mt):Mt(Qe)}}();return Promise.resolve(St&&St.then?St.then(function(){}):void 0)}catch(Mt){return Promise.reject(Mt)}}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"handleSortMove",function(Tt){var Je=Oe.props.onSortMove;typeof Tt.preventDefault=="function"&&Tt.preventDefault(),Oe.updateHelperPosition(Tt),Oe.animateNodes(),Oe.autoscroll(),Je&&Je(Tt)}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"handleSortEnd",function(Tt){var Je=Oe.props,St=Je.hideSortableGhost,Mt=Je.onSortEnd,er=Oe.manager,It=er.active.collection,_t=er.isKeySorting,Xe=Oe.manager.getOrderedRefs();Oe.listenerNode&&(_t?(Oe.listenerNode.removeEventListener("wheel",Oe.handleKeyEnd,!0),Oe.listenerNode.removeEventListener("mousedown",Oe.handleKeyEnd,!0),Oe.listenerNode.removeEventListener("keydown",Oe.handleKeyDown)):(E.move.forEach(function(Z){return Oe.listenerNode.removeEventListener(Z,Oe.handleSortMove)}),E.end.forEach(function(Z){return Oe.listenerNode.removeEventListener(Z,Oe.handleSortEnd)}))),Oe.helper.parentNode.removeChild(Oe.helper),St&&Oe.sortableGhost&&w(Oe.sortableGhost,{opacity:"",visibility:""});for(var ie=0,X=Xe.length;ie<X;ie++){var Be=Xe[ie],Ce=Be.node;Be.edgeOffset=null,Be.boundingClientRect=null,S(Ce,null),_(Ce,null),Be.translate=null}Oe.autoScroller.clear(),Oe.manager.active=null,Oe.manager.isKeySorting=!1,Oe.setState({sorting:!1,sortingIndex:null}),typeof Mt=="function"&&Mt({collection:It,newIndex:Oe.newIndex,oldIndex:Oe.index,isKeySorting:_t,nodes:Xe},Tt),Oe.touched=!1}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"autoscroll",function(){var Tt=Oe.props.disableAutoscroll,Je=Oe.manager.isKeySorting;if(Tt){Oe.autoScroller.clear();return}if(Je){var St=Object(C.a)({},Oe.translate),Mt=0,er=0;Oe.axis.x&&(St.x=Math.min(Oe.maxTranslate.x,Math.max(Oe.minTranslate.x,Oe.translate.x)),Mt=Oe.translate.x-St.x),Oe.axis.y&&(St.y=Math.min(Oe.maxTranslate.y,Math.max(Oe.minTranslate.y,Oe.translate.y)),er=Oe.translate.y-St.y),Oe.translate=St,S(Oe.helper,Oe.translate),Oe.scrollContainer.scrollLeft+=Mt,Oe.scrollContainer.scrollTop+=er;return}Oe.autoScroller.update({height:Oe.height,maxTranslate:Oe.maxTranslate,minTranslate:Oe.minTranslate,translate:Oe.translate,width:Oe.width})}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"onAutoScroll",function(Tt){Oe.translate.x+=Tt.left,Oe.translate.y+=Tt.top,Oe.animateNodes()}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"handleKeyDown",function(Tt){var Je=Tt.keyCode,St=Oe.props,Mt=St.shouldCancelStart,er=St.keyCodes,It=er===void 0?{}:er,_t=Object(C.a)({},te,It);if(Oe.manager.active&&!Oe.manager.isKeySorting||!Oe.manager.active&&(!_t.lift.includes(Je)||Mt(Tt)||!Oe.isValidSortingTarget(Tt)))return;Tt.stopPropagation(),Tt.preventDefault(),_t.lift.includes(Je)&&!Oe.manager.active?Oe.keyLift(Tt):_t.drop.includes(Je)&&Oe.manager.active?Oe.keyDrop(Tt):_t.cancel.includes(Je)?(Oe.newIndex=Oe.manager.active.index,Oe.keyDrop(Tt)):_t.up.includes(Je)?Oe.keyMove(-1):_t.down.includes(Je)&&Oe.keyMove(1)}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"keyLift",function(Tt){var Je=Tt.target,St=I(Je,function(_t){return _t.sortableInfo!=null}),Mt=St.sortableInfo,er=Mt.index,It=Mt.collection;Oe.initialFocusedNode=Je,Oe.manager.isKeySorting=!0,Oe.manager.active={index:er,collection:It},Oe.handlePress(Tt)}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"keyMove",function(Tt){var Je=Oe.manager.getOrderedRefs(),St=Je[Je.length-1].node.sortableInfo.index,Mt=Oe.newIndex+Tt,er=Oe.newIndex;if(Mt<0||Mt>St)return;Oe.prevIndex=er,Oe.newIndex=Mt;var It=j(Oe.newIndex,Oe.prevIndex,Oe.index),_t=Je.find(function(ct){var Qe=ct.node;return Qe.sortableInfo.index===It}),Xe=_t.node,ie=Oe.containerScrollDelta,X=_t.boundingClientRect||F(Xe,ie),Be=_t.translate||{x:0,y:0},Ce={top:X.top+Be.y-ie.top,left:X.left+Be.x-ie.left},Z=er<Mt,nt={x:Z&&Oe.axis.x?Xe.offsetWidth-Oe.width:0,y:Z&&Oe.axis.y?Xe.offsetHeight-Oe.height:0};Oe.handleSortMove({pageX:Ce.left+nt.x,pageY:Ce.top+nt.y,ignoreTransition:Tt===0})}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"keyDrop",function(Tt){Oe.handleSortEnd(Tt),Oe.initialFocusedNode&&Oe.initialFocusedNode.focus()}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"handleKeyEnd",function(Tt){Oe.manager.active&&Oe.keyDrop(Tt)}),Object(r.a)(Object(o.a)(Object(o.a)(Oe)),"isValidSortingTarget",function(Tt){var Je=Oe.props.useDragHandle,St=Tt.target,Mt=I(St,function(er){return er.sortableInfo!=null});return Mt&&Mt.sortableInfo&&!Mt.sortableInfo.disabled&&(Je?Ie(St):St.sortableInfo)}),Y(et),Oe.manager=new p,Oe.events={end:Oe.handleEnd,move:Oe.handleMove,start:Oe.handleStart},Oe}return Object(b.a)(vt,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var Oe=this,Tt=this.props.useWindowAsScrollContainer,Je=this.getContainer();Promise.resolve(Je).then(function(St){Oe.container=St,Oe.document=Oe.container.ownerDocument||document;var Mt=Oe.props.contentWindow||Oe.document.defaultView||window;Oe.contentWindow=typeof Mt=="function"?Mt():Mt,Oe.scrollContainer=Tt?Oe.document.scrollingElement||Oe.document.documentElement:J(Oe.container)||Oe.container,Oe.autoScroller=new He(Oe.scrollContainer,Oe.onAutoScroll),Object.keys(Oe.events).forEach(function(er){return E[er].forEach(function(It){return Oe.container.addEventListener(It,Oe.events[er],!1)})}),Oe.container.addEventListener("keydown",Oe.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var Oe=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(Tt){return E[Tt].forEach(function(Je){return Oe.container.removeEventListener(Je,Oe.events[Tt])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(Oe){var Tt=this.props,Je=Tt.lockAxis,St=Tt.lockOffset,Mt=Tt.lockToContainerEdges,er=Tt.transitionDuration,It=Tt.keyboardSortingTransitionDuration,_t=It===void 0?er:It,Xe=this.manager.isKeySorting,ie=Oe.ignoreTransition,X=M(Oe),Be={x:X.x-this.initialOffset.x,y:X.y-this.initialOffset.y};if(Be.y-=window.pageYOffset-this.initialWindowScroll.top,Be.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=Be,Mt){var Ce=V({height:this.height,lockOffset:St,width:this.width}),Z=Object(x.a)(Ce,2),nt=Z[0],ct=Z[1],Qe={x:this.width/2-nt.x,y:this.height/2-nt.y},dt={x:this.width/2-ct.x,y:this.height/2-ct.y};Be.x=L(this.minTranslate.x+Qe.x,this.maxTranslate.x-dt.x,Be.x),Be.y=L(this.minTranslate.y+Qe.y,this.maxTranslate.y-dt.y,Be.y)}Je==="x"?Be.y=0:Je==="y"&&(Be.x=0),Xe&&_t&&!ie&&_(this.helper,_t),S(this.helper,Be)}},{key:"animateNodes",value:function(){var Oe=this.props,Tt=Oe.transitionDuration,Je=Oe.hideSortableGhost,St=Oe.onSortOver,Mt=this.containerScrollDelta,er=this.windowScrollDelta,It=this.manager.getOrderedRefs(),_t={left:this.offsetEdge.left+this.translate.x+Mt.left,top:this.offsetEdge.top+this.translate.y+Mt.top},Xe=this.manager.isKeySorting,ie=this.newIndex;this.newIndex=null;for(var X=0,Be=It.length;X<Be;X++){var Ce=It[X].node,Z=Ce.sortableInfo.index,nt=Ce.offsetWidth,ct=Ce.offsetHeight,Qe={height:this.height>ct?ct/2:this.height/2,width:this.width>nt?nt/2:this.width/2},dt=Xe&&Z>this.index&&Z<=ie,Ft=Xe&&Z<this.index&&Z>=ie,Lr={x:0,y:0},Wt=It[X].edgeOffset;Wt||(Wt=B(Ce,this.container),It[X].edgeOffset=Wt,Xe&&(It[X].boundingClientRect=F(Ce,Mt)));var ar=X<It.length-1&&It[X+1],Ut=X>0&&It[X-1];if(ar&&!ar.edgeOffset&&(ar.edgeOffset=B(ar.node,this.container),Xe&&(ar.boundingClientRect=F(ar.node,Mt))),Z===this.index){Je&&(this.sortableGhost=Ce,w(Ce,{opacity:0,visibility:"hidden"}));continue}Tt&&_(Ce,Tt),this.axis.x?this.axis.y?Ft||Z<this.index&&(_t.left+er.left-Qe.width<=Wt.left&&_t.top+er.top<=Wt.top+Qe.height||_t.top+er.top+Qe.height<=Wt.top)?(Lr.x=this.width+this.marginOffset.x,Wt.left+Lr.x>this.containerBoundingRect.width-Qe.width&&(ar&&(Lr.x=ar.edgeOffset.left-Wt.left,Lr.y=ar.edgeOffset.top-Wt.top)),this.newIndex===null&&(this.newIndex=Z)):(dt||Z>this.index&&(_t.left+er.left+Qe.width>=Wt.left&&_t.top+er.top+Qe.height>=Wt.top||_t.top+er.top+Qe.height>=Wt.top+ct))&&(Lr.x=-(this.width+this.marginOffset.x),Wt.left+Lr.x<this.containerBoundingRect.left+Qe.width&&(Ut&&(Lr.x=Ut.edgeOffset.left-Wt.left,Lr.y=Ut.edgeOffset.top-Wt.top)),this.newIndex=Z):dt||Z>this.index&&_t.left+er.left+Qe.width>=Wt.left?(Lr.x=-(this.width+this.marginOffset.x),this.newIndex=Z):(Ft||Z<this.index&&_t.left+er.left<=Wt.left+Qe.width)&&(Lr.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=Z)):this.axis.y&&(dt||Z>this.index&&_t.top+er.top+Qe.height>=Wt.top?(Lr.y=-(this.height+this.marginOffset.y),this.newIndex=Z):(Ft||Z<this.index&&_t.top+er.top<=Wt.top+Qe.height)&&(Lr.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=Z))),S(Ce,Lr),It[X].translate=Lr}this.newIndex==null&&(this.newIndex=this.index),Xe&&(this.newIndex=ie);var kt=Xe?this.prevIndex:ie;St&&this.newIndex!==kt&&St({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:kt,isKeySorting:Xe,nodes:It,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return u()(Ee.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var Oe=this.props.getContainer;return typeof Oe!="function"?Object(t.findDOMNode)(this):Oe(Ee.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var Oe=Ee.withRef?"wrappedInstance":null;return Object(i.createElement)(Se,Object(O.a)({ref:Oe},y(this.props,oe)))}},{key:"helperContainer",get:function(){var Oe=this.props.helperContainer;return typeof Oe=="function"?Oe():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var Oe=this.props.useWindowAsScrollContainer;return Oe?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),vt}(i.Component),Object(r.a)(le,"displayName",D("sortableList",Se)),Object(r.a)(le,"defaultProps",Ge),Object(r.a)(le,"propTypes",se),Object(r.a)(le,"childContextTypes",{manager:l.a.object.isRequired}),fe}var ye={index:l.a.number.isRequired,collection:l.a.oneOfType([l.a.number,l.a.string]),disabled:l.a.bool},ce=Object.keys(ye);function Te(Se){var le,fe,Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return fe=le=function(Ve){Object(c.a)(vt,Ve);function vt(){return Object(A.a)(this,vt),Object(g.a)(this,Object(f.a)(vt).apply(this,arguments))}return Object(b.a)(vt,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(Oe){this.node&&(Oe.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),Oe.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),Oe.collection!==this.props.collection&&(this.unregister(Oe.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var Oe=this.props,Tt=Oe.collection,Je=Oe.disabled,St=Oe.index,Mt=Object(t.findDOMNode)(this);Mt.sortableInfo={collection:Tt,disabled:Je,index:St,manager:this.context.manager},this.node=Mt,this.ref={node:Mt},this.context.manager.add(Tt,this.ref)}},{key:"unregister",value:function(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(Oe,this.ref)}},{key:"getWrappedInstance",value:function(){return u()(Ee.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var Oe=Ee.withRef?"wrappedInstance":null;return Object(i.createElement)(Se,Object(O.a)({ref:Oe},y(this.props,ce)))}}]),vt}(i.Component),Object(r.a)(le,"displayName",D("sortableElement",Se)),Object(r.a)(le,"contextTypes",{manager:l.a.object.isRequired}),Object(r.a)(le,"propTypes",ye),Object(r.a)(le,"defaultProps",{collection:0}),fe}},YNAk:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("QyFq")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="CaretDownFilled";var c=A.forwardRef(f);k.default=c},YNf1:function(H,k,d){var O=d("IwbS"),x=d("6Ic6"),C=.3,A=x.extend({type:"parallel",init:function(){this._dataGroup=new O.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(n,e,l,t){var a=this._dataGroup,s=n.getData(),u=this._data,h=n.coordinateSystem,p=h.dimensions,m=c(n);s.diff(u).add(v).update(y).remove(E).execute();function v(w){var S=f(s,a,w,p,h);o(S,s,w,m)}function y(w,S){var _=u.getItemGraphicEl(S),I=g(s,w,p,h);s.setItemGraphicEl(w,_);var L=t&&t.animation===!1?null:n;O.updateProps(_,{shape:{points:I}},L,w),o(_,s,w,m)}function E(w){var S=u.getItemGraphicEl(w);a.remove(S)}if(!this._initialized){this._initialized=!0;var T=b(h,n,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(T)}this._data=s},incrementalPrepareRender:function(n,e,l){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(n,e,l){for(var t=e.getData(),a=e.coordinateSystem,s=a.dimensions,u=c(e),h=n.start;h<n.end;h++){var p=f(t,this._dataGroup,h,s,a);p.incremental=!0,o(p,t,h,u)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function b(n,e,l){var t=n.model,a=n.getRect(),s=new O.Rect({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),u=t.get("layout")==="horizontal"?"width":"height";return s.setShape(u,0),O.initProps(s,{shape:{width:a.width,height:a.height}},e,l),s}function g(n,e,l,t){for(var a=[],s=0;s<l.length;s++){var u=l[s],h=n.get(n.mapDimension(u),e);r(h,t.getAxis(u).type)||a.push(t.dataToPoint(h,u))}return a}function f(n,e,l,t,a){var s=g(n,l,t,a),u=new O.Polyline({shape:{points:s},silent:!0,z2:10});return e.add(u),n.setItemGraphicEl(l,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 o(n,e,l,t){var a=t.lineStyle;if(e.hasItemOption){var s=e.getItemModel(l).getModel("lineStyle");a=s.getLineStyle()}n.useStyle(a);var u=n.style;u.fill=null,u.stroke=e.getItemVisual(l,"color"),u.opacity=e.getItemVisual(l,"opacity"),t.smooth&&(n.shape.smooth=t.smooth)}function r(n,e){return e==="category"?n==null:n==null||isNaN(n)}var i=A;H.exports=i},YOMW:function(H,k,d){var O=d("bYtY"),x={get:function(b,g,f){var c=O.clone((C[b]||{})[g]);return f&&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]}},A=x;H.exports=A},YXkt:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("Qxkt"),b=d("gPAo"),g=d("7G+c"),f=d("KxfA"),c=f.defaultDimValueGetters,o=f.DefaultDataProvider,r=d("L0Ub"),i=r.summarizeDimensions,n=d("Vi4m"),e=C.isObject,l="undefined",t=-1,a="e\0\0",s={float:typeof Float64Array===l?Array:Float64Array,int:typeof Int32Array===l?Array:Int32Array,ordinal:Array,number:Array,time:Array},u=typeof Uint32Array===l?Array:Uint32Array,h=typeof Int32Array===l?Array:Int32Array,p=typeof Uint16Array===l?Array:Uint16Array;function m(z){return z._rawCount>65535?u:p}function v(z){var J=z.constructor;return J===Array?z.slice():new J(z)}var y=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],E=["_extent","_approximateExtent","_rawExtent"];function T(z,J){C.each(y.concat(J.__wrappedMethods||[]),function(q){J.hasOwnProperty(q)&&(z[q]=J[q])}),z.__wrappedMethods=J.__wrappedMethods,C.each(E,function(q){z[q]=C.clone(J[q])}),z._calculationInfo=C.extend(J._calculationInfo)}var w=function(z,J){z=z||["x","y"];for(var q={},de=[],ae={},ve=0;ve<z.length;ve++){var _e=z[ve];C.isString(_e)?_e=new n({name:_e}):_e instanceof n||(_e=new n(_e));var Ie=_e.name;_e.type=_e.type||"float",_e.coordDim||(_e.coordDim=Ie,_e.coordDimIndex=0),_e.otherDims=_e.otherDims||{},de.push(Ie),q[Ie]=_e,_e.index=ve,_e.createInvertedIndices&&(ae[Ie]=[])}this.dimensions=de,this._dimensionInfos=q,this.hostModel=J,this.dataType,this._indices=null,this._count=0,this._rawCount=0,this._storage={},this._nameList=[],this._idList=[],this._optionModels=[],this._visual={},this._layout={},this._itemVisuals=[],this.hasItemVisual={},this._itemLayouts=[],this._graphicEls=[],this._chunkSize=1e5,this._chunkCount=0,this._rawData,this._rawExtent={},this._extent={},this._approximateExtent={},this._dimensionsSummary=i(this),this._invertedIndicesMap=ae,this._calculationInfo={},this.userOutput=this._dimensionsSummary.userOutput},S=w.prototype;S.type="list",S.hasItemOption=!0,S.getDimension=function(z){return(typeof z=="number"||!isNaN(z)&&!this._dimensionInfos.hasOwnProperty(z))&&(z=this.dimensions[z]),z},S.getDimensionInfo=function(z){return this._dimensionInfos[this.getDimension(z)]},S.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},S.mapDimension=function(z,J){var q=this._dimensionsSummary;if(J==null)return q.encodeFirstDimNotExtra[z];var de=q.encode[z];return J===!0?(de||[]).slice():de&&de[J]},S.initData=function(z,J,q){var de=g.isInstance(z)||C.isArrayLike(z);de&&(z=new o(z,this.dimensions.length)),this._rawData=z,this._storage={},this._indices=null,this._nameList=J||[],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)},S.getProvider=function(){return this._rawData},S.appendData=function(z){var J=this._rawData,q=this.count();J.appendData(z);var de=J.count();J.persistent||(de+=q),this._initDataFromProvider(q,de)},S.appendValues=function(z,J){for(var q=this._chunkSize,de=this._storage,ae=this.dimensions,ve=ae.length,_e=this._rawExtent,Ie=this.count(),He=Ie+Math.max(z.length,J?J.length:0),me=this._chunkCount,ke=0;ke<ve;ke++){var se=ae[ke];_e[se]||(_e[se]=j()),de[se]||(de[se]=[]),_(de,this._dimensionInfos[se],q,me,He),this._chunkCount=de[se].length}for(var te=new Array(ve),Ge=Ie;Ge<He;Ge++){for(var oe=Ge-Ie,Y=Math.floor(Ge/q),G=Ge%q,Q=0;Q<ve;Q++){var se=ae[Q],ye=this._dimValueGetterArrayRows(z[oe]||te,se,oe,Q);de[se][Y][G]=ye;var ce=_e[se];ye<ce[0]&&(ce[0]=ye),ye>ce[1]&&(ce[1]=ye)}J&&(this._nameList[Ge]=J[oe])}this._rawCount=this._count=He,this._extent={},I(this)},S._initDataFromProvider=function(z,J){if(z>=J)return;for(var q=this._chunkSize,de=this._rawData,ae=this._storage,ve=this.dimensions,_e=ve.length,Ie=this._dimensionInfos,He=this._nameList,me=this._idList,ke=this._rawExtent,se=this._nameRepeatCount={},te,Ge=this._chunkCount,oe=0;oe<_e;oe++){var Y=ve[oe];ke[Y]||(ke[Y]=j());var G=Ie[Y];G.otherDims.itemName===0&&(te=this._nameDimIdx=oe),G.otherDims.itemId===0&&(this._idDimIdx=oe),ae[Y]||(ae[Y]=[]),_(ae,G,q,Ge,J),this._chunkCount=ae[Y].length}for(var Q=new Array(_e),ye=z;ye<J;ye++){Q=de.getItem(ye,Q);for(var ce=Math.floor(ye/q),Te=ye%q,Se=0;Se<_e;Se++){var Y=ve[Se],le=ae[Y][ce],fe=this._dimValueGetter(Q,Y,ye,Se);le[Te]=fe;var Ee=ke[Y];fe<Ee[0]&&(Ee[0]=fe),fe>Ee[1]&&(Ee[1]=fe)}if(!de.pure){var Ve=He[ye];if(Q&&Ve==null){if(Q.name!=null)He[ye]=Ve=Q.name;else if(te!=null){var vt=ve[te],et=ae[vt][ce];if(et){Ve=et[Te];var Oe=Ie[vt].ordinalMeta;Oe&&Oe.categories.length&&(Ve=Oe.categories[Ve])}}}var Tt=Q==null?null:Q.id;Tt==null&&Ve!=null&&(se[Ve]=se[Ve]||0,Tt=Ve,se[Ve]>0&&(Tt+="__ec__"+se[Ve]),se[Ve]++),Tt!=null&&(me[ye]=Tt)}}!de.persistent&&de.clean&&de.clean(),this._rawCount=this._count=J,this._extent={},I(this)};function _(z,J,q,de,ae){var ve=s[J.type],_e=de-1,Ie=J.name,He=z[Ie][_e];if(He&&He.length<q){for(var me=new ve(Math.min(ae-_e*q,q)),ke=0;ke<He.length;ke++)me[ke]=He[ke];z[Ie][_e]=me}for(var se=de*q;se<ae;se+=q)z[Ie].push(new ve(Math.min(ae-se,q)))}function I(z){var J=z._invertedIndicesMap;C.each(J,function(q,de){var ae=z._dimensionInfos[de],ve=ae.ordinalMeta;if(ve){q=J[de]=new h(ve.categories.length);for(var _e=0;_e<q.length;_e++)q[_e]=t;for(var _e=0;_e<z._count;_e++)q[z.get(de,_e)]=_e}})}function L(z,J,q){var de;if(J!=null){var ae=z._chunkSize,ve=Math.floor(q/ae),_e=q%ae,Ie=z.dimensions[J],He=z._storage[Ie][ve];if(He){de=He[_e];var me=z._dimensionInfos[Ie].ordinalMeta;me&&me.categories.length&&(de=me.categories[de])}}return de}S.count=function(){return this._count},S.getIndices=function(){var z,J=this._indices;if(J){var q=J.constructor,de=this._count;if(q===Array){z=new q(de);for(var ae=0;ae<de;ae++)z[ae]=J[ae]}else z=new q(J.buffer,0,de)}else for(var q=m(this),z=new q(this.count()),ae=0;ae<z.length;ae++)z[ae]=ae;return z},S.get=function(z,J){if(!(J>=0&&J<this._count))return NaN;var q=this._storage;if(!q[z])return NaN;J=this.getRawIndex(J);var de=Math.floor(J/this._chunkSize),ae=J%this._chunkSize,ve=q[z][de],_e=ve[ae];return _e},S.getByRawIndex=function(z,J){if(!(J>=0&&J<this._rawCount))return NaN;var q=this._storage[z];if(!q)return NaN;var de=Math.floor(J/this._chunkSize),ae=J%this._chunkSize,ve=q[de];return ve[ae]},S._getFast=function(z,J){var q=Math.floor(J/this._chunkSize),de=J%this._chunkSize,ae=this._storage[z][q];return ae[de]},S.getValues=function(z,J){var q=[];C.isArray(z)||(J=z,z=this.dimensions);for(var de=0,ae=z.length;de<ae;de++)q.push(this.get(z[de],J));return q},S.hasValue=function(z){for(var J=this._dimensionsSummary.dataDimsOnCoord,q=0,de=J.length;q<de;q++)if(isNaN(this.get(J[q],z)))return!1;return!0},S.getDataExtent=function(z){z=this.getDimension(z);var J=this._storage[z],q=j();if(!J)return q;var de=this.count(),ae=!this._indices,ve;if(ae)return this._rawExtent[z].slice();if(ve=this._extent[z],ve)return ve.slice();ve=q;for(var _e=ve[0],Ie=ve[1],He=0;He<de;He++){var me=this._getFast(z,this.getRawIndex(He));me<_e&&(_e=me),me>Ie&&(Ie=me)}return ve=[_e,Ie],this._extent[z]=ve,ve},S.getApproximateExtent=function(z){return z=this.getDimension(z),this._approximateExtent[z]||this.getDataExtent(z)},S.setApproximateExtent=function(z,J){J=this.getDimension(J),this._approximateExtent[J]=z.slice()},S.getCalculationInfo=function(z){return this._calculationInfo[z]},S.setCalculationInfo=function(z,J){e(z)?C.extend(this._calculationInfo,z):this._calculationInfo[z]=J},S.getSum=function(z){var J=this._storage[z],q=0;if(J)for(var de=0,ae=this.count();de<ae;de++){var ve=this.get(z,de);isNaN(ve)||(q+=ve)}return q},S.getMedian=function(z){var J=[];this.each(z,function(ae,ve){isNaN(ae)||J.push(ae)});var q=[].concat(J).sort(function(ae,ve){return ae-ve}),de=this.count();return de===0?0:de%2===1?q[(de-1)/2]:(q[de/2]+q[de/2-1])/2},S.rawIndexOf=function(z,J){var q=z&&this._invertedIndicesMap[z],de=q[J];return de==null||isNaN(de)?t:de},S.indexOfName=function(z){for(var J=0,q=this.count();J<q;J++)if(this.getName(J)===z)return J;return-1},S.indexOfRawIndex=function(z){if(z>=this._rawCount||z<0)return-1;if(!this._indices)return z;var J=this._indices,q=J[z];if(q!=null&&q<this._count&&q===z)return z;for(var de=0,ae=this._count-1;de<=ae;){var ve=(de+ae)/2|0;if(J[ve]<z)de=ve+1;else if(J[ve]>z)ae=ve-1;else return ve}return-1},S.indicesOfNearest=function(z,J,q){var de=this._storage,ae=de[z],ve=[];if(!ae)return ve;q==null&&(q=Infinity);for(var _e=Infinity,Ie=-1,He=0,me=0,ke=this.count();me<ke;me++){var se=J-this.get(z,me),te=Math.abs(se);te<=q&&((te<_e||te===_e&&se>=0&&Ie<0)&&(_e=te,Ie=se,He=0),se===Ie&&(ve[He++]=me))}return ve.length=He,ve},S.getRawIndex=N;function N(z){return z}function R(z){return z<this._count&&z>=0?this._indices[z]:-1}S.getRawDataItem=function(z){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(z));for(var J=[],q=0;q<this.dimensions.length;q++){var de=this.dimensions[q];J.push(this.get(de,z))}return J},S.getName=function(z){var J=this.getRawIndex(z);return this._nameList[J]||L(this,this._nameDimIdx,J)||""},S.getId=function(z){return D(this,this.getRawIndex(z))};function D(z,J){var q=z._idList[J];return q==null&&(q=L(z,z._idDimIdx,J)),q==null&&(q=a+J),q}function F(z){return C.isArray(z)||(z=[z]),z}function M(z,J){for(var q=0;q<J.length;q++)z._dimensionInfos[J[q]]||console.error("Unkown dimension "+J[q])}S.each=function(z,J,q,de){"use strict";if(!this._count)return;typeof z=="function"&&(de=q,q=J,J=z,z=[]),q=q||de||this,z=C.map(F(z),this.getDimension,this);for(var ae=z.length,ve=0;ve<this.count();ve++)switch(ae){case 0:J.call(q,ve);break;case 1:J.call(q,this.get(z[0],ve),ve);break;case 2:J.call(q,this.get(z[0],ve),this.get(z[1],ve),ve);break;default:for(var _e=0,Ie=[];_e<ae;_e++)Ie[_e]=this.get(z[_e],ve);Ie[_e]=ve,J.apply(q,Ie)}},S.filterSelf=function(z,J,q,de){"use strict";if(!this._count)return;typeof z=="function"&&(de=q,q=J,J=z,z=[]),q=q||de||this,z=C.map(F(z),this.getDimension,this);for(var ae=this.count(),ve=m(this),_e=new ve(ae),Ie=[],He=z.length,me=0,ke=z[0],se=0;se<ae;se++){var te,Ge=this.getRawIndex(se);if(He===0)te=J.call(q,se);else if(He===1){var oe=this._getFast(ke,Ge);te=J.call(q,oe,se)}else{for(var Y=0;Y<He;Y++)Ie[Y]=this._getFast(ke,Ge);Ie[Y]=se,te=J.apply(q,Ie)}te&&(_e[me++]=Ge)}return me<ae&&(this._indices=_e),this._count=me,this._extent={},this.getRawIndex=this._indices?R:N,this},S.selectRange=function(z){"use strict";if(!this._count)return;var J=[];for(var q in z)z.hasOwnProperty(q)&&J.push(q);var de=J.length;if(!de)return;var ae=this.count(),ve=m(this),_e=new ve(ae),Ie=0,He=J[0],me=z[He][0],ke=z[He][1],se=!1;if(!this._indices){var te=0;if(de===1){for(var Ge=this._storage[J[0]],oe=0;oe<this._chunkCount;oe++)for(var Y=Ge[oe],G=Math.min(this._count-oe*this._chunkSize,this._chunkSize),Q=0;Q<G;Q++){var ye=Y[Q];(ye>=me&&ye<=ke||isNaN(ye))&&(_e[Ie++]=te),te++}se=!0}else if(de===2){for(var Ge=this._storage[He],ce=this._storage[J[1]],Te=z[J[1]][0],Se=z[J[1]][1],oe=0;oe<this._chunkCount;oe++)for(var Y=Ge[oe],le=ce[oe],G=Math.min(this._count-oe*this._chunkSize,this._chunkSize),Q=0;Q<G;Q++){var ye=Y[Q],fe=le[Q];(ye>=me&&ye<=ke||isNaN(ye))&&(fe>=Te&&fe<=Se||isNaN(fe))&&(_e[Ie++]=te),te++}se=!0}}if(!se)if(de===1)for(var Q=0;Q<ae;Q++){var Ee=this.getRawIndex(Q),ye=this._getFast(He,Ee);(ye>=me&&ye<=ke||isNaN(ye))&&(_e[Ie++]=Ee)}else for(var Q=0;Q<ae;Q++){for(var Ve=!0,Ee=this.getRawIndex(Q),oe=0;oe<de;oe++){var vt=J[oe],ye=this._getFast(q,Ee);(ye<z[vt][0]||ye>z[vt][1])&&(Ve=!1)}Ve&&(_e[Ie++]=this.getRawIndex(Q))}return Ie<ae&&(this._indices=_e),this._count=Ie,this._extent={},this.getRawIndex=this._indices?R:N,this},S.mapArray=function(z,J,q,de){"use strict";typeof z=="function"&&(de=q,q=J,J=z,z=[]),q=q||de||this;var ae=[];return this.each(z,function(){ae.push(J&&J.apply(this,arguments))},q),ae};function U(z,J){var q=z.dimensions,de=new w(C.map(q,z.getDimensionInfo,z),z.hostModel);T(de,z);for(var ae=de._storage={},ve=z._storage,_e=0;_e<q.length;_e++){var Ie=q[_e];ve[Ie]&&(C.indexOf(J,Ie)>=0?(ae[Ie]=B(ve[Ie]),de._rawExtent[Ie]=j(),de._extent[Ie]=null):ae[Ie]=ve[Ie])}return de}function B(z){for(var J=new Array(z.length),q=0;q<z.length;q++)J[q]=v(z[q]);return J}function j(){return[Infinity,-Infinity]}S.map=function(z,J,q,de){"use strict";q=q||de||this,z=C.map(F(z),this.getDimension,this);var ae=U(this,z);ae._indices=this._indices,ae.getRawIndex=ae._indices?R:N;for(var ve=ae._storage,_e=[],Ie=this._chunkSize,He=z.length,me=this.count(),ke=[],se=ae._rawExtent,te=0;te<me;te++){for(var Ge=0;Ge<He;Ge++)ke[Ge]=this.get(z[Ge],te);ke[He]=te;var oe=J&&J.apply(q,ke);if(oe!=null){typeof oe!="object"&&(_e[0]=oe,oe=_e);for(var Y=this.getRawIndex(te),G=Math.floor(Y/Ie),Q=Y%Ie,ye=0;ye<oe.length;ye++){var ce=z[ye],Te=oe[ye],Se=se[ce],le=ve[ce];le&&(le[G][Q]=Te),Te<Se[0]&&(Se[0]=Te),Te>Se[1]&&(Se[1]=Te)}}}return ae},S.downSample=function(z,J,q,de){for(var ae=U(this,[z]),ve=ae._storage,_e=[],Ie=Math.floor(1/J),He=ve[z],me=this.count(),ke=this._chunkSize,se=ae._rawExtent[z],te=new(m(this))(me),Ge=0,oe=0;oe<me;oe+=Ie){Ie>me-oe&&(Ie=me-oe,_e.length=Ie);for(var Y=0;Y<Ie;Y++){var G=this.getRawIndex(oe+Y),Q=Math.floor(G/ke),ye=G%ke;_e[Y]=He[Q][ye]}var ce=q(_e),Te=this.getRawIndex(Math.min(oe+de(_e,ce)||0,me-1)),Se=Math.floor(Te/ke),le=Te%ke;He[Se][le]=ce,ce<se[0]&&(se[0]=ce),ce>se[1]&&(se[1]=ce),te[Ge++]=Te}return ae._count=Ge,ae._indices=te,ae.getRawIndex=R,ae},S.getItemModel=function(z){var J=this.hostModel;return new A(this.getRawDataItem(z),J,J&&J.ecModel)},S.diff=function(z){var J=this;return new b(z?z.getIndices():[],this.getIndices(),function(q){return D(z,q)},function(q){return D(J,q)})},S.getVisual=function(z){var J=this._visual;return J&&J[z]},S.setVisual=function(z,J){if(e(z)){for(var q in z)z.hasOwnProperty(q)&&this.setVisual(q,z[q]);return}this._visual=this._visual||{},this._visual[z]=J},S.setLayout=function(z,J){if(e(z)){for(var q in z)z.hasOwnProperty(q)&&this.setLayout(q,z[q]);return}this._layout[z]=J},S.getLayout=function(z){return this._layout[z]},S.getItemLayout=function(z){return this._itemLayouts[z]},S.setItemLayout=function(z,J,q){this._itemLayouts[z]=q?C.extend(this._itemLayouts[z]||{},J):J},S.clearItemLayouts=function(){this._itemLayouts.length=0},S.getItemVisual=function(z,J,q){var de=this._itemVisuals[z],ae=de&&de[J];return ae==null&&!q?this.getVisual(J):ae},S.setItemVisual=function(z,J,q){var de=this._itemVisuals[z]||{},ae=this.hasItemVisual;if(this._itemVisuals[z]=de,e(J)){for(var ve in J)J.hasOwnProperty(ve)&&(de[ve]=J[ve],ae[ve]=!0);return}de[J]=q,ae[J]=!0},S.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var W=function(z){z.seriesIndex=this.seriesIndex,z.dataIndex=this.dataIndex,z.dataType=this.dataType};S.setItemGraphicEl=function(z,J){var q=this.hostModel;J&&(J.dataIndex=z,J.dataType=this.dataType,J.seriesIndex=q&&q.seriesIndex,J.type==="group"&&J.traverse(W,J)),this._graphicEls[z]=J},S.getItemGraphicEl=function(z){return this._graphicEls[z]},S.eachItemGraphicEl=function(z,J){C.each(this._graphicEls,function(q,de){q&&(z&&z.call(J,q,de))})},S.cloneShallow=function(z){if(!z){var J=C.map(this.dimensions,this.getDimensionInfo,this);z=new w(J,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?R:N,z},S.wrapMethod=function(z,J){var q=this[z];if(typeof q!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(z),this[z]=function(){var de=q.apply(this,arguments);return J.apply(this,[de].concat(C.slice(arguments)))}},S.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],S.CHANGABLE_METHODS=["filterSelf","selectRange"];var V=w;H.exports=V},YgsL:function(H,k,d){var O=d("QBsz"),x=O.distance;function C(b,g,f,c,o,r,i){var n=(f-b)*.5,e=(c-g)*.5;return(2*(g-f)+n+e)*i+(-3*(g-f)-2*n-e)*r+n*o+g}function A(b,g){for(var f=b.length,c=[],o=0,r=1;r<f;r++)o+=x(b[r-1],b[r]);var i=o/2;i=i<f?f:i;for(var r=0;r<i;r++){var n=r/(i-1)*(g?f:f-1),e=Math.floor(n),l=n-e,t,a=b[e%f],s,u;g?(t=b[(e-1+f)%f],s=b[(e+1)%f],u=b[(e+2)%f]):(t=b[e===0?e:e-1],s=b[e>f-2?f-1:e+1],u=b[e>f-3?f-1:e+2]);var h=l*l,p=l*h;c.push([C(t[0],a[0],s[0],u[0],l,h,p),C(t[1],a[1],s[1],u[1],l,h,p)])}return c}H.exports=A},Yl7c:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=".",b="___EC__COMPONENT__CONTAINER___";function g(t){var a={main:"",sub:""};return t&&(t=t.split(A),a.main=t[0]||"",a.sub=t[1]||""),a}function f(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(s){var u=this,h=function(){s.$constructor?s.$constructor.apply(this,arguments):u.apply(this,arguments)};return C.extend(h.prototype,s),h.extend=this.extend,h.superCall=i,h.superApply=n,C.inherits(h,this),h.superClass=u,h}}var o=0;function r(t){var a=["__\0is_clz",o++,Math.random().toFixed(3)].join("_");t.prototype[a]=!0,t.isInstance=function(s){return!!(s&&s[a])}}function i(t,a){var s=C.slice(arguments,2);return this.superClass.prototype[a].apply(t,s)}function n(t,a,s){return this.superClass.prototype[a].apply(t,s)}function e(t,a){a=a||{};var s={};t.registerClass=function(p,m){if(m){if(f(m),m=g(m),!m.sub)s[m.main]=p;else if(m.sub!==b){var v=u(m);v[m.sub]=p}}return p},t.getClass=function(p,m,v){var y=s[p];if(y&&y[b]&&(y=m?y[m]:null),v&&!y)throw new Error(m?"Component "+p+"."+(m||"")+" not exists. Load it first.":p+".type should be specified.");return y},t.getClassesByMainType=function(p){p=g(p);var m=[],v=s[p.main];return v&&v[b]?C.each(v,function(y,E){E!==b&&m.push(y)}):m.push(v),m},t.hasClass=function(p){return p=g(p),!!s[p.main]},t.getAllClassMainTypes=function(){var p=[];return C.each(s,function(m,v){p.push(v)}),p},t.hasSubTypes=function(p){p=g(p);var m=s[p.main];return m&&m[b]},t.parseClassType=g;function u(p){var m=s[p.main];return(!m||!m[b])&&(m=s[p.main]={},m[b]=!0),m}if(a.registerWhenExtend){var h=t.extend;h&&(t.extend=function(p){var m=h.call(this,p);return t.registerClass(m,p.type)})}return t}function l(t,a){}k.parseClassType=g,k.enableClassExtend=c,k.enableClassCheck=r,k.enableClassManagement=e,k.setReadOnly=l},Ynxi:function(H,k,d){var O=d("bYtY"),x=d("ProS"),C=d("IwbS"),A=d("+TT/"),b=A.getLayoutRect,g=d("7aKB"),f=g.windowOpen;x.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"}}}),x.extendComponentView({type:"title",render:function(c,o,r){if(this.group.removeAll(),!c.get("show"))return;var i=this.group,n=c.getModel("textStyle"),e=c.getModel("subtextStyle"),l=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}),s=a.getBoundingRect(),u=c.get("subtext"),h=new C.Text({style:C.setTextStyle({},e,{text:u,textFill:e.getTextColor(),y:s.height+c.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),p=c.get("link"),m=c.get("sublink"),v=c.get("triggerEvent",!0);a.silent=!p&&!v,h.silent=!m&&!v,p&&a.on("click",function(){f(p,"_"+c.get("target"))}),m&&h.on("click",function(){f(p,"_"+c.get("subtarget"))}),a.eventData=h.eventData=v?{componentType:"title",componentIndex:c.componentIndex}:null,i.add(a),u&&i.add(h);var y=i.getBoundingRect(),E=c.getBoxLayoutParams();E.width=y.width,E.height=y.height;var T=b(E,{width:r.getWidth(),height:r.getHeight()},c.get("padding"));l||(l=c.get("left")||c.get("right"),l==="middle"&&(l="center"),l==="right"?T.x+=T.width:l==="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"),i.attr("position",[T.x,T.y]);var w={textAlign:l,textVerticalAlign:t};a.setStyle(w),h.setStyle(w),y=i.getBoundingRect();var S=T.margin,_=c.getItemStyle(["color","opacity"]);_.fill=c.get("backgroundColor");var I=new C.Rect({shape:{x:y.x-S[3],y:y.y-S[0],width:y.width+S[1]+S[3],height:y.height+S[0]+S[2],r:c.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(I)}})},Ywus:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("DO2E")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="DeleteOutlined";var c=A.forwardRef(f);k.default=c},Z0Lh:function(H,k,d){"use strict";var O=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var x=O(d("pVnL")),C=O(d("HjOm")),A=O(d("Z6rY")),b={lang:(0,x.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,x.default)({},A.default)};b.lang.ok="\u786E \u5B9A";var g=b;k.default=g},Z1HP:function(H,k,d){var O=d("ycre"),x=d("quyA"),C=d("q4HE");function A(b){return x(b)?C(b):O(b)}H.exports=A},Z1r0:function(H,k){function d(O){var x=O.findComponents({mainType:"legend"});if(!x||!x.length)return;O.eachSeriesByType("graph",function(C){var A=C.getCategoriesData(),b=C.getGraph(),g=b.data,f=A.mapArray(A.getName);g.filterSelf(function(c){var o=g.getItemModel(c),r=o.getShallow("category");if(r!=null){typeof r=="number"&&(r=f[r]);for(var i=0;i<x.length;i++)if(!x[i].isSelected(r))return!1}return!0})},this)}H.exports=d},Z1wy:function(H,k,d){var O=d("ProS");d("ThAp"),d("pmaE"),d("SehX"),d("7uqq");var x=d("zuHt"),C=d("VPsl"),A=d("9u0u"),b=d("lELe"),g=d("d4KN");O.registerLayout(x),O.registerVisual(C),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,A),O.registerPreprocessor(b),g("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},Z6js:function(H,k,d){var O=d("MwEJ"),x=d("T4UG"),C=x.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(A,b){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}});H.exports=C},Z6rY:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},x=O;k.default=x},Z8zF:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),b=d("IwbS"),g=d("56rv"),f=g.setLabel,c=d("Qxkt"),o=d("tceW"),r=d("y+Vt"),i=d("4fz+"),n=d("iLNv"),e=n.throttle,l=d("sK/D"),t=l.createClipPath,a=d("wr5s"),s=["itemStyle","barBorderWidth"],u=[0,0];A.extend(c.prototype,o);function h(W,V){var z=W.getArea&&W.getArea();if(W.type==="cartesian2d"){var J=W.getBaseAxis();if(J.type!=="category"||!J.onBand){var q=V.getLayout("bandWidth");J.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(W,V,z){this._updateDrawMode(W);var J=W.get("coordinateSystem");return(J==="cartesian2d"||J==="polar")&&(this._isLargeDraw?this._renderLarge(W,V,z):this._renderNormal(W,V,z)),this.group},incrementalPrepareRender:function(W,V,z){this._clear(),this._updateDrawMode(W)},incrementalRender:function(W,V,z,J){this._incrementalRenderLarge(W,V)},_updateDrawMode:function(W){var V=W.pipelineContext.large;(this._isLargeDraw==null||V^this._isLargeDraw)&&(this._isLargeDraw=V,this._clear())},_renderNormal:function(W,V,z){var J=this.group,q=W.getData(),de=this._data,ae=W.coordinateSystem,ve=ae.getBaseAxis(),_e;ae.type==="cartesian2d"?_e=ve.isHorizontal():ae.type==="polar"&&(_e=ve.dim==="angle");var Ie=W.isAnimationEnabled()?W:null,He=W.get("clip",!0),me=h(ae,q);J.removeClipPath();var ke=W.get("roundCap",!0),se=W.get("showBackground",!0),te=W.getModel("backgroundStyle"),Ge=te.get("barBorderRadius")||0,oe=[],Y=this._backgroundEls||[];q.diff(de).add(function(ye){var ce=q.getItemModel(ye),Te=S[ae.type](q,ye,ce);if(se){var Se=S[ae.type](q,ye),le=j(ae,_e,Se);le.useStyle(te.getBarItemStyle()),ae.type==="cartesian2d"&&le.setShape("r",Ge),oe[ye]=le}if(!q.hasValue(ye))return;if(He){var fe=y[ae.type](me,Te);if(fe){J.remove(Ee);return}}var Ee=E[ae.type](ye,Te,_e,Ie,!1,ke);q.setItemGraphicEl(ye,Ee),J.add(Ee),I(Ee,q,ye,ce,Te,W,_e,ae.type==="polar")}).update(function(ye,ce){var Te=q.getItemModel(ye),Se=S[ae.type](q,ye,Te);if(se){var le=Y[ce];le.useStyle(te.getBarItemStyle()),ae.type==="cartesian2d"&&le.setShape("r",Ge),oe[ye]=le;var fe=S[ae.type](q,ye),Ee=B(_e,fe,ae);b.updateProps(le,{shape:Ee},Ie,ye)}var Ve=de.getItemGraphicEl(ce);if(!q.hasValue(ye)){J.remove(Ve);return}if(He){var vt=y[ae.type](me,Se);if(vt){J.remove(Ve);return}}Ve?b.updateProps(Ve,{shape:Se},Ie,ye):Ve=E[ae.type](ye,Se,_e,Ie,!0,ke),q.setItemGraphicEl(ye,Ve),J.add(Ve),I(Ve,q,ye,Te,Se,W,_e,ae.type==="polar")}).remove(function(ye){var ce=de.getItemGraphicEl(ye);ae.type==="cartesian2d"?ce&&T(ye,Ie,ce):ce&&w(ye,Ie,ce)}).execute();var G=this._backgroundGroup||(this._backgroundGroup=new i);G.removeAll();for(var Q=0;Q<oe.length;++Q)G.add(oe[Q]);J.add(G),this._backgroundEls=oe,this._data=q},_renderLarge:function(W,V,z){this._clear(),R(W,this.group);var J=W.get("clip",!0)?t(W.coordinateSystem,!1,W):null;J?this.group.setClipPath(J):this.group.removeClipPath()},_incrementalRenderLarge:function(W,V){this._removeBackground(),R(V,this.group,!0)},dispose:A.noop,remove:function(W){this._clear(W)},_clear:function(W){var V=this.group,z=this._data;W&&W.get("animation")&&z&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],z.eachItemGraphicEl(function(J){J.type==="sector"?w(J.dataIndex,W,J):T(J.dataIndex,W,J)})):V.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),m=Math.max,v=Math.min,y={cartesian2d:function(W,V){var z=V.width<0?-1:1,J=V.height<0?-1:1;z<0&&(V.x+=V.width,V.width=-V.width),J<0&&(V.y+=V.height,V.height=-V.height);var q=m(V.x,W.x),de=v(V.x+V.width,W.x+W.width),ae=m(V.y,W.y),ve=v(V.y+V.height,W.y+W.height);V.x=q,V.y=ae,V.width=de-q,V.height=ve-ae;var _e=V.width<0||V.height<0;return z<0&&(V.x+=V.width,V.width=-V.width),J<0&&(V.y+=V.height,V.height=-V.height),_e},polar:function(W){return!1}},E={cartesian2d:function(W,V,z,J,q){var de=new b.Rect({shape:A.extend({},V),z2:1});if(de.name="item",J){var ae=de.shape,ve=z?"height":"width",_e={};ae[ve]=0,_e[ve]=V[ve],b[q?"updateProps":"initProps"](de,{shape:_e},J,W)}return de},polar:function(W,V,z,J,q,de){var ae=V.startAngle<V.endAngle,ve=!z&&de?a:b.Sector,_e=new ve({shape:A.defaults({clockwise:ae},V),z2:1});if(_e.name="item",J){var Ie=_e.shape,He=z?"r":"endAngle",me={};Ie[He]=z?0:V.startAngle,me[He]=V[He],b[q?"updateProps":"initProps"](_e,{shape:me},J,W)}return _e}};function T(W,V,z){z.style.text=null,b.updateProps(z,{shape:{width:0}},V,W,function(){z.parent&&z.parent.remove(z)})}function w(W,V,z){z.style.text=null,b.updateProps(z,{shape:{r:z.shape.r0}},V,W,function(){z.parent&&z.parent.remove(z)})}var S={cartesian2d:function(W,V,z){var J=W.getItemLayout(V),q=z?L(z,J):0,de=J.width>0?1:-1,ae=J.height>0?1:-1;return{x:J.x+de*q/2,y:J.y+ae*q/2,width:J.width-de*q,height:J.height-ae*q}},polar:function(W,V,z){var J=W.getItemLayout(V);return{cx:J.cx,cy:J.cy,r0:J.r0,r:J.r,startAngle:J.startAngle,endAngle:J.endAngle}}};function _(W){return W.startAngle!=null&&W.endAngle!=null&&W.startAngle===W.endAngle}function I(W,V,z,J,q,de,ae,ve){var _e=V.getItemVisual(z,"color"),Ie=V.getItemVisual(z,"opacity"),He=V.getVisual("borderColor"),me=J.getModel("itemStyle"),ke=J.getModel("emphasis.itemStyle").getBarItemStyle();ve||W.setShape("r",me.get("barBorderRadius")||0),W.useStyle(A.defaults({stroke:_(q)?"none":He,fill:_(q)?"none":_e,opacity:Ie},me.getBarItemStyle()));var se=J.getShallow("cursor");se&&W.attr("cursor",se);var te=ae?q.height>0?"bottom":"top":q.width>0?"left":"right";ve||f(W.style,ke,J,_e,de,z,te),_(q)&&(ke.fill=ke.stroke="none"),b.setHoverStyle(W,ke)}function L(W,V){var z=W.get(s)||0,J=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,J,q)}var N=r.extend({type:"largeBar",shape:{points:[]},buildPath:function(W,V){for(var z=V.points,J=this.__startPoint,q=this.__baseDimIdx,de=0;de<z.length;de+=2)J[q]=z[de+q],W.moveTo(J[0],J[1]),W.lineTo(z[de],z[de+1])}});function R(W,V,z){var J=W.getData(),q=[],de=J.getLayout("valueAxisHorizontal")?1:0;q[1-de]=J.getLayout("valueAxisStart");var ae=J.getLayout("largeDataIndices"),ve=J.getLayout("barWidth"),_e=W.getModel("backgroundStyle"),Ie=W.get("showBackground",!0);if(Ie){var He=J.getLayout("largeBackgroundPoints"),me=[];me[1-de]=J.getLayout("backgroundStart");var ke=new N({shape:{points:He},incremental:!!z,__startPoint:me,__baseDimIdx:de,__largeDataIndices:ae,__barWidth:ve,silent:!0,z2:0});U(ke,_e,J),V.add(ke)}var se=new N({shape:{points:J.getLayout("largePoints")},incremental:!!z,__startPoint:q,__baseDimIdx:de,__largeDataIndices:ae,__barWidth:ve});V.add(se),M(se,W,J),se.seriesIndex=W.seriesIndex,W.get("silent")||(se.on("mousedown",D),se.on("mousemove",D))}var D=e(function(W){var V=this,z=F(V,W.offsetX,W.offsetY);V.dataIndex=z>=0?z:null},30,!1);function F(W,V,z){var J=W.__baseDimIdx,q=1-J,de=W.shape.points,ae=W.__largeDataIndices,ve=Math.abs(W.__barWidth/2),_e=W.__startPoint[q];u[0]=V,u[1]=z;for(var Ie=u[J],He=u[1-J],me=Ie-ve,ke=Ie+ve,se=0,te=de.length/2;se<te;se++){var Ge=se*2,oe=de[Ge+J],Y=de[Ge+q];if(oe>=me&&oe<=ke&&(_e<=Y?He>=_e&&He<=Y:He>=Y&&He<=_e))return ae[se]}return-1}function M(W,V,z){var J=z.getVisual("borderColor")||z.getVisual("color"),q=V.getModel("itemStyle").getItemStyle(["color","borderColor"]);W.useStyle(q),W.style.fill=null,W.style.stroke=J,W.style.lineWidth=z.getLayout("barWidth")}function U(W,V,z){var J=V.get("borderColor")||V.get("color"),q=V.getItemStyle(["color","borderColor"]);W.useStyle(q),W.style.fill=null,W.style.stroke=J,W.style.lineWidth=z.getLayout("barWidth")}function B(W,V,z){var J,q=z.type==="polar";return q?J=z.getArea():J=z.grid.getRect(),q?{cx:J.cx,cy:J.cy,r0:W?J.r0:V.r0,r:W?J.r:V.r,startAngle:W?V.startAngle:0,endAngle:W?V.endAngle:Math.PI*2}:{x:W?V.x:J.x,y:W?J.y:V.y,width:W?V.width:J.width,height:W?J.height:V.height}}function j(W,V,z){var J=W.type==="polar"?b.Sector:b.Rect;return new J({shape:B(V,z,W),silent:!0,z2:0})}H.exports=p},ZCgT:function(H,k,d){var O=d("tLB3"),x=1/0,C=17976931348623157e292;function A(b){if(!b)return b===0?b:0;if(b=O(b),b===x||b===-x){var g=b<0?-1:1;return g*C}return b===b?b:0}H.exports=A},ZLWo:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},ZMnZ:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("2oIt")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="UpOutlined";var c=A.forwardRef(f);k.default=c},ZTPi:function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),b=d("q1tI"),g=d.n(b),f=d("rePB"),c=d("ODXe"),o=d("Ff2n"),r=d("VTBJ"),i=d("TSYQ"),n=d.n(i),e=d("TOwV");function l(Dr){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tn=[];return g.a.Children.forEach(Dr,function(en){if(en==null&&!rn.keepEmpty)return;Array.isArray(en)?Tn=Tn.concat(l(en)):Object(e.isFragment)(en)&&en.props?Tn=Tn.concat(l(en.props.children,rn)):Tn.push(en)}),Tn}function t(Dr){var rn=b.useRef();rn.current=Dr;var Tn=b.useCallback(function(){for(var en,ur=arguments.length,sn=new Array(ur),Bn=0;Bn<ur;Bn++)sn[Bn]=arguments[Bn];return(en=rn.current)===null||en===void 0?void 0:en.call.apply(en,[rn].concat(sn))},[]);return Tn}function a(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var s=a()?b.useLayoutEffect:b.useEffect,u=s,h=function(rn,Tn){var en=b.useRef(!0);s(function(){if(!en.current)return rn()},Tn),s(function(){return en.current=!1,function(){en.current=!0}},[])};function p(Dr){var rn=b.useRef(!1),Tn=b.useState(Dr),en=Object(c.a)(Tn,2),ur=en[0],sn=en[1];b.useEffect(function(){return rn.current=!1,function(){rn.current=!0}},[]);function Bn(Hn,Li){if(Li&&rn.current)return;sn(Hn)}return[ur,Bn]}var m;(function(Dr){Dr[Dr.INNER=0]="INNER",Dr[Dr.PROP=1]="PROP"})(m||(m={}));function v(Dr){return Dr!==void 0}function y(Dr,rn){var Tn=rn||{},en=Tn.defaultValue,ur=Tn.value,sn=Tn.onChange,Bn=Tn.postState,Hn=p(function(){var Ra=void 0,so;return v(ur)?(Ra=ur,so=m.PROP):v(en)?(Ra=typeof en=="function"?en():en,so=m.PROP):(Ra=typeof Dr=="function"?Dr():Dr,so=m.INNER),[Ra,so,Ra]}),Li=Object(c.a)(Hn,2),Ci=Li[0],Jn=Li[1],mi=v(ur)?ur:Ci[0],yi=Bn?Bn(mi):mi;h(function(){Jn(function(Ra){var so=Object(c.a)(Ra,1),La=so[0];return[ur,m.PROP,La]})},[ur]);var da=b.useRef(),ha=t(function(Ra,so){Jn(function(La){var lo=Object(c.a)(La,3),So=lo[0],Qt=lo[1],Vr=lo[2],cn=typeof Ra=="function"?Ra(So):Ra;if(cn===So)return La;var vn=Qt===m.INNER&&da.current!==Vr?Vr:So;return[cn,m.INNER,vn]},so)}),Pa=t(sn);return u(function(){var Ra=Object(c.a)(Ci,3),so=Ra[0],La=Ra[1],lo=Ra[2];so!==lo&&La===m.INNER&&(Pa(so,lo),da.current=lo)},[Ci]),[yi,ha]}var E=d("KQm4"),T=d("xEkU"),w=d.n(T),S=d("1OyB"),_=d("vuIU"),I=d("Ji7U"),L=d("LK+K"),N=d("i8i4"),R=d.n(N);function D(Dr){return Dr instanceof HTMLElement?Dr:R.a.findDOMNode(Dr)}var F={};function M(Dr,rn){}function U(Dr,rn){}function B(){F={}}function j(Dr,rn,Tn){!rn&&!F[Tn]&&(Dr(!1,Tn),F[Tn]=!0)}function W(Dr,rn){j(M,Dr,rn)}function V(Dr,rn){j(U,Dr,rn)}var z=W,J=d("U8pU");function q(Dr,rn,Tn){var en=b.useRef({});return(!("value"in en.current)||Tn(en.current.condition,rn))&&(en.current.value=Dr(),en.current.condition=rn),en.current.value}function de(Dr,rn){typeof Dr=="function"?Dr(rn):Object(J.a)(Dr)==="object"&&Dr&&"current"in Dr&&(Dr.current=rn)}function ae(){for(var Dr=arguments.length,rn=new Array(Dr),Tn=0;Tn<Dr;Tn++)rn[Tn]=arguments[Tn];var en=rn.filter(function(ur){return ur});return en.length<=1?en[0]:function(ur){rn.forEach(function(sn){de(sn,ur)})}}function ve(){for(var Dr=arguments.length,rn=new Array(Dr),Tn=0;Tn<Dr;Tn++)rn[Tn]=arguments[Tn];return q(function(){return ae.apply(void 0,rn)},rn,function(en,ur){return en.length===ur.length&&en.every(function(sn,Bn){return sn===ur[Bn]})})}function _e(Dr){var rn,Tn,en=Object(e.isMemo)(Dr)?Dr.type.type:Dr.type;return typeof en=="function"&&!((rn=en.prototype)===null||rn===void 0?void 0:rn.render)?!1:!(typeof Dr=="function"&&!((Tn=Dr.prototype)===null||Tn===void 0?void 0:Tn.render))}var Ie=d("bdgK"),He="rc-observer-key",me=function(Dr){Object(I.a)(Tn,Dr);var rn=Object(L.a)(Tn);function Tn(){var en;return Object(S.a)(this,Tn),en=rn.apply(this,arguments),en.resizeObserver=null,en.childNode=null,en.currentElement=null,en.state={width:0,height:0,offsetHeight:0,offsetWidth:0},en.onResize=function(ur){var sn=en.props.onResize,Bn=ur[0].target,Hn=Bn.getBoundingClientRect(),Li=Hn.width,Ci=Hn.height,Jn=Bn.offsetWidth,mi=Bn.offsetHeight,yi=Math.floor(Li),da=Math.floor(Ci);if(en.state.width!==yi||en.state.height!==da||en.state.offsetWidth!==Jn||en.state.offsetHeight!==mi){var ha={width:yi,height:da,offsetWidth:Jn,offsetHeight:mi};en.setState(ha),sn&&Promise.resolve().then(function(){sn(Object(r.a)(Object(r.a)({},ha),{},{offsetWidth:Jn,offsetHeight:mi}))})}},en.setChildNode=function(ur){en.childNode=ur},en}return Object(_.a)(Tn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var ur=this.props.disabled;if(ur){this.destroyObserver();return}var sn=D(this.childNode||this),Bn=sn!==this.currentElement;Bn&&(this.destroyObserver(),this.currentElement=sn),!this.resizeObserver&&sn&&(this.resizeObserver=new Ie.default(this.onResize),this.resizeObserver.observe(sn))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var ur=this.props.children,sn=l(ur);if(sn.length>1)z(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(sn.length===0)return z(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Bn=sn[0];if(b.isValidElement(Bn)&&_e(Bn)){var Hn=Bn.ref;sn[0]=b.cloneElement(Bn,{ref:ae(Hn,this.setChildNode)})}return sn.length===1?sn[0]:sn.map(function(Li,Ci){return!b.isValidElement(Li)||"key"in Li&&Li.key!==null?Li:b.cloneElement(Li,{key:"".concat(He,"-").concat(Ci)})})}}]),Tn}(b.Component);me.displayName="ResizeObserver";var ke=me;function se(Dr){var rn=Object(b.useRef)(),Tn=Object(b.useRef)(!1);function en(){for(var ur=arguments.length,sn=new Array(ur),Bn=0;Bn<ur;Bn++)sn[Bn]=arguments[Bn];Tn.current||(w.a.cancel(rn.current),rn.current=w()(function(){Dr.apply(void 0,sn)}))}return Object(b.useEffect)(function(){return function(){Tn.current=!0,w.a.cancel(rn.current)}},[]),en}function te(Dr){var rn=Object(b.useRef)([]),Tn=Object(b.useState)({}),en=Object(c.a)(Tn,2),ur=en[1],sn=Object(b.useRef)(typeof Dr=="function"?Dr():Dr),Bn=se(function(){var Li=sn.current;rn.current.forEach(function(Ci){Li=Ci(Li)}),rn.current=[],sn.current=Li,ur({})});function Hn(Li){rn.current.push(Li),Bn()}return[sn.current,Hn]}var Ge={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(rn){var Tn=rn.keyCode;if(rn.altKey&&!rn.ctrlKey||rn.metaKey||Tn>=Ge.F1&&Tn<=Ge.F12)return!1;switch(Tn){case Ge.ALT:case Ge.CAPS_LOCK:case Ge.CONTEXT_MENU:case Ge.CTRL:case Ge.DOWN:case Ge.END:case Ge.ESC:case Ge.HOME:case Ge.INSERT:case Ge.LEFT:case Ge.MAC_FF_META:case Ge.META:case Ge.NUMLOCK:case Ge.NUM_CENTER:case Ge.PAGE_DOWN:case Ge.PAGE_UP:case Ge.PAUSE:case Ge.PRINT_SCREEN:case Ge.RIGHT:case Ge.SHIFT:case Ge.UP:case Ge.WIN_KEY:case Ge.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(rn){if(rn>=Ge.ZERO&&rn<=Ge.NINE)return!0;if(rn>=Ge.NUM_ZERO&&rn<=Ge.NUM_MULTIPLY)return!0;if(rn>=Ge.A&&rn<=Ge.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&rn===0)return!0;switch(rn){case Ge.SPACE:case Ge.QUESTION_MARK:case Ge.NUM_PLUS:case Ge.NUM_MINUS:case Ge.NUM_PERIOD:case Ge.NUM_DIVISION:case Ge.SEMICOLON:case Ge.DASH:case Ge.EQUALS:case Ge.COMMA:case Ge.PERIOD:case Ge.SLASH:case Ge.APOSTROPHE:case Ge.SINGLE_QUOTE:case Ge.OPEN_SQUARE_BRACKET:case Ge.BACKSLASH:case Ge.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},oe=Ge;function Y(Dr,rn){var Tn,en=Dr.prefixCls,ur=Dr.id,sn=Dr.active,Bn=Dr.rtl,Hn=Dr.tab,Li=Hn.key,Ci=Hn.tab,Jn=Hn.disabled,mi=Hn.closeIcon,yi=Dr.tabBarGutter,da=Dr.tabPosition,ha=Dr.closable,Pa=Dr.renderWrapper,Ra=Dr.removeAriaLabel,so=Dr.editable,La=Dr.onClick,lo=Dr.onRemove,So=Dr.onFocus,Qt="".concat(en,"-tab");b.useEffect(function(){return lo},[]);var Vr={};da==="top"||da==="bottom"?Vr[Bn?"marginLeft":"marginRight"]=yi:Vr.marginBottom=yi;var cn=so&&ha!==!1&&!Jn;function vn(fi){if(Jn)return;La(fi)}function ni(fi){fi.preventDefault(),fi.stopPropagation(),so.onEdit("remove",{key:Li,event:fi})}var li=b.createElement("div",{key:Li,ref:rn,className:n()(Qt,(Tn={},Object(f.a)(Tn,"".concat(Qt,"-with-remove"),cn),Object(f.a)(Tn,"".concat(Qt,"-active"),sn),Object(f.a)(Tn,"".concat(Qt,"-disabled"),Jn),Tn)),style:Vr,onClick:vn},b.createElement("div",{role:"tab","aria-selected":sn,id:ur&&"".concat(ur,"-tab-").concat(Li),className:"".concat(Qt,"-btn"),"aria-controls":ur&&"".concat(ur,"-panel-").concat(Li),"aria-disabled":Jn,tabIndex:Jn?null:0,onClick:function(di){di.stopPropagation(),vn(di)},onKeyDown:function(di){[oe.SPACE,oe.ENTER].includes(di.which)&&(di.preventDefault(),vn(di))},onFocus:So},Ci),cn&&b.createElement("button",{type:"button","aria-label":Ra||"remove",tabIndex:0,className:"".concat(Qt,"-remove"),onClick:function(di){di.stopPropagation(),ni(di)}},mi||so.removeIcon||"\xD7"));return Pa&&(li=Pa(li)),li}var G=b.forwardRef(Y),Q={width:0,height:0,left:0,top:0};function ye(Dr,rn,Tn){return Object(b.useMemo)(function(){for(var en,ur=new Map,sn=rn.get((en=Dr[0])===null||en===void 0?void 0:en.key)||Q,Bn=sn.left+sn.width,Hn=0;Hn<Dr.length;Hn+=1){var Li=Dr[Hn].key,Ci=rn.get(Li);if(!Ci){var Jn;Ci=rn.get((Jn=Dr[Hn-1])===null||Jn===void 0?void 0:Jn.key)||Q}var mi=ur.get(Li)||Object(r.a)({},Ci);mi.right=Bn-mi.left-mi.width,ur.set(Li,mi)}return ur},[Dr.map(function(en){return en.key}).join("_"),rn,Tn])}var ce={width:0,height:0,left:0,top:0,right:0};function Te(Dr,rn,Tn,en,ur){var sn=ur.tabs,Bn=ur.tabPosition,Hn=ur.rtl,Li,Ci,Jn;["top","bottom"].includes(Bn)?(Li="width",Ci=Hn?"right":"left",Jn=Math.abs(rn.left)):(Li="height",Ci="top",Jn=-rn.top);var mi=rn[Li],yi=Tn[Li],da=en[Li],ha=mi;return yi+da>mi&&(ha=mi-da),Object(b.useMemo)(function(){if(!sn.length)return[0,0];for(var Pa=sn.length,Ra=Pa,so=0;so<Pa;so+=1){var La=Dr.get(sn[so].key)||ce;if(La[Ci]+La[Li]>Jn+ha){Ra=so-1;break}}for(var lo=0,So=Pa-1;So>=0;So-=1){var Qt=Dr.get(sn[So].key)||ce;if(Qt[Ci]<Jn){lo=So+1;break}}return[lo,Ra]},[Dr,Jn,ha,Bn,sn.map(function(Pa){return Pa.key}).join("_"),Hn])}var Se=d("wx14"),le=d("JX7q"),fe=d("I8Z2");function Ee(Dr,rn){var Tn=Object(r.a)({},Dr);return Array.isArray(rn)&&rn.forEach(function(en){delete Tn[en]}),Tn}var Ve={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(rn){var Tn=rn.keyCode;if(rn.altKey&&!rn.ctrlKey||rn.metaKey||Tn>=Ve.F1&&Tn<=Ve.F12)return!1;switch(Tn){case Ve.ALT:case Ve.CAPS_LOCK:case Ve.CONTEXT_MENU:case Ve.CTRL:case Ve.DOWN:case Ve.END:case Ve.ESC:case Ve.HOME:case Ve.INSERT:case Ve.LEFT:case Ve.MAC_FF_META:case Ve.META:case Ve.NUMLOCK:case Ve.NUM_CENTER:case Ve.PAGE_DOWN:case Ve.PAGE_UP:case Ve.PAUSE:case Ve.PRINT_SCREEN:case Ve.RIGHT:case Ve.SHIFT:case Ve.UP:case Ve.WIN_KEY:case Ve.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(rn){if(rn>=Ve.ZERO&&rn<=Ve.NINE)return!0;if(rn>=Ve.NUM_ZERO&&rn<=Ve.NUM_MULTIPLY)return!0;if(rn>=Ve.A&&rn<=Ve.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&rn===0)return!0;switch(rn){case Ve.SPACE:case Ve.QUESTION_MARK:case Ve.NUM_PLUS:case Ve.NUM_MINUS:case Ve.NUM_PERIOD:case Ve.NUM_DIVISION:case Ve.SEMICOLON:case Ve.DASH:case Ve.EQUALS:case Ve.COMMA:case Ve.PERIOD:case Ve.SLASH:case Ve.APOSTROPHE:case Ve.SINGLE_QUOTE:case Ve.OPEN_SQUARE_BRACKET:case Ve.BACKSLASH:case Ve.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},vt=Ve;function et(){var Dr=[].slice.call(arguments,0);return Dr.length===1?Dr[0]:function(){for(var Tn=0;Tn<Dr.length;Tn++)Dr[Tn]&&Dr[Tn].apply&&Dr[Tn].apply(this,arguments)}}function Oe(Dr){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Tn=[];return g.a.Children.forEach(Dr,function(en){if(en==null&&!rn.keepEmpty)return;Array.isArray(en)?Tn=Tn.concat(Oe(en)):Object(e.isFragment)(en)&&en.props?Tn=Tn.concat(Oe(en.props.children,rn)):Tn.push(en)}),Tn}var Tt=d("Gytx"),Je=d.n(Tt),St=/iPhone/i,Mt=/iPod/i,er=/iPad/i,It=/\bAndroid(?:.+)Mobile\b/i,_t=/Android/i,Xe=/\bAndroid(?:.+)SD4930UR\b/i,ie=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,X=/Windows Phone/i,Be=/\bWindows(?:.+)ARM\b/i,Ce=/BlackBerry/i,Z=/BB10/i,nt=/Opera Mini/i,ct=/\b(CriOS|Chrome)(?:.+)Mobile/i,Qe=/Mobile(?:.+)Firefox\b/i;function dt(Dr,rn){return Dr.test(rn)}function Ft(Dr){var rn=Dr||(typeof navigator!="undefined"?navigator.userAgent:""),Tn=(rn||"").split("[FBAN");if(typeof Tn[1]!="undefined"){var en=Tn,ur=Object(c.a)(en,1);rn=ur[0]}if(Tn=rn.split("Twitter"),typeof Tn[1]!="undefined"){var sn=Tn,Bn=Object(c.a)(sn,1);rn=Bn[0]}var Hn={apple:{phone:dt(St,rn)&&!dt(X,rn),ipod:dt(Mt,rn),tablet:!dt(St,rn)&&dt(er,rn)&&!dt(X,rn),device:(dt(St,rn)||dt(Mt,rn)||dt(er,rn))&&!dt(X,rn)},amazon:{phone:dt(Xe,rn),tablet:!dt(Xe,rn)&&dt(ie,rn),device:dt(Xe,rn)||dt(ie,rn)},android:{phone:!dt(X,rn)&&dt(Xe,rn)||!dt(X,rn)&&dt(It,rn),tablet:!dt(X,rn)&&!dt(Xe,rn)&&!dt(It,rn)&&(dt(ie,rn)||dt(_t,rn)),device:!dt(X,rn)&&(dt(Xe,rn)||dt(ie,rn)||dt(It,rn)||dt(_t,rn))||dt(/\bokhttp\b/i,rn)},windows:{phone:dt(X,rn),tablet:dt(Be,rn),device:dt(X,rn)||dt(Be,rn)},other:{blackberry:dt(Ce,rn),blackberry10:dt(Z,rn),opera:dt(nt,rn),firefox:dt(Qe,rn),chrome:dt(ct,rn),device:dt(Ce,rn)||dt(Z,rn)||dt(nt,rn)||dt(Qe,rn)||dt(ct,rn)},any:null,phone:null,tablet:null};return Hn.any=Hn.apple.device||Hn.android.device||Hn.windows.device||Hn.other.device,Hn.phone=Hn.apple.phone||Hn.android.phone||Hn.windows.phone,Hn.tablet=Hn.apple.tablet||Hn.android.tablet||Hn.windows.tablet,Hn}var Lr=Object(r.a)(Object(r.a)({},Ft()),{},{isMobile:Ft}),Wt=Lr;function ar(){}function Ut(Dr,rn,Tn){var en=rn||"";return Dr.key||"".concat(en,"item_").concat(Tn)}function kt(Dr){return"".concat(Dr,"-menu-")}function st(Dr,rn){var Tn=-1;b.Children.forEach(Dr,function(en){Tn+=1,en&&en.type&&en.type.isMenuItemGroup?b.Children.forEach(en.props.children,function(ur){Tn+=1,rn(ur,Tn)}):rn(en,Tn)})}function Rr(Dr,rn,Tn){if(!Dr||Tn.find)return;b.Children.forEach(Dr,function(en){if(en){var ur=en.type;if(!ur||!(ur.isSubMenu||ur.isMenuItem||ur.isMenuItemGroup))return;rn.indexOf(en.key)!==-1?Tn.find=!0:en.props.children&&Rr(en.props.children,rn,Tn)}})}var on=["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"],Sn=function(rn){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,en=rn&&typeof rn.getBoundingClientRect=="function"&&rn.getBoundingClientRect().width;if(en){if(Tn){var ur=getComputedStyle(rn),sn=ur.marginLeft,Bn=ur.marginRight;en+=+sn.replace("px","")+ +Bn.replace("px","")}en=+en.toFixed(6)}return en||0},zn=function(rn,Tn,en){rn&&Object(J.a)(rn.style)==="object"&&(rn.style[Tn]=en)},Ii=function(){return Wt.any},yn=d("uciX"),Nn=function(rn){return+setTimeout(rn,16)},jt=function(rn){return clearTimeout(rn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Nn=function(rn){return window.requestAnimationFrame(rn)},jt=function(rn){return window.cancelAnimationFrame(rn)});var At=0,Re=new Map;function Ke(Dr){Re.delete(Dr)}function Pe(Dr){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;At+=1;var Tn=At;function en(ur){if(ur===0)Ke(Tn),Dr();else{var sn=Nn(function(){en(ur-1)});Re.set(Tn,sn)}}return en(rn),Tn}Pe.cancel=function(Dr){var rn=Re.get(Dr);return Ke(rn),jt(rn)};var at=d("8XRh"),wt={adjustX:1,adjustY:1},Rt={topLeft:{points:["bl","tl"],overflow:wt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:wt,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:wt,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:wt,offset:[4,0]}},xt={topLeft:{points:["bl","tl"],overflow:wt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:wt,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:wt,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:wt,offset:[4,0]}},Lt=Rt,gr=0,Br={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},Et=function(rn,Tn,en){var ur=kt(Tn),sn=rn.getState();rn.setState({defaultActiveFirst:Object(r.a)(Object(r.a)({},sn.defaultActiveFirst),{},Object(f.a)({},ur,en))})},it=function(Dr){Object(I.a)(Tn,Dr);var rn=Object(L.a)(Tn);function Tn(en){var ur;Object(S.a)(this,Tn),ur=rn.call(this,en),ur.onDestroy=function(Jn){ur.props.onDestroy(Jn)},ur.onKeyDown=function(Jn){var mi=Jn.keyCode,yi=ur.menuInstance,da=ur.props.store,ha=ur.getVisible();if(mi===vt.ENTER)return ur.onTitleClick(Jn),Et(da,ur.props.eventKey,!0),!0;if(mi===vt.RIGHT)return ha?yi.onKeyDown(Jn):(ur.triggerOpenChange(!0),Et(da,ur.props.eventKey,!0)),!0;if(mi===vt.LEFT){var Pa;if(ha)Pa=yi.onKeyDown(Jn);else return;return Pa||(ur.triggerOpenChange(!1),Pa=!0),Pa}return ha&&(mi===vt.UP||mi===vt.DOWN)?yi.onKeyDown(Jn):void 0},ur.onOpenChange=function(Jn){ur.props.onOpenChange(Jn)},ur.onPopupVisibleChange=function(Jn){ur.triggerOpenChange(Jn,Jn?"mouseenter":"mouseleave")},ur.onMouseEnter=function(Jn){var mi=ur.props,yi=mi.eventKey,da=mi.onMouseEnter,ha=mi.store;Et(ha,ur.props.eventKey,!1),da({key:yi,domEvent:Jn})},ur.onMouseLeave=function(Jn){var mi=ur.props,yi=mi.parentMenu,da=mi.eventKey,ha=mi.onMouseLeave;yi.subMenuInstance=Object(le.a)(ur),ha({key:da,domEvent:Jn})},ur.onTitleMouseEnter=function(Jn){var mi=ur.props,yi=mi.eventKey,da=mi.onItemHover,ha=mi.onTitleMouseEnter;da({key:yi,hover:!0}),ha({key:yi,domEvent:Jn})},ur.onTitleMouseLeave=function(Jn){var mi=ur.props,yi=mi.parentMenu,da=mi.eventKey,ha=mi.onItemHover,Pa=mi.onTitleMouseLeave;yi.subMenuInstance=Object(le.a)(ur),ha({key:da,hover:!1}),Pa({key:da,domEvent:Jn})},ur.onTitleClick=function(Jn){var mi=Object(le.a)(ur),yi=mi.props;if(yi.onTitleClick({key:yi.eventKey,domEvent:Jn}),yi.triggerSubMenuAction==="hover")return;ur.triggerOpenChange(!ur.getVisible(),"click"),Et(yi.store,ur.props.eventKey,!1)},ur.onSubMenuClick=function(Jn){typeof ur.props.onClick=="function"&&ur.props.onClick(ur.addKeyPath(Jn))},ur.onSelect=function(Jn){ur.props.onSelect(Jn)},ur.onDeselect=function(Jn){ur.props.onDeselect(Jn)},ur.getPrefixCls=function(){return"".concat(ur.props.rootPrefixCls,"-submenu")},ur.getActiveClassName=function(){return"".concat(ur.getPrefixCls(),"-active")},ur.getDisabledClassName=function(){return"".concat(ur.getPrefixCls(),"-disabled")},ur.getSelectedClassName=function(){return"".concat(ur.getPrefixCls(),"-selected")},ur.getOpenClassName=function(){return"".concat(ur.props.rootPrefixCls,"-submenu-open")},ur.getVisible=function(){return ur.state.isOpen},ur.getMode=function(){return ur.state.mode},ur.saveMenuInstance=function(Jn){ur.menuInstance=Jn},ur.addKeyPath=function(Jn){return Object(r.a)(Object(r.a)({},Jn),{},{keyPath:(Jn.keyPath||[]).concat(ur.props.eventKey)})},ur.triggerOpenChange=function(Jn,mi){var yi=ur.props.eventKey,da=function(){ur.onOpenChange({key:yi,item:Object(le.a)(ur),trigger:mi,open:Jn})};mi==="mouseenter"?ur.mouseenterTimeout=setTimeout(function(){da()},0):da()},ur.isChildrenSelected=function(){var Jn={find:!1};return Rr(ur.props.children,ur.props.selectedKeys,Jn),Jn.find},ur.isInlineMode=function(){return ur.getMode()==="inline"},ur.adjustWidth=function(){if(!ur.subMenuTitle||!ur.menuInstance)return;var Jn=N.findDOMNode(ur.menuInstance);if(Jn.offsetWidth>=ur.subMenuTitle.offsetWidth)return;Jn.style.minWidth="".concat(ur.subMenuTitle.offsetWidth,"px")},ur.saveSubMenuTitle=function(Jn){ur.subMenuTitle=Jn},ur.getBaseProps=function(){var Jn=Object(le.a)(ur),mi=Jn.props,yi=ur.getMode();return{mode:yi==="horizontal"?"vertical":yi,visible:ur.getVisible(),level:mi.level+1,inlineIndent:mi.inlineIndent,focusable:!1,onClick:ur.onSubMenuClick,onSelect:ur.onSelect,onDeselect:ur.onDeselect,onDestroy:ur.onDestroy,selectedKeys:mi.selectedKeys,eventKey:"".concat(mi.eventKey,"-menu-"),openKeys:mi.openKeys,motion:mi.motion,onOpenChange:ur.onOpenChange,subMenuOpenDelay:mi.subMenuOpenDelay,parentMenu:Object(le.a)(ur),subMenuCloseDelay:mi.subMenuCloseDelay,forceSubMenuRender:mi.forceSubMenuRender,triggerSubMenuAction:mi.triggerSubMenuAction,builtinPlacements:mi.builtinPlacements,defaultActiveFirst:mi.store.getState().defaultActiveFirst[kt(mi.eventKey)],multiple:mi.multiple,prefixCls:mi.rootPrefixCls,id:ur.internalMenuId,manualRef:ur.saveMenuInstance,itemIcon:mi.itemIcon,expandIcon:mi.expandIcon,direction:mi.direction}},ur.getMotion=function(Jn,mi){var yi=Object(le.a)(ur),da=yi.haveRendered,ha=ur.props,Pa=ha.motion,Ra=ha.rootPrefixCls,so=Object(r.a)(Object(r.a)({},Pa),{},{leavedClassName:"".concat(Ra,"-hidden"),removeOnLeave:!1,motionAppear:da||!mi||Jn!=="inline"});return so};var sn=en.store,Bn=en.eventKey,Hn=sn.getState(),Li=Hn.defaultActiveFirst;ur.isRootMenu=!1;var Ci=!1;return Li&&(Ci=Li[Bn]),Et(sn,Bn,Ci),ur.state={mode:en.mode,isOpen:en.isOpen},ur}return Object(_.a)(Tn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ur=this,sn=this.props,Bn=sn.mode,Hn=sn.parentMenu,Li=sn.manualRef,Ci=sn.isOpen,Jn=function(){ur.setState({mode:Bn,isOpen:Ci})},mi=Ci!==this.state.isOpen,yi=Bn!==this.state.mode;if((yi||mi)&&(Pe.cancel(this.updateStateRaf),yi?this.updateStateRaf=Pe(Jn):Jn()),Li&&Li(this),Bn!=="horizontal"||!(Hn==null?void 0:Hn.isRootMenu)||!Ci)return;this.minWidthTimeout=setTimeout(function(){return ur.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ur=this.props,sn=ur.onDestroy,Bn=ur.eventKey;sn&&sn(Bn),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Pe.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(ur,sn){var Bn=this.getBaseProps();return b.createElement(Yn,Object(Se.a)({},Bn,{id:this.internalMenuId,className:ur,style:sn}),this.props.children)}},{key:"renderChildren",value:function(){var ur=this,sn=this.getBaseProps(),Bn=sn.mode,Hn=sn.visible,Li=sn.forceSubMenuRender,Ci=sn.direction,Jn=this.getMotion(Bn,Hn);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Hn||Li,!this.haveOpened)return b.createElement("div",null);var mi=n()("".concat(sn.prefixCls,"-sub"),Object(f.a)({},"".concat(sn.prefixCls,"-rtl"),Ci==="rtl"));return this.isInlineMode()?b.createElement(at.b,Object(Se.a)({visible:sn.visible,forceRender:Li},Jn),function(yi){var da=yi.className,ha=yi.style,Pa=n()(mi,da);return ur.renderPopupMenu(Pa,ha)}):this.renderPopupMenu(mi)}},{key:"render",value:function(){var ur,sn,Bn,Hn=Object(r.a)({},this.props),Li=this.getVisible(),Ci=this.getPrefixCls(),Jn=this.isInlineMode(),mi=this.getMode(),yi=n()(Ci,"".concat(Ci,"-").concat(mi),(ur={},Object(f.a)(ur,Hn.className,!!Hn.className),Object(f.a)(ur,this.getOpenClassName(),Li),Object(f.a)(ur,this.getActiveClassName(),Hn.active||Li&&!Jn),Object(f.a)(ur,this.getDisabledClassName(),Hn.disabled),Object(f.a)(ur,this.getSelectedClassName(),this.isChildrenSelected()),ur));this.internalMenuId||(Hn.eventKey?this.internalMenuId="".concat(Hn.eventKey,"$Menu"):(gr+=1,this.internalMenuId="$__$".concat(gr,"$Menu")));var da={},ha={},Pa={};Hn.disabled||(da={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},ha={onClick:this.onTitleClick},Pa={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ra={},so=Hn.direction,La=so==="rtl";Jn&&(La?Ra.paddingRight=Hn.inlineIndent*Hn.level:Ra.paddingLeft=Hn.inlineIndent*Hn.level);var lo={};this.getVisible()&&(lo={"aria-owns":this.internalMenuId});var So=null;mi!=="horizontal"&&(So=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(So=b.createElement(this.props.expandIcon,Object(r.a)({},this.props))));var Qt=b.createElement("div",Object(Se.a)({ref:this.saveSubMenuTitle,style:Ra,className:"".concat(Ci,"-title"),role:"button"},Pa,ha,{"aria-expanded":Li},lo,{"aria-haspopup":"true",title:typeof Hn.title=="string"?Hn.title:void 0}),Hn.title,So||b.createElement("i",{className:"".concat(Ci,"-arrow")})),Vr=this.renderChildren(),cn=((sn=Hn.parentMenu)===null||sn===void 0?void 0:sn.isRootMenu)?Hn.parentMenu.props.getPopupContainer:function(Zr){return Zr.parentNode},vn=Br[mi],ni=Hn.popupOffset?{offset:Hn.popupOffset}:{},li=n()((Bn={},Object(f.a)(Bn,Hn.popupClassName,Hn.popupClassName&&!Jn),Object(f.a)(Bn,"".concat(Ci,"-rtl"),La),Bn)),fi=Hn.disabled,di=Hn.triggerSubMenuAction,Jt=Hn.subMenuOpenDelay,Ot=Hn.forceSubMenuRender,yr=Hn.subMenuCloseDelay,ft=Hn.builtinPlacements;on.forEach(function(Zr){return delete Hn[Zr]}),delete Hn.onClick;var qt=La?Object(r.a)(Object(r.a)({},xt),ft):Object(r.a)(Object(r.a)({},Rt),ft);delete Hn.direction;var dr=this.getBaseProps(),Nr=Jn?null:this.getMotion(dr.mode,dr.visible);return b.createElement("li",Object(Se.a)({},Hn,da,{className:yi,role:"menuitem"}),b.createElement(yn.a,{prefixCls:Ci,popupClassName:n()("".concat(Ci,"-popup"),li),getPopupContainer:cn,builtinPlacements:qt,popupPlacement:vn,popupVisible:Jn?!1:Li,popupAlign:ni,popup:Jn?null:Vr,action:fi||Jn?[]:[di],mouseEnterDelay:Jt,mouseLeaveDelay:yr,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Ot,popupMotion:Nr},Qt),Jn?Vr:null)}}]),Tn}(b.Component);it.defaultProps={onMouseEnter:ar,onMouseLeave:ar,onTitleMouseEnter:ar,onTitleMouseLeave:ar,onTitleClick:ar,manualRef:ar,mode:"vertical",title:""};var rt=Object(fe.b)(function(Dr,rn){var Tn=Dr.openKeys,en=Dr.activeKey,ur=Dr.selectedKeys,sn=rn.eventKey,Bn=rn.subMenuKey;return{isOpen:Tn.indexOf(sn)>-1,active:en[Bn]===sn,selectedKeys:ur}})(it);rt.isSubMenu=!0;var Pt=rt,Ht="menuitem-overflowed",bt=.5,Gt=function(Dr){Object(I.a)(Tn,Dr);var rn=Object(L.a)(Tn);function Tn(){var en;return Object(S.a)(this,Tn),en=rn.apply(this,arguments),en.resizeObserver=null,en.mutationObserver=null,en.originalTotalWidth=0,en.overflowedItems=[],en.menuItemSizes=[],en.cancelFrameId=null,en.state={lastVisibleIndex:void 0},en.childRef=b.createRef(),en.getMenuItemNodes=function(){var ur=en.props.prefixCls,sn=en.childRef.current;return sn?[].slice.call(sn.children).filter(function(Bn){return Bn.className.split(" ").indexOf("".concat(ur,"-overflowed-submenu"))<0}):[]},en.getOverflowedSubMenuItem=function(ur,sn,Bn){var Hn=en.props,Li=Hn.overflowedIndicator,Ci=Hn.level,Jn=Hn.mode,mi=Hn.prefixCls,yi=Hn.theme;if(Ci!==1||Jn!=="horizontal")return null;var da=en.props.children[0],ha=da.props,Pa=ha.children,Ra=ha.title,so=ha.style,La=Object(o.a)(ha,["children","title","style"]),lo=Object(r.a)({},so),So="".concat(ur,"-overflowed-indicator"),Qt="".concat(ur,"-overflowed-indicator");sn.length===0&&Bn!==!0?lo=Object(r.a)(Object(r.a)({},lo),{},{display:"none"}):Bn&&(lo=Object(r.a)(Object(r.a)({},lo),{},{visibility:"hidden",position:"absolute"}),So="".concat(So,"-placeholder"),Qt="".concat(Qt,"-placeholder"));var Vr=yi?"".concat(mi,"-").concat(yi):"",cn={};return on.forEach(function(vn){La[vn]!==void 0&&(cn[vn]=La[vn])}),b.createElement(Pt,Object(Se.a)({title:Li,className:"".concat(mi,"-overflowed-submenu"),popupClassName:Vr},cn,{key:So,eventKey:Qt,disabled:!1,style:lo}),sn)},en.setChildrenWidthAndResize=function(){if(en.props.mode!=="horizontal")return;var ur=en.childRef.current;if(!ur)return;var sn=ur.children;if(!sn||sn.length===0)return;var Bn=ur.children[sn.length-1];zn(Bn,"display","inline-block");var Hn=en.getMenuItemNodes(),Li=Hn.filter(function(Ci){return Ci.className.split(" ").indexOf(Ht)>=0});Li.forEach(function(Ci){zn(Ci,"display","inline-block")}),en.menuItemSizes=Hn.map(function(Ci){return Sn(Ci,!0)}),Li.forEach(function(Ci){zn(Ci,"display","none")}),en.overflowedIndicatorWidth=Sn(ur.children[ur.children.length-1],!0),en.originalTotalWidth=en.menuItemSizes.reduce(function(Ci,Jn){return Ci+Jn},0),en.handleResize(),zn(Bn,"display","none")},en.handleResize=function(){if(en.props.mode!=="horizontal")return;var ur=en.childRef.current;if(!ur)return;var sn=Sn(ur);en.overflowedItems=[];var Bn=0,Hn;en.originalTotalWidth>sn+bt&&(Hn=-1,en.menuItemSizes.forEach(function(Li){Bn+=Li,Bn+en.overflowedIndicatorWidth<=sn&&(Hn+=1)})),en.setState({lastVisibleIndex:Hn})},en}return Object(_.a)(Tn,[{key:"componentDidMount",value:function(){var ur=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var sn=this.childRef.current;if(!sn)return;this.resizeObserver=new Ie.default(function(Bn){Bn.forEach(function(){var Hn=ur.cancelFrameId;cancelAnimationFrame(Hn),ur.cancelFrameId=requestAnimationFrame(ur.setChildrenWidthAndResize)})}),[].slice.call(sn.children).concat(sn).forEach(function(Bn){ur.resizeObserver.observe(Bn)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ur.resizeObserver.disconnect(),[].slice.call(sn.children).concat(sn).forEach(function(Bn){ur.resizeObserver.observe(Bn)}),ur.setChildrenWidthAndResize()}),this.mutationObserver.observe(sn,{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(ur){var sn=this,Bn=this.state.lastVisibleIndex;return(ur||[]).reduce(function(Hn,Li,Ci){var Jn=Li;if(sn.props.mode==="horizontal"){var mi=sn.getOverflowedSubMenuItem(Li.props.eventKey,[]);Bn!==void 0&&sn.props.className.indexOf("".concat(sn.props.prefixCls,"-root"))!==-1&&(Ci>Bn&&(Jn=b.cloneElement(Li,{style:{display:"none"},eventKey:"".concat(Li.props.eventKey,"-hidden"),className:"".concat(Ht)})),Ci===Bn+1&&(sn.overflowedItems=ur.slice(Bn+1).map(function(da){return b.cloneElement(da,{key:da.props.eventKey,mode:"vertical-left"})}),mi=sn.getOverflowedSubMenuItem(Li.props.eventKey,sn.overflowedItems)));var yi=[].concat(Object(E.a)(Hn),[mi,Jn]);return Ci===ur.length-1&&yi.push(sn.getOverflowedSubMenuItem(Li.props.eventKey,[],!0)),yi}return[].concat(Object(E.a)(Hn),[Jn])},[])}},{key:"render",value:function(){var ur=this.props,sn=ur.visible,Bn=ur.prefixCls,Hn=ur.overflowedIndicator,Li=ur.mode,Ci=ur.level,Jn=ur.tag,mi=ur.children,yi=ur.theme,da=Object(o.a)(ur,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),ha=Jn;return b.createElement(ha,Object(Se.a)({ref:this.childRef},da),this.renderChildren(mi))}}]),Tn}(b.Component);Gt.defaultProps={tag:"div",className:""};var ut=Gt;function Kt(Dr){return Dr.length?Dr.every(function(rn){return!!rn.props.disabled}):!0}function Ar(Dr,rn,Tn){var en=Dr.getState();Dr.setState({activeKey:Object(r.a)(Object(r.a)({},en.activeKey),{},Object(f.a)({},rn,Tn))})}function ir(Dr){return Dr.eventKey||"0-menu-"}function pr(Dr,rn){var Tn=rn,en=Dr.children,ur=Dr.eventKey;if(Tn){var sn;if(st(en,function(Bn,Hn){Bn&&Bn.props&&!Bn.props.disabled&&Tn===Ut(Bn,ur,Hn)&&(sn=!0)}),sn)return Tn}return Tn=null,Dr.defaultActiveFirst&&st(en,function(Bn,Hn){!Tn&&Bn&&!Bn.props.disabled&&(Tn=Ut(Bn,ur,Hn))}),Tn}function tn(Dr){if(!Dr)return;var rn=this.instanceArray.indexOf(Dr);rn!==-1?this.instanceArray[rn]=Dr:this.instanceArray.push(Dr)}var fn=function(Dr){Object(I.a)(Tn,Dr);var rn=Object(L.a)(Tn);function Tn(en){var ur;return Object(S.a)(this,Tn),ur=rn.call(this,en),ur.onKeyDown=function(sn,Bn){var Hn=sn.keyCode,Li;if(ur.getFlatInstanceArray().forEach(function(Jn){Jn&&Jn.props.active&&Jn.onKeyDown&&(Li=Jn.onKeyDown(sn))}),Li)return 1;var Ci=null;return(Hn===vt.UP||Hn===vt.DOWN)&&(Ci=ur.step(Hn===vt.UP?-1:1)),Ci?(sn.preventDefault(),Ar(ur.props.store,ir(ur.props),Ci.props.eventKey),typeof Bn=="function"&&Bn(Ci),1):void 0},ur.onItemHover=function(sn){var Bn=sn.key,Hn=sn.hover;Ar(ur.props.store,ir(ur.props),Hn?Bn:null)},ur.onDeselect=function(sn){ur.props.onDeselect(sn)},ur.onSelect=function(sn){ur.props.onSelect(sn)},ur.onClick=function(sn){ur.props.onClick(sn)},ur.onOpenChange=function(sn){ur.props.onOpenChange(sn)},ur.onDestroy=function(sn){ur.props.onDestroy(sn)},ur.getFlatInstanceArray=function(){return ur.instanceArray},ur.step=function(sn){var Bn=ur.getFlatInstanceArray(),Hn=ur.props.store.getState().activeKey[ir(ur.props)],Li=Bn.length;if(!Li)return null;sn<0&&(Bn=Bn.concat().reverse());var Ci=-1;if(Bn.every(function(da,ha){return da&&da.props.eventKey===Hn?(Ci=ha,!1):!0}),!ur.props.defaultActiveFirst&&Ci!==-1&&Kt(Bn.slice(Ci,Li-1)))return;var Jn=(Ci+1)%Li,mi=Jn;do{var yi=Bn[mi];if(!yi||yi.props.disabled)mi=(mi+1)%Li;else return yi}while(mi!==Jn);return null},ur.renderCommonMenuItem=function(sn,Bn,Hn){var Li=ur.props.store.getState(),Ci=Object(le.a)(ur),Jn=Ci.props,mi=Ut(sn,Jn.eventKey,Bn),yi=sn.props;if(!yi||typeof sn.type=="string")return sn;var da=mi===Li.activeKey,ha=Object(r.a)(Object(r.a)({mode:yi.mode||Jn.mode,level:Jn.level,inlineIndent:Jn.inlineIndent,renderMenuItem:ur.renderMenuItem,rootPrefixCls:Jn.prefixCls,index:Bn,parentMenu:Jn.parentMenu,manualRef:yi.disabled?void 0:et(sn.ref,tn.bind(Object(le.a)(ur))),eventKey:mi,active:!yi.disabled&&da,multiple:Jn.multiple,onClick:function(Ra){(yi.onClick||ar)(Ra),ur.onClick(Ra)},onItemHover:ur.onItemHover,motion:Jn.motion,subMenuOpenDelay:Jn.subMenuOpenDelay,subMenuCloseDelay:Jn.subMenuCloseDelay,forceSubMenuRender:Jn.forceSubMenuRender,onOpenChange:ur.onOpenChange,onDeselect:ur.onDeselect,onSelect:ur.onSelect,builtinPlacements:Jn.builtinPlacements,itemIcon:yi.itemIcon||ur.props.itemIcon,expandIcon:yi.expandIcon||ur.props.expandIcon},Hn),{},{direction:Jn.direction});return(Jn.mode==="inline"||Ii())&&(ha.triggerSubMenuAction="click"),b.cloneElement(sn,Object(r.a)(Object(r.a)({},ha),{},{key:mi||Bn}))},ur.renderMenuItem=function(sn,Bn,Hn){if(!sn)return null;var Li=ur.props.store.getState(),Ci={openKeys:Li.openKeys,selectedKeys:Li.selectedKeys,triggerSubMenuAction:ur.props.triggerSubMenuAction,subMenuKey:Hn};return ur.renderCommonMenuItem(sn,Bn,Ci)},en.store.setState({activeKey:Object(r.a)(Object(r.a)({},en.store.getState().activeKey),{},Object(f.a)({},en.eventKey,pr(en,en.activeKey)))}),ur.instanceArray=[],ur}return Object(_.a)(Tn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(ur){return this.props.visible||ur.visible||this.props.className!==ur.className||!Je()(this.props.style,ur.style)}},{key:"componentDidUpdate",value:function(ur){var sn=this.props,Bn="activeKey"in sn?sn.activeKey:sn.store.getState().activeKey[ir(sn)],Hn=pr(sn,Bn);if(Hn!==Bn)Ar(sn.store,ir(sn),Hn);else if("activeKey"in ur){var Li=pr(ur,ur.activeKey);Hn!==Li&&Ar(sn.store,ir(sn),Hn)}}},{key:"render",value:function(){var ur=this,sn=Object(Se.a)({},this.props);this.instanceArray=[];var Bn=n()(sn.prefixCls,sn.className,"".concat(sn.prefixCls,"-").concat(sn.mode)),Hn={className:Bn,role:sn.role||"menu"};sn.id&&(Hn.id=sn.id),sn.focusable&&(Hn.tabIndex=0,Hn.onKeyDown=this.onKeyDown);var Li=sn.prefixCls,Ci=sn.eventKey,Jn=sn.visible,mi=sn.level,yi=sn.mode,da=sn.overflowedIndicator,ha=sn.theme;return on.forEach(function(Pa){return delete sn[Pa]}),delete sn.onClick,b.createElement(ut,Object(Se.a)({},sn,{prefixCls:Li,mode:yi,tag:"ul",level:mi,theme:ha,visible:Jn,overflowedIndicator:da},Hn),Oe(sn.children).map(function(Pa,Ra){return ur.renderMenuItem(Pa,Ra,Ci||"0-menu-")}))}}]),Tn}(b.Component);fn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:ar};var Mn=Object(fe.b)()(fn),Yn=Mn,si={};function vi(Dr,rn){}function xi(Dr,rn){}function _i(){si={}}function Ze(Dr,rn,Tn){!rn&&!si[Tn]&&(Dr(!1,Tn),si[Tn]=!0)}function we(Dr,rn){Ze(vi,Dr,rn)}function Ne(Dr,rn){Ze(xi,Dr,rn)}var Fe=we;function Ye(Dr,rn,Tn){var en=Dr.prefixCls,ur=Dr.motion,sn=Dr.defaultMotions,Bn=sn===void 0?{}:sn,Hn=Dr.openAnimation,Li=Dr.openTransitionName,Ci=rn.switchingModeFromInline;if(ur)return ur;if(Object(J.a)(Hn)==="object"&&Hn)Fe(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Hn=="string")return{motionName:"".concat(en,"-open-").concat(Hn)};if(Li)return{motionName:Li};var Jn=Bn[Tn];return Jn||(Ci?null:Bn.other)}var We=function(Dr){Object(I.a)(Tn,Dr);var rn=Object(L.a)(Tn);function Tn(en){var ur;Object(S.a)(this,Tn),ur=rn.call(this,en),ur.onSelect=function(Hn){var Li=Object(le.a)(ur),Ci=Li.props;if(Ci.selectable){var Jn=ur.store.getState(),mi=Jn.selectedKeys,yi=Hn.key;Ci.multiple?mi=mi.concat([yi]):mi=[yi],"selectedKeys"in Ci||ur.store.setState({selectedKeys:mi}),Ci.onSelect(Object(r.a)(Object(r.a)({},Hn),{},{selectedKeys:mi}))}},ur.onClick=function(Hn){var Li=ur.getRealMenuMode(),Ci=Object(le.a)(ur),Jn=Ci.store,mi=Ci.props.onOpenChange;Li!=="inline"&&!("openKeys"in ur.props)&&(Jn.setState({openKeys:[]}),mi([])),ur.props.onClick(Hn)},ur.onKeyDown=function(Hn,Li){ur.innerMenu.getWrappedInstance().onKeyDown(Hn,Li)},ur.onOpenChange=function(Hn){var Li=Object(le.a)(ur),Ci=Li.props,Jn=ur.store.getState().openKeys.concat(),mi=!1,yi=function(ha){var Pa=!1;if(ha.open)Pa=Jn.indexOf(ha.key)===-1,Pa&&Jn.push(ha.key);else{var Ra=Jn.indexOf(ha.key);Pa=Ra!==-1,Pa&&Jn.splice(Ra,1)}mi=mi||Pa};Array.isArray(Hn)?Hn.forEach(yi):yi(Hn),mi&&("openKeys"in ur.props||ur.store.setState({openKeys:Jn}),Ci.onOpenChange(Jn))},ur.onDeselect=function(Hn){var Li=Object(le.a)(ur),Ci=Li.props;if(Ci.selectable){var Jn=ur.store.getState().selectedKeys.concat(),mi=Hn.key,yi=Jn.indexOf(mi);yi!==-1&&Jn.splice(yi,1),"selectedKeys"in Ci||ur.store.setState({selectedKeys:Jn}),Ci.onDeselect(Object(r.a)(Object(r.a)({},Hn),{},{selectedKeys:Jn}))}},ur.onMouseEnter=function(Hn){ur.restoreModeVerticalFromInline();var Li=ur.props.onMouseEnter;Li&&Li(Hn)},ur.onTransitionEnd=function(Hn){var Li=Hn.propertyName==="width"&&Hn.target===Hn.currentTarget,Ci=Hn.target.className,Jn=Object.prototype.toString.call(Ci)==="[object SVGAnimatedString]"?Ci.animVal:Ci,mi=Hn.propertyName==="font-size"&&Jn.indexOf("anticon")>=0;(Li||mi)&&ur.restoreModeVerticalFromInline()},ur.setInnerMenu=function(Hn){ur.innerMenu=Hn},ur.isRootMenu=!0;var sn=en.defaultSelectedKeys,Bn=en.defaultOpenKeys;return"selectedKeys"in en&&(sn=en.selectedKeys||[]),"openKeys"in en&&(Bn=en.openKeys||[]),ur.store=Object(fe.c)({selectedKeys:sn,openKeys:Bn,activeKey:{"0-menu-":pr(en,en.activeKey)}}),ur.state={switchingModeFromInline:!1,prevProps:en,inlineOpenKeys:[],store:ur.store},ur}return Object(_.a)(Tn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ur){var sn=this.props,Bn=sn.siderCollapsed,Hn=sn.inlineCollapsed,Li=sn.onOpenChange;(!ur.inlineCollapsed&&Hn||!ur.siderCollapsed&&Bn)&&Li([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var ur=this.props.collapsedWidth,sn=this.store,Bn=this.prevOpenKeys,Hn=this.getInlineCollapsed()&&(ur===0||ur==="0"||ur==="0px");Hn?(this.prevOpenKeys=sn.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Bn&&(this.store.setState({openKeys:Bn}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ur=this.props.mode,sn=this.state.switchingModeFromInline,Bn=this.getInlineCollapsed();return sn&&Bn?"inline":Bn?"vertical":ur}},{key:"getInlineCollapsed",value:function(){var ur=this.props,sn=ur.inlineCollapsed,Bn=ur.siderCollapsed;return Bn!==void 0?Bn:sn}},{key:"restoreModeVerticalFromInline",value:function(){var ur=this.state.switchingModeFromInline;ur&&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 ur=Object(r.a)({},Ee(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),sn=this.getRealMenuMode();return ur.className+=" ".concat(ur.prefixCls,"-root"),ur.direction==="rtl"&&(ur.className+=" ".concat(ur.prefixCls,"-rtl")),ur=Object(r.a)(Object(r.a)({},ur),{},{mode:sn,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Ye(this.props,this.state,sn)}),delete ur.openAnimation,delete ur.openTransitionName,b.createElement(fe.a,{store:this.store},b.createElement(Yn,Object(Se.a)({},ur,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(ur,sn){var Bn=sn.prevProps,Hn=sn.store,Li=Hn.getState(),Ci={},Jn={prevProps:ur};return Bn.mode==="inline"&&ur.mode!=="inline"&&(Jn.switchingModeFromInline=!0),"openKeys"in ur?Ci.openKeys=ur.openKeys||[]:((ur.inlineCollapsed&&!Bn.inlineCollapsed||ur.siderCollapsed&&!Bn.siderCollapsed)&&(Jn.switchingModeFromInline=!0,Jn.inlineOpenKeys=Li.openKeys,Ci.openKeys=[]),(!ur.inlineCollapsed&&Bn.inlineCollapsed||!ur.siderCollapsed&&Bn.siderCollapsed)&&(Ci.openKeys=sn.inlineOpenKeys,Jn.inlineOpenKeys=[])),Object.keys(Ci).length&&Hn.setState(Ci),Jn}}]),Tn}(b.Component);We.defaultProps={selectable:!0,onClick:ar,onSelect:ar,onOpenChange:ar,onDeselect:ar,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:b.createElement("span",null,"\xB7\xB7\xB7")};var qe=We,yt=function(Dr){Object(I.a)(Tn,Dr);var rn=Object(L.a)(Tn);function Tn(){var en;return Object(S.a)(this,Tn),en=rn.apply(this,arguments),en.onKeyDown=function(ur){var sn=ur.keyCode;return sn===vt.ENTER?(en.onClick(ur),!0):void 0},en.onMouseLeave=function(ur){var sn=en.props,Bn=sn.eventKey,Hn=sn.onItemHover,Li=sn.onMouseLeave;Hn({key:Bn,hover:!1}),Li({key:Bn,domEvent:ur})},en.onMouseEnter=function(ur){var sn=en.props,Bn=sn.eventKey,Hn=sn.onItemHover,Li=sn.onMouseEnter;Hn({key:Bn,hover:!0}),Li({key:Bn,domEvent:ur})},en.onClick=function(ur){var sn=en.props,Bn=sn.eventKey,Hn=sn.multiple,Li=sn.onClick,Ci=sn.onSelect,Jn=sn.onDeselect,mi=sn.isSelected,yi={key:Bn,keyPath:[Bn],item:Object(le.a)(en),domEvent:ur};Li(yi),Hn?mi?Jn(yi):Ci(yi):mi||Ci(yi)},en.saveNode=function(ur){en.node=ur},en}return Object(_.a)(Tn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var ur=this.props;ur.onDestroy&&ur.onDestroy(ur.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 ur,sn=Object(r.a)({},this.props),Bn=n()(this.getPrefixCls(),sn.className,(ur={},Object(f.a)(ur,this.getActiveClassName(),!sn.disabled&&sn.active),Object(f.a)(ur,this.getSelectedClassName(),sn.isSelected),Object(f.a)(ur,this.getDisabledClassName(),sn.disabled),ur)),Hn=Object(r.a)(Object(r.a)({},sn.attribute),{},{title:typeof sn.title=="string"?sn.title:void 0,className:Bn,role:sn.role||"menuitem","aria-disabled":sn.disabled});sn.role==="option"?Hn=Object(r.a)(Object(r.a)({},Hn),{},{role:"option","aria-selected":sn.isSelected}):(sn.role===null||sn.role==="none")&&(Hn.role="none");var Li={onClick:sn.disabled?null:this.onClick,onMouseLeave:sn.disabled?null:this.onMouseLeave,onMouseEnter:sn.disabled?null:this.onMouseEnter},Ci=Object(r.a)({},sn.style);sn.mode==="inline"&&(sn.direction==="rtl"?Ci.paddingRight=sn.inlineIndent*sn.level:Ci.paddingLeft=sn.inlineIndent*sn.level),on.forEach(function(mi){return delete sn[mi]}),delete sn.direction;var Jn=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Jn=b.createElement(this.props.itemIcon,this.props)),b.createElement("li",Object(Se.a)({},Ee(sn,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Hn,Li,{style:Ci,ref:this.saveNode}),sn.children,Jn)}}]),Tn}(b.Component);yt.isMenuItem=!0,yt.defaultProps={onSelect:ar,onMouseEnter:ar,onMouseLeave:ar,manualRef:ar};var ot=Object(fe.b)(function(Dr,rn){var Tn=Dr.activeKey,en=Dr.selectedKeys,ur=rn.eventKey,sn=rn.subMenuKey;return{active:Tn[sn]===ur,isSelected:Array.isArray(en)?en.indexOf(ur)!==-1:en===ur}})(yt),$t=ot,Mr=function(Dr){Object(I.a)(Tn,Dr);var rn=Object(L.a)(Tn);function Tn(){var en;return Object(S.a)(this,Tn),en=rn.apply(this,arguments),en.renderInnerMenuItem=function(ur){var sn=en.props,Bn=sn.renderMenuItem,Hn=sn.index;return Bn(ur,Hn,en.props.subMenuKey)},en}return Object(_.a)(Tn,[{key:"render",value:function(){var ur=Object(Se.a)({},this.props),sn=ur.className,Bn=sn===void 0?"":sn,Hn=ur.rootPrefixCls,Li="".concat(Hn,"-item-group-title"),Ci="".concat(Hn,"-item-group-list"),Jn=ur.title,mi=ur.children;return on.forEach(function(yi){return delete ur[yi]}),delete ur.direction,b.createElement("li",Object(Se.a)({},ur,{onClick:function(da){return da.stopPropagation()},className:"".concat(Bn," ").concat(Hn,"-item-group")}),b.createElement("div",{className:Li,title:typeof Jn=="string"?Jn:void 0},Jn),b.createElement("ul",{className:Ci},b.Children.map(mi,this.renderInnerMenuItem)))}}]),Tn}(b.Component);Mr.isMenuItemGroup=!0,Mr.defaultProps={disabled:!0};var Sr=Mr,jr=function(rn){var Tn=rn.className,en=rn.rootPrefixCls,ur=rn.style;return b.createElement("li",{className:"".concat(Tn," ").concat(en,"-item-divider"),style:ur})};jr.defaultProps={disabled:!0,className:"",style:{}};var tr=jr,gn=qe,sr={adjustX:1,adjustY:1},un=[0,0],an={topLeft:{points:["bl","tl"],overflow:sr,offset:[0,-4],targetOffset:un},topCenter:{points:["bc","tc"],overflow:sr,offset:[0,-4],targetOffset:un},topRight:{points:["br","tr"],overflow:sr,offset:[0,-4],targetOffset:un},bottomLeft:{points:["tl","bl"],overflow:sr,offset:[0,4],targetOffset:un},bottomCenter:{points:["tc","bc"],overflow:sr,offset:[0,4],targetOffset:un},bottomRight:{points:["tr","br"],overflow:sr,offset:[0,4],targetOffset:un}},Pr=an,In={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(rn){var Tn=rn.keyCode;if(rn.altKey&&!rn.ctrlKey||rn.metaKey||Tn>=In.F1&&Tn<=In.F12)return!1;switch(Tn){case In.ALT:case In.CAPS_LOCK:case In.CONTEXT_MENU:case In.CTRL:case In.DOWN:case In.END:case In.ESC:case In.HOME:case In.INSERT:case In.LEFT:case In.MAC_FF_META:case In.META:case In.NUMLOCK:case In.NUM_CENTER:case In.PAGE_DOWN:case In.PAGE_UP:case In.PAUSE:case In.PRINT_SCREEN:case In.RIGHT:case In.SHIFT:case In.UP:case In.WIN_KEY:case In.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(rn){if(rn>=In.ZERO&&rn<=In.NINE)return!0;if(rn>=In.NUM_ZERO&&rn<=In.NUM_MULTIPLY)return!0;if(rn>=In.A&&rn<=In.Z)return!0;if(window.navigator.userAgent.indexOf("WebKit")!==-1&&rn===0)return!0;switch(rn){case In.SPACE:case In.QUESTION_MARK:case In.NUM_PLUS:case In.NUM_MINUS:case In.NUM_PERIOD:case In.NUM_DIVISION:case In.SEMICOLON:case In.DASH:case In.EQUALS:case In.COMMA:case In.PERIOD:case In.SLASH:case In.APOSTROPHE:case In.SINGLE_QUOTE:case In.OPEN_SQUARE_BRACKET:case In.BACKSLASH:case In.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},ci=In,Ui=function(rn){return+setTimeout(rn,16)},ki=function(rn){return clearTimeout(rn)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ui=function(rn){return window.requestAnimationFrame(rn)},ki=function(rn){return window.cancelAnimationFrame(rn)});var Ri=0,Ki=new Map;function Hr(Dr){Ki.delete(Dr)}function Cn(Dr){var rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Ri+=1;var Tn=Ri;function en(ur){if(ur===0)Hr(Tn),Dr();else{var sn=Ui(function(){en(ur-1)});Ki.set(Tn,sn)}}return en(rn),Tn}Cn.cancel=function(Dr){var rn=Ki.get(Dr);return Hr(rn),ki(rn)};var kr=ci.ESC,mr=ci.TAB;function Cr(Dr){var rn=Dr.visible,Tn=Dr.setTriggerVisible,en=Dr.triggerRef,ur=Dr.menuRef,sn=Dr.onVisibleChange,Bn=Dr.autoFocus,Hn=b.useRef(!1),Li=function(){if(rn&&en.current){var yi,da,ha,Pa;(yi=en.current)===null||yi===void 0||((da=yi.triggerRef)===null||da===void 0||((ha=da.current)===null||ha===void 0||((Pa=ha.focus)===null||Pa===void 0)))||Pa.call(ha),Tn(!1),typeof sn=="function"&&sn(!1)}},Ci=function(){var yi,da;(yi=ur.current)===null||yi===void 0||((da=yi.focus)===null||da===void 0)||da.call(yi),Hn.current=!0},Jn=function(yi){var da;switch(yi.keyCode){case kr:Li();break;case mr:!Hn.current&&((da=ur.current)===null||da===void 0?void 0:da.focus)?(yi.preventDefault(),Ci()):Li();break}};b.useEffect(function(){return rn?(window.addEventListener("keydown",Jn),Bn&&Cn(Ci,3),function(){window.removeEventListener("keydown",Jn),Hn.current=!1}):function(){Hn.current=!1}},[rn])}function Nt(Dr,rn,Tn){var en=b.useRef({});return(!("value"in en.current)||Tn(en.current.condition,rn))&&(en.current.value=Dr(),en.current.condition=rn),en.current.value}function wr(Dr,rn){typeof Dr=="function"?Dr(rn):Object(J.a)(Dr)==="object"&&Dr&&"current"in Dr&&(Dr.current=rn)}function Gr(){for(var Dr=arguments.length,rn=new Array(Dr),Tn=0;Tn<Dr;Tn++)rn[Tn]=arguments[Tn];var en=rn.filter(function(ur){return ur});return en.length<=1?en[0]:function(ur){rn.forEach(function(sn){wr(sn,ur)})}}function Kr(){for(var Dr=arguments.length,rn=new Array(Dr),Tn=0;Tn<Dr;Tn++)rn[Tn]=arguments[Tn];return Nt(function(){return Gr.apply(void 0,rn)},rn,function(en,ur){return en.length===ur.length&&en.every(function(sn,Bn){return sn===ur[Bn]})})}function qr(Dr){var rn,Tn,en=Object(e.isMemo)(Dr)?Dr.type.type:Dr.type;return typeof en=="function"&&!((rn=en.prototype)===null||rn===void 0?void 0:rn.render)?!1:!(typeof Dr=="function"&&!((Tn=Dr.prototype)===null||Tn===void 0?void 0:Tn.render))}var oi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Gn(Dr,rn){var Tn=Dr.arrow,en=Tn===void 0?!1:Tn,ur=Dr.prefixCls,sn=ur===void 0?"rc-dropdown":ur,Bn=Dr.transitionName,Hn=Dr.animation,Li=Dr.align,Ci=Dr.placement,Jn=Ci===void 0?"bottomLeft":Ci,mi=Dr.placements,yi=mi===void 0?Pr:mi,da=Dr.getPopupContainer,ha=Dr.showAction,Pa=Dr.hideAction,Ra=Dr.overlayClassName,so=Dr.overlayStyle,La=Dr.visible,lo=Dr.trigger,So=lo===void 0?["hover"]:lo,Qt=Dr.autoFocus,Vr=Object(o.a)(Dr,oi),cn=b.useState(),vn=Object(c.a)(cn,2),ni=vn[0],li=vn[1],fi="visible"in Dr?La:ni,di=b.useRef(null);b.useImperativeHandle(rn,function(){return di.current});var Jt=b.useRef(null),Ot="".concat(sn,"-menu");Cr({visible:fi,setTriggerVisible:li,triggerRef:di,menuRef:Jt,onVisibleChange:Dr.onVisibleChange,autoFocus:Qt});var yr=function(){var ii=Dr.overlay,pi;return typeof ii=="function"?pi=ii():pi=ii,pi},ft=function(ii){var pi=Dr.onOverlayClick,ri=yr().props;li(!1),pi&&pi(ii),ri.onClick&&ri.onClick(ii)},qt=function(ii){var pi=Dr.onVisibleChange;li(ii),typeof pi=="function"&&pi(ii)},dr=function(){var ii,pi=yr(),ri=Gr(Jt,pi.ref),ji=(ii={prefixCls:Ot},Object(f.a)(ii,"data-dropdown-inject",!0),Object(f.a)(ii,"onClick",ft),Object(f.a)(ii,"ref",qr(pi)?ri:void 0),ii);return typeof pi.type=="string"&&(delete ji.prefixCls,delete ji["data-dropdown-inject"]),b.createElement(b.Fragment,null,en&&b.createElement("div",{className:"".concat(sn,"-arrow")}),b.cloneElement(pi,ji))},Nr=function(){var ii=Dr.overlay;return typeof ii=="function"?dr:dr()},Zr=function(){var ii=Dr.minOverlayWidthMatchTrigger,pi=Dr.alignPoint;return"minOverlayWidthMatchTrigger"in Dr?ii:!pi},pn=function(){var ii=Dr.openClassName;return ii!==void 0?ii:"".concat(sn,"-open")},_n=function(){var ii=Dr.children,pi=ii.props?ii.props:{},ri=n()(pi.className,pn());return fi&&ii?b.cloneElement(ii,{className:ri}):ii},Dn=Pa;return!Dn&&So.indexOf("contextMenu")!==-1&&(Dn=["click"]),b.createElement(yn.a,Object(r.a)(Object(r.a)({builtinPlacements:yi},Vr),{},{prefixCls:sn,ref:di,popupClassName:n()(Ra,Object(f.a)({},"".concat(sn,"-show-arrow"),en)),popupStyle:so,action:So,showAction:ha,hideAction:Dn||[],popupPlacement:Jn,popupAlign:Li,popupTransitionName:Bn,popupAnimation:Hn,popupVisible:fi,stretch:Zr()?"minWidth":"",popup:Nr(),onPopupVisibleChange:qt,getPopupContainer:da}),_n())}var Ti=b.forwardRef(Gn),hn=Ti;function _r(Dr,rn){var Tn=Dr.prefixCls,en=Dr.editable,ur=Dr.locale,sn=Dr.style;return!en||en.showAdd===!1?null:b.createElement("button",{ref:rn,type:"button",className:"".concat(Tn,"-nav-add"),style:sn,"aria-label":(ur==null?void 0:ur.addAriaLabel)||"Add tab",onClick:function(Hn){en.onEdit("add",{event:Hn})}},en.addIcon||"+")}var En=b.forwardRef(_r);function Fn(Dr,rn){var Tn=Dr.prefixCls,en=Dr.id,ur=Dr.tabs,sn=Dr.locale,Bn=Dr.mobile,Hn=Dr.moreIcon,Li=Hn===void 0?"More":Hn,Ci=Dr.moreTransitionName,Jn=Dr.style,mi=Dr.className,yi=Dr.editable,da=Dr.tabBarGutter,ha=Dr.rtl,Pa=Dr.onTabClick,Ra=Object(b.useState)(!1),so=Object(c.a)(Ra,2),La=so[0],lo=so[1],So=Object(b.useState)(null),Qt=Object(c.a)(So,2),Vr=Qt[0],cn=Qt[1],vn="".concat(en,"-more-popup"),ni="".concat(Tn,"-dropdown"),li=Vr!==null?"".concat(vn,"-").concat(Vr):null,fi=sn==null?void 0:sn.dropdownAriaLabel,di=b.createElement(gn,{onClick:function(Nr){var Zr=Nr.key,pn=Nr.domEvent;Pa(Zr,pn),lo(!1)},id:vn,tabIndex:-1,role:"listbox","aria-activedescendant":li,selectedKeys:[Vr],"aria-label":fi!==void 0?fi:"expanded dropdown"},ur.map(function(dr){return b.createElement($t,{key:dr.key,id:"".concat(vn,"-").concat(dr.key),role:"option","aria-controls":en&&"".concat(en,"-panel-").concat(dr.key),disabled:dr.disabled},dr.tab)}));function Jt(dr){for(var Nr=ur.filter(function(Zn){return!Zn.disabled}),Zr=Nr.findIndex(function(Zn){return Zn.key===Vr})||0,pn=Nr.length,_n=0;_n<pn;_n+=1){Zr=(Zr+dr+pn)%pn;var Dn=Nr[Zr];if(!Dn.disabled){cn(Dn.key);return}}}function Ot(dr){var Nr=dr.which;if(!La){[oe.DOWN,oe.SPACE,oe.ENTER].includes(Nr)&&(lo(!0),dr.preventDefault());return}switch(Nr){case oe.UP:Jt(-1),dr.preventDefault();break;case oe.DOWN:Jt(1),dr.preventDefault();break;case oe.ESC:lo(!1);break;case oe.SPACE:case oe.ENTER:Vr!==null&&Pa(Vr,dr);break}}Object(b.useEffect)(function(){var dr=document.getElementById(li);dr&&dr.scrollIntoView&&dr.scrollIntoView(!1)},[Vr]),Object(b.useEffect)(function(){La||cn(null)},[La]);var yr=Object(f.a)({},ha?"marginLeft":"marginRight",da);ur.length||(yr.visibility="hidden",yr.order=1);var ft=n()(Object(f.a)({},"".concat(ni,"-rtl"),ha)),qt=Bn?null:b.createElement(hn,{prefixCls:ni,overlay:di,trigger:["hover"],visible:La,transitionName:Ci,onVisibleChange:lo,overlayClassName:ft,mouseEnterDelay:.1,mouseLeaveDelay:.1},b.createElement("button",{type:"button",className:"".concat(Tn,"-nav-more"),style:yr,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":vn,id:"".concat(en,"-more"),"aria-expanded":La,onKeyDown:Ot},Li));return b.createElement("div",{className:n()("".concat(Tn,"-nav-operations"),mi),style:Jn,ref:rn},qt,b.createElement(En,{prefixCls:Tn,locale:sn,editable:yi}))}var Vn=b.forwardRef(Fn),qn=Object(b.createContext)(null),Oi=.1,Ni=.01,Mi=20,Ji=Math.pow(.995,Mi);function ma(){var Dr=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(Dr)||/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(Dr.substr(0,4)))}function la(Dr,rn){var Tn=Object(b.useState)(),en=Object(c.a)(Tn,2),ur=en[0],sn=en[1],Bn=Object(b.useState)(0),Hn=Object(c.a)(Bn,2),Li=Hn[0],Ci=Hn[1],Jn=Object(b.useState)(0),mi=Object(c.a)(Jn,2),yi=mi[0],da=mi[1],ha=Object(b.useState)(),Pa=Object(c.a)(ha,2),Ra=Pa[0],so=Pa[1],La=Object(b.useRef)();function lo(fi){var di=fi.touches[0],Jt=di.screenX,Ot=di.screenY;sn({x:Jt,y:Ot}),window.clearInterval(La.current)}function So(fi){if(!ur)return;fi.preventDefault();var di=fi.touches[0],Jt=di.screenX,Ot=di.screenY;sn({x:Jt,y:Ot});var yr=Jt-ur.x,ft=Ot-ur.y;rn(yr,ft);var qt=Date.now();Ci(qt),da(qt-Li),so({x:yr,y:ft})}function Qt(){if(!ur)return;if(sn(null),so(null),Ra){var fi=Ra.x/yi,di=Ra.y/yi,Jt=Math.abs(fi),Ot=Math.abs(di);if(Math.max(Jt,Ot)<Oi)return;var yr=fi,ft=di;La.current=window.setInterval(function(){if(Math.abs(yr)<Ni&&Math.abs(ft)<Ni){window.clearInterval(La.current);return}yr*=Ji,ft*=Ji,rn(yr*Mi,ft*Mi)},Mi)}}var Vr=Object(b.useRef)(0),cn=Object(b.useRef)(!1),vn=Object(b.useRef)();function ni(fi){var di=fi.deltaX,Jt=fi.deltaY,Ot=0,yr=Math.abs(di),ft=Math.abs(Jt);yr===ft?Ot=vn.current==="x"?di:Jt:yr>ft?(Ot=di,vn.current="x"):(Ot=Jt,vn.current="y");var qt=Date.now();qt-Vr.current>100&&(cn.current=!1),(rn(-Ot,-Ot)||cn.current)&&(fi.preventDefault(),cn.current=!0),Vr.current=qt}var li=Object(b.useRef)(null);li.current={onTouchStart:lo,onTouchMove:So,onTouchEnd:Qt,onWheel:ni},b.useEffect(function(){function fi(yr){li.current.onTouchStart(yr)}function di(yr){li.current.onTouchMove(yr)}function Jt(yr){li.current.onTouchEnd(yr)}function Ot(yr){li.current.onWheel(yr)}return document.addEventListener("touchmove",di,{passive:!1}),document.addEventListener("touchend",Jt,{passive:!1}),Dr.current.addEventListener("touchstart",fi,{passive:!1}),Dr.current.addEventListener("wheel",Ot),function(){document.removeEventListener("touchmove",di),document.removeEventListener("touchend",Jt)}},[])}function qa(){var Dr=Object(b.useRef)(new Map);function rn(en){return Dr.current.has(en)||Dr.current.set(en,b.createRef()),Dr.current.get(en)}function Tn(en){Dr.current.delete(en)}return[rn,Tn]}function bi(Dr,rn){var Tn=b.useRef(Dr),en=b.useState({}),ur=Object(c.a)(en,2),sn=ur[1];function Bn(Hn){var Li=typeof Hn=="function"?Hn(Tn.current):Hn;Li!==Tn.current&&rn(Li,Tn.current),Tn.current=Li,sn({})}return[Tn.current,Bn]}var xn=function(rn){var Tn=rn.position,en=rn.prefixCls,ur=rn.extra;if(!ur)return null;var sn,Bn=ur;return Tn==="right"&&(sn=Bn.right||!Bn.left&&Bn||null),Tn==="left"&&(sn=Bn.left||null),sn?b.createElement("div",{className:"".concat(en,"-extra-content")},sn):null};function zi(Dr,rn){var Tn,en=b.useContext(qn),ur=en.prefixCls,sn=en.tabs,Bn=Dr.className,Hn=Dr.style,Li=Dr.id,Ci=Dr.animated,Jn=Dr.activeKey,mi=Dr.rtl,yi=Dr.extra,da=Dr.editable,ha=Dr.locale,Pa=Dr.tabPosition,Ra=Dr.tabBarGutter,so=Dr.children,La=Dr.onTabClick,lo=Dr.onTabScroll,So=Object(b.useRef)(),Qt=Object(b.useRef)(),Vr=Object(b.useRef)(),cn=Object(b.useRef)(),vn=qa(),ni=Object(c.a)(vn,2),li=ni[0],fi=ni[1],di=Pa==="top"||Pa==="bottom",Jt=bi(0,function(Fa,Ja){di&&lo&&lo({direction:Fa>Ja?"left":"right"})}),Ot=Object(c.a)(Jt,2),yr=Ot[0],ft=Ot[1],qt=bi(0,function(Fa,Ja){!di&&lo&&lo({direction:Fa>Ja?"top":"bottom"})}),dr=Object(c.a)(qt,2),Nr=dr[0],Zr=dr[1],pn=Object(b.useState)(0),_n=Object(c.a)(pn,2),Dn=_n[0],Zn=_n[1],ii=Object(b.useState)(0),pi=Object(c.a)(ii,2),ri=pi[0],ji=pi[1],ei=Object(b.useState)(0),$e=Object(c.a)(ei,2),Yt=$e[0],vr=$e[1],fr=Object(b.useState)(0),Xr=Object(c.a)(fr,2),Fr=Xr[0],hr=Xr[1],An=Object(b.useState)(null),br=Object(c.a)(An,2),mn=br[0],Kn=br[1],Wn=Object(b.useState)(null),Ln=Object(c.a)(Wn,2),$n=Ln[0],Un=Ln[1],ti=Object(b.useState)(0),Xn=Object(c.a)(ti,2),wi=Xn[0],Ei=Xn[1],Zi=Object(b.useState)(0),ua=Object(c.a)(Zi,2),Xi=ua[0],Gi=ua[1],wa=te(new Map),na=Object(c.a)(wa,2),mo=na[0],Ca=na[1],qi=ye(sn,mo,Dn),aa="".concat(ur,"-nav-operations-hidden"),$i=0,Aa=0;di?mi?($i=0,Aa=Math.max(0,Dn-mn)):($i=Math.min(0,mn-Dn),Aa=0):($i=Math.min(0,$n-ri),Aa=0);function ya(Fa){return Fa<$i?[$i,!1]:Fa>Aa?[Aa,!1]:[Fa,!0]}var Ha=Object(b.useRef)(),ta=Object(b.useState)(),ra=Object(c.a)(ta,2),_a=ra[0],Ka=ra[1];function bo(){Ka(Date.now())}function ga(){window.clearTimeout(Ha.current)}la(So,function(Fa,Ja){var ho=!1;function Ao($o,ps){$o(function(is){var Za=ya(is+ps),Ct=Object(c.a)(Za,2),Bt=Ct[0],Wr=Ct[1];return ho=Wr,Bt})}if(di){if(mn>=Dn)return ho;Ao(ft,Fa)}else{if($n>=ri)return ho;Ao(Zr,Ja)}return ga(),bo(),ho}),Object(b.useEffect)(function(){return ga(),_a&&(Ha.current=window.setTimeout(function(){Ka(0)},100)),ga},[_a]);function go(){var Fa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jn,Ja=qi.get(Fa);if(!Ja)return;if(di){var ho=yr;mi?Ja.right<yr?ho=Ja.right:Ja.right+Ja.width>yr+mn&&(ho=Ja.right+Ja.width-mn):Ja.left<-yr?ho=-Ja.left:Ja.left+Ja.width>-yr+mn&&(ho=-(Ja.left+Ja.width-mn)),Zr(0),ft(ya(ho)[0])}else{var Ao=Nr;Ja.top<-Nr?Ao=-Ja.top:Ja.top+Ja.height>-Nr+$n&&(Ao=-(Ja.top+Ja.height-$n)),ft(0),Zr(ya(Ao)[0])}}var Sa=Te(qi,{width:mn,height:$n,left:yr,top:Nr},{width:Yt,height:Fr},{width:wi,height:Xi},Object(r.a)(Object(r.a)({},Dr),{},{tabs:sn})),Va=Object(c.a)(Sa,2),uo=Va[0],No=Va[1],Po=sn.map(function(Fa){var Ja=Fa.key;return b.createElement(G,{id:Li,prefixCls:ur,key:Ja,rtl:mi,tab:Fa,closable:Fa.closable,editable:da,active:Ja===Jn,tabPosition:Pa,tabBarGutter:Ra,renderWrapper:so,removeAriaLabel:ha==null?void 0:ha.removeAriaLabel,ref:li(Ja),onClick:function(Ao){La(Ja,Ao)},onRemove:function(){fi(Ja)},onFocus:function(){go(Ja),bo(),mi||(So.current.scrollLeft=0),So.current.scrollTop=0}})}),to=se(function(){var Fa,Ja,ho,Ao,$o,ps,is,Za,Ct,Bt=((Fa=So.current)===null||Fa===void 0?void 0:Fa.offsetWidth)||0,Wr=((Ja=So.current)===null||Ja===void 0?void 0:Ja.offsetHeight)||0,Pn=((ho=cn.current)===null||ho===void 0?void 0:ho.offsetWidth)||0,ht=((Ao=cn.current)===null||Ao===void 0?void 0:Ao.offsetHeight)||0,ne=(($o=Vr.current)===null||$o===void 0?void 0:$o.offsetWidth)||0,pe=((ps=Vr.current)===null||ps===void 0?void 0:ps.offsetHeight)||0;Kn(Bt),Un(Wr),Ei(Pn),Gi(ht);var be=(((is=Qt.current)===null||is===void 0?void 0:is.offsetWidth)||0)-Pn,Ue=(((Za=Qt.current)===null||Za===void 0?void 0:Za.offsetHeight)||0)-ht;Zn(be),ji(Ue);var pt=(Ct=Vr.current)===null||Ct===void 0?void 0:Ct.className.includes(aa);vr(be-(pt?0:ne)),hr(Ue-(pt?0:pe)),Ca(function(){var Xt=new Map;return sn.forEach(function(Or){var Qr=Or.key,dn=li(Qr).current;dn&&Xt.set(Qr,{width:dn.offsetWidth,height:dn.offsetHeight,left:dn.offsetLeft,top:dn.offsetTop})}),Xt})}),Uo=sn.slice(0,uo),co=sn.slice(No+1),fa=[].concat(Object(E.a)(Uo),Object(E.a)(co)),ro=Object(b.useState)(),Wa=Object(c.a)(ro,2),Ea=Wa[0],Jr=Wa[1],za=qi.get(Jn),rs=Object(b.useRef)();function Vo(){w.a.cancel(rs.current)}Object(b.useEffect)(function(){var Fa={};return za&&(di?(mi?Fa.right=za.right:Fa.left=za.left,Fa.width=za.width):(Fa.top=za.top,Fa.height=za.height)),Vo(),rs.current=w()(function(){Jr(Fa)}),Vo},[za,di,mi]),Object(b.useEffect)(function(){go()},[Jn,za,qi,di]),Object(b.useEffect)(function(){to()},[mi,Ra,Jn,sn.map(function(Fa){return Fa.key}).join("_")]);var Go=!!fa.length,Qo="".concat(ur,"-nav-wrap"),Yo,vo,Io,zo;return di?mi?(vo=yr>0,Yo=yr+mn<Dn):(Yo=yr<0,vo=-yr+mn<Dn):(Io=Nr<0,zo=-Nr+$n<ri),b.createElement("div",{ref:rn,role:"tablist",className:n()("".concat(ur,"-nav"),Bn),style:Hn,onKeyDown:function(){bo()}},b.createElement(xn,{position:"left",extra:yi,prefixCls:ur}),b.createElement(ke,{onResize:to},b.createElement("div",{className:n()(Qo,(Tn={},Object(f.a)(Tn,"".concat(Qo,"-ping-left"),Yo),Object(f.a)(Tn,"".concat(Qo,"-ping-right"),vo),Object(f.a)(Tn,"".concat(Qo,"-ping-top"),Io),Object(f.a)(Tn,"".concat(Qo,"-ping-bottom"),zo),Tn)),ref:So},b.createElement(ke,{onResize:to},b.createElement("div",{ref:Qt,className:"".concat(ur,"-nav-list"),style:{transform:"translate(".concat(yr,"px, ").concat(Nr,"px)"),transition:_a?"none":void 0}},Po,b.createElement(En,{ref:cn,prefixCls:ur,locale:ha,editable:da,style:{visibility:Go?"hidden":null}}),b.createElement("div",{className:n()("".concat(ur,"-ink-bar"),Object(f.a)({},"".concat(ur,"-ink-bar-animated"),Ci.inkBar)),style:Ea}))))),b.createElement(Vn,Object.assign({},Dr,{ref:Vr,prefixCls:ur,tabs:fa,className:!Go&&aa})),b.createElement(xn,{position:"right",extra:yi,prefixCls:ur}))}var oa=b.forwardRef(zi);function Yi(Dr){var rn=Dr.id,Tn=Dr.activeKey,en=Dr.animated,ur=Dr.tabPosition,sn=Dr.rtl,Bn=Dr.destroyInactiveTabPane,Hn=b.useContext(qn),Li=Hn.prefixCls,Ci=Hn.tabs,Jn=en.tabPane,mi=Ci.findIndex(function(yi){return yi.key===Tn});return b.createElement("div",{className:n()("".concat(Li,"-content-holder"))},b.createElement("div",{className:n()("".concat(Li,"-content"),"".concat(Li,"-content-").concat(ur),Object(f.a)({},"".concat(Li,"-content-animated"),Jn)),style:mi&&Jn?Object(f.a)({},sn?"marginRight":"marginLeft","-".concat(mi,"00%")):null},Ci.map(function(yi){return b.cloneElement(yi.node,{key:yi.key,prefixCls:Li,tabKey:yi.key,id:rn,animated:Jn,active:yi.key===Tn,destroyInactiveTabPane:Bn})})))}function ca(Dr){var rn=Dr.prefixCls,Tn=Dr.forceRender,en=Dr.className,ur=Dr.style,sn=Dr.id,Bn=Dr.active,Hn=Dr.animated,Li=Dr.destroyInactiveTabPane,Ci=Dr.tabKey,Jn=Dr.children,mi=b.useState(Tn),yi=Object(c.a)(mi,2),da=yi[0],ha=yi[1];b.useEffect(function(){Bn?ha(!0):Li&&ha(!1)},[Bn,Li]);var Pa={};return Bn||(Hn?(Pa.visibility="hidden",Pa.height=0,Pa.overflowY="hidden"):Pa.display="none"),b.createElement("div",{id:sn&&"".concat(sn,"-panel-").concat(Ci),role:"tabpanel",tabIndex:Bn?0:-1,"aria-labelledby":sn&&"".concat(sn,"-tab-").concat(Ci),"aria-hidden":!Bn,style:Object(r.a)(Object(r.a)({},Pa),ur),className:n()("".concat(rn,"-tabpane"),Bn&&"".concat(rn,"-tabpane-active"),en)},(Bn||da||Tn)&&Jn)}var Hi=0;function Ia(Dr){return l(Dr).map(function(rn){if(b.isValidElement(rn)){var Tn=rn.key!==void 0?String(rn.key):void 0;return Object(r.a)(Object(r.a)({key:Tn},rn.props),{},{node:rn})}return null}).filter(function(rn){return rn})}function Da(Dr,rn){var Tn,en=Dr.id,ur=Dr.prefixCls,sn=ur===void 0?"rc-tabs":ur,Bn=Dr.className,Hn=Dr.children,Li=Dr.direction,Ci=Dr.activeKey,Jn=Dr.defaultActiveKey,mi=Dr.editable,yi=Dr.animated,da=Dr.tabPosition,ha=da===void 0?"top":da,Pa=Dr.tabBarGutter,Ra=Dr.tabBarStyle,so=Dr.tabBarExtraContent,La=Dr.locale,lo=Dr.moreIcon,So=Dr.moreTransitionName,Qt=Dr.destroyInactiveTabPane,Vr=Dr.renderTabBar,cn=Dr.onChange,vn=Dr.onTabClick,ni=Dr.onTabScroll,li=Object(o.a)(Dr,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),fi=Ia(Hn),di=Li==="rtl",Jt;yi===!1?Jt={inkBar:!1,tabPane:!1}:Jt=Object(r.a)({inkBar:!0,tabPane:!1},yi!==!0?yi:null);var Ot=Object(b.useState)(!1),yr=Object(c.a)(Ot,2),ft=yr[0],qt=yr[1];Object(b.useEffect)(function(){qt(ma())},[]);var dr=y(function(){var Fr;return(Fr=fi[0])===null||Fr===void 0?void 0:Fr.key},{value:Ci,defaultValue:Jn}),Nr=Object(c.a)(dr,2),Zr=Nr[0],pn=Nr[1],_n=Object(b.useState)(function(){return fi.findIndex(function(Fr){return Fr.key===Zr})}),Dn=Object(c.a)(_n,2),Zn=Dn[0],ii=Dn[1];Object(b.useEffect)(function(){var Fr=fi.findIndex(function(An){return An.key===Zr});if(Fr===-1){var hr;Fr=Math.max(0,Math.min(Zn,fi.length-1)),pn((hr=fi[Fr])===null||hr===void 0?void 0:hr.key)}ii(Fr)},[fi.map(function(Fr){return Fr.key}).join("_"),Zr,Zn]);var pi=y(null,{value:en}),ri=Object(c.a)(pi,2),ji=ri[0],ei=ri[1],$e=ha;ft&&!["left","right"].includes(ha)&&($e="top"),Object(b.useEffect)(function(){en||(ei("rc-tabs-".concat(Hi)),Hi+=1)},[]);function Yt(Fr,hr){vn==null||vn(Fr,hr),pn(Fr),cn==null||cn(Fr)}var vr={id:ji,activeKey:Zr,animated:Jt,tabPosition:$e,rtl:di,mobile:ft},fr,Xr=Object(r.a)(Object(r.a)({},vr),{},{editable:mi,locale:La,moreIcon:lo,moreTransitionName:So,tabBarGutter:Pa,onTabClick:Yt,onTabScroll:ni,extra:so,style:Ra,panes:Hn});return Vr?fr=Vr(Xr,oa):fr=b.createElement(oa,Object.assign({},Xr)),b.createElement(qn.Provider,{value:{tabs:fi,prefixCls:sn}},b.createElement("div",Object.assign({ref:rn,id:en,className:n()(sn,"".concat(sn,"-").concat($e),(Tn={},Object(f.a)(Tn,"".concat(sn,"-mobile"),ft),Object(f.a)(Tn,"".concat(sn,"-editable"),mi),Object(f.a)(Tn,"".concat(sn,"-rtl"),di),Tn),Bn)},li),fr,b.createElement(Yi,Object.assign({destroyInactiveTabPane:Qt},vr,{animated:Jt}))))}var Qa=b.forwardRef(Da);Qa.TabPane=ca;var Wo=Qa,po=Wo,Mo=d("cCPh"),Fo=d.n(Mo),yo=d("fNCr"),Oo=d.n(yo),sa=d("V/uB"),hs=d.n(sa),Jo=d("uaoM"),wo=d("H84U"),_o=function(Dr,rn){var Tn={};for(var en in Dr)Object.prototype.hasOwnProperty.call(Dr,en)&&rn.indexOf(en)<0&&(Tn[en]=Dr[en]);if(Dr!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ur=0,en=Object.getOwnPropertySymbols(Dr);ur<en.length;ur++)rn.indexOf(en[ur])<0&&Object.prototype.propertyIsEnumerable.call(Dr,en[ur])&&(Tn[en[ur]]=Dr[en[ur]]);return Tn};function Bo(Dr){var rn,Tn=Dr.type,en=Dr.className,ur=Dr.size,sn=Dr.onEdit,Bn=Dr.hideAdd,Hn=Dr.centered,Li=Dr.addIcon,Ci=_o(Dr,["type","className","size","onEdit","hideAdd","centered","addIcon"]),Jn=Ci.prefixCls,mi=b.useContext(wo.b),yi=mi.getPrefixCls,da=mi.direction,ha=yi("tabs",Jn),Pa;return Tn==="editable-card"&&(Pa={onEdit:function(so,La){var lo=La.key,So=La.event;sn==null||sn(so==="add"?So:lo,so)},removeIcon:b.createElement(hs.a,null),addIcon:Li||b.createElement(Oo.a,null),showAdd:Bn!==!0}),Object(Jo.a)(!("onPrevClick"in Ci)&&!("onNextClick"in Ci),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),b.createElement(po,x()({direction:da},Ci,{moreTransitionName:"slide-up",className:n()(en,(rn={},A()(rn,"".concat(ha,"-").concat(ur),ur),A()(rn,"".concat(ha,"-card"),["card","editable-card"].includes(Tn)),A()(rn,"".concat(ha,"-editable-card"),Tn==="editable-card"),A()(rn,"".concat(ha,"-centered"),Hn),rn)),editable:Pa,moreIcon:b.createElement(Fo.a,null),prefixCls:ha}))}Bo.TabPane=ca;var Ds=k.a=Bo},ZTW2:function(H,k,d){},ZWlE:function(H,k,d){var O=d("bYtY"),x=d("4NO4");function C(g){A(g),b(g)}function A(g){if(g.parallel)return;var f=!1;O.each(g.series,function(c){c&&c.type==="parallel"&&(f=!0)}),f&&(g.parallel=[{}])}function b(g){var f=x.normalizeToArray(g.parallelAxis);O.each(f,function(c){if(!O.isObject(c))return;var o=c.parallelIndex||0,r=x.normalizeToArray(g.parallel)[o];r&&r.parallelAxisDefault&&O.merge(c,r.parallelAxisDefault,!1)})}H.exports=C},ZX9x:function(H,k,d){"use strict";d.d(k,"a",function(){return I}),d.d(k,"b",function(){return R});var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),b=d("lwsE"),g=d.n(b),f=d("W8MJ"),c=d.n(f),o=d("7W2i"),r=d.n(o),i=d("LQ03"),n=d.n(i),e=d("q1tI"),l=d("TSYQ"),t=d.n(l),a=d("BGR+"),s=d("T1rO"),u=d.n(s),h=d("fEPi"),p=d.n(h),m=d("DFhj"),v=d.n(m),y=d("PKem"),E=d("H84U"),T=function(F){return!isNaN(parseFloat(F))&&isFinite(F)},w=T,S=function(D,F){var M={};for(var U in D)Object.prototype.hasOwnProperty.call(D,U)&&F.indexOf(U)<0&&(M[U]=D[U]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,U=Object.getOwnPropertySymbols(D);B<U.length;B++)F.indexOf(U[B])<0&&Object.prototype.propertyIsEnumerable.call(D,U[B])&&(M[U[B]]=D[U[B]]);return M},_={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},I=e.createContext({}),L=function(){var D=0;return function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return D+=1,"".concat(F).concat(D)}}(),N=function(D){r()(M,D);var F=n()(M);function M(U){var B;g()(this,M),B=F.call(this,U),B.responsiveHandler=function(V){B.setState({below:V.matches});var z=B.props.onBreakpoint,J=B.state.collapsed;z&&z(V.matches),J!==V.matches&&B.setCollapsed(V.matches,"responsive")},B.setCollapsed=function(V,z){"collapsed"in B.props||B.setState({collapsed:V});var J=B.props.onCollapse;J&&J(V,z)},B.toggle=function(){var V=!B.state.collapsed;B.setCollapsed(V,"clickTrigger")},B.renderSider=function(V){var z,J=V.getPrefixCls,q=B.props,de=q.prefixCls,ae=q.className,ve=q.theme,_e=q.collapsible,Ie=q.reverseArrow,He=q.trigger,me=q.style,ke=q.width,se=q.collapsedWidth,te=q.zeroWidthTriggerStyle,Ge=q.children,oe=S(q,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),Y=B.state,G=Y.collapsed,Q=Y.below,ye=J("layout-sider",de),ce=Object(a.default)(oe,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Te=G?se:ke,Se=w(Te)?"".concat(Te,"px"):String(Te),le=parseFloat(String(se||0))===0?e.createElement("span",{onClick:B.toggle,className:t()("".concat(ye,"-zero-width-trigger"),"".concat(ye,"-zero-width-trigger-").concat(Ie?"right":"left")),style:te},He||e.createElement(u.a,null)):null,fe={expanded:Ie?e.createElement(p.a,null):e.createElement(v.a,null),collapsed:Ie?e.createElement(v.a,null):e.createElement(p.a,null)},Ee=G?"collapsed":"expanded",Ve=fe[Ee],vt=He!==null?le||e.createElement("div",{className:"".concat(ye,"-trigger"),onClick:B.toggle,style:{width:Se}},He||Ve):null,et=A()(A()({},me),{flex:"0 0 ".concat(Se),maxWidth:Se,minWidth:Se,width:Se}),Oe=t()(ae,ye,"".concat(ye,"-").concat(ve),(z={},x()(z,"".concat(ye,"-collapsed"),!!G),x()(z,"".concat(ye,"-has-trigger"),_e&&He!==null&&!le),x()(z,"".concat(ye,"-below"),!!Q),x()(z,"".concat(ye,"-zero-width"),parseFloat(Se)===0),z));return e.createElement("aside",A()({className:Oe},ce,{style:et}),e.createElement("div",{className:"".concat(ye,"-children")},Ge),_e||Q&&le?vt:null)},B.uniqueId=L("ant-sider-");var j;typeof window!="undefined"&&(j=window.matchMedia),j&&U.breakpoint&&U.breakpoint in _&&(B.mql=j("(max-width: ".concat(_[U.breakpoint],")")));var W;return"collapsed"in U?W=U.collapsed:W=U.defaultCollapsed,B.state={collapsed:W,below:!1},B}return c()(M,[{key:"componentDidMount",value:function(){var B;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(B=this.props)===null||B===void 0||B.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var B,j;(B=this===null||this===void 0?void 0:this.mql)===null||B===void 0||B.removeListener(this.responsiveHandler),(j=this.props)===null||j===void 0||j.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var B=this.state.collapsed,j=this.props.collapsedWidth;return e.createElement(I.Provider,{value:{siderCollapsed:B,collapsedWidth:j}},e.createElement(E.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(B){return"collapsed"in B?{collapsed:B.collapsed}:null}}]),M}(e.Component);N.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var R=function(D){r()(M,D);var F=n()(M);function M(){return g()(this,M),F.apply(this,arguments)}return c()(M,[{key:"render",value:function(){var B=this;return e.createElement(y.a.Consumer,null,function(j){return e.createElement(N,A()({},j,B.props))})}}]),M}(e.Component)},ZYIC:function(H,k,d){var O=d("zM3Q"),x={seriesType:"lines",plan:O(),reset:function(C){var A=C.coordinateSystem,b=C.get("polyline"),g=C.pipelineContext.large;function f(c,o){var r=[];if(g){var i,n=c.end-c.start;if(b){for(var e=0,l=c.start;l<c.end;l++)e+=C.getLineCoordsCount(l);i=new Float32Array(n+e*2)}else i=new Float32Array(n*4);for(var t=0,a=[],l=c.start;l<c.end;l++){var s=C.getLineCoords(l,r);b&&(i[t++]=s);for(var u=0;u<s;u++)a=A.dataToPoint(r[u],!1,a),i[t++]=a[0],i[t++]=a[1]}o.setLayout("linesPoints",i)}else for(var l=c.start;l<c.end;l++){var h=o.getItemModel(l),s=C.getLineCoords(l,r),p=[];if(b)for(var m=0;m<s;m++)p.push(A.dataToPoint(r[m]));else{p[0]=A.dataToPoint(r[0]),p[1]=A.dataToPoint(r[1]);var v=h.get("lineStyle.curveness");+v&&(p[2]=[(p[0][0]+p[1][0])/2-(p[0][1]-p[1][1])*v,(p[0][1]+p[1][1])/2-(p[1][0]-p[0][0])*v])}o.setItemLayout(l,p)}}return{progress:f}}};H.exports=x},Ze12:function(H,k,d){var O=d("ItGF"),x=d("hOwI"),C=x.buildTransformer,A="___zrEVENTSAVED",b=[];function g(i,n,e,l,t){return f(b,n,l,t,!0)&&f(i,e,b[0],b[1])}function f(i,n,e,l,t){if(n.getBoundingClientRect&&O.domSupported&&!r(n)){var a=n[A]||(n[A]={}),s=c(n,a),u=o(s,a,t);if(u)return u(i,e,l),!0}return!1}function c(i,n){var e=n.markers;if(e)return e;e=n.markers=[];for(var l=["left","right"],t=["top","bottom"],a=0;a<4;a++){var s=document.createElement("div"),u=s.style,h=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",l[h]+":0",t[p]+":0",l[1-h]+":auto",t[1-p]+":auto",""].join("!important;"),i.appendChild(s),e.push(s)}return e}function o(i,n,e){for(var l=e?"invTrans":"trans",t=n[l],a=n.srcCoords,s=!0,u=[],h=[],p=0;p<4;p++){var m=i[p].getBoundingClientRect(),v=2*p,y=m.left,E=m.top;u.push(y,E),s=s&&a&&y===a[v]&&E===a[v+1],h.push(i[p].offsetLeft,i[p].offsetTop)}return s&&t?t:(n.srcCoords=u,n[l]=e?C(h,u):C(u,h))}function r(i){return i.nodeName.toUpperCase()==="CANVAS"}k.transformLocalCoord=g,k.transformCoordWithViewport=f,k.isCanvasEl=r},Zm9Q:function(H,k,d){"use strict";d.d(k,"a",function(){return b});var O=d("q1tI"),x=d.n(O),C=d("TOwV"),A=d.n(C);function b(g){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=[];return x.a.Children.forEach(g,function(o){if(o==null&&!f.keepEmpty)return;Array.isArray(o)?c=c.concat(b(o)):Object(C.isFragment)(o)&&o.props?c=c.concat(b(o.props.children,f)):c.push(o)}),c}},Znkb:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("zTMp"),b=C.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(r,i,n,e){this.axisPointerClass&&A.fixValue(r),b.superApply(this,"render",arguments),g(this,r,i,n,e,!0)},updateAxisPointer:function(r,i,n,e,l){g(this,r,i,n,e,!1)},remove:function(r,i){var n=this._axisPointer;n&&n.remove(i),b.superApply(this,"remove",arguments)},dispose:function(r,i){f(this,i),b.superApply(this,"dispose",arguments)}});function g(r,i,n,e,l,t){var a=b.getAxisPointerClass(r.axisPointerClass);if(!a)return;var s=A.getAxisPointerModel(i);s?(r._axisPointer||(r._axisPointer=new a)).render(i,s,e,t):f(r,e)}function f(r,i,n){var e=r._axisPointer;e&&e.dispose(i,n),r._axisPointer=null}var c=[];b.registerAxisPointerClass=function(r,i){c[r]=i},b.getAxisPointerClass=function(r){return r&&c[r]};var o=b;H.exports=o},"Znn+":function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("9ama"),A=d.n(C)},ZqQs:function(H,k,d){var O=d("bYtY");function x(g){var f=g&&g.timeline;O.isArray(f)||(f=f?[f]:[]),O.each(f,function(c){if(!c)return;C(c)})}function C(g){var f=g.type,c={number:"value",time:"time"};if(c[f]&&(g.axisType=c[f],delete g.type),A(g),b(g,"controlPosition")){var o=g.controlStyle||(g.controlStyle={});b(o,"position")||(o.position=g.controlPosition),o.position==="none"&&!b(o,"show")&&(o.show=!1,delete o.position),delete g.controlPosition}O.each(g.data||[],function(r){O.isObject(r)&&!O.isArray(r)&&(!b(r,"value")&&b(r,"name")&&(r.value=r.name),A(r))})}function A(g){var f=g.itemStyle||(g.itemStyle={}),c=f.emphasis||(f.emphasis={}),o=g.label||g.label||{},r=o.normal||(o.normal={}),i={normal:1,emphasis:1};O.each(o,function(n,e){!i[e]&&!b(r,e)&&(r[e]=n)}),c.label&&!b(o,"emphasis")&&(o.emphasis=c.label,delete c.label)}function b(g,f){return g.hasOwnProperty(f)}H.exports=x},Zss7:function(H,k,d){var O;(function(x){var C=/^\s+/,A=/\s+$/,b=0,g=x.round,f=x.min,c=x.max,o=x.random;function r(me,ke){if(me=me||"",ke=ke||{},me instanceof r)return me;if(!(this instanceof r))return new r(me,ke);var se=i(me);this._originalInput=me,this._r=se.r,this._g=se.g,this._b=se.b,this._a=se.a,this._roundA=g(100*this._a)/100,this._format=ke.format||se.format,this._gradientType=ke.gradientType,this._r<1&&(this._r=g(this._r)),this._g<1&&(this._g=g(this._g)),this._b<1&&(this._b=g(this._b)),this._ok=se.ok,this._tc_id=b++}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 ke=this.toRgb();return(ke.r*299+ke.g*587+ke.b*114)/1e3},getLuminance:function(){var ke=this.toRgb(),se,te,Ge,oe,Y,G;return se=ke.r/255,te=ke.g/255,Ge=ke.b/255,se<=.03928?oe=se/12.92:oe=x.pow((se+.055)/1.055,2.4),te<=.03928?Y=te/12.92:Y=x.pow((te+.055)/1.055,2.4),Ge<=.03928?G=Ge/12.92:G=x.pow((Ge+.055)/1.055,2.4),.2126*oe+.7152*Y+.0722*G},setAlpha:function(ke){return this._a=U(ke),this._roundA=g(100*this._a)/100,this},toHsv:function(){var ke=t(this._r,this._g,this._b);return{h:ke.h*360,s:ke.s,v:ke.v,a:this._a}},toHsvString:function(){var ke=t(this._r,this._g,this._b),se=g(ke.h*360),te=g(ke.s*100),Ge=g(ke.v*100);return this._a==1?"hsv("+se+", "+te+"%, "+Ge+"%)":"hsva("+se+", "+te+"%, "+Ge+"%, "+this._roundA+")"},toHsl:function(){var ke=e(this._r,this._g,this._b);return{h:ke.h*360,s:ke.s,l:ke.l,a:this._a}},toHslString:function(){var ke=e(this._r,this._g,this._b),se=g(ke.h*360),te=g(ke.s*100),Ge=g(ke.l*100);return this._a==1?"hsl("+se+", "+te+"%, "+Ge+"%)":"hsla("+se+", "+te+"%, "+Ge+"%, "+this._roundA+")"},toHex:function(ke){return s(this._r,this._g,this._b,ke)},toHexString:function(ke){return"#"+this.toHex(ke)},toHex8:function(ke){return u(this._r,this._g,this._b,this._a,ke)},toHex8String:function(ke){return"#"+this.toHex8(ke)},toRgb:function(){return{r:g(this._r),g:g(this._g),b:g(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+g(this._r)+", "+g(this._g)+", "+g(this._b)+")":"rgba("+g(this._r)+", "+g(this._g)+", "+g(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:g(B(this._r,255)*100)+"%",g:g(B(this._g,255)*100)+"%",b:g(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+g(B(this._r,255)*100)+"%, "+g(B(this._g,255)*100)+"%, "+g(B(this._b,255)*100)+"%)":"rgba("+g(B(this._r,255)*100)+"%, "+g(B(this._g,255)*100)+"%, "+g(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:F[s(this._r,this._g,this._b,!0)]||!1},toFilter:function(ke){var se="#"+h(this._r,this._g,this._b,this._a),te=se,Ge=this._gradientType?"GradientType = 1, ":"";if(ke){var oe=r(ke);te="#"+h(oe._r,oe._g,oe._b,oe._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ge+"startColorstr="+se+",endColorstr="+te+")"},toString:function(ke){var se=!!ke;ke=ke||this._format;var te=!1,Ge=this._a<1&&this._a>=0,oe=!se&&Ge&&(ke==="hex"||ke==="hex6"||ke==="hex3"||ke==="hex4"||ke==="hex8"||ke==="name");return oe?ke==="name"&&this._a===0?this.toName():this.toRgbString():(ke==="rgb"&&(te=this.toRgbString()),ke==="prgb"&&(te=this.toPercentageRgbString()),(ke==="hex"||ke==="hex6")&&(te=this.toHexString()),ke==="hex3"&&(te=this.toHexString(!0)),ke==="hex4"&&(te=this.toHex8String(!0)),ke==="hex8"&&(te=this.toHex8String()),ke==="name"&&(te=this.toName()),ke==="hsl"&&(te=this.toHslString()),ke==="hsv"&&(te=this.toHsvString()),te||this.toHexString())},clone:function(){return r(this.toString())},_applyModification:function(ke,se){var te=ke.apply(null,[this].concat([].slice.call(se)));return this._r=te._r,this._g=te._g,this._b=te._b,this.setAlpha(te._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(T,arguments)},desaturate:function(){return this._applyModification(p,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(ke,se){return ke.apply(null,[this].concat([].slice.call(se)))},analogous:function(){return this._applyCombination(N,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(R,arguments)},splitcomplement:function(){return this._applyCombination(L,arguments)},triad:function(){return this._applyCombination(_,arguments)},tetrad:function(){return this._applyCombination(I,arguments)}},r.fromRatio=function(me,ke){if(typeof me=="object"){var se={};for(var te in me)me.hasOwnProperty(te)&&(te==="a"?se[te]=me[te]:se[te]=q(me[te]));me=se}return r(me,ke)};function i(me){var ke={r:0,g:0,b:0},se=1,te=null,Ge=null,oe=null,Y=!1,G=!1;return typeof me=="string"&&(me=Ie(me)),typeof me=="object"&&(_e(me.r)&&_e(me.g)&&_e(me.b)?(ke=n(me.r,me.g,me.b),Y=!0,G=String(me.r).substr(-1)==="%"?"prgb":"rgb"):_e(me.h)&&_e(me.s)&&_e(me.v)?(te=q(me.s),Ge=q(me.v),ke=a(me.h,te,Ge),Y=!0,G="hsv"):_e(me.h)&&_e(me.s)&&_e(me.l)&&(te=q(me.s),oe=q(me.l),ke=l(me.h,te,oe),Y=!0,G="hsl"),me.hasOwnProperty("a")&&(se=me.a)),se=U(se),{ok:Y,format:me.format||G,r:f(255,c(ke.r,0)),g:f(255,c(ke.g,0)),b:f(255,c(ke.b,0)),a:se}}function n(me,ke,se){return{r:B(me,255)*255,g:B(ke,255)*255,b:B(se,255)*255}}function e(me,ke,se){me=B(me,255),ke=B(ke,255),se=B(se,255);var te=c(me,ke,se),Ge=f(me,ke,se),oe,Y,G=(te+Ge)/2;if(te==Ge)oe=Y=0;else{var Q=te-Ge;Y=G>.5?Q/(2-te-Ge):Q/(te+Ge);switch(te){case me:oe=(ke-se)/Q+(ke<se?6:0);break;case ke:oe=(se-me)/Q+2;break;case se:oe=(me-ke)/Q+4;break}oe/=6}return{h:oe,s:Y,l:G}}function l(me,ke,se){var te,Ge,oe;me=B(me,360),ke=B(ke,100),se=B(se,100);function Y(ye,ce,Te){return Te<0&&(Te+=1),Te>1&&(Te-=1),Te<1/6?ye+(ce-ye)*6*Te:Te<1/2?ce:Te<2/3?ye+(ce-ye)*(2/3-Te)*6:ye}if(ke===0)te=Ge=oe=se;else{var G=se<.5?se*(1+ke):se+ke-se*ke,Q=2*se-G;te=Y(Q,G,me+1/3),Ge=Y(Q,G,me),oe=Y(Q,G,me-1/3)}return{r:te*255,g:Ge*255,b:oe*255}}function t(me,ke,se){me=B(me,255),ke=B(ke,255),se=B(se,255);var te=c(me,ke,se),Ge=f(me,ke,se),oe,Y,G=te,Q=te-Ge;if(Y=te===0?0:Q/te,te==Ge)oe=0;else{switch(te){case me:oe=(ke-se)/Q+(ke<se?6:0);break;case ke:oe=(se-me)/Q+2;break;case se:oe=(me-ke)/Q+4;break}oe/=6}return{h:oe,s:Y,v:G}}function a(me,ke,se){me=B(me,360)*6,ke=B(ke,100),se=B(se,100);var te=x.floor(me),Ge=me-te,oe=se*(1-ke),Y=se*(1-Ge*ke),G=se*(1-(1-Ge)*ke),Q=te%6,ye=[se,Y,oe,oe,G,se][Q],ce=[G,se,se,Y,oe,oe][Q],Te=[oe,oe,G,se,se,Y][Q];return{r:ye*255,g:ce*255,b:Te*255}}function s(me,ke,se,te){var Ge=[J(g(me).toString(16)),J(g(ke).toString(16)),J(g(se).toString(16))];return te&&Ge[0].charAt(0)==Ge[0].charAt(1)&&Ge[1].charAt(0)==Ge[1].charAt(1)&&Ge[2].charAt(0)==Ge[2].charAt(1)?Ge[0].charAt(0)+Ge[1].charAt(0)+Ge[2].charAt(0):Ge.join("")}function u(me,ke,se,te,Ge){var oe=[J(g(me).toString(16)),J(g(ke).toString(16)),J(g(se).toString(16)),J(de(te))];return Ge&&oe[0].charAt(0)==oe[0].charAt(1)&&oe[1].charAt(0)==oe[1].charAt(1)&&oe[2].charAt(0)==oe[2].charAt(1)&&oe[3].charAt(0)==oe[3].charAt(1)?oe[0].charAt(0)+oe[1].charAt(0)+oe[2].charAt(0)+oe[3].charAt(0):oe.join("")}function h(me,ke,se,te){var Ge=[J(de(te)),J(g(me).toString(16)),J(g(ke).toString(16)),J(g(se).toString(16))];return Ge.join("")}r.equals=function(me,ke){return!me||!ke?!1:r(me).toRgbString()==r(ke).toRgbString()},r.random=function(){return r.fromRatio({r:o(),g:o(),b:o()})};function p(me,ke){ke=ke===0?0:ke||10;var se=r(me).toHsl();return se.s-=ke/100,se.s=j(se.s),r(se)}function m(me,ke){ke=ke===0?0:ke||10;var se=r(me).toHsl();return se.s+=ke/100,se.s=j(se.s),r(se)}function v(me){return r(me).desaturate(100)}function y(me,ke){ke=ke===0?0:ke||10;var se=r(me).toHsl();return se.l+=ke/100,se.l=j(se.l),r(se)}function E(me,ke){ke=ke===0?0:ke||10;var se=r(me).toRgb();return se.r=c(0,f(255,se.r-g(255*-(ke/100)))),se.g=c(0,f(255,se.g-g(255*-(ke/100)))),se.b=c(0,f(255,se.b-g(255*-(ke/100)))),r(se)}function T(me,ke){ke=ke===0?0:ke||10;var se=r(me).toHsl();return se.l-=ke/100,se.l=j(se.l),r(se)}function w(me,ke){var se=r(me).toHsl(),te=(se.h+ke)%360;return se.h=te<0?360+te:te,r(se)}function S(me){var ke=r(me).toHsl();return ke.h=(ke.h+180)%360,r(ke)}function _(me){var ke=r(me).toHsl(),se=ke.h;return[r(me),r({h:(se+120)%360,s:ke.s,l:ke.l}),r({h:(se+240)%360,s:ke.s,l:ke.l})]}function I(me){var ke=r(me).toHsl(),se=ke.h;return[r(me),r({h:(se+90)%360,s:ke.s,l:ke.l}),r({h:(se+180)%360,s:ke.s,l:ke.l}),r({h:(se+270)%360,s:ke.s,l:ke.l})]}function L(me){var ke=r(me).toHsl(),se=ke.h;return[r(me),r({h:(se+72)%360,s:ke.s,l:ke.l}),r({h:(se+216)%360,s:ke.s,l:ke.l})]}function N(me,ke,se){ke=ke||6,se=se||30;var te=r(me).toHsl(),Ge=360/se,oe=[r(me)];for(te.h=(te.h-(Ge*ke>>1)+720)%360;--ke;)te.h=(te.h+Ge)%360,oe.push(r(te));return oe}function R(me,ke){ke=ke||6;for(var se=r(me).toHsv(),te=se.h,Ge=se.s,oe=se.v,Y=[],G=1/ke;ke--;)Y.push(r({h:te,s:Ge,v:oe})),oe=(oe+G)%1;return Y}r.mix=function(me,ke,se){se=se===0?0:se||50;var te=r(me).toRgb(),Ge=r(ke).toRgb(),oe=se/100,Y={r:(Ge.r-te.r)*oe+te.r,g:(Ge.g-te.g)*oe+te.g,b:(Ge.b-te.b)*oe+te.b,a:(Ge.a-te.a)*oe+te.a};return r(Y)},r.readability=function(me,ke){var se=r(me),te=r(ke);return(x.max(se.getLuminance(),te.getLuminance())+.05)/(x.min(se.getLuminance(),te.getLuminance())+.05)},r.isReadable=function(me,ke,se){var te=r.readability(me,ke),Ge,oe;oe=!1,Ge=He(se);switch(Ge.level+Ge.size){case"AAsmall":case"AAAlarge":oe=te>=4.5;break;case"AAlarge":oe=te>=3;break;case"AAAsmall":oe=te>=7;break}return oe},r.mostReadable=function(me,ke,se){var te=null,Ge=0,oe,Y,G,Q;se=se||{},Y=se.includeFallbackColors,G=se.level,Q=se.size;for(var ye=0;ye<ke.length;ye++)oe=r.readability(me,ke[ye]),oe>Ge&&(Ge=oe,te=r(ke[ye]));return r.isReadable(me,te,{level:G,size:Q})||!Y?te:(se.includeFallbackColors=!1,r.mostReadable(me,["#fff","#000"],se))};var D=r.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},F=r.hexNames=M(D);function M(me){var ke={};for(var se in me)me.hasOwnProperty(se)&&(ke[me[se]]=se);return ke}function U(me){return me=parseFloat(me),(isNaN(me)||me<0||me>1)&&(me=1),me}function B(me,ke){V(me)&&(me="100%");var se=z(me);return me=f(ke,c(0,parseFloat(me))),se&&(me=parseInt(me*ke,10)/100),x.abs(me-ke)<1e-6?1:me%ke/parseFloat(ke)}function j(me){return f(1,c(0,me))}function W(me){return parseInt(me,16)}function V(me){return typeof me=="string"&&me.indexOf(".")!=-1&&parseFloat(me)===1}function z(me){return typeof me=="string"&&me.indexOf("%")!=-1}function J(me){return me.length==1?"0"+me:""+me}function q(me){return me<=1&&(me=me*100+"%"),me}function de(me){return x.round(parseFloat(me)*255).toString(16)}function ae(me){return W(me)/255}var ve=function(){var me="[-\\+]?\\d+%?",ke="[-\\+]?\\d*\\.\\d+%?",se="(?:"+ke+")|(?:"+me+")",te="[\\s|\\(]+("+se+")[,|\\s]+("+se+")[,|\\s]+("+se+")\\s*\\)?",Ge="[\\s|\\(]+("+se+")[,|\\s]+("+se+")[,|\\s]+("+se+")[,|\\s]+("+se+")\\s*\\)?";return{CSS_UNIT:new RegExp(se),rgb:new RegExp("rgb"+te),rgba:new RegExp("rgba"+Ge),hsl:new RegExp("hsl"+te),hsla:new RegExp("hsla"+Ge),hsv:new RegExp("hsv"+te),hsva:new RegExp("hsva"+Ge),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 _e(me){return!!ve.CSS_UNIT.exec(me)}function Ie(me){me=me.replace(C,"").replace(A,"").toLowerCase();var ke=!1;if(D[me])me=D[me],ke=!0;else if(me=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var se;return(se=ve.rgb.exec(me))?{r:se[1],g:se[2],b:se[3]}:(se=ve.rgba.exec(me))?{r:se[1],g:se[2],b:se[3],a:se[4]}:(se=ve.hsl.exec(me))?{h:se[1],s:se[2],l:se[3]}:(se=ve.hsla.exec(me))?{h:se[1],s:se[2],l:se[3],a:se[4]}:(se=ve.hsv.exec(me))?{h:se[1],s:se[2],v:se[3]}:(se=ve.hsva.exec(me))?{h:se[1],s:se[2],v:se[3],a:se[4]}:(se=ve.hex8.exec(me))?{r:W(se[1]),g:W(se[2]),b:W(se[3]),a:ae(se[4]),format:ke?"name":"hex8"}:(se=ve.hex6.exec(me))?{r:W(se[1]),g:W(se[2]),b:W(se[3]),format:ke?"name":"hex"}:(se=ve.hex4.exec(me))?{r:W(se[1]+""+se[1]),g:W(se[2]+""+se[2]),b:W(se[3]+""+se[3]),a:ae(se[4]+""+se[4]),format:ke?"name":"hex8"}:(se=ve.hex3.exec(me))?{r:W(se[1]+""+se[1]),g:W(se[2]+""+se[2]),b:W(se[3]+""+se[3]),format:ke?"name":"hex"}:!1}function He(me){var ke,se;return me=me||{level:"AA",size:"small"},ke=(me.level||"AA").toUpperCase(),se=(me.size||"small").toLowerCase(),ke!=="AA"&&ke!=="AAA"&&(ke="AA"),se!=="small"&&se!=="large"&&(se="small"),{level:ke,size:se}}H.exports?H.exports=r:!(O=function(){return r}.call(k,d,k,H),O!==void 0&&(H.exports=O))})(Math)},Zvw2:function(H,k,d){var O=d("bYtY"),x=d("hM6l"),C=function(b,g,f,c,o){x.call(this,b,g,f),this.type=c||"value",this.position=o||"bottom",this.orient=null};C.prototype={constructor:C,model:null,isHorizontal:function(){var b=this.position;return b==="top"||b==="bottom"},pointToData:function(b,g){return this.coordinateSystem.pointToData(b,g)[0]},toGlobalCoord:null,toLocalCoord:null},O.inherits(C,x);var A=C;H.exports=A},a7Wl:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},a9QJ:function(H,k){var d={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function O(x,C){if(x==="world"){var A=d[C.name];if(A){var b=C.center;b[0]=A[0],b[1]=A[1]}}}H.exports=O},aHsQ:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("6D9b"),A=d.n(C)},aKvl:function(H,k,d){var O=d("Sj9i"),x=O.quadraticProjectPoint;function C(A,b,g,f,c,o,r,i,n){if(r===0)return!1;var e=r;if(n>b+e&&n>f+e&&n>o+e||n<b-e&&n<f-e&&n<o-e||i>A+e&&i>g+e&&i>c+e||i<A-e&&i<g-e&&i<c-e)return!1;var l=x(A,b,g,f,c,o,i,n,null);return l<=e/2}k.containStroke=C},aTJb:function(H,k,d){var O=d("bLfw");O.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(H,k,d){var O=d("3gBT"),x=d("ItGF"),C=d("bYtY"),A=d("0s+r"),b=d("r6Bn"),g=d("7SHv"),f=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 o=!x.canvasSupported,r={canvas:g},i={},n="4.3.1";function e(h,p){var m=new u(O(),h,p);return i[m.id]=m,m}function l(h){if(h)h.dispose();else{for(var p in i)i.hasOwnProperty(p)&&i[p].dispose();i={}}return this}function t(h){return i[h]}function a(h,p){r[h]=p}function s(h){delete i[h]}var u=function(p,m,v){v=v||{},this.dom=m,this.id=p;var y=this,E=new b,T=v.renderer;if(o){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 w=new r[T](m,E,v,p);this.storage=E,this.painter=w;var S=!x.node&&!x.worker?new c(w.getViewportRoot(),w.root):null;this.handler=new A(E,w,S,w.root),this.animation=new f({stage:{update:C.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var _=E.delFromStorage,I=E.addToStorage;E.delFromStorage=function(L){_.call(E,L),L&&L.removeSelfFromZr(y)},E.addToStorage=function(L){I.call(E,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,m){this.painter.configLayer&&this.painter.configLayer(p,m),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,m){if(this.painter.addHover){var v=this.painter.addHover(p,m);return this.refreshHover(),v}},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,m){return this.painter.pathToImage(p,m)},setCursorStyle:function(p){this.handler.setCursorStyle(p)},findHover:function(p,m){return this.handler.findHover(p,m)},on:function(p,m,v){this.handler.on(p,m,v)},off:function(p,m){this.handler.off(p,m)},trigger:function(p,m){this.handler.trigger(p,m)},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,s(this.id)}},k.version=n,k.init=e,k.dispose=l,k.getInstance=t,k.registerPainter=a},aX7z:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("GMDS"),b=d("ieMj"),g=d("4NgU"),f=d("OELB"),c=d("nVfU"),o=c.prepareLayoutBarSeries,r=c.makeColumnLayout,i=c.retrieveColumnLayout,n=d("mFDi");d("IWp7"),d("jCoz");function e(E,T){var w=E.type,S=T.getMin(),_=T.getMax(),I=E.getExtent(),L,N,R;w==="ordinal"?L=T.getCategories().length:(N=T.get("boundaryGap"),C.isArray(N)||(N=[N||0,N||0]),typeof N[0]=="boolean"&&(N=[0,0]),N[0]=f.parsePercent(N[0],1),N[1]=f.parsePercent(N[1],1),R=I[1]-I[0]||Math.abs(I[0])),S==="dataMin"?S=I[0]:typeof S=="function"&&(S=S({min:I[0],max:I[1]})),_==="dataMax"?_=I[1]:typeof _=="function"&&(_=_({min:I[0],max:I[1]}));var D=S!=null,F=_!=null;S==null&&(S=w==="ordinal"?L?0:NaN:I[0]-N[0]*R),_==null&&(_=w==="ordinal"?L?L-1:NaN:I[1]+N[1]*R),(S==null||!isFinite(S))&&(S=NaN),(_==null||!isFinite(_))&&(_=NaN),E.setBlank(C.eqNaN(S)||C.eqNaN(_)||w==="ordinal"&&!E.getOrdinalMeta().categories.length),T.getNeedCrossZero()&&(S>0&&_>0&&!D&&(S=0),S<0&&_<0&&!F&&(_=0));var M=T.ecModel;if(M&&w==="time"){var U=o("bar",M),B;if(C.each(U,function(V){B|=V.getBaseAxis()===T.axis}),B){var j=r(U),W=l(S,_,T,j);S=W.min,_=W.max}}return{extent:[S,_],fixMin:D,fixMax:F}}function l(E,T,w,S){var _=w.axis.getExtent(),I=_[1]-_[0],L=i(S,w.axis);if(L===void 0)return{min:E,max:T};var N=Infinity;C.each(L,function(B){N=Math.min(B.offset,N)});var R=-Infinity;C.each(L,function(B){R=Math.max(B.offset+B.width,R)}),N=Math.abs(N),R=Math.abs(R);var D=N+R,F=T-E,M=1-(N+R)/I,U=F/M-F;return T+=U*(R/D),E-=U*(N/D),{min:E,max:T}}function t(E,T){var w=e(E,T),S=w.extent,_=T.get("splitNumber");E.type==="log"&&(E.base=T.get("logBase"));var I=E.type;E.setExtent(S[0],S[1]),E.niceExtent({splitNumber:_,fixMin:w.fixMin,fixMax:w.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&&(E.setInterval&&E.setInterval(L))}function a(E,T){if(T=T||E.get("type"),T)switch(T){case"category":return new A(E.getOrdinalMeta?E.getOrdinalMeta():E.getCategories(),[Infinity,-Infinity]);case"value":return new b;default:return(g.getClass(T)||b).create(E)}}function s(E){var T=E.scale.getExtent(),w=T[0],S=T[1];return!(w>0&&S>0||w<0&&S<0)}function u(E){var T=E.getLabelModel().get("formatter"),w=E.type==="category"?E.scale.getExtent()[0]:null;return typeof T=="string"?(T=function(S){return function(_){return _=E.scale.getLabel(_),S.replace("{value}",_!=null?_:"")}}(T),T):typeof T=="function"?function(S,_){return w!=null&&(_=S-w),T(h(E,S),_)}:function(S){return E.scale.getLabel(S)}}function h(E,T){return E.type==="category"?E.scale.getLabel(T):T}function p(E){var T=E.model,w=E.scale;if(!T.get("axisLabel.show")||w.isBlank())return;var S=E.type==="category",_,I,L=w.getExtent();S?I=w.count():(_=w.getTicks(),I=_.length);var N=E.getLabelModel(),R=u(E),D,F=1;I>40&&(F=Math.ceil(I/40));for(var M=0;M<I;M+=F){var U=_?_[M]:L[0]+M,B=R(U),j=N.getTextRect(B),W=m(j,N.get("rotate")||0);D?D.union(W):D=W}return D}function m(E,T){var w=T*Math.PI/180,S=E.plain(),_=S.width,I=S.height,L=_*Math.cos(w)+I*Math.sin(w),N=_*Math.sin(w)+I*Math.cos(w),R=new n(S.x,S.y,L,N);return R}function v(E){var T=E.get("interval");return T==null?"auto":T}function y(E){return E.type==="category"&&v(E.getLabelModel())===0}k.getScaleExtent=e,k.niceScaleExtent=t,k.createScaleByModel=a,k.ifAxisCrossZero=s,k.makeLabelFormatter=u,k.getAxisRawValue=h,k.estimateLabelUnionRect=p,k.getOptionCategoryInterval=v,k.shouldShowAllLabels=y},"af/B":function(H,k,d){var O=d("bYtY"),x=O.each,C=O.map,A=O.isFunction,b=O.createHashMap,g=O.noop,f=d("9H2F"),c=f.createTask,o=d("iRjW"),r=o.getUID,i=d("fmMI"),n=d("hD7B"),e=d("4NO4"),l=e.normalizeToArray;function t(B,j,W,V){this.ecInstance=B,this.api=j,this.unfinished;var W=this._dataProcessorHandlers=W.slice(),V=this._visualHandlers=V.slice();this._allHandlers=W.concat(V),this._stageTaskMap=b()}var a=t.prototype;a.restoreData=function(B,j){B.restoreData(j),this._stageTaskMap.each(function(W){var V=W.overallTask;V&&V.dirty()})},a.getPerformArgs=function(B,j){if(!B.__pipeline)return;var W=this._pipelineMap.get(B.__pipeline.id),V=W.context,z=!j&&W.progressiveEnabled&&(!V||V.progressiveRender)&&B.__idxInPipeline>W.blockIndex,J=z?W.step:null,q=V&&V.modDataCount,de=q!=null?Math.ceil(q/J):null;return{step:J,modBy:de,modDataCount:q}},a.getPipeline=function(B){return this._pipelineMap.get(B)},a.updateStreamModes=function(B,j){var W=this._pipelineMap.get(B.uid),V=B.getData(),z=V.count(),J=W.progressiveEnabled&&j.incrementalPrepareRender&&z>=W.threshold,q=B.get("large")&&z>=B.get("largeThreshold"),de=B.get("progressiveChunkMode")==="mod"?z:null;B.pipelineContext=W.context={progressiveRender:J,modDataCount:de,large:q}},a.restorePipelines=function(B){var j=this,W=j._pipelineMap=b();B.eachSeries(function(V){var z=V.getProgressive(),J=V.uid;W.set(J,{id:J,head:null,tail:null,threshold:V.getProgressiveThreshold(),progressiveEnabled:z&&!(V.preventIncremental&&V.preventIncremental()),blockIndex:-1,step:Math.round(z||700),count:0}),L(j,V,V.dataTask)})},a.prepareStageTasks=function(){var B=this._stageTaskMap,j=this.ecInstance.getModel(),W=this.api;x(this._allHandlers,function(V){var z=B.get(V.uid)||B.set(V.uid,[]);V.reset&&h(this,V,z,j,W),V.overallReset&&p(this,V,z,j,W)},this)},a.prepareView=function(B,j,W,V){var z=B.renderTask,J=z.context;J.model=j,J.ecModel=W,J.api=V,z.__block=!B.incrementalPrepareRender,L(this,j,z)},a.performDataProcessorTasks=function(B,j){s(this,this._dataProcessorHandlers,B,j,{block:!0})},a.performVisualTasks=function(B,j,W){s(this,this._visualHandlers,B,j,W)};function s(B,j,W,V,z){z=z||{};var J;x(j,function(de,ae){if(z.visualType&&z.visualType!==de.visualType)return;var ve=B._stageTaskMap.get(de.uid),_e=ve.seriesTaskMap,Ie=ve.overallTask;if(Ie){var He,me=Ie.agentStubMap;me.each(function(se){q(z,se)&&(se.dirty(),He=!0)}),He&&Ie.dirty(),u(Ie,V);var ke=B.getPerformArgs(Ie,z.block);me.each(function(se){se.perform(ke)}),J|=Ie.perform(ke)}else _e&&_e.each(function(se,te){q(z,se)&&se.dirty();var Ge=B.getPerformArgs(se,z.block);Ge.skip=!de.performRawSeries&&W.isSeriesFiltered(se.context.model),u(se,V),J|=se.perform(Ge)})});function q(de,ae){return de.setDirty&&(!de.dirtyMap||de.dirtyMap.get(ae.__pipeline.id))}B.unfinished|=J}a.performSeriesTasks=function(B){var j;B.eachSeries(function(W){j|=W.dataTask.perform()}),this.unfinished|=j},a.plan=function(){this._pipelineMap.each(function(B){var j=B.tail;do{if(j.__block){B.blockIndex=j.__idxInPipeline;break}j=j.getUpstream()}while(j)})};var u=a.updatePayload=function(B,j){j!=="remain"&&(B.context.payload=j)};function h(B,j,W,V,z){var J=W.seriesTaskMap||(W.seriesTaskMap=b()),q=j.seriesType,de=j.getTargetSeries;j.createOnAllSeries?V.eachRawSeries(ae):q?V.eachRawSeriesByType(q,ae):de&&de(V,z).each(ae);function ae(_e){var Ie=_e.uid,He=J.get(Ie)||J.set(Ie,c({plan:T,reset:w,count:I}));He.context={model:_e,ecModel:V,api:z,useClearVisual:j.isVisual&&!j.isLayout,plan:j.plan,reset:j.reset,scheduler:B},L(B,_e,He)}var ve=B._pipelineMap;J.each(function(_e,Ie){ve.get(Ie)||(_e.dispose(),J.removeKey(Ie))})}function p(B,j,W,V,z){var J=W.overallTask=W.overallTask||c({reset:m});J.context={ecModel:V,api:z,overallReset:j.overallReset,scheduler:B};var q=J.agentStubMap=J.agentStubMap||b(),de=j.seriesType,ae=j.getTargetSeries,ve=!0,_e=j.modifyOutputEnd;de?V.eachRawSeriesByType(de,Ie):ae?ae(V,z).each(Ie):(ve=!1,x(V.getSeries(),Ie));function Ie(me){var ke=me.uid,se=q.get(ke);se||(se=q.set(ke,c({reset:v,onDirty:E})),J.dirty()),se.context={model:me,overallProgress:ve,modifyOutputEnd:_e},se.agent=J,se.__block=ve,L(B,me,se)}var He=B._pipelineMap;q.each(function(me,ke){He.get(ke)||(me.dispose(),J.dirty(),q.removeKey(ke))})}function m(B){B.overallReset(B.ecModel,B.api,B.payload)}function v(B,j){return B.overallProgress&&y}function y(){this.agent.dirty(),this.getDownstream().dirty()}function E(){this.agent&&this.agent.dirty()}function T(B){return B.plan&&B.plan(B.model,B.ecModel,B.api,B.payload)}function w(B){B.useClearVisual&&B.data.clearAllVisual();var j=B.resetDefines=l(B.reset(B.model,B.ecModel,B.api,B.payload));return j.length>1?C(j,function(W,V){return _(V)}):S}var S=_(0);function _(B){return function(j,W){var V=W.data,z=W.resetDefines[B];if(z&&z.dataEach)for(var J=j.start;J<j.end;J++)z.dataEach(V,J);else z&&z.progress&&z.progress(j,V)}}function I(B){return B.data.count()}function L(B,j,W){var V=j.uid,z=B._pipelineMap.get(V);!z.head&&(z.head=W),z.tail&&z.tail.pipe(W),z.tail=W,W.__idxInPipeline=z.count++,W.__pipeline=z}t.wrapStageHandler=function(B,j){return A(B)&&(B={overallReset:B,seriesType:N(B)}),B.uid=r("stageHandler"),j&&(B.visualType=j),B};function N(B){F=null;try{B(R,D)}catch(j){}return F}var R={},D={},F;M(R,i),M(D,n),R.eachSeriesByType=R.eachRawSeriesByType=function(B){F=B},R.eachComponent=function(B){B.mainType==="series"&&B.subType&&(F=B.subType)};function M(B,j){for(var W in j.prototype)B[W]=g}var U=t;H.exports=U},akwb:function(H,k,d){var O=d("RSch"),x=d("bYtY"),C=d("D9ME"),A=d("QBsz");function b(c,o,r){C.call(this,c,o,r),this._lastFrame=0,this._lastFramePercent=0}var g=b.prototype;g.createLine=function(c,o,r){return new O(c,o,r)},g.updateAnimationPoints=function(c,o){this._points=o;for(var r=[0],i=0,n=1;n<o.length;n++){var e=o[n-1],l=o[n];i+=A.dist(e,l),r.push(i)}if(i===0)return;for(var n=0;n<r.length;n++)r[n]/=i;this._offsets=r,this._length=i},g.getLineLength=function(c){return this._length},g.updateSymbolPosition=function(c){var o=c.__t,r=this._points,i=this._offsets,n=r.length;if(!i)return;var e=this._lastFrame,l;if(o<this._lastFramePercent){var t=Math.min(e+1,n-1);for(l=t;l>=0&&!(i[l]<=o);l--);l=Math.min(l,n-2)}else{for(var l=e;l<n&&!(i[l]>o);l++);l=Math.min(l-1,n-2)}A.lerp(c.position,r[l],r[l+1],(o-i[l])/(i[l+1]-i[l]));var a=r[l+1][0]-r[l][0],s=r[l+1][1]-r[l][1];c.rotation=-Math.atan2(s,a)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=o,c.ignore=!1},x.inherits(b,C);var f=b;H.exports=f},apAg:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("bsht")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="SearchOutlined";var c=A.forwardRef(f);k.default=c},as94:function(H,k,d){var O=d("7aKB"),x=d("3LNs"),C=d("IwbS"),A=d("/y7N"),b=d("Fofx"),g=d("+rIm"),f=d("Znkb"),c=x.extend({makeElOption:function(n,e,l,t,a){var s=l.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var u=s.polar,h=u.getOtherAxis(s),p=h.getExtent(),m;m=s["dataTo"+O.capitalFirst(s.dim)](e);var v=t.get("type");if(v&&v!=="none"){var y=A.buildElStyle(t),E=r[v](s,u,m,p,y);E.style=y,n.graphicKey=E.type,n.pointer=E}var T=t.get("label.margin"),w=o(e,l,t,u,T);A.buildLabelElOption(n,l,t,a,w)}});function o(n,e,l,t,a){var s=e.axis,u=s.dataToCoord(n),h=t.getAngleAxis().getExtent()[0];h=h/180*Math.PI;var p=t.getRadiusAxis().getExtent(),m,v,y;if(s.dim==="radius"){var E=b.create();b.rotate(E,E,h),b.translate(E,E,[t.cx,t.cy]),m=C.applyTransform([u,-a],E);var T=e.getModel("axisLabel").get("rotate")||0,w=g.innerTextLayout(h,T*Math.PI/180,-1);v=w.textAlign,y=w.textVerticalAlign}else{var S=p[1];m=t.coordToPoint([S+a,u]);var _=t.cx,I=t.cy;v=Math.abs(m[0]-_)/S<.3?"center":m[0]>_?"left":"right",y=Math.abs(m[1]-I)/S<.3?"middle":m[1]>I?"top":"bottom"}return{position:m,align:v,verticalAlign:y}}var r={line:function(n,e,l,t,a){return n.dim==="angle"?{type:"Line",shape:A.makeLineShape(e.coordToPoint([t[0],l]),e.coordToPoint([t[1],l]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:l}}},shadow:function(n,e,l,t,a){var s=Math.max(1,n.getBandWidth()),u=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,t[0],t[1],(-l-s/2)*u,(-l+s/2)*u)}:{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,l-s/2,l+s/2,0,Math.PI*2)}}};f.registerAxisPointerClass("PolarAxisPointer",c);var i=c;H.exports=i},b56q:function(H,k,d){},b80e:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("gKaM")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="DoubleLeftOutlined";var c=A.forwardRef(f);k.default=c},b9oc:function(H,k,d){var O=d("bYtY"),x=O.each,C="\0_ec_hist_store";function A(o,r){var i=c(o);x(r,function(n,e){for(var l=i.length-1;l>=0;l--){var t=i[l];if(t[e])break}if(l<0){var a=o.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0];if(a){var s=a.getPercentRange();i[0][e]={dataZoomId:e,start:s[0],end:s[1]}}}}),i.push(r)}function b(o){var r=c(o),i=r[r.length-1];r.length>1&&r.pop();var n={};return x(i,function(e,l){for(var t=r.length-1;t>=0;t--){var e=r[t][l];if(e){n[l]=e;break}}}),n}function g(o){o[C]=null}function f(o){return c(o).length}function c(o){var r=o[C];return r||(r=o[C]=[{}]),r}k.push=A,k.pop=b,k.clear=g,k.count=f},bBKM:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),b=d("+rIm"),g=d("IwbS"),f=["axisLine","axisTickLabel","axisName"],c=C.extendComponentView({type:"radar",render:function(o,r,i){var n=this.group;n.removeAll(),this._buildAxes(o),this._buildSplitLineAndArea(o)},_buildAxes:function(o){var r=o.coordinateSystem,i=r.getIndicatorAxes(),n=A.map(i,function(e){var l=new b(e.model,{position:[r.cx,r.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});A.each(n,function(e){A.each(f,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(o){var r=o.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var n=o.get("shape"),e=o.getModel("splitLine"),l=o.getModel("splitArea"),t=e.getModel("lineStyle"),a=l.getModel("areaStyle"),s=e.get("show"),u=l.get("show"),h=t.get("color"),p=a.get("color");h=A.isArray(h)?h:[h],p=A.isArray(p)?p:[p];var m=[],v=[];function y(U,B,j){var W=j%B.length;return U[W]=U[W]||[],W}if(n==="circle")for(var E=i[0].getTicksCoords(),T=r.cx,w=r.cy,S=0;S<E.length;S++){if(s){var _=y(m,h,S);m[_].push(new g.Circle({shape:{cx:T,cy:w,r:E[S].coord}}))}if(u&&S<E.length-1){var _=y(v,p,S);v[_].push(new g.Ring({shape:{cx:T,cy:w,r0:E[S].coord,r:E[S+1].coord}}))}}else for(var I,L=A.map(i,function(U,B){var j=U.getTicksCoords();return I=I==null?j.length-1:Math.min(j.length-1,I),A.map(j,function(W){return r.coordToPoint(W.coord,B)})}),N=[],S=0;S<=I;S++){for(var R=[],D=0;D<i.length;D++)R.push(L[D][S]);if(R[0]&&R.push(R[0].slice()),s){var _=y(m,h,S);m[_].push(new g.Polyline({shape:{points:R}}))}if(u&&N){var _=y(v,p,S-1);v[_].push(new g.Polygon({shape:{points:R.concat(N)}}))}N=R.slice().reverse()}var F=t.getLineStyle(),M=a.getAreaStyle();A.each(v,function(U,B){this.group.add(g.mergePath(U,{style:A.defaults({stroke:"none",fill:p[B%p.length]},M),silent:!0}))},this),A.each(m,function(U,B){this.group.add(g.mergePath(U,{style:A.defaults({fill:"none",stroke:h[B%h.length]},F),silent:!0}))},this)}});H.exports=c},bBL8:function(H,k,d){var O=d("ProS");d("LPzL"),d("rfSb"),d("JVwQ");var x=d("UnoB"),C=d("cbJ4"),A=d("0/Rx");O.registerLayout(x),O.registerVisual(C),O.registerProcessor(A("themeRiver"))},bE4E:function(H,k,d){},bE4q:function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),b=d("RIqP"),g=d.n(b),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=d("Zm9Q"),i=d("HQEm"),n=d.n(i),e=d("XBQK"),l=d("H84U"),t=function(N,R){var D={};for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&R.indexOf(F)<0&&(D[F]=N[F]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,F=Object.getOwnPropertySymbols(N);M<F.length;M++)R.indexOf(F[M])<0&&Object.prototype.propertyIsEnumerable.call(N,F[M])&&(D[F[M]]=N[F[M]]);return D},a=function(R){var D=R.prefixCls,F=R.separator,M=F===void 0?"/":F,U=R.children,B=R.overlay,j=R.dropdownProps,W=t(R,["prefixCls","separator","children","overlay","dropdownProps"]),V=f.useContext(l.b),z=V.getPrefixCls,J=z("breadcrumb",D),q=function(ve){return B?f.createElement(e.a,x()({overlay:B,placement:"bottomCenter"},j),f.createElement("span",{className:"".concat(J,"-overlay-link")},ve,f.createElement(n.a,null))):ve},de;return"href"in W?de=f.createElement("a",x()({className:"".concat(J,"-link")},W),U):de=f.createElement("span",x()({className:"".concat(J,"-link")},W),U),de=q(de),U?f.createElement("span",null,de,M&&M!==""&&f.createElement("span",{className:"".concat(J,"-separator")},M)):null};a.__ANT_BREADCRUMB_ITEM=!0;var s=a,u=function(R){var D=R.children,F=f.useContext(l.b),M=F.getPrefixCls,U=M("breadcrumb");return f.createElement("span",{className:"".concat(U,"-separator")},D||"/")};u.__ANT_BREADCRUMB_SEPARATOR=!0;var h=u,p=d("BvKs"),m=d("uaoM"),v=d("0n0R"),y=function(N,R){var D={};for(var F in N)Object.prototype.hasOwnProperty.call(N,F)&&R.indexOf(F)<0&&(D[F]=N[F]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,F=Object.getOwnPropertySymbols(N);M<F.length;M++)R.indexOf(F[M])<0&&Object.prototype.propertyIsEnumerable.call(N,F[M])&&(D[F[M]]=N[F[M]]);return D};function E(N,R){if(!N.breadcrumbName)return null;var D=Object.keys(R).join("|"),F=N.breadcrumbName.replace(new RegExp(":(".concat(D,")"),"g"),function(M,U){return R[U]||M});return F}function T(N,R,D,F){var M=D.indexOf(N)===D.length-1,U=E(N,R);return M?f.createElement("span",null,U):f.createElement("a",{href:"#/".concat(F.join("/"))},U)}var w=function(R,D){return R=(R||"").replace(/^\//,""),Object.keys(D).forEach(function(F){R=R.replace(":".concat(F),D[F])}),R},S=function(R){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",F=arguments.length>2?arguments[2]:void 0,M=g()(R),U=w(D,F);return U&&M.push(U),M},_=function(R){var D=R.prefixCls,F=R.separator,M=F===void 0?"/":F,U=R.style,B=R.className,j=R.routes,W=R.children,V=R.itemRender,z=V===void 0?T:V,J=R.params,q=J===void 0?{}:J,de=y(R,["prefixCls","separator","style","className","routes","children","itemRender","params"]),ae=f.useContext(l.b),ve=ae.getPrefixCls,_e=ae.direction,Ie,He=ve("breadcrumb",D);if(j&&j.length>0){var me=[];Ie=j.map(function(se){var te=w(se.path,q);te&&me.push(te);var Ge;return se.children&&se.children.length&&(Ge=f.createElement(p.a,null,se.children.map(function(oe){return f.createElement(p.a.Item,{key:oe.path||oe.breadcrumbName},z(oe,q,j,S(me,oe.path,q)))}))),f.createElement(s,{overlay:Ge,separator:M,key:te||se.breadcrumbName},z(se,q,j,me))})}else W&&(Ie=Object(r.a)(W).map(function(se,te){return se&&(Object(m.a)(se.type&&(se.type.__ANT_BREADCRUMB_ITEM===!0||se.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(v.a)(se,{separator:M,key:te}))}));var ke=o()(B,He,A()({},"".concat(He,"-rtl"),_e==="rtl"));return f.createElement("div",x()({className:ke,style:U},de),Ie)};_.Item=s,_.Separator=h;var I=_,L=k.a=I},bKJz:function(H,k,d){},bLfw:function(H,k,d){var O=d("bYtY"),x=d("Qxkt"),C=d("iRjW"),A=d("Yl7c"),b=A.enableClassManagement,g=A.parseClassType,f=d("4NO4"),c=f.makeInner,o=d("+TT/"),r=d("3hzK"),i=c(),n=x.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(t,a,s,u){x.call(this,t,a,s,u),this.uid=C.getUID("ec_cpt_model")},init:function(t,a,s,u){this.mergeDefaultAndTheme(t,s)},mergeDefaultAndTheme:function(t,a){var s=this.layoutMode,u=s?o.getLayoutParams(t):{},h=a.getTheme();O.merge(t,h.get(this.mainType)),O.merge(t,this.getDefaultOption()),s&&o.mergeLayoutParam(t,u,s)},mergeOption:function(t,a){O.merge(this.option,t,!0);var s=this.layoutMode;s&&o.mergeLayoutParam(this.option,t,s)},optionUpdated:function(t,a){},getDefaultOption:function(){var t=i(this);if(!t.defaultOption){for(var a=[],s=this.constructor;s;){var u=s.prototype.defaultOption;u&&a.push(u),s=s.superClass}for(var h={},p=a.length-1;p>=0;p--)h=O.merge(h,a[p],!0);t.defaultOption=h}return t.defaultOption},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});b(n,{registerWhenExtend:!0}),C.enableSubTypeDefaulter(n),C.enableTopologicalTravel(n,e);function e(t){var a=[];return O.each(n.getClassesByMainType(t),function(s){a=a.concat(s.prototype.dependencies||[])}),a=O.map(a,function(s){return g(s).main}),t!=="dataset"&&O.indexOf(a,"dataset")<=0&&a.unshift("dataset"),a}O.mixin(n,r);var l=n;H.exports=l},bMXI:function(H,k,d){var O=d("bYtY"),x=d("QBsz"),C=d("Fofx"),A=d("mFDi"),b=d("DN4a"),g=x.applyTransform;function f(){b.call(this)}O.mixin(f,b);function c(i){this.name=i,this.zoomLimit,b.call(this),this._roamTransformable=new f,this._rawTransformable=new f,this._center,this._zoom}c.prototype={constructor:c,type:"view",dimensions:["x","y"],setBoundingRect:function(i,n,e,l){return this._rect=new A(i,n,e,l),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(i,n,e,l){this.transformTo(i,n,e,l),this._viewRect=new A(i,n,e,l)},transformTo:function(i,n,e,l){var t=this.getBoundingRect(),a=this._rawTransformable;a.transform=t.calculateTransform(new A(i,n,e,l)),a.decomposeTransform(),this._updateTransform()},setCenter:function(i){if(!i)return;this._center=i,this._updateCenterAndZoom()},setZoom:function(i){i=i||1;var n=this.zoomLimit;n&&(n.max!=null&&(i=Math.min(n.max,i)),n.min!=null&&(i=Math.max(n.min,i))),this._zoom=i,this._updateCenterAndZoom()},getDefaultCenter:function(){var i=this.getBoundingRect(),n=i.x+i.width/2,e=i.y+i.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 i=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,e=this.getDefaultCenter(),l=this.getCenter(),t=this.getZoom();l=x.applyTransform([],l,i),e=x.applyTransform([],e,i),n.origin=l,n.position=[e[0]-l[0],e[1]-l[1]],n.scale=[t,t],this._updateTransform()},_updateTransform:function(){var i=this._roamTransformable,n=this._rawTransformable;n.parent=i,i.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 i=this._roamTransformable.transform,n=this._rawTransformable;return{roamTransform:i?O.slice(i):C.create(),rawScale:O.slice(n.scale),rawPosition:O.slice(n.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var i=this.getBoundingRect().clone();return i.applyTransform(this.transform),i},dataToPoint:function(i,n,e){var l=n?this._rawTransform:this.transform;return e=e||[],l?g(e,i,l):x.copy(e,i)},pointToData:function(i){var n=this.invTransform;return n?g([],i,n):[i[0],i[1]]},convertToPixel:O.curry(o,"dataToPoint"),convertFromPixel:O.curry(o,"pointToData"),containPoint:function(i){return this.getViewRectAfterRoam().contain(i[0],i[1])}},O.mixin(c,b);function o(i,n,e,l){var t=e.seriesModel,a=t?t.coordinateSystem:null;return a===this?a[i](l):null}var r=c;H.exports=r},bNin:function(H,k,d){var O=d("bYtY"),x=d("IwbS"),C=d("FBjb"),A=d("Itpr"),b=A.radialCoordinate,g=d("ProS"),f=d("4mN7"),c=d("bMXI"),o=d("Ae+d"),r=d("SgGq"),i=d("xSat"),n=i.onIrrelevantElement,e=d("Tghj"),l=e.__DEV__,t=d("OELB"),a=t.parsePercent,s=x.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(T,w){var S=w.childPoints,_=S.length,I=w.parentPoint,L=S[0],N=S[_-1];if(_===1){T.moveTo(I[0],I[1]),T.lineTo(L[0],L[1]);return}var R=w.orient,D=R==="TB"||R==="BT"?0:1,F=1-D,M=a(w.forkPosition,1),U=[];U[D]=I[D],U[F]=I[F]+(N[F]-I[F])*M,T.moveTo(I[0],I[1]),T.lineTo(U[0],U[1]),T.moveTo(L[0],L[1]),U[D]=L[D],T.lineTo(U[0],U[1]),U[D]=N[D],T.lineTo(U[0],U[1]),T.lineTo(N[0],N[1]);for(var B=1;B<_-1;B++){var j=S[B];T.moveTo(j[0],j[1]),U[D]=j[D],T.lineTo(U[0],U[1])}}}),u=g.extendChartView({type:"tree",init:function(T,w){this._oldTree,this._mainGroup=new x.Group,this._controller=new r(w.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(T,w,S,_){var I=T.getData(),L=T.layoutInfo,N=this._mainGroup,R=T.get("layout");R==="radial"?N.attr("position",[L.x+L.width/2,L.y+L.height/2]):N.attr("position",[L.x,L.y]),this._updateViewCoordSys(T,L,R),this._updateController(T,w,S);var D=this._data,F={expandAndCollapse:T.get("expandAndCollapse"),layout:R,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(D).add(function(M){h(I,M)&&m(I,M,null,N,T,F)}).update(function(M,U){var B=D.getItemGraphicEl(U);if(!h(I,M)){B&&y(D,U,B,N,T,F);return}m(I,M,B,N,T,F)}).remove(function(M){var U=D.getItemGraphicEl(M);U&&y(D,M,U,N,T,F)}).execute(),this._nodeScaleRatio=T.get("nodeScaleRatio"),this._updateNodeAndLinkScale(T),F.expandAndCollapse===!0&&I.eachItemGraphicEl(function(M,U){M.off("click").on("click",function(){S.dispatchAction({type:"treeExpandAndCollapse",seriesId:T.id,dataIndex:U})})}),this._data=I},_updateViewCoordSys:function(T){var w=T.getData(),S=[];w.each(function(D){var F=w.getItemLayout(D);F&&!isNaN(F.x)&&!isNaN(F.y)&&S.push([+F.x,+F.y])});var _=[],I=[];f.fromPoints(S,_,I);var L=this._min,N=this._max;I[0]-_[0]===0&&(_[0]=L?L[0]:_[0]-1,I[0]=N?N[0]:I[0]+1),I[1]-_[1]===0&&(_[1]=L?L[1]:_[1]-1,I[1]=N?N[1]:I[1]+1);var R=T.coordinateSystem=new c;R.zoomLimit=T.get("scaleLimit"),R.setBoundingRect(_[0],_[1],I[0]-_[0],I[1]-_[1]),R.setCenter(T.get("center")),R.setZoom(T.get("zoom")),this.group.attr({position:R.position,scale:R.scale}),this._viewCoordSys=R,this._min=_,this._max=I},_updateController:function(T,w,S){var _=this._controller,I=this._controllerHost,L=this.group;_.setPointerChecker(function(N,R,D){var F=L.getBoundingRect();return F.applyTransform(L.transform),F.contain(R,D)&&!n(N,S,T)}),_.enable(T.get("roam")),I.zoomLimit=T.get("scaleLimit"),I.zoom=T.coordinateSystem.getZoom(),_.off("pan").off("zoom").on("pan",function(N){o.updateViewOnPan(I,N.dx,N.dy),S.dispatchAction({seriesId:T.id,type:"treeRoam",dx:N.dx,dy:N.dy})},this).on("zoom",function(N){o.updateViewOnZoom(I,N.scale,N.originX,N.originY),S.dispatchAction({seriesId:T.id,type:"treeRoam",zoom:N.scale,originX:N.originX,originY:N.originY}),this._updateNodeAndLinkScale(T)},this)},_updateNodeAndLinkScale:function(T){var w=T.getData(),S=this._getNodeGlobalScale(T),_=[S,S];w.eachItemGraphicEl(function(I,L){I.attr("scale",_)})},_getNodeGlobalScale:function(T){var w=T.coordinateSystem;if(w.type!=="view")return 1;var S=this._nodeScaleRatio,_=w.scale,I=_&&_[0]||1,L=w.getZoom(),N=(L-1)*S+1;return N/I},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function h(T,w){var S=T.getItemLayout(w);return S&&!isNaN(S.x)&&!isNaN(S.y)&&T.getItemVisual(w,"symbol")!=="none"}function p(T,w,S){return S.itemModel=w,S.itemStyle=w.getModel("itemStyle").getItemStyle(),S.hoverItemStyle=w.getModel("emphasis.itemStyle").getItemStyle(),S.lineStyle=w.getModel("lineStyle").getLineStyle(),S.labelModel=w.getModel("label"),S.hoverLabelModel=w.getModel("emphasis.label"),T.isExpand===!1&&T.children.length!==0?S.symbolInnerColor=S.itemStyle.fill:S.symbolInnerColor="#fff",S}function m(T,w,S,_,I,L){var N=!S,R=T.tree.getNodeByDataIndex(w),D=R.getModel(),L=p(R,D,L),F=T.tree.root,M=R.parentNode===F?R:R.parentNode||R,U=T.getItemGraphicEl(M.dataIndex),B=M.getLayout(),j=U?{x:U.position[0],y:U.position[1],rawX:U.__radialOldRawX,rawY:U.__radialOldRawY}:B,W=R.getLayout();N?(S=new C(T,w,L),S.attr("position",[j.x,j.y])):S.updateData(T,w,L),S.__radialOldRawX=S.__radialRawX,S.__radialOldRawY=S.__radialRawY,S.__radialRawX=W.rawX,S.__radialRawY=W.rawY,_.add(S),T.setItemGraphicEl(w,S),x.updateProps(S,{position:[W.x,W.y]},I);var V=S.getSymbolPath();if(L.layout==="radial"){var z=F.children[0],J=z.getLayout(),q=z.children.length,de,ae;if(W.x===J.x&&R.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,de=Math.atan2(ve.y-J.y,ve.x-J.x),de<0&&(de=Math.PI*2+de),ae=ve.x<J.x,ae&&(de=de-Math.PI)}else de=Math.atan2(W.y-J.y,W.x-J.x),de<0&&(de=Math.PI*2+de),R.children.length===0||R.children.length!==0&&R.isExpand===!1?(ae=W.x<J.x,ae&&(de=de-Math.PI)):(ae=W.x>J.x,ae||(de=de-Math.PI));var _e=ae?"left":"right",Ie=L.labelModel.get("rotate"),He=Ie*(Math.PI/180);V.setStyle({textPosition:L.labelModel.get("position")||_e,textRotation:Ie==null?-de:He,textOrigin:"center",verticalAlign:"middle"})}v(I,R,F,S,j,B,W,_,L)}function v(T,w,S,_,I,L,N,R,D){var F=D.edgeShape,M=_.__edge;if(F==="curve")w.parentNode&&w.parentNode!==S&&(M||(M=_.__edge=new x.BezierCurve({shape:E(D,I,I),style:O.defaults({opacity:0,strokeNoScale:!0},D.lineStyle)})),x.updateProps(M,{shape:E(D,L,N),style:{opacity:1}},T));else if(F==="polyline"&&(D.layout==="orthogonal"&&(w!==S&&w.children&&w.children.length!==0&&w.isExpand===!0))){for(var U=w.children,B=[],j=0;j<U.length;j++){var W=U[j].getLayout();B.push([W.x,W.y])}M||(M=_.__edge=new s({shape:{parentPoint:[N.x,N.y],childPoints:[[N.x,N.y]],orient:D.orient,forkPosition:D.edgeForkPosition},style:O.defaults({opacity:0,strokeNoScale:!0},D.lineStyle)})),x.updateProps(M,{shape:{parentPoint:[N.x,N.y],childPoints:B},style:{opacity:1}},T)}R.add(M)}function y(T,w,S,_,I,L){for(var N=T.tree.getNodeByDataIndex(w),R=T.tree.root,D=N.getModel(),L=p(N,D,L),F=N.parentNode===R?N:N.parentNode||N,M=L.edgeShape,U;U=F.getLayout(),U==null;)F=F.parentNode===R?F:F.parentNode||F;x.updateProps(S,{position:[U.x+1,U.y+1]},I,function(){_.remove(S),T.setItemGraphicEl(w,null)}),S.fadeOut(null,{keepLabel:!0});var B=T.getItemGraphicEl(F.dataIndex),j=B.__edge,W=S.__edge||(F.isExpand===!1||F.children.length===1?j:void 0),M=L.edgeShape;W&&(M==="curve"?x.updateProps(W,{shape:E(L,U,U),style:{opacity:0}},I,function(){_.remove(W)}):M==="polyline"&&L.layout==="orthogonal"&&x.updateProps(W,{shape:{parentPoint:[U.x,U.y],childPoints:[[U.x,U.y]]},style:{opacity:0}},I,function(){_.remove(W)}))}function E(T,w,S){var _,I,L,N,R=T.orient,D,F,M,U;if(T.layout==="radial"){D=w.rawX,M=w.rawY,F=S.rawX,U=S.rawY;var B=b(D,M),j=b(D,M+(U-M)*T.curvature),W=b(F,U+(M-U)*T.curvature),V=b(F,U);return{x1:B.x,y1:B.y,x2:V.x,y2:V.y,cpx1:j.x,cpy1:j.y,cpx2:W.x,cpy2:W.y}}else D=w.x,M=w.y,F=S.x,U=S.y,(R==="LR"||R==="RL")&&(_=D+(F-D)*T.curvature,I=M,L=F+(D-F)*T.curvature,N=U),(R==="TB"||R==="BT")&&(_=D,I=M+(U-M)*T.curvature,L=F,N=U+(M-U)*T.curvature);return{x1:D,y1:M,x2:F,y2:U,cpx1:_,cpy1:I,cpx2:L,cpy2:N}}H.exports=u},bQjk:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("OLod"))})(this,function(O){return function(x){var C=O,A=C.lib,b=A.CipherParams,g=C.enc,f=g.Hex,c=C.format,o=c.Hex={stringify:function(i){return i.ciphertext.toString(f)},parse:function(i){var n=f.parse(i);return b.create({ciphertext:n})}}}(),O.format.Hex})},bYtY:function(H,k){var d={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1,"[object Canvas]":1},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},x=Object.prototype.toString,C=Array.prototype,A=C.forEach,b=C.filter,g=C.slice,f=C.map,c=C.reduce,o={};function r(se,te){se==="createCanvas"&&(s=null),o[se]=te}function i(se){if(se==null||typeof se!="object")return se;var te=se,Ge=x.call(se);if(Ge==="[object Array]"){if(!_e(se)){te=[];for(var oe=0,Y=se.length;oe<Y;oe++)te[oe]=i(se[oe])}}else if(O[Ge]){if(!_e(se)){var G=se.constructor;if(se.constructor.from)te=G.from(se);else{te=new G(se.length);for(var oe=0,Y=se.length;oe<Y;oe++)te[oe]=i(se[oe])}}}else if(!d[Ge]&&!_e(se)&&!U(se)){te={};for(var Q in se)se.hasOwnProperty(Q)&&(te[Q]=i(se[Q]))}return te}function n(se,te,Ge){if(!D(te)||!D(se))return Ge?i(te):se;for(var oe in te)if(te.hasOwnProperty(oe)){var Y=se[oe],G=te[oe];D(G)&&D(Y)&&!L(G)&&!L(Y)&&!U(G)&&!U(Y)&&!F(G)&&!F(Y)&&!_e(G)&&!_e(Y)?n(Y,G,Ge):(Ge||!(oe in se))&&(se[oe]=i(te[oe],!0))}return se}function e(se,te){for(var Ge=se[0],oe=1,Y=se.length;oe<Y;oe++)Ge=n(Ge,se[oe],te);return Ge}function l(se,te){for(var Ge in te)te.hasOwnProperty(Ge)&&(se[Ge]=te[Ge]);return se}function t(se,te,Ge){for(var oe in te)te.hasOwnProperty(oe)&&(Ge?te[oe]!=null:se[oe]==null)&&(se[oe]=te[oe]);return se}var a=function(){return o.createCanvas()};o.createCanvas=function(){return document.createElement("canvas")};var s;function u(){return s||(s=a().getContext("2d")),s}function h(se,te){if(se){if(se.indexOf)return se.indexOf(te);for(var Ge=0,oe=se.length;Ge<oe;Ge++)if(se[Ge]===te)return Ge}return-1}function p(se,te){var Ge=se.prototype;function oe(){}oe.prototype=te.prototype,se.prototype=new oe;for(var Y in Ge)Ge.hasOwnProperty(Y)&&(se.prototype[Y]=Ge[Y]);se.prototype.constructor=se,se.superClass=te}function m(se,te,Ge){se="prototype"in se?se.prototype:se,te="prototype"in te?te.prototype:te,t(se,te,Ge)}function v(se){return se?typeof se=="string"?!1:typeof se.length=="number":void 0}function y(se,te,Ge){if(!(se&&te))return;if(se.forEach&&se.forEach===A)se.forEach(te,Ge);else if(se.length===+se.length)for(var oe=0,Y=se.length;oe<Y;oe++)te.call(Ge,se[oe],oe,se);else for(var G in se)se.hasOwnProperty(G)&&te.call(Ge,se[G],G,se)}function E(se,te,Ge){if(!(se&&te))return;if(se.map&&se.map===f)return se.map(te,Ge);for(var oe=[],Y=0,G=se.length;Y<G;Y++)oe.push(te.call(Ge,se[Y],Y,se));return oe}function T(se,te,Ge,oe){if(!(se&&te))return;if(se.reduce&&se.reduce===c)return se.reduce(te,Ge,oe);for(var Y=0,G=se.length;Y<G;Y++)Ge=te.call(oe,Ge,se[Y],Y,se);return Ge}function w(se,te,Ge){if(!(se&&te))return;if(se.filter&&se.filter===b)return se.filter(te,Ge);for(var oe=[],Y=0,G=se.length;Y<G;Y++)te.call(Ge,se[Y],Y,se)&&oe.push(se[Y]);return oe}function S(se,te,Ge){if(!(se&&te))return;for(var oe=0,Y=se.length;oe<Y;oe++)if(te.call(Ge,se[oe],oe,se))return se[oe]}function _(se,te){var Ge=g.call(arguments,2);return function(){return se.apply(te,Ge.concat(g.call(arguments)))}}function I(se){var te=g.call(arguments,1);return function(){return se.apply(this,te.concat(g.call(arguments)))}}function L(se){return x.call(se)==="[object Array]"}function N(se){return typeof se=="function"}function R(se){return x.call(se)==="[object String]"}function D(se){var te=typeof se;return te==="function"||!!se&&te==="object"}function F(se){return!!d[x.call(se)]}function M(se){return!!O[x.call(se)]}function U(se){return typeof se=="object"&&typeof se.nodeType=="number"&&typeof se.ownerDocument=="object"}function B(se){return se!==se}function j(se){for(var te=0,Ge=arguments.length;te<Ge;te++)if(arguments[te]!=null)return arguments[te]}function W(se,te){return se!=null?se:te}function V(se,te,Ge){return se!=null?se:te!=null?te:Ge}function z(){return Function.call.apply(g,arguments)}function J(se){if(typeof se=="number")return[se,se,se,se];var te=se.length;return te===2?[se[0],se[1],se[0],se[1]]:te===3?[se[0],se[1],se[2],se[1]]:se}function q(se,te){if(!se)throw new Error(te)}function de(se){return se==null?null:typeof se.trim=="function"?se.trim():se.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ae="__ec_primitive__";function ve(se){se[ae]=!0}function _e(se){return se[ae]}function Ie(se){var te=L(se);this.data={};var Ge=this;se instanceof Ie?se.each(oe):se&&y(se,oe);function oe(Y,G){te?Ge.set(Y,G):Ge.set(G,Y)}}Ie.prototype={constructor:Ie,get:function(te){return this.data.hasOwnProperty(te)?this.data[te]:null},set:function(te,Ge){return this.data[te]=Ge},each:function(te,Ge){Ge!==void 0&&(te=_(te,Ge));for(var oe in this.data)this.data.hasOwnProperty(oe)&&te(this.data[oe],oe)},removeKey:function(te){delete this.data[te]}};function He(se){return new Ie(se)}function me(se,te){for(var Ge=new se.constructor(se.length+te.length),oe=0;oe<se.length;oe++)Ge[oe]=se[oe];var Y=se.length;for(oe=0;oe<te.length;oe++)Ge[oe+Y]=te[oe];return Ge}function ke(){}k.$override=r,k.clone=i,k.merge=n,k.mergeAll=e,k.extend=l,k.defaults=t,k.createCanvas=a,k.getContext=u,k.indexOf=h,k.inherits=p,k.mixin=m,k.isArrayLike=v,k.each=y,k.map=E,k.reduce=T,k.filter=w,k.find=S,k.bind=_,k.curry=I,k.isArray=L,k.isFunction=N,k.isString=R,k.isObject=D,k.isBuiltInObject=F,k.isTypedArray=M,k.isDom=U,k.eqNaN=B,k.retrieve=j,k.retrieve2=W,k.retrieve3=V,k.slice=z,k.normalizeCssArray=J,k.assert=q,k.trim=de,k.setAsPrimitive=ve,k.isPrimitive=_e,k.createHashMap=He,k.concatArray=me,k.noop=ke},bZqE:function(H,k){function d(x,C,A){for(var b=[x],g=[],f;f=b.pop();)if(g.push(f),f.isExpand){var c=f.children;if(c.length)for(var o=0;o<c.length;o++)b.push(c[o])}for(;f=g.pop();)C(f,A)}function O(x,C){for(var A=[x],b;b=A.pop();)if(C(b),b.isExpand){var g=b.children;if(g.length)for(var f=g.length-1;f>=0;f--)A.push(g[f])}}k.eachAfter=d,k.eachBefore=O},bahg:function(H,k){function d(O){return O.split("")}H.exports=d},bbsP:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("CWI+"),A=d.n(C)},bogI:function(H,k,d){"use strict";d.d(k,"a",function(){return O});var O=function(C){if(!C)return null;var A=typeof C=="function";return A?C():C}},bsht:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},bx4M:function(H,k,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),b=d("q1tI"),g=d("TSYQ"),f=d.n(g),c=d("BGR+"),o=d("H84U"),r=function(E,T){var w={};for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&T.indexOf(S)<0&&(w[S]=E[S]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,S=Object.getOwnPropertySymbols(E);_<S.length;_++)T.indexOf(S[_])<0&&Object.prototype.propertyIsEnumerable.call(E,S[_])&&(w[S[_]]=E[S[_]]);return w},i=function(T){return b.createElement(o.a,null,function(w){var S=w.getPrefixCls,_=T.prefixCls,I=T.className,L=T.hoverable,N=L===void 0?!0:L,R=r(T,["prefixCls","className","hoverable"]),D=S("card",_),F=f()("".concat(D,"-grid"),I,x()({},"".concat(D,"-grid-hoverable"),N));return b.createElement("div",A()({},R,{className:F}))})},n=i,e=function(E,T){var w={};for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&T.indexOf(S)<0&&(w[S]=E[S]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,S=Object.getOwnPropertySymbols(E);_<S.length;_++)T.indexOf(S[_])<0&&Object.prototype.propertyIsEnumerable.call(E,S[_])&&(w[S[_]]=E[S[_]]);return w},l=function(T){return b.createElement(o.a,null,function(w){var S=w.getPrefixCls,_=T.prefixCls,I=T.className,L=T.avatar,N=T.title,R=T.description,D=e(T,["prefixCls","className","avatar","title","description"]),F=S("card",_),M=f()("".concat(F,"-meta"),I),U=L?b.createElement("div",{className:"".concat(F,"-meta-avatar")},L):null,B=N?b.createElement("div",{className:"".concat(F,"-meta-title")},N):null,j=R?b.createElement("div",{className:"".concat(F,"-meta-description")},R):null,W=B||j?b.createElement("div",{className:"".concat(F,"-meta-detail")},B,j):null;return b.createElement("div",A()({},D,{className:M}),U,W)})},t=l,a=d("ZTPi"),s=d("BMrR"),u=d("kPKH"),h=d("3Nzz"),p=function(E,T){var w={};for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&T.indexOf(S)<0&&(w[S]=E[S]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,S=Object.getOwnPropertySymbols(E);_<S.length;_++)T.indexOf(S[_])<0&&Object.prototype.propertyIsEnumerable.call(E,S[_])&&(w[S[_]]=E[S[_]]);return w};function m(E){var T=E.map(function(w,S){return b.createElement("li",{style:{width:"".concat(100/E.length,"%")},key:"action-".concat(S)},b.createElement("span",null,w))});return T}var v=function(T){var w,S,_=b.useContext(o.b),I=_.getPrefixCls,L=_.direction,N=b.useContext(h.b),R=function(Mt){T.onTabChange&&T.onTabChange(Mt)},D=function(){var Mt;return b.Children.forEach(T.children,function(er){er&&er.type&&er.type===n&&(Mt=!0)}),Mt},F=T.prefixCls,M=T.className,U=T.extra,B=T.headStyle,j=B===void 0?{}:B,W=T.bodyStyle,V=W===void 0?{}:W,z=T.title,J=T.loading,q=T.bordered,de=q===void 0?!0:q,ae=T.size,ve=T.type,_e=T.cover,Ie=T.actions,He=T.tabList,me=T.children,ke=T.activeTabKey,se=T.defaultActiveTabKey,te=T.tabBarExtraContent,Ge=T.hoverable,oe=T.tabProps,Y=oe===void 0?{}:oe,G=p(T,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),Q=I("card",F),ye=V.padding===0||V.padding==="0px"?{padding:24}:void 0,ce=b.createElement("div",{className:"".concat(Q,"-loading-block")}),Te=b.createElement("div",{className:"".concat(Q,"-loading-content"),style:ye},b.createElement(s.a,{gutter:8},b.createElement(u.a,{span:22},ce)),b.createElement(s.a,{gutter:8},b.createElement(u.a,{span:8},ce),b.createElement(u.a,{span:15},ce)),b.createElement(s.a,{gutter:8},b.createElement(u.a,{span:6},ce),b.createElement(u.a,{span:18},ce)),b.createElement(s.a,{gutter:8},b.createElement(u.a,{span:13},ce),b.createElement(u.a,{span:9},ce)),b.createElement(s.a,{gutter:8},b.createElement(u.a,{span:4},ce),b.createElement(u.a,{span:3},ce),b.createElement(u.a,{span:16},ce))),Se=ke!==void 0,le=A()(A()({},Y),(w={},x()(w,Se?"activeKey":"defaultActiveKey",Se?ke:se),x()(w,"tabBarExtraContent",te),w)),fe,Ee=He&&He.length?b.createElement(a.a,A()({size:"large"},le,{className:"".concat(Q,"-head-tabs"),onChange:R}),He.map(function(St){return b.createElement(a.a.TabPane,{tab:St.tab,disabled:St.disabled,key:St.key})})):null;(z||U||Ee)&&(fe=b.createElement("div",{className:"".concat(Q,"-head"),style:j},b.createElement("div",{className:"".concat(Q,"-head-wrapper")},z&&b.createElement("div",{className:"".concat(Q,"-head-title")},z),U&&b.createElement("div",{className:"".concat(Q,"-extra")},U)),Ee));var Ve=_e?b.createElement("div",{className:"".concat(Q,"-cover")},_e):null,vt=b.createElement("div",{className:"".concat(Q,"-body"),style:V},J?Te:me),et=Ie&&Ie.length?b.createElement("ul",{className:"".concat(Q,"-actions")},m(Ie)):null,Oe=Object(c.default)(G,["onTabChange"]),Tt=ae||N,Je=f()(Q,M,(S={},x()(S,"".concat(Q,"-loading"),J),x()(S,"".concat(Q,"-bordered"),de),x()(S,"".concat(Q,"-hoverable"),Ge),x()(S,"".concat(Q,"-contain-grid"),D()),x()(S,"".concat(Q,"-contain-tabs"),He&&He.length),x()(S,"".concat(Q,"-").concat(Tt),Tt),x()(S,"".concat(Q,"-type-").concat(ve),!!ve),x()(S,"".concat(Q,"-rtl"),L==="rtl"),S));return b.createElement("div",A()({},Oe,{className:Je}),fe,Ve,vt,et)};v.Grid=n,v.Meta=t;var y=k.a=v},c2i1:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("Yl7c"),b=A.enableClassCheck;function g(e){return"_EC_"+e}var f=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},c=f.prototype;c.type="graph",c.isDirected=function(){return this._directed},c.addNode=function(e,l){e=e==null?""+l:""+e;var t=this._nodesMap;if(t[g(e)])return;var a=new o(e,l);return a.hostGraph=this,this.nodes.push(a),t[g(e)]=a,a},c.getNodeByIndex=function(e){var l=this.data.getRawIndex(e);return this.nodes[l]},c.getNodeById=function(e){return this._nodesMap[g(e)]},c.addEdge=function(e,l,t){var a=this._nodesMap,s=this._edgesMap;if(typeof e=="number"&&(e=this.nodes[e]),typeof l=="number"&&(l=this.nodes[l]),o.isInstance(e)||(e=a[g(e)]),o.isInstance(l)||(l=a[g(l)]),!e||!l)return;var u=e.id+"-"+l.id;if(s[u])return;var h=new r(e,l,t);return h.hostGraph=this,this._directed&&(e.outEdges.push(h),l.inEdges.push(h)),e.edges.push(h),e!==l&&l.edges.push(h),this.edges.push(h),s[u]=h,h},c.getEdgeByIndex=function(e){var l=this.edgeData.getRawIndex(e);return this.edges[l]},c.getEdge=function(e,l){o.isInstance(e)&&(e=e.id),o.isInstance(l)&&(l=l.id);var t=this._edgesMap;return this._directed?t[e+"-"+l]:t[e+"-"+l]||t[l+"-"+e]},c.eachNode=function(e,l){for(var t=this.nodes,a=t.length,s=0;s<a;s++)t[s].dataIndex>=0&&e.call(l,t[s],s)},c.eachEdge=function(e,l){for(var t=this.edges,a=t.length,s=0;s<a;s++)t[s].dataIndex>=0&&t[s].node1.dataIndex>=0&&t[s].node2.dataIndex>=0&&e.call(l,t[s],s)},c.breadthFirstTraverse=function(e,l,t,a){if(o.isInstance(l)||(l=this._nodesMap[g(l)]),!l)return;for(var s=t==="out"?"outEdges":t==="in"?"inEdges":"edges",u=0;u<this.nodes.length;u++)this.nodes[u].__visited=!1;if(e.call(a,l,null))return;for(var h=[l];h.length;)for(var p=h.shift(),m=p[s],u=0;u<m.length;u++){var v=m[u],y=v.node1===p?v.node2:v.node1;if(!y.__visited){if(e.call(a,y,p))return;h.push(y),y.__visited=!0}}},c.update=function(){for(var e=this.data,l=this.edgeData,t=this.nodes,a=this.edges,s=0,u=t.length;s<u;s++)t[s].dataIndex=-1;for(var s=0,u=e.count();s<u;s++)t[e.getRawIndex(s)].dataIndex=s;l.filterSelf(function(h){var p=a[l.getRawIndex(h)];return p.node1.dataIndex>=0&&p.node2.dataIndex>=0});for(var s=0,u=a.length;s<u;s++)a[s].dataIndex=-1;for(var s=0,u=l.count();s<u;s++)a[l.getRawIndex(s)].dataIndex=s},c.clone=function(){for(var e=new f(this._directed),l=this.nodes,t=this.edges,a=0;a<l.length;a++)e.addNode(l[a].id,l[a].dataIndex);for(var a=0;a<t.length;a++){var s=t[a];e.addEdge(s.node1.id,s.node2.id,s.dataIndex)}return e};function o(e,l){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=l==null?-1:l}o.prototype={constructor:o,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(this.dataIndex<0)return;var l=this.hostGraph,t=l.data.getItemModel(this.dataIndex);return t.getModel(e)}};function r(e,l,t){this.node1=e,this.node2=l,this.dataIndex=t==null?-1:t}r.prototype.getModel=function(e){if(this.dataIndex<0)return;var l=this.hostGraph,t=l.edgeData.getItemModel(this.dataIndex);return t.getModel(e)};var i=function(e,l){return{getValue:function(t){var a=this[e][l];return a.get(a.getDimension(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[e][l].setItemVisual(this.dataIndex,t,a)},getVisual:function(t,a){return this[e][l].getItemVisual(this.dataIndex,t,a)},setLayout:function(t,a){this.dataIndex>=0&&this[e][l].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[e][l].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][l].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][l].getRawIndex(this.dataIndex)}}};C.mixin(o,i("hostGraph","data")),C.mixin(r,i("hostGraph","edgeData")),f.Node=o,f.Edge=r,b(o),b(r);var n=f;H.exports=n},c3jg:function(H,k,d){"use strict";d.d(k,"e",function(){return r}),d.d(k,"c",function(){return n}),d.d(k,"d",function(){return e}),d.d(k,"a",function(){return t}),d.d(k,"f",function(){return a}),d.d(k,"b",function(){return s});var O=d("KQm4"),x=d("VTBJ"),C=d("Ff2n"),A=d("q1tI"),b=d.n(A),g=d("TOwV");function f(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=[];return b.a.Children.forEach(u,function(m){if(m==null&&!h.keepEmpty)return;Array.isArray(m)?p=p.concat(f(m)):Object(g.isFragment)(m)&&m.props?p=p.concat(f(m.props.children,h)):p.push(m)}),p}var c=d("xroW"),o=d("wPhX");function r(u,h){return u!=null?u:h}function i(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=new Map;function p(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(m||[]).forEach(function(y){var E=y.key,T=y.children;Object(c.a)(E!=null,"Tree node must have a certain key: [".concat(v).concat(E,"]"));var w=String(E);Object(c.a)(!h.has(w)||E===null||E===void 0,"Same 'key' exist in the Tree: ".concat(w)),h.set(w,!0),p(T,"".concat(v).concat(w," > "))})}p(u)}function n(u){function h(p){var m=f(p);return m.map(function(v){if(!Object(o.i)(v))return Object(c.a)(!v,"Tree/TreeNode can only accept TreeNode as children."),null;var y=v.key,E=v.props,T=E.children,w=Object(C.a)(E,["children"]),S=Object(x.a)({key:y},w),_=h(T);return _.length&&(S.children=_),S}).filter(function(v){return v})}return h(u)}function e(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],p=new Set(h===!0?[]:h),m=[];function v(y){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return y.map(function(T,w){var S=Object(o.h)(E?E.pos:"0",w),_=r(T.key,S),I=Object(x.a)(Object(x.a)({},T),{},{parent:E,pos:S,children:null,data:T,isStart:[].concat(Object(O.a)(E?E.isStart:[]),[w===0]),isEnd:[].concat(Object(O.a)(E?E.isEnd:[]),[w===y.length-1])});return m.push(I),h===!0||p.has(_)?I.children=v(T.children||[],I):I.children=[],I})}return v(u),m}function l(u,h,p){var m;p?typeof p=="string"?m=function(E){return E[p]}:typeof p=="function"&&(m=function(E){return p(E)}):m=function(E,T){return r(E.key,T)};function v(y,E,T){var w=y?y.children:u,S=y?Object(o.h)(T.pos,E):"0";if(y){var _=m(y,S),I={node:y,index:E,pos:S,key:_,parentPos:T.node?T.pos:null,level:T.level+1};h(I)}w&&w.forEach(function(L,N){v(L,N,{node:y,pos:S,level:T?T.level+1:-1})})}v(null)}function t(u){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=h.initWrapper,m=h.processEntity,v=h.onProcessFinished,y=arguments.length>2?arguments[2]:void 0,E={},T={},w={posEntities:E,keyEntities:T};return p&&(w=p(w)||w),l(u,function(S){var _=S.node,I=S.index,L=S.pos,N=S.key,R=S.parentPos,D=S.level,F={node:_,index:I,key:N,pos:L,level:D},M=r(N,L);E[L]=F,T[M]=F,F.parent=E[R],F.parent&&(F.parent.children=F.parent.children||[],F.parent.children.push(F)),m&&m(F,w)},y),v&&v(w),w}function a(u,h){var p=h.expandedKeys,m=h.selectedKeys,v=h.loadedKeys,y=h.loadingKeys,E=h.checkedKeys,T=h.halfCheckedKeys,w=h.dragOverNodeKey,S=h.dropPosition,_=h.keyEntities,I=_[u],L={eventKey:u,expanded:p.indexOf(u)!==-1,selected:m.indexOf(u)!==-1,loaded:v.indexOf(u)!==-1,loading:y.indexOf(u)!==-1,checked:E.indexOf(u)!==-1,halfChecked:T.indexOf(u)!==-1,pos:String(I?I.pos:""),dragOver:w===u&&S===0,dragOverGapTop:w===u&&S===-1,dragOverGapBottom:w===u&&S===1};return L}function s(u){var h=u.data,p=u.expanded,m=u.selected,v=u.checked,y=u.loaded,E=u.loading,T=u.halfChecked,w=u.dragOver,S=u.dragOverGapTop,_=u.dragOverGapBottom,I=u.pos,L=u.active,N=Object(x.a)(Object(x.a)({},h),{},{expanded:p,selected:m,checked:v,loaded:y,loading:E,halfChecked:T,dragOver:w,dragOverGapTop:S,dragOverGapBottom:_,pos:I,active:L});return"props"in N||Object.defineProperty(N,"props",{get:function(){return Object(c.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),u}}),N}},c5Ni:function(H,k,d){},c5fP:function(H,k,d){"use strict";function O(Je){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Mt){return typeof Mt}:O=function(Mt){return Mt&&typeof Symbol=="function"&&Mt.constructor===Symbol&&Mt!==Symbol.prototype?"symbol":typeof Mt},O(Je)}Object.defineProperty(k,"__esModule",{value:!0}),k._tr_init=Ve,k._tr_stored_block=vt,k._tr_flush_block=Oe,k._tr_tally=Tt,k._tr_align=et;var x=A(d("6BzB"));function C(){if(typeof WeakMap!="function")return null;var Je=new WeakMap;return C=function(){return Je},Je}function A(Je){if(Je&&Je.__esModule)return Je;if(Je===null||O(Je)!=="object"&&typeof Je!="function")return{default:Je};var St=C();if(St&&St.has(Je))return St.get(Je);var Mt={},er=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var It in Je)if(Object.prototype.hasOwnProperty.call(Je,It)){var _t=er?Object.getOwnPropertyDescriptor(Je,It):null;_t&&(_t.get||_t.set)?Object.defineProperty(Mt,It,_t):Mt[It]=Je[It]}return Mt.default=Je,St&&St.set(Je,Mt),Mt}var b=4,g=0,f=1,c=2;function o(Je){for(var St=Je.length;--St>=0;)Je[St]=0}var r=0,i=1,n=2,e=3,l=258,t=29,a=256,s=a+1+t,u=30,h=19,p=2*s+1,m=15,v=16,y=7,E=256,T=16,w=17,S=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],N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],R=512,D=new Array((s+2)*2);o(D);var F=new Array(u*2);o(F);var M=new Array(R);o(M);var U=new Array(l-e+1);o(U);var B=new Array(t);o(B);var j=new Array(u);o(j);function W(Je,St,Mt,er,It){this.static_tree=Je,this.extra_bits=St,this.extra_base=Mt,this.elems=er,this.max_length=It,this.has_stree=Je&&Je.length}var V,z,J;function q(Je,St){this.dyn_tree=Je,this.max_code=0,this.stat_desc=St}function de(Je){return Je<256?M[Je]:M[256+(Je>>>7)]}function ae(Je,St){Je.pending_buf[Je.pending++]=St&255,Je.pending_buf[Je.pending++]=St>>>8&255}function ve(Je,St,Mt){Je.bi_valid>v-Mt?(Je.bi_buf|=St<<Je.bi_valid&65535,ae(Je,Je.bi_buf),Je.bi_buf=St>>v-Je.bi_valid,Je.bi_valid+=Mt-v):(Je.bi_buf|=St<<Je.bi_valid&65535,Je.bi_valid+=Mt)}function _e(Je,St,Mt){ve(Je,Mt[St*2],Mt[St*2+1])}function Ie(Je,St){var Mt=0;do Mt|=Je&1,Je>>>=1,Mt<<=1;while(--St>0);return Mt>>>1}function He(Je){Je.bi_valid===16?(ae(Je,Je.bi_buf),Je.bi_buf=0,Je.bi_valid=0):Je.bi_valid>=8&&(Je.pending_buf[Je.pending++]=Je.bi_buf&255,Je.bi_buf>>=8,Je.bi_valid-=8)}function me(Je,St){var Mt=St.dyn_tree,er=St.max_code,It=St.stat_desc.static_tree,_t=St.stat_desc.has_stree,Xe=St.stat_desc.extra_bits,ie=St.stat_desc.extra_base,X=St.stat_desc.max_length,Be,Ce,Z,nt,ct,Qe,dt=0;for(nt=0;nt<=m;nt++)Je.bl_count[nt]=0;for(Mt[Je.heap[Je.heap_max]*2+1]=0,Be=Je.heap_max+1;Be<p;Be++){if(Ce=Je.heap[Be],nt=Mt[Mt[Ce*2+1]*2+1]+1,nt>X&&(nt=X,dt++),Mt[Ce*2+1]=nt,Ce>er)continue;Je.bl_count[nt]++,ct=0,Ce>=ie&&(ct=Xe[Ce-ie]),Qe=Mt[Ce*2],Je.opt_len+=Qe*(nt+ct),_t&&(Je.static_len+=Qe*(It[Ce*2+1]+ct))}if(dt===0)return;do{for(nt=X-1;Je.bl_count[nt]===0;)nt--;Je.bl_count[nt]--,Je.bl_count[nt+1]+=2,Je.bl_count[X]--,dt-=2}while(dt>0);for(nt=X;nt!==0;nt--)for(Ce=Je.bl_count[nt];Ce!==0;){if(Z=Je.heap[--Be],Z>er)continue;Mt[Z*2+1]!==nt&&(Je.opt_len+=(nt-Mt[Z*2+1])*Mt[Z*2],Mt[Z*2+1]=nt),Ce--}}function ke(Je,St,Mt){var er=new Array(m+1),It=0,_t,Xe;for(_t=1;_t<=m;_t++)er[_t]=It=It+Mt[_t-1]<<1;for(Xe=0;Xe<=St;Xe++){var ie=Je[Xe*2+1];if(ie===0)continue;Je[Xe*2]=Ie(er[ie]++,ie)}}function se(){var Je,St,Mt,er,It,_t=new Array(m+1);for(Mt=0,er=0;er<t-1;er++)for(B[er]=Mt,Je=0;Je<1<<_[er];Je++)U[Mt++]=er;for(U[Mt-1]=er,It=0,er=0;er<16;er++)for(j[er]=It,Je=0;Je<1<<I[er];Je++)M[It++]=er;for(It>>=7;er<u;er++)for(j[er]=It<<7,Je=0;Je<1<<I[er]-7;Je++)M[256+It++]=er;for(St=0;St<=m;St++)_t[St]=0;for(Je=0;Je<=143;)D[Je*2+1]=8,Je++,_t[8]++;for(;Je<=255;)D[Je*2+1]=9,Je++,_t[9]++;for(;Je<=279;)D[Je*2+1]=7,Je++,_t[7]++;for(;Je<=287;)D[Je*2+1]=8,Je++,_t[8]++;for(ke(D,s+1,_t),Je=0;Je<u;Je++)F[Je*2+1]=5,F[Je*2]=Ie(Je,5);V=new W(D,_,a+1,s,m),z=new W(F,I,0,u,m),J=new W(new Array(0),L,0,h,y)}function te(Je){var St;for(St=0;St<s;St++)Je.dyn_ltree[St*2]=0;for(St=0;St<u;St++)Je.dyn_dtree[St*2]=0;for(St=0;St<h;St++)Je.bl_tree[St*2]=0;Je.dyn_ltree[E*2]=1,Je.opt_len=Je.static_len=0,Je.last_lit=Je.matches=0}function Ge(Je){Je.bi_valid>8?ae(Je,Je.bi_buf):Je.bi_valid>0&&(Je.pending_buf[Je.pending++]=Je.bi_buf),Je.bi_buf=0,Je.bi_valid=0}function oe(Je,St,Mt,er){Ge(Je),er&&(ae(Je,Mt),ae(Je,~Mt)),x.arraySet(Je.pending_buf,Je.window,St,Mt,Je.pending),Je.pending+=Mt}function Y(Je,St,Mt,er){var It=St*2,_t=Mt*2;return Je[It]<Je[_t]||Je[It]===Je[_t]&&er[St]<=er[Mt]}function G(Je,St,Mt){for(var er=Je.heap[Mt],It=Mt<<1;It<=Je.heap_len&&!(It<Je.heap_len&&Y(St,Je.heap[It+1],Je.heap[It],Je.depth)&&It++,Y(St,er,Je.heap[It],Je.depth));)Je.heap[Mt]=Je.heap[It],Mt=It,It<<=1;Je.heap[Mt]=er}function Q(Je,St,Mt){var er,It,_t=0,Xe,ie;if(Je.last_lit!==0)do er=Je.pending_buf[Je.d_buf+_t*2]<<8|Je.pending_buf[Je.d_buf+_t*2+1],It=Je.pending_buf[Je.l_buf+_t],_t++,er===0?_e(Je,It,St):(Xe=U[It],_e(Je,Xe+a+1,St),ie=_[Xe],ie!==0&&(It-=B[Xe],ve(Je,It,ie)),er--,Xe=de(er),_e(Je,Xe,Mt),ie=I[Xe],ie!==0&&(er-=j[Xe],ve(Je,er,ie)));while(_t<Je.last_lit);_e(Je,E,St)}function ye(Je,St){var Mt=St.dyn_tree,er=St.stat_desc.static_tree,It=St.stat_desc.has_stree,_t=St.stat_desc.elems,Xe,ie,X=-1,Be;for(Je.heap_len=0,Je.heap_max=p,Xe=0;Xe<_t;Xe++)Mt[Xe*2]!==0?(Je.heap[++Je.heap_len]=X=Xe,Je.depth[Xe]=0):Mt[Xe*2+1]=0;for(;Je.heap_len<2;)Be=Je.heap[++Je.heap_len]=X<2?++X:0,Mt[Be*2]=1,Je.depth[Be]=0,Je.opt_len--,It&&(Je.static_len-=er[Be*2+1]);for(St.max_code=X,Xe=Je.heap_len>>1;Xe>=1;Xe--)G(Je,Mt,Xe);Be=_t;do Xe=Je.heap[1],Je.heap[1]=Je.heap[Je.heap_len--],G(Je,Mt,1),ie=Je.heap[1],Je.heap[--Je.heap_max]=Xe,Je.heap[--Je.heap_max]=ie,Mt[Be*2]=Mt[Xe*2]+Mt[ie*2],Je.depth[Be]=(Je.depth[Xe]>=Je.depth[ie]?Je.depth[Xe]:Je.depth[ie])+1,Mt[Xe*2+1]=Mt[ie*2+1]=Be,Je.heap[1]=Be++,G(Je,Mt,1);while(Je.heap_len>=2);Je.heap[--Je.heap_max]=Je.heap[1],me(Je,St),ke(Mt,X,Je.bl_count)}function ce(Je,St,Mt){var er,It=-1,_t,Xe=St[0*2+1],ie=0,X=7,Be=4;for(Xe===0&&(X=138,Be=3),St[(Mt+1)*2+1]=65535,er=0;er<=Mt;er++){if(_t=Xe,Xe=St[(er+1)*2+1],++ie<X&&_t===Xe)continue;ie<Be?Je.bl_tree[_t*2]+=ie:_t!==0?(_t!==It&&Je.bl_tree[_t*2]++,Je.bl_tree[T*2]++):ie<=10?Je.bl_tree[w*2]++:Je.bl_tree[S*2]++,ie=0,It=_t,Xe===0?(X=138,Be=3):_t===Xe?(X=6,Be=3):(X=7,Be=4)}}function Te(Je,St,Mt){var er,It=-1,_t,Xe=St[0*2+1],ie=0,X=7,Be=4;for(Xe===0&&(X=138,Be=3),er=0;er<=Mt;er++){if(_t=Xe,Xe=St[(er+1)*2+1],++ie<X&&_t===Xe)continue;if(ie<Be)do _e(Je,_t,Je.bl_tree);while(--ie!==0);else _t!==0?(_t!==It&&(_e(Je,_t,Je.bl_tree),ie--),_e(Je,T,Je.bl_tree),ve(Je,ie-3,2)):ie<=10?(_e(Je,w,Je.bl_tree),ve(Je,ie-3,3)):(_e(Je,S,Je.bl_tree),ve(Je,ie-11,7));ie=0,It=_t,Xe===0?(X=138,Be=3):_t===Xe?(X=6,Be=3):(X=7,Be=4)}}function Se(Je){var St;for(ce(Je,Je.dyn_ltree,Je.l_desc.max_code),ce(Je,Je.dyn_dtree,Je.d_desc.max_code),ye(Je,Je.bl_desc),St=h-1;St>=3&&!(Je.bl_tree[N[St]*2+1]!==0);St--);return Je.opt_len+=3*(St+1)+5+5+4,St}function le(Je,St,Mt,er){var It;for(ve(Je,St-257,5),ve(Je,Mt-1,5),ve(Je,er-4,4),It=0;It<er;It++)ve(Je,Je.bl_tree[N[It]*2+1],3);Te(Je,Je.dyn_ltree,St-1),Te(Je,Je.dyn_dtree,Mt-1)}function fe(Je){var St=4093624447,Mt;for(Mt=0;Mt<=31;Mt++,St>>>=1)if(St&1&&Je.dyn_ltree[Mt*2]!==0)return g;if(Je.dyn_ltree[9*2]!==0||Je.dyn_ltree[10*2]!==0||Je.dyn_ltree[13*2]!==0)return f;for(Mt=32;Mt<a;Mt++)if(Je.dyn_ltree[Mt*2]!==0)return f;return g}var Ee=!1;function Ve(Je){Ee||(se(),Ee=!0),Je.l_desc=new q(Je.dyn_ltree,V),Je.d_desc=new q(Je.dyn_dtree,z),Je.bl_desc=new q(Je.bl_tree,J),Je.bi_buf=0,Je.bi_valid=0,te(Je)}function vt(Je,St,Mt,er){ve(Je,(r<<1)+(er?1:0),3),oe(Je,St,Mt,!0)}function et(Je){ve(Je,i<<1,3),_e(Je,E,D),He(Je)}function Oe(Je,St,Mt,er){var It,_t,Xe=0;Je.level>0?(Je.strm.data_type===c&&(Je.strm.data_type=fe(Je)),ye(Je,Je.l_desc),ye(Je,Je.d_desc),Xe=Se(Je),It=Je.opt_len+3+7>>>3,_t=Je.static_len+3+7>>>3,_t<=It&&(It=_t)):It=_t=Mt+5,Mt+4<=It&&St!==-1?vt(Je,St,Mt,er):Je.strategy===b||_t===It?(ve(Je,(i<<1)+(er?1:0),3),Q(Je,D,F)):(ve(Je,(n<<1)+(er?1:0),3),le(Je,Je.l_desc.max_code+1,Je.d_desc.max_code+1,Xe+1),Q(Je,Je.dyn_ltree,Je.dyn_dtree)),te(Je),er&&Ge(Je)}function Tt(Je,St,Mt){return Je.pending_buf[Je.d_buf+Je.last_lit*2]=St>>>8&255,Je.pending_buf[Je.d_buf+Je.last_lit*2+1]=St&255,Je.pending_buf[Je.l_buf+Je.last_lit]=Mt&255,Je.last_lit++,St===0?Je.dyn_ltree[Mt*2]++:(Je.matches++,St--,Je.dyn_ltree[(U[Mt]+a+1)*2]++,Je.dyn_dtree[de(St)*2]++),Je.last_lit===Je.lit_bufsize-1}},c8qY:function(H,k,d){var O=d("IwbS"),x=d("fls0");function C(n){this._ctor=n||x,this.group=new O.Group}var A=C.prototype;A.isPersistent=function(){return!0},A.updateData=function(n){var e=this,l=e.group,t=e._lineData;e._lineData=n,t||l.removeAll();var a=c(n);n.diff(t).add(function(s){b(e,n,s,a)}).update(function(s,u){g(e,t,n,u,s,a)}).remove(function(s){l.remove(t.getItemGraphicEl(s))}).execute()};function b(n,e,l,t){var a=e.getItemLayout(l);if(!r(a))return;var s=new n._ctor(e,l,t);e.setItemGraphicEl(l,s),n.group.add(s)}function g(n,e,l,t,a,s){var u=e.getItemGraphicEl(t);if(!r(l.getItemLayout(a))){n.group.remove(u);return}u?u.updateData(l,a,s):u=new n._ctor(l,a,s),l.setItemGraphicEl(a,u),n.group.add(u)}A.updateLayout=function(){var n=this._lineData;if(!n)return;n.eachItemGraphicEl(function(e,l){e.updateLayout(n,l)},this)},A.incrementalPrepareUpdate=function(n){this._seriesScope=c(n),this._lineData=null,this.group.removeAll()};function f(n){return n.animators&&n.animators.length>0}A.incrementalUpdate=function(n,e){function l(u){!u.isGroup&&!f(u)&&(u.incremental=u.useHoverLayer=!0)}for(var t=n.start;t<n.end;t++){var a=e.getItemLayout(t);if(r(a)){var s=new this._ctor(e,t,this._seriesScope);s.traverse(l),this.group.add(s),e.setItemGraphicEl(t,s)}}};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")}}A.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},A._clearIncremental=function(){var n=this._incremental;n&&n.clearDisplaybles()};function o(n){return isNaN(n[0])||isNaN(n[1])}function r(n){return!o(n[0])&&!o(n[1])}var i=C;H.exports=i},cCMj:function(H,k,d){var O=d("bYtY"),x={updateSelectedMap:function(C){this._targetList=O.isArray(C)?C.slice():[],this._selectTargetMap=O.reduce(C||[],function(A,b){return A.set(b.name,b),A},O.createHashMap())},select:function(C,A){var b=A!=null?this._targetList[A]:this._selectTargetMap.get(C),g=this.get("selectedMode");g==="single"&&this._selectTargetMap.each(function(f){f.selected=!1}),b&&(b.selected=!0)},unSelect:function(C,A){var b=A!=null?this._targetList[A]:this._selectTargetMap.get(C);b&&(b.selected=!1)},toggleSelected:function(C,A){var b=A!=null?this._targetList[A]:this._selectTargetMap.get(C);if(b!=null)return this[b.selected?"unSelect":"select"](C,A),b.selected},isSelected:function(C,A){var b=A!=null?this._targetList[A]:this._selectTargetMap.get(C);return b&&b.selected}};H.exports=x},cVA7:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=d("MT78"),x=b(O),C=d("t3Fx"),A=b(C);function b(r){return r&&r.__esModule?r:{default:r}}function g(r,i){if(!(r instanceof i))throw new TypeError("Cannot call a class as a function")}function f(r,i){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i&&(typeof i=="object"||typeof i=="function")?i:r}function c(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);r.prototype=Object.create(i&&i.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(r,i):r.__proto__=i)}var o=function(r){c(i,r);function i(n){g(this,i);var e=f(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,n));return e.echartsLib=x.default,e}return i}(A.default);k.default=o},cWXX:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("oIFs"),A=d.n(C)},ca2m:function(H,k,d){var O=d("bYtY"),x={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"}},x),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}}},x),C.timeAxis=O.defaults({scale:!0,min:"dataMin",max:"dataMax"},C.valueAxis),C.logAxis=O.defaults({scale:!0,logBase:10},C.valueAxis);var A=C;H.exports=A},cbJ4:function(H,k,d){var O=d("bYtY"),x=O.createHashMap;function C(A){A.eachSeriesByType("themeRiver",function(b){var g=b.getData(),f=b.getRawData(),c=b.get("color"),o=x();g.each(function(r){o.set(g.getRawIndex(r),r)}),f.each(function(r){var i=f.getName(r),n=c[(b.nameMap.get(i)-1)%c.length];f.setItemVisual(r,"color",n);var e=o.get(r);e!=null&&g.setItemVisual(e,"color",n)})})}H.exports=C},chpo:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=1,x=function(){return"".concat(O++)};k.default=x},cpOr:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("T4UG"),A=d("YXkt"),b=d("bYtY"),g=b.concatArray,f=b.mergeAll,c=b.map,o=d("7aKB"),r=o.encodeHTML,i=d("IDmD"),n=typeof Uint32Array=="undefined"?Array:Uint32Array,e=typeof Float64Array=="undefined"?Array:Float64Array;function l(s){var u=s.data;u&&u[0]&&u[0][0]&&u[0][0].coord&&(s.data=c(u,function(h){var p=[h[0].coord,h[1].coord],m={coords:p};return h[0].name&&(m.fromName=h[0].name),h[1].name&&(m.toName=h[1].name),f([m,h[0],h[1]])}))}var t=C.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(s){s.data=s.data||[],l(s);var u=this._processFlatCoordsArray(s.data);this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset,u.flatCoords&&(s.data=new Float32Array(u.count)),t.superApply(this,"init",arguments)},mergeOption:function(s){if(s.data=s.data||[],l(s),s.data){var u=this._processFlatCoordsArray(s.data);this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset,u.flatCoords&&(s.data=new Float32Array(u.count))}t.superApply(this,"mergeOption",arguments)},appendData:function(s){var u=this._processFlatCoordsArray(s.data);u.flatCoords&&(this._flatCoords?(this._flatCoords=g(this._flatCoords,u.flatCoords),this._flatCoordsOffset=g(this._flatCoordsOffset,u.flatCoordsOffset)):(this._flatCoords=u.flatCoords,this._flatCoordsOffset=u.flatCoordsOffset),s.data=new Float32Array(u.count)),this.getRawData().appendData(s.data)},_getCoordsFromItemModel:function(s){var u=this.getData().getItemModel(s),h=u.option instanceof Array?u.option:u.getShallow("coords");return h},getLineCoordsCount:function(s){return this._flatCoordsOffset?this._flatCoordsOffset[s*2+1]:this._getCoordsFromItemModel(s).length},getLineCoords:function(s,u){if(this._flatCoordsOffset){for(var h=this._flatCoordsOffset[s*2],p=this._flatCoordsOffset[s*2+1],m=0;m<p;m++)u[m]=u[m]||[],u[m][0]=this._flatCoords[h+m*2],u[m][1]=this._flatCoords[h+m*2+1];return p}else{for(var v=this._getCoordsFromItemModel(s),m=0;m<v.length;m++)u[m]=u[m]||[],u[m][0]=v[m][0],u[m][1]=v[m][1];return v.length}},_processFlatCoordsArray:function(s){var u=0;if(this._flatCoords&&(u=this._flatCoords.length),typeof s[0]=="number"){for(var h=s.length,p=new n(h),m=new e(h),v=0,y=0,E=0,T=0;T<h;){E++;var w=s[T++];p[y++]=v+u,p[y++]=w;for(var S=0;S<w;S++){var _=s[T++],I=s[T++];m[v++]=_,m[v++]=I,T>h}}return{flatCoordsOffset:new Uint32Array(p.buffer,0,y),flatCoords:m,count:E}}return{flatCoordsOffset:null,flatCoords:null,count:s.length}},getInitialData:function(s,u){var h=new A(["value"],this);return h.hasItemOption=!1,h.initData(s.data,[],function(p,m,v,y){if(p instanceof Array)return NaN;h.hasItemOption=!0;var E=p.value;if(E!=null)return E instanceof Array?E[y]:E}),h},formatTooltip:function(s){var u=this.getData(),h=u.getItemModel(s),p=h.get("name");if(p)return p;var m=h.get("fromName"),v=h.get("toName"),y=[];return m!=null&&y.push(m),v!=null&&y.push(v),r(y.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var s=this.option.progressive;return s==null?this.option.large?1e4:this.get("progressive"):s},getProgressiveThreshold:function(){var s=this.option.progressiveThreshold;return s==null?this.option.large?2e4:this.get("progressiveThreshold"):s},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;H.exports=a},crZl:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("IwbS"),A=d("7aKB"),b=d("+TT/"),g=d("XxSj"),f=O.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(c,o){this.ecModel=c,this.api=o,this.visualMapModel},render:function(c,o,r,i){if(this.visualMapModel=c,c.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(c){var o=this.visualMapModel,r=A.normalizeCssArray(o.get("padding")||0),i=c.getBoundingRect();c.add(new C.Rect({z2:-1,silent:!0,shape:{x:i.x-r[3],y:i.y-r[0],width:i.width+r[3]+r[1],height:i.height+r[0]+r[2]},style:{fill:o.get("backgroundColor"),stroke:o.get("borderColor"),lineWidth:o.get("borderWidth")}}))},getControllerVisual:function(c,o,r){r=r||{};var i=r.forceState,n=this.visualMapModel,e={};if(o==="symbol"&&(e.symbol=n.get("itemSymbol")),o==="color"){var l=n.get("contentColor");e.color=l}function t(h){return e[h]}function a(h,p){e[h]=p}var s=n.controllerVisuals[i||n.getValueState(c)],u=g.prepareVisualTypes(s);return x.each(u,function(h){var p=s[h];r.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",p=s.__alphaForOpacity),g.dependsOn(h,o)&&(p&&p.applyVisual(c,t,a))}),e[o]},positionGroup:function(c){var o=this.visualMapModel,r=this.api;b.positionElement(c,o.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})},doRender:x.noop});H.exports=f},crp1:function(H,k,d){"use strict";d.d(k,"b",function(){return kt}),d.d(k,"a",function(){return Sn});var O={},x=function(it,rt,Pt,Ht,bt){var Gt=O[rt]||(O[rt]=URL.createObjectURL(new Blob([it],{type:"text/javascript"}))),ut=new Worker(Gt);return ut.onerror=function(Kt){return bt(Kt.error,null)},ut.onmessage=function(Kt){return bt(null,Kt.data)},ut.postMessage(Pt,Ht),ut},C=Uint8Array,A=Uint16Array,b=Uint32Array,g=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]),f=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]),o=function(it,rt){for(var Pt=new A(31),Ht=0;Ht<31;++Ht)Pt[Ht]=rt+=1<<it[Ht-1];for(var bt=new b(Pt[30]),Ht=1;Ht<30;++Ht)for(var Gt=Pt[Ht];Gt<Pt[Ht+1];++Gt)bt[Gt]=Gt-Pt[Ht]<<5|Ht;return[Pt,bt]},r=o(g,2),i=r[0],n=r[1];i[28]=258,n[258]=28;for(var e=o(f,0),l=e[0],t=e[1],a=new A(32768),s=0;s<32768;++s){var u=(s&43690)>>>1|(s&21845)<<1;u=(u&52428)>>>2|(u&13107)<<2,u=(u&61680)>>>4|(u&3855)<<4,a[s]=((u&65280)>>>8|(u&255)<<8)>>>1}for(var h=function(it,rt,Pt){for(var Ht=it.length,bt=0,Gt=new A(rt);bt<Ht;++bt)++Gt[it[bt]-1];var ut=new A(rt);for(bt=0;bt<rt;++bt)ut[bt]=ut[bt-1]+Gt[bt-1]<<1;var Kt;if(Pt){Kt=new A(1<<rt);var Ar=15-rt;for(bt=0;bt<Ht;++bt)if(it[bt])for(var ir=bt<<4|it[bt],pr=rt-it[bt],tn=ut[it[bt]-1]++<<pr,fn=tn|(1<<pr)-1;tn<=fn;++tn)Kt[a[tn]>>>Ar]=ir}else for(Kt=new A(Ht),bt=0;bt<Ht;++bt)Kt[bt]=a[ut[it[bt]-1]++]>>>15-it[bt];return Kt},p=new C(288),s=0;s<144;++s)p[s]=8;for(var s=144;s<256;++s)p[s]=9;for(var s=256;s<280;++s)p[s]=7;for(var s=280;s<288;++s)p[s]=8;for(var m=new C(32),s=0;s<32;++s)m[s]=5;var v=h(p,9,0),y=h(p,9,1),E=h(m,5,0),T=h(m,5,1),w=function(it){for(var rt=it[0],Pt=1;Pt<it.length;++Pt)it[Pt]>rt&&(rt=it[Pt]);return rt},S=function(it,rt,Pt){var Ht=rt/8>>0;return(it[Ht]|it[Ht+1]<<8)>>>(rt&7)&Pt},_=function(it,rt){var Pt=rt/8>>0;return(it[Pt]|it[Pt+1]<<8|it[Pt+2]<<16)>>>(rt&7)},I=function(it){return(it/8>>0)+(it&7&&1)},L=function(it,rt,Pt){(rt==null||rt<0)&&(rt=0),(Pt==null||Pt>it.length)&&(Pt=it.length);var Ht=new(it instanceof A?A:it instanceof b?b:C)(Pt-rt);return Ht.set(it.subarray(rt,Pt)),Ht},N=function(it,rt,Pt){var Ht=it.length,bt=!rt||Pt,Gt=!Pt||Pt.i;Pt||(Pt={}),rt||(rt=new C(Ht*3));var ut=function(Ki){var Hr=rt.length;if(Ki>Hr){var Cn=new C(Math.max(Hr*2,Ki));Cn.set(rt),rt=Cn}},Kt=Pt.f||0,Ar=Pt.p||0,ir=Pt.b||0,pr=Pt.l,tn=Pt.d,fn=Pt.m,Mn=Pt.n,Yn=Ht*8;do{if(!pr){Pt.f=Kt=S(it,Ar,1);var si=S(it,Ar+1,3);if(Ar+=3,si)if(si==1)pr=y,tn=T,fn=9,Mn=5;else if(si==2){var Ze=S(it,Ar,31)+257,we=S(it,Ar+10,15)+4,Ne=Ze+S(it,Ar+5,31)+1;Ar+=14;for(var Fe=new C(Ne),Ye=new C(19),We=0;We<we;++We)Ye[c[We]]=S(it,Ar+We*3,7);Ar+=we*3;var qe=w(Ye),yt=(1<<qe)-1;if(!Gt&&Ar+Ne*(qe+7)>Yn)break;for(var ot=h(Ye,qe,1),We=0;We<Ne;){var $t=ot[S(it,Ar,yt)];Ar+=$t&15;var vi=$t>>>4;if(vi<16)Fe[We++]=vi;else{var Mr=0,Sr=0;for(vi==16?(Sr=3+S(it,Ar,3),Ar+=2,Mr=Fe[We-1]):vi==17?(Sr=3+S(it,Ar,7),Ar+=3):vi==18&&(Sr=11+S(it,Ar,127),Ar+=7);Sr--;)Fe[We++]=Mr}}var jr=Fe.subarray(0,Ze),tr=Fe.subarray(Ze);fn=w(jr),Mn=w(tr),pr=h(jr,fn,1),tn=h(tr,Mn,1)}else throw"invalid block type";else{var vi=I(Ar)+4,xi=it[vi-4]|it[vi-3]<<8,_i=vi+xi;if(_i>Ht){if(Gt)throw"unexpected EOF";break}bt&&ut(ir+xi),rt.set(it.subarray(vi,_i),ir),Pt.b=ir+=xi,Pt.p=Ar=_i*8;continue}if(Ar>Yn)throw"unexpected EOF"}bt&&ut(ir+131072);for(var gn=(1<<fn)-1,sr=(1<<Mn)-1,un=fn+Mn+18;Gt||Ar+un<Yn;){var Mr=pr[_(it,Ar)&gn],an=Mr>>>4;if(Ar+=Mr&15,Ar>Yn)throw"unexpected EOF";if(!Mr)throw"invalid length/literal";if(an<256)rt[ir++]=an;else if(an==256){pr=null;break}else{var Pr=an-254;if(an>264){var We=an-257,In=g[We];Pr=S(it,Ar,(1<<In)-1)+i[We],Ar+=In}var ci=tn[_(it,Ar)&sr],Ui=ci>>>4;if(!ci)throw"invalid distance";Ar+=ci&15;var tr=l[Ui];if(Ui>3){var In=f[Ui];tr+=_(it,Ar)&(1<<In)-1,Ar+=In}if(Ar>Yn)throw"unexpected EOF";bt&&ut(ir+131072);for(var ki=ir+Pr;ir<ki;ir+=4)rt[ir]=rt[ir-tr],rt[ir+1]=rt[ir+1-tr],rt[ir+2]=rt[ir+2-tr],rt[ir+3]=rt[ir+3-tr];ir=ki}}Pt.l=pr,Pt.p=Ar,Pt.b=ir,pr&&(Kt=1,Pt.m=fn,Pt.d=tn,Pt.n=Mn)}while(!Kt);return ir==rt.length?rt:L(rt,0,ir)},R=function(it,rt,Pt){Pt<<=rt&7;var Ht=rt/8>>0;it[Ht]|=Pt,it[Ht+1]|=Pt>>>8},D=function(it,rt,Pt){Pt<<=rt&7;var Ht=rt/8>>0;it[Ht]|=Pt,it[Ht+1]|=Pt>>>8,it[Ht+2]|=Pt>>>16},F=function(it,rt){for(var Pt=[],Ht=0;Ht<it.length;++Ht)it[Ht]&&Pt.push({s:Ht,f:it[Ht]});var bt=Pt.length,Gt=Pt.slice();if(!bt)return[new C(0),0];if(bt==1){var ut=new C(Pt[0].s+1);return ut[Pt[0].s]=1,[ut,1]}Pt.sort(function(Ne,Fe){return Ne.f-Fe.f}),Pt.push({s:-1,f:25001});var Kt=Pt[0],Ar=Pt[1],ir=0,pr=1,tn=2;for(Pt[0]={s:-1,f:Kt.f+Ar.f,l:Kt,r:Ar};pr!=bt-1;)Kt=Pt[Pt[ir].f<Pt[tn].f?ir++:tn++],Ar=Pt[ir!=pr&&Pt[ir].f<Pt[tn].f?ir++:tn++],Pt[pr++]={s:-1,f:Kt.f+Ar.f,l:Kt,r:Ar};for(var fn=Gt[0].s,Ht=1;Ht<bt;++Ht)Gt[Ht].s>fn&&(fn=Gt[Ht].s);var Mn=new A(fn+1),Yn=M(Pt[pr-1],Mn,0);if(Yn>rt){var Ht=0,si=0,vi=Yn-rt,xi=1<<vi;for(Gt.sort(function(Fe,Ye){return Mn[Ye.s]-Mn[Fe.s]||Fe.f-Ye.f});Ht<bt;++Ht){var _i=Gt[Ht].s;if(Mn[_i]>rt)si+=xi-(1<<Yn-Mn[_i]),Mn[_i]=rt;else break}for(si>>>=vi;si>0;){var Ze=Gt[Ht].s;Mn[Ze]<rt?si-=1<<rt-Mn[Ze]++-1:++Ht}for(;Ht>=0&&si;--Ht){var we=Gt[Ht].s;Mn[we]==rt&&(--Mn[we],++si)}Yn=rt}return[new C(Mn),Yn]},M=function Et(it,rt,Pt){return it.s==-1?Math.max(Et(it.l,rt,Pt+1),Et(it.r,rt,Pt+1)):rt[it.s]=Pt},U=function(it){for(var rt=it.length;rt&&!it[--rt];);for(var Pt=new A(++rt),Ht=0,bt=it[0],Gt=1,ut=function(ir){Pt[Ht++]=ir},Kt=1;Kt<=rt;++Kt)if(it[Kt]==bt&&Kt!=rt)++Gt;else{if(!bt&&Gt>2){for(;Gt>138;Gt-=138)ut(32754);Gt>2&&(ut(Gt>10?Gt-11<<5|28690:Gt-3<<5|12305),Gt=0)}else if(Gt>3){for(ut(bt),--Gt;Gt>6;Gt-=6)ut(8304);Gt>2&&(ut(Gt-3<<5|8208),Gt=0)}for(;Gt--;)ut(bt);Gt=1,bt=it[Kt]}return[Pt.subarray(0,Ht),rt]},B=function(it,rt){for(var Pt=0,Ht=0;Ht<rt.length;++Ht)Pt+=it[Ht]*rt[Ht];return Pt},j=function(it,rt,Pt){var Ht=Pt.length,bt=I(rt+2);it[bt]=Ht&255,it[bt+1]=Ht>>>8,it[bt+2]=it[bt]^255,it[bt+3]=it[bt+1]^255;for(var Gt=0;Gt<Ht;++Gt)it[bt+Gt+4]=Pt[Gt];return(bt+4+Ht)*8},W=function(it,rt,Pt,Ht,bt,Gt,ut,Kt,Ar,ir,pr){R(rt,pr++,Pt),++bt[256];for(var tn=F(bt,15),fn=tn[0],Mn=tn[1],Yn=F(Gt,15),si=Yn[0],vi=Yn[1],xi=U(fn),_i=xi[0],Ze=xi[1],we=U(si),Ne=we[0],Fe=we[1],Ye=new A(19),We=0;We<_i.length;++We)Ye[_i[We]&31]++;for(var We=0;We<Ne.length;++We)Ye[Ne[We]&31]++;for(var qe=F(Ye,7),yt=qe[0],ot=qe[1],$t=19;$t>4&&!yt[c[$t-1]];--$t);var Mr=ir+5<<3,Sr=B(bt,p)+B(Gt,m)+ut,jr=B(bt,fn)+B(Gt,si)+ut+14+3*$t+B(Ye,yt)+(2*Ye[16]+3*Ye[17]+7*Ye[18]);if(Mr<=Sr&&Mr<=jr)return j(rt,pr,it.subarray(Ar,Ar+ir));var tr,gn,sr,un;if(R(rt,pr,1+(jr<Sr)),pr+=2,jr<Sr){tr=h(fn,Mn,0),gn=fn,sr=h(si,vi,0),un=si;var an=h(yt,ot,0);R(rt,pr,Ze-257),R(rt,pr+5,Fe-1),R(rt,pr+10,$t-4),pr+=14;for(var We=0;We<$t;++We)R(rt,pr+3*We,yt[c[We]]);pr+=3*$t;for(var Pr=[_i,Ne],In=0;In<2;++In)for(var ci=Pr[In],We=0;We<ci.length;++We){var Ui=ci[We]&31;R(rt,pr,an[Ui]),pr+=yt[Ui],Ui>15&&(R(rt,pr,ci[We]>>>5&127),pr+=ci[We]>>>12)}}else tr=v,gn=p,sr=E,un=m;for(var We=0;We<Kt;++We)if(Ht[We]>255){var Ui=Ht[We]>>>18&31;D(rt,pr,tr[Ui+257]),pr+=gn[Ui+257],Ui>7&&(R(rt,pr,Ht[We]>>>23&31),pr+=g[Ui]);var ki=Ht[We]&31;D(rt,pr,sr[ki]),pr+=un[ki],ki>3&&(D(rt,pr,Ht[We]>>>5&8191),pr+=f[ki])}else D(rt,pr,tr[Ht[We]]),pr+=gn[Ht[We]];return D(rt,pr,tr[256]),pr+gn[256]},V=new b([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),z=new C(0),J=function(it,rt,Pt,Ht,bt,Gt){var ut=it.length,Kt=new C(Ht+ut+5*(1+Math.floor(ut/7e3))+bt),Ar=Kt.subarray(Ht,Kt.length-bt),ir=0;if(!rt||ut<8)for(var pr=0;pr<=ut;pr+=65535){var tn=pr+65535;tn<ut?ir=j(Ar,ir,it.subarray(pr,tn)):(Ar[pr]=Gt,ir=j(Ar,ir,it.subarray(pr,ut)))}else{for(var fn=V[rt-1],Mn=fn>>>13,Yn=fn&8191,si=(1<<Pt)-1,vi=new A(32768),xi=new A(si+1),_i=Math.ceil(Pt/3),Ze=2*_i,we=function(Gr){return(it[Gr]^it[Gr+1]<<_i^it[Gr+2]<<Ze)&si},Ne=new b(25e3),Fe=new A(288),Ye=new A(32),We=0,qe=0,pr=0,yt=0,ot=0,$t=0;pr<ut;++pr){var Mr=we(pr),Sr=pr&32767,jr=xi[Mr];if(vi[Sr]=jr,xi[Mr]=Sr,ot<=pr){var tr=ut-pr;if((We>7e3||yt>24576)&&tr>423){ir=W(it,Ar,0,Ne,Fe,Ye,qe,yt,$t,pr-$t,ir),yt=We=qe=0,$t=pr;for(var gn=0;gn<286;++gn)Fe[gn]=0;for(var gn=0;gn<30;++gn)Ye[gn]=0}var sr=2,un=0,an=Yn,Pr=Sr-jr&32767;if(tr>2&&Mr==we(pr-Pr))for(var In=Math.min(Mn,tr)-1,ci=Math.min(32767,pr),Ui=Math.min(258,tr);Pr<=ci&&--an&&Sr!=jr;){if(it[pr+sr]==it[pr+sr-Pr]){for(var ki=0;ki<Ui&&it[pr+ki]==it[pr+ki-Pr];++ki);if(ki>sr){if(sr=ki,un=Pr,ki>In)break;for(var Ri=Math.min(Pr,ki-2),Ki=0,gn=0;gn<Ri;++gn){var Hr=pr-Pr+gn+32768&32767,Cn=vi[Hr],kr=Hr-Cn+32768&32767;kr>Ki&&(Ki=kr,jr=Hr)}}}Sr=jr,jr=vi[Sr],Pr+=Sr-jr+32768&32767}if(un){Ne[yt++]=268435456|n[sr]<<18|t[un];var mr=n[sr]&31,Cr=t[un]&31;qe+=g[mr]+f[Cr],++Fe[257+mr],++Ye[Cr],ot=pr+sr,++We}else Ne[yt++]=it[pr],++Fe[it[pr]]}}ir=W(it,Ar,Gt,Ne,Fe,Ye,qe,yt,$t,pr-$t,ir),Gt||(ir=j(Ar,ir,z))}return L(Kt,0,Ht+I(ir)+bt)},q=function(){for(var Et=new b(256),it=0;it<256;++it){for(var rt=it,Pt=9;--Pt;)rt=(rt&1&&3988292384)^rt>>>1;Et[it]=rt}return Et}(),de=function(){var it=4294967295;return{p:function(Pt){for(var Ht=it,bt=0;bt<Pt.length;++bt)Ht=q[Ht&255^Pt[bt]]^Ht>>>8;it=Ht},d:function(){return it^4294967295}}},ae=function(){var it=1,rt=0;return{p:function(Ht){for(var bt=it,Gt=rt,ut=Ht.length,Kt=0;Kt!=ut;){for(var Ar=Math.min(Kt+5552,ut);Kt<Ar;++Kt)bt+=Ht[Kt],Gt+=bt;bt%=65521,Gt%=65521}it=bt,rt=Gt},d:function(){return(it>>>8<<16|(rt&255)<<8|rt>>>8)+((it&255)<<23)*2}}},ve=function(it,rt,Pt,Ht,bt){return J(it,rt.level==null?6:rt.level,rt.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(it.length)))*1.5):12+rt.mem,Pt,Ht,!bt)},_e=function(it,rt){var Pt={};for(var Ht in it)Pt[Ht]=it[Ht];for(var Ht in rt)Pt[Ht]=rt[Ht];return Pt},Ie=function(it,rt,Pt){for(var Ht=it(),bt=it.toString(),Gt=bt.slice(bt.indexOf("[")+1,bt.lastIndexOf("]")).replace(/ /g,"").split(","),ut=0;ut<Ht.length;++ut){var Kt=Ht[ut],Ar=Gt[ut];if(typeof Kt=="function"){rt+=";"+Ar+"=";var ir=Kt.toString();if(Kt.prototype)if(ir.indexOf("[native code]")!=-1){var pr=ir.indexOf(" ",8)+1;rt+=ir.slice(pr,ir.indexOf("(",pr))}else{rt+=ir;for(var tn in Kt.prototype)rt+=";"+Ar+".prototype."+tn+"="+Kt.prototype[tn].toString()}else rt+=ir}else Pt[Ar]=Kt}return[rt,Pt]},He=[],me=function(it){var rt=[];for(var Pt in it)(it[Pt]instanceof C||it[Pt]instanceof A||it[Pt]instanceof b)&&rt.push((it[Pt]=new it[Pt].constructor(it[Pt])).buffer);return rt},ke=function(it,rt,Pt,Ht){var bt;if(!He[Pt]){for(var Gt="",ut={},Kt=it.length-1,Ar=0;Ar<Kt;++Ar)bt=Ie(it[Ar],Gt,ut),Gt=bt[0],ut=bt[1];He[Pt]=Ie(it[Kt],Gt,ut)}var ir=_e({},He[Pt][1]);return x(He[Pt][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+rt.toString()+"}",Pt,ir,me(ir),Ht)},se=function(){return[C,A,b,g,f,c,i,l,y,T,a,h,w,S,_,I,L,N,Be,Q,ye]},te=function(){return[C,A,b,g,f,c,n,t,v,p,E,m,a,V,z,h,R,D,F,M,U,B,j,W,I,L,J,ve,_t,Q]},Ge=function(){return[Ve,Oe,Ee,de,q]},oe=function(){return[vt,et]},Y=function(){return[Tt,Ee,ae]},G=function(){return[Je]},Q=function(it){return postMessage(it,[it.buffer])},ye=function(it){return it&&it.size&&new C(it.size)},ce=function(it,rt,Pt,Ht,bt,Gt){var ut=ke(Pt,Ht,bt,function(Kt,Ar){ut.terminate(),Gt(Kt,Ar)});return rt.consume||(it=new C(it)),ut.postMessage([it,rt],[it.buffer]),function(){ut.terminate()}},Te=function(it){return it.ondata=function(rt,Pt){return postMessage([rt,Pt],[rt.buffer])},function(rt){return it.push(rt.data[0],rt.data[1])}},Se=function(it,rt,Pt,Ht,bt){var Gt,ut=ke(it,Ht,bt,function(Kt,Ar){Kt?(ut.terminate(),rt.ondata.call(rt,Kt)):(Ar[1]&&ut.terminate(),rt.ondata.call(rt,Kt,Ar[0],Ar[1]))});ut.postMessage(Pt),rt.push=function(Kt,Ar){if(Gt)throw"stream finished";if(!rt.ondata)throw"no stream handler";ut.postMessage([Kt,Gt=Ar],[Kt.buffer])},rt.terminate=function(){ut.terminate()}},le=function(it,rt){return it[rt]|it[rt+1]<<8},fe=function(it,rt){return(it[rt]|it[rt+1]<<8|it[rt+2]<<16)+(it[rt+3]<<23)*2},Ee=function(it,rt,Pt){for(;Pt;++rt)it[rt]=Pt,Pt>>>=8},Ve=function(it,rt){var Pt=rt.filename;if(it[0]=31,it[1]=139,it[2]=8,it[8]=rt.level<2?4:rt.level==9?2:0,it[9]=3,rt.mtime!=0&&Ee(it,4,Math.floor(new Date(rt.mtime||Date.now())/1e3)),Pt){it[3]=8;for(var Ht=0;Ht<=Pt.length;++Ht)it[Ht+10]=Pt.charCodeAt(Ht)}},vt=function(it){if(it[0]!=31||it[1]!=139||it[2]!=8)throw"invalid gzip data";var rt=it[3],Pt=10;rt&4&&(Pt+=it[10]|(it[11]<<8)+2);for(var Ht=(rt>>3&1)+(rt>>4&1);Ht>0;Ht-=!it[Pt++]);return Pt+(rt&2)},et=function(it){var rt=it.length;return(it[rt-4]|it[rt-3]<<8|it[rt-2]<<16)+2*(it[rt-1]<<23)},Oe=function(it){return 10+(it.filename&&it.filename.length+1||0)},Tt=function(it,rt){var Pt=rt.level,Ht=Pt==0?0:Pt<6?1:Pt==9?3:2;it[0]=120,it[1]=Ht<<6|(Ht?32-2*Ht:1)},Je=function(it){if((it[0]&15)!=8||it[0]>>>4>7||(it[0]<<8|it[1])%31)throw"invalid zlib data";if(it[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function St(Et,it){return!it&&typeof Et=="function"&&(it=Et,Et={}),this.ondata=it,Et}var Mt=function(){function Et(it,rt){!rt&&typeof it=="function"&&(rt=it,it={}),this.ondata=rt,this.o=it||{}}return Et.prototype.p=function(it,rt){this.ondata(ve(it,this.o,0,0,!rt),rt)},Et.prototype.push=function(it,rt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=rt,this.p(it,rt||!1)},Et}(),er=function(){function Et(it,rt){Se([te,function(){return[Te,Mt]}],this,St.call(this,it,rt),function(Pt){var Ht=new Mt(Pt.data);onmessage=Te(Ht)},6)}return Et}();function It(Et,it,rt){if(rt||(rt=it,it={}),typeof rt!="function")throw"no callback";return ce(Et,it,[te],function(Pt){return Q(_t(Pt.data[0],Pt.data[1]))},0,rt)}function _t(Et,it){return it===void 0&&(it={}),ve(Et,it,0,0)}var Xe=function(){function Et(it){this.s={},this.p=new C(0),this.ondata=it}return Et.prototype.e=function(it){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var rt=this.p.length,Pt=new C(rt+it.length);Pt.set(this.p),Pt.set(it,rt),this.p=Pt},Et.prototype.c=function(it){this.d=this.s.i=it||!1;var rt=this.s.b,Pt=N(this.p,this.o,this.s);this.ondata(L(Pt,rt,this.s.b),this.d),this.o=L(Pt,this.s.b-32768),this.s.b=this.o.length,this.p=L(this.p,this.s.p/8>>0),this.s.p&=7},Et.prototype.push=function(it,rt){this.e(it),this.c(rt)},Et}(),ie=function(){function Et(it){this.ondata=it,Se([se,function(){return[Te,Xe]}],this,0,function(){var rt=new Xe;onmessage=Te(rt)},7)}return Et}();function X(Et,it,rt){if(rt||(rt=it,it={}),typeof rt!="function")throw"no callback";return ce(Et,it,[se],function(Pt){return Q(Be(Pt.data[0],ye(Pt.data[1])))},1,rt)}function Be(Et,it){return N(Et,it)}var Ce=function(){function Et(it,rt){this.c=de(),this.l=0,this.v=1,Mt.call(this,it,rt)}return Et.prototype.push=function(it,rt){Mt.prototype.push.call(this,it,rt)},Et.prototype.p=function(it,rt){this.c.p(it),this.l+=it.length;var Pt=ve(it,this.o,this.v&&Oe(this.o),rt&&8,!rt);this.v&&(Ve(Pt,this.o),this.v=0),rt&&(Ee(Pt,Pt.length-8,this.c.d()),Ee(Pt,Pt.length-4,this.l)),this.ondata(Pt,rt)},Et}(),Z=function(){function Et(it,rt){Se([te,Ge,function(){return[Te,Mt,Ce]}],this,St.call(this,it,rt),function(Pt){var Ht=new Ce(Pt.data);onmessage=Te(Ht)},8)}return Et}();function nt(Et,it,rt){if(rt||(rt=it,it={}),typeof rt!="function")throw"no callback";return ce(Et,it,[te,Ge,function(){return[ct]}],function(Pt){return Q(ct(Pt.data[0],Pt.data[1]))},2,rt)}function ct(Et,it){it===void 0&&(it={});var rt=de(),Pt=Et.length;rt.p(Et);var Ht=ve(Et,it,Oe(it),8),bt=Ht.length;return Ve(Ht,it),Ee(Ht,bt-8,rt.d()),Ee(Ht,bt-4,Pt),Ht}var Qe=function(){function Et(it){this.v=1,Xe.call(this,it)}return Et.prototype.push=function(it,rt){if(Xe.prototype.e.call(this,it),this.v){var Pt=vt(this.p);if(Pt>=this.p.length&&!rt)return;this.p=this.p.subarray(Pt),this.v=0}if(rt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Xe.prototype.c.call(this,rt)},Et}(),dt=function(){function Et(it){this.ondata=it,Se([se,oe,function(){return[Te,Xe,Qe]}],this,0,function(){var rt=new Qe;onmessage=Te(rt)},9)}return Et}();function Ft(Et,it,rt){if(rt||(rt=it,it={}),typeof rt!="function")throw"no callback";return ce(Et,it,[se,oe,function(){return[Lr]}],function(Pt){return Q(Lr(Pt.data[0]))},3,rt)}function Lr(Et,it){return N(Et.subarray(vt(Et),-8),it||new C(et(Et)))}var Wt=function(){function Et(it,rt){this.c=ae(),this.v=1,Mt.call(this,it,rt)}return Et.prototype.push=function(it,rt){Mt.prototype.push.call(this,it,rt)},Et.prototype.p=function(it,rt){this.c.p(it);var Pt=ve(it,this.o,this.v&&2,rt&&4,!rt);this.v&&(Tt(Pt,this.o),this.v=0),rt&&Ee(Pt,Pt.length-4,this.c.d()),this.ondata(Pt,rt)},Et}(),ar=function(){function Et(it,rt){Se([te,Y,function(){return[Te,Mt,Wt]}],this,St.call(this,it,rt),function(Pt){var Ht=new Wt(Pt.data);onmessage=Te(Ht)},10)}return Et}();function Ut(Et,it,rt){if(rt||(rt=it,it={}),typeof rt!="function")throw"no callback";return ce(Et,it,[te,Y,function(){return[kt]}],function(Pt){return Q(kt(Pt.data[0],Pt.data[1]))},4,rt)}function kt(Et,it){it===void 0&&(it={});var rt=ae();rt.p(Et);var Pt=ve(Et,it,2,4);return Tt(Pt,it),Ee(Pt,Pt.length-4,rt.d()),Pt}var st=function(){function Et(it){this.v=1,Xe.call(this,it)}return Et.prototype.push=function(it,rt){if(Xe.prototype.e.call(this,it),this.v){if(this.p.length<2&&!rt)return;this.p=this.p.subarray(2),this.v=0}if(rt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Xe.prototype.c.call(this,rt)},Et}(),Rr=function(){function Et(it){this.ondata=it,Se([se,G,function(){return[Te,Xe,st]}],this,0,function(){var rt=new st;onmessage=Te(rt)},11)}return Et}();function on(Et,it,rt){if(rt||(rt=it,it={}),typeof rt!="function")throw"no callback";return ce(Et,it,[se,G,function(){return[Sn]}],function(Pt){return Q(Sn(Pt.data[0],ye(Pt.data[1])))},5,rt)}function Sn(Et,it){return N((Je(Et),Et.subarray(2,-4)),it)}var zn=function(){function Et(it){this.G=Qe,this.I=Xe,this.Z=st,this.ondata=it}return Et.prototype.push=function(it,rt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(it,rt);else{if(this.p&&this.p.length){var Pt=new C(this.p.length+it.length);Pt.set(this.p),Pt.set(it,this.p.length)}else this.p=it;if(this.p.length>2){var Ht=this,bt=function(){Ht.ondata.apply(Ht,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(bt):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(bt):new this.Z(bt),this.s.push(this.p,rt),this.p=null}}},Et}(),Ii=function(){function Et(it){this.G=dt,this.I=ie,this.Z=Rr,this.ondata=it}return Et.prototype.push=function(it,rt){zn.prototype.push.call(this,it,rt)},Et}();function yn(Et,it,rt){if(rt||(rt=it,it={}),typeof rt!="function")throw"no callback";return Et[0]==31&&Et[1]==139&&Et[2]==8?Ft(Et,it,rt):(Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?X(Et,it,rt):on(Et,it,rt)}function Nn(Et,it){return Et[0]==31&&Et[1]==139&&Et[2]==8?Lr(Et,it):(Et[0]&15)!=8||Et[0]>>4>7||(Et[0]<<8|Et[1])%31?Be(Et,it):Sn(Et,it)}var jt=function Et(it,rt,Pt,Ht){for(var bt in it){var Gt=it[bt],ut=rt+bt;Gt instanceof C?Pt[ut]=[Gt,Ht]:Array.isArray(Gt)?Pt[ut]=[Gt[0],_e(Ht,Gt[1])]:Et(Gt,ut+"/",Pt,Ht)}};function At(Et,it){var rt=Et.length;if(!it&&typeof TextEncoder!="undefined")return new TextEncoder().encode(Et);for(var Pt=new C(Et.length+(Et.length>>>1)),Ht=0,bt=function(ir){Pt[Ht++]=ir},Gt=0;Gt<rt;++Gt){if(Ht+5>Pt.length){var ut=new C(Ht+8+(rt-Gt<<1));ut.set(Pt),Pt=ut}var Kt=Et.charCodeAt(Gt);Kt<128||it?bt(Kt):Kt<2048?(bt(192|Kt>>>6),bt(128|Kt&63)):Kt>55295&&Kt<57344?(Kt=65536+(Kt&1023<<10)|Et.charCodeAt(++Gt)&1023,bt(240|Kt>>>18),bt(128|Kt>>>12&63),bt(128|Kt>>>6&63),bt(128|Kt&63)):(bt(224|Kt>>>12),bt(128|Kt>>>6&63),bt(128|Kt&63))}return L(Pt,0,Ht)}function Re(Et,it){var rt="";if(!it&&typeof TextDecoder!="undefined")return new TextDecoder().decode(Et);for(var Pt=0;Pt<Et.length;){var Ht=Et[Pt++];Ht<128||it?rt+=String.fromCharCode(Ht):Ht<224?rt+=String.fromCharCode((Ht&31)<<6|Et[Pt++]&63):Ht<240?rt+=String.fromCharCode((Ht&15)<<12|(Et[Pt++]&63)<<6|Et[Pt++]&63):(Ht=((Ht&15)<<18|(Et[Pt++]&63)<<12|(Et[Pt++]&63)<<6|Et[Pt++]&63)-65536,rt+=String.fromCharCode(55296|Ht>>10,56320|Ht&1023))}return rt}var Ke=function(it,rt){return rt+30+le(it,rt+26)+le(it,rt+28)},Pe=function(it,rt,Pt){var Ht=le(it,rt+28),bt=Re(it.subarray(rt+46,rt+46+Ht),!(le(it,rt+8)&2048)),Gt=rt+46+Ht,ut=Pt?at(it,Gt):[fe(it,rt+20),fe(it,rt+24),fe(it,rt+42)],Kt=ut[0],Ar=ut[1],ir=ut[2];return[le(it,rt+10),Kt,Ar,bt,Gt+le(it,rt+30)+le(it,rt+32),ir]},at=function(it,rt){for(;le(it,rt)!=1;rt+=4+le(it,rt+2));return[fe(it,rt+12),fe(it,rt+4),fe(it,rt+20)]},wt=function(it,rt,Pt,Ht,bt,Gt,ut,Kt,Ar,ir){var pr=Gt.length,tn=Ht.length;Ee(it,rt,Ar!=null?33639248:67324752),rt+=4,Ar!=null&&(it[rt]=20,rt+=2),it[rt]=20,rt+=2,it[rt++]=ir==8&&(Kt.level==1?6:Kt.level<6?4:Kt.level==9?2:0),it[rt++]=ut&&8,it[rt]=ir,rt+=2;var fn=new Date(Kt.mtime||Date.now()),Mn=fn.getFullYear()-1980;if(Mn<0||Mn>119)throw"date not in range 1980-2099";Ee(it,rt,(Mn<<24)*2|fn.getMonth()+1<<21|fn.getDate()<<16|fn.getHours()<<11|fn.getMinutes()<<5|fn.getSeconds()>>>1),rt+=4,Ee(it,rt,Pt),Ee(it,rt+4,tn),Ee(it,rt+8,bt),Ee(it,rt+12,pr),rt+=16,Ar!=null&&(Ee(it,rt+=10,Ar),rt+=4),it.set(Gt,rt),rt+=pr,Ar==null&&it.set(Ht,rt)},Rt=function(it,rt,Pt,Ht,bt){Ee(it,rt,101010256),Ee(it,rt+8,Pt),Ee(it,rt+10,Pt),Ee(it,rt+12,Ht),Ee(it,rt+16,bt)};function xt(Et,it,rt){if(rt||(rt=it,it={}),typeof rt!="function")throw"no callback";var Pt={};jt(Et,"",Pt,it);var Ht=Object.keys(Pt),bt=Ht.length,Gt=0,ut=0,Kt=bt,Ar=new Array(bt),ir=[],pr=function(){for(var si=0;si<ir.length;++si)ir[si]()},tn=function(){var si=new C(ut+22),vi=Gt,xi=ut-Gt;ut=0;for(var _i=0;_i<Kt;++_i){var Ze=Ar[_i];try{wt(si,ut,Ze.c,Ze.d,Ze.m,Ze.n,Ze.u,Ze.p,null,Ze.t),wt(si,Gt,Ze.c,Ze.d,Ze.m,Ze.n,Ze.u,Ze.p,ut,Ze.t),Gt+=46+Ze.n.length,ut+=30+Ze.n.length+Ze.d.length}catch(we){return rt(we,null)}}Rt(si,Gt,Ar.length,xi,vi),rt(null,si)};bt||tn();for(var fn=function(si){var vi=Ht[si],xi=Pt[vi],_i=xi[0],Ze=xi[1],we=de(),Ne=_i.length;we.p(_i);var Fe=At(vi),Ye=Fe.length,We=Ze.level==0?0:8,qe=function(ot,$t){if(ot)pr(),rt(ot,null);else{var Mr=$t.length;Ar[si]={t:We,d:$t,m:Ne,c:we.d(),u:vi.length!=Mr,n:Fe,p:Ze},Gt+=30+Ye+Mr,ut+=76+2*Ye+Mr,--bt||tn()}};if(Fe.length>65535&&qe("filename too long",null),!We)qe(null,_i);else if(Ne<16e4)try{qe(null,_t(_i,Ze))}catch(yt){qe(yt,null)}else ir.push(It(_i,Ze,qe))},Mn=0;Mn<Kt;++Mn)fn(Mn);return pr}function Lt(Et,it){it===void 0&&(it={});var rt={},Pt=[];jt(Et,"",rt,it);var Ht=0,bt=0;for(var Gt in rt){var ut=rt[Gt],Kt=ut[0],Ar=ut[1],ir=Ar.level==0?0:8,pr=At(Gt),tn=pr.length;if(pr.length>65535)throw"filename too long";var fn=ir?_t(Kt,Ar):Kt,Mn=fn.length,Yn=de();Yn.p(Kt),Pt.push({t:ir,d:fn,m:Kt.length,c:Yn.d(),u:Gt.length!=tn,n:pr,o:Ht,p:Ar}),Ht+=30+tn+Mn,bt+=76+2*tn+Mn}for(var si=new C(bt+22),vi=Ht,xi=bt-Ht,_i=0;_i<Pt.length;++_i){var Ze=Pt[_i];wt(si,Ze.o,Ze.c,Ze.d,Ze.m,Ze.n,Ze.u,Ze.p,null,Ze.t),wt(si,Ht,Ze.c,Ze.d,Ze.m,Ze.n,Ze.u,Ze.p,Ze.o,Ze.t),Ht+=46+Ze.n.length}return Rt(si,Ht,Pt.length,xi,vi),si}function gr(Et,it){if(typeof it!="function")throw"no callback";for(var rt=[],Pt=function(){for(var fn=0;fn<rt.length;++fn)rt[fn]()},Ht={},bt=Et.length-22;fe(Et,bt)!=101010256;--bt)if(!bt||Et.length-bt>65558){it("invalid zip file",null);return}var Gt=le(Et,bt+8);Gt||it(null,{});var ut=Gt,Kt=fe(Et,bt+16),Ar=Kt==4294967295;if(Ar){if(bt=fe(Et,bt-12),fe(Et,bt)!=101075792)throw"invalid zip file";ut=Gt=fe(Et,bt+32),Kt=fe(Et,bt+48)}for(var ir=function(fn){var Mn=Pe(Et,Kt,Ar),Yn=Mn[0],si=Mn[1],vi=Mn[2],xi=Mn[3],_i=Mn[4],Ze=Mn[5],we=Ke(Et,Ze);Kt=_i;var Ne=function(We,qe){We?(Pt(),it(We,null)):(Ht[xi]=qe,--Gt||it(null,Ht))};if(!Yn)Ne(null,L(Et,we,we+si));else if(Yn==8){var Fe=Et.subarray(we,we+si);if(si<32e4)try{Ne(null,Be(Fe,new C(vi)))}catch(Ye){Ne(Ye,null)}else rt.push(X(Fe,{size:vi},Ne))}else Ne("unknown compression type "+Yn,null)},pr=0;pr<ut;++pr)ir(pr);return Pt}function Br(Et){for(var it={},rt=Et.length-22;fe(Et,rt)!=101010256;--rt)if(!rt||Et.length-rt>65558)throw"invalid zip file";var Pt=le(Et,rt+8);if(!Pt)return{};var Ht=fe(Et,rt+16),bt=Ht==4294967295;if(bt){if(rt=fe(Et,rt-12),fe(Et,rt)!=101075792)throw"invalid zip file";Pt=fe(Et,rt+32),Ht=fe(Et,rt+48)}for(var Gt=0;Gt<Pt;++Gt){var ut=Pe(Et,Ht,bt),Kt=ut[0],Ar=ut[1],ir=ut[2],pr=ut[3],tn=ut[4],fn=ut[5],Mn=Ke(Et,fn);if(Ht=tn,!Kt)it[pr]=L(Et,Mn,Mn+Ar);else if(Kt==8)it[pr]=Be(Et.subarray(Mn,Mn+Ar),new C(ir));else throw"unknown compression type "+Kt}return it}},cv67:function(H,k,d){(function(O,x){H.exports=k=x(d("Ib8C"))})(this,function(O){return function(x){var C=O,A=C.lib,b=A.WordArray,g=A.Hasher,f=C.algo,c=[];(function(){for(var l=0;l<64;l++)c[l]=x.abs(x.sin(l+1))*4294967296|0})();var o=f.MD5=g.extend({_doReset:function(){this._hash=new b.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,a){for(var s=0;s<16;s++){var u=a+s,h=t[u];t[u]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360}var p=this._hash.words,m=t[a+0],v=t[a+1],y=t[a+2],E=t[a+3],T=t[a+4],w=t[a+5],S=t[a+6],_=t[a+7],I=t[a+8],L=t[a+9],N=t[a+10],R=t[a+11],D=t[a+12],F=t[a+13],M=t[a+14],U=t[a+15],B=p[0],j=p[1],W=p[2],V=p[3];B=r(B,j,W,V,m,7,c[0]),V=r(V,B,j,W,v,12,c[1]),W=r(W,V,B,j,y,17,c[2]),j=r(j,W,V,B,E,22,c[3]),B=r(B,j,W,V,T,7,c[4]),V=r(V,B,j,W,w,12,c[5]),W=r(W,V,B,j,S,17,c[6]),j=r(j,W,V,B,_,22,c[7]),B=r(B,j,W,V,I,7,c[8]),V=r(V,B,j,W,L,12,c[9]),W=r(W,V,B,j,N,17,c[10]),j=r(j,W,V,B,R,22,c[11]),B=r(B,j,W,V,D,7,c[12]),V=r(V,B,j,W,F,12,c[13]),W=r(W,V,B,j,M,17,c[14]),j=r(j,W,V,B,U,22,c[15]),B=i(B,j,W,V,v,5,c[16]),V=i(V,B,j,W,S,9,c[17]),W=i(W,V,B,j,R,14,c[18]),j=i(j,W,V,B,m,20,c[19]),B=i(B,j,W,V,w,5,c[20]),V=i(V,B,j,W,N,9,c[21]),W=i(W,V,B,j,U,14,c[22]),j=i(j,W,V,B,T,20,c[23]),B=i(B,j,W,V,L,5,c[24]),V=i(V,B,j,W,M,9,c[25]),W=i(W,V,B,j,E,14,c[26]),j=i(j,W,V,B,I,20,c[27]),B=i(B,j,W,V,F,5,c[28]),V=i(V,B,j,W,y,9,c[29]),W=i(W,V,B,j,_,14,c[30]),j=i(j,W,V,B,D,20,c[31]),B=n(B,j,W,V,w,4,c[32]),V=n(V,B,j,W,I,11,c[33]),W=n(W,V,B,j,R,16,c[34]),j=n(j,W,V,B,M,23,c[35]),B=n(B,j,W,V,v,4,c[36]),V=n(V,B,j,W,T,11,c[37]),W=n(W,V,B,j,_,16,c[38]),j=n(j,W,V,B,N,23,c[39]),B=n(B,j,W,V,F,4,c[40]),V=n(V,B,j,W,m,11,c[41]),W=n(W,V,B,j,E,16,c[42]),j=n(j,W,V,B,S,23,c[43]),B=n(B,j,W,V,L,4,c[44]),V=n(V,B,j,W,D,11,c[45]),W=n(W,V,B,j,U,16,c[46]),j=n(j,W,V,B,y,23,c[47]),B=e(B,j,W,V,m,6,c[48]),V=e(V,B,j,W,_,10,c[49]),W=e(W,V,B,j,M,15,c[50]),j=e(j,W,V,B,w,21,c[51]),B=e(B,j,W,V,D,6,c[52]),V=e(V,B,j,W,E,10,c[53]),W=e(W,V,B,j,N,15,c[54]),j=e(j,W,V,B,v,21,c[55]),B=e(B,j,W,V,I,6,c[56]),V=e(V,B,j,W,U,10,c[57]),W=e(W,V,B,j,S,15,c[58]),j=e(j,W,V,B,F,21,c[59]),B=e(B,j,W,V,T,6,c[60]),V=e(V,B,j,W,R,10,c[61]),W=e(W,V,B,j,y,15,c[62]),j=e(j,W,V,B,L,21,c[63]),p[0]=p[0]+B|0,p[1]=p[1]+j|0,p[2]=p[2]+W|0,p[3]=p[3]+V|0},_doFinalize:function(){var t=this._data,a=t.words,s=this._nDataBytes*8,u=t.sigBytes*8;a[u>>>5]|=128<<24-u%32;var h=x.floor(s/4294967296),p=s;a[(u+64>>>9<<4)+15]=(h<<8|h>>>24)&16711935|(h<<24|h>>>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 m=this._hash,v=m.words,y=0;y<4;y++){var E=v[y];v[y]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}return m},clone:function(){var t=g.clone.call(this);return t._hash=this._hash.clone(),t}});function r(l,t,a,s,u,h,p){var m=l+(t&a|~t&s)+u+p;return(m<<h|m>>>32-h)+t}function i(l,t,a,s,u,h,p){var m=l+(t&s|a&~s)+u+p;return(m<<h|m>>>32-h)+t}function n(l,t,a,s,u,h,p){var m=l+(t^a^s)+u+p;return(m<<h|m>>>32-h)+t}function e(l,t,a,s,u,h,p){var m=l+(a^(t|~s))+u+p;return(m<<h|m>>>32-h)+t}C.MD5=g._createHelper(o),C.HmacMD5=g._createHmacHelper(o)}(Math),O.MD5})},czTT:function(H,k,d){},d4KN:function(H,k,d){var O=d("ProS"),x=d("bYtY");function C(A,b){x.each(b,function(g){g.update="updateView",O.registerAction(g,function(f,c){var o={};return c.eachComponent({mainType:"series",subType:A,query:f},function(r){r[g.method]&&r[g.method](f.name,f.dataIndex);var i=r.getData();i.each(function(n){var e=i.getName(n);o[e]=r.isSelected(e)||!1})}),{name:f.name,selected:o,seriesId:f.seriesId}})})}H.exports=C},dBmv:function(H,k,d){var O=d("ProS"),x=d("szbU");d("vF/C"),d("qwVE"),d("MHoB"),d("PNag"),d("1u/T"),O.registerPreprocessor(x)},"dF/Y":function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="DownloadOutlined";var f=k.a=x.forwardRef(g)},dMvE:function(H,k){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 A,b=.1,g=.4;return C===0?0:C===1?1:(!b||b<1?(b=1,A=g/4):A=g*Math.asin(1/b)/(2*Math.PI),-(b*Math.pow(2,10*(C-=1))*Math.sin((C-A)*(2*Math.PI)/g)))},elasticOut:function(C){var A,b=.1,g=.4;return C===0?0:C===1?1:(!b||b<1?(b=1,A=g/4):A=g*Math.asin(1/b)/(2*Math.PI),b*Math.pow(2,-10*C)*Math.sin((C-A)*(2*Math.PI)/g)+1)},elasticInOut:function(C){var A,b=.1,g=.4;return C===0?0:C===1?1:(!b||b<1?(b=1,A=g/4):A=g*Math.asin(1/b)/(2*Math.PI),(C*=2)<1?-.5*(b*Math.pow(2,10*(C-=1))*Math.sin((C-A)*(2*Math.PI)/g)):b*Math.pow(2,-10*(C-=1))*Math.sin((C-A)*(2*Math.PI)/g)*.5+1)},backIn:function(C){var A=1.70158;return C*C*((A+1)*C-A)},backOut:function(C){var A=1.70158;return--C*C*((A+1)*C+A)+1},backInOut:function(C){var A=1.70158*1.525;return(C*=2)<1?.5*(C*C*((A+1)*C-A)):.5*((C-=2)*C*((A+1)*C+A)+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;H.exports=O},diRs:function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("q1tI"),A=d.n(C),b=d("3S7+"),g=d("H84U"),f=d("bogI"),c=function(r,i){var n={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&i.indexOf(e)<0&&(n[e]=r[e]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,e=Object.getOwnPropertySymbols(r);l<e.length;l++)i.indexOf(e[l])<0&&Object.prototype.propertyIsEnumerable.call(r,e[l])&&(n[e[l]]=r[e[l]]);return n},o=C.forwardRef(function(r,i){var n=r.prefixCls,e=r.title,l=r.content,t=c(r,["prefixCls","title","content"]),a=C.useContext(g.b),s=a.getPrefixCls,u=function(m){return C.createElement(C.Fragment,null,e&&C.createElement("div",{className:"".concat(m,"-title")},Object(f.a)(e)),C.createElement("div",{className:"".concat(m,"-inner-content")},Object(f.a)(l)))},h=s("popover",n);return C.createElement(b.a,x()({},t,{prefixCls:h,ref:i,overlay:u(h)}))});o.displayName="Popover",o.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},k.a=o},digP:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var O={icon:function(C,A){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:A}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:C}}]}},name:"file",theme:"twotone"};k.default=O},dm2S:function(H,k,d){"use strict";d.d(k,"a",function(){return A});var O=d("ODXe"),x=d("q1tI"),C=d.n(x);function A(b){var g=x.useRef(!1),f=x.useState(b),c=Object(O.a)(f,2),o=c[0],r=c[1];x.useEffect(function(){return g.current=!1,function(){g.current=!0}},[]);function i(n,e){if(e&&g.current)return;r(n)}return[o,i]}},dmGj:function(H,k,d){var O=d("DEFe"),x=d("ProS"),C=x.extendComponentView({type:"geo",init:function(A,b){var g=new O(b,!0);this._mapDraw=g,this.group.add(g.group)},render:function(A,b,g,f){if(f&&f.type==="geoToggleSelect"&&f.from===this.uid)return;var c=this._mapDraw;A.get("show")?c.draw(A,b,g,this,f):this._mapDraw.group.removeAll(),this.group.silent=A.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});H.exports=C},dnwI:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("YH21"),A=d("Kagy"),b=d("IUWy"),g=A.toolbox.dataView,f=new Array(60).join("-"),c=" ";function o(v){var y={},E=[],T=[];return v.eachRawSeries(function(w){var S=w.coordinateSystem;if(S&&(S.type==="cartesian2d"||S.type==="polar")){var _=S.getBaseAxis();if(_.type==="category"){var I=_.dim+"_"+_.index;y[I]||(y[I]={categoryAxis:_,valueAxis:S.getOtherAxis(_),series:[]},T.push({axisDim:_.dim,axisIndex:_.index})),y[I].series.push(w)}else E.push(w)}else E.push(w)}),{seriesGroupByCategoryAxis:y,other:E,meta:T}}function r(v){var y=[];return x.each(v,function(E,T){var w=E.categoryAxis,S=E.valueAxis,_=S.dim,I=[" "].concat(x.map(E.series,function(M){return M.name})),L=[w.model.getCategories()];x.each(E.series,function(M){L.push(M.getRawData().mapArray(_,function(U){return U}))});for(var N=[I.join(c)],R=0;R<L[0].length;R++){for(var D=[],F=0;F<L.length;F++)D.push(L[F][R]);N.push(D.join(c))}y.push(N.join(`
`))}),y.join(`
`+f+`
`)}function i(v){return x.map(v,function(y){var E=y.getRawData(),T=[y.name],w=[];return E.each(E.dimensions,function(){for(var S=arguments.length,_=arguments[S-1],I=E.getName(_),L=0;L<S-1;L++)w[L]=arguments[L];T.push((I?I+c:"")+w.join(c))}),T.join(`
`)}).join(`
`+f+`
`)}function n(v){var y=o(v);return{value:x.filter([r(y.seriesGroupByCategoryAxis),i(y.other)],function(E){return E.replace(/[\n\t\s]/g,"")}).join(`
`+f+`
`),meta:y.meta}}function e(v){return v.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(v){var y=v.slice(0,v.indexOf(`
`));if(y.indexOf(c)>=0)return!0}var t=new RegExp("["+c+"]+","g");function a(v){for(var y=v.split(/\n+/g),E=e(y.shift()).split(t),T=[],w=x.map(E,function(L){return{name:L,data:[]}}),S=0;S<y.length;S++){var _=e(y[S]).split(t);T.push(_.shift());for(var I=0;I<_.length;I++)w[I]&&(w[I].data[S]=_[I])}return{series:w,categories:T}}function s(v){for(var y=v.split(/\n+/g),E=e(y.shift()),T=[],w=0;w<y.length;w++){var S=e(y[w]).split(t),_="",I,L=!1;isNaN(S[0])?(L=!0,_=S[0],S=S.slice(1),T[w]={name:_,value:[]},I=T[w].value):I=T[w]=[];for(var N=0;N<S.length;N++)I.push(+S[N]);I.length===1&&(L?T[w].value=I[0]:T[w]=I[0])}return{name:E,data:T}}function u(v,y){var E=v.split(new RegExp(`
*`+f+`
*`,"g")),T={series:[]};return x.each(E,function(w,S){if(l(w)){var _=a(w),I=y[S],L=I.axisDim+"Axis";I&&(T[L]=T[L]||[],T[L][I.axisIndex]={data:_.categories},T.series=T.series.concat(_.series))}else{var _=s(w);T.series.push(_)}}),T}function h(v){this._dom=null,this.model=v}h.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:x.clone(g.title),lang:x.clone(g.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},h.prototype.onclick=function(v,y){var E=y.getDom(),T=this.model;this._dom&&E.removeChild(this._dom);var w=document.createElement("div");w.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",w.style.backgroundColor=T.get("backgroundColor")||"#fff";var S=document.createElement("h4"),_=T.get("lang")||[];S.innerHTML=_[0]||T.get("title"),S.style.cssText="margin: 10px 20px;",S.style.color=T.get("textColor");var I=document.createElement("div"),L=document.createElement("textarea");I.style.cssText="display:block;width:100%;overflow:auto;";var N=T.get("optionToContent"),R=T.get("contentToOption"),D=n(v);if(typeof N=="function"){var F=N(y.getOption());typeof F=="string"?I.innerHTML=F:x.isDom(F)&&I.appendChild(F)}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=D.value;var M=D.meta,U=document.createElement("div");U.style.cssText="position:absolute;bottom:0;left:0;right:0;";var B="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",j=document.createElement("div"),W=document.createElement("div");B+=";background-color:"+T.get("buttonColor"),B+=";color:"+T.get("buttonTextColor");var V=this;function z(){E.removeChild(w),V._dom=null}C.addEventListener(j,"click",z),C.addEventListener(W,"click",function(){var J;try{typeof R=="function"?J=R(I,y.getOption()):J=u(L.value,M)}catch(q){throw z(),new Error("Data view format error "+q)}J&&y.dispatchAction({type:"changeDataView",newOption:J}),z()}),j.innerHTML=_[1],W.innerHTML=_[2],W.style.cssText=B,j.style.cssText=B,!T.get("readOnly")&&U.appendChild(W),U.appendChild(j),w.appendChild(S),w.appendChild(I),w.appendChild(U),I.style.height=E.clientHeight-80+"px",E.appendChild(w),this._dom=w},h.prototype.remove=function(v,y){this._dom&&y.getDom().removeChild(this._dom)},h.prototype.dispose=function(v,y){this.remove(v,y)};function p(v,y){return x.map(v,function(E,T){var w=y&&y[T];return x.isObject(w)&&!x.isArray(w)?(x.isObject(E)&&!x.isArray(E)&&(E=E.value),x.defaults({value:E},w)):E})}b.register("dataView",h),O.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(v,y){var E=[];x.each(v.newOption.series,function(T){var w=y.getSeriesByName(T.name)[0];if(!w)E.push(x.extend({type:"scatter"},T));else{var S=w.get("data");E.push({name:T.name,data:p(T.data,S)})}}),y.mergeOption(x.defaults({series:E},v.newOption))});var m=h;H.exports=m},dqUG:function(H,k,d){var O=d("Gev7"),x=d("bYtY"),C=d("6GrX"),A=d("pzxd"),b=d("gut8"),g=b.ContextCachedBy,f=function(r){O.call(this,r)};f.prototype={constructor:f,type:"text",brush:function(r,i){var n=this.style;this.__dirty&&A.normalizeTextStyle(n,!0),n.fill=n.stroke=n.shadowBlur=n.shadowColor=n.shadowOffsetX=n.shadowOffsetY=null;var e=n.text;if(e!=null&&(e+=""),!A.needDrawText(e,n)){r.__attrCachedBy=g.NONE;return}this.setTransform(r),A.renderText(this,r,e,n,null,i),this.restoreTransform(r)},getBoundingRect:function(){var r=this.style;if(this.__dirty&&A.normalizeTextStyle(r,!0),!this._rect){var i=r.text;i!=null?i+="":i="";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,A.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}},x.inherits(f,O);var c=f;H.exports=c},dt0z:function(H,k,d){var O=d("zoYe");function x(C){return C==null?"":O(C)}H.exports=x},dtIV:function(H,k,d){"use strict";d.r(k),function(O){d.d(k,"AcroForm",function(){return Ce}),d.d(k,"AcroFormAppearance",function(){return X}),d.d(k,"AcroFormButton",function(){return St}),d.d(k,"AcroFormCheckBox",function(){return _t}),d.d(k,"AcroFormChoiceField",function(){return et}),d.d(k,"AcroFormComboBox",function(){return Tt}),d.d(k,"AcroFormEditBox",function(){return Je}),d.d(k,"AcroFormListBox",function(){return Oe}),d.d(k,"AcroFormPasswordField",function(){return ie}),d.d(k,"AcroFormPushButton",function(){return Mt}),d.d(k,"AcroFormRadioButton",function(){return er}),d.d(k,"AcroFormTextField",function(){return Xe}),d.d(k,"GState",function(){return F}),d.d(k,"ShadingPattern",function(){return U}),d.d(k,"TilingPattern",function(){return B}),d.d(k,"jsPDF",function(){return j});var x=d("cDf5"),C=d.n(x),A=d("crp1");/** @license
*
* jsPDF - PDF Document creation from JavaScript
* Version 2.5.1 Built on 2022-01-28T15:37:57.791Z
* CommitID 00000000
*
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
* 2015-2021 yWorks GmbH, http://www.yworks.com
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
* 2010 Aaron Spike, https://github.com/acspike
* 2012 Willow Systems Corporation, https://github.com/willowsystems
* 2012 Pablo Hess, https://github.com/pablohess
* 2012 Florian Jenett, https://github.com/fjenett
* 2013 Warren Weckesser, https://github.com/warrenweckesser
* 2013 Youssef Beddad, https://github.com/lifof
* 2013 Lee Driscoll, https://github.com/lsdriscoll
* 2013 Stefan Slonevskiy, https://github.com/stefslon
* 2013 Jeremy Morel, https://github.com/jmorel
* 2013 Christoph Hartmann, https://github.com/chris-rock
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
* 2014 James Makes, https://github.com/dollaruw
* 2014 Diego Casorran, https://github.com/diegocr
* 2014 Steven Spungin, https://github.com/Flamenco
* 2014 Kenneth Glassey, https://github.com/Gavvers
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
* Contributor(s):
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
* kim3er, mfo, alnorth, Flamenco
*/var b=function(){return typeof window!="undefined"?window:typeof O!="undefined"?O:typeof self!="undefined"?self:this}();function g(){b.console&&typeof b.console.log=="function"&&b.console.log.apply(b.console,arguments)}var f={log:g,warn:function(we){b.console&&(typeof b.console.warn=="function"?b.console.warn.apply(b.console,arguments):g.call(null,arguments))},error:function(we){b.console&&(typeof b.console.error=="function"?b.console.error.apply(b.console,arguments):g(we))}};function c(Ze,we,Ne){var Fe=new XMLHttpRequest;Fe.open("GET",Ze),Fe.responseType="blob",Fe.onload=function(){e(Fe.response,we,Ne)},Fe.onerror=function(){f.error("could not download file")},Fe.send()}function o(Ze){var we=new XMLHttpRequest;we.open("HEAD",Ze,!1);try{we.send()}catch(Ne){}return we.status>=200&&we.status<=299}function r(Ze){try{Ze.dispatchEvent(new MouseEvent("click"))}catch(Ne){var we=document.createEvent("MouseEvents");we.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Ze.dispatchEvent(we)}}var i,n,e=b.saveAs||((typeof window=="undefined"?"undefined":C()(window))!=="object"||window!==b?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(Ze,we,Ne){var Fe=b.URL||b.webkitURL,Ye=document.createElement("a");we=we||Ze.name||"download",Ye.download=we,Ye.rel="noopener",typeof Ze=="string"?(Ye.href=Ze,Ye.origin!==location.origin?o(Ye.href)?c(Ze,we,Ne):r(Ye,Ye.target="_blank"):r(Ye)):(Ye.href=Fe.createObjectURL(Ze),setTimeout(function(){Fe.revokeObjectURL(Ye.href)},4e4),setTimeout(function(){r(Ye)},0))}:"msSaveOrOpenBlob"in navigator?function(Ze,we,Ne){if(we=we||Ze.name||"download",typeof Ze=="string")if(o(Ze))c(Ze,we,Ne);else{var Fe=document.createElement("a");Fe.href=Ze,Fe.target="_blank",setTimeout(function(){r(Fe)})}else navigator.msSaveOrOpenBlob(function(Ye,We){return We===void 0?We={autoBom:!1}:C()(We)!=="object"&&(f.warn("Deprecated: Expected third argument to be a object"),We={autoBom:!We}),We.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Ye.type)?new Blob([String.fromCharCode(65279),Ye],{type:Ye.type}):Ye}(Ze,Ne),we)}:function(Ze,we,Ne,Fe){if((Fe=Fe||open("","_blank"))&&(Fe.document.title=Fe.document.body.innerText="downloading..."),typeof Ze=="string")return c(Ze,we,Ne);var Ye=Ze.type==="application/octet-stream",We=/constructor/i.test(b.HTMLElement)||b.safari,qe=/CriOS\/[\d]+/.test(navigator.userAgent);if((qe||Ye&&We)&&(typeof FileReader=="undefined"?"undefined":C()(FileReader))==="object"){var yt=new FileReader;yt.onloadend=function(){var Mr=yt.result;Mr=qe?Mr:Mr.replace(/^data:[^;]*;/,"data:attachment/file;"),Fe?Fe.location.href=Mr:location=Mr,Fe=null},yt.readAsDataURL(Ze)}else{var ot=b.URL||b.webkitURL,$t=ot.createObjectURL(Ze);Fe?Fe.location=$t:location.href=$t,Fe=null,setTimeout(function(){ot.revokeObjectURL($t)},4e4)}});/**
* A class to parse color values
* @author Stoyan Stefanov <sstoo@gmail.com>
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
* @license Use it if you like it
*/function l(Ze){var we;Ze=Ze||"",this.ok=!1,Ze.charAt(0)=="#"&&(Ze=Ze.substr(1,6)),Ze={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"}[Ze=(Ze=Ze.replace(/ /g,"")).toLowerCase()]||Ze;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(ot){return[parseInt(ot[1]),parseInt(ot[2]),parseInt(ot[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(ot){return[parseInt(ot[1],16),parseInt(ot[2],16),parseInt(ot[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(ot){return[parseInt(ot[1]+ot[1],16),parseInt(ot[2]+ot[2],16),parseInt(ot[3]+ot[3],16)]}}],Fe=0;Fe<Ne.length;Fe++){var Ye=Ne[Fe].re,We=Ne[Fe].process,qe=Ye.exec(Ze);qe&&(we=We(qe),this.r=we[0],this.g=we[1],this.b=we[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var yt=this.r.toString(16),ot=this.g.toString(16),$t=this.b.toString(16);return yt.length==1&&(yt="0"+yt),ot.length==1&&(ot="0"+ot),$t.length==1&&($t="0"+$t),"#"+yt+ot+$t}}/**
* @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(Ze,we){var Ne=Ze[0],Fe=Ze[1],Ye=Ze[2],We=Ze[3];Ne=s(Ne,Fe,Ye,We,we[0],7,-680876936),We=s(We,Ne,Fe,Ye,we[1],12,-389564586),Ye=s(Ye,We,Ne,Fe,we[2],17,606105819),Fe=s(Fe,Ye,We,Ne,we[3],22,-1044525330),Ne=s(Ne,Fe,Ye,We,we[4],7,-176418897),We=s(We,Ne,Fe,Ye,we[5],12,1200080426),Ye=s(Ye,We,Ne,Fe,we[6],17,-1473231341),Fe=s(Fe,Ye,We,Ne,we[7],22,-45705983),Ne=s(Ne,Fe,Ye,We,we[8],7,1770035416),We=s(We,Ne,Fe,Ye,we[9],12,-1958414417),Ye=s(Ye,We,Ne,Fe,we[10],17,-42063),Fe=s(Fe,Ye,We,Ne,we[11],22,-1990404162),Ne=s(Ne,Fe,Ye,We,we[12],7,1804603682),We=s(We,Ne,Fe,Ye,we[13],12,-40341101),Ye=s(Ye,We,Ne,Fe,we[14],17,-1502002290),Ne=u(Ne,Fe=s(Fe,Ye,We,Ne,we[15],22,1236535329),Ye,We,we[1],5,-165796510),We=u(We,Ne,Fe,Ye,we[6],9,-1069501632),Ye=u(Ye,We,Ne,Fe,we[11],14,643717713),Fe=u(Fe,Ye,We,Ne,we[0],20,-373897302),Ne=u(Ne,Fe,Ye,We,we[5],5,-701558691),We=u(We,Ne,Fe,Ye,we[10],9,38016083),Ye=u(Ye,We,Ne,Fe,we[15],14,-660478335),Fe=u(Fe,Ye,We,Ne,we[4],20,-405537848),Ne=u(Ne,Fe,Ye,We,we[9],5,568446438),We=u(We,Ne,Fe,Ye,we[14],9,-1019803690),Ye=u(Ye,We,Ne,Fe,we[3],14,-187363961),Fe=u(Fe,Ye,We,Ne,we[8],20,1163531501),Ne=u(Ne,Fe,Ye,We,we[13],5,-1444681467),We=u(We,Ne,Fe,Ye,we[2],9,-51403784),Ye=u(Ye,We,Ne,Fe,we[7],14,1735328473),Ne=h(Ne,Fe=u(Fe,Ye,We,Ne,we[12],20,-1926607734),Ye,We,we[5],4,-378558),We=h(We,Ne,Fe,Ye,we[8],11,-2022574463),Ye=h(Ye,We,Ne,Fe,we[11],16,1839030562),Fe=h(Fe,Ye,We,Ne,we[14],23,-35309556),Ne=h(Ne,Fe,Ye,We,we[1],4,-1530992060),We=h(We,Ne,Fe,Ye,we[4],11,1272893353),Ye=h(Ye,We,Ne,Fe,we[7],16,-155497632),Fe=h(Fe,Ye,We,Ne,we[10],23,-1094730640),Ne=h(Ne,Fe,Ye,We,we[13],4,681279174),We=h(We,Ne,Fe,Ye,we[0],11,-358537222),Ye=h(Ye,We,Ne,Fe,we[3],16,-722521979),Fe=h(Fe,Ye,We,Ne,we[6],23,76029189),Ne=h(Ne,Fe,Ye,We,we[9],4,-640364487),We=h(We,Ne,Fe,Ye,we[12],11,-421815835),Ye=h(Ye,We,Ne,Fe,we[15],16,530742520),Ne=p(Ne,Fe=h(Fe,Ye,We,Ne,we[2],23,-995338651),Ye,We,we[0],6,-198630844),We=p(We,Ne,Fe,Ye,we[7],10,1126891415),Ye=p(Ye,We,Ne,Fe,we[14],15,-1416354905),Fe=p(Fe,Ye,We,Ne,we[5],21,-57434055),Ne=p(Ne,Fe,Ye,We,we[12],6,1700485571),We=p(We,Ne,Fe,Ye,we[3],10,-1894986606),Ye=p(Ye,We,Ne,Fe,we[10],15,-1051523),Fe=p(Fe,Ye,We,Ne,we[1],21,-2054922799),Ne=p(Ne,Fe,Ye,We,we[8],6,1873313359),We=p(We,Ne,Fe,Ye,we[15],10,-30611744),Ye=p(Ye,We,Ne,Fe,we[6],15,-1560198380),Fe=p(Fe,Ye,We,Ne,we[13],21,1309151649),Ne=p(Ne,Fe,Ye,We,we[4],6,-145523070),We=p(We,Ne,Fe,Ye,we[11],10,-1120210379),Ye=p(Ye,We,Ne,Fe,we[2],15,718787259),Fe=p(Fe,Ye,We,Ne,we[9],21,-343485551),Ze[0]=_(Ne,Ze[0]),Ze[1]=_(Fe,Ze[1]),Ze[2]=_(Ye,Ze[2]),Ze[3]=_(We,Ze[3])}function a(Ze,we,Ne,Fe,Ye,We){return we=_(_(we,Ze),_(Fe,We)),_(we<<Ye|we>>>32-Ye,Ne)}function s(Ze,we,Ne,Fe,Ye,We,qe){return a(we&Ne|~we&Fe,Ze,we,Ye,We,qe)}function u(Ze,we,Ne,Fe,Ye,We,qe){return a(we&Fe|Ne&~Fe,Ze,we,Ye,We,qe)}function h(Ze,we,Ne,Fe,Ye,We,qe){return a(we^Ne^Fe,Ze,we,Ye,We,qe)}function p(Ze,we,Ne,Fe,Ye,We,qe){return a(Ne^(we|~Fe),Ze,we,Ye,We,qe)}function m(Ze){var we,Ne=Ze.length,Fe=[1732584193,-271733879,-1732584194,271733878];for(we=64;we<=Ze.length;we+=64)t(Fe,v(Ze.substring(we-64,we)));Ze=Ze.substring(we-64);var Ye=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(we=0;we<Ze.length;we++)Ye[we>>2]|=Ze.charCodeAt(we)<<(we%4<<3);if(Ye[we>>2]|=128<<(we%4<<3),we>55)for(t(Fe,Ye),we=0;we<16;we++)Ye[we]=0;return Ye[14]=8*Ne,t(Fe,Ye),Fe}function v(Ze){var we,Ne=[];for(we=0;we<64;we+=4)Ne[we>>2]=Ze.charCodeAt(we)+(Ze.charCodeAt(we+1)<<8)+(Ze.charCodeAt(we+2)<<16)+(Ze.charCodeAt(we+3)<<24);return Ne}i=b.atob.bind(b),n=b.btoa.bind(b);var y="0123456789abcdef".split("");function E(Ze){for(var we="",Ne=0;Ne<4;Ne++)we+=y[Ze>>8*Ne+4&15]+y[Ze>>8*Ne&15];return we}function T(Ze){return String.fromCharCode((255&Ze)>>0,(65280&Ze)>>8,(16711680&Ze)>>16,(4278190080&Ze)>>24)}function w(Ze){return m(Ze).map(T).join("")}var S=function(Ze){for(var we=0;we<Ze.length;we++)Ze[we]=E(Ze[we]);return Ze.join("")}(m("hello"))!="5d41402abc4b2a76b9719d911017c592";function _(Ze,we){if(S){var Ne=(65535&Ze)+(65535&we);return(Ze>>16)+(we>>16)+(Ne>>16)<<16|65535&Ne}return Ze+we&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(Ze,we){var Ne,Fe,Ye,We;if(Ze!==Ne){for(var qe=(Ye=Ze,We=1+(256/Ze.length>>0),new Array(We+1).join(Ye)),yt=[],ot=0;ot<256;ot++)yt[ot]=ot;var $t=0;for(ot=0;ot<256;ot++){var Mr=yt[ot];$t=($t+Mr+qe.charCodeAt(ot))%256,yt[ot]=yt[$t],yt[$t]=Mr}Ne=Ze,Fe=yt}else yt=Fe;var Sr=we.length,jr=0,tr=0,gn="";for(ot=0;ot<Sr;ot++)tr=(tr+(Mr=yt[jr=(jr+1)%256]))%256,yt[jr]=yt[tr],yt[tr]=Mr,qe=yt[(yt[jr]+yt[tr])%256],gn+=String.fromCharCode(we.charCodeAt(ot)^qe);return gn}/**
* @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 N(Ze,we,Ne,Fe){this.v=1,this.r=2;var Ye=192;Ze.forEach(function(yt){if(L.perm!==void 0)throw new Error("Invalid permission: "+yt);Ye+=L[yt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var We=(we+this.padding).substr(0,32),qe=(Ne+this.padding).substr(0,32);this.O=this.processOwnerPassword(We,qe),this.P=-(1+(255^Ye)),this.encryptionKey=w(We+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Fe)).substr(0,5),this.U=I(this.encryptionKey,this.padding)}function R(Ze){if(/[^\u0000-\u00ff]/.test(Ze))throw new Error("Invalid PDF Name Object: "+Ze+", Only accept ASCII characters.");for(var we="",Ne=Ze.length,Fe=0;Fe<Ne;Fe++){var Ye=Ze.charCodeAt(Fe);Ye<33||Ye===35||Ye===37||Ye===40||Ye===41||Ye===47||Ye===60||Ye===62||Ye===91||Ye===93||Ye===123||Ye===125||Ye>126?we+="#"+("0"+Ye.toString(16)).slice(-2):we+=Ze[Fe]}return we}function D(Ze){if(C()(Ze)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var we={};this.subscribe=function(Ne,Fe,Ye){if(Ye=Ye||!1,typeof Ne!="string"||typeof Fe!="function"||typeof Ye!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");we.hasOwnProperty(Ne)||(we[Ne]={});var We=Math.random().toString(35);return we[Ne][We]=[Fe,!!Ye],We},this.unsubscribe=function(Ne){for(var Fe in we)if(we[Fe][Ne])return delete we[Fe][Ne],Object.keys(we[Fe]).length===0&&delete we[Fe],!0;return!1},this.publish=function(Ne){if(we.hasOwnProperty(Ne)){var Fe=Array.prototype.slice.call(arguments,1),Ye=[];for(var We in we[Ne]){var qe=we[Ne][We];try{qe[0].apply(Ze,Fe)}catch(yt){b.console&&f.error("jsPDF PubSub Error",yt.message,yt)}qe[1]&&Ye.push(We)}Ye.length&&Ye.forEach(this.unsubscribe)}},this.getTopics=function(){return we}}function F(Ze){if(!(this instanceof F))return new F(Ze);var we="opacity,stroke-opacity".split(",");for(var Ne in Ze)Ze.hasOwnProperty(Ne)&&we.indexOf(Ne)>=0&&(this[Ne]=Ze[Ne]);this.id="",this.objectNumber=-1}function M(Ze,we){this.gState=Ze,this.matrix=we,this.id="",this.objectNumber=-1}function U(Ze,we,Ne,Fe,Ye){if(!(this instanceof U))return new U(Ze,we,Ne,Fe,Ye);this.type=Ze==="axial"?2:3,this.coords=we,this.colors=Ne,M.call(this,Fe,Ye)}function B(Ze,we,Ne,Fe,Ye){if(!(this instanceof B))return new B(Ze,we,Ne,Fe,Ye);this.boundingBox=Ze,this.xStep=we,this.yStep=Ne,this.stream="",this.cloneIndex=0,M.call(this,Fe,Ye)}function j(Ze){var we,Ne=typeof arguments[0]=="string"?arguments[0]:"p",Fe=arguments[1],Ye=arguments[2],We=arguments[3],qe=[],yt=1,ot=16,$t="S",Mr=null;C()(Ze=Ze||{})==="object"&&(Ne=Ze.orientation,Fe=Ze.unit||Fe,Ye=Ze.format||Ye,We=Ze.compress||Ze.compressPdf||We,(Mr=Ze.encryption||null)!==null&&(Mr.userPassword=Mr.userPassword||"",Mr.ownerPassword=Mr.ownerPassword||"",Mr.userPermissions=Mr.userPermissions||[]),yt=typeof Ze.userUnit=="number"?Math.abs(Ze.userUnit):1,Ze.precision!==void 0&&(we=Ze.precision),Ze.floatPrecision!==void 0&&(ot=Ze.floatPrecision),$t=Ze.defaultPathOperation||"S"),qe=Ze.filters||(We===!0?["FlateEncode"]:qe),Fe=Fe||"mm",Ne=(""+(Ne||"P")).toLowerCase();var Sr=Ze.putOnlyUsedFonts||!1,jr={},tr={internal:{},__private__:{}};tr.__private__.PubSub=D;var gn="1.3",sr=tr.__private__.getPdfVersion=function(){return gn};tr.__private__.setPdfVersion=function(Ct){gn=Ct};var un={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]};tr.__private__.getPageFormats=function(){return un};var an=tr.__private__.getPageFormat=function(Ct){return un[Ct]};Ye=Ye||"a4";var Pr={COMPAT:"compat",ADVANCED:"advanced"},In=Pr.COMPAT;function ci(){this.saveGraphicsState(),xn(new yi(sa,0,0,-sa,0,is()*sa).toString()+" cm"),this.setFontSize(this.getFontSize()/sa),$t="n",In=Pr.ADVANCED}function Ui(){this.restoreGraphicsState(),$t="S",In=Pr.COMPAT}var ki=tr.__private__.combineFontStyleAndFontWeight=function(Ct,Bt){if(Ct=="bold"&&Bt=="normal"||Ct=="bold"&&Bt==400||Ct=="normal"&&Bt=="italic"||Ct=="bold"&&Bt=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Bt&&(Ct=Bt==400||Bt==="normal"?Ct==="italic"?"italic":"normal":Bt!=700&&Bt!=="bold"||Ct!=="normal"?(Bt==700?"bold":Bt)+""+Ct:"bold"),Ct};tr.advancedAPI=function(Ct){var Bt=In===Pr.COMPAT;return Bt&&ci.call(this),typeof Ct!="function"||(Ct(this),Bt&&Ui.call(this)),this},tr.compatAPI=function(Ct){var Bt=In===Pr.ADVANCED;return Bt&&Ui.call(this),typeof Ct!="function"||(Ct(this),Bt&&ci.call(this)),this},tr.isAdvancedAPI=function(){return In===Pr.ADVANCED};var Ri,Ki=function(Bt){if(In!==Pr.ADVANCED)throw new Error(Bt+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Hr=tr.roundToPrecision=tr.__private__.roundToPrecision=function(Ct,Bt){var Wr=we||Bt;if(isNaN(Ct)||isNaN(Wr))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ct.toFixed(Wr).replace(/0+$/,"")};Ri=tr.hpf=tr.__private__.hpf=typeof ot=="number"?function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.hpf");return Hr(Ct,ot)}:ot==="smart"?function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.hpf");return Hr(Ct,Ct>-1&&Ct<1?16:5)}:function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.hpf");return Hr(Ct,16)};var Cn=tr.f2=tr.__private__.f2=function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.f2");return Hr(Ct,2)},kr=tr.__private__.f3=function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.f3");return Hr(Ct,3)},mr=tr.scale=tr.__private__.scale=function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.scale");return In===Pr.COMPAT?Ct*sa:In===Pr.ADVANCED?Ct:void 0},Cr=function(Bt){return In===Pr.COMPAT?is()-Bt:In===Pr.ADVANCED?Bt:void 0},Nt=function(Bt){return mr(Cr(Bt))};tr.__private__.setPrecision=tr.setPrecision=function(Ct){typeof parseInt(Ct,10)=="number"&&(we=parseInt(Ct,10))};var wr,Gr="00000000000000000000000000000000",Kr=tr.__private__.getFileId=function(){return Gr},qr=tr.__private__.setFileId=function(Ct){return Gr=Ct!==void 0&&/^[a-fA-F0-9]{32}$/.test(Ct)?Ct.toUpperCase():Gr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Mr!==null&&(Gi=new N(Mr.userPermissions,Mr.userPassword,Mr.ownerPassword,Gr)),Gr};tr.setFileId=function(Ct){return qr(Ct),this},tr.getFileId=function(){return Kr()};var oi=tr.__private__.convertDateToPDFDate=function(Ct){var Bt=Ct.getTimezoneOffset(),Wr=Bt<0?"+":"-",Pn=Math.floor(Math.abs(Bt/60)),ht=Math.abs(Bt%60),ne=[Wr,En(Pn),"'",En(ht),"'"].join("");return["D:",Ct.getFullYear(),En(Ct.getMonth()+1),En(Ct.getDate()),En(Ct.getHours()),En(Ct.getMinutes()),En(Ct.getSeconds()),ne].join("")},Gn=tr.__private__.convertPDFDateToDate=function(Ct){var Bt=parseInt(Ct.substr(2,4),10),Wr=parseInt(Ct.substr(6,2),10)-1,Pn=parseInt(Ct.substr(8,2),10),ht=parseInt(Ct.substr(10,2),10),ne=parseInt(Ct.substr(12,2),10),pe=parseInt(Ct.substr(14,2),10);return new Date(Bt,Wr,Pn,ht,ne,pe,0)},Ti=tr.__private__.setCreationDate=function(Ct){var Bt;if(Ct===void 0&&(Ct=new Date),Ct instanceof Date)Bt=oi(Ct);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(Ct))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Bt=Ct}return wr=Bt},hn=tr.__private__.getCreationDate=function(Ct){var Bt=wr;return Ct==="jsDate"&&(Bt=Gn(wr)),Bt};tr.setCreationDate=function(Ct){return Ti(Ct),this},tr.getCreationDate=function(Ct){return hn(Ct)};var _r,En=tr.__private__.padd2=function(Ct){return("0"+parseInt(Ct)).slice(-2)},Fn=tr.__private__.padd2Hex=function(Ct){return("00"+(Ct=Ct.toString())).substr(Ct.length)},Vn=0,qn=[],Oi=[],Ni=0,Mi=[],Ji=[],ma=!1,la=Oi,qa=function(){Vn=0,Ni=0,Oi=[],qn=[],Mi=[],So=so(),Qt=so()};tr.__private__.setCustomOutputDestination=function(Ct){ma=!0,la=Ct};var bi=function(Bt){ma||(la=Bt)};tr.__private__.resetCustomOutputDestination=function(){ma=!1,la=Oi};var xn=tr.__private__.out=function(Ct){return Ct=Ct.toString(),Ni+=Ct.length+1,la.push(Ct),la},zi=tr.__private__.write=function(Ct){return xn(arguments.length===1?Ct.toString():Array.prototype.join.call(arguments," "))},oa=tr.__private__.getArrayBuffer=function(Ct){for(var Bt=Ct.length,Wr=new ArrayBuffer(Bt),Pn=new Uint8Array(Wr);Bt--;)Pn[Bt]=Ct.charCodeAt(Bt);return Wr},Yi=[["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]];tr.__private__.getStandardFonts=function(){return Yi};var ca=Ze.fontSize||16;tr.__private__.setFontSize=tr.setFontSize=function(Ct){return ca=In===Pr.ADVANCED?Ct/sa:Ct,this};var Hi,Ia=tr.__private__.getFontSize=tr.getFontSize=function(){return In===Pr.COMPAT?ca:ca*sa},Da=Ze.R2L||!1;tr.__private__.setR2L=tr.setR2L=function(Ct){return Da=Ct,this},tr.__private__.getR2L=tr.getR2L=function(){return Da};var Qa,Wo=tr.__private__.setZoomMode=function(Ct){var Bt=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ct))Hi=Ct;else if(isNaN(Ct)){if(Bt.indexOf(Ct)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ct+'" is not recognized.');Hi=Ct}else Hi=parseInt(Ct,10)};tr.__private__.getZoomMode=function(){return Hi};var po,Mo=tr.__private__.setPageMode=function(Ct){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ct)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ct+'" is not recognized.');Qa=Ct};tr.__private__.getPageMode=function(){return Qa};var Fo=tr.__private__.setLayoutMode=function(Ct){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ct)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ct+'" is not recognized.');po=Ct};tr.__private__.getLayoutMode=function(){return po},tr.__private__.setDisplayMode=tr.setDisplayMode=function(Ct,Bt,Wr){return Wo(Ct),Fo(Bt),Mo(Wr),this};var yo={title:"",subject:"",author:"",keywords:"",creator:""};tr.__private__.getDocumentProperty=function(Ct){if(Object.keys(yo).indexOf(Ct)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return yo[Ct]},tr.__private__.getDocumentProperties=function(){return yo},tr.__private__.setDocumentProperties=tr.setProperties=tr.setDocumentProperties=function(Ct){for(var Bt in yo)yo.hasOwnProperty(Bt)&&Ct[Bt]&&(yo[Bt]=Ct[Bt]);return this},tr.__private__.setDocumentProperty=function(Ct,Bt){if(Object.keys(yo).indexOf(Ct)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return yo[Ct]=Bt};var Oo,sa,hs,Jo,wo,_o={},Bo={},Ds=[],Dr={},rn={},Tn={},en={},ur=null,sn=0,Bn=[],Hn=new D(tr),Li=Ze.hotfixes||[],Ci={},Jn={},mi=[],yi=function Ct(Bt,Wr,Pn,ht,ne,pe){if(!(this instanceof Ct))return new Ct(Bt,Wr,Pn,ht,ne,pe);isNaN(Bt)&&(Bt=1),isNaN(Wr)&&(Wr=0),isNaN(Pn)&&(Pn=0),isNaN(ht)&&(ht=1),isNaN(ne)&&(ne=0),isNaN(pe)&&(pe=0),this._matrix=[Bt,Wr,Pn,ht,ne,pe]};Object.defineProperty(yi.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Bt){this._matrix[0]=Bt}}),Object.defineProperty(yi.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Bt){this._matrix[1]=Bt}}),Object.defineProperty(yi.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Bt){this._matrix[2]=Bt}}),Object.defineProperty(yi.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Bt){this._matrix[3]=Bt}}),Object.defineProperty(yi.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Bt){this._matrix[4]=Bt}}),Object.defineProperty(yi.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Bt){this._matrix[5]=Bt}}),Object.defineProperty(yi.prototype,"a",{get:function(){return this._matrix[0]},set:function(Bt){this._matrix[0]=Bt}}),Object.defineProperty(yi.prototype,"b",{get:function(){return this._matrix[1]},set:function(Bt){this._matrix[1]=Bt}}),Object.defineProperty(yi.prototype,"c",{get:function(){return this._matrix[2]},set:function(Bt){this._matrix[2]=Bt}}),Object.defineProperty(yi.prototype,"d",{get:function(){return this._matrix[3]},set:function(Bt){this._matrix[3]=Bt}}),Object.defineProperty(yi.prototype,"e",{get:function(){return this._matrix[4]},set:function(Bt){this._matrix[4]=Bt}}),Object.defineProperty(yi.prototype,"f",{get:function(){return this._matrix[5]},set:function(Bt){this._matrix[5]=Bt}}),Object.defineProperty(yi.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(yi.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(yi.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(yi.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),yi.prototype.join=function(Ct){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(Ri).join(Ct)},yi.prototype.multiply=function(Ct){var Bt=Ct.sx*this.sx+Ct.shy*this.shx,Wr=Ct.sx*this.shy+Ct.shy*this.sy,Pn=Ct.shx*this.sx+Ct.sy*this.shx,ht=Ct.shx*this.shy+Ct.sy*this.sy,ne=Ct.tx*this.sx+Ct.ty*this.shx+this.tx,pe=Ct.tx*this.shy+Ct.ty*this.sy+this.ty;return new yi(Bt,Wr,Pn,ht,ne,pe)},yi.prototype.decompose=function(){var Ct=this.sx,Bt=this.shy,Wr=this.shx,Pn=this.sy,ht=this.tx,ne=this.ty,pe=Math.sqrt(Ct*Ct+Bt*Bt),be=(Ct/=pe)*Wr+(Bt/=pe)*Pn;Wr-=Ct*be,Pn-=Bt*be;var Ue=Math.sqrt(Wr*Wr+Pn*Pn);return be/=Ue,Ct*(Pn/=Ue)<Bt*(Wr/=Ue)&&(Ct=-Ct,Bt=-Bt,be=-be,pe=-pe),{scale:new yi(pe,0,0,Ue,0,0),translate:new yi(1,0,0,1,ht,ne),rotate:new yi(Ct,Bt,-Bt,Ct,0,0),skew:new yi(1,0,be,1,0,0)}},yi.prototype.toString=function(Ct){return this.join(" ")},yi.prototype.inversed=function(){var Ct=this.sx,Bt=this.shy,Wr=this.shx,Pn=this.sy,ht=this.tx,ne=this.ty,pe=1/(Ct*Pn-Bt*Wr),be=Pn*pe,Ue=-Bt*pe,pt=-Wr*pe,Xt=Ct*pe;return new yi(be,Ue,pt,Xt,-be*ht-pt*ne,-Ue*ht-Xt*ne)},yi.prototype.applyToPoint=function(Ct){var Bt=Ct.x*this.sx+Ct.y*this.shx+this.tx,Wr=Ct.x*this.shy+Ct.y*this.sy+this.ty;return new Io(Bt,Wr)},yi.prototype.applyToRectangle=function(Ct){var Bt=this.applyToPoint(Ct),Wr=this.applyToPoint(new Io(Ct.x+Ct.w,Ct.y+Ct.h));return new zo(Bt.x,Bt.y,Wr.x-Bt.x,Wr.y-Bt.y)},yi.prototype.clone=function(){var Ct=this.sx,Bt=this.shy,Wr=this.shx,Pn=this.sy,ht=this.tx,ne=this.ty;return new yi(Ct,Bt,Wr,Pn,ht,ne)},tr.Matrix=yi;var da=tr.matrixMult=function(Ct,Bt){return Bt.multiply(Ct)},ha=new yi(1,0,0,1,0,0);tr.unitMatrix=tr.identityMatrix=ha;var Pa=function(Bt,Wr){if(!rn[Bt]){var Pn=(Wr instanceof U?"Sh":"P")+(Object.keys(Dr).length+1).toString(10);Wr.id=Pn,rn[Bt]=Pn,Dr[Pn]=Wr,Hn.publish("addPattern",Wr)}};tr.ShadingPattern=U,tr.TilingPattern=B,tr.addShadingPattern=function(Ct,Bt){return Ki("addShadingPattern()"),Pa(Ct,Bt),this},tr.beginTilingPattern=function(Ct){Ki("beginTilingPattern()"),Ja(Ct.boundingBox[0],Ct.boundingBox[1],Ct.boundingBox[2]-Ct.boundingBox[0],Ct.boundingBox[3]-Ct.boundingBox[1],Ct.matrix)},tr.endTilingPattern=function(Ct,Bt){Ki("endTilingPattern()"),Bt.stream=Ji[_r].join(`
`),Pa(Ct,Bt),Hn.publish("endTilingPattern",Bt),mi.pop().restore()};var Ra=tr.__private__.newObject=function(){var Ct=so();return La(Ct,!0),Ct},so=tr.__private__.newObjectDeferred=function(){return Vn++,qn[Vn]=function(){return Ni},Vn},La=function(Bt,Wr){return Wr=typeof Wr=="boolean"&&Wr,qn[Bt]=Ni,Wr&&xn(Bt+" 0 obj"),Bt},lo=tr.__private__.newAdditionalObject=function(){var Ct={objId:so(),content:""};return Mi.push(Ct),Ct},So=so(),Qt=so(),Vr=tr.__private__.decodeColorString=function(Ct){var Bt=Ct.split(" ");if(Bt.length!==2||Bt[1]!=="g"&&Bt[1]!=="G")Bt.length===5&&(Bt[4]==="k"||Bt[4]==="K")&&(Bt=[(1-Bt[0])*(1-Bt[3]),(1-Bt[1])*(1-Bt[3]),(1-Bt[2])*(1-Bt[3]),"r"]);else{var Wr=parseFloat(Bt[0]);Bt=[Wr,Wr,Wr,"r"]}for(var Pn="#",ht=0;ht<3;ht++)Pn+=("0"+Math.floor(255*parseFloat(Bt[ht])).toString(16)).slice(-2);return Pn},cn=tr.__private__.encodeColorString=function(Ct){var Bt;typeof Ct=="string"&&(Ct={ch1:Ct});var Wr=Ct.ch1,Pn=Ct.ch2,ht=Ct.ch3,ne=Ct.ch4,pe=Ct.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Wr=="string"&&Wr.charAt(0)!=="#"){var be=new l(Wr);if(be.ok)Wr=be.toHex();else if(!/^\d*\.?\d*$/.test(Wr))throw new Error('Invalid color "'+Wr+'" passed to jsPDF.encodeColorString.')}if(typeof Wr=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Wr)&&(Wr="#"+Wr[1]+Wr[1]+Wr[2]+Wr[2]+Wr[3]+Wr[3]),typeof Wr=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Wr)){var Ue=parseInt(Wr.substr(1),16);Wr=Ue>>16&255,Pn=Ue>>8&255,ht=255&Ue}if(Pn===void 0||ne===void 0&&Wr===Pn&&Pn===ht)if(typeof Wr=="string")Bt=Wr+" "+pe[0];else switch(Ct.precision){case 2:Bt=Cn(Wr/255)+" "+pe[0];break;case 3:default:Bt=kr(Wr/255)+" "+pe[0]}else if(ne===void 0||C()(ne)==="object"){if(ne&&!isNaN(ne.a)&&ne.a===0)return Bt=["1.","1.","1.",pe[1]].join(" ");if(typeof Wr=="string")Bt=[Wr,Pn,ht,pe[1]].join(" ");else switch(Ct.precision){case 2:Bt=[Cn(Wr/255),Cn(Pn/255),Cn(ht/255),pe[1]].join(" ");break;default:case 3:Bt=[kr(Wr/255),kr(Pn/255),kr(ht/255),pe[1]].join(" ")}}else if(typeof Wr=="string")Bt=[Wr,Pn,ht,ne,pe[2]].join(" ");else switch(Ct.precision){case 2:Bt=[Cn(Wr),Cn(Pn),Cn(ht),Cn(ne),pe[2]].join(" ");break;case 3:default:Bt=[kr(Wr),kr(Pn),kr(ht),kr(ne),pe[2]].join(" ")}return Bt},vn=tr.__private__.getFilters=function(){return qe},ni=tr.__private__.putStream=function(Ct){var Bt=(Ct=Ct||{}).data||"",Wr=Ct.filters||vn(),Pn=Ct.alreadyAppliedFilters||[],ht=Ct.addLength1||!1,ne=Bt.length,pe=Ct.objectId,be=function(Qn){return Qn};if(Mr!==null&&pe===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Mr!==null&&(be=Gi.encryptor(pe,0));var Ue={};Wr===!0&&(Wr=["FlateEncode"]);var pt=Ct.additionalKeyValues||[],Xt=(Ue=j.API.processDataByFilters!==void 0?j.API.processDataByFilters(Bt,Wr):{data:Bt,reverseChain:[]}).reverseChain+(Array.isArray(Pn)?Pn.join(" "):Pn.toString());if(Ue.data.length!==0&&(pt.push({key:"Length",value:Ue.data.length}),ht===!0&&pt.push({key:"Length1",value:ne})),Xt.length!=0)if(Xt.split("/").length-1==1)pt.push({key:"Filter",value:Xt});else{pt.push({key:"Filter",value:"["+Xt+"]"});for(var Or=0;Or<pt.length;Or+=1)if(pt[Or].key==="DecodeParms"){for(var Qr=[],dn=0;dn<Ue.reverseChain.split("/").length-1;dn+=1)Qr.push("null");Qr.push(pt[Or].value),pt[Or].value="["+Qr.join(" ")+"]"}}xn("<<");for(var jn=0;jn<pt.length;jn++)xn("/"+pt[jn].key+" "+pt[jn].value);xn(">>"),Ue.data.length!==0&&(xn("stream"),xn(be(Ue.data)),xn("endstream"))},li=tr.__private__.putPage=function(Ct){var Bt=Ct.number,Wr=Ct.data,Pn=Ct.objId,ht=Ct.contentsObjId;La(Pn,!0),xn("<</Type /Page"),xn("/Parent "+Ct.rootDictionaryObjId+" 0 R"),xn("/Resources "+Ct.resourceDictionaryObjId+" 0 R"),xn("/MediaBox ["+parseFloat(Ri(Ct.mediaBox.bottomLeftX))+" "+parseFloat(Ri(Ct.mediaBox.bottomLeftY))+" "+Ri(Ct.mediaBox.topRightX)+" "+Ri(Ct.mediaBox.topRightY)+"]"),Ct.cropBox!==null&&xn("/CropBox ["+Ri(Ct.cropBox.bottomLeftX)+" "+Ri(Ct.cropBox.bottomLeftY)+" "+Ri(Ct.cropBox.topRightX)+" "+Ri(Ct.cropBox.topRightY)+"]"),Ct.bleedBox!==null&&xn("/BleedBox ["+Ri(Ct.bleedBox.bottomLeftX)+" "+Ri(Ct.bleedBox.bottomLeftY)+" "+Ri(Ct.bleedBox.topRightX)+" "+Ri(Ct.bleedBox.topRightY)+"]"),Ct.trimBox!==null&&xn("/TrimBox ["+Ri(Ct.trimBox.bottomLeftX)+" "+Ri(Ct.trimBox.bottomLeftY)+" "+Ri(Ct.trimBox.topRightX)+" "+Ri(Ct.trimBox.topRightY)+"]"),Ct.artBox!==null&&xn("/ArtBox ["+Ri(Ct.artBox.bottomLeftX)+" "+Ri(Ct.artBox.bottomLeftY)+" "+Ri(Ct.artBox.topRightX)+" "+Ri(Ct.artBox.topRightY)+"]"),typeof Ct.userUnit=="number"&&Ct.userUnit!==1&&xn("/UserUnit "+Ct.userUnit),Hn.publish("putPage",{objId:Pn,pageContext:Bn[Bt],pageNumber:Bt,page:Wr}),xn("/Contents "+ht+" 0 R"),xn(">>"),xn("endobj");var ne=Wr.join(`
`);return In===Pr.ADVANCED&&(ne+=`
Q`),La(ht,!0),ni({data:ne,filters:vn(),objectId:ht}),xn("endobj"),Pn},fi=tr.__private__.putPages=function(){var Ct,Bt,Wr=[];for(Ct=1;Ct<=sn;Ct++)Bn[Ct].objId=so(),Bn[Ct].contentsObjId=so();for(Ct=1;Ct<=sn;Ct++)Wr.push(li({number:Ct,data:Ji[Ct],objId:Bn[Ct].objId,contentsObjId:Bn[Ct].contentsObjId,mediaBox:Bn[Ct].mediaBox,cropBox:Bn[Ct].cropBox,bleedBox:Bn[Ct].bleedBox,trimBox:Bn[Ct].trimBox,artBox:Bn[Ct].artBox,userUnit:Bn[Ct].userUnit,rootDictionaryObjId:So,resourceDictionaryObjId:Qt}));La(So,!0),xn("<</Type /Pages");var Pn="/Kids [";for(Bt=0;Bt<sn;Bt++)Pn+=Wr[Bt]+" 0 R ";xn(Pn+"]"),xn("/Count "+sn),xn(">>"),xn("endobj"),Hn.publish("postPutPages")},di=function(Bt){Hn.publish("putFont",{font:Bt,out:xn,newObject:Ra,putStream:ni}),Bt.isAlreadyPutted!==!0&&(Bt.objectNumber=Ra(),xn("<<"),xn("/Type /Font"),xn("/BaseFont /"+R(Bt.postScriptName)),xn("/Subtype /Type1"),typeof Bt.encoding=="string"&&xn("/Encoding /"+Bt.encoding),xn("/FirstChar 32"),xn("/LastChar 255"),xn(">>"),xn("endobj"))},Jt=function(){for(var Bt in _o)_o.hasOwnProperty(Bt)&&(Sr===!1||Sr===!0&&jr.hasOwnProperty(Bt))&&di(_o[Bt])},Ot=function(Bt){Bt.objectNumber=Ra();var Wr=[];Wr.push({key:"Type",value:"/XObject"}),Wr.push({key:"Subtype",value:"/Form"}),Wr.push({key:"BBox",value:"["+[Ri(Bt.x),Ri(Bt.y),Ri(Bt.x+Bt.width),Ri(Bt.y+Bt.height)].join(" ")+"]"}),Wr.push({key:"Matrix",value:"["+Bt.matrix.toString()+"]"});var Pn=Bt.pages[1].join(`
`);ni({data:Pn,additionalKeyValues:Wr,objectId:Bt.objectNumber}),xn("endobj")},yr=function(){for(var Bt in Ci)Ci.hasOwnProperty(Bt)&&Ot(Ci[Bt])},ft=function(Bt,Wr){var Pn,ht=[],ne=1/(Wr-1);for(Pn=0;Pn<1;Pn+=ne)ht.push(Pn);if(ht.push(1),Bt[0].offset!=0){var pe={offset:0,color:Bt[0].color};Bt.unshift(pe)}if(Bt[Bt.length-1].offset!=1){var be={offset:1,color:Bt[Bt.length-1].color};Bt.push(be)}for(var Ue="",pt=0,Xt=0;Xt<ht.length;Xt++){for(Pn=ht[Xt];Pn>Bt[pt+1].offset;)pt++;var Or=Bt[pt].offset,Qr=(Pn-Or)/(Bt[pt+1].offset-Or),dn=Bt[pt].color,jn=Bt[pt+1].color;Ue+=Fn(Math.round((1-Qr)*dn[0]+Qr*jn[0]).toString(16))+Fn(Math.round((1-Qr)*dn[1]+Qr*jn[1]).toString(16))+Fn(Math.round((1-Qr)*dn[2]+Qr*jn[2]).toString(16))}return Ue.trim()},qt=function(Bt,Wr){Wr||(Wr=21);var Pn=Ra(),ht=ft(Bt.colors,Wr),ne=[];ne.push({key:"FunctionType",value:"0"}),ne.push({key:"Domain",value:"[0.0 1.0]"}),ne.push({key:"Size",value:"["+Wr+"]"}),ne.push({key:"BitsPerSample",value:"8"}),ne.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ne.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ni({data:ht,additionalKeyValues:ne,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Pn}),xn("endobj"),Bt.objectNumber=Ra(),xn("<< /ShadingType "+Bt.type),xn("/ColorSpace /DeviceRGB");var pe="/Coords ["+Ri(parseFloat(Bt.coords[0]))+" "+Ri(parseFloat(Bt.coords[1]))+" ";Bt.type===2?pe+=Ri(parseFloat(Bt.coords[2]))+" "+Ri(parseFloat(Bt.coords[3])):pe+=Ri(parseFloat(Bt.coords[2]))+" "+Ri(parseFloat(Bt.coords[3]))+" "+Ri(parseFloat(Bt.coords[4]))+" "+Ri(parseFloat(Bt.coords[5])),xn(pe+="]"),Bt.matrix&&xn("/Matrix ["+Bt.matrix.toString()+"]"),xn("/Function "+Pn+" 0 R"),xn("/Extend [true true]"),xn(">>"),xn("endobj")},dr=function(Bt,Wr){var Pn=so(),ht=Ra();Wr.push({resourcesOid:Pn,objectOid:ht}),Bt.objectNumber=ht;var ne=[];ne.push({key:"Type",value:"/Pattern"}),ne.push({key:"PatternType",value:"1"}),ne.push({key:"PaintType",value:"1"}),ne.push({key:"TilingType",value:"1"}),ne.push({key:"BBox",value:"["+Bt.boundingBox.map(Ri).join(" ")+"]"}),ne.push({key:"XStep",value:Ri(Bt.xStep)}),ne.push({key:"YStep",value:Ri(Bt.yStep)}),ne.push({key:"Resources",value:Pn+" 0 R"}),Bt.matrix&&ne.push({key:"Matrix",value:"["+Bt.matrix.toString()+"]"}),ni({data:Bt.stream,additionalKeyValues:ne,objectId:Bt.objectNumber}),xn("endobj")},Nr=function(Bt){var Wr;for(Wr in Dr)Dr.hasOwnProperty(Wr)&&(Dr[Wr]instanceof U?qt(Dr[Wr]):Dr[Wr]instanceof B&&dr(Dr[Wr],Bt))},Zr=function(Bt){for(var Wr in Bt.objectNumber=Ra(),xn("<<"),Bt)switch(Wr){case"opacity":xn("/ca "+Cn(Bt[Wr]));break;case"stroke-opacity":xn("/CA "+Cn(Bt[Wr]))}xn(">>"),xn("endobj")},pn=function(){var Bt;for(Bt in Tn)Tn.hasOwnProperty(Bt)&&Zr(Tn[Bt])},_n=function(){for(var Bt in xn("/XObject <<"),Ci)Ci.hasOwnProperty(Bt)&&Ci[Bt].objectNumber>=0&&xn("/"+Bt+" "+Ci[Bt].objectNumber+" 0 R");Hn.publish("putXobjectDict"),xn(">>")},Dn=function(){Gi.oid=Ra(),xn("<<"),xn("/Filter /Standard"),xn("/V "+Gi.v),xn("/R "+Gi.r),xn("/U <"+Gi.toHexString(Gi.U)+">"),xn("/O <"+Gi.toHexString(Gi.O)+">"),xn("/P "+Gi.P),xn(">>"),xn("endobj")},Zn=function(){for(var Bt in xn("/Font <<"),_o)_o.hasOwnProperty(Bt)&&(Sr===!1||Sr===!0&&jr.hasOwnProperty(Bt))&&xn("/"+Bt+" "+_o[Bt].objectNumber+" 0 R");xn(">>")},ii=function(){if(Object.keys(Dr).length>0){for(var Bt in xn("/Shading <<"),Dr)Dr.hasOwnProperty(Bt)&&Dr[Bt]instanceof U&&Dr[Bt].objectNumber>=0&&xn("/"+Bt+" "+Dr[Bt].objectNumber+" 0 R");Hn.publish("putShadingPatternDict"),xn(">>")}},pi=function(Bt){if(Object.keys(Dr).length>0){for(var Wr in xn("/Pattern <<"),Dr)Dr.hasOwnProperty(Wr)&&Dr[Wr]instanceof tr.TilingPattern&&Dr[Wr].objectNumber>=0&&Dr[Wr].objectNumber<Bt&&xn("/"+Wr+" "+Dr[Wr].objectNumber+" 0 R");Hn.publish("putTilingPatternDict"),xn(">>")}},ri=function(){if(Object.keys(Tn).length>0){var Bt;for(Bt in xn("/ExtGState <<"),Tn)Tn.hasOwnProperty(Bt)&&Tn[Bt].objectNumber>=0&&xn("/"+Bt+" "+Tn[Bt].objectNumber+" 0 R");Hn.publish("putGStateDict"),xn(">>")}},ji=function(Bt){La(Bt.resourcesOid,!0),xn("<<"),xn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Zn(),ii(),pi(Bt.objectOid),ri(),_n(),xn(">>"),xn("endobj")},ei=function(){var Bt=[];Jt(),pn(),yr(),Nr(Bt),Hn.publish("putResources"),Bt.forEach(ji),ji({resourcesOid:Qt,objectOid:Number.MAX_SAFE_INTEGER}),Hn.publish("postPutResources")},$e=function(){Hn.publish("putAdditionalObjects");for(var Bt=0;Bt<Mi.length;Bt++){var Wr=Mi[Bt];La(Wr.objId,!0),xn(Wr.content),xn("endobj")}Hn.publish("postPutAdditionalObjects")},Yt=function(Bt){Bo[Bt.fontName]=Bo[Bt.fontName]||{},Bo[Bt.fontName][Bt.fontStyle]=Bt.id},vr=function(Bt,Wr,Pn,ht,ne){var pe={id:"F"+(Object.keys(_o).length+1).toString(10),postScriptName:Bt,fontName:Wr,fontStyle:Pn,encoding:ht,isStandardFont:ne||!1,metadata:{}};return Hn.publish("addFont",{font:pe,instance:this}),_o[pe.id]=pe,Yt(pe),pe.id},fr=function(Bt){for(var Wr=0,Pn=Yi.length;Wr<Pn;Wr++){var ht=vr.call(this,Bt[Wr][0],Bt[Wr][1],Bt[Wr][2],Yi[Wr][3],!0);Sr===!1&&(jr[ht]=!0);var ne=Bt[Wr][0].split("-");Yt({id:ht,fontName:ne[0],fontStyle:ne[1]||""})}Hn.publish("addFonts",{fonts:_o,dictionary:Bo})},Xr=function(Bt){return Bt.foo=function(){try{return Bt.apply(this,arguments)}catch(ht){var Wr=ht.stack||"";~Wr.indexOf(" at ")&&(Wr=Wr.split(" at ")[1]);var Pn="Error in function "+Wr.split(`
`)[0].split("<")[0]+": "+ht.message;if(!b.console)throw new Error(Pn);b.console.error(Pn,ht),b.alert&&alert(Pn)}},Bt.foo.bar=Bt,Bt.foo},Fr=function(Bt,Wr){var Pn,ht,ne,pe,be,Ue,pt,Xt,Or;if(ne=(Wr=Wr||{}).sourceEncoding||"Unicode",be=Wr.outputEncoding,(Wr.autoencode||be)&&_o[Oo].metadata&&_o[Oo].metadata[ne]&&_o[Oo].metadata[ne].encoding&&(pe=_o[Oo].metadata[ne].encoding,!be&&_o[Oo].encoding&&(be=_o[Oo].encoding),!be&&pe.codePages&&(be=pe.codePages[0]),typeof be=="string"&&(be=pe[be]),be)){for(pt=!1,Ue=[],Pn=0,ht=Bt.length;Pn<ht;Pn++)(Xt=be[Bt.charCodeAt(Pn)])?Ue.push(String.fromCharCode(Xt)):Ue.push(Bt[Pn]),Ue[Pn].charCodeAt(0)>>8&&(pt=!0);Bt=Ue.join("")}for(Pn=Bt.length;pt===void 0&&Pn!==0;)Bt.charCodeAt(Pn-1)>>8&&(pt=!0),Pn--;if(!pt)return Bt;for(Ue=Wr.noBOM?[]:[254,255],Pn=0,ht=Bt.length;Pn<ht;Pn++){if((Or=(Xt=Bt.charCodeAt(Pn))>>8)>>8)throw new Error("Character at position "+Pn+" of string '"+Bt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Ue.push(Or),Ue.push(Xt-(Or<<8))}return String.fromCharCode.apply(void 0,Ue)},hr=tr.__private__.pdfEscape=tr.pdfEscape=function(Ct,Bt){return Fr(Ct,Bt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},An=tr.__private__.beginPage=function(Ct){Ji[++sn]=[],Bn[sn]={objId:0,contentsObjId:0,userUnit:Number(yt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ct[0]),topRightY:Number(Ct[1])}},Kn(sn),bi(Ji[_r])},br=function(Bt,Wr){var Pn,ht,ne;switch(Ne=Wr||Ne,typeof Bt=="string"&&(Pn=an(Bt.toLowerCase()),Array.isArray(Pn)&&(ht=Pn[0],ne=Pn[1])),Array.isArray(Bt)&&(ht=Bt[0]*sa,ne=Bt[1]*sa),isNaN(ht)&&(ht=Ye[0],ne=Ye[1]),(ht>14400||ne>14400)&&(f.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),ht=Math.min(14400,ht),ne=Math.min(14400,ne)),Ye=[ht,ne],Ne.substr(0,1)){case"l":ne>ht&&(Ye=[ne,ht]);break;case"p":ht>ne&&(Ye=[ne,ht])}An(Ye),No(Va),xn(Ea),Qo!==0&&xn(Qo+" J"),Yo!==0&&xn(Yo+" j"),Hn.publish("addPage",{pageNumber:sn})},mn=function(Bt){Bt>0&&Bt<=sn&&(Ji.splice(Bt,1),Bn.splice(Bt,1),sn--,_r>sn&&(_r=sn),this.setPage(_r))},Kn=function(Bt){Bt>0&&Bt<=sn&&(_r=Bt)},Wn=tr.__private__.getNumberOfPages=tr.getNumberOfPages=function(){return Ji.length-1},Ln=function(Bt,Wr,Pn){var ht,ne=void 0;return Pn=Pn||{},Bt=Bt!==void 0?Bt:_o[Oo].fontName,Wr=Wr!==void 0?Wr:_o[Oo].fontStyle,ht=Bt.toLowerCase(),Bo[ht]!==void 0&&Bo[ht][Wr]!==void 0?ne=Bo[ht][Wr]:Bo[Bt]!==void 0&&Bo[Bt][Wr]!==void 0?ne=Bo[Bt][Wr]:Pn.disableWarning===!1&&f.warn("Unable to look up font label for font '"+Bt+"', '"+Wr+"'. Refer to getFontList() for available fonts."),ne||Pn.noFallback||(ne=Bo.times[Wr])==null&&(ne=Bo.times.normal),ne},$n=tr.__private__.putInfo=function(){var Ct=Ra(),Bt=function(ht){return ht};for(var Wr in Mr!==null&&(Bt=Gi.encryptor(Ct,0)),xn("<<"),xn("/Producer ("+hr(Bt("jsPDF "+j.version))+")"),yo)yo.hasOwnProperty(Wr)&&yo[Wr]&&xn("/"+Wr.substr(0,1).toUpperCase()+Wr.substr(1)+" ("+hr(Bt(yo[Wr]))+")");xn("/CreationDate ("+hr(Bt(wr))+")"),xn(">>"),xn("endobj")},Un=tr.__private__.putCatalog=function(Ct){var Bt=(Ct=Ct||{}).rootDictionaryObjId||So;switch(Ra(),xn("<<"),xn("/Type /Catalog"),xn("/Pages "+Bt+" 0 R"),Hi||(Hi="fullwidth"),Hi){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 Wr=""+Hi;Wr.substr(Wr.length-1)==="%"&&(Hi=parseInt(Hi)/100),typeof Hi=="number"&&xn("/OpenAction [3 0 R /XYZ null null "+Cn(Hi)+"]")}switch(po||(po="continuous"),po){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")}Qa&&xn("/PageMode /"+Qa),Hn.publish("putCatalog"),xn(">>"),xn("endobj")},ti=tr.__private__.putTrailer=function(){xn("trailer"),xn("<<"),xn("/Size "+(Vn+1)),xn("/Root "+Vn+" 0 R"),xn("/Info "+(Vn-1)+" 0 R"),Mr!==null&&xn("/Encrypt "+Gi.oid+" 0 R"),xn("/ID [ <"+Gr+"> <"+Gr+"> ]"),xn(">>")},Xn=tr.__private__.putHeader=function(){xn("%PDF-"+gn),xn("%\xBA\xDF\xAC\xE0")},wi=tr.__private__.putXRef=function(){var Ct="0000000000";xn("xref"),xn("0 "+(Vn+1)),xn("0000000000 65535 f ");for(var Bt=1;Bt<=Vn;Bt++)typeof qn[Bt]=="function"?xn((Ct+qn[Bt]()).slice(-10)+" 00000 n "):qn[Bt]!==void 0?xn((Ct+qn[Bt]).slice(-10)+" 00000 n "):xn("0000000000 00000 n ")},Ei=tr.__private__.buildDocument=function(){qa(),bi(Oi),Hn.publish("buildDocument"),Xn(),fi(),$e(),ei(),Mr!==null&&Dn(),$n(),Un();var Ct=Ni;return wi(),ti(),xn("startxref"),xn(""+Ct),xn("%%EOF"),bi(Ji[_r]),Oi.join(`
`)},Zi=tr.__private__.getBlob=function(Ct){return new Blob([oa(Ct)],{type:"application/pdf"})},ua=tr.output=tr.__private__.output=Xr(function(Ct,Bt){switch(typeof(Bt=Bt||{})=="string"?Bt={filename:Bt}:Bt.filename=Bt.filename||"generated.pdf",Ct){case void 0:return Ei();case"save":tr.save(Bt.filename);break;case"arraybuffer":return oa(Ei());case"blob":return Zi(Ei());case"bloburi":case"bloburl":if(b.URL!==void 0&&typeof b.URL.createObjectURL=="function")return b.URL&&b.URL.createObjectURL(Zi(Ei()))||void 0;f.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Wr="",Pn=Ei();try{Wr=n(Pn)}catch(dn){Wr=n(unescape(encodeURIComponent(Pn)))}return"data:application/pdf;filename="+Bt.filename+";base64,"+Wr;case"pdfobjectnewwindow":if(Object.prototype.toString.call(b)==="[object Window]"){var ht="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ne=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Bt.pdfObjectUrl&&(ht=Bt.pdfObjectUrl,ne="");var pe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+ht+'"'+ne+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(Bt)+");</script></body></html>",be=b.open();return be!==null&&be.document.write(pe),be}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(b)==="[object Window]"){var Ue='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(Bt.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+Bt.filename+'" width="500px" height="400px" /></body></html>',pt=b.open();if(pt!==null){pt.document.write(Ue);var Xt=this;pt.document.documentElement.querySelector("#pdfViewer").onload=function(){pt.document.title=Bt.filename,pt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Xt.output("bloburl"))}}return pt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(b)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Or='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",Bt)+'"></iframe></body></html>',Qr=b.open();if(Qr!==null&&(Qr.document.write(Or),Qr.document.title=Bt.filename),Qr||typeof safari=="undefined")return Qr;break;case"datauri":case"dataurl":return b.document.location.href=this.output("datauristring",Bt);default:return null}}),Xi=function(Bt){return Array.isArray(Li)===!0&&Li.indexOf(Bt)>-1};switch(Fe){case"pt":sa=1;break;case"mm":sa=72/25.4;break;case"cm":sa=72/2.54;break;case"in":sa=72;break;case"px":sa=Xi("px_scaling")==1?.75:96/72;break;case"pc":case"em":sa=12;break;case"ex":sa=6;break;default:if(typeof Fe!="number")throw new Error("Invalid unit: "+Fe);sa=Fe}var Gi=null;Ti(),qr();var wa=function(Bt){return Mr!==null?Gi.encryptor(Bt,0):function(Wr){return Wr}},na=tr.__private__.getPageInfo=tr.getPageInfo=function(Ct){if(isNaN(Ct)||Ct%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Bn[Ct].objId,pageNumber:Ct,pageContext:Bn[Ct]}},mo=tr.__private__.getPageInfoByObjId=function(Ct){if(isNaN(Ct)||Ct%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var Bt in Bn)if(Bn[Bt].objId===Ct)break;return na(Bt)},Ca=tr.__private__.getCurrentPageInfo=tr.getCurrentPageInfo=function(){return{objId:Bn[_r].objId,pageNumber:_r,pageContext:Bn[_r]}};tr.addPage=function(){return br.apply(this,arguments),this},tr.setPage=function(){return Kn.apply(this,arguments),bi.call(this,Ji[_r]),this},tr.insertPage=function(Ct){return this.addPage(),this.movePage(_r,Ct),this},tr.movePage=function(Ct,Bt){var Wr,Pn;if(Ct>Bt){Wr=Ji[Ct],Pn=Bn[Ct];for(var ht=Ct;ht>Bt;ht--)Ji[ht]=Ji[ht-1],Bn[ht]=Bn[ht-1];Ji[Bt]=Wr,Bn[Bt]=Pn,this.setPage(Bt)}else if(Ct<Bt){Wr=Ji[Ct],Pn=Bn[Ct];for(var ne=Ct;ne<Bt;ne++)Ji[ne]=Ji[ne+1],Bn[ne]=Bn[ne+1];Ji[Bt]=Wr,Bn[Bt]=Pn,this.setPage(Bt)}return this},tr.deletePage=function(){return mn.apply(this,arguments),this},tr.__private__.text=tr.text=function(Ct,Bt,Wr,Pn,ht){var ne,pe,be,Ue,pt,Xt,Or,Qr,dn,jn=(Pn=Pn||{}).scope||this;if(typeof Ct=="number"&&typeof Bt=="number"&&(typeof Wr=="string"||Array.isArray(Wr))){var ai=Wr;Wr=Bt,Bt=Ct,Ct=ai}if(arguments[3]instanceof yi==!1?(be=arguments[4],Ue=arguments[5],C()(Or=arguments[3])==="object"&&Or!==null||(typeof be=="string"&&(Ue=be,be=null),typeof Or=="string"&&(Ue=Or,Or=null),typeof Or=="number"&&(be=Or,Or=null),Pn={flags:Or,angle:be,align:Ue})):(Ki("The transform parameter of text() with a Matrix value"),dn=ht),isNaN(Bt)||isNaN(Wr)||Ct==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Ct.length===0)return jn;var Qn="",Di=!1,Vi=typeof Pn.lineHeightFactor=="number"?Pn.lineHeightFactor:Sa,Ta=jn.internal.scaleFactor;function Ga(Rs){return Rs=Rs.split(" ").join(Array(Pn.TabLen||9).join(" ")),hr(Rs,Or)}function ao(Rs){for(var bs,Ms=Rs.concat(),Ts=[],Zs=Ms.length;Zs--;)typeof(bs=Ms.shift())=="string"?Ts.push(bs):Array.isArray(Rs)&&(bs.length===1||bs[1]===void 0&&bs[2]===void 0)?Ts.push(bs[0]):Ts.push([bs[0],bs[1],bs[2]]);return Ts}function Do(Rs,bs){var Ms;if(typeof Rs=="string")Ms=bs(Rs)[0];else if(Array.isArray(Rs)){for(var Ts,Zs,hl=Rs.concat(),wl=[],Kl=hl.length;Kl--;)typeof(Ts=hl.shift())=="string"?wl.push(bs(Ts)[0]):Array.isArray(Ts)&&typeof Ts[0]=="string"&&(Zs=bs(Ts[0],Ts[1],Ts[2]),wl.push([Zs[0],Zs[1],Zs[2]]));Ms=wl}return Ms}var fo=!1,as=!0;if(typeof Ct=="string")fo=!0;else if(Array.isArray(Ct)){var io=Ct.concat();pe=[];for(var Xa,Ya=io.length;Ya--;)(typeof(Xa=io.shift())!="string"||Array.isArray(Xa)&&typeof Xa[0]!="string")&&(as=!1);fo=as}if(fo===!1)throw new Error('Type of text must be string or Array. "'+Ct+'" is not recognized.');typeof Ct=="string"&&(Ct=Ct.match(/[\r?\n]/)?Ct.split(/\r\n|\r|\n/g):[Ct]);var ka=ca/jn.internal.scaleFactor,os=ka*(Vi-1);switch(Pn.baseline){case"bottom":Wr-=os;break;case"top":Wr+=ka-os;break;case"hanging":Wr+=ka-2*os;break;case"middle":Wr+=ka/2-os}if((Xt=Pn.maxWidth||0)>0&&(typeof Ct=="string"?Ct=jn.splitTextToSize(Ct,Xt):Object.prototype.toString.call(Ct)==="[object Array]"&&(Ct=Ct.reduce(function(Rs,bs){return Rs.concat(jn.splitTextToSize(bs,Xt))},[]))),ne={text:Ct,x:Bt,y:Wr,options:Pn,mutex:{pdfEscape:hr,activeFontKey:Oo,fonts:_o,activeFontSize:ca}},Hn.publish("preProcessText",ne),Ct=ne.text,be=(Pn=ne.options).angle,dn instanceof yi==!1&&be&&typeof be=="number"){be*=Math.PI/180,Pn.rotationDirection===0&&(be=-be),In===Pr.ADVANCED&&(be=-be);var Es=Math.cos(be),qo=Math.sin(be);dn=new yi(Es,qo,-qo,Es,0,0)}else be&&be instanceof yi&&(dn=be);In!==Pr.ADVANCED||dn||(dn=ha),(pt=Pn.charSpace||Vo)!==void 0&&(Qn+=Ri(mr(pt))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Qr=Pn.horizontalScale)!==void 0&&(Qn+=Ri(100*Qr)+` Tz
`),Pn.lang;var pa=-1,ls=Pn.renderingMode!==void 0?Pn.renderingMode:Pn.stroke,Os=jn.internal.getCurrentPageInfo().pageContext;switch(ls){case 0:case!1:case"fill":pa=0;break;case 1:case!0:case"stroke":pa=1;break;case 2:case"fillThenStroke":pa=2;break;case 3:case"invisible":pa=3;break;case 4:case"fillAndAddForClipping":pa=4;break;case 5:case"strokeAndAddPathForClipping":pa=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":pa=6;break;case 7:case"addToPathForClipping":pa=7}var ys=Os.usedRenderingMode!==void 0?Os.usedRenderingMode:-1;pa!==-1?Qn+=pa+` Tr
`:ys!==-1&&(Qn+=`0 Tr
`),pa!==-1&&(Os.usedRenderingMode=pa),Ue=Pn.align||"left";var ms,ws=ca*Vi,Pl=jn.internal.pageSize.getWidth(),ml=_o[Oo];pt=Pn.charSpace||Vo,Xt=Pn.maxWidth||0,Or=Object.assign({autoencode:!0,noBOM:!0},Pn.flags);var Ws=[];if(Object.prototype.toString.call(Ct)==="[object Array]"){var fs;pe=ao(Ct),Ue!=="left"&&(ms=pe.map(function(Rs){return jn.getStringUnitWidth(Rs,{font:ml,charSpace:pt,fontSize:ca,doKerning:!1})*ca/Ta}));var _s,gl=0;if(Ue==="right"){Bt-=ms[0],Ct=[],Ya=pe.length;for(var Bs=0;Bs<Ya;Bs++)Bs===0?(_s=co(Bt),fs=fa(Wr)):(_s=mr(gl-ms[Bs]),fs=-ws),Ct.push([pe[Bs],_s,fs]),gl=ms[Bs]}else if(Ue==="center"){Bt-=ms[0]/2,Ct=[],Ya=pe.length;for(var Us=0;Us<Ya;Us++)Us===0?(_s=co(Bt),fs=fa(Wr)):(_s=mr((gl-ms[Us])/2),fs=-ws),Ct.push([pe[Us],_s,fs]),gl=ms[Us]}else if(Ue==="left"){Ct=[],Ya=pe.length;for(var Qs=0;Qs<Ya;Qs++)Ct.push(pe[Qs])}else{if(Ue!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');Ct=[],Ya=pe.length,Xt=Xt!==0?Xt:Pl;for(var al=0;al<Ya;al++)fs=al===0?fa(Wr):-ws,_s=al===0?co(Bt):0,al<Ya-1?Ws.push(Ri(mr((Xt-ms[al])/(pe[al].split(" ").length-1)))):Ws.push(0),Ct.push([pe[al],_s,fs])}}var El=typeof Pn.R2L=="boolean"?Pn.R2L:Da;El===!0&&(Ct=Do(Ct,function(Rs,bs,Ms){return[Rs.split("").reverse().join(""),bs,Ms]})),ne={text:Ct,x:Bt,y:Wr,options:Pn,mutex:{pdfEscape:hr,activeFontKey:Oo,fonts:_o,activeFontSize:ca}},Hn.publish("postProcessText",ne),Ct=ne.text,Di=ne.mutex.isHex||!1;var bl=_o[Oo].encoding;bl!=="WinAnsiEncoding"&&bl!=="StandardEncoding"||(Ct=Do(Ct,function(Rs,bs,Ms){return[Ga(Rs),bs,Ms]})),pe=ao(Ct),Ct=[];for(var ol,Gs,zs,vl=0,Xs=1,sl=Array.isArray(pe[0])?Xs:vl,dl="",rl=function(bs,Ms,Ts){var Zs="";return Ts instanceof yi?(Ts=typeof Pn.angle=="number"?da(Ts,new yi(1,0,0,1,bs,Ms)):da(new yi(1,0,0,1,bs,Ms),Ts),In===Pr.ADVANCED&&(Ts=da(new yi(1,0,0,-1,0,0),Ts)),Zs=Ts.join(" ")+` Tm
`):Zs=Ri(bs)+" "+Ri(Ms)+` Td
`,Zs},nl=0;nl<pe.length;nl++){switch(dl="",sl){case Xs:zs=(Di?"<":"(")+pe[nl][0]+(Di?">":")"),ol=parseFloat(pe[nl][1]),Gs=parseFloat(pe[nl][2]);break;case vl:zs=(Di?"<":"(")+pe[nl]+(Di?">":")"),ol=co(Bt),Gs=fa(Wr)}Ws!==void 0&&Ws[nl]!==void 0&&(dl=Ws[nl]+` Tw
`),nl===0?Ct.push(dl+rl(ol,Gs,dn)+zs):sl===vl?Ct.push(dl+zs):sl===Xs&&Ct.push(dl+rl(ol,Gs,dn)+zs)}Ct=sl===vl?Ct.join(` Tj
T* `):Ct.join(` Tj
`),Ct+=` Tj
`;var Tl=`BT
/`;return Tl+=Oo+" "+ca+` Tf
`,Tl+=Ri(ca*Vi)+` TL
`,Tl+=za+`
`,Tl+=Qn,Tl+=Ct,xn(Tl+="ET"),jr[Oo]=!0,jn};var qi=tr.__private__.clip=tr.clip=function(Ct){return xn(Ct==="evenodd"?"W*":"W"),this};tr.clipEvenOdd=function(){return qi("evenodd")},tr.__private__.discardPath=tr.discardPath=function(){return xn("n"),this};var aa=tr.__private__.isValidStyle=function(Ct){var Bt=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ct)!==-1&&(Bt=!0),Bt};tr.__private__.setDefaultPathOperation=tr.setDefaultPathOperation=function(Ct){return aa(Ct)&&($t=Ct),this};var $i=tr.__private__.getStyle=tr.getStyle=function(Ct){var Bt=$t;switch(Ct){case"D":case"S":Bt="S";break;case"F":Bt="f";break;case"FD":case"DF":Bt="B";break;case"f":case"f*":case"B":case"B*":Bt=Ct}return Bt},Aa=tr.close=function(){return xn("h"),this};tr.stroke=function(){return xn("S"),this},tr.fill=function(Ct){return ya("f",Ct),this},tr.fillEvenOdd=function(Ct){return ya("f*",Ct),this},tr.fillStroke=function(Ct){return ya("B",Ct),this},tr.fillStrokeEvenOdd=function(Ct){return ya("B*",Ct),this};var ya=function(Bt,Wr){C()(Wr)==="object"?ra(Wr,Bt):xn(Bt)},Ha=function(Bt){Bt===null||In===Pr.ADVANCED&&Bt===void 0||(Bt=$i(Bt),xn(Bt))};function ta(Ct,Bt,Wr,Pn,ht){var ne=new B(Bt||this.boundingBox,Wr||this.xStep,Pn||this.yStep,this.gState,ht||this.matrix);ne.stream=this.stream;var pe=Ct+"$$"+this.cloneIndex+++"$$";return Pa(pe,ne),ne}var ra=function(Bt,Wr){var Pn=rn[Bt.key],ht=Dr[Pn];if(ht instanceof U)xn("q"),xn(_a(Wr)),ht.gState&&tr.setGState(ht.gState),xn(Bt.matrix.toString()+" cm"),xn("/"+Pn+" sh"),xn("Q");else if(ht instanceof B){var ne=new yi(1,0,0,-1,0,is());Bt.matrix&&(ne=ne.multiply(Bt.matrix||ha),Pn=ta.call(ht,Bt.key,Bt.boundingBox,Bt.xStep,Bt.yStep,ne).id),xn("q"),xn("/Pattern cs"),xn("/"+Pn+" scn"),ht.gState&&tr.setGState(ht.gState),xn(Wr),xn("Q")}},_a=function(Bt){switch(Bt){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"}},Ka=tr.moveTo=function(Ct,Bt){return xn(Ri(mr(Ct))+" "+Ri(Nt(Bt))+" m"),this},bo=tr.lineTo=function(Ct,Bt){return xn(Ri(mr(Ct))+" "+Ri(Nt(Bt))+" l"),this},ga=tr.curveTo=function(Ct,Bt,Wr,Pn,ht,ne){return xn([Ri(mr(Ct)),Ri(Nt(Bt)),Ri(mr(Wr)),Ri(Nt(Pn)),Ri(mr(ht)),Ri(Nt(ne)),"c"].join(" ")),this};tr.__private__.line=tr.line=function(Ct,Bt,Wr,Pn,ht){if(isNaN(Ct)||isNaN(Bt)||isNaN(Wr)||isNaN(Pn)||!aa(ht))throw new Error("Invalid arguments passed to jsPDF.line");return In===Pr.COMPAT?this.lines([[Wr-Ct,Pn-Bt]],Ct,Bt,[1,1],ht||"S"):this.lines([[Wr-Ct,Pn-Bt]],Ct,Bt,[1,1]).stroke()},tr.__private__.lines=tr.lines=function(Ct,Bt,Wr,Pn,ht,ne){var pe,be,Ue,pt,Xt,Or,Qr,dn,jn,ai,Qn,Di;if(typeof Ct=="number"&&(Di=Wr,Wr=Bt,Bt=Ct,Ct=Di),Pn=Pn||[1,1],ne=ne||!1,isNaN(Bt)||isNaN(Wr)||!Array.isArray(Ct)||!Array.isArray(Pn)||!aa(ht)||typeof ne!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Ka(Bt,Wr),pe=Pn[0],be=Pn[1],pt=Ct.length,ai=Bt,Qn=Wr,Ue=0;Ue<pt;Ue++)(Xt=Ct[Ue]).length===2?(ai=Xt[0]*pe+ai,Qn=Xt[1]*be+Qn,bo(ai,Qn)):(Or=Xt[0]*pe+ai,Qr=Xt[1]*be+Qn,dn=Xt[2]*pe+ai,jn=Xt[3]*be+Qn,ai=Xt[4]*pe+ai,Qn=Xt[5]*be+Qn,ga(Or,Qr,dn,jn,ai,Qn));return ne&&Aa(),Ha(ht),this},tr.path=function(Ct){for(var Bt=0;Bt<Ct.length;Bt++){var Wr=Ct[Bt],Pn=Wr.c;switch(Wr.op){case"m":Ka(Pn[0],Pn[1]);break;case"l":bo(Pn[0],Pn[1]);break;case"c":ga.apply(this,Pn);break;case"h":Aa()}}return this},tr.__private__.rect=tr.rect=function(Ct,Bt,Wr,Pn,ht){if(isNaN(Ct)||isNaN(Bt)||isNaN(Wr)||isNaN(Pn)||!aa(ht))throw new Error("Invalid arguments passed to jsPDF.rect");return In===Pr.COMPAT&&(Pn=-Pn),xn([Ri(mr(Ct)),Ri(Nt(Bt)),Ri(mr(Wr)),Ri(mr(Pn)),"re"].join(" ")),Ha(ht),this},tr.__private__.triangle=tr.triangle=function(Ct,Bt,Wr,Pn,ht,ne,pe){if(isNaN(Ct)||isNaN(Bt)||isNaN(Wr)||isNaN(Pn)||isNaN(ht)||isNaN(ne)||!aa(pe))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Wr-Ct,Pn-Bt],[ht-Wr,ne-Pn],[Ct-ht,Bt-ne]],Ct,Bt,[1,1],pe,!0),this},tr.__private__.roundedRect=tr.roundedRect=function(Ct,Bt,Wr,Pn,ht,ne,pe){if(isNaN(Ct)||isNaN(Bt)||isNaN(Wr)||isNaN(Pn)||isNaN(ht)||isNaN(ne)||!aa(pe))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var be=4/3*(Math.SQRT2-1);return ht=Math.min(ht,.5*Wr),ne=Math.min(ne,.5*Pn),this.lines([[Wr-2*ht,0],[ht*be,0,ht,ne-ne*be,ht,ne],[0,Pn-2*ne],[0,ne*be,-ht*be,ne,-ht,ne],[2*ht-Wr,0],[-ht*be,0,-ht,-ne*be,-ht,-ne],[0,2*ne-Pn],[0,-ne*be,ht*be,-ne,ht,-ne]],Ct+ht,Bt,[1,1],pe,!0),this},tr.__private__.ellipse=tr.ellipse=function(Ct,Bt,Wr,Pn,ht){if(isNaN(Ct)||isNaN(Bt)||isNaN(Wr)||isNaN(Pn)||!aa(ht))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ne=4/3*(Math.SQRT2-1)*Wr,pe=4/3*(Math.SQRT2-1)*Pn;return Ka(Ct+Wr,Bt),ga(Ct+Wr,Bt-pe,Ct+ne,Bt-Pn,Ct,Bt-Pn),ga(Ct-ne,Bt-Pn,Ct-Wr,Bt-pe,Ct-Wr,Bt),ga(Ct-Wr,Bt+pe,Ct-ne,Bt+Pn,Ct,Bt+Pn),ga(Ct+ne,Bt+Pn,Ct+Wr,Bt+pe,Ct+Wr,Bt),Ha(ht),this},tr.__private__.circle=tr.circle=function(Ct,Bt,Wr,Pn){if(isNaN(Ct)||isNaN(Bt)||isNaN(Wr)||!aa(Pn))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ct,Bt,Wr,Wr,Pn)},tr.setFont=function(Ct,Bt,Wr){return Wr&&(Bt=ki(Bt,Wr)),Oo=Ln(Ct,Bt,{disableWarning:!1}),this};var go=tr.__private__.getFont=tr.getFont=function(){return _o[Ln.apply(tr,arguments)]};tr.__private__.getFontList=tr.getFontList=function(){var Ct,Bt,Wr={};for(Ct in Bo)if(Bo.hasOwnProperty(Ct))for(Bt in Wr[Ct]=[],Bo[Ct])Bo[Ct].hasOwnProperty(Bt)&&Wr[Ct].push(Bt);return Wr},tr.addFont=function(Ct,Bt,Wr,Pn,ht){var ne=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ne.indexOf(arguments[3])!==-1?ht=arguments[3]:arguments[3]&&ne.indexOf(arguments[3])==-1&&(Wr=ki(Wr,Pn)),ht=ht||"Identity-H",vr.call(this,Ct,Bt,Wr,ht)};var Sa,Va=Ze.lineWidth||.200025,uo=tr.__private__.getLineWidth=tr.getLineWidth=function(){return Va},No=tr.__private__.setLineWidth=tr.setLineWidth=function(Ct){return Va=Ct,xn(Ri(mr(Ct))+" w"),this};tr.__private__.setLineDash=j.API.setLineDash=j.API.setLineDashPattern=function(Ct,Bt){if(Ct=Ct||[],Bt=Bt||0,isNaN(Bt)||!Array.isArray(Ct))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ct=Ct.map(function(Wr){return Ri(mr(Wr))}).join(" "),Bt=Ri(mr(Bt)),xn("["+Ct+"] "+Bt+" d"),this};var Po=tr.__private__.getLineHeight=tr.getLineHeight=function(){return ca*Sa};tr.__private__.getLineHeight=tr.getLineHeight=function(){return ca*Sa};var to=tr.__private__.setLineHeightFactor=tr.setLineHeightFactor=function(Ct){return typeof(Ct=Ct||1.15)=="number"&&(Sa=Ct),this},Uo=tr.__private__.getLineHeightFactor=tr.getLineHeightFactor=function(){return Sa};to(Ze.lineHeight);var co=tr.__private__.getHorizontalCoordinate=function(Ct){return mr(Ct)},fa=tr.__private__.getVerticalCoordinate=function(Ct){return In===Pr.ADVANCED?Ct:Bn[_r].mediaBox.topRightY-Bn[_r].mediaBox.bottomLeftY-mr(Ct)},ro=tr.__private__.getHorizontalCoordinateString=tr.getHorizontalCoordinateString=function(Ct){return Ri(co(Ct))},Wa=tr.__private__.getVerticalCoordinateString=tr.getVerticalCoordinateString=function(Ct){return Ri(fa(Ct))},Ea=Ze.strokeColor||"0 G";tr.__private__.getStrokeColor=tr.getDrawColor=function(){return Vr(Ea)},tr.__private__.setStrokeColor=tr.setDrawColor=function(Ct,Bt,Wr,Pn){return Ea=cn({ch1:Ct,ch2:Bt,ch3:Wr,ch4:Pn,pdfColorType:"draw",precision:2}),xn(Ea),this};var Jr=Ze.fillColor||"0 g";tr.__private__.getFillColor=tr.getFillColor=function(){return Vr(Jr)},tr.__private__.setFillColor=tr.setFillColor=function(Ct,Bt,Wr,Pn){return Jr=cn({ch1:Ct,ch2:Bt,ch3:Wr,ch4:Pn,pdfColorType:"fill",precision:2}),xn(Jr),this};var za=Ze.textColor||"0 g",rs=tr.__private__.getTextColor=tr.getTextColor=function(){return Vr(za)};tr.__private__.setTextColor=tr.setTextColor=function(Ct,Bt,Wr,Pn){return za=cn({ch1:Ct,ch2:Bt,ch3:Wr,ch4:Pn,pdfColorType:"text",precision:3}),this};var Vo=Ze.charSpace,Go=tr.__private__.getCharSpace=tr.getCharSpace=function(){return parseFloat(Vo||0)};tr.__private__.setCharSpace=tr.setCharSpace=function(Ct){if(isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Vo=Ct,this};var Qo=0;tr.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},tr.__private__.setLineCap=tr.setLineCap=function(Ct){var Bt=tr.CapJoinStyles[Ct];if(Bt===void 0)throw new Error("Line cap style of '"+Ct+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Qo=Bt,xn(Bt+" J"),this};var Yo=0;tr.__private__.setLineJoin=tr.setLineJoin=function(Ct){var Bt=tr.CapJoinStyles[Ct];if(Bt===void 0)throw new Error("Line join style of '"+Ct+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Yo=Bt,xn(Bt+" j"),this},tr.__private__.setLineMiterLimit=tr.__private__.setMiterLimit=tr.setLineMiterLimit=tr.setMiterLimit=function(Ct){if(Ct=Ct||0,isNaN(Ct))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return xn(Ri(mr(Ct))+" M"),this},tr.GState=F,tr.setGState=function(Ct){(Ct=typeof Ct=="string"?Tn[en[Ct]]:vo(null,Ct)).equals(ur)||(xn("/"+Ct.id+" gs"),ur=Ct)};var vo=function(Bt,Wr){if(!Bt||!en[Bt]){var Pn=!1;for(var ht in Tn)if(Tn.hasOwnProperty(ht)&&Tn[ht].equals(Wr)){Pn=!0;break}if(Pn)Wr=Tn[ht];else{var ne="GS"+(Object.keys(Tn).length+1).toString(10);Tn[ne]=Wr,Wr.id=ne}return Bt&&(en[Bt]=Wr.id),Hn.publish("addGState",Wr),Wr}};tr.addGState=function(Ct,Bt){return vo(Ct,Bt),this},tr.saveGraphicsState=function(){return xn("q"),Ds.push({key:Oo,size:ca,color:za}),this},tr.restoreGraphicsState=function(){xn("Q");var Ct=Ds.pop();return Oo=Ct.key,ca=Ct.size,za=Ct.color,ur=null,this},tr.setCurrentTransformationMatrix=function(Ct){return xn(Ct.toString()+" cm"),this},tr.comment=function(Ct){return xn("#"+Ct),this};var Io=function(Bt,Wr){var Pn=Bt||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Pn},set:function(be){isNaN(be)||(Pn=parseFloat(be))}});var ht=Wr||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return ht},set:function(be){isNaN(be)||(ht=parseFloat(be))}});var ne="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ne},set:function(be){ne=be.toString()}}),this},zo=function(Bt,Wr,Pn,ht){Io.call(this,Bt,Wr),this.type="rect";var ne=Pn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ne},set:function(Ue){isNaN(Ue)||(ne=parseFloat(Ue))}});var pe=ht||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return pe},set:function(Ue){isNaN(Ue)||(pe=parseFloat(Ue))}}),this},Fa=function(){this.page=sn,this.currentPage=_r,this.pages=Ji.slice(0),this.pagesContext=Bn.slice(0),this.x=hs,this.y=Jo,this.matrix=wo,this.width=$o(_r),this.height=is(_r),this.outputDestination=la,this.id="",this.objectNumber=-1};Fa.prototype.restore=function(){sn=this.page,_r=this.currentPage,Bn=this.pagesContext,Ji=this.pages,hs=this.x,Jo=this.y,wo=this.matrix,ps(_r,this.width),Za(_r,this.height),la=this.outputDestination};var Ja=function(Bt,Wr,Pn,ht,ne){mi.push(new Fa),sn=_r=0,Ji=[],hs=Bt,Jo=Wr,wo=ne,An([Pn,ht])},ho=function(Bt){if(Jn[Bt])mi.pop().restore();else{var Wr=new Fa,Pn="Xo"+(Object.keys(Ci).length+1).toString(10);Wr.id=Pn,Jn[Bt]=Pn,Ci[Pn]=Wr,Hn.publish("addFormObject",Wr),mi.pop().restore()}};for(var Ao in tr.beginFormObject=function(Ct,Bt,Wr,Pn,ht){return Ja(Ct,Bt,Wr,Pn,ht),this},tr.endFormObject=function(Ct){return ho(Ct),this},tr.doFormObject=function(Ct,Bt){var Wr=Ci[Jn[Ct]];return xn("q"),xn(Bt.toString()+" cm"),xn("/"+Wr.id+" Do"),xn("Q"),this},tr.getFormObject=function(Ct){var Bt=Ci[Jn[Ct]];return{x:Bt.x,y:Bt.y,width:Bt.width,height:Bt.height,matrix:Bt.matrix}},tr.save=function(Ct,Bt){return Ct=Ct||"generated.pdf",(Bt=Bt||{}).returnPromise=Bt.returnPromise||!1,Bt.returnPromise===!1?(e(Zi(Ei()),Ct),typeof e.unload=="function"&&b.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(Wr,Pn){try{var ht=e(Zi(Ei()),Ct);typeof e.unload=="function"&&b.setTimeout&&setTimeout(e.unload,911),Wr(ht)}catch(ne){Pn(ne.message)}})},j.API)j.API.hasOwnProperty(Ao)&&(Ao==="events"&&j.API.events.length?function(Ct,Bt){var Wr,Pn,ht;for(ht=Bt.length-1;ht!==-1;ht--)Wr=Bt[ht][0],Pn=Bt[ht][1],Ct.subscribe.apply(Ct,[Wr].concat(typeof Pn=="function"?[Pn]:Pn))}(Hn,j.API.events):tr[Ao]=j.API[Ao]);var $o=tr.getPageWidth=function(Ct){return(Bn[Ct=Ct||_r].mediaBox.topRightX-Bn[Ct].mediaBox.bottomLeftX)/sa},ps=tr.setPageWidth=function(Ct,Bt){Bn[Ct].mediaBox.topRightX=Bt*sa+Bn[Ct].mediaBox.bottomLeftX},is=tr.getPageHeight=function(Ct){return(Bn[Ct=Ct||_r].mediaBox.topRightY-Bn[Ct].mediaBox.bottomLeftY)/sa},Za=tr.setPageHeight=function(Ct,Bt){Bn[Ct].mediaBox.topRightY=Bt*sa+Bn[Ct].mediaBox.bottomLeftY};return tr.internal={pdfEscape:hr,getStyle:$i,getFont:go,getFontSize:Ia,getCharSpace:Go,getTextColor:rs,getLineHeight:Po,getLineHeightFactor:Uo,getLineWidth:uo,write:zi,getHorizontalCoordinate:co,getVerticalCoordinate:fa,getCoordinateString:ro,getVerticalCoordinateString:Wa,collections:{},newObject:Ra,newAdditionalObject:lo,newObjectDeferred:so,newObjectDeferredBegin:La,getFilters:vn,putStream:ni,events:Hn,scaleFactor:sa,pageSize:{getWidth:function(){return $o(_r)},setWidth:function(Bt){ps(_r,Bt)},getHeight:function(){return is(_r)},setHeight:function(Bt){Za(_r,Bt)}},encryptionOptions:Mr,encryption:Gi,getEncryptor:wa,output:ua,getNumberOfPages:Wn,pages:Ji,out:xn,f2:Cn,f3:kr,getPageInfo:na,getPageInfoByObjId:mo,getCurrentPageInfo:Ca,getPDFVersion:sr,Point:Io,Rectangle:zo,Matrix:yi,hasHotfix:Xi},Object.defineProperty(tr.internal.pageSize,"width",{get:function(){return $o(_r)},set:function(Bt){ps(_r,Bt)},enumerable:!0,configurable:!0}),Object.defineProperty(tr.internal.pageSize,"height",{get:function(){return is(_r)},set:function(Bt){Za(_r,Bt)},enumerable:!0,configurable:!0}),fr.call(tr,Yi),Oo="F1",br(Ye,Ne),Hn.publish("initialized"),tr}N.prototype.lsbFirstWord=function(Ze){return String.fromCharCode(Ze>>0&255,Ze>>8&255,Ze>>16&255,Ze>>24&255)},N.prototype.toHexString=function(Ze){return Ze.split("").map(function(we){return("0"+(255&we.charCodeAt(0)).toString(16)).slice(-2)}).join("")},N.prototype.hexToBytes=function(Ze){for(var we=[],Ne=0;Ne<Ze.length;Ne+=2)we.push(String.fromCharCode(parseInt(Ze.substr(Ne,2),16)));return we.join("")},N.prototype.processOwnerPassword=function(Ze,we){return I(w(we).substr(0,5),Ze)},N.prototype.encryptor=function(Ze,we){var Ne=w(this.encryptionKey+String.fromCharCode(255&Ze,Ze>>8&255,Ze>>16&255,255&we,we>>8&255)).substr(0,10);return function(Fe){return I(Ne,Fe)}},F.prototype.equals=function(Ze){var we,Ne="id,objectNumber,equals";if(!Ze||C()(Ze)!==C()(this))return!1;var Fe=0;for(we in this)if(!(Ne.indexOf(we)>=0)){if(this.hasOwnProperty(we)&&!Ze.hasOwnProperty(we))return!1;if(this[we]!==Ze[we])return!1;Fe++}for(we in Ze)Ze.hasOwnProperty(we)&&Ne.indexOf(we)<0&&Fe--;return Fe===0},j.API={events:[]},j.version="2.5.1";var W=j.API,V=1,z=function(we){return we.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},J=function(we){return we.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},q=function(we){return we.toFixed(2)},de=function(we){return we.toFixed(5)};W.__acroform__={};var ae=function(we,Ne){we.prototype=Object.create(Ne.prototype),we.prototype.constructor=we},ve=function(we){return we*V},_e=function(we){var Ne=new Ee,Fe=X.internal.getHeight(we)||0,Ye=X.internal.getWidth(we)||0;return Ne.BBox=[0,0,Number(q(Ye)),Number(q(Fe))],Ne},Ie=W.__acroform__.setBit=function(Ze,we){if(Ze=Ze||0,we=we||0,isNaN(Ze)||isNaN(we))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return Ze|=1<<we},He=W.__acroform__.clearBit=function(Ze,we){if(Ze=Ze||0,we=we||0,isNaN(Ze)||isNaN(we))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return Ze&=~(1<<we)},me=W.__acroform__.getBit=function(Ze,we){if(isNaN(Ze)||isNaN(we))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(Ze&1<<we)==0?0:1},ke=W.__acroform__.getBitForPdf=function(Ze,we){if(isNaN(Ze)||isNaN(we))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return me(Ze,we-1)},se=W.__acroform__.setBitForPdf=function(Ze,we){if(isNaN(Ze)||isNaN(we))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Ie(Ze,we-1)},te=W.__acroform__.clearBitForPdf=function(Ze,we){if(isNaN(Ze)||isNaN(we))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return He(Ze,we-1)},Ge=W.__acroform__.calculateCoordinates=function(Ze,we){var Ne=we.internal.getHorizontalCoordinate,Fe=we.internal.getVerticalCoordinate,Ye=Ze[0],We=Ze[1],qe=Ze[2],yt=Ze[3],ot={};return ot.lowerLeft_X=Ne(Ye)||0,ot.lowerLeft_Y=Fe(We+yt)||0,ot.upperRight_X=Ne(Ye+qe)||0,ot.upperRight_Y=Fe(We)||0,[Number(q(ot.lowerLeft_X)),Number(q(ot.lowerLeft_Y)),Number(q(ot.upperRight_X)),Number(q(ot.upperRight_Y))]},oe=function(we){if(we.appearanceStreamContent)return we.appearanceStreamContent;if(we.V||we.DV){var Ne=[],Fe=we._V||we.DV,Ye=Y(we,Fe),We=we.scope.internal.getFont(we.fontName,we.fontStyle).id;Ne.push("/Tx BMC"),Ne.push("q"),Ne.push("BT"),Ne.push(we.scope.__private__.encodeColorString(we.color)),Ne.push("/"+We+" "+q(Ye.fontSize)+" Tf"),Ne.push("1 0 0 1 0 0 Tm"),Ne.push(Ye.text),Ne.push("ET"),Ne.push("Q"),Ne.push("EMC");var qe=_e(we);return qe.scope=we.scope,qe.stream=Ne.join(`
`),qe}},Y=function(we,Ne){var Fe=we.fontSize===0?we.maxFontSize:we.fontSize,Ye={text:"",fontSize:""},We=(Ne=(Ne=Ne.substr(0,1)=="("?Ne.substr(1):Ne).substr(Ne.length-1)==")"?Ne.substr(0,Ne.length-1):Ne).split(" ");We=we.multiline?We.map(function(mr){return mr.split(`
`)}):We.map(function(mr){return[mr]});var qe=Fe,yt=X.internal.getHeight(we)||0;yt=yt<0?-yt:yt;var ot=X.internal.getWidth(we)||0;ot=ot<0?-ot:ot;var $t=function(Cr,Nt,wr){if(Cr+1<We.length){var Gr=Nt+" "+We[Cr+1][0];return G(Gr,we,wr).width<=ot-4}return!1};qe++;e:for(;qe>0;){Ne="",qe--;var Mr,Sr,jr=G("3",we,qe).height,tr=we.multiline?yt-qe:(yt-jr)/2,gn=tr+=2,sr=0,un=0,an=0;if(qe<=0){Ne=`(...) Tj
`,Ne+="% Width of Text: "+G(Ne,we,qe=12).width+", FieldWidth:"+ot+`
`;break}for(var Pr="",In=0,ci=0;ci<We.length;ci++)if(We.hasOwnProperty(ci)){var Ui=!1;if(We[ci].length!==1&&an!==We[ci].length-1){if((jr+2)*(In+2)+2>yt)continue e;Pr+=We[ci][an],Ui=!0,un=ci,ci--}else{Pr=(Pr+=We[ci][an]+" ").substr(Pr.length-1)==" "?Pr.substr(0,Pr.length-1):Pr;var ki=parseInt(ci),Ri=$t(ki,Pr,qe),Ki=ci>=We.length-1;if(Ri&&!Ki){Pr+=" ",an=0;continue}if(Ri||Ki){if(Ki)un=ki;else if(we.multiline&&(jr+2)*(In+2)+2>yt)continue e}else{if(!we.multiline)continue e;if((jr+2)*(In+2)+2>yt)continue e;un=ki}}for(var Hr="",Cn=sr;Cn<=un;Cn++){var kr=We[Cn];if(we.multiline){if(Cn===un){Hr+=kr[an]+" ",an=(an+1)%kr.length;continue}if(Cn===sr){Hr+=kr[kr.length-1]+" ";continue}}Hr+=kr[0]+" "}switch(Hr=Hr.substr(Hr.length-1)==" "?Hr.substr(0,Hr.length-1):Hr,Sr=G(Hr,we,qe).width,we.textAlign){case"right":Mr=ot-Sr-2;break;case"center":Mr=(ot-Sr)/2;break;case"left":default:Mr=2}Ne+=q(Mr)+" "+q(gn)+` Td
`,Ne+="("+z(Hr)+`) Tj
`,Ne+=-q(Mr)+` 0 Td
`,gn=-(qe+2),Sr=0,sr=Ui?un:un+1,In++,Pr=""}break}return Ye.text=Ne,Ye.fontSize=qe,Ye},G=function(we,Ne,Fe){var Ye=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle),We=Ne.scope.getStringUnitWidth(we,{font:Ye,fontSize:parseFloat(Fe),charSpace:0})*parseFloat(Fe);return{height:Ne.scope.getStringUnitWidth("3",{font:Ye,fontSize:parseFloat(Fe),charSpace:0})*parseFloat(Fe)*1.5,width:We}},Q={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ye=function(we,Ne){var Fe={type:"reference",object:we};Ne.internal.getPageInfo(we.page).pageContext.annotations.find(function(Ye){return Ye.type===Fe.type&&Ye.object===Fe.object})===void 0&&Ne.internal.getPageInfo(we.page).pageContext.annotations.push(Fe)},ce=function(we,Ne){for(var Fe in we)if(we.hasOwnProperty(Fe)){var Ye=Fe,We=we[Fe];Ne.internal.newObjectDeferredBegin(We.objId,!0),C()(We)==="object"&&typeof We.putStream=="function"&&We.putStream(),delete we[Ye]}},Te=function(we,Ne){if(Ne.scope=we,we.internal!==void 0&&(we.internal.acroformPlugin===void 0||we.internal.acroformPlugin.isInitialized===!1)){if(vt.FieldNum=0,we.internal.acroformPlugin=JSON.parse(JSON.stringify(Q)),we.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");V=we.internal.scaleFactor,we.internal.acroformPlugin.acroFormDictionaryRoot=new Ve,we.internal.acroformPlugin.acroFormDictionaryRoot.scope=we,we.internal.acroformPlugin.acroFormDictionaryRoot._eventID=we.internal.events.subscribe("postPutResources",function(){!function(Fe){Fe.internal.events.unsubscribe(Fe.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Fe.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Fe.internal.acroformPlugin.printedOut=!0}(we)}),we.internal.events.subscribe("buildDocument",function(){!function(Fe){Fe.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var Ye=Fe.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var We in Ye)if(Ye.hasOwnProperty(We)){var qe=Ye[We];qe.objId=void 0,qe.hasAnnotation&&ye(qe,Fe)}}(we)}),we.internal.events.subscribe("putCatalog",function(){!function(Fe){if(Fe.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Fe.internal.write("/AcroForm "+Fe.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(we)}),we.internal.events.subscribe("postPutPages",function(Fe){!function(Ye,We){var qe=!Ye;for(var yt in Ye||(We.internal.newObjectDeferredBegin(We.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),We.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),Ye=Ye||We.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(Ye.hasOwnProperty(yt)){var ot=Ye[yt],$t=[],Mr=ot.Rect;if(ot.Rect&&(ot.Rect=Ge(ot.Rect,We)),We.internal.newObjectDeferredBegin(ot.objId,!0),ot.DA=X.createDefaultAppearanceStream(ot),C()(ot)==="object"&&typeof ot.getKeyValueListForStream=="function"&&($t=ot.getKeyValueListForStream()),ot.Rect=Mr,ot.hasAppearanceStream&&!ot.appearanceStreamContent){var Sr=oe(ot);$t.push({key:"AP",value:"<</N "+Sr+">>"}),We.internal.acroformPlugin.xForms.push(Sr)}if(ot.appearanceStreamContent){var jr="";for(var tr in ot.appearanceStreamContent)if(ot.appearanceStreamContent.hasOwnProperty(tr)){var gn=ot.appearanceStreamContent[tr];if(jr+="/"+tr+" ",jr+="<<",Object.keys(gn).length>=1||Array.isArray(gn)){for(var yt in gn)if(gn.hasOwnProperty(yt)){var sr=gn[yt];typeof sr=="function"&&(sr=sr.call(We,ot)),jr+="/"+yt+" "+sr+" ",We.internal.acroformPlugin.xForms.indexOf(sr)>=0||We.internal.acroformPlugin.xForms.push(sr)}}else typeof(sr=gn)=="function"&&(sr=sr.call(We,ot)),jr+="/"+yt+" "+sr,We.internal.acroformPlugin.xForms.indexOf(sr)>=0||We.internal.acroformPlugin.xForms.push(sr);jr+=">>"}$t.push({key:"AP",value:`<<
`+jr+">>"})}We.internal.putStream({additionalKeyValues:$t,objectId:ot.objId}),We.internal.out("endobj")}qe&&ce(We.internal.acroformPlugin.xForms,We)}(Fe,we)}),we.internal.acroformPlugin.isInitialized=!0}},Se=W.__acroform__.arrayToPdfArray=function(Ze,we,Ne){var Fe=function(yt){return yt};if(Array.isArray(Ze)){for(var Ye="[",We=0;We<Ze.length;We++)switch(We!==0&&(Ye+=" "),C()(Ze[We])){case"boolean":case"number":case"object":Ye+=Ze[We].toString();break;case"string":Ze[We].substr(0,1)!=="/"?(we!==void 0&&Ne&&(Fe=Ne.internal.getEncryptor(we)),Ye+="("+z(Fe(Ze[We].toString()))+")"):Ye+=Ze[We].toString()}return Ye+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},le=function(we,Ne,Fe){var Ye=function(qe){return qe};return Ne!==void 0&&Fe&&(Ye=Fe.internal.getEncryptor(Ne)),(we=we||"").toString(),we="("+z(Ye(we))+")"},fe=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(Ne){this._objId=Ne}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};fe.prototype.toString=function(){return this.objId+" 0 R"},fe.prototype.putStream=function(){var Ze=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:Ze,objectId:this.objId}),this.scope.internal.out("endobj")},fe.prototype.getKeyValueListForStream=function(){var Ze=[],we=Object.getOwnPropertyNames(this).filter(function(We){return We!="content"&&We!="appearanceStreamContent"&&We!="scope"&&We!="objId"&&We.substring(0,1)!="_"});for(var Ne in we)if(Object.getOwnPropertyDescriptor(this,we[Ne]).configurable===!1){var Fe=we[Ne],Ye=this[Fe];Ye&&(Array.isArray(Ye)?Ze.push({key:Fe,value:Se(Ye,this.objId,this.scope)}):Ye instanceof fe?(Ye.scope=this.scope,Ze.push({key:Fe,value:Ye.objId+" 0 R"})):typeof Ye!="function"&&Ze.push({key:Fe,value:Ye}))}return Ze};var Ee=function(){fe.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var we,Ne=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return Ne},set:function(Ye){Ne=Ye}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(Ye){we=Ye.trim()},get:function(){return we||null}})};ae(Ee,fe);var Ve=function(){fe.call(this);var we,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(we){var Ye=function(qe){return qe};return this.scope&&(Ye=this.scope.internal.getEncryptor(this.objId)),"("+z(Ye(we))+")"}},set:function(Ye){we=Ye}})};ae(Ve,fe);var vt=function Ze(){fe.call(this);var we=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return we},set:function(Pr){if(isNaN(Pr))throw new Error('Invalid value "'+Pr+'" for attribute F supplied.');we=Pr}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(we,3))},set:function(Pr){Boolean(Pr)===!0?this.F=se(we,3):this.F=te(we,3)}});var Ne=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function(Pr){if(isNaN(Pr))throw new Error('Invalid value "'+Pr+'" for attribute Ff supplied.');Ne=Pr}});var Fe=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Fe.length!==0)return Fe},set:function(Pr){Fe=Pr!==void 0?Pr:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Fe||isNaN(Fe[0])?0:Fe[0]},set:function(Pr){Fe[0]=Pr}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Fe||isNaN(Fe[1])?0:Fe[1]},set:function(Pr){Fe[1]=Pr}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Fe||isNaN(Fe[2])?0:Fe[2]},set:function(Pr){Fe[2]=Pr}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Fe||isNaN(Fe[3])?0:Fe[3]},set:function(Pr){Fe[3]=Pr}});var Ye="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return Ye},set:function(Pr){switch(Pr){case"/Btn":case"/Tx":case"/Ch":case"/Sig":Ye=Pr;break;default:throw new Error('Invalid value "'+Pr+'" for attribute FT supplied.')}}});var We=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!We||We.length<1){if(this instanceof It)return;We="FieldObject"+Ze.FieldNum++}var Pr=function(ci){return ci};return this.scope&&(Pr=this.scope.internal.getEncryptor(this.objId)),"("+z(Pr(We))+")"},set:function(Pr){We=Pr.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return We},set:function(Pr){We=Pr}});var qe="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return qe},set:function(Pr){qe=Pr}});var yt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return yt},set:function(Pr){yt=Pr}});var ot=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return ot},set:function(Pr){ot=Pr}});var $t=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return $t===void 0?50/V:$t},set:function(Pr){$t=Pr}});var Mr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Mr},set:function(Pr){Mr=Pr}});var Sr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Sr||this instanceof It||this instanceof Xe))return le(Sr,this.objId,this.scope)},set:function(Pr){Pr=Pr.toString(),Sr=Pr}});var jr=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(jr)return this instanceof St==!1?le(jr,this.objId,this.scope):jr},set:function(Pr){Pr=Pr.toString(),jr=this instanceof St==!1?Pr.substr(0,1)==="("?J(Pr.substr(1,Pr.length-2)):J(Pr):Pr}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof St==!0?J(jr.substr(1,jr.length-1)):jr},set:function(Pr){Pr=Pr.toString(),jr=this instanceof St==!0?"/"+Pr:Pr}});var tr=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(tr)return tr},set:function(Pr){this.V=Pr}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(tr)return this instanceof St==!1?le(tr,this.objId,this.scope):tr},set:function(Pr){Pr=Pr.toString(),tr=this instanceof St==!1?Pr.substr(0,1)==="("?J(Pr.substr(1,Pr.length-2)):J(Pr):Pr}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof St==!0?J(tr.substr(1,tr.length-1)):tr},set:function(Pr){Pr=Pr.toString(),tr=this instanceof St==!0?"/"+Pr:Pr}}),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 gn,sr=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return sr},set:function(Pr){Pr=Boolean(Pr),sr=Pr}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(gn)return gn},set:function(Pr){gn=Pr}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,1))},set:function(Pr){Boolean(Pr)===!0?this.Ff=se(this.Ff,1):this.Ff=te(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,2))},set:function(Pr){Boolean(Pr)===!0?this.Ff=se(this.Ff,2):this.Ff=te(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,3))},set:function(Pr){Boolean(Pr)===!0?this.Ff=se(this.Ff,3):this.Ff=te(this.Ff,3)}});var un=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(un!==null)return un},set:function(Pr){if([0,1,2].indexOf(Pr)===-1)throw new Error('Invalid value "'+Pr+'" for attribute Q supplied.');un=Pr}}),Object.defineProperty(this,"textAlign",{get:function(){var Pr;switch(un){case 0:default:Pr="left";break;case 1:Pr="center";break;case 2:Pr="right"}return Pr},configurable:!0,enumerable:!0,set:function(Pr){switch(Pr){case"right":case 2:un=2;break;case"center":case 1:un=1;break;case"left":case 0:default:un=0}}})};ae(vt,fe);var et=function(){vt.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var we=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return we},set:function(Ye){we=Ye}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return we},set:function(Ye){we=Ye}});var Ne=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Se(Ne,this.objId,this.scope)},set:function(Ye){var We,qe;qe=[],typeof(We=Ye)=="string"&&(qe=function(yt,ot,$t){$t||($t=1);for(var Mr,Sr=[];Mr=ot.exec(yt);)Sr.push(Mr[$t]);return Sr}(We,/\((.*?)\)/g)),Ne=qe}}),this.getOptions=function(){return Ne},this.setOptions=function(Fe){Ne=Fe,this.sort&&Ne.sort()},this.addOption=function(Fe){Fe=(Fe=Fe||"").toString(),Ne.push(Fe),this.sort&&Ne.sort()},this.removeOption=function(Fe,Ye){for(Ye=Ye||!1,Fe=(Fe=Fe||"").toString();Ne.indexOf(Fe)!==-1&&(Ne.splice(Ne.indexOf(Fe),1),Ye!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,18))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,18):this.Ff=te(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,19))},set:function(Ye){this.combo===!0&&(Boolean(Ye)===!0?this.Ff=se(this.Ff,19):this.Ff=te(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,20))},set:function(Ye){Boolean(Ye)===!0?(this.Ff=se(this.Ff,20),Ne.sort()):this.Ff=te(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,22))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,22):this.Ff=te(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,23))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,23):this.Ff=te(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,27))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,27):this.Ff=te(this.Ff,27)}}),this.hasAppearanceStream=!1};ae(et,vt);var Oe=function(){et.call(this),this.fontName="helvetica",this.combo=!1};ae(Oe,et);var Tt=function(){Oe.call(this),this.combo=!0};ae(Tt,Oe);var Je=function(){Tt.call(this),this.edit=!0};ae(Je,Tt);var St=function(){vt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,15))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,15):this.Ff=te(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,16))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,16):this.Ff=te(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,17))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,17):this.Ff=te(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,26))},set:function(Ye){Boolean(Ye)===!0?this.Ff=se(this.Ff,26):this.Ff=te(this.Ff,26)}});var we,Ne={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var Ye=function(ot){return ot};if(this.scope&&(Ye=this.scope.internal.getEncryptor(this.objId)),Object.keys(Ne).length!==0){var We,qe=[];for(We in qe.push("<<"),Ne)qe.push("/"+We+" ("+z(Ye(Ne[We]))+")");return qe.push(">>"),qe.join(`
`)}},set:function(Ye){C()(Ye)==="object"&&(Ne=Ye)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ne.CA||""},set:function(Ye){typeof Ye=="string"&&(Ne.CA=Ye)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return we},set:function(Ye){we=Ye}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return we.substr(1,we.length-1)},set:function(Ye){we="/"+Ye}})};ae(St,vt);var Mt=function(){St.call(this),this.pushButton=!0};ae(Mt,St);var er=function(){St.call(this),this.radio=!0,this.pushButton=!1;var we=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return we},set:function(Fe){we=Fe!==void 0?Fe:[]}})};ae(er,St);var It=function(){var we,Ne;vt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return we},set:function(qe){we=qe}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return Ne},set:function(qe){Ne=qe}});var Fe,Ye={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var qe=function(Mr){return Mr};this.scope&&(qe=this.scope.internal.getEncryptor(this.objId));var yt,ot=[];for(yt in ot.push("<<"),Ye)ot.push("/"+yt+" ("+z(qe(Ye[yt]))+")");return ot.push(">>"),ot.join(`
`)},set:function(qe){C()(qe)==="object"&&(Ye=qe)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return Ye.CA||""},set:function(qe){typeof qe=="string"&&(Ye.CA=qe)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Fe},set:function(qe){Fe=qe}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Fe.substr(1,Fe.length-1)},set:function(qe){Fe="/"+qe}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=X.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};ae(It,vt),er.prototype.setAppearance=function(Ze){if(!("createAppearanceStream"in Ze)||!("getCA"in Ze))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var we in this.Kids)if(this.Kids.hasOwnProperty(we)){var Ne=this.Kids[we];Ne.appearanceStreamContent=Ze.createAppearanceStream(Ne.optionName),Ne.caption=Ze.getCA()}},er.prototype.createOption=function(Ze){var we=new It;return we.Parent=this,we.optionName=Ze,this.Kids.push(we),Be.call(this.scope,we),we};var _t=function(){St.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=X.CheckBox.createAppearanceStream()};ae(_t,St);var Xe=function(){vt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,13))},set:function(Fe){Boolean(Fe)===!0?this.Ff=se(this.Ff,13):this.Ff=te(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,21))},set:function(Fe){Boolean(Fe)===!0?this.Ff=se(this.Ff,21):this.Ff=te(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,23))},set:function(Fe){Boolean(Fe)===!0?this.Ff=se(this.Ff,23):this.Ff=te(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,24))},set:function(Fe){Boolean(Fe)===!0?this.Ff=se(this.Ff,24):this.Ff=te(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,25))},set:function(Fe){Boolean(Fe)===!0?this.Ff=se(this.Ff,25):this.Ff=te(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,26))},set:function(Fe){Boolean(Fe)===!0?this.Ff=se(this.Ff,26):this.Ff=te(this.Ff,26)}});var we=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return we},set:function(Fe){we=Fe}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return we},set:function(Fe){Number.isInteger(Fe)&&(we=Fe)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};ae(Xe,vt);var ie=function(){Xe.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(ke(this.Ff,14))},set:function(Ne){Boolean(Ne)===!0?this.Ff=se(this.Ff,14):this.Ff=te(this.Ff,14)}}),this.password=!0};ae(ie,Xe);var X={CheckBox:{createAppearanceStream:function(){return{N:{On:X.CheckBox.YesNormal},D:{On:X.CheckBox.YesPushDown,Off:X.CheckBox.OffPushDown}}},YesPushDown:function(we){var Ne=_e(we);Ne.scope=we.scope;var Fe=[],Ye=we.scope.internal.getFont(we.fontName,we.fontStyle).id,We=we.scope.__private__.encodeColorString(we.color),qe=Y(we,we.caption);return Fe.push("0.749023 g"),Fe.push("0 0 "+q(X.internal.getWidth(we))+" "+q(X.internal.getHeight(we))+" re"),Fe.push("f"),Fe.push("BMC"),Fe.push("q"),Fe.push("0 0 1 rg"),Fe.push("/"+Ye+" "+q(qe.fontSize)+" Tf "+We),Fe.push("BT"),Fe.push(qe.text),Fe.push("ET"),Fe.push("Q"),Fe.push("EMC"),Ne.stream=Fe.join(`
`),Ne},YesNormal:function(we){var Ne=_e(we);Ne.scope=we.scope;var Fe=we.scope.internal.getFont(we.fontName,we.fontStyle).id,Ye=we.scope.__private__.encodeColorString(we.color),We=[],qe=X.internal.getHeight(we),yt=X.internal.getWidth(we),ot=Y(we,we.caption);return We.push("1 g"),We.push("0 0 "+q(yt)+" "+q(qe)+" re"),We.push("f"),We.push("q"),We.push("0 0 1 rg"),We.push("0 0 "+q(yt-1)+" "+q(qe-1)+" re"),We.push("W"),We.push("n"),We.push("0 g"),We.push("BT"),We.push("/"+Fe+" "+q(ot.fontSize)+" Tf "+Ye),We.push(ot.text),We.push("ET"),We.push("Q"),Ne.stream=We.join(`
`),Ne},OffPushDown:function(we){var Ne=_e(we);Ne.scope=we.scope;var Fe=[];return Fe.push("0.749023 g"),Fe.push("0 0 "+q(X.internal.getWidth(we))+" "+q(X.internal.getHeight(we))+" re"),Fe.push("f"),Ne.stream=Fe.join(`
`),Ne}},RadioButton:{Circle:{createAppearanceStream:function(we){var Ne={D:{Off:X.RadioButton.Circle.OffPushDown},N:{}};return Ne.N[we]=X.RadioButton.Circle.YesNormal,Ne.D[we]=X.RadioButton.Circle.YesPushDown,Ne},getCA:function(){return"l"},YesNormal:function(we){var Ne=_e(we);Ne.scope=we.scope;var Fe=[],Ye=X.internal.getWidth(we)<=X.internal.getHeight(we)?X.internal.getWidth(we)/4:X.internal.getHeight(we)/4;Ye=Number((.9*Ye).toFixed(5));var We=X.internal.Bezier_C,qe=Number((Ye*We).toFixed(5));return Fe.push("q"),Fe.push("1 0 0 1 "+de(X.internal.getWidth(we)/2)+" "+de(X.internal.getHeight(we)/2)+" cm"),Fe.push(Ye+" 0 m"),Fe.push(Ye+" "+qe+" "+qe+" "+Ye+" 0 "+Ye+" c"),Fe.push("-"+qe+" "+Ye+" -"+Ye+" "+qe+" -"+Ye+" 0 c"),Fe.push("-"+Ye+" -"+qe+" -"+qe+" -"+Ye+" 0 -"+Ye+" c"),Fe.push(qe+" -"+Ye+" "+Ye+" -"+qe+" "+Ye+" 0 c"),Fe.push("f"),Fe.push("Q"),Ne.stream=Fe.join(`
`),Ne},YesPushDown:function(we){var Ne=_e(we);Ne.scope=we.scope;var Fe=[],Ye=X.internal.getWidth(we)<=X.internal.getHeight(we)?X.internal.getWidth(we)/4:X.internal.getHeight(we)/4;Ye=Number((.9*Ye).toFixed(5));var We=Number((2*Ye).toFixed(5)),qe=Number((We*X.internal.Bezier_C).toFixed(5)),yt=Number((Ye*X.internal.Bezier_C).toFixed(5));return Fe.push("0.749023 g"),Fe.push("q"),Fe.push("1 0 0 1 "+de(X.internal.getWidth(we)/2)+" "+de(X.internal.getHeight(we)/2)+" cm"),Fe.push(We+" 0 m"),Fe.push(We+" "+qe+" "+qe+" "+We+" 0 "+We+" c"),Fe.push("-"+qe+" "+We+" -"+We+" "+qe+" -"+We+" 0 c"),Fe.push("-"+We+" -"+qe+" -"+qe+" -"+We+" 0 -"+We+" c"),Fe.push(qe+" -"+We+" "+We+" -"+qe+" "+We+" 0 c"),Fe.push("f"),Fe.push("Q"),Fe.push("0 g"),Fe.push("q"),Fe.push("1 0 0 1 "+de(X.internal.getWidth(we)/2)+" "+de(X.internal.getHeight(we)/2)+" cm"),Fe.push(Ye+" 0 m"),Fe.push(Ye+" "+yt+" "+yt+" "+Ye+" 0 "+Ye+" c"),Fe.push("-"+yt+" "+Ye+" -"+Ye+" "+yt+" -"+Ye+" 0 c"),Fe.push("-"+Ye+" -"+yt+" -"+yt+" -"+Ye+" 0 -"+Ye+" c"),Fe.push(yt+" -"+Ye+" "+Ye+" -"+yt+" "+Ye+" 0 c"),Fe.push("f"),Fe.push("Q"),Ne.stream=Fe.join(`
`),Ne},OffPushDown:function(we){var Ne=_e(we);Ne.scope=we.scope;var Fe=[],Ye=X.internal.getWidth(we)<=X.internal.getHeight(we)?X.internal.getWidth(we)/4:X.internal.getHeight(we)/4;Ye=Number((.9*Ye).toFixed(5));var We=Number((2*Ye).toFixed(5)),qe=Number((We*X.internal.Bezier_C).toFixed(5));return Fe.push("0.749023 g"),Fe.push("q"),Fe.push("1 0 0 1 "+de(X.internal.getWidth(we)/2)+" "+de(X.internal.getHeight(we)/2)+" cm"),Fe.push(We+" 0 m"),Fe.push(We+" "+qe+" "+qe+" "+We+" 0 "+We+" c"),Fe.push("-"+qe+" "+We+" -"+We+" "+qe+" -"+We+" 0 c"),Fe.push("-"+We+" -"+qe+" -"+qe+" -"+We+" 0 -"+We+" c"),Fe.push(qe+" -"+We+" "+We+" -"+qe+" "+We+" 0 c"),Fe.push("f"),Fe.push("Q"),Ne.stream=Fe.join(`
`),Ne}},Cross:{createAppearanceStream:function(we){var Ne={D:{Off:X.RadioButton.Cross.OffPushDown},N:{}};return Ne.N[we]=X.RadioButton.Cross.YesNormal,Ne.D[we]=X.RadioButton.Cross.YesPushDown,Ne},getCA:function(){return"8"},YesNormal:function(we){var Ne=_e(we);Ne.scope=we.scope;var Fe=[],Ye=X.internal.calculateCross(we);return Fe.push("q"),Fe.push("1 1 "+q(X.internal.getWidth(we)-2)+" "+q(X.internal.getHeight(we)-2)+" re"),Fe.push("W"),Fe.push("n"),Fe.push(q(Ye.x1.x)+" "+q(Ye.x1.y)+" m"),Fe.push(q(Ye.x2.x)+" "+q(Ye.x2.y)+" l"),Fe.push(q(Ye.x4.x)+" "+q(Ye.x4.y)+" m"),Fe.push(q(Ye.x3.x)+" "+q(Ye.x3.y)+" l"),Fe.push("s"),Fe.push("Q"),Ne.stream=Fe.join(`
`),Ne},YesPushDown:function(we){var Ne=_e(we);Ne.scope=we.scope;var Fe=X.internal.calculateCross(we),Ye=[];return Ye.push("0.749023 g"),Ye.push("0 0 "+q(X.internal.getWidth(we))+" "+q(X.internal.getHeight(we))+" re"),Ye.push("f"),Ye.push("q"),Ye.push("1 1 "+q(X.internal.getWidth(we)-2)+" "+q(X.internal.getHeight(we)-2)+" re"),Ye.push("W"),Ye.push("n"),Ye.push(q(Fe.x1.x)+" "+q(Fe.x1.y)+" m"),Ye.push(q(Fe.x2.x)+" "+q(Fe.x2.y)+" l"),Ye.push(q(Fe.x4.x)+" "+q(Fe.x4.y)+" m"),Ye.push(q(Fe.x3.x)+" "+q(Fe.x3.y)+" l"),Ye.push("s"),Ye.push("Q"),Ne.stream=Ye.join(`
`),Ne},OffPushDown:function(we){var Ne=_e(we);Ne.scope=we.scope;var Fe=[];return Fe.push("0.749023 g"),Fe.push("0 0 "+q(X.internal.getWidth(we))+" "+q(X.internal.getHeight(we))+" re"),Fe.push("f"),Ne.stream=Fe.join(`
`),Ne}}},createDefaultAppearanceStream:function(we){var Ne=we.scope.internal.getFont(we.fontName,we.fontStyle).id,Fe=we.scope.__private__.encodeColorString(we.color);return"/"+Ne+" "+we.fontSize+" Tf "+Fe}};X.internal={Bezier_C:.551915024494,calculateCross:function(we){var Ne=X.internal.getWidth(we),Fe=X.internal.getHeight(we),Ye=Math.min(Ne,Fe);return{x1:{x:(Ne-Ye)/2,y:(Fe-Ye)/2+Ye},x2:{x:(Ne-Ye)/2+Ye,y:(Fe-Ye)/2},x3:{x:(Ne-Ye)/2,y:(Fe-Ye)/2},x4:{x:(Ne-Ye)/2+Ye,y:(Fe-Ye)/2+Ye}}}},X.internal.getWidth=function(Ze){var we=0;return C()(Ze)==="object"&&(we=ve(Ze.Rect[2])),we},X.internal.getHeight=function(Ze){var we=0;return C()(Ze)==="object"&&(we=ve(Ze.Rect[3])),we};var Be=W.addField=function(Ze){if(Te(this,Ze),!(Ze instanceof vt))throw new Error("Invalid argument passed to jsPDF.addField.");var we;return(we=Ze).scope.internal.acroformPlugin.printedOut&&(we.scope.internal.acroformPlugin.printedOut=!1,we.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),we.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(we),Ze.page=Ze.scope.internal.getCurrentPageInfo().pageNumber,this};W.AcroFormChoiceField=et,W.AcroFormListBox=Oe,W.AcroFormComboBox=Tt,W.AcroFormEditBox=Je,W.AcroFormButton=St,W.AcroFormPushButton=Mt,W.AcroFormRadioButton=er,W.AcroFormCheckBox=_t,W.AcroFormTextField=Xe,W.AcroFormPasswordField=ie,W.AcroFormAppearance=X,W.AcroForm={ChoiceField:et,ListBox:Oe,ComboBox:Tt,EditBox:Je,Button:St,PushButton:Mt,RadioButton:er,CheckBox:_t,TextField:Xe,PasswordField:ie,Appearance:X},j.AcroForm={ChoiceField:et,ListBox:Oe,ComboBox:Tt,EditBox:Je,Button:St,PushButton:Mt,RadioButton:er,CheckBox:_t,TextField:Xe,PasswordField:ie,Appearance:X};var Ce=j.AcroForm;function Z(Ze){return Ze.reduce(function(we,Ne,Fe){return we[Ne]=Fe,we},{})}!function(Ze){Ze.__addimage__={};var we="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]]},Fe=Ze.__addimage__.getImageFileTypeByImageData=function(kr,mr){var Cr,Nt,wr,Gr,Kr,qr=we;if((mr=mr||we)==="RGBA"||kr.data!==void 0&&kr.data instanceof Uint8ClampedArray&&"height"in kr&&"width"in kr)return"RGBA";if(ki(kr))for(Kr in Ne)for(wr=Ne[Kr],Cr=0;Cr<wr.length;Cr+=1){for(Gr=!0,Nt=0;Nt<wr[Cr].length;Nt+=1)if(wr[Cr][Nt]!==void 0&&wr[Cr][Nt]!==kr[Nt]){Gr=!1;break}if(Gr===!0){qr=Kr;break}}else for(Kr in Ne)for(wr=Ne[Kr],Cr=0;Cr<wr.length;Cr+=1){for(Gr=!0,Nt=0;Nt<wr[Cr].length;Nt+=1)if(wr[Cr][Nt]!==void 0&&wr[Cr][Nt]!==kr.charCodeAt(Nt)){Gr=!1;break}if(Gr===!0){qr=Kr;break}}return qr===we&&mr!==we&&(qr=mr),qr},Ye=function kr(mr){for(var Cr=this.internal.write,Nt=this.internal.putStream,wr=(0,this.internal.getFilters)();wr.indexOf("FlateEncode")!==-1;)wr.splice(wr.indexOf("FlateEncode"),1);mr.objectId=this.internal.newObject();var Gr=[];if(Gr.push({key:"Type",value:"/XObject"}),Gr.push({key:"Subtype",value:"/Image"}),Gr.push({key:"Width",value:mr.width}),Gr.push({key:"Height",value:mr.height}),mr.colorSpace===un.INDEXED?Gr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(mr.palette.length/3-1)+" "+("sMask"in mr&&mr.sMask!==void 0?mr.objectId+2:mr.objectId+1)+" 0 R]"}):(Gr.push({key:"ColorSpace",value:"/"+mr.colorSpace}),mr.colorSpace===un.DEVICE_CMYK&&Gr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Gr.push({key:"BitsPerComponent",value:mr.bitsPerComponent}),"decodeParameters"in mr&&mr.decodeParameters!==void 0&&Gr.push({key:"DecodeParms",value:"<<"+mr.decodeParameters+">>"}),"transparency"in mr&&Array.isArray(mr.transparency)){for(var Kr="",qr=0,oi=mr.transparency.length;qr<oi;qr++)Kr+=mr.transparency[qr]+" "+mr.transparency[qr]+" ";Gr.push({key:"Mask",value:"["+Kr+"]"})}mr.sMask!==void 0&&Gr.push({key:"SMask",value:mr.objectId+1+" 0 R"});var Gn=mr.filter!==void 0?["/"+mr.filter]:void 0;if(Nt({data:mr.data,additionalKeyValues:Gr,alreadyAppliedFilters:Gn,objectId:mr.objectId}),Cr("endobj"),"sMask"in mr&&mr.sMask!==void 0){var Ti="/Predictor "+mr.predictor+" /Colors 1 /BitsPerComponent "+mr.bitsPerComponent+" /Columns "+mr.width,hn={width:mr.width,height:mr.height,colorSpace:"DeviceGray",bitsPerComponent:mr.bitsPerComponent,decodeParameters:Ti,data:mr.sMask};"filter"in mr&&(hn.filter=mr.filter),kr.call(this,hn)}if(mr.colorSpace===un.INDEXED){var _r=this.internal.newObject();Nt({data:Ki(new Uint8Array(mr.palette)),objectId:_r}),Cr("endobj")}},We=function(){var mr=this.internal.collections.addImage_images;for(var Cr in mr)Ye.call(this,mr[Cr])},qe=function(){var mr,Cr=this.internal.collections.addImage_images,Nt=this.internal.write;for(var wr in Cr)Nt("/I"+(mr=Cr[wr]).index,mr.objectId,"0","R")},yt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",We),this.internal.events.subscribe("putXobjectDict",qe))},ot=function(){var mr=this.internal.collections.addImage_images;return yt.call(this),mr},$t=function(){return Object.keys(this.internal.collections.addImage_images).length},Mr=function(mr){return typeof Ze["process"+mr.toUpperCase()]=="function"},Sr=function(mr){return C()(mr)==="object"&&mr.nodeType===1},jr=function(mr,Cr){if(mr.nodeName==="IMG"&&mr.hasAttribute("src")){var Nt=""+mr.getAttribute("src");if(Nt.indexOf("data:image/")===0)return i(unescape(Nt).split("base64,").pop());var wr=Ze.loadFile(Nt,!0);if(wr!==void 0)return wr}if(mr.nodeName==="CANVAS"){if(mr.width===0||mr.height===0)throw new Error("Given canvas must have data. Canvas width: "+mr.width+", height: "+mr.height);var Gr;switch(Cr){case"PNG":Gr="image/png";break;case"WEBP":Gr="image/webp";break;case"JPEG":case"JPG":default:Gr="image/jpeg"}return i(mr.toDataURL(Gr,1).split("base64,").pop())}},tr=function(mr){var Cr=this.internal.collections.addImage_images;if(Cr){for(var Nt in Cr)if(mr===Cr[Nt].alias)return Cr[Nt]}},gn=function(mr,Cr,Nt){return mr||Cr||(mr=-96,Cr=-96),mr<0&&(mr=-1*Nt.width*72/mr/this.internal.scaleFactor),Cr<0&&(Cr=-1*Nt.height*72/Cr/this.internal.scaleFactor),mr===0&&(mr=Cr*Nt.width/Nt.height),Cr===0&&(Cr=mr*Nt.height/Nt.width),[mr,Cr]},sr=function(mr,Cr,Nt,wr,Gr,Kr){var qr=gn.call(this,Nt,wr,Gr),oi=this.internal.getCoordinateString,Gn=this.internal.getVerticalCoordinateString,Ti=ot.call(this);if(Nt=qr[0],wr=qr[1],Ti[Gr.index]=Gr,Kr){Kr*=Math.PI/180;var hn=Math.cos(Kr),_r=Math.sin(Kr),En=function(qn){return qn.toFixed(4)},Fn=[En(hn),En(_r),En(-1*_r),En(hn),0,0,"cm"]}this.internal.write("q"),Kr?(this.internal.write([1,"0","0",1,oi(mr),Gn(Cr+wr),"cm"].join(" ")),this.internal.write(Fn.join(" ")),this.internal.write([oi(Nt),"0","0",oi(wr),"0","0","cm"].join(" "))):this.internal.write([oi(Nt),"0","0",oi(wr),oi(mr),Gn(Cr+wr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Gr.index+" Do"),this.internal.write("Q")},un=Ze.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"};Ze.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var an=Ze.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Pr=Ze.__addimage__.sHashCode=function(kr){var mr,Cr,Nt=0;if(typeof kr=="string")for(Cr=kr.length,mr=0;mr<Cr;mr++)Nt=(Nt<<5)-Nt+kr.charCodeAt(mr),Nt|=0;else if(ki(kr))for(Cr=kr.byteLength/2,mr=0;mr<Cr;mr++)Nt=(Nt<<5)-Nt+kr[mr],Nt|=0;return Nt},In=Ze.__addimage__.validateStringAsBase64=function(kr){(kr=kr||"").toString().trim();var mr=!0;return kr.length===0&&(mr=!1),kr.length%4!=0&&(mr=!1),/^[A-Za-z0-9+/]+$/.test(kr.substr(0,kr.length-2))===!1&&(mr=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(kr.substr(-2))===!1&&(mr=!1),mr},ci=Ze.__addimage__.extractImageFromDataUrl=function(kr){var mr=(kr=kr||"").split("base64,"),Cr=null;if(mr.length===2){var Nt=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(mr[0]);Array.isArray(Nt)&&(Cr={mimeType:Nt[1],charset:Nt[2],data:mr[1]})}return Cr},Ui=Ze.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};Ze.__addimage__.isArrayBuffer=function(kr){return Ui()&&kr instanceof ArrayBuffer};var ki=Ze.__addimage__.isArrayBufferView=function(kr){return Ui()&&typeof Uint32Array!="undefined"&&(kr instanceof Int8Array||kr instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&kr instanceof Uint8ClampedArray||kr instanceof Int16Array||kr instanceof Uint16Array||kr instanceof Int32Array||kr instanceof Uint32Array||kr instanceof Float32Array||kr instanceof Float64Array)},Ri=Ze.__addimage__.binaryStringToUint8Array=function(kr){for(var mr=kr.length,Cr=new Uint8Array(mr),Nt=0;Nt<mr;Nt++)Cr[Nt]=kr.charCodeAt(Nt);return Cr},Ki=Ze.__addimage__.arrayBufferToBinaryString=function(kr){for(var mr="",Cr=ki(kr)?kr:new Uint8Array(kr),Nt=0;Nt<Cr.length;Nt+=8192)mr+=String.fromCharCode.apply(null,Cr.subarray(Nt,Nt+8192));return mr};Ze.addImage=function(){var kr,mr,Cr,Nt,wr,Gr,Kr,qr,oi;if(typeof arguments[1]=="number"?(mr=we,Cr=arguments[1],Nt=arguments[2],wr=arguments[3],Gr=arguments[4],Kr=arguments[5],qr=arguments[6],oi=arguments[7]):(mr=arguments[1],Cr=arguments[2],Nt=arguments[3],wr=arguments[4],Gr=arguments[5],Kr=arguments[6],qr=arguments[7],oi=arguments[8]),C()(kr=arguments[0])==="object"&&!Sr(kr)&&"imageData"in kr){var Gn=kr;kr=Gn.imageData,mr=Gn.format||mr||we,Cr=Gn.x||Cr||0,Nt=Gn.y||Nt||0,wr=Gn.w||Gn.width||wr,Gr=Gn.h||Gn.height||Gr,Kr=Gn.alias||Kr,qr=Gn.compression||qr,oi=Gn.rotation||Gn.angle||oi}var Ti=this.internal.getFilters();if(qr===void 0&&Ti.indexOf("FlateEncode")!==-1&&(qr="SLOW"),isNaN(Cr)||isNaN(Nt))throw new Error("Invalid coordinates passed to jsPDF.addImage");yt.call(this);var hn=Hr.call(this,kr,mr,Kr,qr);return sr.call(this,Cr,Nt,wr,Gr,hn,oi),this};var Hr=function(mr,Cr,Nt,wr){var Gr,Kr,qr;if(typeof mr=="string"&&Fe(mr)===we){mr=unescape(mr);var oi=Cn(mr,!1);(oi!==""||(oi=Ze.loadFile(mr,!0))!==void 0)&&(mr=oi)}if(Sr(mr)&&(mr=jr(mr,Cr)),Cr=Fe(mr,Cr),!Mr(Cr))throw new Error("addImage does not support files of type '"+Cr+"', please ensure that a plugin for '"+Cr+"' support is added.");if(((qr=Nt)==null||qr.length===0)&&(Nt=function(Gn){return typeof Gn=="string"||ki(Gn)?Pr(Gn):ki(Gn.data)?Pr(Gn.data):null}(mr)),(Gr=tr.call(this,Nt))||(Ui()&&(mr instanceof Uint8Array||Cr==="RGBA"||(Kr=mr,mr=Ri(mr))),Gr=this["process"+Cr.toUpperCase()](mr,$t.call(this),Nt,function(Gn){return Gn&&typeof Gn=="string"&&(Gn=Gn.toUpperCase()),Gn in Ze.image_compression?Gn:an.NONE}(wr),Kr)),!Gr)throw new Error("An unknown error occurred whilst processing the image.");return Gr},Cn=Ze.__addimage__.convertBase64ToBinaryString=function(kr,mr){var Cr;mr=typeof mr!="boolean"||mr;var Nt,wr="";if(typeof kr=="string"){Nt=(Cr=ci(kr))!==null?Cr.data:kr;try{wr=i(Nt)}catch(Gr){if(mr)throw In(Nt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Gr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return wr};Ze.getImageProperties=function(kr){var mr,Cr,Nt="";if(Sr(kr)&&(kr=jr(kr)),typeof kr=="string"&&Fe(kr)===we&&((Nt=Cn(kr,!1))===""&&(Nt=Ze.loadFile(kr)||""),kr=Nt),Cr=Fe(kr),!Mr(Cr))throw new Error("addImage does not support files of type '"+Cr+"', please ensure that a plugin for '"+Cr+"' support is added.");if(!Ui()||kr instanceof Uint8Array||(kr=Ri(kr)),!(mr=this["process"+Cr.toUpperCase()](kr)))throw new Error("An unknown error occurred whilst processing the image");return mr.fileType=Cr,mr}}(j.API),function(Ze){var we=function(Fe){if(Fe!==void 0&&Fe!="")return!0};j.API.events.push(["addPage",function(Ne){this.internal.getPageInfo(Ne.pageNumber).pageContext.annotations=[]}]),Ze.events.push(["putPage",function(Ne){for(var Fe,Ye,We,qe=this.internal.getCoordinateString,yt=this.internal.getVerticalCoordinateString,ot=this.internal.getPageInfoByObjId(Ne.objId),$t=Ne.pageContext.annotations,Mr=!1,Sr=0;Sr<$t.length&&!Mr;Sr++)switch((Fe=$t[Sr]).type){case"link":(we(Fe.options.url)||we(Fe.options.pageNumber))&&(Mr=!0);break;case"reference":case"text":case"freetext":Mr=!0}if(Mr!=0){this.internal.write("/Annots [");for(var jr=0;jr<$t.length;jr++){Fe=$t[jr];var tr=this.internal.pdfEscape,gn=this.internal.getEncryptor(Ne.objId);switch(Fe.type){case"reference":this.internal.write(" "+Fe.object.objId+" 0 R ");break;case"text":var sr=this.internal.newAdditionalObject(),un=this.internal.newAdditionalObject(),an=this.internal.getEncryptor(sr.objId),Pr=Fe.title||"Note";We="<</Type /Annot /Subtype /Text "+(Ye="/Rect ["+qe(Fe.bounds.x)+" "+yt(Fe.bounds.y+Fe.bounds.h)+" "+qe(Fe.bounds.x+Fe.bounds.w)+" "+yt(Fe.bounds.y)+"] ")+"/Contents ("+tr(an(Fe.contents))+")",We+=" /Popup "+un.objId+" 0 R",We+=" /P "+ot.objId+" 0 R",We+=" /T ("+tr(an(Pr))+") >>",sr.content=We;var In=sr.objId+" 0 R";We="<</Type /Annot /Subtype /Popup "+(Ye="/Rect ["+qe(Fe.bounds.x+30)+" "+yt(Fe.bounds.y+Fe.bounds.h)+" "+qe(Fe.bounds.x+Fe.bounds.w+30)+" "+yt(Fe.bounds.y)+"] ")+" /Parent "+In,Fe.open&&(We+=" /Open true"),We+=" >>",un.content=We,this.internal.write(sr.objId,"0 R",un.objId,"0 R");break;case"freetext":Ye="/Rect ["+qe(Fe.bounds.x)+" "+yt(Fe.bounds.y)+" "+qe(Fe.bounds.x+Fe.bounds.w)+" "+yt(Fe.bounds.y+Fe.bounds.h)+"] ";var ci=Fe.color||"#000000";We="<</Type /Annot /Subtype /FreeText "+Ye+"/Contents ("+tr(gn(Fe.contents))+")",We+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+ci+")",We+=" /Border [0 0 0]",We+=" >>",this.internal.write(We);break;case"link":if(Fe.options.name){var Ui=this.annotations._nameMap[Fe.options.name];Fe.options.pageNumber=Ui.page,Fe.options.top=Ui.y}else Fe.options.top||(Fe.options.top=0);if(Ye="/Rect ["+Fe.finalBounds.x+" "+Fe.finalBounds.y+" "+Fe.finalBounds.w+" "+Fe.finalBounds.h+"] ",We="",Fe.options.url)We="<</Type /Annot /Subtype /Link "+Ye+"/Border [0 0 0] /A <</S /URI /URI ("+tr(gn(Fe.options.url))+") >>";else if(Fe.options.pageNumber)switch(We="<</Type /Annot /Subtype /Link "+Ye+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Fe.options.pageNumber).objId+" 0 R",Fe.options.magFactor=Fe.options.magFactor||"XYZ",Fe.options.magFactor){case"Fit":We+=" /Fit]";break;case"FitH":We+=" /FitH "+Fe.options.top+"]";break;case"FitV":Fe.options.left=Fe.options.left||0,We+=" /FitV "+Fe.options.left+"]";break;case"XYZ":default:var ki=yt(Fe.options.top);Fe.options.left=Fe.options.left||0,Fe.options.zoom===void 0&&(Fe.options.zoom=0),We+=" /XYZ "+Fe.options.left+" "+ki+" "+Fe.options.zoom+"]"}We!=""&&(We+=" >>",this.internal.write(We))}}this.internal.write("]")}}]),Ze.createAnnotation=function(Ne){var Fe=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":Fe.pageContext.annotations.push(Ne)}},Ze.link=function(Ne,Fe,Ye,We,qe){var yt=this.internal.getCurrentPageInfo(),ot=this.internal.getCoordinateString,$t=this.internal.getVerticalCoordinateString;yt.pageContext.annotations.push({finalBounds:{x:ot(Ne),y:$t(Fe),w:ot(Ne+Ye),h:$t(Fe+We)},options:qe,type:"link"})},Ze.textWithLink=function(Ne,Fe,Ye,We){var qe,yt,ot=this.getTextWidth(Ne),$t=this.internal.getLineHeight()/this.internal.scaleFactor;if(We.maxWidth!==void 0){yt=We.maxWidth;var Mr=this.splitTextToSize(Ne,yt).length;qe=Math.ceil($t*Mr)}else yt=ot,qe=$t;return this.text(Ne,Fe,Ye,We),Ye+=.2*$t,We.align==="center"&&(Fe-=ot/2),We.align==="right"&&(Fe-=ot),this.link(Fe,Ye-$t,yt,qe,We),ot},Ze.getTextWidth=function(Ne){var Fe=this.internal.getFontSize();return this.getStringUnitWidth(Ne)*Fe/this.internal.scaleFactor}}(j.API),function(Ze){var we={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}},Fe={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},Ye=[1570,1571,1573,1575];Ze.__arabicParser__={};var We=Ze.__arabicParser__.isInArabicSubstitutionA=function(sr){return we[sr.charCodeAt(0)]!==void 0},qe=Ze.__arabicParser__.isArabicLetter=function(sr){return typeof sr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(sr)},yt=Ze.__arabicParser__.isArabicEndLetter=function(sr){return qe(sr)&&We(sr)&&we[sr.charCodeAt(0)].length<=2},ot=Ze.__arabicParser__.isArabicAlfLetter=function(sr){return qe(sr)&&Ye.indexOf(sr.charCodeAt(0))>=0};Ze.__arabicParser__.arabicLetterHasIsolatedForm=function(sr){return qe(sr)&&We(sr)&&we[sr.charCodeAt(0)].length>=1};var $t=Ze.__arabicParser__.arabicLetterHasFinalForm=function(sr){return qe(sr)&&We(sr)&&we[sr.charCodeAt(0)].length>=2};Ze.__arabicParser__.arabicLetterHasInitialForm=function(sr){return qe(sr)&&We(sr)&&we[sr.charCodeAt(0)].length>=3};var Mr=Ze.__arabicParser__.arabicLetterHasMedialForm=function(sr){return qe(sr)&&We(sr)&&we[sr.charCodeAt(0)].length==4},Sr=Ze.__arabicParser__.resolveLigatures=function(sr){var un=0,an=Ne,Pr="",In=0;for(un=0;un<sr.length;un+=1)an[sr.charCodeAt(un)]!==void 0?(In++,typeof(an=an[sr.charCodeAt(un)])=="number"&&(Pr+=String.fromCharCode(an),an=Ne,In=0),un===sr.length-1&&(an=Ne,Pr+=sr.charAt(un-(In-1)),un-=In-1,In=0)):(an=Ne,Pr+=sr.charAt(un-In),un-=In,In=0);return Pr};Ze.__arabicParser__.isArabicDiacritic=function(sr){return sr!==void 0&&Fe[sr.charCodeAt(0)]!==void 0};var jr=Ze.__arabicParser__.getCorrectForm=function(sr,un,an){return qe(sr)?We(sr)===!1?-1:!$t(sr)||!qe(un)&&!qe(an)||!qe(an)&&yt(un)||yt(sr)&&!qe(un)||yt(sr)&&ot(un)||yt(sr)&&yt(un)?0:Mr(sr)&&qe(un)&&!yt(un)&&qe(an)&&$t(an)?3:yt(sr)||!qe(an)?1:2:-1},tr=function(un){var an=0,Pr=0,In=0,ci="",Ui="",ki="",Ri=(un=un||"").split("\\s+"),Ki=[];for(an=0;an<Ri.length;an+=1){for(Ki.push(""),Pr=0;Pr<Ri[an].length;Pr+=1)ci=Ri[an][Pr],Ui=Ri[an][Pr-1],ki=Ri[an][Pr+1],qe(ci)?(In=jr(ci,Ui,ki),Ki[an]+=In!==-1?String.fromCharCode(we[ci.charCodeAt(0)][In]):ci):Ki[an]+=ci;Ki[an]=Sr(Ki[an])}return Ki.join(" ")},gn=Ze.__arabicParser__.processArabic=Ze.processArabic=function(){var sr,un=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,an=[];if(Array.isArray(un)){var Pr=0;for(an=[],Pr=0;Pr<un.length;Pr+=1)Array.isArray(un[Pr])?an.push([tr(un[Pr][0]),un[Pr][1],un[Pr][2]]):an.push([tr(un[Pr])]);sr=an}else sr=tr(un);return typeof arguments[0]=="string"?sr:(arguments[0].text=sr,arguments[0])};Ze.events.push(["preProcessText",gn])}(j.API),j.API.autoPrint=function(Ze){var we;switch((Ze=Ze||{}).variant=Ze.variant||"non-conform",Ze.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){we=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 "+we+" 0 R")})}return this},function(Ze){var we=function(){var Fe=void 0;Object.defineProperty(this,"pdf",{get:function(){return Fe},set:function($t){Fe=$t}});var Ye=150;Object.defineProperty(this,"width",{get:function(){return Ye},set:function($t){Ye=isNaN($t)||Number.isInteger($t)===!1||$t<0?150:$t,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=Ye+1)}});var We=300;Object.defineProperty(this,"height",{get:function(){return We},set:function($t){We=isNaN($t)||Number.isInteger($t)===!1||$t<0?300:$t,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=We+1)}});var qe=[];Object.defineProperty(this,"childNodes",{get:function(){return qe},set:function($t){qe=$t}});var yt={};Object.defineProperty(this,"style",{get:function(){return yt},set:function($t){yt=$t}}),Object.defineProperty(this,"parentNode",{})};we.prototype.getContext=function(Ne,Fe){var Ye;if((Ne=Ne||"2d")!=="2d")return null;for(Ye in Fe)this.pdf.context2d.hasOwnProperty(Ye)&&(this.pdf.context2d[Ye]=Fe[Ye]);return this.pdf.context2d._canvas=this,this.pdf.context2d},we.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},Ze.events.push(["initialized",function(){this.canvas=new we,this.canvas.pdf=this}])}(j.API),function(Ze){var we={left:0,top:0,bottom:0,right:0},Ne=!1,Fe=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},we),this.internal.__cell__.margins.width=this.getPageWidth(),Ye.call(this))},Ye=function(){this.internal.__cell__.lastCell=new We,this.internal.__cell__.pages=1},We=function(){var $t=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return $t},set:function(an){$t=an}});var Mr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Mr},set:function(an){Mr=an}});var Sr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Sr},set:function(an){Sr=an}});var jr=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return jr},set:function(an){jr=an}});var tr=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return tr},set:function(an){tr=an}});var gn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return gn},set:function(an){gn=an}});var sr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return sr},set:function(an){sr=an}}),this};We.prototype.clone=function(){return new We(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},We.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},Ze.setHeaderFunction=function(ot){return Fe.call(this),this.internal.__cell__.headerFunction=typeof ot=="function"?ot:void 0,this},Ze.getTextDimensions=function(ot,$t){Fe.call(this);var Mr=($t=$t||{}).fontSize||this.getFontSize(),Sr=$t.font||this.getFont(),jr=$t.scaleFactor||this.internal.scaleFactor,tr=0,gn=0,sr=0,un=this;if(!Array.isArray(ot)&&typeof ot!="string"){if(typeof ot!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");ot=String(ot)}var an=$t.maxWidth;an>0?typeof ot=="string"?ot=this.splitTextToSize(ot,an):Object.prototype.toString.call(ot)==="[object Array]"&&(ot=ot.reduce(function(In,ci){return In.concat(un.splitTextToSize(ci,an))},[])):ot=Array.isArray(ot)?ot:[ot];for(var Pr=0;Pr<ot.length;Pr++)tr<(sr=this.getStringUnitWidth(ot[Pr],{font:Sr})*Mr)&&(tr=sr);return tr!==0&&(gn=ot.length),{w:tr/=jr,h:Math.max((gn*Mr*this.getLineHeightFactor()-Mr*(this.getLineHeightFactor()-1))/jr,0)}},Ze.cellAddPage=function(){Fe.call(this),this.addPage();var ot=this.internal.__cell__.margins||we;return this.internal.__cell__.lastCell=new We(ot.left,ot.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var qe=Ze.cell=function(){var ot;ot=arguments[0]instanceof We?arguments[0]:new We(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Fe.call(this);var $t=this.internal.__cell__.lastCell,Mr=this.internal.__cell__.padding,Sr=this.internal.__cell__.margins||we,jr=this.internal.__cell__.tableHeaderRow,tr=this.internal.__cell__.printHeaders;return $t.lineNumber!==void 0&&($t.lineNumber===ot.lineNumber?(ot.x=($t.x||0)+($t.width||0),ot.y=$t.y||0):$t.y+$t.height+ot.height+Sr.bottom>this.getPageHeight()?(this.cellAddPage(),ot.y=Sr.top,tr&&jr&&(this.printHeaderRow(ot.lineNumber,!0),ot.y+=jr[0].height)):ot.y=$t.y+$t.height||ot.y),ot.text[0]!==void 0&&(this.rect(ot.x,ot.y,ot.width,ot.height,Ne===!0?"FD":void 0),ot.align==="right"?this.text(ot.text,ot.x+ot.width-Mr,ot.y+Mr,{align:"right",baseline:"top"}):ot.align==="center"?this.text(ot.text,ot.x+ot.width/2,ot.y+Mr,{align:"center",baseline:"top",maxWidth:ot.width-Mr-Mr}):this.text(ot.text,ot.x+Mr,ot.y+Mr,{align:"left",baseline:"top",maxWidth:ot.width-Mr-Mr})),this.internal.__cell__.lastCell=ot,this};Ze.table=function(ot,$t,Mr,Sr,jr){if(Fe.call(this),!Mr)throw new Error("No data for PDF table.");var tr,gn,sr,un,an=[],Pr=[],In=[],ci={},Ui={},ki=[],Ri=[],Ki=(jr=jr||{}).autoSize||!1,Hr=jr.printHeaders!==!1,Cn=jr.css&&jr.css["font-size"]!==void 0?16*jr.css["font-size"]:jr.fontSize||12,kr=jr.margins||Object.assign({width:this.getPageWidth()},we),mr=typeof jr.padding=="number"?jr.padding:3,Cr=jr.headerBackgroundColor||"#c8c8c8",Nt=jr.headerTextColor||"#000";if(Ye.call(this),this.internal.__cell__.printHeaders=Hr,this.internal.__cell__.margins=kr,this.internal.__cell__.table_font_size=Cn,this.internal.__cell__.padding=mr,this.internal.__cell__.headerBackgroundColor=Cr,this.internal.__cell__.headerTextColor=Nt,this.setFontSize(Cn),Sr==null)Pr=an=Object.keys(Mr[0]),In=an.map(function(){return"left"});else if(Array.isArray(Sr)&&C()(Sr[0])==="object")for(an=Sr.map(function(Gn){return Gn.name}),Pr=Sr.map(function(Gn){return Gn.prompt||Gn.name||""}),In=Sr.map(function(Gn){return Gn.align||"left"}),tr=0;tr<Sr.length;tr+=1)Ui[Sr[tr].name]=Sr[tr].width*(19.049976/25.4);else Array.isArray(Sr)&&typeof Sr[0]=="string"&&(Pr=an=Sr,In=an.map(function(){return"left"}));if(Ki||Array.isArray(Sr)&&typeof Sr[0]=="string")for(tr=0;tr<an.length;tr+=1){for(ci[un=an[tr]]=Mr.map(function(Gn){return Gn[un]}),this.setFont(void 0,"bold"),ki.push(this.getTextDimensions(Pr[tr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),gn=ci[un],this.setFont(void 0,"normal"),sr=0;sr<gn.length;sr+=1)ki.push(this.getTextDimensions(gn[sr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Ui[un]=Math.max.apply(null,ki)+mr+mr,ki=[]}if(Hr){var wr={};for(tr=0;tr<an.length;tr+=1)wr[an[tr]]={},wr[an[tr]].text=Pr[tr],wr[an[tr]].align=In[tr];var Gr=yt.call(this,wr,Ui);Ri=an.map(function(Gn){return new We(ot,$t,Ui[Gn],Gr,wr[Gn].text,void 0,wr[Gn].align)}),this.setTableHeaderRow(Ri),this.printHeaderRow(1,!1)}var Kr=Sr.reduce(function(Gn,Ti){return Gn[Ti.name]=Ti.align,Gn},{});for(tr=0;tr<Mr.length;tr+=1){"rowStart"in jr&&jr.rowStart instanceof Function&&jr.rowStart({row:tr,data:Mr[tr]},this);var qr=yt.call(this,Mr[tr],Ui);for(sr=0;sr<an.length;sr+=1){var oi=Mr[tr][an[sr]];"cellStart"in jr&&jr.cellStart instanceof Function&&jr.cellStart({row:tr,col:sr,data:oi},this),qe.call(this,new We(ot,$t,Ui[an[sr]],qr,oi,tr+2,Kr[an[sr]]))}}return this.internal.__cell__.table_x=ot,this.internal.__cell__.table_y=$t,this};var yt=function($t,Mr){var Sr=this.internal.__cell__.padding,jr=this.internal.__cell__.table_font_size,tr=this.internal.scaleFactor;return Object.keys($t).map(function(gn){var sr=$t[gn];return this.splitTextToSize(sr.hasOwnProperty("text")?sr.text:sr,Mr[gn]-Sr-Sr)},this).map(function(gn){return this.getLineHeightFactor()*gn.length*jr/tr+Sr+Sr},this).reduce(function(gn,sr){return Math.max(gn,sr)},0)};Ze.setTableHeaderRow=function(ot){Fe.call(this),this.internal.__cell__.tableHeaderRow=ot},Ze.printHeaderRow=function(ot,$t){if(Fe.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 Sr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new We(Sr[0],Sr[1],Sr[2],Sr[3],void 0,-1)}this.setFont(void 0,"bold");for(var jr=[],tr=0;tr<this.internal.__cell__.tableHeaderRow.length;tr+=1){Mr=this.internal.__cell__.tableHeaderRow[tr].clone(),$t&&(Mr.y=this.internal.__cell__.margins.top||0,jr.push(Mr)),Mr.lineNumber=ot;var gn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),qe.call(this,Mr),this.setTextColor(gn)}jr.length>0&&this.setTableHeaderRow(jr),this.setFont(void 0,"normal"),Ne=!1}}(j.API);var nt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},ct=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Qe=Z(ct),dt=[100,200,300,400,500,600,700,800,900],Ft=Z(dt);function Lr(Ze){var we=Ze.family.replace(/"|'/g,"").toLowerCase(),Ne=function(We){return nt[We=We||"normal"]?We:"normal"}(Ze.style),Fe=function(We){if(!We)return 400;if(typeof We=="number")return We>=100&&We<=900&&We%100==0?We:400;if(/^\d00$/.test(We))return parseInt(We);switch(We){case"bold":return 700;case"normal":default:return 400}}(Ze.weight),Ye=function(We){return typeof Qe[We=We||"normal"]=="number"?We:"normal"}(Ze.stretch);return{family:we,style:Ne,weight:Fe,stretch:Ye,src:Ze.src||[],ref:Ze.ref||{name:we,style:[Ye,Ne,Fe].join(" ")}}}function Wt(Ze,we,Ne,Fe){var Ye;for(Ye=Ne;Ye>=0&&Ye<we.length;Ye+=Fe)if(Ze[we[Ye]])return Ze[we[Ye]];for(Ye=Ne;Ye>=0&&Ye<we.length;Ye-=Fe)if(Ze[we[Ye]])return Ze[we[Ye]]}var ar={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Ut={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function kt(Ze){return[Ze.stretch,Ze.style,Ze.weight,Ze.family].join(" ")}function st(Ze,we,Ne){for(var Fe=(Ne=Ne||{}).defaultFontFamily||"times",Ye=Object.assign({},ar,Ne.genericFontFamilies||{}),We=null,qe=null,yt=0;yt<we.length;++yt)if(Ye[(We=Lr(we[yt])).family]&&(We.family=Ye[We.family]),Ze.hasOwnProperty(We.family)){qe=Ze[We.family];break}if(!(qe=qe||Ze[Fe]))throw new Error("Could not find a font-family for the rule '"+kt(We)+"' and default family '"+Fe+"'.");if(qe=function(ot,$t){if($t[ot])return $t[ot];var Mr=Qe[ot],Sr=Mr<=Qe.normal?-1:1,jr=Wt($t,ct,Mr,Sr);if(!jr)throw new Error("Could not find a matching font-stretch value for "+ot);return jr}(We.stretch,qe),qe=function(ot,$t){if($t[ot])return $t[ot];for(var Mr=nt[ot],Sr=0;Sr<Mr.length;++Sr)if($t[Mr[Sr]])return $t[Mr[Sr]];throw new Error("Could not find a matching font-style for "+ot)}(We.style,qe),!(qe=function(ot,$t){if($t[ot])return $t[ot];if(ot===400&&$t[500])return $t[500];if(ot===500&&$t[400])return $t[400];var Mr=Ft[ot],Sr=Wt($t,dt,Mr,ot<400?-1:1);if(!Sr)throw new Error("Could not find a matching font-weight for value "+ot);return Sr}(We.weight,qe)))throw new Error("Failed to resolve a font for the rule '"+kt(We)+"'.");return qe}function Rr(Ze){return Ze.trimLeft()}function on(Ze,we){for(var Ne=0;Ne<Ze.length;){if(Ze.charAt(Ne)===we)return[Ze.substring(0,Ne),Ze.substring(Ne+1)];Ne+=1}return null}function Sn(Ze){var we=Ze.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return we===null?null:[we[0],Ze.substring(we[0].length)]}var zn,Ii,yn,Nn=["times"];!function(Ze){var we,Ne,Fe,Ye,We,qe,yt,ot,$t,Mr=function(_r){return _r=_r||{},this.isStrokeTransparent=_r.isStrokeTransparent||!1,this.strokeOpacity=_r.strokeOpacity||1,this.strokeStyle=_r.strokeStyle||"#000000",this.fillStyle=_r.fillStyle||"#000000",this.isFillTransparent=_r.isFillTransparent||!1,this.fillOpacity=_r.fillOpacity||1,this.font=_r.font||"10px sans-serif",this.textBaseline=_r.textBaseline||"alphabetic",this.textAlign=_r.textAlign||"left",this.lineWidth=_r.lineWidth||1,this.lineJoin=_r.lineJoin||"miter",this.lineCap=_r.lineCap||"butt",this.path=_r.path||[],this.transform=_r.transform!==void 0?_r.transform.clone():new ot,this.globalCompositeOperation=_r.globalCompositeOperation||"normal",this.globalAlpha=_r.globalAlpha||1,this.clip_path=_r.clip_path||[],this.currentPoint=_r.currentPoint||new qe,this.miterLimit=_r.miterLimit||10,this.lastPoint=_r.lastPoint||new qe,this.lineDashOffset=_r.lineDashOffset||0,this.lineDash=_r.lineDash||[],this.margin=_r.margin||[0,0,0,0],this.prevPageLastElemOffset=_r.prevPageLastElemOffset||0,this.ignoreClearRect=typeof _r.ignoreClearRect!="boolean"||_r.ignoreClearRect,this};Ze.events.push(["initialized",function(){this.context2d=new Sr(this),we=this.internal.f2,Ne=this.internal.getCoordinateString,Fe=this.internal.getVerticalCoordinateString,Ye=this.internal.getHorizontalCoordinate,We=this.internal.getVerticalCoordinate,qe=this.internal.Point,yt=this.internal.Rectangle,ot=this.internal.Matrix,$t=new Mr}]);var Sr=function(_r){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var En=_r;Object.defineProperty(this,"pdf",{get:function(){return En}});var Fn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Fn},set:function(zi){Fn=Boolean(zi)}});var Vn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Vn},set:function(zi){Vn=Boolean(zi)}});var qn=0;Object.defineProperty(this,"posX",{get:function(){return qn},set:function(zi){isNaN(zi)||(qn=zi)}});var Oi=0;Object.defineProperty(this,"posY",{get:function(){return Oi},set:function(zi){isNaN(zi)||(Oi=zi)}}),Object.defineProperty(this,"margin",{get:function(){return $t.margin},set:function(zi){var oa;typeof zi=="number"?oa=[zi,zi,zi,zi]:((oa=new Array(4))[0]=zi[0],oa[1]=zi.length>=2?zi[1]:oa[0],oa[2]=zi.length>=3?zi[2]:oa[0],oa[3]=zi.length>=4?zi[3]:oa[1]),$t.margin=oa}});var Ni=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Ni},set:function(zi){Ni=zi}});var Mi=0;Object.defineProperty(this,"lastBreak",{get:function(){return Mi},set:function(zi){Mi=zi}});var Ji=[];Object.defineProperty(this,"pageBreaks",{get:function(){return Ji},set:function(zi){Ji=zi}}),Object.defineProperty(this,"ctx",{get:function(){return $t},set:function(zi){zi instanceof Mr&&($t=zi)}}),Object.defineProperty(this,"path",{get:function(){return $t.path},set:function(zi){$t.path=zi}});var ma=[];Object.defineProperty(this,"ctxStack",{get:function(){return ma},set:function(zi){ma=zi}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(zi){var oa;oa=jr(zi),this.ctx.fillStyle=oa.style,this.ctx.isFillTransparent=oa.a===0,this.ctx.fillOpacity=oa.a,this.pdf.setFillColor(oa.r,oa.g,oa.b,{a:oa.a}),this.pdf.setTextColor(oa.r,oa.g,oa.b,{a:oa.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(zi){var oa=jr(zi);this.ctx.strokeStyle=oa.style,this.ctx.isStrokeTransparent=oa.a===0,this.ctx.strokeOpacity=oa.a,oa.a===0?this.pdf.setDrawColor(255,255,255):(oa.a,this.pdf.setDrawColor(oa.r,oa.g,oa.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 la=null;function qa(xn,zi){if(la===null){var oa=function(Yi){var ca=[];return Object.keys(Yi).forEach(function(Hi){Yi[Hi].forEach(function(Ia){var Da=null;switch(Ia){case"bold":Da={family:Hi,weight:"bold"};break;case"italic":Da={family:Hi,style:"italic"};break;case"bolditalic":Da={family:Hi,weight:"bold",style:"italic"};break;case"":case"normal":Da={family:Hi}}Da!==null&&(Da.ref={name:Hi,style:Ia},ca.push(Da))})}),ca}(xn.getFontList());la=function(Yi){for(var ca={},Hi=0;Hi<Yi.length;++Hi){var Ia=Lr(Yi[Hi]),Da=Ia.family,Qa=Ia.stretch,Wo=Ia.style,po=Ia.weight;ca[Da]=ca[Da]||{},ca[Da][Qa]=ca[Da][Qa]||{},ca[Da][Qa][Wo]=ca[Da][Qa][Wo]||{},ca[Da][Qa][Wo][po]=Ia}return ca}(oa.concat(zi))}return la}var bi=null;Object.defineProperty(this,"fontFaces",{get:function(){return bi},set:function(zi){la=null,bi=zi}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(zi){var oa;if(this.ctx.font=zi,(oa=/^\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 Yi=oa[1],ca=(oa[2],oa[3]),Hi=oa[4],Ia=(oa[5],oa[6]),Da=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Hi)[2];Hi=Da==="px"?Math.floor(parseFloat(Hi)*this.pdf.internal.scaleFactor):Da==="em"?Math.floor(parseFloat(Hi)*this.pdf.getFontSize()):Math.floor(parseFloat(Hi)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Hi);var Qa=function(sa){var hs,Jo,wo=[],_o=sa.trim();if(_o==="")return Nn;if(_o in Ut)return[Ut[_o]];for(;_o!=="";){switch(Jo=null,hs=(_o=Rr(_o)).charAt(0)){case'"':case"'":Jo=on(_o.substring(1),hs);break;default:Jo=Sn(_o)}if(Jo===null)return Nn;if(wo.push(Jo[0]),(_o=Rr(Jo[1]))!==""&&_o.charAt(0)!==",")return Nn;_o=_o.replace(/^,/,"")}return wo}(Ia);if(this.fontFaces){var Wo=st(qa(this.pdf,this.fontFaces),Qa.map(function(sa){return{family:sa,stretch:"normal",weight:ca,style:Yi}}));this.pdf.setFont(Wo.ref.name,Wo.ref.style)}else{var po="";(ca==="bold"||parseInt(ca,10)>=700||Yi==="bold")&&(po="bold"),Yi==="italic"&&(po+="italic"),po.length===0&&(po="normal");for(var Mo="",Fo={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"},yo=0;yo<Qa.length;yo++){if(this.pdf.internal.getFont(Qa[yo],po,{noFallback:!0,disableWarning:!0})!==void 0){Mo=Qa[yo];break}if(po==="bolditalic"&&this.pdf.internal.getFont(Qa[yo],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Mo=Qa[yo],po="bold";else if(this.pdf.internal.getFont(Qa[yo],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Mo=Qa[yo],po="normal";break}}if(Mo===""){for(var Oo=0;Oo<Qa.length;Oo++)if(Fo[Qa[Oo]]){Mo=Fo[Qa[Oo]];break}}Mo=Mo===""?"Times":Mo,this.pdf.setFont(Mo,po)}}}}),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,Ti.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(zi){this.ctx.lineDash=zi,Ti.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(zi){this.ctx.ignoreClearRect=Boolean(zi)}})};Sr.prototype.setLineDash=function(hn){this.lineDash=hn},Sr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Sr.prototype.fill=function(){ci.call(this,"fill",!1)},Sr.prototype.stroke=function(){ci.call(this,"stroke",!1)},Sr.prototype.beginPath=function(){this.path=[{type:"begin"}]},Sr.prototype.moveTo=function(hn,_r){if(isNaN(hn)||isNaN(_r))throw f.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var En=this.ctx.transform.applyToPoint(new qe(hn,_r));this.path.push({type:"mt",x:En.x,y:En.y}),this.ctx.lastPoint=new qe(hn,_r)},Sr.prototype.closePath=function(){var hn=new qe(0,0),_r=0;for(_r=this.path.length-1;_r!==-1;_r--)if(this.path[_r].type==="begin"&&C()(this.path[_r+1])==="object"&&typeof this.path[_r+1].x=="number"){hn=new qe(this.path[_r+1].x,this.path[_r+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new qe(hn.x,hn.y)},Sr.prototype.lineTo=function(hn,_r){if(isNaN(hn)||isNaN(_r))throw f.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var En=this.ctx.transform.applyToPoint(new qe(hn,_r));this.path.push({type:"lt",x:En.x,y:En.y}),this.ctx.lastPoint=new qe(En.x,En.y)},Sr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),ci.call(this,null,!0)},Sr.prototype.quadraticCurveTo=function(hn,_r,En,Fn){if(isNaN(En)||isNaN(Fn)||isNaN(hn)||isNaN(_r))throw f.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Vn=this.ctx.transform.applyToPoint(new qe(En,Fn)),qn=this.ctx.transform.applyToPoint(new qe(hn,_r));this.path.push({type:"qct",x1:qn.x,y1:qn.y,x:Vn.x,y:Vn.y}),this.ctx.lastPoint=new qe(Vn.x,Vn.y)},Sr.prototype.bezierCurveTo=function(hn,_r,En,Fn,Vn,qn){if(isNaN(Vn)||isNaN(qn)||isNaN(hn)||isNaN(_r)||isNaN(En)||isNaN(Fn))throw f.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Oi=this.ctx.transform.applyToPoint(new qe(Vn,qn)),Ni=this.ctx.transform.applyToPoint(new qe(hn,_r)),Mi=this.ctx.transform.applyToPoint(new qe(En,Fn));this.path.push({type:"bct",x1:Ni.x,y1:Ni.y,x2:Mi.x,y2:Mi.y,x:Oi.x,y:Oi.y}),this.ctx.lastPoint=new qe(Oi.x,Oi.y)},Sr.prototype.arc=function(hn,_r,En,Fn,Vn,qn){if(isNaN(hn)||isNaN(_r)||isNaN(En)||isNaN(Fn)||isNaN(Vn))throw f.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(qn=Boolean(qn),!this.ctx.transform.isIdentity){var Oi=this.ctx.transform.applyToPoint(new qe(hn,_r));hn=Oi.x,_r=Oi.y;var Ni=this.ctx.transform.applyToPoint(new qe(0,En)),Mi=this.ctx.transform.applyToPoint(new qe(0,0));En=Math.sqrt(Math.pow(Ni.x-Mi.x,2)+Math.pow(Ni.y-Mi.y,2))}Math.abs(Vn-Fn)>=2*Math.PI&&(Fn=0,Vn=2*Math.PI),this.path.push({type:"arc",x:hn,y:_r,radius:En,startAngle:Fn,endAngle:Vn,counterclockwise:qn})},Sr.prototype.arcTo=function(hn,_r,En,Fn,Vn){throw new Error("arcTo not implemented.")},Sr.prototype.rect=function(hn,_r,En,Fn){if(isNaN(hn)||isNaN(_r)||isNaN(En)||isNaN(Fn))throw f.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(hn,_r),this.lineTo(hn+En,_r),this.lineTo(hn+En,_r+Fn),this.lineTo(hn,_r+Fn),this.lineTo(hn,_r),this.lineTo(hn+En,_r),this.lineTo(hn,_r)},Sr.prototype.fillRect=function(hn,_r,En,Fn){if(isNaN(hn)||isNaN(_r)||isNaN(En)||isNaN(Fn))throw f.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!tr.call(this)){var Vn={};this.lineCap!=="butt"&&(Vn.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Vn.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(hn,_r,En,Fn),this.fill(),Vn.hasOwnProperty("lineCap")&&(this.lineCap=Vn.lineCap),Vn.hasOwnProperty("lineJoin")&&(this.lineJoin=Vn.lineJoin)}},Sr.prototype.strokeRect=function(hn,_r,En,Fn){if(isNaN(hn)||isNaN(_r)||isNaN(En)||isNaN(Fn))throw f.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");gn.call(this)||(this.beginPath(),this.rect(hn,_r,En,Fn),this.stroke())},Sr.prototype.clearRect=function(hn,_r,En,Fn){if(isNaN(hn)||isNaN(_r)||isNaN(En)||isNaN(Fn))throw f.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(hn,_r,En,Fn))},Sr.prototype.save=function(hn){hn=typeof hn!="boolean"||hn;for(var _r=this.pdf.internal.getCurrentPageInfo().pageNumber,En=0;En<this.pdf.internal.getNumberOfPages();En++)this.pdf.setPage(En+1),this.pdf.internal.out("q");if(this.pdf.setPage(_r),hn){this.ctx.fontSize=this.pdf.internal.getFontSize();var Fn=new Mr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Fn}},Sr.prototype.restore=function(hn){hn=typeof hn!="boolean"||hn;for(var _r=this.pdf.internal.getCurrentPageInfo().pageNumber,En=0;En<this.pdf.internal.getNumberOfPages();En++)this.pdf.setPage(En+1),this.pdf.internal.out("Q");this.pdf.setPage(_r),hn&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Sr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var jr=function(_r){var En,Fn,Vn,qn;if(_r.isCanvasGradient===!0&&(_r=_r.getColor()),!_r)return{r:0,g:0,b:0,a:0,style:_r};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(_r))En=0,Fn=0,Vn=0,qn=0;else{var Oi=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(_r);if(Oi!==null)En=parseInt(Oi[1]),Fn=parseInt(Oi[2]),Vn=parseInt(Oi[3]),qn=1;else if((Oi=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(_r))!==null)En=parseInt(Oi[1]),Fn=parseInt(Oi[2]),Vn=parseInt(Oi[3]),qn=parseFloat(Oi[4]);else{if(qn=1,typeof _r=="string"&&_r.charAt(0)!=="#"){var Ni=new l(_r);_r=Ni.ok?Ni.toHex():"#000000"}_r.length===4?(En=_r.substring(1,2),En+=En,Fn=_r.substring(2,3),Fn+=Fn,Vn=_r.substring(3,4),Vn+=Vn):(En=_r.substring(1,3),Fn=_r.substring(3,5),Vn=_r.substring(5,7)),En=parseInt(En,16),Fn=parseInt(Fn,16),Vn=parseInt(Vn,16)}}return{r:En,g:Fn,b:Vn,a:qn,style:_r}},tr=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},gn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Sr.prototype.fillText=function(hn,_r,En,Fn){if(isNaN(_r)||isNaN(En)||typeof hn!="string")throw f.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Fn=isNaN(Fn)?void 0:Fn,!tr.call(this)){var Vn=qr(this.ctx.transform.rotation),qn=this.ctx.transform.scaleX;mr.call(this,{text:hn,x:_r,y:En,scale:qn,angle:Vn,align:this.textAlign,maxWidth:Fn})}},Sr.prototype.strokeText=function(hn,_r,En,Fn){if(isNaN(_r)||isNaN(En)||typeof hn!="string")throw f.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!gn.call(this)){Fn=isNaN(Fn)?void 0:Fn;var Vn=qr(this.ctx.transform.rotation),qn=this.ctx.transform.scaleX;mr.call(this,{text:hn,x:_r,y:En,scale:qn,renderingMode:"stroke",angle:Vn,align:this.textAlign,maxWidth:Fn})}},Sr.prototype.measureText=function(hn){if(typeof hn!="string")throw f.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var _r=this.pdf,En=this.pdf.internal.scaleFactor,Fn=_r.internal.getFontSize(),Vn=_r.getStringUnitWidth(hn)*Fn/_r.internal.scaleFactor,qn=function(Ni){var Mi=(Ni=Ni||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Mi}}),this};return new qn({width:Vn*=Math.round(96*En/72*1e4)/1e4})},Sr.prototype.scale=function(hn,_r){if(isNaN(hn)||isNaN(_r))throw f.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var En=new ot(hn,0,0,_r,0,0);this.ctx.transform=this.ctx.transform.multiply(En)},Sr.prototype.rotate=function(hn){if(isNaN(hn))throw f.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _r=new ot(Math.cos(hn),Math.sin(hn),-Math.sin(hn),Math.cos(hn),0,0);this.ctx.transform=this.ctx.transform.multiply(_r)},Sr.prototype.translate=function(hn,_r){if(isNaN(hn)||isNaN(_r))throw f.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var En=new ot(1,0,0,1,hn,_r);this.ctx.transform=this.ctx.transform.multiply(En)},Sr.prototype.transform=function(hn,_r,En,Fn,Vn,qn){if(isNaN(hn)||isNaN(_r)||isNaN(En)||isNaN(Fn)||isNaN(Vn)||isNaN(qn))throw f.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Oi=new ot(hn,_r,En,Fn,Vn,qn);this.ctx.transform=this.ctx.transform.multiply(Oi)},Sr.prototype.setTransform=function(hn,_r,En,Fn,Vn,qn){hn=isNaN(hn)?1:hn,_r=isNaN(_r)?0:_r,En=isNaN(En)?0:En,Fn=isNaN(Fn)?1:Fn,Vn=isNaN(Vn)?0:Vn,qn=isNaN(qn)?0:qn,this.ctx.transform=new ot(hn,_r,En,Fn,Vn,qn)};var sr=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Sr.prototype.drawImage=function(hn,_r,En,Fn,Vn,qn,Oi,Ni,Mi){var Ji=this.pdf.getImageProperties(hn),ma=1,la=1,qa=1,bi=1;Fn!==void 0&&Ni!==void 0&&(qa=Ni/Fn,bi=Mi/Vn,ma=Ji.width/Fn*Ni/Fn,la=Ji.height/Vn*Mi/Vn),qn===void 0&&(qn=_r,Oi=En,_r=0,En=0),Fn!==void 0&&Ni===void 0&&(Ni=Fn,Mi=Vn),Fn===void 0&&Ni===void 0&&(Ni=Ji.width,Mi=Ji.height);for(var xn,zi=this.ctx.transform.decompose(),oa=qr(zi.rotate.shx),Yi=new ot,ca=(Yi=(Yi=(Yi=Yi.multiply(zi.translate)).multiply(zi.skew)).multiply(zi.scale)).applyToRectangle(new yt(qn-_r*qa,Oi-En*bi,Fn*ma,Vn*la)),Hi=un.call(this,ca),Ia=[],Da=0;Da<Hi.length;Da+=1)Ia.indexOf(Hi[Da])===-1&&Ia.push(Hi[Da]);if(In(Ia),this.autoPaging)for(var Qa=Ia[0],Wo=Ia[Ia.length-1],po=Qa;po<Wo+1;po++){this.pdf.setPage(po);var Mo=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Fo=po===1?this.posY+this.margin[0]:this.margin[0],yo=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Oo=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],sa=po===1?0:yo+(po-2)*Oo;if(this.ctx.clip_path.length!==0){var hs=this.path;xn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pr(xn,this.posX+this.margin[3],-sa+Fo+this.ctx.prevPageLastElemOffset),Ui.call(this,"fill",!0),this.path=hs}var Jo=JSON.parse(JSON.stringify(ca));Jo=Pr([Jo],this.posX+this.margin[3],-sa+Fo+this.ctx.prevPageLastElemOffset)[0];var wo=(po>Qa||po<Wo)&&sr.call(this);wo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Mo,Oo,null).clip().discardPath()),this.pdf.addImage(hn,"JPEG",Jo.x,Jo.y,Jo.w,Jo.h,null,null,oa),wo&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(hn,"JPEG",ca.x,ca.y,ca.w,ca.h,null,null,oa)};var un=function(_r,En,Fn){var Vn=[];En=En||this.pdf.internal.pageSize.width,Fn=Fn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var qn=this.posY+this.ctx.prevPageLastElemOffset;switch(_r.type){default:case"mt":case"lt":Vn.push(Math.floor((_r.y+qn)/Fn)+1);break;case"arc":Vn.push(Math.floor((_r.y+qn-_r.radius)/Fn)+1),Vn.push(Math.floor((_r.y+qn+_r.radius)/Fn)+1);break;case"qct":var Oi=oi(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_r.x1,_r.y1,_r.x,_r.y);Vn.push(Math.floor((Oi.y+qn)/Fn)+1),Vn.push(Math.floor((Oi.y+Oi.h+qn)/Fn)+1);break;case"bct":var Ni=Gn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,_r.x1,_r.y1,_r.x2,_r.y2,_r.x,_r.y);Vn.push(Math.floor((Ni.y+qn)/Fn)+1),Vn.push(Math.floor((Ni.y+Ni.h+qn)/Fn)+1);break;case"rect":Vn.push(Math.floor((_r.y+qn)/Fn)+1),Vn.push(Math.floor((_r.y+_r.h+qn)/Fn)+1)}for(var Mi=0;Mi<Vn.length;Mi+=1)for(;this.pdf.internal.getNumberOfPages()<Vn[Mi];)an.call(this);return Vn},an=function(){var _r=this.fillStyle,En=this.strokeStyle,Fn=this.font,Vn=this.lineCap,qn=this.lineWidth,Oi=this.lineJoin;this.pdf.addPage(),this.fillStyle=_r,this.strokeStyle=En,this.font=Fn,this.lineCap=Vn,this.lineWidth=qn,this.lineJoin=Oi},Pr=function(_r,En,Fn){for(var Vn=0;Vn<_r.length;Vn++)switch(_r[Vn].type){case"bct":_r[Vn].x2+=En,_r[Vn].y2+=Fn;case"qct":_r[Vn].x1+=En,_r[Vn].y1+=Fn;case"mt":case"lt":case"arc":default:_r[Vn].x+=En,_r[Vn].y+=Fn}return _r},In=function(_r){return _r.sort(function(En,Fn){return En-Fn})},ci=function(_r,En){for(var Fn,Vn,qn=this.fillStyle,Oi=this.strokeStyle,Ni=this.lineCap,Mi=this.lineWidth,Ji=Math.abs(Mi*this.ctx.transform.scaleX),ma=this.lineJoin,la=JSON.parse(JSON.stringify(this.path)),qa=JSON.parse(JSON.stringify(this.path)),bi=[],xn=0;xn<qa.length;xn++)if(qa[xn].x!==void 0)for(var zi=un.call(this,qa[xn]),oa=0;oa<zi.length;oa+=1)bi.indexOf(zi[oa])===-1&&bi.push(zi[oa]);for(var Yi=0;Yi<bi.length;Yi++)for(;this.pdf.internal.getNumberOfPages()<bi[Yi];)an.call(this);if(In(bi),this.autoPaging)for(var ca=bi[0],Hi=bi[bi.length-1],Ia=ca;Ia<Hi+1;Ia++){this.pdf.setPage(Ia),this.fillStyle=qn,this.strokeStyle=Oi,this.lineCap=Ni,this.lineWidth=Ji,this.lineJoin=ma;var Da=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Qa=Ia===1?this.posY+this.margin[0]:this.margin[0],Wo=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],po=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Mo=Ia===1?0:Wo+(Ia-2)*po;if(this.ctx.clip_path.length!==0){var Fo=this.path;Fn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pr(Fn,this.posX+this.margin[3],-Mo+Qa+this.ctx.prevPageLastElemOffset),Ui.call(this,_r,!0),this.path=Fo}if(Vn=JSON.parse(JSON.stringify(la)),this.path=Pr(Vn,this.posX+this.margin[3],-Mo+Qa+this.ctx.prevPageLastElemOffset),En===!1||Ia===0){var yo=(Ia>ca||Ia<Hi)&&sr.call(this);yo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Da,po,null).clip().discardPath()),Ui.call(this,_r,En),yo&&this.pdf.restoreGraphicsState()}this.lineWidth=Mi}else this.lineWidth=Ji,Ui.call(this,_r,En),this.lineWidth=Mi;this.path=la},Ui=function(_r,En){if((_r!=="stroke"||En||!gn.call(this))&&(_r==="stroke"||En||!tr.call(this))){for(var Fn,Vn,qn=[],Oi=this.path,Ni=0;Ni<Oi.length;Ni++){var Mi=Oi[Ni];switch(Mi.type){case"begin":qn.push({begin:!0});break;case"close":qn.push({close:!0});break;case"mt":qn.push({start:Mi,deltas:[],abs:[]});break;case"lt":var Ji=qn.length;if(Oi[Ni-1]&&!isNaN(Oi[Ni-1].x)&&(Fn=[Mi.x-Oi[Ni-1].x,Mi.y-Oi[Ni-1].y],Ji>0)){for(;Ji>=0;Ji--)if(qn[Ji-1].close!==!0&&qn[Ji-1].begin!==!0){qn[Ji-1].deltas.push(Fn),qn[Ji-1].abs.push(Mi);break}}break;case"bct":Fn=[Mi.x1-Oi[Ni-1].x,Mi.y1-Oi[Ni-1].y,Mi.x2-Oi[Ni-1].x,Mi.y2-Oi[Ni-1].y,Mi.x-Oi[Ni-1].x,Mi.y-Oi[Ni-1].y],qn[qn.length-1].deltas.push(Fn);break;case"qct":var ma=Oi[Ni-1].x+2/3*(Mi.x1-Oi[Ni-1].x),la=Oi[Ni-1].y+2/3*(Mi.y1-Oi[Ni-1].y),qa=Mi.x+2/3*(Mi.x1-Mi.x),bi=Mi.y+2/3*(Mi.y1-Mi.y),xn=Mi.x,zi=Mi.y;Fn=[ma-Oi[Ni-1].x,la-Oi[Ni-1].y,qa-Oi[Ni-1].x,bi-Oi[Ni-1].y,xn-Oi[Ni-1].x,zi-Oi[Ni-1].y],qn[qn.length-1].deltas.push(Fn);break;case"arc":qn.push({deltas:[],abs:[],arc:!0}),Array.isArray(qn[qn.length-1].abs)&&qn[qn.length-1].abs.push(Mi)}}Vn=En?null:_r==="stroke"?"stroke":"fill";for(var oa=!1,Yi=0;Yi<qn.length;Yi++)if(qn[Yi].arc)for(var ca=qn[Yi].abs,Hi=0;Hi<ca.length;Hi++){var Ia=ca[Hi];Ia.type==="arc"?Ki.call(this,Ia.x,Ia.y,Ia.radius,Ia.startAngle,Ia.endAngle,Ia.counterclockwise,void 0,En,!oa):Cr.call(this,Ia.x,Ia.y),oa=!0}else if(qn[Yi].close===!0)this.pdf.internal.out("h"),oa=!1;else if(qn[Yi].begin!==!0){var Da=qn[Yi].start.x,Qa=qn[Yi].start.y;Nt.call(this,qn[Yi].deltas,Da,Qa),oa=!0}Vn&&Hr.call(this,Vn),En&&Cn.call(this)}},ki=function(_r){var En=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Fn=En*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return _r-Fn;case"top":return _r+En-Fn;case"hanging":return _r+En-2*Fn;case"middle":return _r+En/2-Fn;case"ideographic":return _r;case"alphabetic":default:return _r}},Ri=function(_r){return _r+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Sr.prototype.createLinearGradient=function(){var hn=function(){};return hn.colorStops=[],hn.addColorStop=function(_r,En){this.colorStops.push([_r,En])},hn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},hn.isCanvasGradient=!0,hn},Sr.prototype.createPattern=function(){return this.createLinearGradient()},Sr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Ki=function(_r,En,Fn,Vn,qn,Oi,Ni,Mi,Ji){for(var ma=Gr.call(this,Fn,Vn,qn,Oi),la=0;la<ma.length;la++){var qa=ma[la];la===0&&(Ji?kr.call(this,qa.x1+_r,qa.y1+En):Cr.call(this,qa.x1+_r,qa.y1+En)),wr.call(this,_r,En,qa.x2,qa.y2,qa.x3,qa.y3,qa.x4,qa.y4)}Mi?Cn.call(this):Hr.call(this,Ni)},Hr=function(_r){switch(_r){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Cn=function(){this.pdf.clip(),this.pdf.discardPath()},kr=function(_r,En){this.pdf.internal.out(Ne(_r)+" "+Fe(En)+" m")},mr=function(_r){var En;switch(_r.align){case"right":case"end":En="right";break;case"center":En="center";break;case"left":case"start":default:En="left"}var Fn=this.pdf.getTextDimensions(_r.text),Vn=ki.call(this,_r.y),qn=Ri.call(this,Vn)-Fn.h,Oi=this.ctx.transform.applyToPoint(new qe(_r.x,Vn)),Ni=this.ctx.transform.decompose(),Mi=new ot;Mi=(Mi=(Mi=Mi.multiply(Ni.translate)).multiply(Ni.skew)).multiply(Ni.scale);for(var Ji,ma,la,qa=this.ctx.transform.applyToRectangle(new yt(_r.x,Vn,Fn.w,Fn.h)),bi=Mi.applyToRectangle(new yt(_r.x,qn,Fn.w,Fn.h)),xn=un.call(this,bi),zi=[],oa=0;oa<xn.length;oa+=1)zi.indexOf(xn[oa])===-1&&zi.push(xn[oa]);if(In(zi),this.autoPaging)for(var Yi=zi[0],ca=zi[zi.length-1],Hi=Yi;Hi<ca+1;Hi++){this.pdf.setPage(Hi);var Ia=Hi===1?this.posY+this.margin[0]:this.margin[0],Da=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Qa=this.pdf.internal.pageSize.height-this.margin[2],Wo=Qa-this.margin[0],po=this.pdf.internal.pageSize.width-this.margin[1],Mo=po-this.margin[3],Fo=Hi===1?0:Da+(Hi-2)*Wo;if(this.ctx.clip_path.length!==0){var yo=this.path;Ji=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Pr(Ji,this.posX+this.margin[3],-1*Fo+Ia),Ui.call(this,"fill",!0),this.path=yo}var Oo=Pr([JSON.parse(JSON.stringify(bi))],this.posX+this.margin[3],-Fo+Ia+this.ctx.prevPageLastElemOffset)[0];_r.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*_r.scale),la=this.lineWidth,this.lineWidth=la*_r.scale);var sa=this.autoPaging!=="text";if(sa||Oo.y+Oo.h<=Qa){if(sa||Oo.y>=Ia&&Oo.x<=po){var hs=sa?_r.text:this.pdf.splitTextToSize(_r.text,_r.maxWidth||po-Oo.x)[0],Jo=Pr([JSON.parse(JSON.stringify(qa))],this.posX+this.margin[3],-Fo+Ia+this.ctx.prevPageLastElemOffset)[0],wo=sa&&(Hi>Yi||Hi<ca)&&sr.call(this);wo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Mo,Wo,null).clip().discardPath()),this.pdf.text(hs,Jo.x,Jo.y,{angle:_r.angle,align:En,renderingMode:_r.renderingMode}),wo&&this.pdf.restoreGraphicsState()}}else Oo.y<Qa&&(this.ctx.prevPageLastElemOffset+=Qa-Oo.y);_r.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=la)}else _r.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*_r.scale),la=this.lineWidth,this.lineWidth=la*_r.scale),this.pdf.text(_r.text,Oi.x+this.posX,Oi.y+this.posY,{angle:_r.angle,align:En,renderingMode:_r.renderingMode,maxWidth:_r.maxWidth}),_r.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=la)},Cr=function(_r,En,Fn,Vn){Fn=Fn||0,Vn=Vn||0,this.pdf.internal.out(Ne(_r+Fn)+" "+Fe(En+Vn)+" l")},Nt=function(_r,En,Fn){return this.pdf.lines(_r,En,Fn,null,null)},wr=function(_r,En,Fn,Vn,qn,Oi,Ni,Mi){this.pdf.internal.out([we(Ye(Fn+_r)),we(We(Vn+En)),we(Ye(qn+_r)),we(We(Oi+En)),we(Ye(Ni+_r)),we(We(Mi+En)),"c"].join(" "))},Gr=function(_r,En,Fn,Vn){for(var qn=2*Math.PI,Oi=Math.PI/2;En>Fn;)En-=qn;var Ni=Math.abs(Fn-En);Ni<qn&&Vn&&(Ni=qn-Ni);for(var Mi=[],Ji=Vn?-1:1,ma=En;Ni>1e-5;){var la=ma+Ji*Math.min(Ni,Oi);Mi.push(Kr.call(this,_r,ma,la)),Ni-=Math.abs(la-ma),ma=la}return Mi},Kr=function(_r,En,Fn){var Vn=(Fn-En)/2,qn=_r*Math.cos(Vn),Oi=_r*Math.sin(Vn),Ni=qn,Mi=-Oi,Ji=Ni*Ni+Mi*Mi,ma=Ji+Ni*qn+Mi*Oi,la=4/3*(Math.sqrt(2*Ji*ma)-ma)/(Ni*Oi-Mi*qn),qa=Ni-la*Mi,bi=Mi+la*Ni,xn=qa,zi=-bi,oa=Vn+En,Yi=Math.cos(oa),ca=Math.sin(oa);return{x1:_r*Math.cos(En),y1:_r*Math.sin(En),x2:qa*Yi-bi*ca,y2:qa*ca+bi*Yi,x3:xn*Yi-zi*ca,y3:xn*ca+zi*Yi,x4:_r*Math.cos(Fn),y4:_r*Math.sin(Fn)}},qr=function(_r){return 180*_r/Math.PI},oi=function(_r,En,Fn,Vn,qn,Oi){var Ni=_r+.5*(Fn-_r),Mi=En+.5*(Vn-En),Ji=qn+.5*(Fn-qn),ma=Oi+.5*(Vn-Oi),la=Math.min(_r,qn,Ni,Ji),qa=Math.max(_r,qn,Ni,Ji),bi=Math.min(En,Oi,Mi,ma),xn=Math.max(En,Oi,Mi,ma);return new yt(la,bi,qa-la,xn-bi)},Gn=function(_r,En,Fn,Vn,qn,Oi,Ni,Mi){var Ji,ma,la,qa,bi,xn,zi,oa,Yi,ca,Hi,Ia,Da,Qa,Wo=Fn-_r,po=Vn-En,Mo=qn-Fn,Fo=Oi-Vn,yo=Ni-qn,Oo=Mi-Oi;for(ma=0;ma<41;ma++)Yi=(zi=(la=_r+(Ji=ma/40)*Wo)+Ji*((bi=Fn+Ji*Mo)-la))+Ji*(bi+Ji*(qn+Ji*yo-bi)-zi),ca=(oa=(qa=En+Ji*po)+Ji*((xn=Vn+Ji*Fo)-qa))+Ji*(xn+Ji*(Oi+Ji*Oo-xn)-oa),ma==0?(Hi=Yi,Ia=ca,Da=Yi,Qa=ca):(Hi=Math.min(Hi,Yi),Ia=Math.min(Ia,ca),Da=Math.max(Da,Yi),Qa=Math.max(Qa,ca));return new yt(Math.round(Hi),Math.round(Ia),Math.round(Da-Hi),Math.round(Qa-Ia))},Ti=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var _r,En,Fn=(_r=this.ctx.lineDash,En=this.ctx.lineDashOffset,JSON.stringify({lineDash:_r,lineDashOffset:En}));this.prevLineDash!==Fn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Fn)}}}(j.API),function(Ze){var we=function(qe){var yt,ot,$t,Mr,Sr,jr,tr,gn,sr,un;for(/[^\x00-\xFF]/.test(qe),ot=[],$t=0,Mr=(qe+=yt="\0\0\0\0".slice(qe.length%4||4)).length;Mr>$t;$t+=4)(Sr=(qe.charCodeAt($t)<<24)+(qe.charCodeAt($t+1)<<16)+(qe.charCodeAt($t+2)<<8)+qe.charCodeAt($t+3))!==0?(jr=(Sr=((Sr=((Sr=((Sr=(Sr-(un=Sr%85))/85)-(sr=Sr%85))/85)-(gn=Sr%85))/85)-(tr=Sr%85))/85)%85,ot.push(jr+33,tr+33,gn+33,sr+33,un+33)):ot.push(122);return function(an,Pr){for(var In=Pr;In>0;In--)an.pop()}(ot,yt.length),String.fromCharCode.apply(String,ot)+"~>"},Ne=function(qe){var yt,ot,$t,Mr,Sr,jr=String,tr="length",gn=255,sr="charCodeAt",un="slice",an="replace";for(qe[un](-2),qe=qe[un](0,-2)[an](/\s/g,"")[an]("z","!!!!!"),$t=[],Mr=0,Sr=(qe+=yt="uuuuu"[un](qe[tr]%5||5))[tr];Sr>Mr;Mr+=5)ot=52200625*(qe[sr](Mr)-33)+614125*(qe[sr](Mr+1)-33)+7225*(qe[sr](Mr+2)-33)+85*(qe[sr](Mr+3)-33)+(qe[sr](Mr+4)-33),$t.push(gn&ot>>24,gn&ot>>16,gn&ot>>8,gn&ot);return function(Pr,In){for(var ci=In;ci>0;ci--)Pr.pop()}($t,yt[tr]),jr.fromCharCode.apply(jr,$t)},Fe=function(qe){var yt=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((qe=qe.replace(/\s/g,"")).indexOf(">")!==-1&&(qe=qe.substr(0,qe.indexOf(">"))),qe.length%2&&(qe+="0"),yt.test(qe)===!1)return"";for(var ot="",$t=0;$t<qe.length;$t+=2)ot+=String.fromCharCode("0x"+(qe[$t]+qe[$t+1]));return ot},Ye=function(qe){for(var yt=new Uint8Array(qe.length),ot=qe.length;ot--;)yt[ot]=qe.charCodeAt(ot);return qe=(yt=Object(A.b)(yt)).reduce(function($t,Mr){return $t+String.fromCharCode(Mr)},"")};Ze.processDataByFilters=function(We,qe){var yt=0,ot=We||"",$t=[];for(typeof(qe=qe||[])=="string"&&(qe=[qe]),yt=0;yt<qe.length;yt+=1)switch(qe[yt]){case"ASCII85Decode":case"/ASCII85Decode":ot=Ne(ot),$t.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":ot=we(ot),$t.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":ot=Fe(ot),$t.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":ot=ot.split("").map(function(Mr){return("0"+Mr.charCodeAt().toString(16)).slice(-2)}).join("")+">",$t.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":ot=Ye(ot),$t.push("/FlateDecode");break;default:throw new Error('The filter: "'+qe[yt]+'" is not implemented')}return{data:ot,reverseChain:$t.reverse().join(" ")}}}(j.API),function(Ze){Ze.loadFile=function(we,Ne,Fe){return function(Ye,We,qe){We=We!==!1,qe=typeof qe=="function"?qe:function(){};var yt=void 0;try{yt=function(ot,$t,Mr){var Sr=new XMLHttpRequest,jr=0,tr=function(sr){var un=sr.length,an=[],Pr=String.fromCharCode;for(jr=0;jr<un;jr+=1)an.push(Pr(255&sr.charCodeAt(jr)));return an.join("")};if(Sr.open("GET",ot,!$t),Sr.overrideMimeType("text/plain; charset=x-user-defined"),$t===!1&&(Sr.onload=function(){Sr.status===200?Mr(tr(this.responseText)):Mr(void 0)}),Sr.send(null),$t&&Sr.status===200)return tr(Sr.responseText)}(Ye,We,qe)}catch(ot){}return yt}(we,Ne,Fe)},Ze.loadImageFile=Ze.loadFile}(j.API),function(Ze){function we(){return(b.html2canvas?Promise.resolve(b.html2canvas):Promise.resolve().then(d.t.bind(null,"wOnQ",7))).catch(function(qe){return Promise.reject(new Error("Could not load html2canvas: "+qe))}).then(function(qe){return qe.default?qe.default:qe})}function Ne(){return(b.DOMPurify?Promise.resolve(b.DOMPurify):d.e(245).then(d.t.bind(null,"qZ2Q",7))).catch(function(qe){return Promise.reject(new Error("Could not load dompurify: "+qe))}).then(function(qe){return qe.default?qe.default:qe})}var Fe=function(yt){var ot=C()(yt);return ot==="undefined"?"undefined":ot==="string"||yt instanceof String?"string":ot==="number"||yt instanceof Number?"number":ot==="function"||yt instanceof Function?"function":yt&&yt.constructor===Array?"array":yt&&yt.nodeType===1?"element":ot==="object"?"object":"unknown"},Ye=function(yt,ot){var $t=document.createElement(yt);for(var Mr in ot.className&&($t.className=ot.className),ot.innerHTML&&ot.dompurify&&($t.innerHTML=ot.dompurify.sanitize(ot.innerHTML)),ot.style)$t.style[Mr]=ot.style[Mr];return $t},We=function qe(yt){var ot=Object.assign(qe.convert(Promise.resolve()),JSON.parse(JSON.stringify(qe.template))),$t=qe.convert(Promise.resolve(),ot);return $t=($t=$t.setProgress(1,qe,1,[qe])).set(yt)};(We.prototype=Object.create(Promise.prototype)).constructor=We,We.convert=function(qe,yt){return qe.__proto__=yt||We.prototype,qe},We.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},We.prototype.from=function(qe,yt){return this.then(function(){switch(yt=yt||function(ot){switch(Fe(ot)){case"string":return"string";case"element":return ot.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(qe)){case"string":return this.then(Ne).then(function(ot){return this.set({src:Ye("div",{innerHTML:qe,dompurify:ot})})});case"element":return this.set({src:qe});case"canvas":return this.set({canvas:qe});case"img":return this.set({img:qe});default:return this.error("Unknown source type.")}})},We.prototype.to=function(qe){switch(qe){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},We.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var qe={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},yt=function ot($t,Mr){for(var Sr=$t.nodeType===3?document.createTextNode($t.nodeValue):$t.cloneNode(!1),jr=$t.firstChild;jr;jr=jr.nextSibling)Mr!==!0&&jr.nodeType===1&&jr.nodeName==="SCRIPT"||Sr.appendChild(ot(jr,Mr));return $t.nodeType===1&&($t.nodeName==="CANVAS"?(Sr.width=$t.width,Sr.height=$t.height,Sr.getContext("2d").drawImage($t,0,0)):$t.nodeName!=="TEXTAREA"&&$t.nodeName!=="SELECT"||(Sr.value=$t.value),Sr.addEventListener("load",function(){Sr.scrollTop=$t.scrollTop,Sr.scrollLeft=$t.scrollLeft},!0)),Sr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);yt.tagName==="BODY"&&(qe.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=Ye("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=Ye("div",{className:"html2pdf__container",style:qe}),this.prop.container.appendChild(yt),this.prop.container.firstChild.appendChild(Ye("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},We.prototype.toCanvas=function(){var qe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(qe).then(we).then(function(yt){var ot=Object.assign({},this.opt.html2canvas);return delete ot.onrendered,yt(this.prop.container,ot)}).then(function(yt){(this.opt.html2canvas.onrendered||function(){})(yt),this.prop.canvas=yt,document.body.removeChild(this.prop.overlay)})},We.prototype.toContext2d=function(){var qe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(qe).then(we).then(function(yt){var ot=this.opt.jsPDF,$t=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,Sr=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 Sr.onrendered,ot.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,ot.context2d.posX=this.opt.x,ot.context2d.posY=this.opt.y,ot.context2d.margin=this.opt.margin,ot.context2d.fontFaces=$t,$t)for(var jr=0;jr<$t.length;++jr){var tr=$t[jr],gn=tr.src.find(function(sr){return sr.format==="truetype"});gn&&ot.addFont(gn.url,tr.ref.name,tr.ref.style)}return Sr.windowHeight=Sr.windowHeight||0,Sr.windowHeight=Sr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Sr.windowHeight,ot.context2d.save(!0),yt(this.prop.container,Sr)}).then(function(yt){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(yt),this.prop.canvas=yt,document.body.removeChild(this.prop.overlay)})},We.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var qe=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=qe})},We.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},We.prototype.output=function(qe,yt,ot){return(ot=ot||"pdf").toLowerCase()==="img"||ot.toLowerCase()==="image"?this.outputImg(qe,yt):this.outputPdf(qe,yt)},We.prototype.outputPdf=function(qe,yt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(qe,yt)})},We.prototype.outputImg=function(qe){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(qe){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 "'+qe+'" is not supported.'}})},We.prototype.save=function(qe){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(qe?{filename:qe}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},We.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},We.prototype.set=function(qe){if(Fe(qe)!=="object")return this;var yt=Object.keys(qe||{}).map(function(ot){if(ot in We.template.prop)return function(){this.prop[ot]=qe[ot]};switch(ot){case"margin":return this.setMargin.bind(this,qe.margin);case"jsPDF":return function(){return this.opt.jsPDF=qe.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,qe.pageSize);default:return function(){this.opt[ot]=qe[ot]}}},this);return this.then(function(){return this.thenList(yt)})},We.prototype.get=function(qe,yt){return this.then(function(){var ot=qe in We.template.prop?this.prop[qe]:this.opt[qe];return yt?yt(ot):ot})},We.prototype.setMargin=function(qe){return this.then(function(){switch(Fe(qe)){case"number":qe=[qe,qe,qe,qe];case"array":if(qe.length===2&&(qe=[qe[0],qe[1],qe[0],qe[1]]),qe.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=qe}).then(this.setPageSize)},We.prototype.setPageSize=function(qe){function yt(ot,$t){return Math.floor(ot*$t/72*96)}return this.then(function(){(qe=qe||j.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(qe.inner={width:qe.width-this.opt.margin[1]-this.opt.margin[3],height:qe.height-this.opt.margin[0]-this.opt.margin[2]},qe.inner.px={width:yt(qe.inner.width,qe.k),height:yt(qe.inner.height,qe.k)},qe.inner.ratio=qe.inner.height/qe.inner.width),this.prop.pageSize=qe})},We.prototype.setProgress=function(qe,yt,ot,$t){return qe!=null&&(this.progress.val=qe),yt!=null&&(this.progress.state=yt),ot!=null&&(this.progress.n=ot),$t!=null&&(this.progress.stack=$t),this.progress.ratio=this.progress.val/this.progress.state,this},We.prototype.updateProgress=function(qe,yt,ot,$t){return this.setProgress(qe?this.progress.val+qe:null,yt||null,ot?this.progress.n+ot:null,$t?this.progress.stack.concat($t):null)},We.prototype.then=function(qe,yt){var ot=this;return this.thenCore(qe,yt,function($t,Mr){return ot.updateProgress(null,null,1,[$t]),Promise.prototype.then.call(this,function(Sr){return ot.updateProgress(null,$t),Sr}).then($t,Mr).then(function(Sr){return ot.updateProgress(1),Sr})})},We.prototype.thenCore=function(qe,yt,ot){ot=ot||Promise.prototype.then,qe&&(qe=qe.bind(this)),yt&&(yt=yt.bind(this));var $t=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:We.convert(Object.assign({},this),Promise.prototype),Mr=ot.call($t,qe,yt);return We.convert(Mr,this.__proto__)},We.prototype.thenExternal=function(qe,yt){return Promise.prototype.then.call(this,qe,yt)},We.prototype.thenList=function(qe){var yt=this;return qe.forEach(function(ot){yt=yt.thenCore(ot)}),yt},We.prototype.catch=function(qe){qe&&(qe=qe.bind(this));var yt=Promise.prototype.catch.call(this,qe);return We.convert(yt,this)},We.prototype.catchExternal=function(qe){return Promise.prototype.catch.call(this,qe)},We.prototype.error=function(qe){return this.then(function(){throw new Error(qe)})},We.prototype.using=We.prototype.set,We.prototype.saveAs=We.prototype.save,We.prototype.export=We.prototype.output,We.prototype.run=We.prototype.then,j.getPageSize=function(qe,yt,ot){if(C()(qe)==="object"){var $t=qe;qe=$t.orientation,yt=$t.unit||yt,ot=$t.format||ot}yt=yt||"mm",ot=ot||"a4",qe=(""+(qe||"P")).toLowerCase();var Mr,Sr=(""+ot).toLowerCase(),jr={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(yt){case"pt":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: "+yt}var tr,gn=0,sr=0;if(jr.hasOwnProperty(Sr))gn=jr[Sr][1]/Mr,sr=jr[Sr][0]/Mr;else try{gn=ot[1],sr=ot[0]}catch(un){throw new Error("Invalid format: "+ot)}if(qe==="p"||qe==="portrait")qe="p",sr>gn&&(tr=sr,sr=gn,gn=tr);else{if(qe!=="l"&&qe!=="landscape")throw"Invalid orientation: "+qe;qe="l",gn>sr&&(tr=sr,sr=gn,gn=tr)}return{width:sr,height:gn,unit:yt,k:Mr,orientation:qe}},Ze.html=function(qe,yt){(yt=yt||{}).callback=yt.callback||function(){},yt.html2canvas=yt.html2canvas||{},yt.html2canvas.canvas=yt.html2canvas.canvas||this.canvas,yt.jsPDF=yt.jsPDF||this,yt.fontFaces=yt.fontFaces?yt.fontFaces.map(Lr):null;var ot=new We(yt);return yt.worker?ot:ot.from(qe).doCallback()}}(j.API),j.API.addJS=function(Ze){return yn=Ze,this.internal.events.subscribe("postPutResources",function(){zn=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(zn+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Ii=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+yn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){zn!==void 0&&Ii!==void 0&&this.internal.out("/Names <</JavaScript "+zn+" 0 R>>")}),this},function(Ze){var we;Ze.events.push(["postPutResources",function(){var Ne=this,Fe=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var Ye=Ne.outline.render().split(/\r\n/),We=0;We<Ye.length;We++){var qe=Ye[We],yt=Fe.exec(qe);if(yt!=null){var ot=yt[1];Ne.internal.newObjectDeferredBegin(ot,!1)}Ne.internal.write(qe)}if(this.outline.createNamedDestinations){var $t=this.internal.pages.length,Mr=[];for(We=0;We<$t;We++){var Sr=Ne.internal.newObject();Mr.push(Sr);var jr=Ne.internal.getPageInfo(We+1);Ne.internal.write("<< /D["+jr.objId+" 0 R /XYZ null null null]>> endobj")}var tr=Ne.internal.newObject();for(Ne.internal.write("<< /Names [ "),We=0;We<Mr.length;We++)Ne.internal.write("(page_"+(We+1)+")"+Mr[We]+" 0 R");Ne.internal.write(" ] >>","endobj"),we=Ne.internal.newObject(),Ne.internal.write("<< /Dests "+tr+" 0 R"),Ne.internal.write(">>","endobj")}}]),Ze.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 "+we+" 0 R"))}]),Ze.events.push(["initialized",function(){var Ne=this;Ne.outline={createNamedDestinations:!1,root:{children:[]}},Ne.outline.add=function(Fe,Ye,We){var qe={title:Ye,options:We,children:[]};return Fe==null&&(Fe=this.root),Fe.children.push(qe),qe},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(Fe){Fe.id=Ne.internal.newObjectDeferred();for(var Ye=0;Ye<Fe.children.length;Ye++)this.genIds_r(Fe.children[Ye])},Ne.outline.renderRoot=function(Fe){this.objStart(Fe),this.line("/Type /Outlines"),Fe.children.length>0&&(this.line("/First "+this.makeRef(Fe.children[0])),this.line("/Last "+this.makeRef(Fe.children[Fe.children.length-1]))),this.line("/Count "+this.count_r({count:0},Fe)),this.objEnd()},Ne.outline.renderItems=function(Fe){for(var Ye=this.ctx.pdf.internal.getVerticalCoordinateString,We=0;We<Fe.children.length;We++){var qe=Fe.children[We];this.objStart(qe),this.line("/Title "+this.makeString(qe.title)),this.line("/Parent "+this.makeRef(Fe)),We>0&&this.line("/Prev "+this.makeRef(Fe.children[We-1])),We<Fe.children.length-1&&this.line("/Next "+this.makeRef(Fe.children[We+1])),qe.children.length>0&&(this.line("/First "+this.makeRef(qe.children[0])),this.line("/Last "+this.makeRef(qe.children[qe.children.length-1])));var yt=this.count=this.count_r({count:0},qe);if(yt>0&&this.line("/Count "+yt),qe.options&&qe.options.pageNumber){var ot=Ne.internal.getPageInfo(qe.options.pageNumber);this.line("/Dest ["+ot.objId+" 0 R /XYZ 0 "+Ye(0)+" 0]")}this.objEnd()}for(var $t=0;$t<Fe.children.length;$t++)this.renderItems(Fe.children[$t])},Ne.outline.line=function(Fe){this.ctx.val+=Fe+`\r
`},Ne.outline.makeRef=function(Fe){return Fe.id+" 0 R"},Ne.outline.makeString=function(Fe){return"("+Ne.internal.pdfEscape(Fe)+")"},Ne.outline.objStart=function(Fe){this.ctx.val+=`\r
`+Fe.id+` 0 obj\r
<<\r
`},Ne.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},Ne.outline.count_r=function(Fe,Ye){for(var We=0;We<Ye.children.length;We++)Fe.count++,this.count_r(Fe,Ye.children[We]);return Fe.count}}])}(j.API),function(Ze){var we=[192,193,194,195,196,197,198,199];Ze.processJPEG=function(Ne,Fe,Ye,We,qe,yt){var ot,$t=this.decode.DCT_DECODE,Mr=null;if(typeof Ne=="string"||this.__addimage__.isArrayBuffer(Ne)||this.__addimage__.isArrayBufferView(Ne)){switch(Ne=qe||Ne,Ne=this.__addimage__.isArrayBuffer(Ne)?new Uint8Array(Ne):Ne,(ot=function(Sr){for(var jr,tr=256*Sr.charCodeAt(4)+Sr.charCodeAt(5),gn=Sr.length,sr={width:0,height:0,numcomponents:1},un=4;un<gn;un+=2){if(un+=tr,we.indexOf(Sr.charCodeAt(un+1))!==-1){jr=256*Sr.charCodeAt(un+5)+Sr.charCodeAt(un+6),sr={width:256*Sr.charCodeAt(un+7)+Sr.charCodeAt(un+8),height:jr,numcomponents:Sr.charCodeAt(un+9)};break}tr=256*Sr.charCodeAt(un+2)+Sr.charCodeAt(un+3)}return sr}(Ne=this.__addimage__.isArrayBufferView(Ne)?this.__addimage__.arrayBufferToBinaryString(Ne):Ne)).numcomponents){case 1:yt=this.color_spaces.DEVICE_GRAY;break;case 4:yt=this.color_spaces.DEVICE_CMYK;break;case 3:yt=this.color_spaces.DEVICE_RGB}Mr={data:Ne,width:ot.width,height:ot.height,colorSpace:yt,bitsPerComponent:8,filter:$t,index:Fe,alias:Ye}}return Mr}}(j.API);var jt,At,Re,Ke,Pe,at=function(){var Ze,we,Ne;function Fe(We){var qe,yt,ot,$t,Mr,Sr,jr,tr,gn,sr,un,an,Pr,In;for(this.data=We,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Sr=null;;){switch(qe=this.readUInt32(),gn=function(){var ci,Ui;for(Ui=[],ci=0;ci<4;++ci)Ui.push(String.fromCharCode(this.data[this.pos++]));return Ui}.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(qe);break;case"fcTL":Sr&&this.animation.frames.push(Sr),this.pos+=4,Sr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Mr=this.readUInt16(),$t=this.readUInt16()||100,Sr.delay=1e3*Mr/$t,Sr.disposeOp=this.data[this.pos++],Sr.blendOp=this.data[this.pos++],Sr.data=[];break;case"IDAT":case"fdAT":for(gn==="fdAT"&&(this.pos+=4,qe-=4),We=(Sr!=null?Sr.data:void 0)||this.imgData,an=0;0<=qe?an<qe:an>qe;0<=qe?++an:--an)We.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(ot=this.palette.length/3,this.transparency.indexed=this.read(qe),this.transparency.indexed.length>ot)throw new Error("More transparent colors than palette size");if((sr=ot-this.transparency.indexed.length)>0)for(Pr=0;0<=sr?Pr<sr:Pr>sr;0<=sr?++Pr:--Pr)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(qe)[0];break;case 2:this.transparency.rgb=this.read(qe)}break;case"tEXt":jr=(un=this.read(qe)).indexOf(0),tr=String.fromCharCode.apply(String,un.slice(0,jr)),this.text[tr]=String.fromCharCode.apply(String,un.slice(jr+1));break;case"IEND":return Sr&&this.animation.frames.push(Sr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(In=this.colorType)===4||In===6,yt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*yt,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=qe}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}Fe.prototype.read=function(We){var qe,yt;for(yt=[],qe=0;0<=We?qe<We:qe>We;0<=We?++qe:--qe)yt.push(this.data[this.pos++]);return yt},Fe.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Fe.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Fe.prototype.decodePixels=function(We){var qe=this.pixelBitlength/8,yt=new Uint8Array(this.width*this.height*qe),ot=0,$t=this;if(We==null&&(We=this.imgData),We.length===0)return new Uint8Array(0);function Mr(Sr,jr,tr,gn){var sr,un,an,Pr,In,ci,Ui,ki,Ri,Ki,Hr,Cn,kr,mr,Cr,Nt,wr,Gr,Kr,qr,oi,Gn=Math.ceil(($t.width-Sr)/tr),Ti=Math.ceil(($t.height-jr)/gn),hn=$t.width==Gn&&$t.height==Ti;for(mr=qe*Gn,Cn=hn?yt:new Uint8Array(mr*Ti),ci=We.length,kr=0,un=0;kr<Ti&&ot<ci;){switch(We[ot++]){case 0:for(Pr=wr=0;wr<mr;Pr=wr+=1)Cn[un++]=We[ot++];break;case 1:for(Pr=Gr=0;Gr<mr;Pr=Gr+=1)sr=We[ot++],In=Pr<qe?0:Cn[un-qe],Cn[un++]=(sr+In)%256;break;case 2:for(Pr=Kr=0;Kr<mr;Pr=Kr+=1)sr=We[ot++],an=(Pr-Pr%qe)/qe,Cr=kr&&Cn[(kr-1)*mr+an*qe+Pr%qe],Cn[un++]=(Cr+sr)%256;break;case 3:for(Pr=qr=0;qr<mr;Pr=qr+=1)sr=We[ot++],an=(Pr-Pr%qe)/qe,In=Pr<qe?0:Cn[un-qe],Cr=kr&&Cn[(kr-1)*mr+an*qe+Pr%qe],Cn[un++]=(sr+Math.floor((In+Cr)/2))%256;break;case 4:for(Pr=oi=0;oi<mr;Pr=oi+=1)sr=We[ot++],an=(Pr-Pr%qe)/qe,In=Pr<qe?0:Cn[un-qe],kr===0?Cr=Nt=0:(Cr=Cn[(kr-1)*mr+an*qe+Pr%qe],Nt=an&&Cn[(kr-1)*mr+(an-1)*qe+Pr%qe]),Ui=In+Cr-Nt,ki=Math.abs(Ui-In),Ki=Math.abs(Ui-Cr),Hr=Math.abs(Ui-Nt),Ri=ki<=Ki&&ki<=Hr?In:Ki<=Hr?Cr:Nt,Cn[un++]=(sr+Ri)%256;break;default:throw new Error("Invalid filter algorithm: "+We[ot-1])}if(!hn){var _r=((jr+kr*gn)*$t.width+Sr)*qe,En=kr*mr;for(Pr=0;Pr<Gn;Pr+=1){for(var Fn=0;Fn<qe;Fn+=1)yt[_r++]=Cn[En++];_r+=(tr-1)*qe}}kr++}}return We=Object(A.a)(We),$t.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),yt},Fe.prototype.decodePalette=function(){var We,qe,yt,ot,$t,Mr,Sr,jr,tr;for(yt=this.palette,Mr=this.transparency.indexed||[],$t=new Uint8Array((Mr.length||0)+yt.length),ot=0,We=0,qe=Sr=0,jr=yt.length;Sr<jr;qe=Sr+=3)$t[ot++]=yt[qe],$t[ot++]=yt[qe+1],$t[ot++]=yt[qe+2],$t[ot++]=(tr=Mr[We++])!=null?tr:255;return $t},Fe.prototype.copyToImageData=function(We,qe){var yt,ot,$t,Mr,Sr,jr,tr,gn,sr,un,an;if(ot=this.colors,sr=null,yt=this.hasAlphaChannel,this.palette.length&&(sr=(an=this._decodedPalette)!=null?an:this._decodedPalette=this.decodePalette(),ot=4,yt=!0),gn=($t=We.data||We).length,Sr=sr||qe,Mr=jr=0,ot===1)for(;Mr<gn;)tr=sr?4*qe[Mr/4]:jr,un=Sr[tr++],$t[Mr++]=un,$t[Mr++]=un,$t[Mr++]=un,$t[Mr++]=yt?Sr[tr++]:255,jr=tr;else for(;Mr<gn;)tr=sr?4*qe[Mr/4]:jr,$t[Mr++]=Sr[tr++],$t[Mr++]=Sr[tr++],$t[Mr++]=Sr[tr++],$t[Mr++]=yt?Sr[tr++]:255,jr=tr},Fe.prototype.decode=function(){var We;return We=new Uint8Array(this.width*this.height*4),this.copyToImageData(We,this.decodePixels()),We};var Ye=function(){if(Object.prototype.toString.call(b)==="[object Window]"){try{we=b.document.createElement("canvas"),Ne=we.getContext("2d")}catch(qe){return!1}return!0}return!1};return Ye(),Ze=function(qe){var yt;if(Ye()===!0)return Ne.width=qe.width,Ne.height=qe.height,Ne.clearRect(0,0,qe.width,qe.height),Ne.putImageData(qe,0,0),(yt=new Image).src=we.toDataURL(),yt;throw new Error("This method requires a Browser with Canvas-capability.")},Fe.prototype.decodeFrames=function(We){var qe,yt,ot,$t,Mr,Sr,jr,tr;if(this.animation){for(tr=[],yt=Mr=0,Sr=(jr=this.animation.frames).length;Mr<Sr;yt=++Mr)qe=jr[yt],ot=We.createImageData(qe.width,qe.height),$t=this.decodePixels(new Uint8Array(qe.data)),this.copyToImageData(ot,$t),qe.imageData=ot,tr.push(qe.image=Ze(ot));return tr}},Fe.prototype.renderFrame=function(We,qe){var yt,ot,$t;return yt=(ot=this.animation.frames)[qe],$t=ot[qe-1],qe===0&&We.clearRect(0,0,this.width,this.height),($t!=null?$t.disposeOp:void 0)===1?We.clearRect($t.xOffset,$t.yOffset,$t.width,$t.height):($t!=null?$t.disposeOp:void 0)===2&&We.putImageData($t.imageData,$t.xOffset,$t.yOffset),yt.blendOp===0&&We.clearRect(yt.xOffset,yt.yOffset,yt.width,yt.height),We.drawImage(yt.image,yt.xOffset,yt.yOffset)},Fe.prototype.animate=function(We){var qe,yt,ot,$t,Mr,Sr,jr=this;return yt=0,Sr=this.animation,$t=Sr.numFrames,ot=Sr.frames,Mr=Sr.numPlays,(qe=function(){var gn,sr;if(gn=yt++%$t,sr=ot[gn],jr.renderFrame(We,gn),$t>1&&yt/$t<Mr)return jr.animation._timeout=setTimeout(qe,sr.delay)})()},Fe.prototype.stopAnimation=function(){var We;return clearTimeout((We=this.animation)!=null?We._timeout:void 0)},Fe.prototype.render=function(We){var qe,yt;return We._png&&We._png.stopAnimation(),We._png=this,We.width=this.width,We.height=this.height,qe=We.getContext("2d"),this.animation?(this.decodeFrames(qe),this.animate(qe)):(yt=qe.createImageData(this.width,this.height),this.copyToImageData(yt,this.decodePixels()),qe.putImageData(yt,0,0))},Fe}();/**
* @license
*
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
* ====================================================================
*//**
* @license
* (c) Dean McNamee <dean@gmail.com>, 2013.
*
* https://github.com/deanm/omggif
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
* including animation and compression. It does not rely on any specific
* underlying system, so should run in the browser, Node, or Plask.
*/function wt(Ze){var we=0;if(Ze[we++]!==71||Ze[we++]!==73||Ze[we++]!==70||Ze[we++]!==56||(Ze[we++]+1&253)!=56||Ze[we++]!==97)throw new Error("Invalid GIF 87a/89a header.");var Ne=Ze[we++]|Ze[we++]<<8,Fe=Ze[we++]|Ze[we++]<<8,Ye=Ze[we++],We=Ye>>7,qe=1<<(7&Ye)+1;Ze[we++],Ze[we++];var yt=null,ot=null;We&&(yt=we,ot=qe,we+=3*qe);var $t=!0,Mr=[],Sr=0,jr=null,tr=0,gn=null;for(this.width=Ne,this.height=Fe;$t&&we<Ze.length;)switch(Ze[we++]){case 33:switch(Ze[we++]){case 255:if(Ze[we]!==11||Ze[we+1]==78&&Ze[we+2]==69&&Ze[we+3]==84&&Ze[we+4]==83&&Ze[we+5]==67&&Ze[we+6]==65&&Ze[we+7]==80&&Ze[we+8]==69&&Ze[we+9]==50&&Ze[we+10]==46&&Ze[we+11]==48&&Ze[we+12]==3&&Ze[we+13]==1&&Ze[we+16]==0)we+=14,gn=Ze[we++]|Ze[we++]<<8,we++;else for(we+=12;;){if(!((kr=Ze[we++])>=0))throw Error("Invalid block size");if(kr===0)break;we+=kr}break;case 249:if(Ze[we++]!==4||Ze[we+4]!==0)throw new Error("Invalid graphics extension block.");var sr=Ze[we++];Sr=Ze[we++]|Ze[we++]<<8,jr=Ze[we++],(1&sr)==0&&(jr=null),tr=sr>>2&7,we++;break;case 254:for(;;){if(!((kr=Ze[we++])>=0))throw Error("Invalid block size");if(kr===0)break;we+=kr}break;default:throw new Error("Unknown graphic control label: 0x"+Ze[we-1].toString(16))}break;case 44:var un=Ze[we++]|Ze[we++]<<8,an=Ze[we++]|Ze[we++]<<8,Pr=Ze[we++]|Ze[we++]<<8,In=Ze[we++]|Ze[we++]<<8,ci=Ze[we++],Ui=ci>>6&1,ki=1<<(7&ci)+1,Ri=yt,Ki=ot,Hr=!1;ci>>7&&(Hr=!0,Ri=we,Ki=ki,we+=3*ki);var Cn=we;for(we++;;){var kr;if(!((kr=Ze[we++])>=0))throw Error("Invalid block size");if(kr===0)break;we+=kr}Mr.push({x:un,y:an,width:Pr,height:In,has_local_palette:Hr,palette_offset:Ri,palette_size:Ki,data_offset:Cn,data_length:we-Cn,transparent_index:jr,interlaced:!!Ui,delay:Sr,disposal:tr});break;case 59:$t=!1;break;default:throw new Error("Unknown gif block: 0x"+Ze[we-1].toString(16))}this.numFrames=function(){return Mr.length},this.loopCount=function(){return gn},this.frameInfo=function(mr){if(mr<0||mr>=Mr.length)throw new Error("Frame index out of range.");return Mr[mr]},this.decodeAndBlitFrameBGRA=function(mr,Cr){var Nt=this.frameInfo(mr),wr=Nt.width*Nt.height,Gr=new Uint8Array(wr);Rt(Ze,Nt.data_offset,Gr,wr);var Kr=Nt.palette_offset,qr=Nt.transparent_index;qr===null&&(qr=256);var oi=Nt.width,Gn=Ne-oi,Ti=oi,hn=4*(Nt.y*Ne+Nt.x),_r=4*((Nt.y+Nt.height)*Ne+Nt.x),En=hn,Fn=4*Gn;Nt.interlaced===!0&&(Fn+=4*Ne*7);for(var Vn=8,qn=0,Oi=Gr.length;qn<Oi;++qn){var Ni=Gr[qn];if(Ti===0&&(Ti=oi,(En+=Fn)>=_r&&(Fn=4*Gn+4*Ne*(Vn-1),En=hn+(oi+Gn)*(Vn<<1),Vn>>=1)),Ni===qr)En+=4;else{var Mi=Ze[Kr+3*Ni],Ji=Ze[Kr+3*Ni+1],ma=Ze[Kr+3*Ni+2];Cr[En++]=ma,Cr[En++]=Ji,Cr[En++]=Mi,Cr[En++]=255}--Ti}},this.decodeAndBlitFrameRGBA=function(mr,Cr){var Nt=this.frameInfo(mr),wr=Nt.width*Nt.height,Gr=new Uint8Array(wr);Rt(Ze,Nt.data_offset,Gr,wr);var Kr=Nt.palette_offset,qr=Nt.transparent_index;qr===null&&(qr=256);var oi=Nt.width,Gn=Ne-oi,Ti=oi,hn=4*(Nt.y*Ne+Nt.x),_r=4*((Nt.y+Nt.height)*Ne+Nt.x),En=hn,Fn=4*Gn;Nt.interlaced===!0&&(Fn+=4*Ne*7);for(var Vn=8,qn=0,Oi=Gr.length;qn<Oi;++qn){var Ni=Gr[qn];if(Ti===0&&(Ti=oi,(En+=Fn)>=_r&&(Fn=4*Gn+4*Ne*(Vn-1),En=hn+(oi+Gn)*(Vn<<1),Vn>>=1)),Ni===qr)En+=4;else{var Mi=Ze[Kr+3*Ni],Ji=Ze[Kr+3*Ni+1],ma=Ze[Kr+3*Ni+2];Cr[En++]=Mi,Cr[En++]=Ji,Cr[En++]=ma,Cr[En++]=255}--Ti}}}function Rt(Ze,we,Ne,Fe){for(var Ye=Ze[we++],We=1<<Ye,qe=We+1,yt=qe+1,ot=Ye+1,$t=(1<<ot)-1,Mr=0,Sr=0,jr=0,tr=Ze[we++],gn=new Int32Array(4096),sr=null;;){for(;Mr<16&&tr!==0;)Sr|=Ze[we++]<<Mr,Mr+=8,tr===1?tr=Ze[we++]:--tr;if(Mr<ot)break;var un=Sr&$t;if(Sr>>=ot,Mr-=ot,un!==We){if(un===qe)break;for(var an=un<yt?un:sr,Pr=0,In=an;In>We;)In=gn[In]>>8,++Pr;var ci=In;if(jr+Pr+(an!==un?1:0)>Fe)return void f.log("Warning, gif stream longer than expected.");Ne[jr++]=ci;var Ui=jr+=Pr;for(an!==un&&(Ne[jr++]=ci),In=an;Pr--;)In=gn[In],Ne[--Ui]=255&In,In>>=8;sr!==null&&yt<4096&&(gn[yt++]=sr<<8|ci,yt>=$t+1&&ot<12&&(++ot,$t=$t<<1|1)),sr=un}else yt=qe+1,$t=(1<<(ot=Ye+1))-1,sr=null}return jr!==Fe&&f.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 xt(Ze){var we,Ne,Fe,Ye,We,qe=Math.floor,yt=new Array(64),ot=new Array(64),$t=new Array(64),Mr=new Array(64),Sr=new Array(65535),jr=new Array(65535),tr=new Array(64),gn=new Array(64),sr=[],un=0,an=7,Pr=new Array(64),In=new Array(64),ci=new Array(64),Ui=new Array(256),ki=new Array(2048),Ri=[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],Ki=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Hr=[0,1,2,3,4,5,6,7,8,9,10,11],Cn=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],kr=[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],mr=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Cr=[0,1,2,3,4,5,6,7,8,9,10,11],Nt=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],wr=[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 Gr(hn,_r){for(var En=0,Fn=0,Vn=new Array,qn=1;qn<=16;qn++){for(var Oi=1;Oi<=hn[qn];Oi++)Vn[_r[Fn]]=[],Vn[_r[Fn]][0]=En,Vn[_r[Fn]][1]=qn,Fn++,En++;En*=2}return Vn}function Kr(hn){for(var _r=hn[0],En=hn[1]-1;En>=0;)_r&1<<En&&(un|=1<<an),En--,--an<0&&(un==255?(qr(255),qr(0)):qr(un),an=7,un=0)}function qr(hn){sr.push(hn)}function oi(hn){qr(hn>>8&255),qr(255&hn)}function Gn(hn,_r,En,Fn,Vn){for(var qn,Oi=Vn[0],Ni=Vn[240],Mi=function(Yi,ca){var Hi,Ia,Da,Qa,Wo,po,Mo,Fo,yo,Oo,sa=0;for(yo=0;yo<8;++yo){Hi=Yi[sa],Ia=Yi[sa+1],Da=Yi[sa+2],Qa=Yi[sa+3],Wo=Yi[sa+4],po=Yi[sa+5],Mo=Yi[sa+6];var hs=Hi+(Fo=Yi[sa+7]),Jo=Hi-Fo,wo=Ia+Mo,_o=Ia-Mo,Bo=Da+po,Ds=Da-po,Dr=Qa+Wo,rn=Qa-Wo,Tn=hs+Dr,en=hs-Dr,ur=wo+Bo,sn=wo-Bo;Yi[sa]=Tn+ur,Yi[sa+4]=Tn-ur;var Bn=.707106781*(sn+en);Yi[sa+2]=en+Bn,Yi[sa+6]=en-Bn;var Hn=.382683433*((Tn=rn+Ds)-(sn=_o+Jo)),Li=.5411961*Tn+Hn,Ci=1.306562965*sn+Hn,Jn=.707106781*(ur=Ds+_o),mi=Jo+Jn,yi=Jo-Jn;Yi[sa+5]=yi+Li,Yi[sa+3]=yi-Li,Yi[sa+1]=mi+Ci,Yi[sa+7]=mi-Ci,sa+=8}for(sa=0,yo=0;yo<8;++yo){Hi=Yi[sa],Ia=Yi[sa+8],Da=Yi[sa+16],Qa=Yi[sa+24],Wo=Yi[sa+32],po=Yi[sa+40],Mo=Yi[sa+48];var da=Hi+(Fo=Yi[sa+56]),ha=Hi-Fo,Pa=Ia+Mo,Ra=Ia-Mo,so=Da+po,La=Da-po,lo=Qa+Wo,So=Qa-Wo,Qt=da+lo,Vr=da-lo,cn=Pa+so,vn=Pa-so;Yi[sa]=Qt+cn,Yi[sa+32]=Qt-cn;var ni=.707106781*(vn+Vr);Yi[sa+16]=Vr+ni,Yi[sa+48]=Vr-ni;var li=.382683433*((Qt=So+La)-(vn=Ra+ha)),fi=.5411961*Qt+li,di=1.306562965*vn+li,Jt=.707106781*(cn=La+Ra),Ot=ha+Jt,yr=ha-Jt;Yi[sa+40]=yr+fi,Yi[sa+24]=yr-fi,Yi[sa+8]=Ot+di,Yi[sa+56]=Ot-di,sa++}for(yo=0;yo<64;++yo)Oo=Yi[yo]*ca[yo],tr[yo]=Oo>0?Oo+.5|0:Oo-.5|0;return tr}(hn,_r),Ji=0;Ji<64;++Ji)gn[Ri[Ji]]=Mi[Ji];var ma=gn[0]-En;En=gn[0],ma==0?Kr(Fn[0]):(Kr(Fn[jr[qn=32767+ma]]),Kr(Sr[qn]));for(var la=63;la>0&&gn[la]==0;)la--;if(la==0)return Kr(Oi),En;for(var qa,bi=1;bi<=la;){for(var xn=bi;gn[bi]==0&&bi<=la;)++bi;var zi=bi-xn;if(zi>=16){qa=zi>>4;for(var oa=1;oa<=qa;++oa)Kr(Ni);zi&=15}qn=32767+gn[bi],Kr(Vn[(zi<<4)+jr[qn]]),Kr(Sr[qn]),bi++}return la!=63&&Kr(Oi),En}function Ti(hn){(hn=Math.min(Math.max(hn,1),100),We!=hn)&&(!function(_r){for(var En=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Fn=0;Fn<64;Fn++){var Vn=qe((En[Fn]*_r+50)/100);Vn=Math.min(Math.max(Vn,1),255),yt[Ri[Fn]]=Vn}for(var qn=[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],Oi=0;Oi<64;Oi++){var Ni=qe((qn[Oi]*_r+50)/100);Ni=Math.min(Math.max(Ni,1),255),ot[Ri[Oi]]=Ni}for(var Mi=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ji=0,ma=0;ma<8;ma++)for(var la=0;la<8;la++)$t[Ji]=1/(yt[Ri[Ji]]*Mi[ma]*Mi[la]*8),Mr[Ji]=1/(ot[Ri[Ji]]*Mi[ma]*Mi[la]*8),Ji++}(hn<50?Math.floor(5e3/hn):Math.floor(200-2*hn)),We=hn)}this.encode=function(hn,_r){_r&&Ti(_r),sr=new Array,un=0,an=7,oi(65496),oi(65504),oi(16),qr(74),qr(70),qr(73),qr(70),qr(0),qr(1),qr(1),qr(0),oi(1),oi(1),qr(0),qr(0),function(){oi(65499),oi(132),qr(0);for(var Ia=0;Ia<64;Ia++)qr(yt[Ia]);qr(1);for(var Da=0;Da<64;Da++)qr(ot[Da])}(),function(Ia,Da){oi(65472),oi(17),qr(8),oi(Da),oi(Ia),qr(3),qr(1),qr(17),qr(0),qr(2),qr(17),qr(1),qr(3),qr(17),qr(1)}(hn.width,hn.height),function(){oi(65476),oi(418),qr(0);for(var Ia=0;Ia<16;Ia++)qr(Ki[Ia+1]);for(var Da=0;Da<=11;Da++)qr(Hr[Da]);qr(16);for(var Qa=0;Qa<16;Qa++)qr(Cn[Qa+1]);for(var Wo=0;Wo<=161;Wo++)qr(kr[Wo]);qr(1);for(var po=0;po<16;po++)qr(mr[po+1]);for(var Mo=0;Mo<=11;Mo++)qr(Cr[Mo]);qr(17);for(var Fo=0;Fo<16;Fo++)qr(Nt[Fo+1]);for(var yo=0;yo<=161;yo++)qr(wr[yo])}(),oi(65498),oi(12),qr(3),qr(1),qr(0),qr(2),qr(17),qr(3),qr(17),qr(0),qr(63),qr(0);var En=0,Fn=0,Vn=0;un=0,an=7,this.encode.displayName="_encode_";for(var qn,Oi,Ni,Mi,Ji,ma,la,qa,bi,xn=hn.data,zi=hn.width,oa=hn.height,Yi=4*zi,ca=0;ca<oa;){for(qn=0;qn<Yi;){for(Ji=Yi*ca+qn,la=-1,qa=0,bi=0;bi<64;bi++)ma=Ji+(qa=bi>>3)*Yi+(la=4*(7&bi)),ca+qa>=oa&&(ma-=Yi*(ca+1+qa-oa)),qn+la>=Yi&&(ma-=qn+la-Yi+4),Oi=xn[ma++],Ni=xn[ma++],Mi=xn[ma++],Pr[bi]=(ki[Oi]+ki[Ni+256>>0]+ki[Mi+512>>0]>>16)-128,In[bi]=(ki[Oi+768>>0]+ki[Ni+1024>>0]+ki[Mi+1280>>0]>>16)-128,ci[bi]=(ki[Oi+1280>>0]+ki[Ni+1536>>0]+ki[Mi+1792>>0]>>16)-128;En=Gn(Pr,$t,En,we,Fe),Fn=Gn(In,Mr,Fn,Ne,Ye),Vn=Gn(ci,Mr,Vn,Ne,Ye),qn+=32}ca+=8}if(an>=0){var Hi=[];Hi[1]=an+1,Hi[0]=(1<<an+1)-1,Kr(Hi)}return oi(65497),new Uint8Array(sr)},Ze=Ze||50,function(){for(var hn=String.fromCharCode,_r=0;_r<256;_r++)Ui[_r]=hn(_r)}(),we=Gr(Ki,Hr),Ne=Gr(mr,Cr),Fe=Gr(Cn,kr),Ye=Gr(Nt,wr),function(){for(var hn=1,_r=2,En=1;En<=15;En++){for(var Fn=hn;Fn<_r;Fn++)jr[32767+Fn]=En,Sr[32767+Fn]=[],Sr[32767+Fn][1]=En,Sr[32767+Fn][0]=Fn;for(var Vn=-(_r-1);Vn<=-hn;Vn++)jr[32767+Vn]=En,Sr[32767+Vn]=[],Sr[32767+Vn][1]=En,Sr[32767+Vn][0]=_r-1+Vn;hn<<=1,_r<<=1}}(),function(){for(var hn=0;hn<256;hn++)ki[hn]=19595*hn,ki[hn+256>>0]=38470*hn,ki[hn+512>>0]=7471*hn+32768,ki[hn+768>>0]=-11059*hn,ki[hn+1024>>0]=-21709*hn,ki[hn+1280>>0]=32768*hn+8421375,ki[hn+1536>>0]=-27439*hn,ki[hn+1792>>0]=-5329*hn}(),Ti(Ze)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function Lt(Ze,we){if(this.pos=0,this.buffer=Ze,this.datav=new DataView(Ze.buffer),this.is_with_alpha=!!we,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 gr(Ze){function we(Ki){if(!Ki)throw Error("assert :P")}function Ne(Ki,Hr,Cn){for(var kr=0;4>kr;kr++)if(Ki[Hr+kr]!=Cn.charCodeAt(kr))return!0;return!1}function Fe(Ki,Hr,Cn,kr,mr){for(var Cr=0;Cr<mr;Cr++)Ki[Hr+Cr]=Cn[kr+Cr]}function Ye(Ki,Hr,Cn,kr){for(var mr=0;mr<kr;mr++)Ki[Hr+mr]=Cn}function We(Ki){return new Int32Array(Ki)}function qe(Ki,Hr){for(var Cn=[],kr=0;kr<Ki;kr++)Cn.push(new Hr);return Cn}function yt(Ki,Hr){var Cn=[];return function kr(mr,Cr,Nt){for(var wr=Nt[Cr],Gr=0;Gr<wr&&(mr.push(Nt.length>Cr+1?[]:new Hr),!(Nt.length<Cr+1));Gr++)kr(mr[Gr],Cr+1,Nt)}(Cn,0,Ki),Cn}var ot=function(){var Hr=this;function Cn(ge,je){for(var mt=1<<je-1>>>0;ge&mt;)mt>>>=1;return mt?(ge&mt-1)+mt:ge}function kr(ge,je,mt,nr,Er){we(!(nr%mt));do ge[je+(nr-=mt)]=Er;while(0<nr)}function mr(ge,je,mt,nr,Er){if(we(2328>=Er),512>=Er)var Yr=We(512);else if((Yr=We(Er))==null)return 0;return function(Le,ee,Ae,ze,lt,Dt){var Vt,Zt,Ir=ee,$r=1<<Ae,Tr=We(16),xr=We(16);for(we(lt!=0),we(ze!=null),we(Le!=null),we(0<Ae),Zt=0;Zt<lt;++Zt){if(15<ze[Zt])return 0;++Tr[ze[Zt]]}if(Tr[0]==lt)return 0;for(xr[1]=0,Vt=1;15>Vt;++Vt){if(Tr[Vt]>1<<Vt)return 0;xr[Vt+1]=xr[Vt]+Tr[Vt]}for(Zt=0;Zt<lt;++Zt)Vt=ze[Zt],0<ze[Zt]&&(Dt[xr[Vt]++]=Zt);if(xr[15]==1)return(ze=new Cr).g=0,ze.value=Dt[0],kr(Le,Ir,1,$r,ze),$r;var zr,nn=-1,On=$r-1,gi=0,Ai=1,Qi=1,Bi=1<<Ae;for(Zt=0,Vt=1,lt=2;Vt<=Ae;++Vt,lt<<=1){if(Ai+=Qi<<=1,0>(Qi-=Tr[Vt]))return 0;for(;0<Tr[Vt];--Tr[Vt])(ze=new Cr).g=Vt,ze.value=Dt[Zt++],kr(Le,Ir+gi,lt,Bi,ze),gi=Cn(gi,Vt)}for(Vt=Ae+1,lt=2;15>=Vt;++Vt,lt<<=1){if(Ai+=Qi<<=1,0>(Qi-=Tr[Vt]))return 0;for(;0<Tr[Vt];--Tr[Vt]){if(ze=new Cr,(gi&On)!=nn){for(Ir+=Bi,zr=1<<(nn=Vt)-Ae;15>nn&&!(0>=(zr-=Tr[nn]));)++nn,zr<<=1;$r+=Bi=1<<(zr=nn-Ae),Le[ee+(nn=gi&On)].g=zr+Ae,Le[ee+nn].value=Ir-ee-nn}ze.g=Vt-Ae,ze.value=Dt[Zt++],kr(Le,Ir+(gi>>Ae),lt,Bi,ze),gi=Cn(gi,Vt)}}return Ai!=2*xr[15]-1?0:$r}(ge,je,mt,nr,Er,Yr)}function Cr(){this.value=this.g=0}function Nt(){this.value=this.g=0}function wr(){this.G=qe(5,Cr),this.H=We(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=qe(ka,Nt)}function Gr(ge,je,mt,nr){we(ge!=null),we(je!=null),we(2147483648>nr),ge.Ca=254,ge.I=0,ge.b=-8,ge.Ka=0,ge.oa=je,ge.pa=mt,ge.Jd=je,ge.Yc=mt+nr,ge.Zc=4<=nr?mt+nr-4+1:mt,Oi(ge)}function Kr(ge,je){for(var mt=0;0<je--;)mt|=Mi(ge,128)<<je;return mt}function qr(ge,je){var mt=Kr(ge,je);return Ni(ge)?-mt:mt}function oi(ge,je,mt,nr){var Er,Yr=0;for(we(ge!=null),we(je!=null),we(4294967288>nr),ge.Sb=nr,ge.Ra=0,ge.u=0,ge.h=0,4<nr&&(nr=4),Er=0;Er<nr;++Er)Yr+=je[mt+Er]<<8*Er;ge.Ra=Yr,ge.bb=nr,ge.oa=je,ge.pa=mt}function Gn(ge){for(;8<=ge.u&&ge.bb<ge.Sb;)ge.Ra>>>=8,ge.Ra+=ge.oa[ge.pa+ge.bb]<<qo-8>>>0,++ge.bb,ge.u-=8;Fn(ge)&&(ge.h=1,ge.u=0)}function Ti(ge,je){if(we(0<=je),!ge.h&&je<=Es){var mt=En(ge)&os[je];return ge.u+=je,Gn(ge),mt}return ge.h=1,ge.u=0}function hn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function _r(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function En(ge){return ge.Ra>>>(ge.u&qo-1)>>>0}function Fn(ge){return we(ge.bb<=ge.Sb),ge.h||ge.bb==ge.Sb&&ge.u>qo}function Vn(ge,je){ge.u=je,ge.h=Fn(ge)}function qn(ge){ge.u>=pa&&(we(ge.u>=pa),Gn(ge))}function Oi(ge){we(ge!=null&&ge.oa!=null),ge.pa<ge.Zc?(ge.I=(ge.oa[ge.pa++]|ge.I<<8)>>>0,ge.b+=8):(we(ge!=null&&ge.oa!=null),ge.pa<ge.Yc?(ge.b+=8,ge.I=ge.oa[ge.pa++]|ge.I<<8):ge.Ka?ge.b=0:(ge.I<<=8,ge.b+=8,ge.Ka=1))}function Ni(ge){return Kr(ge,1)}function Mi(ge,je){var mt=ge.Ca;0>ge.b&&Oi(ge);var nr=ge.b,Er=mt*je>>>8,Yr=(ge.I>>>nr>Er)+0;for(Yr?(mt-=Er,ge.I-=Er+1<<nr>>>0):mt=Er+1,nr=mt,Er=0;256<=nr;)Er+=8,nr>>=8;return nr=7^Er+ls[nr],ge.b-=nr,ge.Ca=(mt<<nr)-1,Yr}function Ji(ge,je,mt){ge[je+0]=mt>>24&255,ge[je+1]=mt>>16&255,ge[je+2]=mt>>8&255,ge[je+3]=mt>>0&255}function ma(ge,je){return ge[je+0]<<0|ge[je+1]<<8}function la(ge,je){return ma(ge,je)|ge[je+2]<<16}function qa(ge,je){return ma(ge,je)|ma(ge,je+2)<<16}function bi(ge,je){var mt=1<<je;return we(ge!=null),we(0<je),ge.X=We(mt),ge.X==null?0:(ge.Mb=32-je,ge.Xa=je,1)}function xn(ge,je){we(ge!=null),we(je!=null),we(ge.Xa==je.Xa),Fe(je.X,0,ge.X,0,1<<je.Xa)}function zi(){this.X=[],this.Xa=this.Mb=0}function oa(ge,je,mt,nr){we(mt!=null),we(nr!=null);var Er=mt[0],Yr=nr[0];return Er==0&&(Er=(ge*Yr+je/2)/je),Yr==0&&(Yr=(je*Er+ge/2)/ge),0>=Er||0>=Yr?0:(mt[0]=Er,nr[0]=Yr,1)}function Yi(ge,je){return ge+(1<<je)-1>>>je}function ca(ge,je){return((4278255360&ge)+(4278255360&je)>>>0&4278255360)+((16711935&ge)+(16711935&je)>>>0&16711935)>>>0}function Hi(ge,je){Hr[je]=function(mt,nr,Er,Yr,Le,ee,Ae){var ze;for(ze=0;ze<Le;++ze){var lt=Hr[ge](ee[Ae+ze-1],Er,Yr+ze);ee[Ae+ze]=ca(mt[nr+ze],lt)}}}function Ia(){this.ud=this.hd=this.jd=0}function Da(ge,je){return((4278124286&(ge^je))>>>1)+(ge&je)>>>0}function Qa(ge){return 0<=ge&&256>ge?ge:0>ge?0:255<ge?255:void 0}function Wo(ge,je){return Qa(ge+(ge-je+.5>>1))}function po(ge,je,mt){return Math.abs(je-mt)-Math.abs(ge-mt)}function Mo(ge,je,mt,nr,Er,Yr,Le){for(nr=Yr[Le-1],mt=0;mt<Er;++mt)Yr[Le+mt]=nr=ca(ge[je+mt],nr)}function Fo(ge,je,mt,nr,Er){var Yr;for(Yr=0;Yr<mt;++Yr){var Le=ge[je+Yr],ee=Le>>8&255,Ae=16711935&(Ae=(Ae=16711935&Le)+((ee<<16)+ee));nr[Er+Yr]=(4278255360&Le)+Ae>>>0}}function yo(ge,je){je.jd=ge>>0&255,je.hd=ge>>8&255,je.ud=ge>>16&255}function Oo(ge,je,mt,nr,Er,Yr){var Le;for(Le=0;Le<nr;++Le){var ee=je[mt+Le],Ae=ee>>>8,ze=ee,lt=255&(lt=(lt=ee>>>16)+((ge.jd<<24>>24)*(Ae<<24>>24)>>>5));ze=255&(ze=(ze=ze+((ge.hd<<24>>24)*(Ae<<24>>24)>>>5))+((ge.ud<<24>>24)*(lt<<24>>24)>>>5)),Er[Yr+Le]=(4278255360&ee)+(lt<<16)+ze}}function sa(ge,je,mt,nr,Er){Hr[je]=function(Yr,Le,ee,Ae,ze,lt,Dt,Vt,Zt){for(Ae=Dt;Ae<Vt;++Ae)for(Dt=0;Dt<Zt;++Dt)ze[lt++]=Er(ee[nr(Yr[Le++])])},Hr[ge]=function(Yr,Le,ee,Ae,ze,lt,Dt){var Vt=8>>Yr.b,Zt=Yr.Ea,Ir=Yr.K[0],$r=Yr.w;if(8>Vt)for(Yr=(1<<Yr.b)-1,$r=(1<<Vt)-1;Le<ee;++Le){var Tr,xr=0;for(Tr=0;Tr<Zt;++Tr)Tr&Yr||(xr=nr(Ae[ze++])),lt[Dt++]=Er(Ir[xr&$r]),xr>>=Vt}else Hr["VP8LMapColor"+mt](Ae,ze,Ir,$r,lt,Dt,Le,ee,Zt)}}function hs(ge,je,mt,nr,Er){for(mt=je+mt;je<mt;){var Yr=ge[je++];nr[Er++]=Yr>>16&255,nr[Er++]=Yr>>8&255,nr[Er++]=Yr>>0&255}}function Jo(ge,je,mt,nr,Er){for(mt=je+mt;je<mt;){var Yr=ge[je++];nr[Er++]=Yr>>16&255,nr[Er++]=Yr>>8&255,nr[Er++]=Yr>>0&255,nr[Er++]=Yr>>24&255}}function wo(ge,je,mt,nr,Er){for(mt=je+mt;je<mt;){var Yr=(Le=ge[je++])>>16&240|Le>>12&15,Le=Le>>0&240|Le>>28&15;nr[Er++]=Yr,nr[Er++]=Le}}function _o(ge,je,mt,nr,Er){for(mt=je+mt;je<mt;){var Yr=(Le=ge[je++])>>16&248|Le>>13&7,Le=Le>>5&224|Le>>3&31;nr[Er++]=Yr,nr[Er++]=Le}}function Bo(ge,je,mt,nr,Er){for(mt=je+mt;je<mt;){var Yr=ge[je++];nr[Er++]=Yr>>0&255,nr[Er++]=Yr>>8&255,nr[Er++]=Yr>>16&255}}function Ds(ge,je,mt,nr,Er,Yr){if(Yr==0)for(mt=je+mt;je<mt;)Ji(nr,((Yr=ge[je++])[0]>>24|Yr[1]>>8&65280|Yr[2]<<8&16711680|Yr[3]<<24)>>>0),Er+=32;else Fe(nr,Er,ge,je,mt)}function Dr(ge,je){Hr[je][0]=Hr[ge+"0"],Hr[je][1]=Hr[ge+"1"],Hr[je][2]=Hr[ge+"2"],Hr[je][3]=Hr[ge+"3"],Hr[je][4]=Hr[ge+"4"],Hr[je][5]=Hr[ge+"5"],Hr[je][6]=Hr[ge+"6"],Hr[je][7]=Hr[ge+"7"],Hr[je][8]=Hr[ge+"8"],Hr[je][9]=Hr[ge+"9"],Hr[je][10]=Hr[ge+"10"],Hr[je][11]=Hr[ge+"11"],Hr[je][12]=Hr[ge+"12"],Hr[je][13]=Hr[ge+"13"],Hr[je][14]=Hr[ge+"0"],Hr[je][15]=Hr[ge+"0"]}function rn(ge){return ge==su||ge==Cl||ge==Dl||ge==Fl}function Tn(){this.eb=[],this.size=this.A=this.fb=0}function en(){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 ur(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Tn,this.f.kb=new en,this.sd=null}function sn(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Bn(){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 Hn(ge){return alert("todo:WebPSamplerProcessPlane"),ge.T}function Li(ge,je){var mt=ge.T,nr=je.ba.f.RGBA,Er=nr.eb,Yr=nr.fb+ge.ka*nr.A,Le=Ko[je.ba.S],ee=ge.y,Ae=ge.O,ze=ge.f,lt=ge.N,Dt=ge.ea,Vt=ge.W,Zt=je.cc,Ir=je.dc,$r=je.Mc,Tr=je.Nc,xr=ge.ka,zr=ge.ka+ge.T,nn=ge.U,On=nn+1>>1;for(xr==0?Le(ee,Ae,null,null,ze,lt,Dt,Vt,ze,lt,Dt,Vt,Er,Yr,null,null,nn):(Le(je.ec,je.fc,ee,Ae,Zt,Ir,$r,Tr,ze,lt,Dt,Vt,Er,Yr-nr.A,Er,Yr,nn),++mt);xr+2<zr;xr+=2)Zt=ze,Ir=lt,$r=Dt,Tr=Vt,lt+=ge.Rc,Vt+=ge.Rc,Yr+=2*nr.A,Le(ee,(Ae+=2*ge.fa)-ge.fa,ee,Ae,Zt,Ir,$r,Tr,ze,lt,Dt,Vt,Er,Yr-nr.A,Er,Yr,nn);return Ae+=ge.fa,ge.j+zr<ge.o?(Fe(je.ec,je.fc,ee,Ae,nn),Fe(je.cc,je.dc,ze,lt,On),Fe(je.Mc,je.Nc,Dt,Vt,On),mt--):1&zr||Le(ee,Ae,null,null,ze,lt,Dt,Vt,ze,lt,Dt,Vt,Er,Yr+nr.A,null,null,nn),mt}function Ci(ge,je,mt){var nr=ge.F,Er=[ge.J];if(nr!=null){var Yr=ge.U,Le=je.ba.S,ee=Le==el||Le==Dl;je=je.ba.f.RGBA;var Ae=[0],ze=ge.ka;Ae[0]=ge.T,ge.Kb&&(ze==0?--Ae[0]:(--ze,Er[0]-=ge.width),ge.j+ge.ka+ge.T==ge.o&&(Ae[0]=ge.o-ge.j-ze));var lt=je.eb;ze=je.fb+ze*je.A,ge=il(nr,Er[0],ge.width,Yr,Ae,lt,ze+(ee?0:3),je.A),we(mt==Ae),ge&&rn(Le)&&wl(lt,ze,ee,Yr,Ae,je.A)}return 0}function Jn(ge){var je=ge.ma,mt=je.ba.S,nr=11>mt,Er=mt==ou||mt==eu||mt==el||mt==tu||mt==12||rn(mt);if(je.memory=null,je.Ib=null,je.Jb=null,je.Nd=null,!io(je.Oa,ge,Er?11:12))return 0;if(Er&&rn(mt)&&Ue(),ge.da)alert("todo:use_scaling");else{if(nr){if(je.Ib=Hn,ge.Kb){if(mt=ge.U+1>>1,je.memory=We(ge.U+2*mt),je.memory==null)return 0;je.ec=je.memory,je.fc=0,je.cc=je.ec,je.dc=je.fc+ge.U,je.Mc=je.cc,je.Nc=je.dc+mt,je.Ib=Li,Ue()}}else alert("todo:EmitYUV");Er&&(je.Jb=Ci,nr&&pe())}if(nr&&!Fu){for(ge=0;256>ge;++ge)ec[ge]=89858*(ge-128)+cu>>Vs,Xu[ge]=-22014*(ge-128)+cu,Gu[ge]=-45773*(ge-128),Bu[ge]=113618*(ge-128)+cu>>Vs;for(ge=wu;ge<Au;++ge)je=76283*(ge-16)+cu>>Vs,Yu[ge-wu]=ri(je,255),Uu[ge-wu]=ri(je+8>>4,15);Fu=1}return 1}function mi(ge){var je=ge.ma,mt=ge.U,nr=ge.T;return we(!(1&ge.ka)),0>=mt||0>=nr?0:(mt=je.Ib(ge,je),je.Jb!=null&&je.Jb(ge,je,mt),je.Dc+=mt,1)}function yi(ge){ge.ma.memory=null}function da(ge,je,mt,nr){return Ti(ge,8)!=47?0:(je[0]=Ti(ge,14)+1,mt[0]=Ti(ge,14)+1,nr[0]=Ti(ge,1),Ti(ge,3)!=0?0:!ge.h)}function ha(ge,je){if(4>ge)return ge+1;var mt=ge-2>>1;return(2+(1&ge)<<mt)+Ti(je,mt)+1}function Pa(ge,je){return 120<je?je-120:1<=(mt=((mt=Cs[je-1])>>4)*ge+(8-(15&mt)))?mt:1;var mt}function Ra(ge,je,mt){var nr=En(mt),Er=ge[je+=255&nr].g-8;return 0<Er&&(Vn(mt,mt.u+8),nr=En(mt),je+=ge[je].value,je+=nr&(1<<Er)-1),Vn(mt,mt.u+ge[je].g),ge[je].value}function so(ge,je,mt){return mt.g+=ge.g,mt.value+=ge.value<<je>>>0,we(8>=mt.g),ge.g}function La(ge,je,mt){var nr=ge.xc;return we((je=nr==0?0:ge.vc[ge.md*(mt>>nr)+(je>>nr)])<ge.Wb),ge.Ya[je]}function lo(ge,je,mt,nr){var Er=ge.ab,Yr=ge.c*je,Le=ge.C;je=Le+je;var ee=mt,Ae=nr;for(nr=ge.Ta,mt=ge.Ua;0<Er--;){var ze=ge.gc[Er],lt=Le,Dt=je,Vt=ee,Zt=Ae,Ir=(Ae=nr,ee=mt,ze.Ea);switch(we(lt<Dt),we(Dt<=ze.nc),ze.hc){case 2:ms(Vt,Zt,(Dt-lt)*Ir,Ae,ee);break;case 0:var $r=lt,Tr=Dt,xr=Ae,zr=ee,nn=(Bi=ze).Ea;$r==0&&(Os(Vt,Zt,null,null,1,xr,zr),Mo(Vt,Zt+1,0,0,nn-1,xr,zr+1),Zt+=nn,zr+=nn,++$r);for(var On=1<<Bi.b,gi=On-1,Ai=Yi(nn,Bi.b),Qi=Bi.K,Bi=Bi.w+($r>>Bi.b)*Ai;$r<Tr;){var Ma=Qi,ea=Bi,oo=1;for(ys(Vt,Zt,xr,zr-nn,1,xr,zr);oo<nn;){var Ba=(oo&~gi)+On;Ba>nn&&(Ba=nn),(0,fs[Ma[ea++]>>8&15])(Vt,Zt+ +oo,xr,zr+oo-nn,Ba-oo,xr,zr+oo),oo=Ba}Zt+=nn,zr+=nn,++$r&gi||(Bi+=Ai)}Dt!=ze.nc&&Fe(Ae,ee-Ir,Ae,ee+(Dt-lt-1)*Ir,Ir);break;case 1:for(Ir=Vt,Tr=Zt,nn=(Vt=ze.Ea)-(zr=Vt&~(xr=(Zt=1<<ze.b)-1)),$r=Yi(Vt,ze.b),On=ze.K,ze=ze.w+(lt>>ze.b)*$r;lt<Dt;){for(gi=On,Ai=ze,Qi=new Ia,Bi=Tr+zr,Ma=Tr+Vt;Tr<Bi;)yo(gi[Ai++],Qi),_s(Qi,Ir,Tr,Zt,Ae,ee),Tr+=Zt,ee+=Zt;Tr<Ma&&(yo(gi[Ai++],Qi),_s(Qi,Ir,Tr,nn,Ae,ee),Tr+=nn,ee+=nn),++lt&xr||(ze+=$r)}break;case 3:if(Vt==Ae&&Zt==ee&&0<ze.b){for(Tr=Ae,Vt=Ir=ee+(Dt-lt)*Ir-(zr=(Dt-lt)*Yi(ze.Ea,ze.b)),Zt=Ae,xr=ee,$r=[],zr=(nn=zr)-1;0<=zr;--zr)$r[zr]=Zt[xr+zr];for(zr=nn-1;0<=zr;--zr)Tr[Vt+zr]=$r[zr];ws(ze,lt,Dt,Ae,Ir,Ae,ee)}else ws(ze,lt,Dt,Vt,Zt,Ae,ee)}ee=nr,Ae=mt}Ae!=mt&&Fe(nr,mt,ee,Ae,Yr)}function So(ge,je){var mt=ge.V,nr=ge.Ba+ge.c*ge.C,Er=je-ge.C;if(we(je<=ge.l.o),we(16>=Er),0<Er){var Yr=ge.l,Le=ge.Ta,ee=ge.Ua,Ae=Yr.width;if(lo(ge,Er,mt,nr),Er=ee=[ee],we((mt=ge.C)<(nr=je)),we(Yr.v<Yr.va),nr>Yr.o&&(nr=Yr.o),mt<Yr.j){var ze=Yr.j-mt;mt=Yr.j,Er[0]+=ze*Ae}if(mt>=nr?mt=0:(Er[0]+=4*Yr.v,Yr.ka=mt-Yr.j,Yr.U=Yr.va-Yr.v,Yr.T=nr-mt,mt=1),mt){if(ee=ee[0],11>(mt=ge.ca).S){var lt=mt.f.RGBA,Dt=(nr=mt.S,Er=Yr.U,Yr=Yr.T,ze=lt.eb,lt.A),Vt=Yr;for(lt=lt.fb+ge.Ma*lt.A;0<Vt--;){var Zt=Le,Ir=ee,$r=Er,Tr=ze,xr=lt;switch(nr){case Nl:gl(Zt,Ir,$r,Tr,xr);break;case ou:Bs(Zt,Ir,$r,Tr,xr);break;case su:Bs(Zt,Ir,$r,Tr,xr),wl(Tr,xr,0,$r,1,0);break;case ql:al(Zt,Ir,$r,Tr,xr);break;case eu:Ds(Zt,Ir,$r,Tr,xr,1);break;case Cl:Ds(Zt,Ir,$r,Tr,xr,1),wl(Tr,xr,0,$r,1,0);break;case el:Ds(Zt,Ir,$r,Tr,xr,0);break;case Dl:Ds(Zt,Ir,$r,Tr,xr,0),wl(Tr,xr,1,$r,1,0);break;case tu:Us(Zt,Ir,$r,Tr,xr);break;case Fl:Us(Zt,Ir,$r,Tr,xr),Kl(Tr,xr,$r,1,0);break;case ru:Qs(Zt,Ir,$r,Tr,xr);break;default:we(0)}ee+=Ae,lt+=Dt}ge.Ma+=Yr}else alert("todo:EmitRescaledRowsYUVA");we(ge.Ma<=mt.height)}}ge.C=je,we(ge.C<=ge.i)}function Qt(ge){var je;if(0<ge.ua)return 0;for(je=0;je<ge.Wb;++je){var mt=ge.Ya[je].G,nr=ge.Ya[je].H;if(0<mt[1][nr[1]+0].g||0<mt[2][nr[2]+0].g||0<mt[3][nr[3]+0].g)return 0}return 1}function Vr(ge,je,mt,nr,Er,Yr){if(ge.Z!=0){var Le=ge.qd,ee=ge.rd;for(we(Eo[ge.Z]!=null);je<mt;++je)Eo[ge.Z](Le,ee,nr,Er,nr,Er,Yr),Le=nr,ee=Er,Er+=Yr;ge.qd=Le,ge.rd=ee}}function cn(ge,je){var mt=ge.l.ma,nr=mt.Z==0||mt.Z==1?ge.l.j:ge.C;if(nr=ge.C<nr?nr:ge.C,we(je<=ge.l.o),je>nr){var Er=ge.l.width,Yr=mt.ca,Le=mt.tb+Er*nr,ee=ge.V,Ae=ge.Ba+ge.c*nr,ze=ge.gc;we(ge.ab==1),we(ze[0].hc==3),ml(ze[0],nr,je,ee,Ae,Yr,Le),Vr(mt,nr,je,Yr,Le,Er)}ge.C=ge.Ma=je}function vn(ge,je,mt,nr,Er,Yr,Le){var ee=ge.$/nr,Ae=ge.$%nr,ze=ge.m,lt=ge.s,Dt=mt+ge.$,Vt=Dt;Er=mt+nr*Er;var Zt=mt+nr*Yr,Ir=280+lt.ua,$r=ge.Pb?ee:16777216,Tr=0<lt.ua?lt.Wa:null,xr=lt.wc,zr=Dt<Zt?La(lt,Ae,ee):null;we(ge.C<Yr),we(Zt<=Er);var nn=!1;e:for(;;){for(;nn||Dt<Zt;){var On=0;if(ee>=$r){var gi=Dt-mt;we(($r=ge).Pb),$r.wd=$r.m,$r.xd=gi,0<$r.s.ua&&xn($r.s.Wa,$r.s.vb),$r=ee+Js}if(Ae&xr||(zr=La(lt,Ae,ee)),we(zr!=null),zr.Qb&&(je[Dt]=zr.qb,nn=!0),!nn)if(qn(ze),zr.jc){On=ze,gi=je;var Ai=Dt,Qi=zr.pd[En(On)&ka-1];we(zr.jc),256>Qi.g?(Vn(On,On.u+Qi.g),gi[Ai]=Qi.value,On=0):(Vn(On,On.u+Qi.g-256),we(256<=Qi.value),On=Qi.value),On==0&&(nn=!0)}else On=Ra(zr.G[0],zr.H[0],ze);if(ze.h)break;if(nn||256>On){if(!nn)if(zr.nd)je[Dt]=(zr.qb|On<<8)>>>0;else{if(qn(ze),nn=Ra(zr.G[1],zr.H[1],ze),qn(ze),gi=Ra(zr.G[2],zr.H[2],ze),Ai=Ra(zr.G[3],zr.H[3],ze),ze.h)break;je[Dt]=(Ai<<24|nn<<16|On<<8|gi)>>>0}if(nn=!1,++Dt,++Ae>=nr&&(Ae=0,++ee,Le!=null&&ee<=Yr&&!(ee%16)&&Le(ge,ee),Tr!=null))for(;Vt<Dt;)On=je[Vt++],Tr.X[(506832829*On&4294967295)>>>Tr.Mb]=On}else if(280>On){if(On=ha(On-256,ze),gi=Ra(zr.G[4],zr.H[4],ze),qn(ze),gi=Pa(nr,gi=ha(gi,ze)),ze.h)break;if(Dt-mt<gi||Er-Dt<On)break e;for(Ai=0;Ai<On;++Ai)je[Dt+Ai]=je[Dt+Ai-gi];for(Dt+=On,Ae+=On;Ae>=nr;)Ae-=nr,++ee,Le!=null&&ee<=Yr&&!(ee%16)&&Le(ge,ee);if(we(Dt<=Er),Ae&xr&&(zr=La(lt,Ae,ee)),Tr!=null)for(;Vt<Dt;)On=je[Vt++],Tr.X[(506832829*On&4294967295)>>>Tr.Mb]=On}else{if(!(On<Ir))break e;for(nn=On-280,we(Tr!=null);Vt<Dt;)On=je[Vt++],Tr.X[(506832829*On&4294967295)>>>Tr.Mb]=On;On=Dt,we(!(nn>>>(gi=Tr).Xa)),je[On]=gi.X[nn],nn=!0}nn||we(ze.h==Fn(ze))}if(ge.Pb&&ze.h&&Dt<Er)we(ge.m.h),ge.a=5,ge.m=ge.wd,ge.$=ge.xd,0<ge.s.ua&&xn(ge.s.vb,ge.s.Wa);else{if(ze.h)break e;Le!=null&&Le(ge,ee>Yr?Yr:ee),ge.a=0,ge.$=Dt-mt}return 1}return ge.a=3,0}function ni(ge){we(ge!=null),ge.vc=null,ge.yc=null,ge.Ya=null;var je=ge.Wa;je!=null&&(je.X=null),ge.vb=null,we(ge!=null)}function li(){var ge=new $o;return ge==null?null:(ge.a=0,ge.xb=$a,Dr("Predictor","VP8LPredictors"),Dr("Predictor","VP8LPredictors_C"),Dr("PredictorAdd","VP8LPredictorsAdd"),Dr("PredictorAdd","VP8LPredictorsAdd_C"),ms=Fo,_s=Oo,gl=hs,Bs=Jo,Us=wo,Qs=_o,al=Bo,Hr.VP8LMapColor32b=Pl,Hr.VP8LMapColor8b=Ws,ge)}function fi(ge,je,mt,nr,Er){var Yr=1,Le=[ge],ee=[je],Ae=nr.m,ze=nr.s,lt=null,Dt=0;e:for(;;){if(mt)for(;Yr&&Ti(Ae,1);){var Vt=Le,Zt=ee,Ir=nr,$r=1,Tr=Ir.m,xr=Ir.gc[Ir.ab],zr=Ti(Tr,2);if(Ir.Oc&1<<zr)Yr=0;else{switch(Ir.Oc|=1<<zr,xr.hc=zr,xr.Ea=Vt[0],xr.nc=Zt[0],xr.K=[null],++Ir.ab,we(4>=Ir.ab),zr){case 0:case 1:xr.b=Ti(Tr,3)+2,$r=fi(Yi(xr.Ea,xr.b),Yi(xr.nc,xr.b),0,Ir,xr.K),xr.K=xr.K[0];break;case 3:var nn,On=Ti(Tr,8)+1,gi=16<On?0:4<On?1:2<On?2:3;if(Vt[0]=Yi(xr.Ea,gi),xr.b=gi,nn=$r=fi(On,1,0,Ir,xr.K)){var Ai,Qi=On,Bi=xr,Ma=1<<(8>>Bi.b),ea=We(Ma);if(ea==null)nn=0;else{var oo=Bi.K[0],Ba=Bi.w;for(ea[0]=Bi.K[0][0],Ai=1;Ai<1*Qi;++Ai)ea[Ai]=ca(oo[Ba+Ai],ea[Ai-1]);for(;Ai<4*Ma;++Ai)ea[Ai]=0;Bi.K[0]=null,Bi.K[0]=ea,nn=1}}$r=nn;break;case 2:break;default:we(0)}Yr=$r}}if(Le=Le[0],ee=ee[0],Yr&&Ti(Ae,1)&&!(Yr=1<=(Dt=Ti(Ae,4))&&11>=Dt)){nr.a=3;break e}var Ro;if(Ro=Yr)t:{var Zo,P,K,$=nr,re=Le,ue=ee,Me=Dt,gt=mt,zt=$.m,or=$.s,cr=[null],wn=1,Rn=0,ui=ds[Me];r:for(;;){if(gt&&Ti(zt,1)){var hi=Ti(zt,3)+2,Wi=Yi(re,hi),ia=Yi(ue,hi),xa=Wi*ia;if(!fi(Wi,ia,0,$,cr))break r;for(cr=cr[0],or.xc=hi,Zo=0;Zo<xa;++Zo){var ba=cr[Zo]>>8&65535;cr[Zo]=ba,ba>=wn&&(wn=ba+1)}}if(zt.h)break r;for(P=0;5>P;++P){var va=Ho[P];!P&&0<Me&&(va+=1<<Me),Rn<va&&(Rn=va)}var Ua=qe(wn*ui,Cr),eo=wn,ko=qe(eo,wr);if(ko==null)var To=null;else we(65536>=eo),To=ko;var ns=We(Rn);if(To==null||ns==null||Ua==null){$.a=1;break r}var Ss=Ua;for(Zo=K=0;Zo<wn;++Zo){var Hs=To[Zo],Ls=Hs.G,ul=Hs.H,Sl=0,tl=1,xl=0;for(P=0;5>P;++P){va=Ho[P],Ls[P]=Ss,ul[P]=K,!P&&0<Me&&(va+=1<<Me);i:{var cl,Oa=va,ks=$,Ps=ns,Ys=Ss,Lu=K,gs=0,ts=ks.m,zl=Ti(ts,1);if(Ye(Ps,0,0,Oa),zl){var yl=Ti(ts,1)+1,Nu=Ti(ts,1),du=Ti(ts,Nu==0?1:8);Ps[du]=1,yl==2&&(Ps[du=Ti(ts,8)]=1);var Vl=1}else{var Su=We(19),Il=Ti(ts,4)+4;if(19<Il){ks.a=3;var hu=0;break i}for(cl=0;cl<Il;++cl)Su[cs[cl]]=Ti(ts,3);var ju=void 0,Qu=void 0,vc=ks,Ac=Su,tc=Oa,yc=Ps,sc=0,Du=vc.m,hc=8,bc=qe(128,Cr);n:for(;mr(bc,0,7,Ac,19);){if(Ti(Du,1)){var Tc=2+2*Ti(Du,3);if((ju=2+Ti(Du,Tc))>tc)break n}else ju=tc;for(Qu=0;Qu<tc&&ju--;){qn(Du);var wc=bc[0+(127&En(Du))];Vn(Du,Du.u+wc.g);var Tu=wc.value;if(16>Tu)yc[Qu++]=Tu,Tu!=0&&(hc=Tu);else{var fu=Tu==16,fc=Tu-16,lc=jo[fc],Sc=Ti(Du,Xl[fc])+lc;if(Qu+Sc>tc)break n;for(var Cc=fu?hc:0;0<Sc--;)yc[Qu++]=Cc}}sc=1;break n}sc||(vc.a=3),Vl=sc}(Vl=Vl&&!ts.h)&&(gs=mr(Ys,Lu,8,Ps,Oa)),Vl&&gs!=0?hu=gs:(ks.a=3,hu=0)}if(hu==0)break r;if(tl&&us[P]==1&&(tl=Ss[K].g==0),Sl+=Ss[K].g,K+=hu,3>=P){var Hu,Ru=ns[0];for(Hu=1;Hu<va;++Hu)ns[Hu]>Ru&&(Ru=ns[Hu]);xl+=Ru}}if(Hs.nd=tl,Hs.Qb=0,tl&&(Hs.qb=(Ls[3][ul[3]+0].value<<24|Ls[1][ul[1]+0].value<<16|Ls[2][ul[2]+0].value)>>>0,Sl==0&&256>Ls[0][ul[0]+0].value&&(Hs.Qb=1,Hs.qb+=Ls[0][ul[0]+0].value<<8)),Hs.jc=!Hs.Qb&&6>xl,Hs.jc){var Ku,Cu=Hs;for(Ku=0;Ku<ka;++Ku){var au=Ku,Mu=Cu.pd[au],uc=Cu.G[0][Cu.H[0]+au];256<=uc.value?(Mu.g=uc.g+256,Mu.value=uc.value):(Mu.g=0,Mu.value=0,au>>=so(uc,8,Mu),au>>=so(Cu.G[1][Cu.H[1]+au],16,Mu),au>>=so(Cu.G[2][Cu.H[2]+au],0,Mu),so(Cu.G[3][Cu.H[3]+au],24,Mu))}}}or.vc=cr,or.Wb=wn,or.Ya=To,or.yc=Ua,Ro=1;break t}Ro=0}if(!(Yr=Ro)){nr.a=3;break e}if(0<Dt){if(ze.ua=1<<Dt,!bi(ze.Wa,Dt)){nr.a=1,Yr=0;break e}}else ze.ua=0;var cc=nr,xc=Le,Ec=ee,pc=cc.s,mc=pc.xc;if(cc.c=xc,cc.i=Ec,pc.md=Yi(xc,mc),pc.wc=mc==0?-1:(1<<mc)-1,mt){nr.xb=es;break e}if((lt=We(Le*ee))==null){nr.a=1,Yr=0;break e}Yr=(Yr=vn(nr,lt,0,Le,ee,ee,null))&&!Ae.h;break e}return Yr?(Er!=null?Er[0]=lt:(we(lt==null),we(mt)),nr.$=0,mt||ni(ze)):ni(ze),Yr}function di(ge,je){var mt=ge.c*ge.i,nr=mt+je+16*je;return we(ge.c<=je),ge.V=We(nr),ge.V==null?(ge.Ta=null,ge.Ua=0,ge.a=1,0):(ge.Ta=ge.V,ge.Ua=ge.Ba+mt+je,1)}function Jt(ge,je){var mt=ge.C,nr=je-mt,Er=ge.V,Yr=ge.Ba+ge.c*mt;for(we(je<=ge.l.o);0<nr;){var Le=16<nr?16:nr,ee=ge.l.ma,Ae=ge.l.width,ze=Ae*Le,lt=ee.ca,Dt=ee.tb+Ae*mt,Vt=ge.Ta,Zt=ge.Ua;lo(ge,Le,Er,Yr),fl(Vt,Zt,lt,Dt,ze),Vr(ee,mt,mt+Le,lt,Dt,Ae),nr-=Le,Er+=Le*ge.c,mt+=Le}we(mt==je),ge.C=ge.Ma=je}function Ot(){this.ub=this.yd=this.td=this.Rb=0}function yr(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function ft(){this.Fb=this.Bb=this.Cb=0,this.Zb=We(4),this.Lb=We(4)}function qt(){this.Yb=function(){var ge=[];return function je(mt,nr,Er){for(var Yr=Er[nr],Le=0;Le<Yr&&(mt.push(Er.length>nr+1?[]:0),!(Er.length<nr+1));Le++)je(mt[Le],nr+1,Er)}(ge,0,[3,11]),ge}()}function dr(){this.jb=We(3),this.Wc=yt([4,8],qt),this.Xc=yt([4,17],qt)}function Nr(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new We(4),this.od=new We(4)}function Zr(){this.ld=this.La=this.dd=this.tc=0}function pn(){this.Na=this.la=0}function _n(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Dn(){this.ad=We(384),this.Za=0,this.Ob=We(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Zn(){this.uc=this.M=this.Nb=0,this.wa=Array(new Zr),this.Y=0,this.ya=Array(new Dn),this.aa=0,this.l=new ji}function ii(){this.y=We(16),this.f=We(8),this.ea=We(8)}function pi(){this.cb=this.a=0,this.sc="",this.m=new hn,this.Od=new Ot,this.Kc=new yr,this.ed=new Nr,this.Qa=new ft,this.Ic=this.$c=this.Aa=0,this.D=new Zn,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=qe(8,hn),this.ia=0,this.pb=qe(4,_n),this.Pa=new dr,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ii),this.Hd=0,this.rb=Array(new pn),this.sb=0,this.wa=Array(new Zr),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 Dn),this.L=this.aa=0,this.gd=yt([4,2],Zr),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 ri(ge,je){return 0>ge?0:ge>je?je:ge}function ji(){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 ei(){var ge=new pi;return ge!=null&&(ge.a=0,ge.sc="OK",ge.cb=0,ge.Xb=0,Al||(Al=fr)),ge}function $e(ge,je,mt){return ge.a==0&&(ge.a=je,ge.sc=mt,ge.cb=0),0}function Yt(ge,je,mt){return 3<=mt&&ge[je+0]==157&&ge[je+1]==1&&ge[je+2]==42}function vr(ge,je){if(ge==null)return 0;if(ge.a=0,ge.sc="OK",je==null)return $e(ge,2,"null VP8Io passed to VP8GetHeaders()");var mt=je.data,nr=je.w,Er=je.ha;if(4>Er)return $e(ge,7,"Truncated header.");var Yr=mt[nr+0]|mt[nr+1]<<8|mt[nr+2]<<16,Le=ge.Od;if(Le.Rb=!(1&Yr),Le.td=Yr>>1&7,Le.yd=Yr>>4&1,Le.ub=Yr>>5,3<Le.td)return $e(ge,3,"Incorrect keyframe parameters.");if(!Le.yd)return $e(ge,4,"Frame not displayable.");nr+=3,Er-=3;var ee=ge.Kc;if(Le.Rb){if(7>Er)return $e(ge,7,"cannot parse picture header");if(!Yt(mt,nr,Er))return $e(ge,3,"Bad code word");ee.c=16383&(mt[nr+4]<<8|mt[nr+3]),ee.Td=mt[nr+4]>>6,ee.i=16383&(mt[nr+6]<<8|mt[nr+5]),ee.Ud=mt[nr+6]>>6,nr+=7,Er-=7,ge.za=ee.c+15>>4,ge.Ub=ee.i+15>>4,je.width=ee.c,je.height=ee.i,je.Da=0,je.j=0,je.v=0,je.va=je.width,je.o=je.height,je.da=0,je.ib=je.width,je.hb=je.height,je.U=je.width,je.T=je.height,Ye((Yr=ge.Pa).jb,0,255,Yr.jb.length),we((Yr=ge.Qa)!=null),Yr.Cb=0,Yr.Bb=0,Yr.Fb=1,Ye(Yr.Zb,0,0,Yr.Zb.length),Ye(Yr.Lb,0,0,Yr.Lb)}if(Le.ub>Er)return $e(ge,7,"bad partition length");Gr(Yr=ge.m,mt,nr,Le.ub),nr+=Le.ub,Er-=Le.ub,Le.Rb&&(ee.Ld=Ni(Yr),ee.Kd=Ni(Yr)),ee=ge.Qa;var Ae,ze=ge.Pa;if(we(Yr!=null),we(ee!=null),ee.Cb=Ni(Yr),ee.Cb){if(ee.Bb=Ni(Yr),Ni(Yr)){for(ee.Fb=Ni(Yr),Ae=0;4>Ae;++Ae)ee.Zb[Ae]=Ni(Yr)?qr(Yr,7):0;for(Ae=0;4>Ae;++Ae)ee.Lb[Ae]=Ni(Yr)?qr(Yr,6):0}if(ee.Bb)for(Ae=0;3>Ae;++Ae)ze.jb[Ae]=Ni(Yr)?Kr(Yr,8):255}else ee.Bb=0;if(Yr.Ka)return $e(ge,3,"cannot parse segment header");if((ee=ge.ed).zd=Ni(Yr),ee.Tb=Kr(Yr,6),ee.wb=Kr(Yr,3),ee.Pc=Ni(Yr),ee.Pc&&Ni(Yr)){for(ze=0;4>ze;++ze)Ni(Yr)&&(ee.vd[ze]=qr(Yr,6));for(ze=0;4>ze;++ze)Ni(Yr)&&(ee.od[ze]=qr(Yr,6))}if(ge.L=ee.Tb==0?0:ee.zd?1:2,Yr.Ka)return $e(ge,3,"cannot parse filter header");var lt=Er;if(Er=Ae=nr,nr=Ae+lt,ee=lt,ge.Xb=(1<<Kr(ge.m,2))-1,lt<3*(ze=ge.Xb))mt=7;else{for(Ae+=3*ze,ee-=3*ze,lt=0;lt<ze;++lt){var Dt=mt[Er+0]|mt[Er+1]<<8|mt[Er+2]<<16;Dt>ee&&(Dt=ee),Gr(ge.Jc[+lt],mt,Ae,Dt),Ae+=Dt,ee-=Dt,Er+=3}Gr(ge.Jc[+ze],mt,Ae,ee),mt=Ae<nr?0:5}if(mt!=0)return $e(ge,mt,"cannot parse partitions");for(mt=Kr(Ae=ge.m,7),Er=Ni(Ae)?qr(Ae,4):0,nr=Ni(Ae)?qr(Ae,4):0,ee=Ni(Ae)?qr(Ae,4):0,ze=Ni(Ae)?qr(Ae,4):0,Ae=Ni(Ae)?qr(Ae,4):0,lt=ge.Qa,Dt=0;4>Dt;++Dt){if(lt.Cb){var Vt=lt.Zb[Dt];lt.Fb||(Vt+=mt)}else{if(0<Dt){ge.pb[Dt]=ge.pb[0];continue}Vt=mt}var Zt=ge.pb[Dt];Zt.Sc[0]=ss[ri(Vt+Er,127)],Zt.Sc[1]=Is[ri(Vt+0,127)],Zt.Eb[0]=2*ss[ri(Vt+nr,127)],Zt.Eb[1]=101581*Is[ri(Vt+ee,127)]>>16,8>Zt.Eb[1]&&(Zt.Eb[1]=8),Zt.Qc[0]=ss[ri(Vt+ze,117)],Zt.Qc[1]=Is[ri(Vt+Ae,127)],Zt.lc=Vt+Ae}if(!Le.Rb)return $e(ge,4,"Not a key frame.");for(Ni(Yr),Le=ge.Pa,mt=0;4>mt;++mt){for(Er=0;8>Er;++Er)for(nr=0;3>nr;++nr)for(ee=0;11>ee;++ee)ze=Mi(Yr,yu[mt][Er][nr][ee])?Kr(Yr,8):nu[mt][Er][nr][ee],Le.Wc[mt][Er].Yb[nr][ee]=ze;for(Er=0;17>Er;++Er)Le.Xc[mt][Er]=Le.Wc[mt][bu[Er]]}return ge.kc=Ni(Yr),ge.kc&&(ge.Bd=Kr(Yr,8)),ge.cb=1}function fr(ge,je,mt,nr,Er,Yr,Le){var ee=je[Er].Yb[mt];for(mt=0;16>Er;++Er){if(!Mi(ge,ee[mt+0]))return Er;for(;!Mi(ge,ee[mt+1]);)if(ee=je[++Er].Yb[0],mt=0,Er==16)return 16;var Ae=je[Er+1].Yb;if(Mi(ge,ee[mt+2])){var ze=ge,lt=0;if(Mi(ze,(Vt=ee)[(Dt=mt)+3]))if(Mi(ze,Vt[Dt+6])){for(ee=0,Dt=2*(lt=Mi(ze,Vt[Dt+8]))+(Vt=Mi(ze,Vt[Dt+9+lt])),lt=0,Vt=lu[Dt];Vt[ee];++ee)lt+=lt+Mi(ze,Vt[ee]);lt+=3+(8<<Dt)}else Mi(ze,Vt[Dt+7])?(lt=7+2*Mi(ze,165),lt+=Mi(ze,145)):lt=5+Mi(ze,159);else lt=Mi(ze,Vt[Dt+4])?3+Mi(ze,Vt[Dt+5]):2;ee=Ae[2]}else lt=1,ee=Ae[1];Ae=Le+uu[Er],0>(ze=ge).b&&Oi(ze);var Dt,Vt=ze.b,Zt=(Dt=ze.Ca>>1)-(ze.I>>Vt)>>31;--ze.b,ze.Ca+=Zt,ze.Ca|=1,ze.I-=(Dt+1&Zt)<<Vt,Yr[Ae]=((lt^Zt)-Zt)*nr[(0<Er)+0]}return 16}function Xr(ge){var je=ge.rb[ge.sb-1];je.la=0,je.Na=0,Ye(ge.zc,0,0,ge.zc.length),ge.ja=0}function Fr(ge,je){if(ge==null)return 0;if(je==null)return $e(ge,2,"NULL VP8Io parameter in VP8Decode().");if(!ge.cb&&!vr(ge,je))return 0;if(we(ge.cb),je.ac==null||je.ac(je)){je.ob&&(ge.L=0);var mt=Ql[ge.L];if(ge.L==2?(ge.yb=0,ge.zb=0):(ge.yb=je.v-mt>>4,ge.zb=je.j-mt>>4,0>ge.yb&&(ge.yb=0),0>ge.zb&&(ge.zb=0)),ge.Va=je.o+15+mt>>4,ge.Hb=je.va+15+mt>>4,ge.Hb>ge.za&&(ge.Hb=ge.za),ge.Va>ge.Ub&&(ge.Va=ge.Ub),0<ge.L){var nr=ge.ed;for(mt=0;4>mt;++mt){var Er;if(ge.Qa.Cb){var Yr=ge.Qa.Lb[mt];ge.Qa.Fb||(Yr+=nr.Tb)}else Yr=nr.Tb;for(Er=0;1>=Er;++Er){var Le=ge.gd[mt][Er],ee=Yr;if(nr.Pc&&(ee+=nr.vd[0],Er&&(ee+=nr.od[0])),0<(ee=0>ee?0:63<ee?63:ee)){var Ae=ee;0<nr.wb&&(Ae=4<nr.wb?Ae>>2:Ae>>1)>9-nr.wb&&(Ae=9-nr.wb),1>Ae&&(Ae=1),Le.dd=Ae,Le.tc=2*ee+Ae,Le.ld=40<=ee?2:15<=ee?1:0}else Le.tc=0;Le.La=Er}}}mt=0}else $e(ge,6,"Frame setup failed"),mt=ge.a;if(mt=mt==0){if(mt){ge.$c=0,0<ge.Aa||(ge.Ic=iu);e:{mt=ge.Ic,nr=4*(Ae=ge.za);var ze=32*Ae,lt=Ae+1,Dt=0<ge.L?Ae*(0<ge.Aa?2:1):0,Vt=(ge.Aa==2?2:1)*Ae;if((Le=nr+832+(Er=3*(16*mt+Ql[ge.L])/2*ze)+(Yr=ge.Fa!=null&&0<ge.Fa.length?ge.Kc.c*ge.Kc.i:0))!=Le)mt=0;else{if(Le>ge.Vb){if(ge.Vb=0,ge.Ec=We(Le),ge.Fc=0,ge.Ec==null){mt=$e(ge,1,"no memory during frame initialization.");break e}ge.Vb=Le}Le=ge.Ec,ee=ge.Fc,ge.Ac=Le,ge.Bc=ee,ee+=nr,ge.Gd=qe(ze,ii),ge.Hd=0,ge.rb=qe(lt+1,pn),ge.sb=1,ge.wa=Dt?qe(Dt,Zr):null,ge.Y=0,ge.D.Nb=0,ge.D.wa=ge.wa,ge.D.Y=ge.Y,0<ge.Aa&&(ge.D.Y+=Ae),we(!0),ge.oc=Le,ge.pc=ee,ee+=832,ge.ya=qe(Vt,Dn),ge.aa=0,ge.D.ya=ge.ya,ge.D.aa=ge.aa,ge.Aa==2&&(ge.D.aa+=Ae),ge.R=16*Ae,ge.B=8*Ae,Ae=(ze=Ql[ge.L])*ge.R,ze=ze/2*ge.B,ge.sa=Le,ge.ta=ee+Ae,ge.qa=ge.sa,ge.ra=ge.ta+16*mt*ge.R+ze,ge.Ha=ge.qa,ge.Ia=ge.ra+8*mt*ge.B+ze,ge.$c=0,ee+=Er,ge.mb=Yr?Le:null,ge.nb=Yr?ee:null,we(ee+Yr<=ge.Fc+ge.Vb),Xr(ge),Ye(ge.Ac,ge.Bc,0,nr),mt=1}}if(mt){if(je.ka=0,je.y=ge.sa,je.O=ge.ta,je.f=ge.qa,je.N=ge.ra,je.ea=ge.Ha,je.Vd=ge.Ia,je.fa=ge.R,je.Rc=ge.B,je.F=null,je.J=0,!$l){for(mt=-255;255>=mt;++mt)kl[255+mt]=0>mt?-mt:mt;for(mt=-1020;1020>=mt;++mt)gu[1020+mt]=-128>mt?-128:127<mt?127:mt;for(mt=-112;112>=mt;++mt)Jl[112+mt]=-16>mt?-16:15<mt?15:mt;for(mt=-255;510>=mt;++mt)Zl[255+mt]=0>mt?0:255<mt?255:mt;$l=1}El=ti,bl=Wn,Gs=Ln,zs=$n,vl=Un,ol=Kn,Xs=rs,sl=Vo,dl=Yo,rl=vo,nl=Go,Tl=Qo,Rs=Io,bs=zo,Ms=fa,Ts=ro,Zs=Wa,hl=Ea,Rl[0]=Aa,Rl[1]=wi,Rl[2]=aa,Rl[3]=$i,Rl[4]=ya,Rl[5]=ta,Rl[6]=Ha,Rl[7]=ra,Rl[8]=Ka,Rl[9]=_a,_l[0]=wa,_l[1]=Zi,_l[2]=ua,_l[3]=Xi,_l[4]=na,_l[5]=mo,_l[6]=Ca,Wl[0]=Sa,Wl[1]=Ei,Wl[2]=bo,Wl[3]=ga,Wl[4]=uo,Wl[5]=Va,Wl[6]=No,mt=1}else mt=0}mt&&(mt=function(Zt,Ir){for(Zt.M=0;Zt.M<Zt.Va;++Zt.M){var $r,Tr=Zt.Jc[Zt.M&Zt.Xb],xr=Zt.m,zr=Zt;for($r=0;$r<zr.za;++$r){var nn=xr,On=zr,gi=On.Ac,Ai=On.Bc+4*$r,Qi=On.zc,Bi=On.ya[On.aa+$r];if(On.Qa.Bb?Bi.$b=Mi(nn,On.Pa.jb[0])?2+Mi(nn,On.Pa.jb[2]):Mi(nn,On.Pa.jb[1]):Bi.$b=0,On.kc&&(Bi.Ad=Mi(nn,On.Bd)),Bi.Za=!Mi(nn,145)+0,Bi.Za){var Ma=Bi.Ob,ea=0;for(On=0;4>On;++On){var oo,Ba=Qi[0+On];for(oo=0;4>oo;++oo){Ba=vu[gi[Ai+oo]][Ba];for(var Ro=Yl[Mi(nn,Ba[0])];0<Ro;)Ro=Yl[2*Ro+Mi(nn,Ba[Ro])];Ba=-Ro,gi[Ai+oo]=Ba}Fe(Ma,ea,gi,Ai,4),ea+=4,Qi[0+On]=Ba}}else Ba=Mi(nn,156)?Mi(nn,128)?1:3:Mi(nn,163)?2:0,Bi.Ob[0]=Ba,Ye(gi,Ai,Ba,4),Ye(Qi,0,Ba,4);Bi.Dd=Mi(nn,142)?Mi(nn,114)?Mi(nn,183)?1:3:2:0}if(zr.m.Ka)return $e(Zt,7,"Premature end-of-partition0 encountered.");for(;Zt.ja<Zt.za;++Zt.ja){if(zr=Tr,nn=(xr=Zt).rb[xr.sb-1],gi=xr.rb[xr.sb+xr.ja],$r=xr.ya[xr.aa+xr.ja],Ai=xr.kc?$r.Ad:0)nn.la=gi.la=0,$r.Za||(nn.Na=gi.Na=0),$r.Hc=0,$r.Gc=0,$r.ia=0;else{var Zo,P;if(nn=gi,gi=zr,Ai=xr.Pa.Xc,Qi=xr.ya[xr.aa+xr.ja],Bi=xr.pb[Qi.$b],On=Qi.ad,Ma=0,ea=xr.rb[xr.sb-1],Ba=oo=0,Ye(On,Ma,0,384),Qi.Za)var K=0,$=Ai[3];else{Ro=We(16);var re=nn.Na+ea.Na;if(re=Al(gi,Ai[1],re,Bi.Eb,0,Ro,0),nn.Na=ea.Na=(0<re)+0,1<re)El(Ro,0,On,Ma);else{var ue=Ro[0]+3>>3;for(Ro=0;256>Ro;Ro+=16)On[Ma+Ro]=ue}K=1,$=Ai[0]}var Me=15&nn.la,gt=15&ea.la;for(Ro=0;4>Ro;++Ro){var zt=1&gt;for(ue=P=0;4>ue;++ue)Me=Me>>1|(zt=(re=Al(gi,$,re=zt+(1&Me),Bi.Sc,K,On,Ma))>K)<<7,P=P<<2|(3<re?3:1<re?2:On[Ma+0]!=0),Ma+=16;Me>>=4,gt=gt>>1|zt<<7,oo=(oo<<8|P)>>>0}for($=Me,K=gt>>4,Zo=0;4>Zo;Zo+=2){for(P=0,Me=nn.la>>4+Zo,gt=ea.la>>4+Zo,Ro=0;2>Ro;++Ro){for(zt=1&gt,ue=0;2>ue;++ue)re=zt+(1&Me),Me=Me>>1|(zt=0<(re=Al(gi,Ai[2],re,Bi.Qc,0,On,Ma)))<<3,P=P<<2|(3<re?3:1<re?2:On[Ma+0]!=0),Ma+=16;Me>>=2,gt=gt>>1|zt<<5}Ba|=P<<4*Zo,$|=Me<<4<<Zo,K|=(240&gt)<<Zo}nn.la=$,ea.la=K,Qi.Hc=oo,Qi.Gc=Ba,Qi.ia=43690&Ba?0:Bi.ia,Ai=!(oo|Ba)}if(0<xr.L&&(xr.wa[xr.Y+xr.ja]=xr.gd[$r.$b][$r.Za],xr.wa[xr.Y+xr.ja].La|=!Ai),zr.Ka)return $e(Zt,7,"Premature end-of-file encountered.")}if(Xr(Zt),xr=Ir,zr=1,$r=(Tr=Zt).D,nn=0<Tr.L&&Tr.M>=Tr.zb&&Tr.M<=Tr.Va,Tr.Aa==0)e:{if($r.M=Tr.M,$r.uc=nn,fo(Tr,$r),zr=1,$r=(P=Tr.D).Nb,nn=(Ba=Ql[Tr.L])*Tr.R,gi=Ba/2*Tr.B,Ro=16*$r*Tr.R,ue=8*$r*Tr.B,Ai=Tr.sa,Qi=Tr.ta-nn+Ro,Bi=Tr.qa,On=Tr.ra-gi+ue,Ma=Tr.Ha,ea=Tr.Ia-gi+ue,gt=(Me=P.M)==0,oo=Me>=Tr.Va-1,Tr.Aa==2&&fo(Tr,P),P.uc)for(zt=(re=Tr).D.M,we(re.D.uc),P=re.yb;P<re.Hb;++P){K=P,$=zt;var or=(cr=(va=re).D).Nb;Zo=va.R;var cr=cr.wa[cr.Y+K],wn=va.sa,Rn=va.ta+16*or*Zo+16*K,ui=cr.dd,hi=cr.tc;if(hi!=0)if(we(3<=hi),va.L==1)0<K&&Ts(wn,Rn,Zo,hi+4),cr.La&&hl(wn,Rn,Zo,hi),0<$&&Ms(wn,Rn,Zo,hi+4),cr.La&&Zs(wn,Rn,Zo,hi);else{var Wi=va.B,ia=va.qa,xa=va.ra+8*or*Wi+8*K,ba=va.Ha,va=va.Ia+8*or*Wi+8*K;or=cr.ld,0<K&&(sl(wn,Rn,Zo,hi+4,ui,or),rl(ia,xa,ba,va,Wi,hi+4,ui,or)),cr.La&&(Tl(wn,Rn,Zo,hi,ui,or),bs(ia,xa,ba,va,Wi,hi,ui,or)),0<$&&(Xs(wn,Rn,Zo,hi+4,ui,or),dl(ia,xa,ba,va,Wi,hi+4,ui,or)),cr.La&&(nl(wn,Rn,Zo,hi,ui,or),Rs(ia,xa,ba,va,Wi,hi,ui,or))}}if(Tr.ia&&alert("todo:DitherRow"),xr.put!=null){if(P=16*Me,Me=16*(Me+1),gt?(xr.y=Tr.sa,xr.O=Tr.ta+Ro,xr.f=Tr.qa,xr.N=Tr.ra+ue,xr.ea=Tr.Ha,xr.W=Tr.Ia+ue):(P-=Ba,xr.y=Ai,xr.O=Qi,xr.f=Bi,xr.N=On,xr.ea=Ma,xr.W=ea),oo||(Me-=Ba),Me>xr.o&&(Me=xr.o),xr.F=null,xr.J=null,Tr.Fa!=null&&0<Tr.Fa.length&&P<Me&&(xr.J=Bt(Tr,xr,P,Me-P),xr.F=Tr.mb,xr.F==null&&xr.F.length==0)){zr=$e(Tr,3,"Could not decode alpha data.");break e}P<xr.j&&(Ba=xr.j-P,P=xr.j,we(!(1&Ba)),xr.O+=Tr.R*Ba,xr.N+=Tr.B*(Ba>>1),xr.W+=Tr.B*(Ba>>1),xr.F!=null&&(xr.J+=xr.width*Ba)),P<Me&&(xr.O+=xr.v,xr.N+=xr.v>>1,xr.W+=xr.v>>1,xr.F!=null&&(xr.J+=xr.v),xr.ka=P-xr.j,xr.U=xr.va-xr.v,xr.T=Me-P,zr=xr.put(xr))}$r+1!=Tr.Ic||oo||(Fe(Tr.sa,Tr.ta-nn,Ai,Qi+16*Tr.R,nn),Fe(Tr.qa,Tr.ra-gi,Bi,On+8*Tr.B,gi),Fe(Tr.Ha,Tr.Ia-gi,Ma,ea+8*Tr.B,gi))}if(!zr)return $e(Zt,6,"Output aborted.")}return 1}(ge,je)),je.bc!=null&&je.bc(je),mt&=1}return mt?(ge.cb=0,mt):0}function hr(ge,je,mt,nr,Er){Er=ge[je+mt+32*nr]+(Er>>3),ge[je+mt+32*nr]=-256&Er?0>Er?0:255:Er}function An(ge,je,mt,nr,Er,Yr){hr(ge,je,0,mt,nr+Er),hr(ge,je,1,mt,nr+Yr),hr(ge,je,2,mt,nr-Yr),hr(ge,je,3,mt,nr-Er)}function br(ge){return(20091*ge>>16)+ge}function mn(ge,je,mt,nr){var Er,Yr=0,Le=We(16);for(Er=0;4>Er;++Er){var ee=ge[je+0]+ge[je+8],Ae=ge[je+0]-ge[je+8],ze=(35468*ge[je+4]>>16)-br(ge[je+12]),lt=br(ge[je+4])+(35468*ge[je+12]>>16);Le[Yr+0]=ee+lt,Le[Yr+1]=Ae+ze,Le[Yr+2]=Ae-ze,Le[Yr+3]=ee-lt,Yr+=4,je++}for(Er=Yr=0;4>Er;++Er)ee=(ge=Le[Yr+0]+4)+Le[Yr+8],Ae=ge-Le[Yr+8],ze=(35468*Le[Yr+4]>>16)-br(Le[Yr+12]),hr(mt,nr,0,0,ee+(lt=br(Le[Yr+4])+(35468*Le[Yr+12]>>16))),hr(mt,nr,1,0,Ae+ze),hr(mt,nr,2,0,Ae-ze),hr(mt,nr,3,0,ee-lt),Yr++,nr+=32}function Kn(ge,je,mt,nr){var Er=ge[je+0]+4,Yr=35468*ge[je+4]>>16,Le=br(ge[je+4]),ee=35468*ge[je+1]>>16;An(mt,nr,0,Er+Le,ge=br(ge[je+1]),ee),An(mt,nr,1,Er+Yr,ge,ee),An(mt,nr,2,Er-Yr,ge,ee),An(mt,nr,3,Er-Le,ge,ee)}function Wn(ge,je,mt,nr,Er){mn(ge,je,mt,nr),Er&&mn(ge,je+16,mt,nr+4)}function Ln(ge,je,mt,nr){bl(ge,je+0,mt,nr,1),bl(ge,je+32,mt,nr+128,1)}function $n(ge,je,mt,nr){var Er;for(ge=ge[je+0]+4,Er=0;4>Er;++Er)for(je=0;4>je;++je)hr(mt,nr,je,Er,ge)}function Un(ge,je,mt,nr){ge[je+0]&&zs(ge,je+0,mt,nr),ge[je+16]&&zs(ge,je+16,mt,nr+4),ge[je+32]&&zs(ge,je+32,mt,nr+128),ge[je+48]&&zs(ge,je+48,mt,nr+128+4)}function ti(ge,je,mt,nr){var Er,Yr=We(16);for(Er=0;4>Er;++Er){var Le=ge[je+0+Er]+ge[je+12+Er],ee=ge[je+4+Er]+ge[je+8+Er],Ae=ge[je+4+Er]-ge[je+8+Er],ze=ge[je+0+Er]-ge[je+12+Er];Yr[0+Er]=Le+ee,Yr[8+Er]=Le-ee,Yr[4+Er]=ze+Ae,Yr[12+Er]=ze-Ae}for(Er=0;4>Er;++Er)Le=(ge=Yr[0+4*Er]+3)+Yr[3+4*Er],ee=Yr[1+4*Er]+Yr[2+4*Er],Ae=Yr[1+4*Er]-Yr[2+4*Er],ze=ge-Yr[3+4*Er],mt[nr+0]=Le+ee>>3,mt[nr+16]=ze+Ae>>3,mt[nr+32]=Le-ee>>3,mt[nr+48]=ze-Ae>>3,nr+=64}function Xn(ge,je,mt){var nr,Er=je-32,Yr=ll,Le=255-ge[Er-1];for(nr=0;nr<mt;++nr){var ee,Ae=Yr,ze=Le+ge[je-1];for(ee=0;ee<mt;++ee)ge[je+ee]=Ae[ze+ge[Er+ee]];je+=32}}function wi(ge,je){Xn(ge,je,4)}function Ei(ge,je){Xn(ge,je,8)}function Zi(ge,je){Xn(ge,je,16)}function ua(ge,je){var mt;for(mt=0;16>mt;++mt)Fe(ge,je+32*mt,ge,je-32,16)}function Xi(ge,je){var mt;for(mt=16;0<mt;--mt)Ye(ge,je,ge[je-1],16),je+=32}function Gi(ge,je,mt){var nr;for(nr=0;16>nr;++nr)Ye(je,mt+32*nr,ge,16)}function wa(ge,je){var mt,nr=16;for(mt=0;16>mt;++mt)nr+=ge[je-1+32*mt]+ge[je+mt-32];Gi(nr>>5,ge,je)}function na(ge,je){var mt,nr=8;for(mt=0;16>mt;++mt)nr+=ge[je-1+32*mt];Gi(nr>>4,ge,je)}function mo(ge,je){var mt,nr=8;for(mt=0;16>mt;++mt)nr+=ge[je+mt-32];Gi(nr>>4,ge,je)}function Ca(ge,je){Gi(128,ge,je)}function qi(ge,je,mt){return ge+2*je+mt+2>>2}function aa(ge,je){var mt,nr=je-32;for(nr=new Uint8Array([qi(ge[nr-1],ge[nr+0],ge[nr+1]),qi(ge[nr+0],ge[nr+1],ge[nr+2]),qi(ge[nr+1],ge[nr+2],ge[nr+3]),qi(ge[nr+2],ge[nr+3],ge[nr+4])]),mt=0;4>mt;++mt)Fe(ge,je+32*mt,nr,0,nr.length)}function $i(ge,je){var mt=ge[je-1],nr=ge[je-1+32],Er=ge[je-1+64],Yr=ge[je-1+96];Ji(ge,je+0,16843009*qi(ge[je-1-32],mt,nr)),Ji(ge,je+32,16843009*qi(mt,nr,Er)),Ji(ge,je+64,16843009*qi(nr,Er,Yr)),Ji(ge,je+96,16843009*qi(Er,Yr,Yr))}function Aa(ge,je){var mt,nr=4;for(mt=0;4>mt;++mt)nr+=ge[je+mt-32]+ge[je-1+32*mt];for(nr>>=3,mt=0;4>mt;++mt)Ye(ge,je+32*mt,nr,4)}function ya(ge,je){var mt=ge[je-1+0],nr=ge[je-1+32],Er=ge[je-1+64],Yr=ge[je-1-32],Le=ge[je+0-32],ee=ge[je+1-32],Ae=ge[je+2-32],ze=ge[je+3-32];ge[je+0+96]=qi(nr,Er,ge[je-1+96]),ge[je+1+96]=ge[je+0+64]=qi(mt,nr,Er),ge[je+2+96]=ge[je+1+64]=ge[je+0+32]=qi(Yr,mt,nr),ge[je+3+96]=ge[je+2+64]=ge[je+1+32]=ge[je+0+0]=qi(Le,Yr,mt),ge[je+3+64]=ge[je+2+32]=ge[je+1+0]=qi(ee,Le,Yr),ge[je+3+32]=ge[je+2+0]=qi(Ae,ee,Le),ge[je+3+0]=qi(ze,Ae,ee)}function Ha(ge,je){var mt=ge[je+1-32],nr=ge[je+2-32],Er=ge[je+3-32],Yr=ge[je+4-32],Le=ge[je+5-32],ee=ge[je+6-32],Ae=ge[je+7-32];ge[je+0+0]=qi(ge[je+0-32],mt,nr),ge[je+1+0]=ge[je+0+32]=qi(mt,nr,Er),ge[je+2+0]=ge[je+1+32]=ge[je+0+64]=qi(nr,Er,Yr),ge[je+3+0]=ge[je+2+32]=ge[je+1+64]=ge[je+0+96]=qi(Er,Yr,Le),ge[je+3+32]=ge[je+2+64]=ge[je+1+96]=qi(Yr,Le,ee),ge[je+3+64]=ge[je+2+96]=qi(Le,ee,Ae),ge[je+3+96]=qi(ee,Ae,Ae)}function ta(ge,je){var mt=ge[je-1+0],nr=ge[je-1+32],Er=ge[je-1+64],Yr=ge[je-1-32],Le=ge[je+0-32],ee=ge[je+1-32],Ae=ge[je+2-32],ze=ge[je+3-32];ge[je+0+0]=ge[je+1+64]=Yr+Le+1>>1,ge[je+1+0]=ge[je+2+64]=Le+ee+1>>1,ge[je+2+0]=ge[je+3+64]=ee+Ae+1>>1,ge[je+3+0]=Ae+ze+1>>1,ge[je+0+96]=qi(Er,nr,mt),ge[je+0+64]=qi(nr,mt,Yr),ge[je+0+32]=ge[je+1+96]=qi(mt,Yr,Le),ge[je+1+32]=ge[je+2+96]=qi(Yr,Le,ee),ge[je+2+32]=ge[je+3+96]=qi(Le,ee,Ae),ge[je+3+32]=qi(ee,Ae,ze)}function ra(ge,je){var mt=ge[je+0-32],nr=ge[je+1-32],Er=ge[je+2-32],Yr=ge[je+3-32],Le=ge[je+4-32],ee=ge[je+5-32],Ae=ge[je+6-32],ze=ge[je+7-32];ge[je+0+0]=mt+nr+1>>1,ge[je+1+0]=ge[je+0+64]=nr+Er+1>>1,ge[je+2+0]=ge[je+1+64]=Er+Yr+1>>1,ge[je+3+0]=ge[je+2+64]=Yr+Le+1>>1,ge[je+0+32]=qi(mt,nr,Er),ge[je+1+32]=ge[je+0+96]=qi(nr,Er,Yr),ge[je+2+32]=ge[je+1+96]=qi(Er,Yr,Le),ge[je+3+32]=ge[je+2+96]=qi(Yr,Le,ee),ge[je+3+64]=qi(Le,ee,Ae),ge[je+3+96]=qi(ee,Ae,ze)}function _a(ge,je){var mt=ge[je-1+0],nr=ge[je-1+32],Er=ge[je-1+64],Yr=ge[je-1+96];ge[je+0+0]=mt+nr+1>>1,ge[je+2+0]=ge[je+0+32]=nr+Er+1>>1,ge[je+2+32]=ge[je+0+64]=Er+Yr+1>>1,ge[je+1+0]=qi(mt,nr,Er),ge[je+3+0]=ge[je+1+32]=qi(nr,Er,Yr),ge[je+3+32]=ge[je+1+64]=qi(Er,Yr,Yr),ge[je+3+64]=ge[je+2+64]=ge[je+0+96]=ge[je+1+96]=ge[je+2+96]=ge[je+3+96]=Yr}function Ka(ge,je){var mt=ge[je-1+0],nr=ge[je-1+32],Er=ge[je-1+64],Yr=ge[je-1+96],Le=ge[je-1-32],ee=ge[je+0-32],Ae=ge[je+1-32],ze=ge[je+2-32];ge[je+0+0]=ge[je+2+32]=mt+Le+1>>1,ge[je+0+32]=ge[je+2+64]=nr+mt+1>>1,ge[je+0+64]=ge[je+2+96]=Er+nr+1>>1,ge[je+0+96]=Yr+Er+1>>1,ge[je+3+0]=qi(ee,Ae,ze),ge[je+2+0]=qi(Le,ee,Ae),ge[je+1+0]=ge[je+3+32]=qi(mt,Le,ee),ge[je+1+32]=ge[je+3+64]=qi(nr,mt,Le),ge[je+1+64]=ge[je+3+96]=qi(Er,nr,mt),ge[je+1+96]=qi(Yr,Er,nr)}function bo(ge,je){var mt;for(mt=0;8>mt;++mt)Fe(ge,je+32*mt,ge,je-32,8)}function ga(ge,je){var mt;for(mt=0;8>mt;++mt)Ye(ge,je,ge[je-1],8),je+=32}function go(ge,je,mt){var nr;for(nr=0;8>nr;++nr)Ye(je,mt+32*nr,ge,8)}function Sa(ge,je){var mt,nr=8;for(mt=0;8>mt;++mt)nr+=ge[je+mt-32]+ge[je-1+32*mt];go(nr>>4,ge,je)}function Va(ge,je){var mt,nr=4;for(mt=0;8>mt;++mt)nr+=ge[je+mt-32];go(nr>>3,ge,je)}function uo(ge,je){var mt,nr=4;for(mt=0;8>mt;++mt)nr+=ge[je-1+32*mt];go(nr>>3,ge,je)}function No(ge,je){go(128,ge,je)}function Po(ge,je,mt){var nr=ge[je-mt],Er=ge[je+0],Yr=3*(Er-nr)+Gl[1020+ge[je-2*mt]-ge[je+mt]],Le=$s[112+(Yr+4>>3)];ge[je-mt]=ll[255+nr+$s[112+(Yr+3>>3)]],ge[je+0]=ll[255+Er-Le]}function to(ge,je,mt,nr){var Er=ge[je+0],Yr=ge[je+mt];return pl[255+ge[je-2*mt]-ge[je-mt]]>nr||pl[255+Yr-Er]>nr}function Uo(ge,je,mt,nr){return 4*pl[255+ge[je-mt]-ge[je+0]]+pl[255+ge[je-2*mt]-ge[je+mt]]<=nr}function co(ge,je,mt,nr,Er){var Yr=ge[je-3*mt],Le=ge[je-2*mt],ee=ge[je-mt],Ae=ge[je+0],ze=ge[je+mt],lt=ge[je+2*mt],Dt=ge[je+3*mt];return 4*pl[255+ee-Ae]+pl[255+Le-ze]>nr?0:pl[255+ge[je-4*mt]-Yr]<=Er&&pl[255+Yr-Le]<=Er&&pl[255+Le-ee]<=Er&&pl[255+Dt-lt]<=Er&&pl[255+lt-ze]<=Er&&pl[255+ze-Ae]<=Er}function fa(ge,je,mt,nr){var Er=2*nr+1;for(nr=0;16>nr;++nr)Uo(ge,je+nr,mt,Er)&&Po(ge,je+nr,mt)}function ro(ge,je,mt,nr){var Er=2*nr+1;for(nr=0;16>nr;++nr)Uo(ge,je+nr*mt,1,Er)&&Po(ge,je+nr*mt,1)}function Wa(ge,je,mt,nr){var Er;for(Er=3;0<Er;--Er)fa(ge,je+=4*mt,mt,nr)}function Ea(ge,je,mt,nr){var Er;for(Er=3;0<Er;--Er)ro(ge,je+=4,mt,nr)}function Jr(ge,je,mt,nr,Er,Yr,Le,ee){for(Yr=2*Yr+1;0<Er--;){if(co(ge,je,mt,Yr,Le))if(to(ge,je,mt,ee))Po(ge,je,mt);else{var Ae=ge,ze=je,lt=mt,Dt=Ae[ze-2*lt],Vt=Ae[ze-lt],Zt=Ae[ze+0],Ir=Ae[ze+lt],$r=Ae[ze+2*lt],Tr=27*(zr=Gl[1020+3*(Zt-Vt)+Gl[1020+Dt-Ir]])+63>>7,xr=18*zr+63>>7,zr=9*zr+63>>7;Ae[ze-3*lt]=ll[255+Ae[ze-3*lt]+zr],Ae[ze-2*lt]=ll[255+Dt+xr],Ae[ze-lt]=ll[255+Vt+Tr],Ae[ze+0]=ll[255+Zt-Tr],Ae[ze+lt]=ll[255+Ir-xr],Ae[ze+2*lt]=ll[255+$r-zr]}je+=nr}}function za(ge,je,mt,nr,Er,Yr,Le,ee){for(Yr=2*Yr+1;0<Er--;){if(co(ge,je,mt,Yr,Le))if(to(ge,je,mt,ee))Po(ge,je,mt);else{var Ae=ge,ze=je,lt=mt,Dt=Ae[ze-lt],Vt=Ae[ze+0],Zt=Ae[ze+lt],Ir=$s[112+(($r=3*(Vt-Dt))+4>>3)],$r=$s[112+($r+3>>3)],Tr=Ir+1>>1;Ae[ze-2*lt]=ll[255+Ae[ze-2*lt]+Tr],Ae[ze-lt]=ll[255+Dt+$r],Ae[ze+0]=ll[255+Vt-Ir],Ae[ze+lt]=ll[255+Zt-Tr]}je+=nr}}function rs(ge,je,mt,nr,Er,Yr){Jr(ge,je,mt,1,16,nr,Er,Yr)}function Vo(ge,je,mt,nr,Er,Yr){Jr(ge,je,1,mt,16,nr,Er,Yr)}function Go(ge,je,mt,nr,Er,Yr){var Le;for(Le=3;0<Le;--Le)za(ge,je+=4*mt,mt,1,16,nr,Er,Yr)}function Qo(ge,je,mt,nr,Er,Yr){var Le;for(Le=3;0<Le;--Le)za(ge,je+=4,1,mt,16,nr,Er,Yr)}function Yo(ge,je,mt,nr,Er,Yr,Le,ee){Jr(ge,je,Er,1,8,Yr,Le,ee),Jr(mt,nr,Er,1,8,Yr,Le,ee)}function vo(ge,je,mt,nr,Er,Yr,Le,ee){Jr(ge,je,1,Er,8,Yr,Le,ee),Jr(mt,nr,1,Er,8,Yr,Le,ee)}function Io(ge,je,mt,nr,Er,Yr,Le,ee){za(ge,je+4*Er,Er,1,8,Yr,Le,ee),za(mt,nr+4*Er,Er,1,8,Yr,Le,ee)}function zo(ge,je,mt,nr,Er,Yr,Le,ee){za(ge,je+4,1,Er,8,Yr,Le,ee),za(mt,nr+4,1,Er,8,Yr,Le,ee)}function Fa(){this.ba=new ur,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Bn,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ja(){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 ho(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ao(){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 wr,this.yc=new Cr}function $o(){this.xb=this.a=0,this.l=new ji,this.ca=new ur,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new _r,this.Pb=0,this.wd=new _r,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ao,this.ab=0,this.gc=qe(4,ho),this.Oc=0}function ps(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ji,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function is(ge,je,mt,nr,Er,Yr,Le){for(ge=ge==null?0:ge[je+0],je=0;je<Le;++je)Er[Yr+je]=ge+mt[nr+je]&255,ge=Er[Yr+je]}function Za(ge,je,mt,nr,Er,Yr,Le){var ee;if(ge==null)is(null,null,mt,nr,Er,Yr,Le);else for(ee=0;ee<Le;++ee)Er[Yr+ee]=ge[je+ee]+mt[nr+ee]&255}function Ct(ge,je,mt,nr,Er,Yr,Le){if(ge==null)is(null,null,mt,nr,Er,Yr,Le);else{var ee,Ae=ge[je+0],ze=Ae,lt=Ae;for(ee=0;ee<Le;++ee)ze=lt+(Ae=ge[je+ee])-ze,lt=mt[nr+ee]+(-256&ze?0>ze?0:255:ze)&255,ze=Ae,Er[Yr+ee]=lt}}function Bt(ge,je,mt,nr){var Er=je.width,Yr=je.o;if(we(ge!=null&&je!=null),0>mt||0>=nr||mt+nr>Yr)return null;if(!ge.Cc){if(ge.ga==null){var Le;if(ge.ga=new ps,(Le=ge.ga==null)||(Le=je.width*je.o,we(ge.Gb.length==0),ge.Gb=We(Le),ge.Uc=0,ge.Gb==null?Le=0:(ge.mb=ge.Gb,ge.nb=ge.Uc,ge.rc=null,Le=1),Le=!Le),!Le){Le=ge.ga;var ee=ge.Fa,Ae=ge.P,ze=ge.qc,lt=ge.mb,Dt=ge.nb,Vt=Ae+1,Zt=ze-1,Ir=Le.l;if(we(ee!=null&&lt!=null&&je!=null),Eo[0]=null,Eo[1]=is,Eo[2]=Za,Eo[3]=Ct,Le.ca=lt,Le.tb=Dt,Le.c=je.width,Le.i=je.height,we(0<Le.c&&0<Le.i),1>=ze)je=0;else if(Le.$a=ee[Ae+0]>>0&3,Le.Z=ee[Ae+0]>>2&3,Le.Lc=ee[Ae+0]>>4&3,Ae=ee[Ae+0]>>6&3,0>Le.$a||1<Le.$a||4<=Le.Z||1<Le.Lc||Ae)je=0;else if(Ir.put=mi,Ir.ac=Jn,Ir.bc=yi,Ir.ma=Le,Ir.width=je.width,Ir.height=je.height,Ir.Da=je.Da,Ir.v=je.v,Ir.va=je.va,Ir.j=je.j,Ir.o=je.o,Le.$a)e:{we(Le.$a==1),je=li();t:for(;;){if(je==null){je=0;break e}if(we(Le!=null),Le.mc=je,je.c=Le.c,je.i=Le.i,je.l=Le.l,je.l.ma=Le,je.l.width=Le.c,je.l.height=Le.i,je.a=0,oi(je.m,ee,Vt,Zt),!fi(Le.c,Le.i,1,je,null))break t;if(je.ab==1&&je.gc[0].hc==3&&Qt(je.s)?(Le.ic=1,ee=je.c*je.i,je.Ta=null,je.Ua=0,je.V=We(ee),je.Ba=0,je.V==null?(je.a=1,je=0):je=1):(Le.ic=0,je=di(je,Le.c)),!je)break t;je=1;break e}Le.mc=null,je=0}else je=Zt>=Le.c*Le.i;Le=!je}if(Le)return null;ge.ga.Lc!=1?ge.Ga=0:nr=Yr-mt}we(ge.ga!=null),we(mt+nr<=Yr);e:{if(je=(ee=ge.ga).c,Yr=ee.l.o,ee.$a==0){if(Vt=ge.rc,Zt=ge.Vc,Ir=ge.Fa,Ae=ge.P+1+mt*je,ze=ge.mb,lt=ge.nb+mt*je,we(Ae<=ge.P+ge.qc),ee.Z!=0)for(we(Eo[ee.Z]!=null),Le=0;Le<nr;++Le)Eo[ee.Z](Vt,Zt,Ir,Ae,ze,lt,je),Vt=ze,Zt=lt,lt+=je,Ae+=je;else for(Le=0;Le<nr;++Le)Fe(ze,lt,Ir,Ae,je),Vt=ze,Zt=lt,lt+=je,Ae+=je;ge.rc=Vt,ge.Vc=Zt}else{if(we(ee.mc!=null),je=mt+nr,we((Le=ee.mc)!=null),we(je<=Le.i),Le.C>=je)je=1;else if(ee.ic||pe(),ee.ic){ee=Le.V,Vt=Le.Ba,Zt=Le.c;var $r=Le.i,Tr=(Ir=1,Ae=Le.$/Zt,ze=Le.$%Zt,lt=Le.m,Dt=Le.s,Le.$),xr=Zt*$r,zr=Zt*je,nn=Dt.wc,On=Tr<zr?La(Dt,ze,Ae):null;we(Tr<=xr),we(je<=$r),we(Qt(Dt));t:for(;;){for(;!lt.h&&Tr<zr;){if(ze&nn||(On=La(Dt,ze,Ae)),we(On!=null),qn(lt),256>($r=Ra(On.G[0],On.H[0],lt)))ee[Vt+Tr]=$r,++Tr,++ze>=Zt&&(ze=0,++Ae<=je&&!(Ae%16)&&cn(Le,Ae));else{if(!(280>$r)){Ir=0;break t}$r=ha($r-256,lt);var gi,Ai=Ra(On.G[4],On.H[4],lt);if(qn(lt),!(Tr>=(Ai=Pa(Zt,Ai=ha(Ai,lt)))&&xr-Tr>=$r)){Ir=0;break t}for(gi=0;gi<$r;++gi)ee[Vt+Tr+gi]=ee[Vt+Tr+gi-Ai];for(Tr+=$r,ze+=$r;ze>=Zt;)ze-=Zt,++Ae<=je&&!(Ae%16)&&cn(Le,Ae);Tr<zr&&ze&nn&&(On=La(Dt,ze,Ae))}we(lt.h==Fn(lt))}cn(Le,Ae>je?je:Ae);break t}!Ir||lt.h&&Tr<xr?(Ir=0,Le.a=lt.h?5:3):Le.$=Tr,je=Ir}else je=vn(Le,Le.V,Le.Ba,Le.c,Le.i,je,Jt);if(!je){nr=0;break e}}mt+nr>=Yr&&(ge.Cc=1),nr=1}if(!nr)return null;if(ge.Cc&&((nr=ge.ga)!=null&&(nr.mc=null),ge.ga=null,0<ge.Ga))return alert("todo:WebPDequantizeLevels"),null}return ge.nb+mt*Er}function Wr(ge,je,mt,nr,Er,Yr){for(;0<Er--;){var Le,ee=ge,Ae=je+(mt?1:0),ze=ge,lt=je+(mt?0:3);for(Le=0;Le<nr;++Le){var Dt=ze[lt+4*Le];Dt!=255&&(Dt*=32897,ee[Ae+4*Le+0]=ee[Ae+4*Le+0]*Dt>>23,ee[Ae+4*Le+1]=ee[Ae+4*Le+1]*Dt>>23,ee[Ae+4*Le+2]=ee[Ae+4*Le+2]*Dt>>23)}je+=Yr}}function Pn(ge,je,mt,nr,Er){for(;0<nr--;){var Yr;for(Yr=0;Yr<mt;++Yr){var Le=ge[je+2*Yr+0],ee=15&(ze=ge[je+2*Yr+1]),Ae=4369*ee,ze=(240&ze|ze>>4)*Ae>>16;ge[je+2*Yr+0]=(240&Le|Le>>4)*Ae>>16&240|(15&Le|Le<<4)*Ae>>16>>4&15,ge[je+2*Yr+1]=240&ze|ee}je+=Er}}function ht(ge,je,mt,nr,Er,Yr,Le,ee){var Ae,ze,lt=255;for(ze=0;ze<Er;++ze){for(Ae=0;Ae<nr;++Ae){var Dt=ge[je+Ae];Yr[Le+4*Ae]=Dt,lt&=Dt}je+=mt,Le+=ee}return lt!=255}function ne(ge,je,mt,nr,Er){var Yr;for(Yr=0;Yr<Er;++Yr)mt[nr+Yr]=ge[je+Yr]>>8}function pe(){wl=Wr,Kl=Pn,il=ht,fl=ne}function be(ge,je,mt){Hr[ge]=function(nr,Er,Yr,Le,ee,Ae,ze,lt,Dt,Vt,Zt,Ir,$r,Tr,xr,zr,nn){var On,gi=nn-1>>1,Ai=ee[Ae+0]|ze[lt+0]<<16,Qi=Dt[Vt+0]|Zt[Ir+0]<<16;we(nr!=null);var Bi=3*Ai+Qi+131074>>2;for(je(nr[Er+0],255&Bi,Bi>>16,$r,Tr),Yr!=null&&(Bi=3*Qi+Ai+131074>>2,je(Yr[Le+0],255&Bi,Bi>>16,xr,zr)),On=1;On<=gi;++On){var Ma=ee[Ae+On]|ze[lt+On]<<16,ea=Dt[Vt+On]|Zt[Ir+On]<<16,oo=Ai+Ma+Qi+ea+524296,Ba=oo+2*(Ma+Qi)>>3;Bi=Ba+Ai>>1,Ai=(oo=oo+2*(Ai+ea)>>3)+Ma>>1,je(nr[Er+2*On-1],255&Bi,Bi>>16,$r,Tr+(2*On-1)*mt),je(nr[Er+2*On-0],255&Ai,Ai>>16,$r,Tr+(2*On-0)*mt),Yr!=null&&(Bi=oo+Qi>>1,Ai=Ba+ea>>1,je(Yr[Le+2*On-1],255&Bi,Bi>>16,xr,zr+(2*On-1)*mt),je(Yr[Le+2*On+0],255&Ai,Ai>>16,xr,zr+(2*On+0)*mt)),Ai=Ma,Qi=ea}1&nn||(Bi=3*Ai+Qi+131074>>2,je(nr[Er+nn-1],255&Bi,Bi>>16,$r,Tr+(nn-1)*mt),Yr!=null&&(Bi=3*Qi+Ai+131074>>2,je(Yr[Le+nn-1],255&Bi,Bi>>16,xr,zr+(nn-1)*mt)))}}function Ue(){Ko[Nl]=js,Ko[ou]=Ul,Ko[ql]=Bl,Ko[eu]=Ol,Ko[el]=Ll,Ko[tu]=jl,Ko[ru]=Hl,Ko[su]=Ul,Ko[Cl]=Ol,Ko[Dl]=Ll,Ko[Fl]=jl}function pt(ge){return ge&~Vu?0>ge?0:255:ge>>_u}function Xt(ge,je){return pt((19077*ge>>8)+(26149*je>>8)-14234)}function Or(ge,je,mt){return pt((19077*ge>>8)-(6419*je>>8)-(13320*mt>>8)+8708)}function Qr(ge,je){return pt((19077*ge>>8)+(33050*je>>8)-17685)}function dn(ge,je,mt,nr,Er){nr[Er+0]=Xt(ge,mt),nr[Er+1]=Or(ge,je,mt),nr[Er+2]=Qr(ge,je)}function jn(ge,je,mt,nr,Er){nr[Er+0]=Qr(ge,je),nr[Er+1]=Or(ge,je,mt),nr[Er+2]=Xt(ge,mt)}function ai(ge,je,mt,nr,Er){var Yr=Or(ge,je,mt);je=Yr<<3&224|Qr(ge,je)>>3,nr[Er+0]=248&Xt(ge,mt)|Yr>>5,nr[Er+1]=je}function Qn(ge,je,mt,nr,Er){var Yr=240&Qr(ge,je)|15;nr[Er+0]=240&Xt(ge,mt)|Or(ge,je,mt)>>4,nr[Er+1]=Yr}function Di(ge,je,mt,nr,Er){nr[Er+0]=255,dn(ge,je,mt,nr,Er+1)}function Vi(ge,je,mt,nr,Er){jn(ge,je,mt,nr,Er),nr[Er+3]=255}function Ta(ge,je,mt,nr,Er){dn(ge,je,mt,nr,Er),nr[Er+3]=255}function ri(ge,je){return 0>ge?0:ge>je?je:ge}function Ga(ge,je,mt){Hr[ge]=function(nr,Er,Yr,Le,ee,Ae,ze,lt,Dt){for(var Vt=lt+(-2&Dt)*mt;lt!=Vt;)je(nr[Er+0],Yr[Le+0],ee[Ae+0],ze,lt),je(nr[Er+1],Yr[Le+0],ee[Ae+0],ze,lt+mt),Er+=2,++Le,++Ae,lt+=2*mt;1&Dt&&je(nr[Er+0],Yr[Le+0],ee[Ae+0],ze,lt)}}function ao(ge,je,mt){return mt==0?ge==0?je==0?6:5:je==0?4:0:mt}function Do(ge,je,mt,nr,Er){switch(ge>>>30){case 3:bl(je,mt,nr,Er,0);break;case 2:ol(je,mt,nr,Er);break;case 1:zs(je,mt,nr,Er)}}function fo(ge,je){var mt,nr,Er=je.M,Yr=je.Nb,Le=ge.oc,ee=ge.pc+40,Ae=ge.oc,ze=ge.pc+584,lt=ge.oc,Dt=ge.pc+600;for(mt=0;16>mt;++mt)Le[ee+32*mt-1]=129;for(mt=0;8>mt;++mt)Ae[ze+32*mt-1]=129,lt[Dt+32*mt-1]=129;for(0<Er?Le[ee-1-32]=Ae[ze-1-32]=lt[Dt-1-32]=129:(Ye(Le,ee-32-1,127,21),Ye(Ae,ze-32-1,127,9),Ye(lt,Dt-32-1,127,9)),nr=0;nr<ge.za;++nr){var Vt=je.ya[je.aa+nr];if(0<nr){for(mt=-1;16>mt;++mt)Fe(Le,ee+32*mt-4,Le,ee+32*mt+12,4);for(mt=-1;8>mt;++mt)Fe(Ae,ze+32*mt-4,Ae,ze+32*mt+4,4),Fe(lt,Dt+32*mt-4,lt,Dt+32*mt+4,4)}var Zt=ge.Gd,Ir=ge.Hd+nr,$r=Vt.ad,Tr=Vt.Hc;if(0<Er&&(Fe(Le,ee-32,Zt[Ir].y,0,16),Fe(Ae,ze-32,Zt[Ir].f,0,8),Fe(lt,Dt-32,Zt[Ir].ea,0,8)),Vt.Za){var xr=Le,zr=ee-32+16;for(0<Er&&(nr>=ge.za-1?Ye(xr,zr,Zt[Ir].y[15],4):Fe(xr,zr,Zt[Ir+1].y,0,4)),mt=0;4>mt;mt++)xr[zr+128+mt]=xr[zr+256+mt]=xr[zr+384+mt]=xr[zr+0+mt];for(mt=0;16>mt;++mt,Tr<<=2)xr=Le,zr=ee+Ou[mt],Rl[Vt.Ob[mt]](xr,zr),Do(Tr,$r,16*+mt,xr,zr)}else if(xr=ao(nr,Er,Vt.Ob[0]),_l[xr](Le,ee),Tr!=0)for(mt=0;16>mt;++mt,Tr<<=2)Do(Tr,$r,16*+mt,Le,ee+Ou[mt]);for(mt=Vt.Gc,xr=ao(nr,Er,Vt.Dd),Wl[xr](Ae,ze),Wl[xr](lt,Dt),Tr=$r,xr=Ae,zr=ze,255&(Vt=mt>>0)&&(170&Vt?Gs(Tr,256,xr,zr):vl(Tr,256,xr,zr)),Vt=lt,Tr=Dt,255&(mt>>=8)&&(170&mt?Gs($r,320,Vt,Tr):vl($r,320,Vt,Tr)),Er<ge.Ub-1&&(Fe(Zt[Ir].y,0,Le,ee+480,16),Fe(Zt[Ir].f,0,Ae,ze+224,8),Fe(Zt[Ir].ea,0,lt,Dt+224,8)),mt=8*Yr*ge.B,Zt=ge.sa,Ir=ge.ta+16*nr+16*Yr*ge.R,$r=ge.qa,Vt=ge.ra+8*nr+mt,Tr=ge.Ha,xr=ge.Ia+8*nr+mt,mt=0;16>mt;++mt)Fe(Zt,Ir+mt*ge.R,Le,ee+32*mt,16);for(mt=0;8>mt;++mt)Fe($r,Vt+mt*ge.B,Ae,ze+32*mt,8),Fe(Tr,xr+mt*ge.B,lt,Dt+32*mt,8)}}function as(ge,je,mt,nr,Er,Yr,Le,ee,Ae){var ze=[0],lt=[0],Dt=0,Vt=Ae!=null?Ae.kd:0,Zt=Ae!=null?Ae:new Ja;if(ge==null||12>mt)return 7;Zt.data=ge,Zt.w=je,Zt.ha=mt,je=[je],mt=[mt],Zt.gb=[Zt.gb];e:{var Ir=je,$r=mt,Tr=Zt.gb;if(we(ge!=null),we($r!=null),we(Tr!=null),Tr[0]=0,12<=$r[0]&&!Ne(ge,Ir[0],"RIFF")){if(Ne(ge,Ir[0]+8,"WEBP")){Tr=3;break e}var xr=qa(ge,Ir[0]+4);if(12>xr||4294967286<xr){Tr=3;break e}if(Vt&&xr>$r[0]-8){Tr=7;break e}Tr[0]=xr,Ir[0]+=12,$r[0]-=12}Tr=0}if(Tr!=0)return Tr;for(xr=0<Zt.gb[0],mt=mt[0];;){e:{var zr=ge;$r=je,Tr=mt;var nn=ze,On=lt,gi=Ir=[0];if((Bi=Dt=[Dt])[0]=0,8>Tr[0])Tr=7;else{if(!Ne(zr,$r[0],"VP8X")){if(qa(zr,$r[0]+4)!=10){Tr=3;break e}if(18>Tr[0]){Tr=7;break e}var Ai=qa(zr,$r[0]+8),Qi=1+la(zr,$r[0]+12);if(2147483648<=Qi*(zr=1+la(zr,$r[0]+15))){Tr=3;break e}gi!=null&&(gi[0]=Ai),nn!=null&&(nn[0]=Qi),On!=null&&(On[0]=zr),$r[0]+=18,Tr[0]-=18,Bi[0]=1}Tr=0}}if(Dt=Dt[0],Ir=Ir[0],Tr!=0)return Tr;if($r=!!(2&Ir),!xr&&Dt)return 3;if(Yr!=null&&(Yr[0]=!!(16&Ir)),Le!=null&&(Le[0]=$r),ee!=null&&(ee[0]=0),Le=ze[0],Ir=lt[0],Dt&&$r&&Ae==null){Tr=0;break}if(4>mt){Tr=7;break}if(xr&&Dt||!xr&&!Dt&&!Ne(ge,je[0],"ALPH")){mt=[mt],Zt.na=[Zt.na],Zt.P=[Zt.P],Zt.Sa=[Zt.Sa];e:{Ai=ge,Tr=je,xr=mt;var Bi=Zt.gb;nn=Zt.na,On=Zt.P,gi=Zt.Sa,Qi=22,we(Ai!=null),we(xr!=null),zr=Tr[0];var Ma=xr[0];for(we(nn!=null),we(gi!=null),nn[0]=null,On[0]=null,gi[0]=0;;){if(Tr[0]=zr,xr[0]=Ma,8>Ma){Tr=7;break e}var ea=qa(Ai,zr+4);if(4294967286<ea){Tr=3;break e}var oo=8+ea+1&-2;if(Qi+=oo,0<Bi&&Qi>Bi){Tr=3;break e}if(!Ne(Ai,zr,"VP8 ")||!Ne(Ai,zr,"VP8L")){Tr=0;break e}if(Ma[0]<oo){Tr=7;break e}Ne(Ai,zr,"ALPH")||(nn[0]=Ai,On[0]=zr+8,gi[0]=ea),zr+=oo,Ma-=oo}}if(mt=mt[0],Zt.na=Zt.na[0],Zt.P=Zt.P[0],Zt.Sa=Zt.Sa[0],Tr!=0)break}mt=[mt],Zt.Ja=[Zt.Ja],Zt.xa=[Zt.xa];e:if(Bi=ge,Tr=je,xr=mt,nn=Zt.gb[0],On=Zt.Ja,gi=Zt.xa,Ai=Tr[0],zr=!Ne(Bi,Ai,"VP8 "),Qi=!Ne(Bi,Ai,"VP8L"),we(Bi!=null),we(xr!=null),we(On!=null),we(gi!=null),8>xr[0])Tr=7;else{if(zr||Qi){if(Bi=qa(Bi,Ai+4),12<=nn&&Bi>nn-12){Tr=3;break e}if(Vt&&Bi>xr[0]-8){Tr=7;break e}On[0]=Bi,Tr[0]+=8,xr[0]-=8,gi[0]=Qi}else gi[0]=5<=xr[0]&&Bi[Ai+0]==47&&!(Bi[Ai+4]>>5),On[0]=xr[0];Tr=0}if(mt=mt[0],Zt.Ja=Zt.Ja[0],Zt.xa=Zt.xa[0],je=je[0],Tr!=0)break;if(4294967286<Zt.Ja)return 3;if(ee==null||$r||(ee[0]=Zt.xa?2:1),Le=[Le],Ir=[Ir],Zt.xa){if(5>mt){Tr=7;break}ee=Le,Vt=Ir,$r=Yr,ge==null||5>mt?ge=0:5<=mt&&ge[je+0]==47&&!(ge[je+4]>>5)?(xr=[0],Bi=[0],nn=[0],oi(On=new _r,ge,je,mt),da(On,xr,Bi,nn)?(ee!=null&&(ee[0]=xr[0]),Vt!=null&&(Vt[0]=Bi[0]),$r!=null&&($r[0]=nn[0]),ge=1):ge=0):ge=0}else{if(10>mt){Tr=7;break}ee=Ir,ge==null||10>mt||!Yt(ge,je+3,mt-3)?ge=0:(Vt=ge[je+0]|ge[je+1]<<8|ge[je+2]<<16,$r=16383&(ge[je+7]<<8|ge[je+6]),ge=16383&(ge[je+9]<<8|ge[je+8]),1&Vt||3<(Vt>>1&7)||!(Vt>>4&1)||Vt>>5>=Zt.Ja||!$r||!ge?ge=0:(Le&&(Le[0]=$r),ee&&(ee[0]=ge),ge=1))}if(!ge)return 3;if(Le=Le[0],Ir=Ir[0],Dt&&(ze[0]!=Le||lt[0]!=Ir))return 3;Ae!=null&&(Ae[0]=Zt,Ae.offset=je-Ae.w,we(4294967286>je-Ae.w),we(Ae.offset==Ae.ha-mt));break}return Tr==0||Tr==7&&Dt&&Ae==null?(Yr!=null&&(Yr[0]|=Zt.na!=null&&0<Zt.na.length),nr!=null&&(nr[0]=Le),Er!=null&&(Er[0]=Ir),0):Tr}function io(ge,je,mt){var nr=je.width,Er=je.height,Yr=0,Le=0,ee=nr,Ae=Er;if(je.Da=ge!=null&&0<ge.Da,je.Da&&(ee=ge.cd,Ae=ge.bd,Yr=ge.v,Le=ge.j,11>mt||(Yr&=-2,Le&=-2),0>Yr||0>Le||0>=ee||0>=Ae||Yr+ee>nr||Le+Ae>Er))return 0;if(je.v=Yr,je.j=Le,je.va=Yr+ee,je.o=Le+Ae,je.U=ee,je.T=Ae,je.da=ge!=null&&0<ge.da,je.da){if(!oa(ee,Ae,mt=[ge.ib],Yr=[ge.hb]))return 0;je.ib=mt[0],je.hb=Yr[0]}return je.ob=ge!=null&&ge.ob,je.Kb=ge==null||!ge.Sd,je.da&&(je.ob=je.ib<3*nr/4&&je.hb<3*Er/4,je.Kb=0),1}function Xa(ge){if(ge==null)return 2;if(11>ge.S){var je=ge.f.RGBA;je.fb+=(ge.height-1)*je.A,je.A=-je.A}else je=ge.f.kb,ge=ge.height,je.O+=(ge-1)*je.fa,je.fa=-je.fa,je.N+=(ge-1>>1)*je.Ab,je.Ab=-je.Ab,je.W+=(ge-1>>1)*je.Db,je.Db=-je.Db,je.F!=null&&(je.J+=(ge-1)*je.lb,je.lb=-je.lb);return 0}function Ya(ge,je,mt,nr){if(nr==null||0>=ge||0>=je)return 2;if(mt!=null){if(mt.Da){var Er=mt.cd,Yr=mt.bd,Le=-2&mt.v,ee=-2&mt.j;if(0>Le||0>ee||0>=Er||0>=Yr||Le+Er>ge||ee+Yr>je)return 2;ge=Er,je=Yr}if(mt.da){if(!oa(ge,je,Er=[mt.ib],Yr=[mt.hb]))return 2;ge=Er[0],je=Yr[0]}}nr.width=ge,nr.height=je;e:{var Ae=nr.width,ze=nr.height;if(ge=nr.S,0>=Ae||0>=ze||!(ge>=Nl&&13>ge))ge=2;else{if(0>=nr.Rd&&nr.sd==null){Le=Yr=Er=je=0;var lt=(ee=Ae*Eu[ge])*ze;if(11>ge||(Yr=(ze+1)/2*(je=(Ae+1)/2),ge==12&&(Le=(Er=Ae)*ze)),(ze=We(lt+2*Yr+Le))==null){ge=1;break e}nr.sd=ze,11>ge?((Ae=nr.f.RGBA).eb=ze,Ae.fb=0,Ae.A=ee,Ae.size=lt):((Ae=nr.f.kb).y=ze,Ae.O=0,Ae.fa=ee,Ae.Fd=lt,Ae.f=ze,Ae.N=0+lt,Ae.Ab=je,Ae.Cd=Yr,Ae.ea=ze,Ae.W=0+lt+Yr,Ae.Db=je,Ae.Ed=Yr,ge==12&&(Ae.F=ze,Ae.J=0+lt+2*Yr),Ae.Tc=Le,Ae.lb=Er)}if(je=1,Er=nr.S,Yr=nr.width,Le=nr.height,Er>=Nl&&13>Er)if(11>Er)ge=nr.f.RGBA,je&=(ee=Math.abs(ge.A))*(Le-1)+Yr<=ge.size,je&=ee>=Yr*Eu[Er],je&=ge.eb!=null;else{ge=nr.f.kb,ee=(Yr+1)/2,lt=(Le+1)/2,Ae=Math.abs(ge.fa),ze=Math.abs(ge.Ab);var Dt=Math.abs(ge.Db),Vt=Math.abs(ge.lb),Zt=Vt*(Le-1)+Yr;je&=Ae*(Le-1)+Yr<=ge.Fd,je&=ze*(lt-1)+ee<=ge.Cd,je=(je&=Dt*(lt-1)+ee<=ge.Ed)&Ae>=Yr&ze>=ee&Dt>=ee,je&=ge.y!=null,je&=ge.f!=null,je&=ge.ea!=null,Er==12&&(je&=Vt>=Yr,je&=Zt<=ge.Tc,je&=ge.F!=null)}else je=0;ge=je?0:2}}return ge!=0||mt!=null&&mt.fd&&(ge=Xa(nr)),ge}var ka=64,os=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Es=24,qo=32,pa=8,ls=[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];Hi("Predictor0","PredictorAdd0"),Hr.Predictor0=function(){return 4278190080},Hr.Predictor1=function(ge){return ge},Hr.Predictor2=function(ge,je,mt){return je[mt+0]},Hr.Predictor3=function(ge,je,mt){return je[mt+1]},Hr.Predictor4=function(ge,je,mt){return je[mt-1]},Hr.Predictor5=function(ge,je,mt){return Da(Da(ge,je[mt+1]),je[mt+0])},Hr.Predictor6=function(ge,je,mt){return Da(ge,je[mt-1])},Hr.Predictor7=function(ge,je,mt){return Da(ge,je[mt+0])},Hr.Predictor8=function(ge,je,mt){return Da(je[mt-1],je[mt+0])},Hr.Predictor9=function(ge,je,mt){return Da(je[mt+0],je[mt+1])},Hr.Predictor10=function(ge,je,mt){return Da(Da(ge,je[mt-1]),Da(je[mt+0],je[mt+1]))},Hr.Predictor11=function(ge,je,mt){var nr=je[mt+0];return 0>=po(nr>>24&255,ge>>24&255,(je=je[mt-1])>>24&255)+po(nr>>16&255,ge>>16&255,je>>16&255)+po(nr>>8&255,ge>>8&255,je>>8&255)+po(255&nr,255&ge,255&je)?nr:ge},Hr.Predictor12=function(ge,je,mt){var nr=je[mt+0];return(Qa((ge>>24&255)+(nr>>24&255)-((je=je[mt-1])>>24&255))<<24|Qa((ge>>16&255)+(nr>>16&255)-(je>>16&255))<<16|Qa((ge>>8&255)+(nr>>8&255)-(je>>8&255))<<8|Qa((255&ge)+(255&nr)-(255&je)))>>>0},Hr.Predictor13=function(ge,je,mt){var nr=je[mt-1];return(Wo((ge=Da(ge,je[mt+0]))>>24&255,nr>>24&255)<<24|Wo(ge>>16&255,nr>>16&255)<<16|Wo(ge>>8&255,nr>>8&255)<<8|Wo(ge>>0&255,nr>>0&255))>>>0};var Os=Hr.PredictorAdd0;Hr.PredictorAdd1=Mo,Hi("Predictor2","PredictorAdd2"),Hi("Predictor3","PredictorAdd3"),Hi("Predictor4","PredictorAdd4"),Hi("Predictor5","PredictorAdd5"),Hi("Predictor6","PredictorAdd6"),Hi("Predictor7","PredictorAdd7"),Hi("Predictor8","PredictorAdd8"),Hi("Predictor9","PredictorAdd9"),Hi("Predictor10","PredictorAdd10"),Hi("Predictor11","PredictorAdd11"),Hi("Predictor12","PredictorAdd12"),Hi("Predictor13","PredictorAdd13");var ys=Hr.PredictorAdd2;sa("ColorIndexInverseTransform","MapARGB","32b",function(ge){return ge>>8&255},function(ge){return ge}),sa("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(ge){return ge},function(ge){return ge>>8&255});var ms,ws=Hr.ColorIndexInverseTransform,Pl=Hr.MapARGB,ml=Hr.VP8LColorIndexInverseTransformAlpha,Ws=Hr.MapAlpha,fs=Hr.VP8LPredictorsAdd=[];fs.length=16,(Hr.VP8LPredictors=[]).length=16,(Hr.VP8LPredictorsAdd_C=[]).length=16,(Hr.VP8LPredictors_C=[]).length=16;var _s,gl,Bs,Us,Qs,al,El,bl,ol,Gs,zs,vl,Xs,sl,dl,rl,nl,Tl,Rs,bs,Ms,Ts,Zs,hl,wl,Kl,il,fl,kl=We(511),gu=We(2041),Jl=We(225),Zl=We(767),$l=0,Gl=gu,$s=Jl,ll=Zl,pl=kl,Nl=0,ou=1,ql=2,eu=3,el=4,tu=5,ru=6,su=7,Cl=8,Dl=9,Fl=10,Xl=[2,3,7],jo=[3,3,11],Ho=[280,256,256,256,40],us=[0,1,1,1,0],cs=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Cs=[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],ds=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Js=8,ss=[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],Is=[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],Al=null,lu=[[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]],uu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Yl=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],nu=[[[[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]]]],vu=[[[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]]],yu=[[[[255,255,255,255,255,255,255,255,255,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]]]],bu=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],_l=[],Rl=[],Wl=[],es=1,$a=2,Eo=[],Ko=[];be("UpsampleRgbLinePair",dn,3),be("UpsampleBgrLinePair",jn,3),be("UpsampleRgbaLinePair",Ta,4),be("UpsampleBgraLinePair",Vi,4),be("UpsampleArgbLinePair",Di,4),be("UpsampleRgba4444LinePair",Qn,2),be("UpsampleRgb565LinePair",ai,2);var js=Hr.UpsampleRgbLinePair,Bl=Hr.UpsampleBgrLinePair,Ul=Hr.UpsampleRgbaLinePair,Ol=Hr.UpsampleBgraLinePair,Ll=Hr.UpsampleArgbLinePair,jl=Hr.UpsampleRgba4444LinePair,Hl=Hr.UpsampleRgb565LinePair,Vs=16,cu=1<<Vs-1,wu=-227,Au=482,_u=6,Vu=(256<<_u)-1,Fu=0,ec=We(256),Bu=We(256),Gu=We(256),Xu=We(256),Yu=We(Au-wu),Uu=We(Au-wu);Ga("YuvToRgbRow",dn,3),Ga("YuvToBgrRow",jn,3),Ga("YuvToRgbaRow",Ta,4),Ga("YuvToBgraRow",Vi,4),Ga("YuvToArgbRow",Di,4),Ga("YuvToRgba4444Row",Qn,2),Ga("YuvToRgb565Row",ai,2);var Ou=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ql=[0,2,8],Iu=[8,7,6,4,4,2,2,2,1,1,1,1],iu=1;this.WebPDecodeRGBA=function(ge,je,mt,nr,Er){var Yr=ou,Le=new Fa,ee=new ur;Le.ba=ee,ee.S=Yr,ee.width=[ee.width],ee.height=[ee.height];var Ae=ee.width,ze=ee.height,lt=new sn;if(lt==null||ge==null)var Dt=2;else we(lt!=null),Dt=as(ge,je,mt,lt.width,lt.height,lt.Pd,lt.Qd,lt.format,null);if(Dt!=0?Ae=0:(Ae!=null&&(Ae[0]=lt.width[0]),ze!=null&&(ze[0]=lt.height[0]),Ae=1),Ae){ee.width=ee.width[0],ee.height=ee.height[0],nr!=null&&(nr[0]=ee.width),Er!=null&&(Er[0]=ee.height);e:{if(nr=new ji,(Er=new Ja).data=ge,Er.w=je,Er.ha=mt,Er.kd=1,je=[0],we(Er!=null),((ge=as(Er.data,Er.w,Er.ha,null,null,null,je,null,Er))==0||ge==7)&&je[0]&&(ge=4),(je=ge)==0){if(we(Le!=null),nr.data=Er.data,nr.w=Er.w+Er.offset,nr.ha=Er.ha-Er.offset,nr.put=mi,nr.ac=Jn,nr.bc=yi,nr.ma=Le,Er.xa){if((ge=li())==null){Le=1;break e}if(function(Vt,Zt){var Ir=[0],$r=[0],Tr=[0];t:for(;;){if(Vt==null)return 0;if(Zt==null)return Vt.a=2,0;if(Vt.l=Zt,Vt.a=0,oi(Vt.m,Zt.data,Zt.w,Zt.ha),!da(Vt.m,Ir,$r,Tr)){Vt.a=3;break t}if(Vt.xb=$a,Zt.width=Ir[0],Zt.height=$r[0],!fi(Ir[0],$r[0],1,Vt,null))break t;return 1}return we(Vt.a!=0),0}(ge,nr)){if(nr=(je=Ya(nr.width,nr.height,Le.Oa,Le.ba))==0){t:{nr=ge;r:for(;;){if(nr==null){nr=0;break t}if(we(nr.s.yc!=null),we(nr.s.Ya!=null),we(0<nr.s.Wb),we((mt=nr.l)!=null),we((Er=mt.ma)!=null),nr.xb!=0){if(nr.ca=Er.ba,nr.tb=Er.tb,we(nr.ca!=null),!io(Er.Oa,mt,eu)){nr.a=2;break r}if(!di(nr,mt.width))break r;if(mt.da)break r;if((mt.da||rn(nr.ca.S))&&pe(),11>nr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),nr.ca.f.kb.F!=null&&pe()),nr.Pb&&0<nr.s.ua&&nr.s.vb.X==null&&!bi(nr.s.vb,nr.s.Wa.Xa)){nr.a=1;break r}nr.xb=0}if(!vn(nr,nr.V,nr.Ba,nr.c,nr.i,mt.o,So))break r;Er.Dc=nr.Ma,nr=1;break t}we(nr.a!=0),nr=0}nr=!nr}nr&&(je=ge.a)}else je=ge.a}else{if((ge=new ei)==null){Le=1;break e}if(ge.Fa=Er.na,ge.P=Er.P,ge.qc=Er.Sa,vr(ge,nr)){if((je=Ya(nr.width,nr.height,Le.Oa,Le.ba))==0){if(ge.Aa=0,mt=Le.Oa,we((Er=ge)!=null),mt!=null){if(0<(Ae=0>(Ae=mt.Md)?0:100<Ae?255:255*Ae/100)){for(ze=lt=0;4>ze;++ze)12>(Dt=Er.pb[ze]).lc&&(Dt.ia=Ae*Iu[0>Dt.lc?0:Dt.lc]>>3),lt|=Dt.ia;lt&&(alert("todo:VP8InitRandom"),Er.ia=1)}Er.Ga=mt.Id,100<Er.Ga?Er.Ga=100:0>Er.Ga&&(Er.Ga=0)}Fr(ge,nr)||(je=ge.a)}}else je=ge.a}je==0&&Le.Oa!=null&&Le.Oa.fd&&(je=Xa(Le.ba))}Le=je}Yr=Le!=0?null:11>Yr?ee.f.RGBA.eb:ee.f.kb.y}else Yr=null;return Yr};var Eu=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function $t(Ki,Hr){for(var Cn="",kr=0;kr<4;kr++)Cn+=String.fromCharCode(Ki[Hr++]);return Cn}function Mr(Ki,Hr){return(Ki[Hr+0]<<0|Ki[Hr+1]<<8|Ki[Hr+2]<<16)>>>0}function Sr(Ki,Hr){return(Ki[Hr+0]<<0|Ki[Hr+1]<<8|Ki[Hr+2]<<16|Ki[Hr+3]<<24)>>>0}new ot;var jr=[0],tr=[0],gn=[],sr=new ot,un=Ze,an=function(Ki,Hr){var Cn={},kr=0,mr=!1,Cr=0,Nt=0;if(Cn.frames=[],!function(_r,En,Fn,Vn){for(var qn=0;qn<Vn;qn++)if(_r[En+qn]!=Fn.charCodeAt(qn))return!0;return!1}(Ki,Hr,"RIFF",4)){var wr,Gr;for(Sr(Ki,Hr+=4),Hr+=8;Hr<Ki.length;){var Kr=$t(Ki,Hr),qr=Sr(Ki,Hr+=4);Hr+=4;var oi=qr+(1&qr);switch(Kr){case"VP8 ":case"VP8L":Cn.frames[kr]===void 0&&(Cn.frames[kr]={}),(hn=Cn.frames[kr]).src_off=mr?Nt:Hr-8,hn.src_size=Cr+qr+8,kr++,mr&&(mr=!1,Cr=0,Nt=0);break;case"VP8X":(hn=Cn.header={}).feature_flags=Ki[Hr];var Gn=Hr+4;hn.canvas_width=1+Mr(Ki,Gn),Gn+=3,hn.canvas_height=1+Mr(Ki,Gn),Gn+=3;break;case"ALPH":mr=!0,Cr=oi+8,Nt=Hr-8;break;case"ANIM":(hn=Cn.header).bgcolor=Sr(Ki,Hr),Gn=Hr+4,hn.loop_count=(wr=Ki)[(Gr=Gn)+0]<<0|wr[Gr+1]<<8,Gn+=2;break;case"ANMF":var Ti,hn;(hn=Cn.frames[kr]={}).offset_x=2*Mr(Ki,Hr),Hr+=3,hn.offset_y=2*Mr(Ki,Hr),Hr+=3,hn.width=1+Mr(Ki,Hr),Hr+=3,hn.height=1+Mr(Ki,Hr),Hr+=3,hn.duration=Mr(Ki,Hr),Hr+=3,Ti=Ki[Hr++],hn.dispose=1&Ti,hn.blend=Ti>>1&1}Kr!="ANMF"&&(Hr+=oi)}return Cn}}(un,0);an.response=un,an.rgbaoutput=!0,an.dataurl=!1;var Pr=an.header?an.header:null,In=an.frames?an.frames:null;if(Pr){Pr.loop_counter=Pr.loop_count,jr=[Pr.canvas_height],tr=[Pr.canvas_width];for(var ci=0;ci<In.length&&In[ci].blend!=0;ci++);}var Ui=In[0],ki=sr.WebPDecodeRGBA(un,Ui.src_off,Ui.src_size,tr,jr);Ui.rgba=ki,Ui.imgwidth=tr[0],Ui.imgheight=jr[0];for(var Ri=0;Ri<tr[0]*jr[0]*4;Ri++)gn[Ri]=ki[Ri];return this.width=tr,this.height=jr,this.data=gn,this}!function(Ze){var we=function(){return typeof A.b=="function"},Ne=function(tr,gn,sr,un){var an=4,Pr=qe;switch(un){case Ze.image_compression.FAST:an=1,Pr=We;break;case Ze.image_compression.MEDIUM:an=6,Pr=yt;break;case Ze.image_compression.SLOW:an=9,Pr=ot}tr=Fe(tr,gn,sr,Pr);var In=Object(A.b)(tr,{level:an});return Ze.__addimage__.arrayBufferToBinaryString(In)},Fe=function(tr,gn,sr,un){for(var an,Pr,In,ci=tr.length/gn,Ui=new Uint8Array(tr.length+ci),ki=Mr(),Ri=0;Ri<ci;Ri+=1){if(In=Ri*gn,an=tr.subarray(In,In+gn),un)Ui.set(un(an,sr,Pr),In+Ri);else{for(var Ki,Hr=ki.length,Cn=[];Ki<Hr;Ki+=1)Cn[Ki]=ki[Ki](an,sr,Pr);var kr=Sr(Cn.concat());Ui.set(Cn[kr],In+Ri)}Pr=an}return Ui},Ye=function(tr){var gn=Array.apply([],tr);return gn.unshift(0),gn},We=function(tr,gn){var sr,un=[],an=tr.length;un[0]=1;for(var Pr=0;Pr<an;Pr+=1)sr=tr[Pr-gn]||0,un[Pr+1]=tr[Pr]-sr+256&255;return un},qe=function(tr,gn,sr){var un,an=[],Pr=tr.length;an[0]=2;for(var In=0;In<Pr;In+=1)un=sr&&sr[In]||0,an[In+1]=tr[In]-un+256&255;return an},yt=function(tr,gn,sr){var un,an,Pr=[],In=tr.length;Pr[0]=3;for(var ci=0;ci<In;ci+=1)un=tr[ci-gn]||0,an=sr&&sr[ci]||0,Pr[ci+1]=tr[ci]+256-(un+an>>>1)&255;return Pr},ot=function(tr,gn,sr){var un,an,Pr,In,ci=[],Ui=tr.length;ci[0]=4;for(var ki=0;ki<Ui;ki+=1)un=tr[ki-gn]||0,an=sr&&sr[ki]||0,Pr=sr&&sr[ki-gn]||0,In=$t(un,an,Pr),ci[ki+1]=tr[ki]-In+256&255;return ci},$t=function(tr,gn,sr){if(tr===gn&&gn===sr)return tr;var un=Math.abs(gn-sr),an=Math.abs(tr-sr),Pr=Math.abs(tr+gn-sr-sr);return un<=an&&un<=Pr?tr:an<=Pr?gn:sr},Mr=function(){return[Ye,We,qe,yt,ot]},Sr=function(tr){var gn=tr.map(function(sr){return sr.reduce(function(un,an){return un+Math.abs(an)},0)});return gn.indexOf(Math.min.apply(null,gn))};Ze.processPNG=function(jr,tr,gn,sr){var un,an,Pr,In,ci,Ui,ki,Ri,Ki,Hr,Cn,kr,mr,Cr,Nt,wr=this.decode.FLATE_DECODE,Gr="";if(this.__addimage__.isArrayBuffer(jr)&&(jr=new Uint8Array(jr)),this.__addimage__.isArrayBufferView(jr)){if(jr=(Pr=new at(jr)).imgData,an=Pr.bits,un=Pr.colorSpace,ci=Pr.colors,[4,6].indexOf(Pr.colorType)!==-1){if(Pr.bits===8){Ki=(Ri=Pr.pixelBitlength==32?new Uint32Array(Pr.decodePixels().buffer):Pr.pixelBitlength==16?new Uint16Array(Pr.decodePixels().buffer):new Uint8Array(Pr.decodePixels().buffer)).length,Cn=new Uint8Array(Ki*Pr.colors),Hr=new Uint8Array(Ki);var Kr,qr=Pr.pixelBitlength-Pr.bits;for(Cr=0,Nt=0;Cr<Ki;Cr++){for(mr=Ri[Cr],Kr=0;Kr<qr;)Cn[Nt++]=mr>>>Kr&255,Kr+=Pr.bits;Hr[Cr]=mr>>>Kr&255}}if(Pr.bits===16){Ki=(Ri=new Uint32Array(Pr.decodePixels().buffer)).length,Cn=new Uint8Array(Ki*(32/Pr.pixelBitlength)*Pr.colors),Hr=new Uint8Array(Ki*(32/Pr.pixelBitlength)),kr=Pr.colors>1,Cr=0,Nt=0;for(var oi=0;Cr<Ki;)mr=Ri[Cr++],Cn[Nt++]=mr>>>0&255,kr&&(Cn[Nt++]=mr>>>16&255,mr=Ri[Cr++],Cn[Nt++]=mr>>>0&255),Hr[oi++]=mr>>>16&255;an=8}sr!==Ze.image_compression.NONE&&we()?(jr=Ne(Cn,Pr.width*Pr.colors,Pr.colors,sr),ki=Ne(Hr,Pr.width,1,sr)):(jr=Cn,ki=Hr,wr=void 0)}if(Pr.colorType===3&&(un=this.color_spaces.INDEXED,Ui=Pr.palette,Pr.transparency.indexed)){var Gn=Pr.transparency.indexed,Ti=0;for(Cr=0,Ki=Gn.length;Cr<Ki;++Cr)Ti+=Gn[Cr];if((Ti/=255)===Ki-1&&Gn.indexOf(0)!==-1)In=[Gn.indexOf(0)];else if(Ti!==Ki){for(Ri=Pr.decodePixels(),Hr=new Uint8Array(Ri.length),Cr=0,Ki=Ri.length;Cr<Ki;Cr++)Hr[Cr]=Gn[Ri[Cr]];ki=Ne(Hr,Pr.width,1)}}var hn=function(_r){var En;switch(_r){case Ze.image_compression.FAST:En=11;break;case Ze.image_compression.MEDIUM:En=13;break;case Ze.image_compression.SLOW:En=14;break;default:En=12}return En}(sr);return wr===this.decode.FLATE_DECODE&&(Gr="/Predictor "+hn+" "),Gr+="/Colors "+ci+" /BitsPerComponent "+an+" /Columns "+Pr.width,(this.__addimage__.isArrayBuffer(jr)||this.__addimage__.isArrayBufferView(jr))&&(jr=this.__addimage__.arrayBufferToBinaryString(jr)),(ki&&this.__addimage__.isArrayBuffer(ki)||this.__addimage__.isArrayBufferView(ki))&&(ki=this.__addimage__.arrayBufferToBinaryString(ki)),{alias:gn,data:jr,index:tr,filter:wr,decodeParameters:Gr,transparency:In,palette:Ui,sMask:ki,predictor:hn,width:Pr.width,height:Pr.height,bitsPerComponent:an,colorSpace:un}}}}(j.API),function(Ze){Ze.processGIF89A=function(we,Ne,Fe,Ye){var We=new wt(we),qe=We.width,yt=We.height,ot=[];We.decodeAndBlitFrameRGBA(0,ot);var $t={data:ot,width:qe,height:yt},Mr=new xt(100).encode($t,100);return Ze.processJPEG.call(this,Mr,Ne,Fe,Ye)},Ze.processGIF87A=Ze.processGIF89A}(j.API),Lt.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 Ze=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(Ze);for(var we=0;we<Ze;we++){var Ne=this.datav.getUint8(this.pos++,!0),Fe=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),We=this.datav.getUint8(this.pos++,!0);this.palette[we]={red:Ye,green:Fe,blue:Ne,quad:We}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Lt.prototype.parseBGR=function(){this.pos=this.offset;try{var Ze="bit"+this.bitPP,we=this.width*this.height*4;this.data=new Uint8Array(we),this[Ze]()}catch(Ne){f.log("bit decode error:"+Ne)}},Lt.prototype.bit1=function(){var Ze,we=Math.ceil(this.width/8),Ne=we%4;for(Ze=this.height-1;Ze>=0;Ze--){for(var Fe=this.bottom_up?Ze:this.height-1-Ze,Ye=0;Ye<we;Ye++)for(var We=this.datav.getUint8(this.pos++,!0),qe=Fe*this.width*4+8*Ye*4,yt=0;yt<8&&8*Ye+yt<this.width;yt++){var ot=this.palette[We>>7-yt&1];this.data[qe+4*yt]=ot.blue,this.data[qe+4*yt+1]=ot.green,this.data[qe+4*yt+2]=ot.red,this.data[qe+4*yt+3]=255}Ne!==0&&(this.pos+=4-Ne)}},Lt.prototype.bit4=function(){for(var Ze=Math.ceil(this.width/2),we=Ze%4,Ne=this.height-1;Ne>=0;Ne--){for(var Fe=this.bottom_up?Ne:this.height-1-Ne,Ye=0;Ye<Ze;Ye++){var We=this.datav.getUint8(this.pos++,!0),qe=Fe*this.width*4+2*Ye*4,yt=We>>4,ot=15&We,$t=this.palette[yt];if(this.data[qe]=$t.blue,this.data[qe+1]=$t.green,this.data[qe+2]=$t.red,this.data[qe+3]=255,2*Ye+1>=this.width)break;$t=this.palette[ot],this.data[qe+4]=$t.blue,this.data[qe+4+1]=$t.green,this.data[qe+4+2]=$t.red,this.data[qe+4+3]=255}we!==0&&(this.pos+=4-we)}},Lt.prototype.bit8=function(){for(var Ze=this.width%4,we=this.height-1;we>=0;we--){for(var Ne=this.bottom_up?we:this.height-1-we,Fe=0;Fe<this.width;Fe++){var Ye=this.datav.getUint8(this.pos++,!0),We=Ne*this.width*4+4*Fe;if(Ye<this.palette.length){var qe=this.palette[Ye];this.data[We]=qe.red,this.data[We+1]=qe.green,this.data[We+2]=qe.blue,this.data[We+3]=255}else this.data[We]=255,this.data[We+1]=255,this.data[We+2]=255,this.data[We+3]=255}Ze!==0&&(this.pos+=4-Ze)}},Lt.prototype.bit15=function(){for(var Ze=this.width%3,we=parseInt("11111",2),Ne=this.height-1;Ne>=0;Ne--){for(var Fe=this.bottom_up?Ne:this.height-1-Ne,Ye=0;Ye<this.width;Ye++){var We=this.datav.getUint16(this.pos,!0);this.pos+=2;var qe=(We&we)/we*255|0,yt=(We>>5&we)/we*255|0,ot=(We>>10&we)/we*255|0,$t=We>>15?255:0,Mr=Fe*this.width*4+4*Ye;this.data[Mr]=ot,this.data[Mr+1]=yt,this.data[Mr+2]=qe,this.data[Mr+3]=$t}this.pos+=Ze}},Lt.prototype.bit16=function(){for(var Ze=this.width%3,we=parseInt("11111",2),Ne=parseInt("111111",2),Fe=this.height-1;Fe>=0;Fe--){for(var Ye=this.bottom_up?Fe:this.height-1-Fe,We=0;We<this.width;We++){var qe=this.datav.getUint16(this.pos,!0);this.pos+=2;var yt=(qe&we)/we*255|0,ot=(qe>>5&Ne)/Ne*255|0,$t=(qe>>11)/we*255|0,Mr=Ye*this.width*4+4*We;this.data[Mr]=$t,this.data[Mr+1]=ot,this.data[Mr+2]=yt,this.data[Mr+3]=255}this.pos+=Ze}},Lt.prototype.bit24=function(){for(var Ze=this.height-1;Ze>=0;Ze--){for(var we=this.bottom_up?Ze:this.height-1-Ze,Ne=0;Ne<this.width;Ne++){var Fe=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),We=this.datav.getUint8(this.pos++,!0),qe=we*this.width*4+4*Ne;this.data[qe]=We,this.data[qe+1]=Ye,this.data[qe+2]=Fe,this.data[qe+3]=255}this.pos+=this.width%4}},Lt.prototype.bit32=function(){for(var Ze=this.height-1;Ze>=0;Ze--)for(var we=this.bottom_up?Ze:this.height-1-Ze,Ne=0;Ne<this.width;Ne++){var Fe=this.datav.getUint8(this.pos++,!0),Ye=this.datav.getUint8(this.pos++,!0),We=this.datav.getUint8(this.pos++,!0),qe=this.datav.getUint8(this.pos++,!0),yt=we*this.width*4+4*Ne;this.data[yt]=We,this.data[yt+1]=Ye,this.data[yt+2]=Fe,this.data[yt+3]=qe}},Lt.prototype.getData=function(){return this.data},function(Ze){Ze.processBMP=function(we,Ne,Fe,Ye){var We=new Lt(we,!1),qe=We.width,yt=We.height,ot={data:We.getData(),width:qe,height:yt},$t=new xt(100).encode(ot,100);return Ze.processJPEG.call(this,$t,Ne,Fe,Ye)}}(j.API),gr.prototype.getData=function(){return this.data},function(Ze){Ze.processWEBP=function(we,Ne,Fe,Ye){var We=new gr(we,!1),qe=We.width,yt=We.height,ot={data:We.getData(),width:qe,height:yt},$t=new xt(100).encode(ot,100);return Ze.processJPEG.call(this,$t,Ne,Fe,Ye)}}(j.API),j.API.processRGBA=function(Ze,we,Ne){for(var Fe=Ze.data,Ye=Fe.length,We=new Uint8Array(Ye/4*3),qe=new Uint8Array(Ye/4),yt=0,ot=0,$t=0;$t<Ye;$t+=4){var Mr=Fe[$t],Sr=Fe[$t+1],jr=Fe[$t+2],tr=Fe[$t+3];We[yt++]=Mr,We[yt++]=Sr,We[yt++]=jr,qe[ot++]=tr}var gn=this.__addimage__.arrayBufferToBinaryString(We);return{alpha:this.__addimage__.arrayBufferToBinaryString(qe),data:gn,index:we,alias:Ne,colorSpace:"DeviceRGB",bitsPerComponent:8,width:Ze.width,height:Ze.height}},j.API.setLanguage=function(Ze){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"}[Ze]!==void 0&&(this.internal.languageSettings.languageCode=Ze,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},jt=j.API,At=jt.getCharWidthsArray=function(Ze,we){var Ne,Fe,Ye=(we=we||{}).font||this.internal.getFont(),We=we.fontSize||this.internal.getFontSize(),qe=we.charSpace||this.internal.getCharSpace(),yt=we.widths?we.widths:Ye.metadata.Unicode.widths,ot=yt.fof?yt.fof:1,$t=we.kerning?we.kerning:Ye.metadata.Unicode.kerning,Mr=$t.fof?$t.fof:1,Sr=we.doKerning!==!1,jr=0,tr=Ze.length,gn=0,sr=yt[0]||ot,un=[];for(Ne=0;Ne<tr;Ne++)Fe=Ze.charCodeAt(Ne),typeof Ye.metadata.widthOfString=="function"?un.push((Ye.metadata.widthOfGlyph(Ye.metadata.characterToGlyph(Fe))+qe*(1e3/We)||0)/1e3):(jr=Sr&&C()($t[Fe])==="object"&&!isNaN(parseInt($t[Fe][gn],10))?$t[Fe][gn]/Mr:0,un.push((yt[Fe]||sr)/ot+jr)),gn=Fe;return un},Re=jt.getStringUnitWidth=function(Ze,we){var Ne=(we=we||{}).fontSize||this.internal.getFontSize(),Fe=we.font||this.internal.getFont(),Ye=we.charSpace||this.internal.getCharSpace();return jt.processArabic&&(Ze=jt.processArabic(Ze)),typeof Fe.metadata.widthOfString=="function"?Fe.metadata.widthOfString(Ze,Ne,Ye)/Ne:At.apply(this,arguments).reduce(function(We,qe){return We+qe},0)},Ke=function(we,Ne,Fe,Ye){for(var We=[],qe=0,yt=we.length,ot=0;qe!==yt&&ot+Ne[qe]<Fe;)ot+=Ne[qe],qe++;We.push(we.slice(0,qe));var $t=qe;for(ot=0;qe!==yt;)ot+Ne[qe]>Ye&&(We.push(we.slice($t,qe)),ot=0,$t=qe),ot+=Ne[qe],qe++;return $t!==qe&&We.push(we.slice($t,qe)),We},Pe=function(we,Ne,Fe){Fe||(Fe={});var Ye,We,qe,yt,ot,$t,Mr,Sr=[],jr=[Sr],tr=Fe.textIndent||0,gn=0,sr=0,un=we.split(" "),an=At.apply(this,[" ",Fe])[0];if($t=Fe.lineIndent===-1?un[0].length+2:Fe.lineIndent||0){var Pr=Array($t).join(" "),In=[];un.map(function(Ui){(Ui=Ui.split(/\s*\n/)).length>1?In=In.concat(Ui.map(function(ki,Ri){return(Ri&&ki.length?`
`:"")+ki})):In.push(Ui[0])}),un=In,$t=Re.apply(this,[Pr,Fe])}for(qe=0,yt=un.length;qe<yt;qe++){var ci=0;if(Ye=un[qe],$t&&Ye[0]==`
`&&(Ye=Ye.substr(1),ci=1),tr+gn+(sr=(We=At.apply(this,[Ye,Fe])).reduce(function(Ui,ki){return Ui+ki},0))>Ne||ci){if(sr>Ne){for(ot=Ke.apply(this,[Ye,We,Ne-(tr+gn),Ne]),Sr.push(ot.shift()),Sr=[ot.pop()];ot.length;)jr.push([ot.shift()]);sr=We.slice(Ye.length-(Sr[0]?Sr[0].length:0)).reduce(function(Ui,ki){return Ui+ki},0)}else Sr=[Ye];jr.push(Sr),tr=sr+$t,gn=an}else Sr.push(Ye),tr+=gn+sr,gn=an}return Mr=$t?function(Ui,ki){return(ki?Pr:"")+Ui.join(" ")}:function(Ui){return Ui.join(" ")},jr.map(Mr)},jt.splitTextToSize=function(Ze,we,Ne){var Fe,Ye=(Ne=Ne||{}).fontSize||this.internal.getFontSize(),We=function(Mr){if(Mr.widths&&Mr.kerning)return{widths:Mr.widths,kerning:Mr.kerning};var Sr=this.internal.getFont(Mr.fontName,Mr.fontStyle);return Sr.metadata.Unicode?{widths:Sr.metadata.Unicode.widths||{0:1},kerning:Sr.metadata.Unicode.kerning||{}}:{font:Sr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,Ne);Fe=Array.isArray(Ze)?Ze:String(Ze).split(/\r?\n/);var qe=1*this.internal.scaleFactor*we/Ye;We.textIndent=Ne.textIndent?1*Ne.textIndent*this.internal.scaleFactor/Ye:0,We.lineIndent=Ne.lineIndent;var yt,ot,$t=[];for(yt=0,ot=Fe.length;yt<ot;yt++)$t=$t.concat(Pe.apply(this,[Fe[yt],qe,We]));return $t},function(Ze){Ze.__fontmetrics__=Ze.__fontmetrics__||{};for(var we="klmnopqrstuvwxyz",Ne={},Fe={},Ye=0;Ye<we.length;Ye++)Ne[we[Ye]]="0123456789abcdef"[Ye],Fe["0123456789abcdef"[Ye]]=we[Ye];var We=function(jr){return"0x"+parseInt(jr,10).toString(16)},qe=Ze.__fontmetrics__.compress=function(Sr){var jr,tr,gn,sr,un=["{"];for(var an in Sr){if(jr=Sr[an],isNaN(parseInt(an,10))?tr="'"+an+"'":(an=parseInt(an,10),tr=(tr=We(an).slice(2)).slice(0,-1)+Fe[tr.slice(-1)]),typeof jr=="number")jr<0?(gn=We(jr).slice(3),sr="-"):(gn=We(jr).slice(2),sr=""),gn=sr+gn.slice(0,-1)+Fe[gn.slice(-1)];else{if(C()(jr)!=="object")throw new Error("Don't know what to do with value type "+C()(jr)+".");gn=qe(jr)}un.push(tr+gn)}return un.push("}"),un.join("")},yt=Ze.__fontmetrics__.uncompress=function(Sr){if(typeof Sr!="string")throw new Error("Invalid argument passed to uncompress.");for(var jr,tr,gn,sr,un={},an=1,Pr=un,In=[],ci="",Ui="",ki=Sr.length-1,Ri=1;Ri<ki;Ri+=1)(sr=Sr[Ri])=="'"?jr?(gn=jr.join(""),jr=void 0):jr=[]:jr?jr.push(sr):sr=="{"?(In.push([Pr,gn]),Pr={},gn=void 0):sr=="}"?((tr=In.pop())[0][tr[1]]=Pr,gn=void 0,Pr=tr[0]):sr=="-"?an=-1:gn===void 0?Ne.hasOwnProperty(sr)?(ci+=Ne[sr],gn=parseInt(ci,16)*an,an=1,ci=""):ci+=sr:Ne.hasOwnProperty(sr)?(Ui+=Ne[sr],Pr[gn]=parseInt(Ui,16)*an,an=1,gn=void 0,Ui=""):Ui+=sr;return un},ot={codePages:["WinAnsiEncoding"],WinAnsiEncoding:yt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},$t={Unicode:{Courier:ot,"Courier-Bold":ot,"Courier-BoldOblique":ot,"Courier-Oblique":ot,Helvetica:ot,"Helvetica-Bold":ot,"Helvetica-BoldOblique":ot,"Helvetica-Oblique":ot,"Times-Roman":ot,"Times-Bold":ot,"Times-BoldItalic":ot,"Times-Italic":ot}},Mr={Unicode:{"Courier-Oblique":yt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":yt("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":yt("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:yt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":yt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":yt("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:yt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:yt("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":yt("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:yt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":yt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":yt("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":yt("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":yt("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};Ze.events.push(["addFont",function(Sr){var jr=Sr.font,tr=Mr.Unicode[jr.postScriptName];tr&&(jr.metadata.Unicode={},jr.metadata.Unicode.widths=tr.widths,jr.metadata.Unicode.kerning=tr.kerning);var gn=$t.Unicode[jr.postScriptName];gn&&(jr.metadata.Unicode.encoding=gn,jr.encoding=gn.codePages[0])}])}(j.API),function(Ze){var we=function(Fe){for(var Ye=Fe.length,We=new Uint8Array(Ye),qe=0;qe<Ye;qe++)We[qe]=Fe.charCodeAt(qe);return We};Ze.API.events.push(["addFont",function(Ne){var Fe=void 0,Ye=Ne.font,We=Ne.instance;if(!Ye.isStandardFont){if(We===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+Ye.postScriptName+"').");if(typeof(Fe=We.existsFileInVFS(Ye.postScriptName)===!1?We.loadFile(Ye.postScriptName):We.getFileFromVFS(Ye.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+Ye.postScriptName+"').");!function(qe,yt){yt=/^\x00\x01\x00\x00/.test(yt)?we(yt):we(i(yt)),qe.metadata=Ze.API.TTFFont.open(yt),qe.metadata.Unicode=qe.metadata.Unicode||{encoding:{},kerning:{},widths:[]},qe.metadata.glyIdsUsed=[0]}(Ye,Fe)}}])}(j),function(Ze){function we(){return(b.canvg?Promise.resolve(b.canvg):Promise.all([d.e(0),d.e(240)]).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})}j.API.addSvgAsImage=function(Ne,Fe,Ye,We,qe,yt,ot,$t){if(isNaN(Fe)||isNaN(Ye))throw f.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(We)||isNaN(qe))throw f.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=We,Mr.height=qe;var Sr=Mr.getContext("2d");Sr.fillStyle="#fff",Sr.fillRect(0,0,Mr.width,Mr.height);var jr={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},tr=this;return we().then(function(gn){return gn.fromString(Sr,Ne,jr)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(gn){return gn.render(jr)}).then(function(){tr.addImage(Mr.toDataURL("image/jpeg",1),Fe,Ye,We,qe,ot,$t)})}}(),j.API.putTotalPages=function(Ze){var we,Ne=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(we=new RegExp(Ze,"g"),Ne=this.internal.getNumberOfPages()):(we=new RegExp(this.pdfEscape16(Ze,this.internal.getFont()),"g"),Ne=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Fe=1;Fe<=this.internal.getNumberOfPages();Fe++)for(var Ye=0;Ye<this.internal.pages[Fe].length;Ye++)this.internal.pages[Fe][Ye]=this.internal.pages[Fe][Ye].replace(we,Ne);return this},j.API.viewerPreferences=function(Ze,we){var Ne;Ze=Ze||{},we=we||!1;var Fe,Ye,We,qe={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},yt=Object.keys(qe),ot=[],$t=0,Mr=0,Sr=0;function jr(gn,sr){var un,an=!1;for(un=0;un<gn.length;un+=1)gn[un]===sr&&(an=!0);return an}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(qe)),this.internal.viewerpreferences.isSubscribed=!1),Ne=this.internal.viewerpreferences.configuration,Ze==="reset"||we===!0){var tr=yt.length;for(Sr=0;Sr<tr;Sr+=1)Ne[yt[Sr]].value=Ne[yt[Sr]].defaultValue,Ne[yt[Sr]].explicitSet=!1}if(C()(Ze)==="object"){for(Ye in Ze)if(We=Ze[Ye],jr(yt,Ye)&&We!==void 0){if(Ne[Ye].type==="boolean"&&typeof We=="boolean")Ne[Ye].value=We;else if(Ne[Ye].type==="name"&&jr(Ne[Ye].valueSet,We))Ne[Ye].value=We;else if(Ne[Ye].type==="integer"&&Number.isInteger(We))Ne[Ye].value=We;else if(Ne[Ye].type==="array"){for($t=0;$t<We.length;$t+=1)if(Fe=!0,We[$t].length===1&&typeof We[$t][0]=="number")ot.push(String(We[$t]-1));else if(We[$t].length>1){for(Mr=0;Mr<We[$t].length;Mr+=1)typeof We[$t][Mr]!="number"&&(Fe=!1);Fe===!0&&ot.push([We[$t][0]-1,We[$t][1]-1].join(" "))}Ne[Ye].value="["+ot.join(" ")+"]"}else Ne[Ye].value=Ne[Ye].defaultValue;Ne[Ye].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var gn,sr=[];for(gn in Ne)Ne[gn].explicitSet===!0&&(Ne[gn].type==="name"?sr.push("/"+gn+" /"+Ne[gn].value):sr.push("/"+gn+" "+Ne[gn].value));sr.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+sr.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=Ne,this},function(Ze){var we=function(){var Ye='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',We=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),qe=unescape(encodeURIComponent(Ye)),yt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),ot=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),$t=unescape(encodeURIComponent("</x:xmpmeta>")),Mr=qe.length+yt.length+ot.length+We.length+$t.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(We+qe+yt+ot+$t),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")};Ze.addMetadata=function(Fe,Ye){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Fe,namespaceuri:Ye||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",Ne),this.internal.events.subscribe("postPutResources",we)),this}}(j.API),function(Ze){var we=Ze.API,Ne=we.pdfEscape16=function(We,qe){for(var yt,ot=qe.metadata.Unicode.widths,$t=["","0","00","000","0000"],Mr=[""],Sr=0,jr=We.length;Sr<jr;++Sr){if(yt=qe.metadata.characterToGlyph(We.charCodeAt(Sr)),qe.metadata.glyIdsUsed.push(yt),qe.metadata.toUnicode[yt]=We.charCodeAt(Sr),ot.indexOf(yt)==-1&&(ot.push(yt),ot.push([parseInt(qe.metadata.widthOfGlyph(yt),10)])),yt=="0")return Mr.join("");yt=yt.toString(16),Mr.push($t[4-yt.length],yt)}return Mr.join("")},Fe=function(qe){var yt,ot,$t,Mr,Sr,jr,tr;for(Sr=`/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`,$t=[],jr=0,tr=(ot=Object.keys(qe).sort(function(gn,sr){return gn-sr})).length;jr<tr;jr++)yt=ot[jr],$t.length>=100&&(Sr+=`
`+$t.length+` beginbfchar
`+$t.join(`
`)+`
endbfchar`,$t=[]),qe[yt]!==void 0&&qe[yt]!==null&&typeof qe[yt].toString=="function"&&(Mr=("0000"+qe[yt].toString(16)).slice(-4),yt=("0000"+(+yt).toString(16)).slice(-4),$t.push("<"+yt+"><"+Mr+">"));return $t.length&&(Sr+=`
`+$t.length+` beginbfchar
`+$t.join(`
`)+`
endbfchar
`),Sr+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};we.events.push(["putFont",function(We){!function(qe){var yt=qe.font,ot=qe.out,$t=qe.newObject,Mr=qe.putStream;if(yt.metadata instanceof Ze.API.TTFFont&&yt.encoding==="Identity-H"){for(var Sr=yt.metadata.Unicode.widths,jr=yt.metadata.subset.encode(yt.metadata.glyIdsUsed,1),tr="",gn=0;gn<jr.length;gn++)tr+=String.fromCharCode(jr[gn]);var sr=$t();Mr({data:tr,addLength1:!0,objectId:sr}),ot("endobj");var un=$t();Mr({data:Fe(yt.metadata.toUnicode),addLength1:!0,objectId:un}),ot("endobj");var an=$t();ot("<<"),ot("/Type /FontDescriptor"),ot("/FontName /"+R(yt.fontName)),ot("/FontFile2 "+sr+" 0 R"),ot("/FontBBox "+Ze.API.PDFObject.convert(yt.metadata.bbox)),ot("/Flags "+yt.metadata.flags),ot("/StemV "+yt.metadata.stemV),ot("/ItalicAngle "+yt.metadata.italicAngle),ot("/Ascent "+yt.metadata.ascender),ot("/Descent "+yt.metadata.decender),ot("/CapHeight "+yt.metadata.capHeight),ot(">>"),ot("endobj");var Pr=$t();ot("<<"),ot("/Type /Font"),ot("/BaseFont /"+R(yt.fontName)),ot("/FontDescriptor "+an+" 0 R"),ot("/W "+Ze.API.PDFObject.convert(Sr)),ot("/CIDToGIDMap /Identity"),ot("/DW 1000"),ot("/Subtype /CIDFontType2"),ot("/CIDSystemInfo"),ot("<<"),ot("/Supplement 0"),ot("/Registry (Adobe)"),ot("/Ordering ("+yt.encoding+")"),ot(">>"),ot(">>"),ot("endobj"),yt.objectNumber=$t(),ot("<<"),ot("/Type /Font"),ot("/Subtype /Type0"),ot("/ToUnicode "+un+" 0 R"),ot("/BaseFont /"+R(yt.fontName)),ot("/Encoding /"+yt.encoding),ot("/DescendantFonts ["+Pr+" 0 R]"),ot(">>"),ot("endobj"),yt.isAlreadyPutted=!0}}(We)}]),we.events.push(["putFont",function(We){!function(qe){var yt=qe.font,ot=qe.out,$t=qe.newObject,Mr=qe.putStream;if(yt.metadata instanceof Ze.API.TTFFont&&yt.encoding==="WinAnsiEncoding"){for(var Sr=yt.metadata.rawData,jr="",tr=0;tr<Sr.length;tr++)jr+=String.fromCharCode(Sr[tr]);var gn=$t();Mr({data:jr,addLength1:!0,objectId:gn}),ot("endobj");var sr=$t();Mr({data:Fe(yt.metadata.toUnicode),addLength1:!0,objectId:sr}),ot("endobj");var un=$t();ot("<<"),ot("/Descent "+yt.metadata.decender),ot("/CapHeight "+yt.metadata.capHeight),ot("/StemV "+yt.metadata.stemV),ot("/Type /FontDescriptor"),ot("/FontFile2 "+gn+" 0 R"),ot("/Flags 96"),ot("/FontBBox "+Ze.API.PDFObject.convert(yt.metadata.bbox)),ot("/FontName /"+R(yt.fontName)),ot("/ItalicAngle "+yt.metadata.italicAngle),ot("/Ascent "+yt.metadata.ascender),ot(">>"),ot("endobj"),yt.objectNumber=$t();for(var an=0;an<yt.metadata.hmtx.widths.length;an++)yt.metadata.hmtx.widths[an]=parseInt(yt.metadata.hmtx.widths[an]*(1e3/yt.metadata.head.unitsPerEm));ot("<</Subtype/TrueType/Type/Font/ToUnicode "+sr+" 0 R/BaseFont/"+R(yt.fontName)+"/FontDescriptor "+un+" 0 R/Encoding/"+yt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+Ze.API.PDFObject.convert(yt.metadata.hmtx.widths)+">>"),ot("endobj"),yt.isAlreadyPutted=!0}}(We)}]);var Ye=function(qe){var yt,ot=qe.text||"",$t=qe.x,Mr=qe.y,Sr=qe.options||{},jr=qe.mutex||{},tr=jr.pdfEscape,gn=jr.activeFontKey,sr=jr.fonts,un=gn,an="",Pr=0,In="",ci=sr[un].encoding;if(sr[un].encoding!=="Identity-H")return{text:ot,x:$t,y:Mr,options:Sr,mutex:jr};for(In=ot,un=gn,Array.isArray(ot)&&(In=ot[0]),Pr=0;Pr<In.length;Pr+=1)sr[un].metadata.hasOwnProperty("cmap")&&(yt=sr[un].metadata.cmap.unicode.codeMap[In[Pr].charCodeAt(0)]),yt||In[Pr].charCodeAt(0)<256&&sr[un].metadata.hasOwnProperty("Unicode")?an+=In[Pr]:an+="";var Ui="";return parseInt(un.slice(1))<14||ci==="WinAnsiEncoding"?Ui=tr(an,un).split("").map(function(ki){return ki.charCodeAt(0).toString(16)}).join(""):ci==="Identity-H"&&(Ui=Ne(an,sr[un])),jr.isHex=!0,{text:Ui,x:$t,y:Mr,options:Sr,mutex:jr}};we.events.push(["postProcessText",function(We){var qe=We.text||"",yt=[],ot={text:qe,x:We.x,y:We.y,options:We.options,mutex:We.mutex};if(Array.isArray(qe)){var $t=0;for($t=0;$t<qe.length;$t+=1)Array.isArray(qe[$t])&&qe[$t].length===3?yt.push([Ye(Object.assign({},ot,{text:qe[$t][0]})).text,qe[$t][1],qe[$t][2]]):yt.push(Ye(Object.assign({},ot,{text:qe[$t]})).text);We.text=yt}else We.text=Ye(Object.assign({},ot,{text:qe})).text}])}(j),function(Ze){var we=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};Ze.existsFileInVFS=function(Ne){return we.call(this),this.internal.vFS[Ne]!==void 0},Ze.addFileToVFS=function(Ne,Fe){return we.call(this),this.internal.vFS[Ne]=Fe,this},Ze.getFileFromVFS=function(Ne){return we.call(this),this.internal.vFS[Ne]!==void 0?this.internal.vFS[Ne]:null}}(j.API),function(Ze){Ze.__bidiEngine__=Ze.prototype.__bidiEngine__=function(Fe){var Ye,We,qe,yt,ot,$t,Mr,Sr=we,jr=[[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]],tr=[[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]],gn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},sr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},un=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],an=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),Pr=!1,In=0;this.__bidiEngine__={};var ci=function(mr){var Cr=mr.charCodeAt(),Nt=Cr>>8,wr=sr[Nt];return wr!==void 0?Sr[256*wr+(255&Cr)]:Nt===252||Nt===253?"AL":an.test(Nt)?"L":Nt===8?"R":"N"},Ui=function(mr){for(var Cr,Nt=0;Nt<mr.length;Nt++){if((Cr=ci(mr.charAt(Nt)))==="L")return!1;if(Cr==="R")return!0}return!1},ki=function(mr,Cr,Nt,wr){var Gr,Kr,qr,oi,Gn=Cr[wr];switch(Gn){case"L":case"R":Pr=!1;break;case"N":case"AN":break;case"EN":Pr&&(Gn="AN");break;case"AL":Pr=!0,Gn="R";break;case"WS":Gn="N";break;case"CS":wr<1||wr+1>=Cr.length||(Gr=Nt[wr-1])!=="EN"&&Gr!=="AN"||(Kr=Cr[wr+1])!=="EN"&&Kr!=="AN"?Gn="N":Pr&&(Kr="AN"),Gn=Kr===Gr?Kr:"N";break;case"ES":Gn=(Gr=wr>0?Nt[wr-1]:"B")==="EN"&&wr+1<Cr.length&&Cr[wr+1]==="EN"?"EN":"N";break;case"ET":if(wr>0&&Nt[wr-1]==="EN"){Gn="EN";break}if(Pr){Gn="N";break}for(qr=wr+1,oi=Cr.length;qr<oi&&Cr[qr]==="ET";)qr++;Gn=qr<oi&&Cr[qr]==="EN"?"EN":"N";break;case"NSM":if(qe&&!yt){for(oi=Cr.length,qr=wr+1;qr<oi&&Cr[qr]==="NSM";)qr++;if(qr<oi){var Ti=mr[wr],hn=Ti>=1425&&Ti<=2303||Ti===64286;if(Gr=Cr[qr],hn&&(Gr==="R"||Gr==="AL")){Gn="R";break}}}Gn=wr<1||(Gr=Cr[wr-1])==="B"?"N":Nt[wr-1];break;case"B":Pr=!1,Ye=!0,Gn=In;break;case"S":We=!0,Gn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Pr=!1;break;case"BN":Gn="N"}return Gn},Ri=function(mr,Cr,Nt){var wr=mr.split("");return Nt&&Ki(wr,Nt,{hiLevel:In}),wr.reverse(),Cr&&Cr.reverse(),wr.join("")},Ki=function(mr,Cr,Nt){var wr,Gr,Kr,qr,oi,Gn=-1,Ti=mr.length,hn=0,_r=[],En=In?tr:jr,Fn=[];for(Pr=!1,Ye=!1,We=!1,Gr=0;Gr<Ti;Gr++)Fn[Gr]=ci(mr[Gr]);for(Kr=0;Kr<Ti;Kr++){if(oi=hn,_r[Kr]=ki(mr,Fn,_r,Kr),wr=240&(hn=En[oi][gn[_r[Kr]]]),hn&=15,Cr[Kr]=qr=En[hn][5],wr>0)if(wr===16){for(Gr=Gn;Gr<Kr;Gr++)Cr[Gr]=1;Gn=-1}else Gn=-1;if(En[hn][6])Gn===-1&&(Gn=Kr);else if(Gn>-1){for(Gr=Gn;Gr<Kr;Gr++)Cr[Gr]=qr;Gn=-1}Fn[Kr]==="B"&&(Cr[Kr]=0),Nt.hiLevel|=qr}We&&function(Vn,qn,Oi){for(var Ni=0;Ni<Oi;Ni++)if(Vn[Ni]==="S"){qn[Ni]=In;for(var Mi=Ni-1;Mi>=0&&Vn[Mi]==="WS";Mi--)qn[Mi]=In}}(Fn,Cr,Ti)},Hr=function(mr,Cr,Nt,wr,Gr){if(!(Gr.hiLevel<mr)){if(mr===1&&In===1&&!Ye)return Cr.reverse(),void(Nt&&Nt.reverse());for(var Kr,qr,oi,Gn,Ti=Cr.length,hn=0;hn<Ti;){if(wr[hn]>=mr){for(oi=hn+1;oi<Ti&&wr[oi]>=mr;)oi++;for(Gn=hn,qr=oi-1;Gn<qr;Gn++,qr--)Kr=Cr[Gn],Cr[Gn]=Cr[qr],Cr[qr]=Kr,Nt&&(Kr=Nt[Gn],Nt[Gn]=Nt[qr],Nt[qr]=Kr);hn=oi}hn++}}},Cn=function(mr,Cr,Nt){var wr=mr.split(""),Gr={hiLevel:In};return Nt||(Nt=[]),Ki(wr,Nt,Gr),function(Kr,qr,oi){if(oi.hiLevel!==0&&Mr)for(var Gn,Ti=0;Ti<Kr.length;Ti++)qr[Ti]===1&&(Gn=un.indexOf(Kr[Ti]))>=0&&(Kr[Ti]=un[Gn+1])}(wr,Nt,Gr),Hr(2,wr,Cr,Nt,Gr),Hr(1,wr,Cr,Nt,Gr),wr.join("")};return this.__bidiEngine__.doBidiReorder=function(kr,mr,Cr){if(function(wr,Gr){if(Gr)for(var Kr=0;Kr<wr.length;Kr++)Gr[Kr]=Kr;yt===void 0&&(yt=Ui(wr)),$t===void 0&&($t=Ui(wr))}(kr,mr),qe||!ot||$t)if(qe&&ot&&yt^$t)In=yt?1:0,kr=Ri(kr,mr,Cr);else if(!qe&&ot&&$t)In=yt?1:0,kr=Cn(kr,mr,Cr),kr=Ri(kr,mr);else if(!qe||yt||ot||$t){if(qe&&!ot&&yt^$t)kr=Ri(kr,mr),yt?(In=0,kr=Cn(kr,mr,Cr)):(In=1,kr=Cn(kr,mr,Cr),kr=Ri(kr,mr));else if(qe&&yt&&!ot&&$t)In=1,kr=Cn(kr,mr,Cr),kr=Ri(kr,mr);else if(!qe&&!ot&&yt^$t){var Nt=Mr;yt?(In=1,kr=Cn(kr,mr,Cr),In=0,Mr=!1,kr=Cn(kr,mr,Cr),Mr=Nt):(In=0,kr=Cn(kr,mr,Cr),kr=Ri(kr,mr),In=1,Mr=!1,kr=Cn(kr,mr,Cr),Mr=Nt,kr=Ri(kr,mr))}}else In=0,kr=Cn(kr,mr,Cr);else In=yt?1:0,kr=Cn(kr,mr,Cr);return kr},this.__bidiEngine__.setOptions=function(kr){kr&&(qe=kr.isInputVisual,ot=kr.isOutputVisual,yt=kr.isInputRtl,$t=kr.isOutputRtl,Mr=kr.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Fe),this.__bidiEngine__};var we=["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 Ze.__bidiEngine__({isInputVisual:!0});Ze.API.events.push(["postProcessText",function(Fe){var Ye=Fe.text,We=(Fe.x,Fe.y,Fe.options||{}),qe=(Fe.mutex,We.lang,[]);if(We.isInputVisual=typeof We.isInputVisual!="boolean"||We.isInputVisual,Ne.setOptions(We),Object.prototype.toString.call(Ye)==="[object Array]"){var yt=0;for(qe=[],yt=0;yt<Ye.length;yt+=1)Object.prototype.toString.call(Ye[yt])==="[object Array]"?qe.push([Ne.doBidiReorder(Ye[yt][0]),Ye[yt][1],Ye[yt][2]]):qe.push([Ne.doBidiReorder(Ye[yt])]);Fe.text=qe}else Fe.text=Ne.doBidiReorder(Ye);Ne.setOptions({isInputVisual:!0})}])}(j),j.API.TTFFont=function(){function Ze(we){var Ne;if(this.rawData=we,Ne=this.contents=new Et(we),this.contents.pos=4,Ne.readString(4)==="ttcf")throw new Error("TTCF not supported.");Ne.pos=0,this.parse(),this.subset=new _i(this),this.registerTTF()}return Ze.open=function(we){return new Ze(we)},Ze.prototype.parse=function(){return this.directory=new it(this.contents),this.head=new Ht(this),this.name=new pr(this),this.cmap=new Gt(this),this.toUnicode={},this.hhea=new ut(this),this.maxp=new tn(this),this.hmtx=new fn(this),this.post=new Ar(this),this.os2=new Kt(this),this.loca=new xi(this),this.glyf=new Yn(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]},Ze.prototype.registerTTF=function(){var we,Ne,Fe,Ye,We;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var qe,yt,ot,$t;for($t=[],qe=0,yt=(ot=this.bbox).length;qe<yt;qe++)we=ot[qe],$t.push(Math.round(we*this.scaleFactor));return $t}.call(this),this.stemV=0,this.post.exists?(Fe=255&(Ye=this.post.italic_angle),(32768&(Ne=Ye>>16))!=0&&(Ne=-(1+(65535^Ne))),this.italicAngle=+(Ne+"."+Fe)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(We=this.familyClass)===1||We===2||We===3||We===4||We===5||We===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},Ze.prototype.characterToGlyph=function(we){var Ne;return((Ne=this.cmap.unicode)!=null?Ne.codeMap[we]:void 0)||0},Ze.prototype.widthOfGlyph=function(we){var Ne;return Ne=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(we).advance*Ne},Ze.prototype.widthOfString=function(we,Ne,Fe){var Ye,We,qe,yt;for(qe=0,We=0,yt=(we=""+we).length;0<=yt?We<yt:We>yt;We=0<=yt?++We:--We)Ye=we.charCodeAt(We),qe+=this.widthOfGlyph(this.characterToGlyph(Ye))+Fe*(1e3/Ne)||0;return qe*(Ne/1e3)},Ze.prototype.lineHeight=function(we,Ne){var Fe;return Ne==null&&(Ne=!1),Fe=Ne?this.lineGap:0,(this.ascender+Fe-this.decender)/1e3*we},Ze}();var Br,Et=function(){function Ze(we){this.data=we!=null?we:[],this.pos=0,this.length=this.data.length}return Ze.prototype.readByte=function(){return this.data[this.pos++]},Ze.prototype.writeByte=function(we){return this.data[this.pos++]=we},Ze.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},Ze.prototype.writeUInt32=function(we){return this.writeByte(we>>>24&255),this.writeByte(we>>16&255),this.writeByte(we>>8&255),this.writeByte(255&we)},Ze.prototype.readInt32=function(){var we;return(we=this.readUInt32())>=2147483648?we-4294967296:we},Ze.prototype.writeInt32=function(we){return we<0&&(we+=4294967296),this.writeUInt32(we)},Ze.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},Ze.prototype.writeUInt16=function(we){return this.writeByte(we>>8&255),this.writeByte(255&we)},Ze.prototype.readInt16=function(){var we;return(we=this.readUInt16())>=32768?we-65536:we},Ze.prototype.writeInt16=function(we){return we<0&&(we+=65536),this.writeUInt16(we)},Ze.prototype.readString=function(we){var Ne,Fe;for(Fe=[],Ne=0;0<=we?Ne<we:Ne>we;Ne=0<=we?++Ne:--Ne)Fe[Ne]=String.fromCharCode(this.readByte());return Fe.join("")},Ze.prototype.writeString=function(we){var Ne,Fe,Ye;for(Ye=[],Ne=0,Fe=we.length;0<=Fe?Ne<Fe:Ne>Fe;Ne=0<=Fe?++Ne:--Ne)Ye.push(this.writeByte(we.charCodeAt(Ne)));return Ye},Ze.prototype.readShort=function(){return this.readInt16()},Ze.prototype.writeShort=function(we){return this.writeInt16(we)},Ze.prototype.readLongLong=function(){var we,Ne,Fe,Ye,We,qe,yt,ot;return we=this.readByte(),Ne=this.readByte(),Fe=this.readByte(),Ye=this.readByte(),We=this.readByte(),qe=this.readByte(),yt=this.readByte(),ot=this.readByte(),128&we?-1*(72057594037927940*(255^we)+281474976710656*(255^Ne)+1099511627776*(255^Fe)+4294967296*(255^Ye)+16777216*(255^We)+65536*(255^qe)+256*(255^yt)+(255^ot)+1):72057594037927940*we+281474976710656*Ne+1099511627776*Fe+4294967296*Ye+16777216*We+65536*qe+256*yt+ot},Ze.prototype.writeLongLong=function(we){var Ne,Fe;return Ne=Math.floor(we/4294967296),Fe=4294967295&we,this.writeByte(Ne>>24&255),this.writeByte(Ne>>16&255),this.writeByte(Ne>>8&255),this.writeByte(255&Ne),this.writeByte(Fe>>24&255),this.writeByte(Fe>>16&255),this.writeByte(Fe>>8&255),this.writeByte(255&Fe)},Ze.prototype.readInt=function(){return this.readInt32()},Ze.prototype.writeInt=function(we){return this.writeInt32(we)},Ze.prototype.read=function(we){var Ne,Fe;for(Ne=[],Fe=0;0<=we?Fe<we:Fe>we;Fe=0<=we?++Fe:--Fe)Ne.push(this.readByte());return Ne},Ze.prototype.write=function(we){var Ne,Fe,Ye,We;for(We=[],Fe=0,Ye=we.length;Fe<Ye;Fe++)Ne=we[Fe],We.push(this.writeByte(Ne));return We},Ze}(),it=function(){var Ze;function we(Ne){var Fe,Ye,We;for(this.scalarType=Ne.readInt(),this.tableCount=Ne.readShort(),this.searchRange=Ne.readShort(),this.entrySelector=Ne.readShort(),this.rangeShift=Ne.readShort(),this.tables={},Ye=0,We=this.tableCount;0<=We?Ye<We:Ye>We;Ye=0<=We?++Ye:--Ye)Fe={tag:Ne.readString(4),checksum:Ne.readInt(),offset:Ne.readInt(),length:Ne.readInt()},this.tables[Fe.tag]=Fe}return we.prototype.encode=function(Ne){var Fe,Ye,We,qe,yt,ot,$t,Mr,Sr,jr,tr,gn,sr;for(sr in tr=Object.keys(Ne).length,ot=Math.log(2),Sr=16*Math.floor(Math.log(tr)/ot),qe=Math.floor(Sr/ot),Mr=16*tr-Sr,(Ye=new Et).writeInt(this.scalarType),Ye.writeShort(tr),Ye.writeShort(Sr),Ye.writeShort(qe),Ye.writeShort(Mr),We=16*tr,$t=Ye.pos+We,yt=null,gn=[],Ne)for(jr=Ne[sr],Ye.writeString(sr),Ye.writeInt(Ze(jr)),Ye.writeInt($t),Ye.writeInt(jr.length),gn=gn.concat(jr),sr==="head"&&(yt=$t),$t+=jr.length;$t%4;)gn.push(0),$t++;return Ye.write(gn),Fe=2981146554-Ze(Ye.data),Ye.pos=yt+8,Ye.writeUInt32(Fe),Ye.data},Ze=function(Fe){var Ye,We,qe,yt;for(Fe=Mn.call(Fe);Fe.length%4;)Fe.push(0);for(qe=new Et(Fe),We=0,Ye=0,yt=Fe.length;Ye<yt;Ye=Ye+=4)We+=qe.readUInt32();return 4294967295&We},we}(),rt={}.hasOwnProperty,Pt=function(we,Ne){for(var Fe in Ne)rt.call(Ne,Fe)&&(we[Fe]=Ne[Fe]);function Ye(){this.constructor=we}return Ye.prototype=Ne.prototype,we.prototype=new Ye,we.__super__=Ne.prototype,we};Br=function(){function Ze(we){var Ne;this.file=we,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 Ze.prototype.parse=function(){},Ze.prototype.encode=function(){},Ze.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},Ze}();var Ht=function(Ze){function we(){return we.__super__.constructor.apply(this,arguments)}return Pt(we,Br),we.prototype.tag="head",we.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()},we.prototype.encode=function(Ne){var Fe;return(Fe=new Et).writeInt(this.version),Fe.writeInt(this.revision),Fe.writeInt(this.checkSumAdjustment),Fe.writeInt(this.magicNumber),Fe.writeShort(this.flags),Fe.writeShort(this.unitsPerEm),Fe.writeLongLong(this.created),Fe.writeLongLong(this.modified),Fe.writeShort(this.xMin),Fe.writeShort(this.yMin),Fe.writeShort(this.xMax),Fe.writeShort(this.yMax),Fe.writeShort(this.macStyle),Fe.writeShort(this.lowestRecPPEM),Fe.writeShort(this.fontDirectionHint),Fe.writeShort(Ne),Fe.writeShort(this.glyphDataFormat),Fe.data},we}(),bt=function(){function Ze(we,Ne){var Fe,Ye,We,qe,yt,ot,$t,Mr,Sr,jr,tr,gn,sr,un,an,Pr,In;switch(this.platformID=we.readUInt16(),this.encodingID=we.readShort(),this.offset=Ne+we.readInt(),Sr=we.pos,we.pos=this.offset,this.format=we.readUInt16(),this.length=we.readUInt16(),this.language=we.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(ot=0;ot<256;++ot)this.codeMap[ot]=we.readByte();break;case 4:for(tr=we.readUInt16(),jr=tr/2,we.pos+=6,We=function(){var ci,Ui;for(Ui=[],ot=ci=0;0<=jr?ci<jr:ci>jr;ot=0<=jr?++ci:--ci)Ui.push(we.readUInt16());return Ui}(),we.pos+=2,sr=function(){var ci,Ui;for(Ui=[],ot=ci=0;0<=jr?ci<jr:ci>jr;ot=0<=jr?++ci:--ci)Ui.push(we.readUInt16());return Ui}(),$t=function(){var ci,Ui;for(Ui=[],ot=ci=0;0<=jr?ci<jr:ci>jr;ot=0<=jr?++ci:--ci)Ui.push(we.readUInt16());return Ui}(),Mr=function(){var ci,Ui;for(Ui=[],ot=ci=0;0<=jr?ci<jr:ci>jr;ot=0<=jr?++ci:--ci)Ui.push(we.readUInt16());return Ui}(),Ye=(this.length-we.pos+this.offset)/2,yt=function(){var ci,Ui;for(Ui=[],ot=ci=0;0<=Ye?ci<Ye:ci>Ye;ot=0<=Ye?++ci:--ci)Ui.push(we.readUInt16());return Ui}(),ot=an=0,In=We.length;an<In;ot=++an)for(un=We[ot],Fe=Pr=gn=sr[ot];gn<=un?Pr<=un:Pr>=un;Fe=gn<=un?++Pr:--Pr)Mr[ot]===0?qe=Fe+$t[ot]:(qe=yt[Mr[ot]/2+(Fe-gn)-(jr-ot)]||0)!==0&&(qe+=$t[ot]),this.codeMap[Fe]=65535&qe}we.pos=Sr}return Ze.encode=function(we,Ne){var Fe,Ye,We,qe,yt,ot,$t,Mr,Sr,jr,tr,gn,sr,un,an,Pr,In,ci,Ui,ki,Ri,Ki,Hr,Cn,kr,mr,Cr,Nt,wr,Gr,Kr,qr,oi,Gn,Ti,hn,_r,En,Fn,Vn,qn,Oi,Ni,Mi,Ji,ma;switch(Nt=new Et,qe=Object.keys(we).sort(function(la,qa){return la-qa}),Ne){case"macroman":for(sr=0,un=function(){var la=[];for(gn=0;gn<256;++gn)la.push(0);return la}(),Pr={0:0},We={},wr=0,oi=qe.length;wr<oi;wr++)Pr[Ni=we[Ye=qe[wr]]]==null&&(Pr[Ni]=++sr),We[Ye]={old:we[Ye],new:Pr[we[Ye]]},un[Ye]=Pr[we[Ye]];return Nt.writeUInt16(1),Nt.writeUInt16(0),Nt.writeUInt32(12),Nt.writeUInt16(0),Nt.writeUInt16(262),Nt.writeUInt16(0),Nt.write(un),{charMap:We,subtable:Nt.data,maxGlyphID:sr+1};case"unicode":for(mr=[],Sr=[],In=0,Pr={},Fe={},an=$t=null,Gr=0,Gn=qe.length;Gr<Gn;Gr++)Pr[Ui=we[Ye=qe[Gr]]]==null&&(Pr[Ui]=++In),Fe[Ye]={old:Ui,new:Pr[Ui]},yt=Pr[Ui]-Ye,an!=null&&yt===$t||(an&&Sr.push(an),mr.push(Ye),$t=yt),an=Ye;for(an&&Sr.push(an),Sr.push(65535),mr.push(65535),Cn=2*(Hr=mr.length),Ki=2*Math.pow(Math.log(Hr)/Math.LN2,2),jr=Math.log(Ki/2)/Math.LN2,Ri=2*Hr-Ki,ot=[],ki=[],tr=[],gn=Kr=0,Ti=mr.length;Kr<Ti;gn=++Kr){if(kr=mr[gn],Mr=Sr[gn],kr===65535){ot.push(0),ki.push(0);break}if(kr-(Cr=Fe[kr].new)>=32768)for(ot.push(0),ki.push(2*(tr.length+Hr-gn)),Ye=qr=kr;kr<=Mr?qr<=Mr:qr>=Mr;Ye=kr<=Mr?++qr:--qr)tr.push(Fe[Ye].new);else ot.push(Cr-kr),ki.push(0)}for(Nt.writeUInt16(3),Nt.writeUInt16(1),Nt.writeUInt32(12),Nt.writeUInt16(4),Nt.writeUInt16(16+8*Hr+2*tr.length),Nt.writeUInt16(0),Nt.writeUInt16(Cn),Nt.writeUInt16(Ki),Nt.writeUInt16(jr),Nt.writeUInt16(Ri),qn=0,hn=Sr.length;qn<hn;qn++)Ye=Sr[qn],Nt.writeUInt16(Ye);for(Nt.writeUInt16(0),Oi=0,_r=mr.length;Oi<_r;Oi++)Ye=mr[Oi],Nt.writeUInt16(Ye);for(Mi=0,En=ot.length;Mi<En;Mi++)yt=ot[Mi],Nt.writeUInt16(yt);for(Ji=0,Fn=ki.length;Ji<Fn;Ji++)ci=ki[Ji],Nt.writeUInt16(ci);for(ma=0,Vn=tr.length;ma<Vn;ma++)sr=tr[ma],Nt.writeUInt16(sr);return{charMap:Fe,subtable:Nt.data,maxGlyphID:In+1}}},Ze}(),Gt=function(Ze){function we(){return we.__super__.constructor.apply(this,arguments)}return Pt(we,Br),we.prototype.tag="cmap",we.prototype.parse=function(Ne){var Fe,Ye,We;for(Ne.pos=this.offset,this.version=Ne.readUInt16(),We=Ne.readUInt16(),this.tables=[],this.unicode=null,Ye=0;0<=We?Ye<We:Ye>We;Ye=0<=We?++Ye:--Ye)Fe=new bt(Ne,this.offset),this.tables.push(Fe),Fe.isUnicode&&this.unicode==null&&(this.unicode=Fe);return!0},we.encode=function(Ne,Fe){var Ye,We;return Fe==null&&(Fe="macroman"),Ye=bt.encode(Ne,Fe),(We=new Et).writeUInt16(0),We.writeUInt16(1),Ye.table=We.data.concat(Ye.subtable),Ye},we}(),ut=function(Ze){function we(){return we.__super__.constructor.apply(this,arguments)}return Pt(we,Br),we.prototype.tag="hhea",we.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()},we}(),Kt=function(Ze){function we(){return we.__super__.constructor.apply(this,arguments)}return Pt(we,Br),we.prototype.tag="OS/2",we.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 Fe,Ye;for(Ye=[],Fe=0;Fe<10;++Fe)Ye.push(Ne.readByte());return Ye}(),this.charRange=function(){var Fe,Ye;for(Ye=[],Fe=0;Fe<4;++Fe)Ye.push(Ne.readInt());return Ye}(),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 Fe,Ye;for(Ye=[],Fe=0;Fe<2;Fe=++Fe)Ye.push(Ne.readInt());return Ye}(),this.version>1))return this.xHeight=Ne.readShort(),this.capHeight=Ne.readShort(),this.defaultChar=Ne.readShort(),this.breakChar=Ne.readShort(),this.maxContext=Ne.readShort()},we}(),Ar=function(Ze){function we(){return we.__super__.constructor.apply(this,arguments)}return Pt(we,Br),we.prototype.tag="post",we.prototype.parse=function(Ne){var Fe,Ye,We;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 qe;for(Ye=Ne.readUInt16(),this.glyphNameIndex=[],qe=0;0<=Ye?qe<Ye:qe>Ye;qe=0<=Ye?++qe:--qe)this.glyphNameIndex.push(Ne.readUInt16());for(this.names=[],We=[];Ne.pos<this.offset+this.length;)Fe=Ne.readByte(),We.push(this.names.push(Ne.readString(Fe)));return We;case 151552:return Ye=Ne.readUInt16(),this.offsets=Ne.read(Ye);case 196608:break;case 262144:return this.map=function(){var yt,ot,$t;for($t=[],qe=yt=0,ot=this.file.maxp.numGlyphs;0<=ot?yt<ot:yt>ot;qe=0<=ot?++yt:--yt)$t.push(Ne.readUInt32());return $t}.call(this)}},we}(),ir=function(we,Ne){this.raw=we,this.length=we.length,this.platformID=Ne.platformID,this.encodingID=Ne.encodingID,this.languageID=Ne.languageID},pr=function(Ze){function we(){return we.__super__.constructor.apply(this,arguments)}return Pt(we,Br),we.prototype.tag="name",we.prototype.parse=function(Ne){var Fe,Ye,We,qe,yt,ot,$t,Mr,Sr,jr,tr;for(Ne.pos=this.offset,Ne.readShort(),Fe=Ne.readShort(),ot=Ne.readShort(),Ye=[],qe=0;0<=Fe?qe<Fe:qe>Fe;qe=0<=Fe?++qe:--qe)Ye.push({platformID:Ne.readShort(),encodingID:Ne.readShort(),languageID:Ne.readShort(),nameID:Ne.readShort(),length:Ne.readShort(),offset:this.offset+ot+Ne.readShort()});for($t={},qe=Sr=0,jr=Ye.length;Sr<jr;qe=++Sr)We=Ye[qe],Ne.pos=We.offset,Mr=Ne.readString(We.length),yt=new ir(Mr,We),$t[tr=We.nameID]==null&&($t[tr]=[]),$t[We.nameID].push(yt);this.strings=$t,this.copyright=$t[0],this.fontFamily=$t[1],this.fontSubfamily=$t[2],this.uniqueSubfamily=$t[3],this.fontName=$t[4],this.version=$t[5];try{this.postscriptName=$t[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(gn){this.postscriptName=$t[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=$t[7],this.manufacturer=$t[8],this.designer=$t[9],this.description=$t[10],this.vendorUrl=$t[11],this.designerUrl=$t[12],this.license=$t[13],this.licenseUrl=$t[14],this.preferredFamily=$t[15],this.preferredSubfamily=$t[17],this.compatibleFull=$t[18],this.sampleText=$t[19]},we}(),tn=function(Ze){function we(){return we.__super__.constructor.apply(this,arguments)}return Pt(we,Br),we.prototype.tag="maxp",we.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()},we}(),fn=function(Ze){function we(){return we.__super__.constructor.apply(this,arguments)}return Pt(we,Br),we.prototype.tag="hmtx",we.prototype.parse=function(Ne){var Fe,Ye,We,qe,yt,ot,$t;for(Ne.pos=this.offset,this.metrics=[],Fe=0,ot=this.file.hhea.numberOfMetrics;0<=ot?Fe<ot:Fe>ot;Fe=0<=ot?++Fe:--Fe)this.metrics.push({advance:Ne.readUInt16(),lsb:Ne.readInt16()});for(We=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Mr,Sr;for(Sr=[],Fe=Mr=0;0<=We?Mr<We:Mr>We;Fe=0<=We?++Mr:--Mr)Sr.push(Ne.readInt16());return Sr}(),this.widths=function(){var Mr,Sr,jr,tr;for(tr=[],Mr=0,Sr=(jr=this.metrics).length;Mr<Sr;Mr++)qe=jr[Mr],tr.push(qe.advance);return tr}.call(this),Ye=this.widths[this.widths.length-1],$t=[],Fe=yt=0;0<=We?yt<We:yt>We;Fe=0<=We?++yt:--yt)$t.push(this.widths.push(Ye));return $t},we.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]}},we}(),Mn=[].slice,Yn=function(Ze){function we(){return we.__super__.constructor.apply(this,arguments)}return Pt(we,Br),we.prototype.tag="glyf",we.prototype.parse=function(){return this.cache={}},we.prototype.glyphFor=function(Ne){var Fe,Ye,We,qe,yt,ot,$t,Mr,Sr,jr;return Ne in this.cache?this.cache[Ne]:(qe=this.file.loca,Fe=this.file.contents,Ye=qe.indexOf(Ne),(We=qe.lengthOf(Ne))===0?this.cache[Ne]=null:(Fe.pos=this.offset+Ye,yt=(ot=new Et(Fe.read(We))).readShort(),Mr=ot.readShort(),jr=ot.readShort(),$t=ot.readShort(),Sr=ot.readShort(),this.cache[Ne]=yt===-1?new vi(ot,Mr,jr,$t,Sr):new si(ot,yt,Mr,jr,$t,Sr),this.cache[Ne]))},we.prototype.encode=function(Ne,Fe,Ye){var We,qe,yt,ot,$t;for(yt=[],qe=[],ot=0,$t=Fe.length;ot<$t;ot++)We=Ne[Fe[ot]],qe.push(yt.length),We&&(yt=yt.concat(We.encode(Ye)));return qe.push(yt.length),{table:yt,offsets:qe}},we}(),si=function(){function Ze(we,Ne,Fe,Ye,We,qe){this.raw=we,this.numberOfContours=Ne,this.xMin=Fe,this.yMin=Ye,this.xMax=We,this.yMax=qe,this.compound=!1}return Ze.prototype.encode=function(){return this.raw.data},Ze}(),vi=function(){function Ze(we,Ne,Fe,Ye,We){var qe,yt;for(this.raw=we,this.xMin=Ne,this.yMin=Fe,this.xMax=Ye,this.yMax=We,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],qe=this.raw;yt=qe.readShort(),this.glyphOffsets.push(qe.pos),this.glyphIDs.push(qe.readUInt16()),32&yt;)qe.pos+=1&yt?4:2,128&yt?qe.pos+=8:64&yt?qe.pos+=4:8&yt&&(qe.pos+=2)}return Ze.prototype.encode=function(){var we,Ne,Fe;for(Ne=new Et(Mn.call(this.raw.data)),we=0,Fe=this.glyphIDs.length;we<Fe;++we)Ne.pos=this.glyphOffsets[we];return Ne.data},Ze}(),xi=function(Ze){function we(){return we.__super__.constructor.apply(this,arguments)}return Pt(we,Br),we.prototype.tag="loca",we.prototype.parse=function(Ne){var Fe,Ye;return Ne.pos=this.offset,Fe=this.file.head.indexToLocFormat,this.offsets=Fe===0?function(){var We,qe;for(qe=[],Ye=0,We=this.length;Ye<We;Ye+=2)qe.push(2*Ne.readUInt16());return qe}.call(this):function(){var We,qe;for(qe=[],Ye=0,We=this.length;Ye<We;Ye+=4)qe.push(Ne.readUInt32());return qe}.call(this)},we.prototype.indexOf=function(Ne){return this.offsets[Ne]},we.prototype.lengthOf=function(Ne){return this.offsets[Ne+1]-this.offsets[Ne]},we.prototype.encode=function(Ne,Fe){for(var Ye=new Uint32Array(this.offsets.length),We=0,qe=0,yt=0;yt<Ye.length;++yt)if(Ye[yt]=We,qe<Fe.length&&Fe[qe]==yt){++qe,Ye[yt]=We;var ot=this.offsets[yt],$t=this.offsets[yt+1]-ot;$t>0&&(We+=$t)}for(var Mr=new Array(4*Ye.length),Sr=0;Sr<Ye.length;++Sr)Mr[4*Sr+3]=255&Ye[Sr],Mr[4*Sr+2]=(65280&Ye[Sr])>>8,Mr[4*Sr+1]=(16711680&Ye[Sr])>>16,Mr[4*Sr]=(4278190080&Ye[Sr])>>24;return Mr},we}(),_i=function(){function Ze(we){this.font=we,this.subset={},this.unicodes={},this.next=33}return Ze.prototype.generateCmap=function(){var we,Ne,Fe,Ye,We;for(Ne in Ye=this.font.cmap.tables[0].codeMap,we={},We=this.subset)Fe=We[Ne],we[Ne]=Ye[Fe];return we},Ze.prototype.glyphsFor=function(we){var Ne,Fe,Ye,We,qe,yt,ot;for(Ye={},qe=0,yt=we.length;qe<yt;qe++)Ye[We=we[qe]]=this.font.glyf.glyphFor(We);for(We in Ne=[],Ye)((Fe=Ye[We])!=null?Fe.compound:void 0)&&Ne.push.apply(Ne,Fe.glyphIDs);if(Ne.length>0)for(We in ot=this.glyphsFor(Ne))Fe=ot[We],Ye[We]=Fe;return Ye},Ze.prototype.encode=function(we,Ne){var Fe,Ye,We,qe,yt,ot,$t,Mr,Sr,jr,tr,gn,sr,un,an;for(Ye in Fe=Gt.encode(this.generateCmap(),"unicode"),qe=this.glyphsFor(we),tr={0:0},an=Fe.charMap)tr[(ot=an[Ye]).old]=ot.new;for(gn in jr=Fe.maxGlyphID,qe)gn in tr||(tr[gn]=jr++);return Mr=function(Pr){var In,ci;for(In in ci={},Pr)ci[Pr[In]]=In;return ci}(tr),Sr=Object.keys(Mr).sort(function(Pr,In){return Pr-In}),sr=function(){var Pr,In,ci;for(ci=[],Pr=0,In=Sr.length;Pr<In;Pr++)yt=Sr[Pr],ci.push(Mr[yt]);return ci}(),We=this.font.glyf.encode(qe,sr,tr),$t=this.font.loca.encode(We.offsets,sr),un={cmap:this.font.cmap.raw(),glyf:We.table,loca:$t,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&&(un["OS/2"]=this.font.os2.raw()),this.font.directory.encode(un)},Ze}();j.API.PDFObject=function(){var Ze;function we(){}return Ze=function(Fe,Ye){return(Array(Ye+1).join("0")+Fe).slice(-Ye)},we.convert=function(Ne){var Fe,Ye,We,qe;if(Array.isArray(Ne))return"["+function(){var yt,ot,$t;for($t=[],yt=0,ot=Ne.length;yt<ot;yt++)Fe=Ne[yt],$t.push(we.convert(Fe));return $t}().join(" ")+"]";if(typeof Ne=="string")return"/"+Ne;if(Ne!=null?Ne.isString:void 0)return"("+Ne+")";if(Ne instanceof Date)return"(D:"+Ze(Ne.getUTCFullYear(),4)+Ze(Ne.getUTCMonth(),2)+Ze(Ne.getUTCDate(),2)+Ze(Ne.getUTCHours(),2)+Ze(Ne.getUTCMinutes(),2)+Ze(Ne.getUTCSeconds(),2)+"Z)";if({}.toString.call(Ne)==="[object Object]"){for(Ye in We=["<<"],Ne)qe=Ne[Ye],We.push("/"+Ye+" "+we.convert(qe));return We.push(">>"),We.join(`
`)}return""+Ne},we}(),k.default=j}.call(this,d("yLpj"))},e5VY:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("YNAk"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},e7zE:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("3y9D"),d("WYAk"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.Base,b=C.WordArray,g=x.algo,f=g.SHA1,c=g.HMAC,o=g.PBKDF2=A.extend({cfg:A.extend({keySize:128/32,hasher:f,iterations:1}),init:function(i){this.cfg=this.cfg.extend(i)},compute:function(i,n){for(var e=this.cfg,l=c.create(e.hasher,i),t=b.create(),a=b.create([1]),s=t.words,u=a.words,h=e.keySize,p=e.iterations;s.length<h;){var m=l.update(n).finalize(a);l.reset();for(var v=m.words,y=v.length,E=m,T=1;T<p;T++){E=l.finalize(E),l.reset();for(var w=E.words,S=0;S<y;S++)v[S]^=w[S]}t.concat(m),u[0]++}return t.sigBytes=h*4,t}});x.PBKDF2=function(r,i,n){return o.create(n).compute(r,i)}}(),O.PBKDF2})},eIcI:function(H,k,d){var O=d("bYtY"),x=d("hM6l");function C(b,g,f){x.call(this,b,g,f),this.type="value",this.angle=0,this.name="",this.model}O.inherits(C,x);var A=C;H.exports=A},eJH7:function(H,k,d){var O=d("bYtY");function x(C){var A=C.polar;if(A){O.isArray(A)||(A=[A]);var b=[];O.each(A,function(g,f){g.indicator?(g.type&&!g.shape&&(g.shape=g.type),C.radar=C.radar||[],O.isArray(C.radar)||(C.radar=[C.radar]),C.radar.push(g)):b.push(g)}),C.polar=b}O.each(C.series,function(g){g&&g.type==="radar"&&g.polarIndex&&(g.radarIndex=g.polarIndex)})}H.exports=x},eP3c:function(H,k,d){"use strict";function O(Xe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(X){return typeof X}:O=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},O(Xe)}Object.defineProperty(k,"__esModule",{value:!0}),k.inflateReset=le,k.inflateReset2=fe,k.inflateResetKeep=Se,k.inflateInit=Ve,k.inflateInit2=Ee,k.inflate=St,k.inflateEnd=Mt,k.inflateGetHeader=er,k.inflateSetDictionary=It,k.inflateInfo=k.Z_DEFLATED=k.Z_BUF_ERROR=k.Z_MEM_ERROR=k.Z_DATA_ERROR=k.Z_STREAM_ERROR=k.Z_NEED_DICT=k.Z_STREAM_END=k.Z_OK=k.Z_TREES=k.Z_BLOCK=k.Z_FINISH=void 0;var x=o(d("6BzB")),C=f(d("xlC8")),A=f(d("QV2g")),b=f(d("sjKO")),g=f(d("JSwD"));function f(Xe){return Xe&&Xe.__esModule?Xe:{default:Xe}}function c(){if(typeof WeakMap!="function")return null;var Xe=new WeakMap;return c=function(){return Xe},Xe}function o(Xe){if(Xe&&Xe.__esModule)return Xe;if(Xe===null||O(Xe)!=="object"&&typeof Xe!="function")return{default:Xe};var ie=c();if(ie&&ie.has(Xe))return ie.get(Xe);var X={},Be=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ce in Xe)if(Object.prototype.hasOwnProperty.call(Xe,Ce)){var Z=Be?Object.getOwnPropertyDescriptor(Xe,Ce):null;Z&&(Z.get||Z.set)?Object.defineProperty(X,Ce,Z):X[Ce]=Xe[Ce]}return X.default=Xe,ie&&ie.set(Xe,X),X}var r=0,i=1,n=2,e=4;k.Z_FINISH=e;var l=5;k.Z_BLOCK=l;var t=6;k.Z_TREES=t;var a=0;k.Z_OK=a;var s=1;k.Z_STREAM_END=s;var u=2;k.Z_NEED_DICT=u;var h=-2;k.Z_STREAM_ERROR=h;var p=-3;k.Z_DATA_ERROR=p;var m=-4;k.Z_MEM_ERROR=m;var v=-5;k.Z_BUF_ERROR=v;var y=8;k.Z_DEFLATED=y;var E=1,T=2,w=3,S=4,_=5,I=6,L=7,N=8,R=9,D=10,F=11,M=12,U=13,B=14,j=15,W=16,V=17,z=18,J=19,q=20,de=21,ae=22,ve=23,_e=24,Ie=25,He=26,me=27,ke=28,se=29,te=30,Ge=31,oe=32,Y=852,G=592,Q=15,ye=Q;function ce(Xe){return(Xe>>>24&255)+(Xe>>>8&65280)+((Xe&65280)<<8)+((Xe&255)<<24)}function Te(){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 x.Buf16(320),this.work=new x.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Se(Xe){var ie;return!Xe||!Xe.state?h:(ie=Xe.state,Xe.total_in=Xe.total_out=ie.total=0,Xe.msg="",ie.wrap&&(Xe.adler=ie.wrap&1),ie.mode=E,ie.last=0,ie.havedict=0,ie.dmax=32768,ie.head=null,ie.hold=0,ie.bits=0,ie.lencode=ie.lendyn=new x.Buf32(Y),ie.distcode=ie.distdyn=new x.Buf32(G),ie.sane=1,ie.back=-1,a)}function le(Xe){var ie;return!Xe||!Xe.state?h:(ie=Xe.state,ie.wsize=0,ie.whave=0,ie.wnext=0,Se(Xe))}function fe(Xe,ie){var X,Be;return!Xe||!Xe.state?h:(Be=Xe.state,ie<0?(X=0,ie=-ie):(X=(ie>>4)+1,ie<48&&(ie&=15)),ie&&(ie<8||ie>15)?h:(Be.window!==null&&Be.wbits!==ie&&(Be.window=null),Be.wrap=X,Be.wbits=ie,le(Xe)))}function Ee(Xe,ie){var X,Be;return Xe?(Be=new Te,Xe.state=Be,Be.window=null,X=fe(Xe,ie),X!==a&&(Xe.state=null),X):h}function Ve(Xe){return Ee(Xe,ye)}var vt=!0,et,Oe;function Tt(Xe){if(vt){var ie;for(et=new x.Buf32(512),Oe=new x.Buf32(32),ie=0;ie<144;)Xe.lens[ie++]=8;for(;ie<256;)Xe.lens[ie++]=9;for(;ie<280;)Xe.lens[ie++]=7;for(;ie<288;)Xe.lens[ie++]=8;for((0,g.default)(i,Xe.lens,0,288,et,0,Xe.work,{bits:9}),ie=0;ie<32;)Xe.lens[ie++]=5;(0,g.default)(n,Xe.lens,0,32,Oe,0,Xe.work,{bits:5}),vt=!1}Xe.lencode=et,Xe.lenbits=9,Xe.distcode=Oe,Xe.distbits=5}function Je(Xe,ie,X,Be){var Ce,Z=Xe.state;return Z.window===null&&(Z.wsize=1<<Z.wbits,Z.wnext=0,Z.whave=0,Z.window=new x.Buf8(Z.wsize)),Be>=Z.wsize?(x.arraySet(Z.window,ie,X-Z.wsize,Z.wsize,0),Z.wnext=0,Z.whave=Z.wsize):(Ce=Z.wsize-Z.wnext,Ce>Be&&(Ce=Be),x.arraySet(Z.window,ie,X-Be,Ce,Z.wnext),Be-=Ce,Be?(x.arraySet(Z.window,ie,X-Be,Be,0),Z.wnext=Be,Z.whave=Z.wsize):(Z.wnext+=Ce,Z.wnext===Z.wsize&&(Z.wnext=0),Z.whave<Z.wsize&&(Z.whave+=Ce))),0}function St(Xe,ie){var X,Be,Ce,Z,nt,ct,Qe,dt,Ft,Lr,Wt,ar,Ut,kt,st=0,Rr,on,Sn,zn,Ii,yn,Nn,jt,At=new x.Buf8(4),Re,Ke,Pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Xe||!Xe.state||!Xe.output||!Xe.input&&Xe.avail_in!==0)return h;X=Xe.state,X.mode===M&&(X.mode=U),nt=Xe.next_out,Ce=Xe.output,Qe=Xe.avail_out,Z=Xe.next_in,Be=Xe.input,ct=Xe.avail_in,dt=X.hold,Ft=X.bits,Lr=ct,Wt=Qe,jt=a;e:for(;;)switch(X.mode){case E:if(X.wrap===0){X.mode=U;break}for(;Ft<16;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}if(X.wrap&2&&dt===35615){X.check=0,At[0]=dt&255,At[1]=dt>>>8&255,X.check=(0,A.default)(X.check,At,2,0),dt=0,Ft=0,X.mode=T;break}if(X.flags=0,X.head&&(X.head.done=!1),!(X.wrap&1)||(((dt&255)<<8)+(dt>>8))%31){Xe.msg="incorrect header check",X.mode=te;break}if((dt&15)!==y){Xe.msg="unknown compression method",X.mode=te;break}if(dt>>>=4,Ft-=4,Nn=(dt&15)+8,X.wbits===0)X.wbits=Nn;else if(Nn>X.wbits){Xe.msg="invalid window size",X.mode=te;break}X.dmax=1<<Nn,Xe.adler=X.check=1,X.mode=dt&512?D:M,dt=0,Ft=0;break;case T:for(;Ft<16;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}if(X.flags=dt,(X.flags&255)!==y){Xe.msg="unknown compression method",X.mode=te;break}if(X.flags&57344){Xe.msg="unknown header flags set",X.mode=te;break}X.head&&(X.head.text=dt>>8&1),X.flags&512&&(At[0]=dt&255,At[1]=dt>>>8&255,X.check=(0,A.default)(X.check,At,2,0)),dt=0,Ft=0,X.mode=w;case w:for(;Ft<32;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}X.head&&(X.head.time=dt),X.flags&512&&(At[0]=dt&255,At[1]=dt>>>8&255,At[2]=dt>>>16&255,At[3]=dt>>>24&255,X.check=(0,A.default)(X.check,At,4,0)),dt=0,Ft=0,X.mode=S;case S:for(;Ft<16;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}X.head&&(X.head.xflags=dt&255,X.head.os=dt>>8),X.flags&512&&(At[0]=dt&255,At[1]=dt>>>8&255,X.check=(0,A.default)(X.check,At,2,0)),dt=0,Ft=0,X.mode=_;case _:if(X.flags&1024){for(;Ft<16;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}X.length=dt,X.head&&(X.head.extra_len=dt),X.flags&512&&(At[0]=dt&255,At[1]=dt>>>8&255,X.check=(0,A.default)(X.check,At,2,0)),dt=0,Ft=0}else X.head&&(X.head.extra=null);X.mode=I;case I:if(X.flags&1024&&(ar=X.length,ar>ct&&(ar=ct),ar&&(X.head&&(Nn=X.head.extra_len-X.length,X.head.extra||(X.head.extra=new Array(X.head.extra_len)),x.arraySet(X.head.extra,Be,Z,ar,Nn)),X.flags&512&&(X.check=(0,A.default)(X.check,Be,ar,Z)),ct-=ar,Z+=ar,X.length-=ar),X.length))break e;X.length=0,X.mode=L;case L:if(X.flags&2048){if(ct===0)break e;ar=0;do Nn=Be[Z+ar++],X.head&&Nn&&X.length<65536&&(X.head.name+=String.fromCharCode(Nn));while(Nn&&ar<ct);if(X.flags&512&&(X.check=(0,A.default)(X.check,Be,ar,Z)),ct-=ar,Z+=ar,Nn)break e}else X.head&&(X.head.name=null);X.length=0,X.mode=N;case N:if(X.flags&4096){if(ct===0)break e;ar=0;do Nn=Be[Z+ar++],X.head&&Nn&&X.length<65536&&(X.head.comment+=String.fromCharCode(Nn));while(Nn&&ar<ct);if(X.flags&512&&(X.check=(0,A.default)(X.check,Be,ar,Z)),ct-=ar,Z+=ar,Nn)break e}else X.head&&(X.head.comment=null);X.mode=R;case R:if(X.flags&512){for(;Ft<16;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}if(dt!==(X.check&65535)){Xe.msg="header crc mismatch",X.mode=te;break}dt=0,Ft=0}X.head&&(X.head.hcrc=X.flags>>9&1,X.head.done=!0),Xe.adler=X.check=0,X.mode=M;break;case D:for(;Ft<32;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}Xe.adler=X.check=ce(dt),dt=0,Ft=0,X.mode=F;case F:if(X.havedict===0)return Xe.next_out=nt,Xe.avail_out=Qe,Xe.next_in=Z,Xe.avail_in=ct,X.hold=dt,X.bits=Ft,u;Xe.adler=X.check=1,X.mode=M;case M:if(ie===l||ie===t)break e;case U:if(X.last){dt>>>=Ft&7,Ft-=Ft&7,X.mode=me;break}for(;Ft<3;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}X.last=dt&1,dt>>>=1,Ft-=1;switch(dt&3){case 0:X.mode=B;break;case 1:if(Tt(X),X.mode=q,ie===t){dt>>>=2,Ft-=2;break e}break;case 2:X.mode=V;break;case 3:Xe.msg="invalid block type",X.mode=te}dt>>>=2,Ft-=2;break;case B:for(dt>>>=Ft&7,Ft-=Ft&7;Ft<32;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}if((dt&65535)!==(dt>>>16^65535)){Xe.msg="invalid stored block lengths",X.mode=te;break}if(X.length=dt&65535,dt=0,Ft=0,X.mode=j,ie===t)break e;case j:X.mode=W;case W:if(ar=X.length,ar){if(ar>ct&&(ar=ct),ar>Qe&&(ar=Qe),ar===0)break e;x.arraySet(Ce,Be,Z,ar,nt),ct-=ar,Z+=ar,Qe-=ar,nt+=ar,X.length-=ar;break}X.mode=M;break;case V:for(;Ft<14;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}if(X.nlen=(dt&31)+257,dt>>>=5,Ft-=5,X.ndist=(dt&31)+1,dt>>>=5,Ft-=5,X.ncode=(dt&15)+4,dt>>>=4,Ft-=4,X.nlen>286||X.ndist>30){Xe.msg="too many length or distance symbols",X.mode=te;break}X.have=0,X.mode=z;case z:for(;X.have<X.ncode;){for(;Ft<3;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}X.lens[Pe[X.have++]]=dt&7,dt>>>=3,Ft-=3}for(;X.have<19;)X.lens[Pe[X.have++]]=0;if(X.lencode=X.lendyn,X.lenbits=7,Re={bits:X.lenbits},jt=(0,g.default)(r,X.lens,0,19,X.lencode,0,X.work,Re),X.lenbits=Re.bits,jt){Xe.msg="invalid code lengths set",X.mode=te;break}X.have=0,X.mode=J;case J:for(;X.have<X.nlen+X.ndist;){for(;!(st=X.lencode[dt&(1<<X.lenbits)-1],Rr=st>>>24,on=st>>>16&255,Sn=st&65535,Rr<=Ft);){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}if(Sn<16)dt>>>=Rr,Ft-=Rr,X.lens[X.have++]=Sn;else{if(Sn===16){for(Ke=Rr+2;Ft<Ke;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}if(dt>>>=Rr,Ft-=Rr,X.have===0){Xe.msg="invalid bit length repeat",X.mode=te;break}Nn=X.lens[X.have-1],ar=3+(dt&3),dt>>>=2,Ft-=2}else if(Sn===17){for(Ke=Rr+3;Ft<Ke;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}dt>>>=Rr,Ft-=Rr,Nn=0,ar=3+(dt&7),dt>>>=3,Ft-=3}else{for(Ke=Rr+7;Ft<Ke;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}dt>>>=Rr,Ft-=Rr,Nn=0,ar=11+(dt&127),dt>>>=7,Ft-=7}if(X.have+ar>X.nlen+X.ndist){Xe.msg="invalid bit length repeat",X.mode=te;break}for(;ar--;)X.lens[X.have++]=Nn}}if(X.mode===te)break;if(X.lens[256]===0){Xe.msg="invalid code -- missing end-of-block",X.mode=te;break}if(X.lenbits=9,Re={bits:X.lenbits},jt=(0,g.default)(i,X.lens,0,X.nlen,X.lencode,0,X.work,Re),X.lenbits=Re.bits,jt){Xe.msg="invalid literal/lengths set",X.mode=te;break}if(X.distbits=6,X.distcode=X.distdyn,Re={bits:X.distbits},jt=(0,g.default)(n,X.lens,X.nlen,X.ndist,X.distcode,0,X.work,Re),X.distbits=Re.bits,jt){Xe.msg="invalid distances set",X.mode=te;break}if(X.mode=q,ie===t)break e;case q:X.mode=de;case de:if(ct>=6&&Qe>=258){Xe.next_out=nt,Xe.avail_out=Qe,Xe.next_in=Z,Xe.avail_in=ct,X.hold=dt,X.bits=Ft,(0,b.default)(Xe,Wt),nt=Xe.next_out,Ce=Xe.output,Qe=Xe.avail_out,Z=Xe.next_in,Be=Xe.input,ct=Xe.avail_in,dt=X.hold,Ft=X.bits,X.mode===M&&(X.back=-1);break}for(X.back=0;!(st=X.lencode[dt&(1<<X.lenbits)-1],Rr=st>>>24,on=st>>>16&255,Sn=st&65535,Rr<=Ft);){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}if(on&&(on&240)===0){for(zn=Rr,Ii=on,yn=Sn;!(st=X.lencode[yn+((dt&(1<<zn+Ii)-1)>>zn)],Rr=st>>>24,on=st>>>16&255,Sn=st&65535,zn+Rr<=Ft);){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}dt>>>=zn,Ft-=zn,X.back+=zn}if(dt>>>=Rr,Ft-=Rr,X.back+=Rr,X.length=Sn,on===0){X.mode=He;break}if(on&32){X.back=-1,X.mode=M;break}if(on&64){Xe.msg="invalid literal/length code",X.mode=te;break}X.extra=on&15,X.mode=ae;case ae:if(X.extra){for(Ke=X.extra;Ft<Ke;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}X.length+=dt&(1<<X.extra)-1,dt>>>=X.extra,Ft-=X.extra,X.back+=X.extra}X.was=X.length,X.mode=ve;case ve:for(;!(st=X.distcode[dt&(1<<X.distbits)-1],Rr=st>>>24,on=st>>>16&255,Sn=st&65535,Rr<=Ft);){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}if((on&240)===0){for(zn=Rr,Ii=on,yn=Sn;!(st=X.distcode[yn+((dt&(1<<zn+Ii)-1)>>zn)],Rr=st>>>24,on=st>>>16&255,Sn=st&65535,zn+Rr<=Ft);){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}dt>>>=zn,Ft-=zn,X.back+=zn}if(dt>>>=Rr,Ft-=Rr,X.back+=Rr,on&64){Xe.msg="invalid distance code",X.mode=te;break}X.offset=Sn,X.extra=on&15,X.mode=_e;case _e:if(X.extra){for(Ke=X.extra;Ft<Ke;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}X.offset+=dt&(1<<X.extra)-1,dt>>>=X.extra,Ft-=X.extra,X.back+=X.extra}if(X.offset>X.dmax){Xe.msg="invalid distance too far back",X.mode=te;break}X.mode=Ie;case Ie:if(Qe===0)break e;if(ar=Wt-Qe,X.offset>ar){if(ar=X.offset-ar,ar>X.whave&&X.sane){Xe.msg="invalid distance too far back",X.mode=te;break}ar>X.wnext?(ar-=X.wnext,Ut=X.wsize-ar):Ut=X.wnext-ar,ar>X.length&&(ar=X.length),kt=X.window}else kt=Ce,Ut=nt-X.offset,ar=X.length;ar>Qe&&(ar=Qe),Qe-=ar,X.length-=ar;do Ce[nt++]=kt[Ut++];while(--ar);X.length===0&&(X.mode=de);break;case He:if(Qe===0)break e;Ce[nt++]=X.length,Qe--,X.mode=de;break;case me:if(X.wrap){for(;Ft<32;){if(ct===0)break e;ct--,dt|=Be[Z++]<<Ft,Ft+=8}if(Wt-=Qe,Xe.total_out+=Wt,X.total+=Wt,Wt&&(Xe.adler=X.check=X.flags?(0,A.default)(X.check,Ce,Wt,nt-Wt):(0,C.default)(X.check,Ce,Wt,nt-Wt)),Wt=Qe,(X.flags?dt:ce(dt))!==X.check){Xe.msg="incorrect data check",X.mode=te;break}dt=0,Ft=0}X.mode=ke;case ke:if(X.wrap&&X.flags){for(;Ft<32;){if(ct===0)break e;ct--,dt+=Be[Z++]<<Ft,Ft+=8}if(dt!==(X.total&4294967295)){Xe.msg="incorrect length check",X.mode=te;break}dt=0,Ft=0}X.mode=se;case se:jt=s;break e;case te:jt=p;break e;case Ge:return m;case oe:default:return h}return Xe.next_out=nt,Xe.avail_out=Qe,Xe.next_in=Z,Xe.avail_in=ct,X.hold=dt,X.bits=Ft,(X.wsize||Wt!==Xe.avail_out&&X.mode<te&&(X.mode<me||ie!==e))&&Je(Xe,Xe.output,Xe.next_out,Wt-Xe.avail_out)?(X.mode=Ge,m):(Lr-=Xe.avail_in,Wt-=Xe.avail_out,Xe.total_in+=Lr,Xe.total_out+=Wt,X.total+=Wt,X.wrap&&Wt&&(Xe.adler=X.check=X.flags?(0,A.default)(X.check,Ce,Wt,Xe.next_out-Wt):(0,C.default)(X.check,Ce,Wt,Xe.next_out-Wt)),Xe.data_type=X.bits+(X.last?64:0)+(X.mode===M?128:0)+(X.mode===q||X.mode===j?256:0),(Lr===0&&Wt===0||ie===e)&&jt===a&&(jt=v),jt)}function Mt(Xe){if(!Xe||!Xe.state)return h;var ie=Xe.state;return ie.window&&(ie.window=null),Xe.state=null,a}function er(Xe,ie){var X;return!Xe||!Xe.state?h:(X=Xe.state,(X.wrap&2)===0?h:(X.head=ie,ie.done=!1,a))}function It(Xe,ie){var X=ie.length,Be,Ce,Z;return!Xe||!Xe.state?h:(Be=Xe.state,Be.wrap!==0&&Be.mode!==F?h:Be.mode===F&&(Ce=1,Ce=(0,C.default)(Ce,ie,X,0),Ce!==Be.check)?p:(Z=Je(Xe,ie,X,X),Z?(Be.mode=Ge,m):(Be.havedict=1,a)))}var _t="pako inflate (from Nodeca project)";k.inflateInfo=_t},ePAk:function(H,k,d){var O=d("ProS");d("2fGM");var x=O.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(C){var A,b=this.ecModel;return b.eachComponent(C,function(g){g.getCoordSysModel()===this&&(A=g)},this),A},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});H.exports=x},eRkO:function(H,k,d){var O=d("+TT/"),x=O.getLayoutRect,C=O.box,A=O.positionElement,b=d("7aKB"),g=d("IwbS");function f(o,r,i){var n=r.getBoxLayoutParams(),e=r.get("padding"),l={width:i.getWidth(),height:i.getHeight()},t=x(n,l,e);C(r.get("orient"),o,r.get("itemGap"),t.width,t.height),A(o,n,l,e)}function c(o,r){var i=b.normalizeCssArray(r.get("padding")),n=r.getItemStyle(["color","opacity"]);n.fill=r.get("backgroundColor");var o=new g.Rect({shape:{x:o.x-i[3],y:o.y-i[0],width:o.width+i[1]+i[3],height:o.height+i[0]+i[2],r:r.get("borderRadius")},style:n,silent:!0,z2:-1});return o}k.layout=f,k.makeBackground=c},eS4l:function(H,k,d){d("HM/N"),d("FNN5")},eUgh:function(H,k){function d(O,x){for(var C=-1,A=O==null?0:O.length,b=Array(A);++C<A;)b[C]=x(O[C],C,O);return b}H.exports=d},ewwo:function(H,k,d){var O=d("bMXI"),x=d("+TT/"),C=x.getLayoutRect,A=d("4mN7");function b(f,c,o){var r=f.getBoxLayoutParams();return r.aspect=o,C(r,{width:c.getWidth(),height:c.getHeight()})}function g(f,c){var o=[];return f.eachSeriesByType("graph",function(r){var i=r.get("coordinateSystem");if(!i||i==="view"){var n=r.getData(),e=n.mapArray(function(y){var E=n.getItemModel(y);return[+E.get("x"),+E.get("y")]}),l=[],t=[];A.fromPoints(e,l,t),t[0]-l[0]===0&&(t[0]+=1,l[0]-=1),t[1]-l[1]===0&&(t[1]+=1,l[1]-=1);var a=(t[0]-l[0])/(t[1]-l[1]),s=b(r,c,a);isNaN(a)&&(l=[s.x,s.y],t=[s.x+s.width,s.y+s.height]);var u=t[0]-l[0],h=t[1]-l[1],p=s.width,m=s.height,v=r.coordinateSystem=new O;v.zoomLimit=r.get("scaleLimit"),v.setBoundingRect(l[0],l[1],u,h),v.setViewRect(s.x,s.y,p,m),v.setCenter(r.get("center")),v.setZoom(r.get("zoom")),o.push(v)}}),o}H.exports=g},f1nB:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("bYtY"),b=d("4NO4"),g=d("IwbS"),f=d("+TT/"),c=d("OELB"),o=c.parsePercent,r={path:null,compoundPath:null,group:g.Group,image:g.Image,text:g.Text};C.registerPreprocessor(function(p){var m=p.graphic;A.isArray(m)?!m[0]||!m[0].elements?p.graphic=[{elements:m}]:p.graphic=[p.graphic[0]]:m&&!m.elements&&(p.graphic=[{elements:[m]}])});var i=C.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(p){var m=this.option.elements;this.option.elements=null,i.superApply(this,"mergeOption",arguments),this.option.elements=m},optionUpdated:function(p,m){var v=this.option,y=(m?v:p).elements,E=v.elements=m?[]:v.elements,T=[];this._flatten(y,T);var w=b.mappingToExists(E,T);b.makeIdAndName(w);var S=this._elOptionsToUpdate=[];A.each(w,function(I,L){var N=I.option;if(!N)return;S.push(N),a(I,N),s(E,L,N),u(E[L],N)},this);for(var _=E.length-1;_>=0;_--)E[_]==null?E.splice(_,1):delete E[_].$action},_flatten:function(p,m,v){A.each(p,function(y){if(!y)return;v&&(y.parentOption=v),m.push(y);var E=y.children;y.type==="group"&&E&&this._flatten(E,m,y),delete y.children},this)},useElOptionsToUpdate:function(){var p=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,p}});C.extendComponentView({type:"graphic",init:function(p,m){this._elMap=A.createHashMap(),this._lastGraphicModel},render:function(p,m,v){p!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=p,this._updateElements(p),this._relocate(p,v)},_updateElements:function(p){var m=p.useElOptionsToUpdate();if(!m)return;var v=this._elMap,y=this.group;A.each(m,function(E){var T=E.$action,w=E.id,S=v.get(w),_=E.parentId,I=_!=null?v.get(_):y,L=E.style;E.type==="text"&&L&&(E.hv&&E.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 N=l(E);!T||T==="merge"?S?S.attr(N):n(w,I,N,v):T==="replace"?(e(S,v),n(w,I,N,v)):T==="remove"&&e(S,v);var R=v.get(w);R&&(R.__ecGraphicWidthOption=E.width,R.__ecGraphicHeightOption=E.height,h(R,p,E))})},_relocate:function(p,m){for(var v=p.option.elements,y=this.group,E=this._elMap,T=m.getWidth(),w=m.getHeight(),S=0;S<v.length;S++){var _=v[S],I=E.get(_.id);if(!I||!I.isGroup)continue;var L=I.parent,N=L===y;I.__ecGraphicWidth=o(I.__ecGraphicWidthOption,N?T:L.__ecGraphicWidth)||0,I.__ecGraphicHeight=o(I.__ecGraphicHeightOption,N?w:L.__ecGraphicHeight)||0}for(var S=v.length-1;S>=0;S--){var _=v[S],I=E.get(_.id);if(!I)continue;var L=I.parent,R=L===y?{width:T,height:w}:{width:L.__ecGraphicWidth,height:L.__ecGraphicHeight};f.positionElement(I,_,R,null,{hv:_.hv,boundingMode:_.bounding})}},_clear:function(){var p=this._elMap;p.each(function(m){e(m,p)}),this._elMap=A.createHashMap()},dispose:function(){this._clear()}});function n(p,m,v,y){var E=v.type,T=r.hasOwnProperty(E)?r[E]:g.getShapeClass(E),w=new T(v);m.add(w),y.set(p,w),w.__ecGraphicId=p}function e(p,m){var v=p&&p.parent;v&&(p.type==="group"&&p.traverse(function(y){e(y,m)}),m.removeKey(p.__ecGraphicId),v.remove(p))}function l(p){return p=A.extend({},p),A.each(["id","parentId","$action","hv","bounding"].concat(f.LOCATION_PARAMS),function(m){delete p[m]}),p}function t(p,m){var v;return A.each(m,function(y){p[y]!=null&&p[y]!=="auto"&&(v=!0)}),v}function a(p,m){var v=p.exist;if(m.id=p.keyInfo.id,!m.type&&v&&(m.type=v.type),m.parentId==null){var y=m.parentOption;y?m.parentId=y.id:v&&(m.parentId=v.parentId)}m.parentOption=null}function s(p,m,v){var y=A.extend({},v),E=p[m],T=v.$action||"merge";T==="merge"?E?(A.merge(E,y,!0),f.mergeLayoutParam(E,y,{ignoreSize:!0}),f.copyLayoutParams(v,E)):p[m]=y:T==="replace"?p[m]=y:T==="remove"&&(E&&(p[m]=null))}function u(p,m){if(!p)return;p.hv=m.hv=[t(m,["left","right"]),t(m,["top","bottom"])],p.type==="group"&&(p.width==null&&(p.width=m.width=0),p.height==null&&(p.height=m.height=0))}function h(p,m,v){var y=p.eventData;!p.silent&&!p.ignore&&!y&&(y=p.eventData={componentType:"graphic",componentIndex:m.componentIndex,name:p.name}),y&&(y.info=p.info)}},f3JH:function(H,k,d){d("aTJb"),d("OlYY"),d("fc+c"),d("oY9F"),d("MqEG"),d("LBfv"),d("noeP")},f5HG:function(H,k,d){var O=d("IwbS"),x=d("QBsz"),C=O.Line.prototype,A=O.BezierCurve.prototype;function b(f){return isNaN(+f.cpx1)||isNaN(+f.cpy1)}var g=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(f,c){this[b(c)?"_buildPathLine":"_buildPathCurve"](f,c)},_buildPathLine:C.buildPath,_buildPathCurve:A.buildPath,pointAt:function(f){return this[b(this.shape)?"_pointAtLine":"_pointAtCurve"](f)},_pointAtLine:C.pointAt,_pointAtCurve:A.pointAt,tangentAt:function(f){var c=this.shape,o=b(c)?[c.x2-c.x1,c.y2-c.y1]:this._tangentAtCurve(f);return x.normalize(o,o)},_tangentAtCurve:A.tangentAt});H.exports=g},f5Yq:function(H,k,d){var O=d("bYtY"),x=O.isFunction;function C(A,b,g){return{seriesType:A,performRawSeries:!0,reset:function(f,c,o){var r=f.getData(),i=f.get("symbol"),n=f.get("symbolSize"),e=f.get("symbolKeepAspect"),l=f.get("symbolRotate"),t=x(i),a=x(n),s=x(l),u=t||a||s,h=!t&&i?i:b,p=a?null:n,m=s?null:m;if(r.setVisual({legendSymbol:g||h,symbol:h,symbolSize:p,symbolKeepAspect:e,symbolRotate:l}),c.isSeriesFiltered(f))return;function v(y,E){if(u){var T=f.getRawValue(E),w=f.getDataParams(E);t&&y.setItemVisual(E,"symbol",i(T,w)),a&&y.setItemVisual(E,"symbolSize",n(T,w)),s&&y.setItemVisual(E,"symbolRotate",l(T,w))}if(y.hasItemOption){var S=y.getItemModel(E),_=S.getShallow("symbol",!0),I=S.getShallow("symbolSize",!0),L=S.getShallow("symbolRotate",!0),N=S.getShallow("symbolKeepAspect",!0);_!=null&&y.setItemVisual(E,"symbol",_),I!=null&&y.setItemVisual(E,"symbolSize",I),L!=null&&y.setItemVisual(E,"symbolRotate",L),N!=null&&y.setItemVisual(E,"symbolKeepAspect",N)}}return{dataEach:r.hasItemOption||u?v:null}}}}H.exports=C},fE02:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("/IIm"),A=d("vZ6x"),b=d("b9oc"),g=d("72pK"),f=d("Kagy"),c=d("IUWy");d("3TkU");var o=f.toolbox.dataZoom,r=x.each,i="\0_ec_\0toolbox-dataZoom_";function n(h,p,m){(this._brushController=new C(m.getZr())).on("brush",x.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:x.clone(o.title)};var e=n.prototype;e.render=function(h,p,m,v){this.model=h,this.ecModel=p,this.api=m,s(h,p,this,v,m),a(h,p)},e.onclick=function(h,p,m){l[m].call(this)},e.remove=function(h,p){this._brushController.unmount()},e.dispose=function(h,p){this._brushController.dispose()};var l={zoom:function(){var h=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:h})},back:function(){this._dispatchZoomAction(b.pop(this.ecModel))}};e._onBrush=function(h,p){if(!p.isEnd||!h.length)return;var m={},v=this.ecModel;this._brushController.updateCovers([]);var y=new A(t(this.model.option),v,{include:["grid"]});y.matchOutputRanges(h,v,function(w,S,_){if(_.type!=="cartesian2d")return;var I=w.brushType;I==="rect"?(E("x",_,S[0]),E("y",_,S[1])):E({lineX:"x",lineY:"y"}[I],_,S)}),b.push(v,m),this._dispatchZoomAction(m);function E(w,S,_){var I=S.getAxis(w),L=I.model,N=T(w,L,v),R=N.findRepresentativeAxisProxy(L).getMinMaxSpan();(R.minValueSpan!=null||R.maxValueSpan!=null)&&(_=g(0,_.slice(),I.scale.getExtent(),0,R.minValueSpan,R.maxValueSpan)),N&&(m[N.id]={dataZoomId:N.id,startValue:_[0],endValue:_[1]})}function T(w,S,_){var I;return _.eachComponent({mainType:"dataZoom",subType:"select"},function(L){var N=L.getAxisModel(w,S.componentIndex);N&&(I=L)}),I}},e._dispatchZoomAction=function(h){var p=[];r(h,function(m,v){p.push(x.clone(m))}),p.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:p})};function t(h){var p={};return x.each(["xAxisIndex","yAxisIndex"],function(m){p[m]=h[m],p[m]==null&&(p[m]="all"),(p[m]===!1||p[m]==="none")&&(p[m]=[])}),p}function a(h,p){h.setIconStatus("back",b.count(p)>1?"emphasis":"normal")}function s(h,p,m,v,y){var E=m._isZoomActive;v&&v.type==="takeGlobalCursor"&&(E=v.key==="dataZoomSelect"?v.dataZoomSelectActive:!1),m._isZoomActive=E,h.setIconStatus("zoom",E?"emphasis":"normal");var T=new A(t(h.option),p,{include:["grid"]});m._brushController.setPanels(T.makePanelOpts(y,function(w){return w.xAxisDeclared&&!w.yAxisDeclared?"lineX":!w.xAxisDeclared&&w.yAxisDeclared?"lineY":"rect"})).enableBrush(E?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}c.register("dataZoom",n),O.registerPreprocessor(function(h){if(!h)return;var p=h.dataZoom||(h.dataZoom=[]);x.isArray(p)||(h.dataZoom=p=[p]);var m=h.toolbox;if(m&&(x.isArray(m)&&(m=m[0]),m&&m.feature)){var v=m.feature.dataZoom;y("xAxis",v),y("yAxis",v)}function y(T,w){if(!w)return;var S=T+"Index",_=w[S];_!=null&&_!=="all"&&!x.isArray(_)&&(_=_===!1||_==="none"?[]:[_]),E(T,function(I,L){if(_!=null&&_!=="all"&&x.indexOf(_,L)===-1)return;var N={type:"select",$fromToolbox:!0,filterMode:w.filterMode||"filter",id:i+T+L};N[S]=L,p.push(N)})}function E(T,w){var S=h[T];x.isArray(S)||(S=S?[S]:[]),r(S,w)}});var u=n;H.exports=u},fNCr:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("tSko"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},fUL4:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("r+aA"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},fW2E:function(H,k){var d={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function O(x,C,A){return d.hasOwnProperty(C)?A*=x.dpr:A}H.exports=O},"fc+c":function(H,k,d){var O=d("sS/r"),x=O.extend({type:"dataZoom",render:function(C,A,b,g){this.dataZoomModel=C,this.ecModel=A,this.api=b},getTargetCoordInfo:function(){var C=this.dataZoomModel,A=this.ecModel,b={};C.eachTargetAxis(function(f,c){var o=A.getComponent(f.axis,c);if(o){var r=o.getCoordSysModel();r&&g(r,o,b[r.mainType]||(b[r.mainType]=[]),r.componentIndex)}},this);function g(f,c,o,r){for(var i,n=0;n<o.length;n++)if(o[n].model===f){i=o[n];break}i||o.push(i={model:f,axisModels:[],coordIndex:r}),i.axisModels.push(c)}return b}});H.exports=x},fjKi:function(H,k,d){var O=d("ProS");d("Q7if"),d("jndi"),O.registerPreprocessor(function(x){x.markArea=x.markArea||{}})},fls0:function(H,k,d){var O=d("bYtY"),x=d("QBsz"),C=d("oVpE"),A=d("f5HG"),b=d("IwbS"),g=d("OELB"),f=g.round,c=["fromSymbol","toSymbol"];function o(s){return"_"+s+"Type"}function r(s,u,h){var p=u.getItemVisual(h,"color"),m=u.getItemVisual(h,s),v=u.getItemVisual(h,s+"Size");if(!m||m==="none")return;O.isArray(v)||(v=[v,v]);var y=C.createSymbol(m,-v[0]/2,-v[1]/2,v[0],v[1],p);return y.name=s,y}function i(s){var u=new A({name:"line",subPixelOptimize:!0});return n(u.shape,s),u}function n(s,u){s.x1=u[0][0],s.y1=u[0][1],s.x2=u[1][0],s.y2=u[1][1],s.percent=1;var h=u[2];h?(s.cpx1=h[0],s.cpy1=h[1]):(s.cpx1=NaN,s.cpy1=NaN)}function e(){var s=this,u=s.childOfName("fromSymbol"),h=s.childOfName("toSymbol"),p=s.childOfName("label");if(!u&&!h&&p.ignore)return;for(var m=1,v=this.parent;v;)v.scale&&(m/=v.scale[0]),v=v.parent;var y=s.childOfName("line");if(!this.__dirty&&!y.__dirty)return;var E=y.shape.percent,T=y.pointAt(0),w=y.pointAt(E),S=x.sub([],w,T);if(x.normalize(S,S),u){u.attr("position",T);var _=y.tangentAt(0);u.attr("rotation",Math.PI/2-Math.atan2(_[1],_[0])),u.attr("scale",[m*E,m*E])}if(h){h.attr("position",w);var _=y.tangentAt(1);h.attr("rotation",-Math.PI/2-Math.atan2(_[1],_[0])),h.attr("scale",[m*E,m*E])}if(!p.ignore){p.attr("position",w);var I,L,N,R,D=p.__labelDistance,F=D[0]*m,M=D[1]*m,U=E/2,_=y.tangentAt(U),B=[_[1],-_[0]],j=y.pointAt(U);B[1]>0&&(B[0]=-B[0],B[1]=-B[1]);var W=_[0]<0?-1:1;if(p.__position!=="start"&&p.__position!=="end"){var V=-Math.atan2(_[1],_[0]);w[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=-M,N="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":z=M,N="top";break;default:z=0,N="middle"}switch(p.__position){case"end":I=[S[0]*F+w[0],S[1]*M+w[1]],L=S[0]>.8?"left":S[0]<-.8?"right":"center",N=S[1]>.8?"top":S[1]<-.8?"bottom":"middle";break;case"start":I=[-S[0]*F+T[0],-S[1]*M+T[1]],L=S[0]>.8?"right":S[0]<-.8?"left":"center",N=S[1]>.8?"bottom":S[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":I=[F*W+T[0],T[1]+z],L=_[0]<0?"right":"left",R=[-F*W,-z];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":I=[j[0],j[1]+z],L="center",R=[0,-z];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":I=[-F*W+w[0],w[1]+z],L=_[0]>=0?"right":"left",R=[F*W,-z];break}p.attr({style:{textVerticalAlign:p.__verticalAlign||N,textAlign:p.__textAlign||L},position:I,scale:[m,m],origin:R})}}function l(s,u,h){b.Group.call(this),this._createLine(s,u,h)}var t=l.prototype;t.beforeUpdate=e,t._createLine=function(s,u,h){var p=s.hostModel,m=s.getItemLayout(u),v=i(m);v.shape.percent=0,b.initProps(v,{shape:{percent:1}},p,u),this.add(v);var y=new b.Text({name:"label",lineLabelOriginalOpacity:1});this.add(y),O.each(c,function(E){var T=r(E,s,u);this.add(T),this[o(E)]=s.getItemVisual(u,E)},this),this._updateCommonStl(s,u,h)},t.updateData=function(s,u,h){var p=s.hostModel,m=this.childOfName("line"),v=s.getItemLayout(u),y={shape:{}};n(y.shape,v),b.updateProps(m,y,p,u),O.each(c,function(E){var T=s.getItemVisual(u,E),w=o(E);if(this[w]!==T){this.remove(this.childOfName(E));var S=r(E,s,u);this.add(S)}this[w]=T},this),this._updateCommonStl(s,u,h)},t._updateCommonStl=function(s,u,h){var p=s.hostModel,m=this.childOfName("line"),v=h&&h.lineStyle,y=h&&h.hoverLineStyle,E=h&&h.labelModel,T=h&&h.hoverLabelModel;if(!h||s.hasItemOption){var w=s.getItemModel(u);v=w.getModel("lineStyle").getLineStyle(),y=w.getModel("emphasis.lineStyle").getLineStyle(),E=w.getModel("label"),T=w.getModel("emphasis.label")}var S=s.getItemVisual(u,"color"),_=O.retrieve3(s.getItemVisual(u,"opacity"),v.opacity,1);m.useStyle(O.defaults({strokeNoScale:!0,fill:"none",stroke:S,opacity:_},v)),m.hoverStyle=y,O.each(c,function(W){var V=this.childOfName(W);V&&(V.setColor(S),V.setStyle({opacity:_}))},this);var I=E.getShallow("show"),L=T.getShallow("show"),N=this.childOfName("label"),R,D;if((I||L)&&(R=S||"#000",D=p.getFormattedLabel(u,"normal",s.dataType),D==null)){var F=p.getRawValue(u);D=F==null?s.getName(u):isFinite(F)?f(F):F}var M=I?D:null,U=L?O.retrieve2(p.getFormattedLabel(u,"emphasis",s.dataType),D):null,B=N.style;if(M!=null||U!=null){b.setTextStyle(N.style,E,{text:M},{autoColor:R}),N.__textAlign=B.textAlign,N.__verticalAlign=B.textVerticalAlign,N.__position=E.get("position")||"middle";var j=E.get("distance");O.isArray(j)||(j=[j,j]),N.__labelDistance=j}U!=null?N.hoverStyle={text:U,textFill:T.getTextColor(!0),fontStyle:T.getShallow("fontStyle"),fontWeight:T.getShallow("fontWeight"),fontSize:T.getShallow("fontSize"),fontFamily:T.getShallow("fontFamily")}:N.hoverStyle={text:null},N.ignore=!I&&!L,b.setHoverStyle(this)},t.highlight=function(){this.trigger("emphasis")},t.downplay=function(){this.trigger("normal")},t.updateLayout=function(s,u){this.setLinePoints(s.getItemLayout(u))},t.setLinePoints=function(s){var u=this.childOfName("line");n(u.shape,s),u.dirty()},O.inherits(l,b.Group);var a=l;H.exports=a},fmMI:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=C.each,b=C.filter,g=C.map,f=C.isArray,c=C.indexOf,o=C.isObject,r=C.isString,i=C.createHashMap,n=C.assert,e=C.clone,l=C.merge,t=C.extend,a=C.mixin,s=d("4NO4"),u=d("Qxkt"),h=d("bLfw"),p=d("iXHM"),m=d("5Hur"),v=d("D5nY"),y=v.resetSourceDefaulter,E="\0_ec_inner",T=u.extend({init:function(M,U,B,j){B=B||{},this.option=null,this._theme=new u(B),this._optionManager=j},setOption:function(M,U){n(!(E in M),"please use chart.getOption()"),this._optionManager.setOption(M,U),this.resetOption(null)},resetOption:function(M){var U=!1,B=this._optionManager;if(!M||M==="recreate"){var j=B.mountOption(M==="recreate");!this.option||M==="recreate"?_.call(this,j):(this.restoreData(),this.mergeOption(j)),U=!0}if((M==="timeline"||M==="media")&&this.restoreData(),!M||M==="recreate"||M==="timeline"){var W=B.getTimelineOption(this);W&&(this.mergeOption(W),U=!0)}if(!M||M==="recreate"||M==="media"){var V=B.getMediaOption(this,this._api);V.length&&A(V,function(z){this.mergeOption(z,U=!0)},this)}return U},mergeOption:function(M){var U=this.option,B=this._componentsMap,j=[];y(this),A(M,function(V,z){if(V==null)return;h.hasClass(z)?z&&j.push(z):U[z]=U[z]==null?e(V):l(U[z],V,!0)}),h.topologicalTravel(j,h.getAllClassMainTypes(),W,this);function W(V,z){var J=s.normalizeToArray(M[V]),q=s.mappingToExists(B.get(V),J);s.makeIdAndName(q),A(q,function(ae,ve){var _e=ae.option;o(_e)&&(ae.keyInfo.mainType=V,ae.keyInfo.subType=L(V,_e,ae.exist))});var de=I(B,z);U[V]=[],B.set(V,[]),A(q,function(ae,ve){var _e=ae.exist,Ie=ae.option;if(n(o(Ie)||_e,"Empty component definition"),!Ie)_e.mergeOption({},this),_e.optionUpdated({},!1);else{var He=h.getClass(V,ae.keyInfo.subType,!0);if(_e&&_e.constructor===He)_e.name=ae.keyInfo.name,_e.mergeOption(Ie,this),_e.optionUpdated(Ie,!1);else{var me=t({dependentModels:de,componentIndex:ve},ae.keyInfo);_e=new He(Ie,this,this,me),t(_e,me),_e.init(Ie,this,this,me),_e.optionUpdated(null,!0)}}B.get(V)[ve]=_e,U[V][ve]=_e.option},this),V==="series"&&N(this,B.get("series"))}this._seriesIndicesMap=i(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var M=e(this.option);return A(M,function(U,B){if(h.hasClass(B)){for(var U=s.normalizeToArray(U),j=U.length-1;j>=0;j--)s.isIdInner(U[j])&&U.splice(j,1);M[B]=U}}),delete M[E],M},getTheme:function(){return this._theme},getComponent:function(M,U){var B=this._componentsMap.get(M);if(B)return B[U||0]},queryComponents:function(M){var U=M.mainType;if(!U)return[];var B=M.index,j=M.id,W=M.name,V=this._componentsMap.get(U);if(!V||!V.length)return[];var z;if(B!=null)f(B)||(B=[B]),z=b(g(B,function(de){return V[de]}),function(de){return!!de});else if(j!=null){var J=f(j);z=b(V,function(de){return J&&c(j,de.id)>=0||!J&&de.id===j})}else if(W!=null){var q=f(W);z=b(V,function(de){return q&&c(W,de.name)>=0||!q&&de.name===W})}else z=V.slice();return R(z,M)},findComponents:function(M){var U=M.query,B=M.mainType,j=V(U),W=j?this.queryComponents(j):this._componentsMap.get(B);return z(R(W,M));function V(J){var q=B+"Index",de=B+"Id",ae=B+"Name";return J&&(J[q]!=null||J[de]!=null||J[ae]!=null)?{mainType:B,index:J[q],id:J[de],name:J[ae]}:null}function z(J){return M.filter?b(J,M.filter):J}},eachComponent:function(M,U,B){var j=this._componentsMap;if(typeof M=="function")B=U,U=M,j.each(function(V,z){A(V,function(J,q){U.call(B,z,J,q)})});else if(r(M))A(j.get(M),U,B);else if(o(M)){var W=this.findComponents(M);A(W,U,B)}},getSeriesByName:function(M){var U=this._componentsMap.get("series");return b(U,function(B){return B.name===M})},getSeriesByIndex:function(M){return this._componentsMap.get("series")[M]},getSeriesByType:function(M){var U=this._componentsMap.get("series");return b(U,function(B){return B.subType===M})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(M,U){D(this),A(this._seriesIndices,function(B){var j=this._componentsMap.get("series")[B];M.call(U,j,B)},this)},eachRawSeries:function(M,U){A(this._componentsMap.get("series"),M,U)},eachSeriesByType:function(M,U,B){D(this),A(this._seriesIndices,function(j){var W=this._componentsMap.get("series")[j];W.subType===M&&U.call(B,W,j)},this)},eachRawSeriesByType:function(M,U,B){return A(this.getSeriesByType(M),U,B)},isSeriesFiltered:function(M){return D(this),this._seriesIndicesMap.get(M.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(M,U){D(this);var B=b(this._componentsMap.get("series"),M,U);N(this,B)},restoreData:function(M){var U=this._componentsMap;N(this,U.get("series"));var B=[];U.each(function(j,W){B.push(W)}),h.topologicalTravel(B,h.getAllClassMainTypes(),function(j,W){A(U.get(j),function(V){(j!=="series"||!w(V,M))&&V.restoreData()})})}});function w(M,U){if(U){var B=U.seiresIndex,j=U.seriesId,W=U.seriesName;return B!=null&&M.componentIndex!==B||j!=null&&M.id!==j||W!=null&&M.name!==W}}function S(M,U){var B=M.color&&!M.colorLayer;A(U,function(j,W){if(W==="colorLayer"&&B)return;h.hasClass(W)||(typeof j=="object"?M[W]=M[W]?l(M[W],j,!1):e(j):M[W]==null&&(M[W]=j))})}function _(M){M=M,this.option={},this.option[E]=1,this._componentsMap=i({series:[]}),this._seriesIndices,this._seriesIndicesMap,S(M,this._theme.option),l(M,p,!1),this.mergeOption(M)}function I(M,U){f(U)||(U=U?[U]:[]);var B={};return A(U,function(j){B[j]=(M.get(j)||[]).slice()}),B}function L(M,U,B){var j=U.type?U.type:B?B.subType:h.determineSubType(M,U);return j}function N(M,U){M._seriesIndicesMap=i(M._seriesIndices=g(U,function(B){return B.componentIndex})||[])}function R(M,U){return U.hasOwnProperty("subType")?b(M,function(B){return B.subType===U.subType}):M}function D(M){}a(T,m);var F=T;H.exports=F},fyUT:function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),b=d("q1tI"),g=d.n(b),f=d("TSYQ"),c=d.n(f),o=d("Ff2n"),r=d("rePB"),i=d("1OyB"),n=d("vuIU"),e=d("Ji7U"),l=d("md7G"),t=d("foSv"),a=d("4IlW");function s(z,J){var q=Object.keys(z);if(Object.getOwnPropertySymbols){var de=Object.getOwnPropertySymbols(z);J&&(de=de.filter(function(ae){return Object.getOwnPropertyDescriptor(z,ae).enumerable})),q.push.apply(q,de)}return q}function u(z){for(var J=1;J<arguments.length;J++){var q=arguments[J]!=null?arguments[J]:{};J%2?s(Object(q),!0).forEach(function(de){Object(r.a)(z,de,q[de])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(q)):s(Object(q)).forEach(function(de){Object.defineProperty(z,de,Object.getOwnPropertyDescriptor(q,de))})}return z}function h(z){var J=p();return function(){var de=Object(t.a)(z),ae;if(J){var ve=Object(t.a)(this).constructor;ae=Reflect.construct(de,arguments,ve)}else ae=de.apply(this,arguments);return Object(l.a)(this,ae)}}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 m(){}function v(z){z.preventDefault()}var y=function(J){return J.replace(/[^\w.-]+/g,"")},E=200,T=600,w=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,S=function(J){return J!=null},_=function(J,q){return q===J||typeof q=="number"&&typeof J=="number"&&isNaN(q)&&isNaN(J)},I=function(z){Object(e.a)(q,z);var J=h(q);function q(de){var ae;Object(i.a)(this,q),ae=J.call(this,de),ae.onKeyDown=function(Ie){var He=ae.props,me=He.onKeyDown,ke=He.onPressEnter;if(Ie.keyCode===a.a.UP){var se=ae.getRatio(Ie);ae.up(Ie,se,null),ae.stop()}else if(Ie.keyCode===a.a.DOWN){var te=ae.getRatio(Ie);ae.down(Ie,te,null),ae.stop()}else Ie.keyCode===a.a.ENTER&&ke&&ke(Ie);if(ae.recordCursorPosition(),ae.lastKeyCode=Ie.keyCode,me){for(var Ge=arguments.length,oe=new Array(Ge>1?Ge-1:0),Y=1;Y<Ge;Y++)oe[Y-1]=arguments[Y];me.apply(void 0,[Ie].concat(oe))}},ae.onKeyUp=function(Ie){var He=ae.props.onKeyUp;if(ae.stop(),ae.recordCursorPosition(),He){for(var me=arguments.length,ke=new Array(me>1?me-1:0),se=1;se<me;se++)ke[se-1]=arguments[se];He.apply(void 0,[Ie].concat(ke))}},ae.onChange=function(Ie){var He=ae.props.onChange;ae.state.focused&&(ae.inputting=!0),ae.rawInput=ae.props.parser(ae.getValueFromEvent(Ie)),ae.setState({inputValue:ae.rawInput}),He(ae.toNumber(ae.rawInput))},ae.onMouseUp=function(){var Ie=ae.props.onMouseUp;ae.recordCursorPosition(),Ie&&Ie.apply(void 0,arguments)},ae.onFocus=function(){var Ie;ae.setState({focused:!0}),(Ie=ae.props).onFocus.apply(Ie,arguments)},ae.onBlur=function(){var Ie=ae.props.onBlur;ae.inputting=!1,ae.setState({focused:!1});var He=ae.getCurrentValidValue(ae.state.inputValue),me=ae.setValue(He,m);if(Ie){var ke=ae.input.value,se=ae.getInputDisplayValue({focus:!1,value:me});ae.input.value=se&&Number(se),Ie.apply(void 0,arguments),ae.input.value=ke}},ae.getRatio=function(Ie){var He=1;return Ie.metaKey||Ie.ctrlKey?He=.1:Ie.shiftKey&&(He=10),He},ae.getFullNum=function(Ie){return isNaN(Ie)?Ie:/e/i.test(String(Ie))?Number(Ie).toFixed(18).replace(/\.?0+$/,""):Ie},ae.getPrecision=function(Ie){if(S(ae.props.precision))return ae.props.precision;var He=String(Ie);if(He.indexOf("e-")>=0)return parseInt(He.slice(He.indexOf("e-")+2),10);var me=0;return He.indexOf(".")>=0&&(me=He.length-He.indexOf(".")-1),me},ae.getInputDisplayValue=function(Ie){var He=Ie||ae.state,me=He.focused,ke=He.inputValue,se=He.value,te;me?te=ke:te=ae.toPrecisionAsStep(se),te==null&&(te="");var Ge=ae.formatWrapper(te);return S(ae.props.decimalSeparator)&&(Ge=Ge.toString().replace(".",ae.props.decimalSeparator)),Ge},ae.recordCursorPosition=function(){try{ae.cursorStart=ae.input.selectionStart,ae.cursorEnd=ae.input.selectionEnd,ae.currentValue=ae.input.value,ae.cursorBefore=ae.input.value.substring(0,ae.cursorStart),ae.cursorAfter=ae.input.value.substring(ae.cursorEnd)}catch(Ie){}},ae.restoreByAfter=function(Ie){if(Ie===void 0)return!1;var He=ae.input.value,me=He.lastIndexOf(Ie);if(me===-1)return!1;var ke=ae.cursorBefore.length;return ae.lastKeyCode===a.a.DELETE&&ae.cursorBefore.charAt(ke-1)===Ie[0]?(ae.fixCaret(ke,ke),!0):me+Ie.length===He.length?(ae.fixCaret(me,me),!0):!1},ae.partRestoreByAfter=function(Ie){return Ie===void 0?!1:Array.prototype.some.call(Ie,function(He,me){var ke=Ie.substring(me);return ae.restoreByAfter(ke)})},ae.isNotCompleteNumber=function(Ie){return isNaN(Ie)||Ie===""||Ie===null||Ie&&Ie.toString().indexOf(".")===Ie.toString().length-1},ae.stop=function(){ae.autoStepTimer&&clearTimeout(ae.autoStepTimer)},ae.down=function(Ie,He,me){ae.pressingUpOrDown=!0,ae.step("down",Ie,He,me)},ae.up=function(Ie,He,me){ae.pressingUpOrDown=!0,ae.step("up",Ie,He,me)},ae.saveInput=function(Ie){ae.input=Ie};var ve=de.value;ve===void 0&&(ve=de.defaultValue),ae.state={focused:de.autoFocus};var _e=ae.getValidValue(ae.toNumber(ve));return ae.state=u(u({},ae.state),{},{inputValue:ae.toPrecisionAsStep(_e),value:_e}),ae}return Object(n.a)(q,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(ae){var ve=this.props,_e=ve.value,Ie=ve.onChange,He=ve.max,me=ve.min,ke=this.state.focused;if(ae){if(!_(ae.value,_e)||!_(ae.max,He)||!_(ae.min,me)){var se=ke?_e:this.getValidValue(_e),te;this.pressingUpOrDown?te=se:this.inputting?te=this.rawInput:te=this.toPrecisionAsStep(se),this.setState({value:se,inputValue:te})}var Ge="value"in this.props?_e:this.state.value;"max"in this.props&&ae.max!==He&&typeof Ge=="number"&&Ge>He&&Ie&&Ie(He),"min"in this.props&&ae.min!==me&&typeof Ge=="number"&&Ge<me&&Ie&&Ie(me)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var oe=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===a.a.BACKSPACE?oe=this.cursorStart-1:this.lastKeyCode===a.a.DELETE&&(oe=this.cursorStart):oe=this.input.value.length,this.fixCaret(oe,oe)}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(Y){}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(ae){var ve=ae;return ve===""?ve="":this.isNotCompleteNumber(parseFloat(ve))?ve=this.state.value:ve=this.getValidValue(ve),this.toNumber(ve)}},{key:"getValueFromEvent",value:function(ae){var ve=ae.target.value.trim().replace(/。/g,".");return S(this.props.decimalSeparator)&&(ve=ve.replace(this.props.decimalSeparator,".")),ve}},{key:"getValidValue",value:function(ae){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,_e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,Ie=parseFloat(ae);return isNaN(Ie)?ae:(Ie<ve&&(Ie=ve),Ie>_e&&(Ie=_e),Ie)}},{key:"setValue",value:function(ae,ve){var _e=this.props.precision,Ie=this.isNotCompleteNumber(parseFloat(ae))?null:parseFloat(ae),He=this.state.value,me=He===void 0?null:He,ke=this.state.inputValue,se=ke===void 0?null:ke,te=typeof Ie=="number"?Ie.toFixed(_e):"".concat(Ie),Ge=Ie!==me||te!=="".concat(se);return"value"in this.props?(se=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:se},ve)):this.setState({value:Ie,inputValue:this.toPrecisionAsStep(ae)},ve),Ge&&this.props.onChange(Ie),Ie}},{key:"getMaxPrecision",value:function(ae){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=this.props,Ie=_e.precision,He=_e.step;if(S(Ie))return Ie;var me=this.getPrecision(ve),ke=this.getPrecision(He),se=this.getPrecision(ae);return ae?Math.max(se,me+ke):me+ke}},{key:"getPrecisionFactor",value:function(ae){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=this.getMaxPrecision(ae,ve);return Math.pow(10,_e)}},{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(ae){return this.props.formatter?this.props.formatter(ae):ae}},{key:"toPrecisionAsStep",value:function(ae){if(this.isNotCompleteNumber(ae)||ae==="")return ae;var ve=Math.abs(this.getMaxPrecision(ae));return isNaN(ve)?ae.toString():Number(ae).toFixed(ve)}},{key:"toNumber",value:function(ae){var ve=this.props.precision,_e=this.state.focused,Ie=ae&&ae.length>16&&_e;return this.isNotCompleteNumber(ae)||Ie?ae:S(ve)?Math.round(ae*Math.pow(10,ve))/Math.pow(10,ve):Number(ae)}},{key:"upStep",value:function(ae,ve){var _e=this.props.step,Ie=this.getPrecisionFactor(ae,ve),He=Math.abs(this.getMaxPrecision(ae,ve)),me=((Ie*ae+Ie*_e*ve)/Ie).toFixed(He);return this.toNumber(me)}},{key:"downStep",value:function(ae,ve){var _e=this.props.step,Ie=this.getPrecisionFactor(ae,ve),He=Math.abs(this.getMaxPrecision(ae,ve)),me=((Ie*ae-Ie*_e*ve)/Ie).toFixed(He);return this.toNumber(me)}},{key:"step",value:function(ae,ve){var _e=this,Ie=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 me=this.props;if(me.disabled)return;var ke=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ke))return;var se=this["".concat(ae,"Step")](ke,Ie),te=se>me.max||se<me.min;if(se>me.max?se=me.max:se<me.min&&(se=me.min),this.setValue(se,null),this.setState({focused:!0},function(){_e.pressingUpOrDown=!1}),te)return;this.autoStepTimer=setTimeout(function(){_e[ae](ve,Ie,!0)},He?E:T)}},{key:"fixCaret",value:function(ae,ve){if(ae===void 0||ve===void 0||!this.input||!this.input.value)return;try{var _e=this.input.selectionStart,Ie=this.input.selectionEnd;(ae!==_e||ve!==Ie)&&this.input.setSelectionRange(ae,ve)}catch(He){}}},{key:"render",value:function(){var ae,ve=this.props,_e=ve.prefixCls,Ie=ve.disabled,He=ve.readOnly,me=ve.useTouch,ke=ve.autoComplete,se=ve.upHandler,te=ve.downHandler,Ge=ve.className,oe=ve.max,Y=ve.min,G=ve.style,Q=ve.title,ye=ve.onMouseEnter,ce=ve.onMouseLeave,Te=ve.onMouseOver,Se=ve.onMouseOut,le=ve.required,fe=ve.onClick,Ee=ve.tabIndex,Ve=ve.type,vt=ve.placeholder,et=ve.id,Oe=ve.inputMode,Tt=ve.pattern,Je=ve.step,St=ve.maxLength,Mt=ve.autoFocus,er=ve.name,It=ve.onPaste,_t=ve.onInput,Xe=Object(o.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"]),ie=this.state,X=ie.value,Be=ie.focused,Ce=c()(_e,(ae={},Object(r.a)(ae,Ge,!!Ge),Object(r.a)(ae,"".concat(_e,"-disabled"),Ie),Object(r.a)(ae,"".concat(_e,"-focused"),Be),ae)),Z={};Object.keys(Xe).forEach(function(st){(st.substr(0,5)==="data-"||st.substr(0,5)==="aria-"||st==="role")&&(Z[st]=Xe[st])});var nt=!He&&!Ie,ct=this.getInputDisplayValue(null),Qe=(X||X===0)&&(isNaN(X)||Number(X)>=oe),dt=(X||X===0)&&(isNaN(X)||Number(X)<=Y),Ft=Qe||Ie||He,Lr=dt||Ie||He,Wt=c()("".concat(_e,"-handler"),"".concat(_e,"-handler-up"),Object(r.a)({},"".concat(_e,"-handler-up-disabled"),Ft)),ar=c()("".concat(_e,"-handler"),"".concat(_e,"-handler-down"),Object(r.a)({},"".concat(_e,"-handler-down-disabled"),Lr)),Ut=me?{onTouchStart:Ft?m:this.up,onTouchEnd:this.stop}:{onMouseDown:Ft?m:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},kt=me?{onTouchStart:Lr?m:this.down,onTouchEnd:this.stop}:{onMouseDown:Lr?m:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return g.a.createElement("div",{className:Ce,style:G,title:Q,onMouseEnter:ye,onMouseLeave:ce,onMouseOver:Te,onMouseOut:Se,onFocus:function(){return null},onBlur:function(){return null}},g.a.createElement("div",{className:"".concat(_e,"-handler-wrap")},g.a.createElement("span",Object.assign({unselectable:"on"},Ut,{role:"button","aria-label":"Increase Value","aria-disabled":Ft,className:Wt}),se||g.a.createElement("span",{unselectable:"on",className:"".concat(_e,"-handler-up-inner"),onClick:v})),g.a.createElement("span",Object.assign({unselectable:"on"},kt,{role:"button","aria-label":"Decrease Value","aria-disabled":Lr,className:ar}),te||g.a.createElement("span",{unselectable:"on",className:"".concat(_e,"-handler-down-inner"),onClick:v}))),g.a.createElement("div",{className:"".concat(_e,"-input-wrap")},g.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Y,"aria-valuemax":oe,"aria-valuenow":X,required:le,type:Ve,placeholder:vt,onPaste:It,onClick:fe,onMouseUp:this.onMouseUp,className:"".concat(_e,"-input"),tabIndex:Ee,autoComplete:ke,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:nt?this.onKeyDown:m,onKeyUp:nt?this.onKeyUp:m,autoFocus:Mt,maxLength:St,readOnly:He,disabled:Ie,max:oe,min:Y,step:Je,name:er,title:Q,id:et,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(ct),pattern:Tt,inputMode:Oe,onInput:_t},Z))))}}]),q}(g.a.Component);I.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:w,min:-w,step:1,style:{},onChange:m,onKeyDown:m,onPressEnter:m,onFocus:m,onBlur:m,parser:y,required:!1,autoComplete:"off"};var L=I,N=L,R=d("FH2Y"),D=d.n(R),F=d("HQEm"),M=d.n(F),U=d("H84U"),B=d("3Nzz"),j=function(z,J){var q={};for(var de in z)Object.prototype.hasOwnProperty.call(z,de)&&J.indexOf(de)<0&&(q[de]=z[de]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,de=Object.getOwnPropertySymbols(z);ae<de.length;ae++)J.indexOf(de[ae])<0&&Object.prototype.propertyIsEnumerable.call(z,de[ae])&&(q[de[ae]]=z[de[ae]]);return q},W=b.forwardRef(function(z,J){var q=function(ae){var ve=ae.getPrefixCls,_e=ae.direction,Ie=z.className,He=z.size,me=z.prefixCls,ke=z.readOnly,se=j(z,["className","size","prefixCls","readOnly"]),te=ve("input-number",me),Ge=b.createElement(D.a,{className:"".concat(te,"-handler-up-inner")}),oe=b.createElement(M.a,{className:"".concat(te,"-handler-down-inner")});return b.createElement(B.b.Consumer,null,function(Y){var G,Q=He||Y,ye=c()((G={},A()(G,"".concat(te,"-lg"),Q==="large"),A()(G,"".concat(te,"-sm"),Q==="small"),A()(G,"".concat(te,"-rtl"),_e==="rtl"),A()(G,"".concat(te,"-readonly"),ke),G),Ie);return b.createElement(N,x()({ref:J,className:ye,upHandler:Ge,downHandler:oe,prefixCls:te,readOnly:ke},se))})};return b.createElement(U.a,null,q)});W.defaultProps={step:1};var V=k.a=W},g0SD:function(H,k,d){var O=d("bYtY"),x=d("9wZj"),C=d("OELB"),A=d("YXkt"),b=d("kj2x"),g=d("iPDy");function f(r,i,n){var e=i.coordinateSystem;r.each(function(l){var t=r.getItemModel(l),a,s=C.parsePercent(t.get("x"),n.getWidth()),u=C.parsePercent(t.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(u))a=[s,u];else if(i.getMarkerPosition)a=i.getMarkerPosition(r.getValues(r.dimensions,l));else if(e){var h=r.get(e.dimensions[0],l),p=r.get(e.dimensions[1],l);a=e.dataToPoint([h,p])}isNaN(s)||(a[0]=s),isNaN(u)||(a[1]=u),r.setItemLayout(l,a)})}var c=g.extend({type:"markPoint",updateTransform:function(r,i,n){i.eachSeries(function(e){var l=e.markPointModel;l&&(f(l.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout(l))},this)},renderSeries:function(r,i,n,e){var l=r.coordinateSystem,t=r.id,a=r.getData(),s=this.markerGroupMap,u=s.get(t)||s.set(t,new x),h=o(l,r,i);i.setData(h),f(i.getData(),r,e),h.each(function(p){var m=h.getItemModel(p),v=m.getShallow("symbol"),y=m.getShallow("symbolSize"),E=O.isFunction(v),T=O.isFunction(y);if(E||T){var w=i.getRawValue(p),S=i.getDataParams(p);E&&(v=v(w,S)),T&&(y=y(w,S))}h.setItemVisual(p,{symbol:v,symbolSize:y,color:m.get("itemStyle.color")||a.getVisual("color")})}),u.updateData(h),this.group.add(u.group),h.eachItemGraphicEl(function(p){p.traverse(function(m){m.dataModel=i})}),u.__keep=!0,u.group.silent=i.get("silent")||r.get("silent")}});function o(r,i,n){var e;r?e=O.map(r&&r.dimensions,function(a){var s=i.getData().getDimensionInfo(i.getData().mapDimension(a))||{};return O.defaults({name:a},s)}):e=[{name:"value",type:"float"}];var l=new A(e,n),t=O.map(n.get("data"),O.curry(b.dataTransform,i));return r&&(t=O.filter(t,O.curry(b.dataFilter,r))),l.initData(t,null,r?b.dimValueGetter:function(a){return a.value}),l}H.exports=c},g7p0:function(H,k,d){var O=d("bYtY"),x=d("bLfw"),C=d("+TT/"),A=C.getLayoutParams,b=C.sizeCalculable,g=C.mergeLayoutParam,f=x.extend({type:"calendar",coordinateSystem:null,defaultOption:{zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},init:function(r,i,n,e){var l=A(r);f.superApply(this,"init",arguments),c(r,l)},mergeOption:function(r,i){f.superApply(this,"mergeOption",arguments),c(this.option,r)}});function c(r,i){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(l){return b(i,l)&&(n[l]="auto"),n[l]!=null&&n[l]!=="auto"});g(r,i,{type:"box",ignoreSize:e})}var o=f;H.exports=o},g9YV:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("pED+"),A=d.n(C),b=d("+L6B"),g=d("R9oj"),f=d("7Kak"),c=d("sRBo"),o=d("qVdP"),r=d("T2oS"),i=d("DjyN"),n=d("5Dmo")},gIYZ:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var 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"};k.default=O},gKaM:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},gPAo:function(H,k){function d(A){return A}function O(A,b,g,f,c){this._old=A,this._new=b,this._oldKeyGetter=g||d,this._newKeyGetter=f||d,this.context=c}O.prototype={constructor:O,add:function(A){return this._add=A,this},update:function(A){return this._update=A,this},remove:function(A){return this._remove=A,this},execute:function(){var A=this._old,b=this._new,g={},f={},c=[],o=[],r;for(x(A,g,c,"_oldKeyGetter",this),x(b,f,o,"_newKeyGetter",this),r=0;r<A.length;r++){var i=c[r],n=f[i];if(n!=null){var e=n.length;e?(e===1&&(f[i]=null),n=n.shift()):f[i]=null,this._update&&this._update(n,r)}else this._remove&&this._remove(r)}for(var r=0;r<o.length;r++){var i=o[r];if(f.hasOwnProperty(i)){var n=f[i];if(n==null)continue;if(!n.length)this._add&&this._add(n);else for(var l=0,e=n.length;l<e;l++)this._add&&this._add(n[l])}}}};function x(A,b,g,f,c){for(var o=0;o<A.length;o++){var r="_ec_"+c[f](A[o],o),i=b[r];i==null?(g.push(r),b[r]=o):(i.length||(b[r]=i=[i]),i.push(o))}}var C=O;H.exports=C},gRFJ:function(H,k,d){H.exports=[d("rdUC"),d("ynwM"),d("RELg"),d("DlR+"),d("CrYA"),d("PD8m")]},gaXo:function(module,exports){typeof JSON!="object"&&(JSON={}),function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(H){return H<10?"0"+H:H}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(H){return rx_escapable.lastIndex=0,rx_escapable.test(H)?'"'+H.replace(rx_escapable,function(k){var d=meta[k];return typeof d=="string"?d:"\\u"+("0000"+k.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+H+'"'}function str(H,k){var d,O,x,C,A=gap,b,g=k[H];g&&typeof g=="object"&&typeof g.toJSON=="function"&&(g=g.toJSON(H)),typeof rep=="function"&&(g=rep.call(k,H,g));switch(typeof g){case"string":return quote(g);case"number":return isFinite(g)?String(g):"null";case"boolean":case"null":return String(g);case"object":if(!g)return"null";if(gap+=indent,b=[],Object.prototype.toString.apply(g)==="[object Array]"){for(C=g.length,d=0;d<C;d+=1)b[d]=str(d,g)||"null";return x=b.length===0?"[]":gap?`[
`+gap+b.join(`,
`+gap)+`
`+A+"]":"["+b.join(",")+"]",gap=A,x}if(rep&&typeof rep=="object")for(C=rep.length,d=0;d<C;d+=1)typeof rep[d]=="string"&&(O=rep[d],x=str(O,g),x&&b.push(quote(O)+(gap?": ":":")+x));else for(O in g)Object.prototype.hasOwnProperty.call(g,O)&&(x=str(O,g),x&&b.push(quote(O)+(gap?": ":":")+x));return x=b.length===0?"{}":gap?`{
`+gap+b.join(`,
`+gap)+`
`+A+"}":"{"+b.join(",")+"}",gap=A,x}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(H,k,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=k,k&&typeof k!="function"&&(typeof k!="object"||typeof k.length!="number"))throw new Error("JSON.stringify");return str("",{"":H})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(H,k){var d,O,x=H[k];if(x&&typeof x=="object")for(d in x)Object.prototype.hasOwnProperty.call(x,d)&&(O=walk(x,d),O!==void 0?x[d]=O:delete x[d]);return reviver.call(H,k,x)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(H){return"\\u"+("0000"+H.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},gawk:function(H,k,d){var O=d("+TT/"),x=d("bYtY"),C=d("4NO4"),A=C.groupData;function b(_,I,L){_.eachSeriesByType("sankey",function(N){var R=N.get("nodeWidth"),D=N.get("nodeGap"),F=g(N,I);N.layoutInfo=F;var M=F.width,U=F.height,B=N.getGraph(),j=B.nodes,W=B.edges;c(j);var V=x.filter(j,function(de){return de.getLayout().value===0}),z=V.length!==0?0:N.get("layoutIterations"),J=N.get("orient"),q=N.get("nodeAlign");f(j,W,R,D,M,U,z,J,q)})}function g(_,I){return O.getLayoutRect(_.getBoxLayoutParams(),{width:I.getWidth(),height:I.getHeight()})}function f(_,I,L,N,R,D,F,M,U){o(_,I,L,R,D,M,U),l(_,I,D,R,N,F,M),S(_,M)}function c(_){x.each(_,function(I){var L=T(I.outEdges,E),N=T(I.inEdges,E),R=I.getValue()||0,D=Math.max(L,N,R);I.setLayout({value:D},!0)})}function o(_,I,L,N,R,D,F){for(var M=[],U=[],B=[],j=[],W=0,V=0,z=0;z<I.length;z++)M[z]=1;for(z=0;z<_.length;z++)U[z]=_[z].inEdges.length,U[z]===0&&B.push(_[z]);for(var J=-1;B.length;){for(var q=0;q<B.length;q++){var de=B[q],ae=de.hostGraph.data.getRawDataItem(de.dataIndex),ve=ae.depth!=null&&ae.depth>=0;ve&&ae.depth>J&&(J=ae.depth),de.setLayout({depth:ve?ae.depth:W},!0),D==="vertical"?de.setLayout({dy:L},!0):de.setLayout({dx:L},!0);for(var _e=0;_e<de.outEdges.length;_e++){var Ie=de.outEdges[_e],He=I.indexOf(Ie);M[He]=0;var me=Ie.node2,ke=_.indexOf(me);--U[ke]===0&&j.indexOf(me)<0&&j.push(me)}}++W,B=j,j=[]}for(z=0;z<M.length;z++)if(M[z]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var se=J>W-1?J:W-1;F&&F!=="left"&&i(_,F,D,se);var V=D==="vertical"?(R-L)/se:(N-L)/se;e(_,V,D)}function r(_){var I=_.hostGraph.data.getRawDataItem(_.dataIndex);return I.depth!=null&&I.depth>=0}function i(_,I,L,N){if(I==="right"){for(var R=[],D=_,F=0;D.length;){for(var M=0;M<D.length;M++){var U=D[M];U.setLayout({skNodeHeight:F},!0);for(var B=0;B<U.inEdges.length;B++){var j=U.inEdges[B];R.indexOf(j.node1)<0&&R.push(j.node1)}}D=R,R=[],++F}x.each(_,function(W){r(W)||W.setLayout({depth:Math.max(0,N-W.getLayout().skNodeHeight)},!0)})}else I==="justify"&&n(_,N)}function n(_,I){x.each(_,function(L){!r(L)&&!L.outEdges.length&&L.setLayout({depth:I},!0)})}function e(_,I,L){x.each(_,function(N){var R=N.getLayout().depth*I;L==="vertical"?N.setLayout({y:R},!0):N.setLayout({x:R},!0)})}function l(_,I,L,N,R,D,F){var M=t(_,F);a(M,I,L,N,R,F),s(M,R,L,N,F);for(var U=1;D>0;D--)U*=.99,u(M,U,F),s(M,R,L,N,F),w(M,U,F),s(M,R,L,N,F)}function t(_,I){var L=[],N=I==="vertical"?"y":"x",R=A(_,function(D){return D.getLayout()[N]});return R.keys.sort(function(D,F){return D-F}),x.each(R.keys,function(D){L.push(R.buckets.get(D))}),L}function a(_,I,L,N,R,D){var F=Infinity;x.each(_,function(M){var U=M.length,B=0;x.each(M,function(W){B+=W.getLayout().value});var j=D==="vertical"?(N-(U-1)*R)/B:(L-(U-1)*R)/B;j<F&&(F=j)}),x.each(_,function(M){x.each(M,function(U,B){var j=U.getLayout().value*F;D==="vertical"?(U.setLayout({x:B},!0),U.setLayout({dx:j},!0)):(U.setLayout({y:B},!0),U.setLayout({dy:j},!0))})}),x.each(I,function(M){var U=+M.getValue()*F;M.setLayout({dy:U},!0)})}function s(_,I,L,N,R){var D=R==="vertical"?"x":"y";x.each(_,function(F){F.sort(function(q,de){return q.getLayout()[D]-de.getLayout()[D]});for(var M,U,B,j=0,W=F.length,V=R==="vertical"?"dx":"dy",z=0;z<W;z++)U=F[z],B=j-U.getLayout()[D],B>0&&(M=U.getLayout()[D]+B,R==="vertical"?U.setLayout({x:M},!0):U.setLayout({y:M},!0)),j=U.getLayout()[D]+U.getLayout()[V]+I;var J=R==="vertical"?N:L;if(B=j-I-J,B>0)for(M=U.getLayout()[D]-B,R==="vertical"?U.setLayout({x:M},!0):U.setLayout({y:M},!0),j=M,z=W-2;z>=0;--z)U=F[z],B=U.getLayout()[D]+U.getLayout()[V]+I-j,B>0&&(M=U.getLayout()[D]-B,R==="vertical"?U.setLayout({x:M},!0):U.setLayout({y:M},!0)),j=U.getLayout()[D]})}function u(_,I,L){x.each(_.slice().reverse(),function(N){x.each(N,function(R){if(R.outEdges.length){var D=T(R.outEdges,h,L)/T(R.outEdges,E,L);if(isNaN(D)){var F=R.outEdges.length;D=F?T(R.outEdges,p,L)/F:0}if(L==="vertical"){var M=R.getLayout().x+(D-y(R,L))*I;R.setLayout({x:M},!0)}else{var U=R.getLayout().y+(D-y(R,L))*I;R.setLayout({y:U},!0)}}})})}function h(_,I){return y(_.node2,I)*_.getValue()}function p(_,I){return y(_.node2,I)}function m(_,I){return y(_.node1,I)*_.getValue()}function v(_,I){return y(_.node1,I)}function y(_,I){return I==="vertical"?_.getLayout().x+_.getLayout().dx/2:_.getLayout().y+_.getLayout().dy/2}function E(_){return _.getValue()}function T(_,I,L){for(var N=0,R=_.length,D=-1;++D<R;){var F=+I.call(_,_[D],L);isNaN(F)||(N+=F)}return N}function w(_,I,L){x.each(_,function(N){x.each(N,function(R){if(R.inEdges.length){var D=T(R.inEdges,m,L)/T(R.inEdges,E,L);if(isNaN(D)){var F=R.inEdges.length;D=F?T(R.inEdges,v,L)/F:0}if(L==="vertical"){var M=R.getLayout().x+(D-y(R,L))*I;R.setLayout({x:M},!0)}else{var U=R.getLayout().y+(D-y(R,L))*I;R.setLayout({y:U},!0)}}})})}function S(_,I){var L=I==="vertical"?"x":"y";x.each(_,function(N){N.outEdges.sort(function(R,D){return R.node2.getLayout()[L]-D.node2.getLayout()[L]}),N.inEdges.sort(function(R,D){return R.node1.getLayout()[L]-D.node1.getLayout()[L]})}),x.each(_,function(N){var R=0,D=0;x.each(N.outEdges,function(F){F.setLayout({sy:R},!0),R+=F.getLayout().dy}),x.each(N.inEdges,function(F){F.setLayout({ty:D},!0),D+=F.getLayout().dy})})}H.exports=b},"gb/T":function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.mode.ECB=function(){var x=O.lib.BlockCipherMode.extend();return x.Encryptor=x.extend({processBlock:function(A,b){this._cipher.encryptBlock(A,b)}}),x.Decryptor=x.extend({processBlock:function(A,b){this._cipher.decryptBlock(A,b)}}),x}(),O.mode.ECB})},"giR+":function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("QbM5"),A=d.n(C)},gut8:function(H,k){var d={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},O=9;k.ContextCachedBy=d,k.WILL_BE_RESTORED=O},gvm7:function(H,k,d){var O=d("bYtY"),x=d("dqUG");function C(b){this._zr=b.getZr(),this._show=!1,this._hideTimeout}C.prototype={constructor:C,_enterable:!0,update:function(){},show:function(b){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(b,g,f){this.el&&this._zr.remove(this.el);for(var c={},o=b,r="{marker",i="|}",n=o.indexOf(r);n>=0;){var e=o.indexOf(i),l=o.substr(n+r.length,e-n-r.length);l.indexOf("sub")>-1?c["marker"+l]={textWidth:4,textHeight:4,textBorderRadius:2,textBackgroundColor:g[l],textOffset:[3,0]}:c["marker"+l]={textWidth:10,textHeight:10,textBorderRadius:5,textBackgroundColor:g[l]},o=o.substr(e+1),n=o.indexOf("{marker")}this.el=new x({style:{rich:c,text:b,textLineHeight:20,textBackgroundColor:f.get("backgroundColor"),textBorderRadius:f.get("borderRadius"),textFill:f.get("textStyle.color"),textPadding:f.get("padding")},z:f.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(b){this._enterable=b},getSize:function(){var b=this.el.getBoundingRect();return[b.width,b.height]},moveTo:function(b,g){this.el&&this.el.attr("position",[b,g])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(b){this._show&&!(this._inContent&&this._enterable)&&(b?(this._hideDelay=b,this._show=!1,this._hideTimeout=setTimeout(O.bind(this.hide,this),b)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var b=this.getSize();return{width:b[0],height:b[1]}}};var A=C;H.exports=A},gwTy:function(H,k,d){},h54F:function(H,k,d){var O=d("ProS"),x=d("YXkt"),C=d("bYtY"),A=d("4NO4"),b=A.defaultEmphasis,g=d("Qxkt"),f=d("7aKB"),c=f.encodeHTML,o=d("I3/A"),r=d("xKMd"),i=O.extendSeriesModel({type:"series.graph",init:function(e){i.superApply(this,"init",arguments);var l=this;function t(){return l._categoriesData}this.legendVisualProvider=new r(t,t),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){i.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){i.superApply(this,"mergeDefaultAndTheme",arguments),b(e,["edgeLabel"],["show"])},getInitialData:function(e,l){var t=e.edges||e.links||[],a=e.data||e.nodes||[],s=this;if(a&&t)return o(a,t,this,!0,u).data;function u(h,p){h.wrapMethod("getItemModel",function(w){var S=s._categoriesModels,_=w.getShallow("category"),I=S[_];return I&&(I.parentModel=w.parentModel,w.parentModel=I),w});var m=s.getModel("edgeLabel"),v=new g({label:m.option},m.parentModel,l),y=s.getModel("emphasis.edgeLabel"),E=new g({emphasis:{label:y.option}},y.parentModel,l);p.wrapMethod("getItemModel",function(w){return w.customizeGetParent(T),w});function T(w){return w=this.parsePath(w),w&&w[0]==="label"?v:w&&w[0]==="emphasis"&&w[1]==="label"?E:this.parentModel}}},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,l,t){if(t==="edge"){var a=this.getData(),s=this.getDataParams(e,t),u=a.graph.getEdgeByIndex(e),h=a.getName(u.node1.dataIndex),p=a.getName(u.node2.dataIndex),m=[];return h!=null&&m.push(h),p!=null&&m.push(p),m=c(m.join(" > ")),s.value&&(m+=" : "+c(s.value)),m}else return i.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)}),l=new x(["value"],this);l.initData(e),this._categoriesData=l,this._categoriesModels=l.mapArray(function(t){return l.getItemModel(t,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},isAnimationEnabled:function(){return i.superCall(this,"isAnimationEnabled")&&!(this.get("layout")==="force"&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{label:{show:!0}}}}),n=i;H.exports=n},h7HQ:function(H,k,d){var O=d("y+Vt"),x=d("T6xi"),C=O.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(b,g){x.buildPath(b,g,!0)}});H.exports=C},h8O9:function(H,k,d){var O=d("bYtY"),x=O.map,C=d("zM3Q"),A=d("7hqr"),b=A.isDimensionStacked;function g(f){return{seriesType:f,plan:C(),reset:function(c){var o=c.getData(),r=c.coordinateSystem,i=c.pipelineContext,n=i.large;if(!r)return;var e=x(r.dimensions,function(s){return o.mapDimension(s)}).slice(0,2),l=e.length,t=o.getCalculationInfo("stackResultDimension");b(o,e[0])&&(e[0]=t),b(o,e[1])&&(e[1]=t);function a(s,u){for(var h=s.end-s.start,p=n&&new Float32Array(h*l),m=s.start,v=0,y=[],E=[];m<s.end;m++){var T;if(l===1){var w=u.get(e[0],m);T=!isNaN(w)&&r.dataToPoint(w,null,E)}else{var w=y[0]=u.get(e[0],m),S=y[1]=u.get(e[1],m);T=!isNaN(w)&&!isNaN(S)&&r.dataToPoint(y,null,E)}n?(p[v++]=T?T[0]:NaN,p[v++]=T?T[1]:NaN):u.setItemLayout(m,T&&T.slice()||[NaN,NaN])}n&&u.setLayout("symbolPoints",p)}return l&&{progress:a}}}}H.exports=g},hD7B:function(H,k,d){var O=d("bYtY"),x=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function C(b){O.each(x,function(g){this[g]=O.bind(b[g],b)},this)}var A=C;H.exports=A},hFmY:function(H,k,d){var O=d("ProS"),x={type:"axisAreaSelect",event:"axisAreaSelected"};O.registerAction(x,function(C,A){A.eachComponent({mainType:"parallelAxis",query:C},function(b){b.axis.model.setActiveIntervals(C.intervals)})}),O.registerAction("parallelAxisExpand",function(C,A){A.eachComponent({mainType:"parallel",query:C},function(b){b.setAxisExpand(C)})})},hJvP:function(H,k,d){var O=d("2dDv"),x=d("IDmD");function C(A,b){var g=[];return A.eachComponent("parallel",function(f,c){var o=new O(f,A,b);o.name="parallel_"+c,o.resize(f,b),f.coordinateSystem=o,o.model=f,g.push(o)}),A.eachSeries(function(f){if(f.get("coordinateSystem")==="parallel"){var c=A.queryComponents({mainType:"parallel",index:f.get("parallelIndex"),id:f.get("parallelId")})[0];f.coordinateSystem=c.coordinateSystem}}),g}x.register("parallel",{create:C})},hM6l:function(H,k,d){var O=d("bYtY"),x=O.each,C=O.map,A=d("OELB"),b=A.linearMap,g=A.getPixelPrecision,f=A.round,c=d("4HMb"),o=c.createAxisTicks,r=c.createAxisLabels,i=c.calculateCategoryInterval,n=[0,1],e=function(s,u,h){this.dim=s,this.scale=u,this._extent=h||[0,0],this.inverse=!1,this.onBand=!1};e.prototype={constructor:e,contain:function(s){var u=this._extent,h=Math.min(u[0],u[1]),p=Math.max(u[0],u[1]);return s>=h&&s<=p},containData:function(s){return this.scale.contain(s)},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(s){return g(s||this.scale.getExtent(),this._extent)},setExtent:function(s,u){var h=this._extent;h[0]=s,h[1]=u},dataToCoord:function(s,u){var h=this._extent,p=this.scale;return s=p.normalize(s),this.onBand&&p.type==="ordinal"&&(h=h.slice(),l(h,p.count())),b(s,n,h,u)},coordToData:function(s,u){var h=this._extent,p=this.scale;this.onBand&&p.type==="ordinal"&&(h=h.slice(),l(h,p.count()));var m=b(s,h,n,u);return this.scale.scale(m)},pointToData:function(s,u){},getTicksCoords:function(s){s=s||{};var u=s.tickModel||this.getTickModel(),h=o(this,u),p=h.ticks,m=C(p,function(y){return{coord:this.dataToCoord(y),tickValue:y}},this),v=u.get("alignWithLabel");return t(this,m,v,s.clamp),m},getMinorTicksCoords:function(){if(this.scale.type==="ordinal")return[];var s=this.model.getModel("minorTick"),u=s.get("splitNumber");u>0&&u<100||(u=5);var h=this.scale.getMinorTicks(u),p=C(h,function(m){return C(m,function(v){return{coord:this.dataToCoord(v),tickValue:v}},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 s=this._extent,u=this.scale.getExtent(),h=u[1]-u[0]+(this.onBand?1:0);h===0&&(h=1);var p=Math.abs(s[1]-s[0]);return Math.abs(p)/h},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return i(this)}};function l(s,u){var h=s[1]-s[0],p=u,m=h/p/2;s[0]+=m,s[1]-=m}function t(s,u,h,p){var m=u.length;if(!s.onBand||h||!m)return;var v=s.getExtent(),y,E;if(m===1)u[0].coord=v[0],y=u[1]={coord:v[0]};else{var T=u[m-1].tickValue-u[0].tickValue,w=(u[m-1].coord-u[0].coord)/T;x(u,function(L){L.coord-=w/2});var S=s.scale.getExtent();E=1+S[1]-u[m-1].tickValue,y={coord:u[m-1].coord+w*E},u.push(y)}var _=v[0]>v[1];I(u[0].coord,v[0])&&(p?u[0].coord=v[0]:u.shift()),p&&I(v[0],u[0].coord)&&u.unshift({coord:v[0]}),I(v[1],y.coord)&&(p?y.coord=v[1]:u.pop()),p&&I(y.coord,v[1])&&u.push({coord:v[1]});function I(L,N){return L=f(L),N=f(N),_?L>N:L<N}}var a=e;H.exports=a},hNWo:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("Qxkt"),A=d("4NO4"),b=A.isNameSpecified,g=d("Kagy"),f=g.legend.selector,c={all:{type:"all",title:x.clone(f.all)},inverse:{type:"inverse",title:x.clone(f.inverse)}},o=O.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(i,n,e){this.mergeDefaultAndTheme(i,e),i.selected=i.selected||{},this._updateSelector(i)},mergeOption:function(i){o.superCall(this,"mergeOption",i),this._updateSelector(i)},_updateSelector:function(i){var n=i.selector;n===!0&&(n=i.selector=["all","inverse"]),x.isArray(n)&&x.each(n,function(e,l){x.isString(e)&&(e={type:e}),n[l]=x.merge(e,c[e.type])})},optionUpdated:function(){this._updateData(this.ecModel);var i=this._data;if(i[0]&&this.get("selectedMode")==="single"){for(var n=!1,e=0;e<i.length;e++){var l=i[e].get("name");if(this.isSelected(l)){this.select(l),n=!0;break}}!n&&this.select(i[0].get("name"))}},_updateData:function(i){var n=[],e=[];i.eachRawSeries(function(a){var s=a.name;e.push(s);var u;if(a.legendVisualProvider){var h=a.legendVisualProvider,p=h.getAllNames();i.isSeriesFiltered(a)||(e=e.concat(p)),p.length?n=n.concat(p):u=!0}else u=!0;u&&b(a)&&n.push(a.name)}),this._availableNames=e;var l=this.get("data")||n,t=x.map(l,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(i){var n=this.option.selected,e=this.get("selectedMode");if(e==="single"){var l=this._data;x.each(l,function(t){n[t.get("name")]=!1})}n[i]=!0},unSelect:function(i){this.get("selectedMode")!=="single"&&(this.option.selected[i]=!1)},toggleSelected:function(i){var n=this.option.selected;n.hasOwnProperty(i)||(n[i]=!0),this[n[i]?"unSelect":"select"](i)},allSelect:function(){var i=this._data,n=this.option.selected;x.each(i,function(e){n[e.get("name",!0)]=!0})},inverseSelect:function(){var i=this._data,n=this.option.selected;x.each(i,function(e){var l=e.get("name",!0);n.hasOwnProperty(l)||(n[l]=!0),n[l]=!n[l]})},isSelected:function(i){var n=this.option.selected;return!(n.hasOwnProperty(i)&&!n[i])&&x.indexOf(this._availableNames,i)>=0},getOrient:function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}}}),r=o;H.exports=r},hOwI:function(H,k){var d=Math.log(2);function O(C,A,b,g,f,c){var o=g+"-"+f,r=C.length;if(c.hasOwnProperty(o))return c[o];if(A===1){var i=Math.round(Math.log((1<<r)-1&~f)/d);return C[b][i]}for(var n=g|1<<b,e=b+1;g&1<<e;)e++;for(var l=0,t=0,a=0;t<r;t++){var s=1<<t;s&f||(l+=(a%2?-1:1)*C[b][t]*O(C,A-1,e,n,f|s,c),a++)}return c[o]=l,l}function x(C,A){var b=[[C[0],C[1],1,0,0,0,-A[0]*C[0],-A[0]*C[1]],[0,0,0,C[0],C[1],1,-A[1]*C[0],-A[1]*C[1]],[C[2],C[3],1,0,0,0,-A[2]*C[2],-A[2]*C[3]],[0,0,0,C[2],C[3],1,-A[3]*C[2],-A[3]*C[3]],[C[4],C[5],1,0,0,0,-A[4]*C[4],-A[4]*C[5]],[0,0,0,C[4],C[5],1,-A[5]*C[4],-A[5]*C[5]],[C[6],C[7],1,0,0,0,-A[6]*C[6],-A[6]*C[7]],[0,0,0,C[6],C[7],1,-A[7]*C[6],-A[7]*C[7]]],g={},f=O(b,8,0,0,0,g);if(f===0)return;for(var c=[],o=0;o<8;o++)for(var r=0;r<8;r++)c[r]==null&&(c[r]=0),c[r]+=((o+r)%2?-1:1)*O(b,7,o===0?1:0,1<<o,1<<r,g)/f*A[o];return function(i,n,e){var l=n*c[6]+e*c[7]+1;i[0]=(n*c[0]+e*c[1]+c[2])/l,i[1]=(n*c[3]+e*c[4]+c[5])/l}}k.buildTransformer=x},hX1E:function(H,k){var d=Math.PI*2;function O(x){return x%=d,x<0&&(x+=d),x}k.normalizeRadian=O},hXwI:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;function O(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}function x(b,g){for(var f=0;f<g.length;f++){var c=g[f];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(b,c.key,c)}}function C(b,g,f){return g&&x(b.prototype,g),f&&x(b,f),b}var A=function(){function b(){O(this,b)}return C(b,[{key:"decodeRect",value:function(f,c,o,r,i,n,e){if(i.rQwait("COPYRECT",4))return!1;var l=i.rQshift16(),t=i.rQshift16();return n.copyImage(l,t,f,c,o,r),!0}}]),b}();k.default=A},hi0g:function(H,k,d){var O=d("bYtY"),x=O.createHashMap,C=O.each,A=O.isString,b=O.defaults,g=O.extend,f=O.isObject,c=O.clone,o=d("4NO4"),r=o.normalizeToArray,i=d("D5nY"),n=i.guessOrdinal,e=i.BE_ORDINAL,l=d("7G+c"),t=d("L0Ub"),a=t.OTHER_DIMENSIONS,s=d("Vi4m");function u(v,y,E){l.isInstance(y)||(y=l.seriesDataToSource(y)),E=E||{},v=(v||[]).slice();for(var T=(E.dimsDef||[]).slice(),w=x(),S=x(),_=[],I=h(y,v,T,E.dimCount),L=0;L<I;L++){var N=T[L]=g({},f(T[L])?T[L]:{name:T[L]}),R=N.name,D=_[L]=new s;R!=null&&w.get(R)==null&&(D.name=D.displayName=R,w.set(R,L)),N.type!=null&&(D.type=N.type),N.displayName!=null&&(D.displayName=N.displayName)}var F=E.encodeDef;!F&&E.encodeDefaulter&&(F=E.encodeDefaulter(y,I)),F=x(F),F.each(function(q,de){if(q=r(q).slice(),q.length===1&&!A(q[0])&&q[0]<0){F.set(de,!1);return}var ae=F.set(de,[]);C(q,function(ve,_e){A(ve)&&(ve=w.get(ve)),ve!=null&&ve<I&&(ae[_e]=ve,U(_[ve],de,_e))})});var M=0;C(v,function(q,de){var ae,q,ve,_e;if(A(q))ae=q,q={};else{ae=q.name;var Ie=q.ordinalMeta;q.ordinalMeta=null,q=c(q),q.ordinalMeta=Ie,ve=q.dimsDef,_e=q.otherDims,q.name=q.coordDim=q.coordDimIndex=q.dimsDef=q.otherDims=null}var He=F.get(ae);if(He===!1)return;var He=r(He);if(!He.length)for(var me=0;me<(ve&&ve.length||1);me++){for(;M<_.length&&_[M].coordDim!=null;)M++;M<_.length&&He.push(M++)}C(He,function(ke,se){var te=_[ke];if(U(b(te,q),ae,se),te.name==null&&ve){var Ge=ve[se];!f(Ge)&&(Ge={name:Ge}),te.name=te.displayName=Ge.name,te.defaultTooltip=Ge.defaultTooltip}_e&&b(te.otherDims,_e)})});function U(q,de,ae){a.get(de)!=null?q.otherDims[de]=ae:(q.coordDim=de,q.coordDimIndex=ae,S.set(de,!0))}var B=E.generateCoord,j=E.generateCoordCount,W=j!=null;j=B?j||1:0;for(var V=B||"value",z=0;z<I;z++){var D=_[z]=_[z]||new s,J=D.coordDim;J==null&&(D.coordDim=p(V,S,W),D.coordDimIndex=0,(!B||j<=0)&&(D.isExtraCoord=!0),j--),D.name==null&&(D.name=p(D.coordDim,w)),D.type==null&&(n(y,z,D.name)===e.Must||D.isExtraCoord&&(D.otherDims.itemName!=null||D.otherDims.seriesName!=null))&&(D.type="ordinal")}return _}function h(v,y,E,T){var w=Math.max(v.dimensionsDetectCount||1,y.length,E.length,T||0);return C(y,function(S){var _=S.dimsDef;_&&(w=Math.max(w,_.length))}),w}function p(v,y,E){if(E||y.get(v)!=null){for(var T=0;y.get(v+T)!=null;)T++;v+=T}return y.set(v,!0),v}var m=u;H.exports=m},hkKa:function(H,k,d){"use strict";d.d(k,"a",function(){return b});var O=d("J4zp"),x=d.n(O),C=d("q1tI"),A=d.n(C);function b(){var g=C.useReducer(function(o){return o+1},0),f=x()(g,2),c=f[1];return c}},hw6D:function(H,k,d){var O=d("bYtY");function x(b){b.eachSeriesByType("radar",function(g){var f=g.getData(),c=[],o=g.coordinateSystem;if(!o)return;var r=o.getIndicatorAxes();O.each(r,function(i,n){f.each(f.mapDimension(r[n].dim),function(e,l){c[l]=c[l]||[];var t=o.dataToPoint(e,n);c[l][n]=C(t)?t:A(o)})}),f.each(function(i){var n=O.find(c[i],function(e){return C(e)})||A(o);c[i].push(n.slice()),f.setItemLayout(i,c[i])})})}function C(b){return!isNaN(b[0])&&!isNaN(b[1])}function A(b){return[b.cx,b.cy]}H.exports=x},hwYd:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("Nu4q")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="PictureTwoTone";var c=A.forwardRef(f);k.default=c},hydK:function(H,k){var d="http://www.w3.org/2000/svg";function O(x){return document.createElementNS(d,x)}k.createElement=O},hyiK:function(H,k){function d(O,x,C,A,b,g){if(g>x&&g>A||g<x&&g<A)return 0;if(A===x)return 0;var f=A<x?1:-1,c=(g-x)/(A-x);(c===1||c===0)&&(f=A<x?.5:-.5);var o=c*(C-O)+O;return o===b?Infinity:o>b?f:0}H.exports=d},i38C:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=C.createHashMap,b=C.retrieve,g=C.each;function f(i){this.coordSysName=i,this.coordSysDims=[],this.axisMap=A(),this.categoryAxisMap=A(),this.firstCategoryDimIndex=null}function c(i){var n=i.get("coordinateSystem"),e=new f(n),l=o[n];if(l)return l(i,e,e.axisMap,e.categoryAxisMap),e}var o={cartesian2d:function(i,n,e,l){var t=i.getReferringComponents("xAxis")[0],a=i.getReferringComponents("yAxis")[0];n.coordSysDims=["x","y"],e.set("x",t),e.set("y",a),r(t)&&(l.set("x",t),n.firstCategoryDimIndex=0),r(a)&&(l.set("y",a),n.firstCategoryDimIndex==null&(n.firstCategoryDimIndex=1))},singleAxis:function(i,n,e,l){var t=i.getReferringComponents("singleAxis")[0];n.coordSysDims=["single"],e.set("single",t),r(t)&&(l.set("single",t),n.firstCategoryDimIndex=0)},polar:function(i,n,e,l){var t=i.getReferringComponents("polar")[0],a=t.findAxisModel("radiusAxis"),s=t.findAxisModel("angleAxis");n.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",s),r(a)&&(l.set("radius",a),n.firstCategoryDimIndex=0),r(s)&&(l.set("angle",s),n.firstCategoryDimIndex==null&&(n.firstCategoryDimIndex=1))},geo:function(i,n,e,l){n.coordSysDims=["lng","lat"]},parallel:function(i,n,e,l){var t=i.ecModel,a=t.getComponent("parallel",i.get("parallelIndex")),s=n.coordSysDims=a.dimensions.slice();g(a.parallelAxisIndex,function(u,h){var p=t.getComponent("parallelAxis",u),m=s[h];e.set(m,p),r(p)&&n.firstCategoryDimIndex==null&&(l.set(m,p),n.firstCategoryDimIndex=h)})}};function r(i){return i.get("type")==="category"}k.getCoordSysInfoBySeries=c},i6bk:function(H,k,d){"use strict";d.d(k,"b",function(){return O}),d.d(k,"a",function(){return x});function O(C){return C!=null&&C===C.window}function x(C,A){if(typeof window=="undefined")return 0;var b=A?"scrollTop":"scrollLeft",g=0;return O(C)?g=C[A?"pageYOffset":"pageXOffset"]:C instanceof Document?g=C.documentElement[b]:C&&(g=C[b]),C&&!O(C)&&typeof g!="number"&&(g=(C.ownerDocument||C).documentElement[b]),g}},i8CU:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("Fm1+"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},iLNv:function(H,k){var d="\0__throttleOriginMethod",O="\0__throttleRate",x="\0__throttleType";function C(g,f,c){var o,r=0,i=0,n=null,e,l,t,a;f=f||0;function s(){i=new Date().getTime(),n=null,g.apply(l,t||[])}var u=function(){o=new Date().getTime(),l=this,t=arguments;var h=a||f,p=a||c;a=null,e=o-(p?r:i)-h,clearTimeout(n),p?n=setTimeout(s,h):e>=0?s():n=setTimeout(s,-e),r=o};return u.clear=function(){n&&(clearTimeout(n),n=null)},u.debounceNextCall=function(h){a=h},u}function A(g,f,c,o){var r=g[f];if(!r)return;var i=r[d]||r,n=r[x],e=r[O];if(e!==c||n!==o){if(c==null||!o)return g[f]=i;r=g[f]=C(i,c,o==="debounce"),r[d]=i,r[x]=o,r[O]=c}return r}function b(g,f){var c=g[f];c&&c[d]&&(g[f]=c[d])}k.throttle=C,k.createOrUpdate=A,k.clear=b},iPDy:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=O.extendComponentView({type:"marker",init:function(){this.markerGroupMap=x.createHashMap()},render:function(A,b,g){var f=this.markerGroupMap;f.each(function(o){o.__keep=!1});var c=this.type+"Model";b.eachSeries(function(o){var r=o[c];r&&this.renderSeries(o,r,b,g)},this),f.each(function(o){!o.__keep&&this.group.remove(o.group)},this)},renderSeries:function(){}});H.exports=C},iQDF:function(H,k,d){"use strict";var O=d("ZTW2"),x=d.n(O),C=d("+BJd"),A=d("+L6B")},iRjW:function(H,k,d){var O=d("bYtY"),x=d("Yl7c"),C=x.parseClassType,A=0;function b(c){return[c||"",A++,Math.random().toFixed(5)].join("_")}function g(c){var o={};return c.registerSubTypeDefaulter=function(r,i){r=C(r),o[r.main]=i},c.determineSubType=function(r,i){var n=i.type;if(!n){var e=C(r).main;c.hasSubTypes(r)&&o[e]&&(n=o[e](i))}return n},c}function f(c,o){c.topologicalTravel=function(e,l,t,a){if(!e.length)return;var s=r(l),u=s.graph,h=s.noEntryList,p={};for(O.each(e,function(w){p[w]=!0});h.length;){var m=h.pop(),v=u[m],y=!!p[m];y&&(t.call(a,m,v.originalDeps.slice()),delete p[m]),O.each(v.successor,y?T:E)}O.each(p,function(){throw new Error("Circle dependency may exists")});function E(w){u[w].entryCount--,u[w].entryCount===0&&h.push(w)}function T(w){p[w]=!0,E(w)}};function r(e){var l={},t=[];return O.each(e,function(a){var s=i(l,a),u=s.originalDeps=o(a),h=n(u,e);s.entryCount=h.length,s.entryCount===0&&t.push(a),O.each(h,function(p){O.indexOf(s.predecessor,p)<0&&s.predecessor.push(p);var m=i(l,p);O.indexOf(m.successor,p)<0&&m.successor.push(a)})}),{graph:l,noEntryList:t}}function i(e,l){return e[l]||(e[l]={predecessor:[],successor:[]}),e[l]}function n(e,l){var t=[];return O.each(e,function(a){O.indexOf(l,a)>=0&&t.push(a)}),t}}k.getUID=b,k.enableSubTypeDefaulter=g,k.enableTopologicalTravel=f},iUHT:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;function O(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function x(v,y){for(var E=0;E<y.length;E++){var T=y[E];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(v,T.key,T)}}function C(v,y,E){return y&&x(v.prototype,y),E&&x(v,E),v}var A=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],b=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],g=0,f,c,o,r,i,n;f=1<<16,c=1<<24,o=f|c,r=1<<2,i=1<<10,n=r|i;var e=[o|i,g|g,f|g,o|n,o|r,f|n,g|r,f|g,g|i,o|i,o|n,g|i,c|n,o|r,c|g,g|r,g|n,c|i,c|i,f|i,f|i,o|g,o|g,c|n,f|r,c|r,c|r,f|r,g|g,g|n,f|n,c|g,f|g,o|n,g|r,o|g,o|i,c|g,c|g,g|i,o|r,f|g,f|i,c|r,g|i,g|r,c|n,f|n,o|n,f|r,o|g,c|n,c|r,g|n,f|n,o|i,g|n,c|i,c|i,g|g,f|r,f|i,g|g,o|r];f=1<<20,c=1<<31,o=f|c,r=1<<5,i=1<<15,n=r|i;var l=[o|n,c|i,g|i,f|n,f|g,g|r,o|r,c|n,c|r,o|n,o|i,c|g,c|i,f|g,g|r,o|r,f|i,f|r,c|n,g|g,c|g,g|i,f|n,o|g,f|r,c|r,g|g,f|i,g|n,o|i,o|g,g|n,g|g,f|n,o|r,f|g,c|n,o|g,o|i,g|i,o|g,c|i,g|r,o|n,f|n,g|r,g|i,c|g,g|n,o|i,f|g,c|r,f|r,c|n,c|r,f|r,f|i,g|g,c|i,g|n,c|g,o|r,o|n,f|i];f=1<<17,c=1<<27,o=f|c,r=1<<3,i=1<<9,n=r|i;var t=[g|n,o|i,g|g,o|r,c|i,g|g,f|n,c|i,f|r,c|r,c|r,f|g,o|n,f|r,o|g,g|n,c|g,g|r,o|i,g|i,f|i,o|g,o|r,f|n,c|n,f|i,f|g,c|n,g|r,o|n,g|i,c|g,o|i,c|g,f|r,g|n,f|g,o|i,c|i,g|g,g|i,f|r,o|n,c|i,c|r,g|i,g|g,o|r,c|n,f|g,c|g,o|n,g|r,f|n,f|i,c|r,o|g,c|n,g|n,o|g,f|n,g|r,o|r,f|i];f=1<<13,c=1<<23,o=f|c,r=1<<0,i=1<<7,n=r|i;var a=[o|r,f|n,f|n,g|i,o|i,c|n,c|r,f|r,g|g,o|g,o|g,o|n,g|n,g|g,c|i,c|r,g|r,f|g,c|g,o|r,g|i,c|g,f|r,f|i,c|n,g|r,f|i,c|i,f|g,o|i,o|n,g|n,c|i,c|r,o|g,o|n,g|n,g|g,g|g,o|g,f|i,c|i,c|n,g|r,o|r,f|n,f|n,g|i,o|n,g|n,g|r,f|g,c|r,f|r,o|i,c|n,f|r,f|i,c|g,o|r,g|i,c|g,f|g,o|i];f=1<<25,c=1<<30,o=f|c,r=1<<8,i=1<<19,n=r|i;var s=[g|r,f|n,f|i,o|r,g|i,g|r,c|g,f|i,c|n,g|i,f|r,c|n,o|r,o|i,g|n,c|g,f|g,c|i,c|i,g|g,c|r,o|n,o|n,f|r,o|i,c|r,g|g,o|g,f|n,f|g,o|g,g|n,g|i,o|r,g|r,f|g,c|g,f|i,o|r,c|n,f|r,c|g,o|i,f|n,c|n,g|r,f|g,o|i,o|n,g|n,o|g,o|n,f|i,g|g,c|i,o|g,g|n,f|r,c|r,g|i,g|g,c|i,f|n,c|r];f=1<<22,c=1<<29,o=f|c,r=1<<4,i=1<<14,n=r|i;var u=[c|r,o|g,g|i,o|n,o|g,g|r,o|n,f|g,c|i,f|n,f|g,c|r,f|r,c|i,c|g,g|n,g|g,f|r,c|n,g|i,f|i,c|n,g|r,o|r,o|r,g|g,f|n,o|i,g|n,f|i,o|i,c|g,c|i,g|r,o|r,f|i,o|n,f|g,g|n,c|r,f|g,c|i,c|g,g|n,c|r,o|n,f|i,o|g,f|n,o|i,g|g,o|r,g|r,g|i,o|g,f|n,g|i,f|r,c|n,g|g,o|i,c|g,f|r,c|n];f=1<<21,c=1<<26,o=f|c,r=1<<1,i=1<<11,n=r|i;var h=[f|g,o|r,c|n,g|g,g|i,c|n,f|n,o|i,o|n,f|g,g|g,c|r,g|r,c|g,o|r,g|n,c|i,f|n,f|r,c|i,c|r,o|g,o|i,f|r,o|g,g|i,g|n,o|n,f|i,g|r,c|g,f|i,c|g,f|i,f|g,c|n,c|n,o|r,o|r,g|r,f|r,c|g,c|i,f|g,o|i,g|n,f|n,o|i,g|n,c|r,o|n,o|g,f|i,g|g,g|r,o|n,g|g,f|n,o|g,g|i,c|r,c|i,g|i,f|r];f=1<<18,c=1<<28,o=f|c,r=1<<6,i=1<<12,n=r|i;var p=[c|n,g|i,f|g,o|n,c|g,c|n,g|r,c|g,f|r,o|g,o|n,f|i,o|i,f|n,g|i,g|r,o|g,c|r,c|i,g|n,f|i,f|r,o|r,o|i,g|n,g|g,g|g,o|r,c|r,c|i,f|n,f|g,f|n,f|g,o|i,g|i,g|r,o|r,g|i,f|n,c|i,g|r,c|r,o|g,o|r,c|g,f|g,c|n,g|g,o|n,f|r,c|r,o|g,c|i,c|n,g|g,o|n,f|i,f|i,g|n,g|n,f|r,c|g,o|i],m=function(){function v(y){O(this,v),this.keys=[];for(var E=[],T=[],w=[],S=0,_=56;S<56;++S,_-=8){_+=_<-5?65:_<-3?31:_<-1?63:_===27?35:0;var I=_&7;E[S]=(y[_>>>3]&1<<I)!==0?1:0}for(var L=0;L<16;++L){var N=L<<1,R=N+1;w[N]=w[R]=0;for(var D=28;D<59;D+=28)for(var F=D-28;F<D;++F){var M=F+b[L];T[F]=M<D?E[M]:E[M-28]}for(var U=0;U<24;++U)T[A[U]]!==0&&(w[N]|=1<<23-U),T[A[U+24]]!==0&&(w[R]|=1<<23-U)}for(var B=0,j=0,W=0;B<16;++B){var V=w[j++],z=w[j++];this.keys[W]=(V&16515072)<<6,this.keys[W]|=(V&4032)<<10,this.keys[W]|=(z&16515072)>>>10,this.keys[W]|=(z&4032)>>>6,++W,this.keys[W]=(V&258048)<<12,this.keys[W]|=(V&63)<<16,this.keys[W]|=(z&258048)>>>4,this.keys[W]|=z&63,++W}}return C(v,[{key:"enc8",value:function(E){var T=E.slice(),w=0,S,_,I;S=T[w++]<<24|T[w++]<<16|T[w++]<<8|T[w++],_=T[w++]<<24|T[w++]<<16|T[w++]<<8|T[w++],I=(S>>>4^_)&252645135,_^=I,S^=I<<4,I=(S>>>16^_)&65535,_^=I,S^=I<<16,I=(_>>>2^S)&858993459,S^=I,_^=I<<2,I=(_>>>8^S)&16711935,S^=I,_^=I<<8,_=_<<1|_>>>31&1,I=(S^_)&2863311530,S^=I,_^=I,S=S<<1|S>>>31&1;for(var L=0,N=0;L<8;++L){I=_<<28|_>>>4,I^=this.keys[N++];var R=h[I&63];R|=s[I>>>8&63],R|=t[I>>>16&63],R|=e[I>>>24&63],I=_^this.keys[N++],R|=p[I&63],R|=u[I>>>8&63],R|=a[I>>>16&63],R|=l[I>>>24&63],S^=R,I=S<<28|S>>>4,I^=this.keys[N++],R=h[I&63],R|=s[I>>>8&63],R|=t[I>>>16&63],R|=e[I>>>24&63],I=S^this.keys[N++],R|=p[I&63],R|=u[I>>>8&63],R|=a[I>>>16&63],R|=l[I>>>24&63],_^=R}for(_=_<<31|_>>>1,I=(S^_)&2863311530,S^=I,_^=I,S=S<<31|S>>>1,I=(S>>>8^_)&16711935,_^=I,S^=I<<8,I=(S>>>2^_)&858993459,_^=I,S^=I<<2,I=(_>>>16^S)&65535,S^=I,_^=I<<16,I=(_>>>4^S)&252645135,S^=I,_^=I<<4,I=[_,S],w=0;w<8;w++)T[w]=(I[w>>>2]>>>8*(3-w%4))%256,T[w]<0&&(T[w]+=256);return T}},{key:"encrypt",value:function(E){return this.enc8(E.slice(0,8)).concat(this.enc8(E.slice(8,16)))}}]),v}();k.default=m},iXHM:function(H,k){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};H.exports=O},iXp4:function(H,k,d){var O=d("ItGF"),x=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function C(A){return O.browser.ie&&O.browser.version>=11?function(){var b=this.__clipPaths,g=this.style,f;if(b)for(var c=0;c<b.length;c++){var o=b[c],r=o&&o.shape,i=o&&o.type;if(r&&(i==="sector"&&r.startAngle===r.endAngle||i==="rect"&&(!r.width||!r.height))){for(var n=0;n<x.length;n++)x[n][2]=g[x[n][0]],g[x[n][0]]=x[n][1];f=!0;break}}if(A.apply(this,arguments),f)for(var n=0;n<x.length;n++)g[x[n][0]]=x[n][2]}:A}H.exports=C},iYpf:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("ZLWo")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="FolderOpenOutlined";var c=A.forwardRef(f);k.default=c},ieMj:function(H,k,d){var O=d("OELB"),x=d("7aKB"),C=d("4NgU"),A=d("lE7J"),b=O.round,g=C.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(c,o){var r=this._extent;isNaN(c)||(r[0]=parseFloat(c)),isNaN(o)||(r[1]=parseFloat(o))},unionExtent:function(c){var o=this._extent;c[0]<o[0]&&(o[0]=c[0]),c[1]>o[1]&&(o[1]=c[1]),g.prototype.setExtent.call(this,o[0],o[1])},getInterval:function(){return this._interval},setInterval:function(c){this._interval=c,this._niceExtent=this._extent.slice(),this._intervalPrecision=A.getIntervalPrecision(c)},getTicks:function(c){var o=this._interval,r=this._extent,i=this._niceExtent,n=this._intervalPrecision,e=[];if(!o)return e;var l=1e4;r[0]<i[0]&&(c?e.push(b(i[0]-o,n)):e.push(r[0]));for(var t=i[0];t<=i[1]&&!(e.push(t),t=b(t+o,n),t===e[e.length-1]);)if(e.length>l)return[];var a=e.length?e[e.length-1]:i[1];return r[1]>a&&(c?e.push(b(a+o,n)):e.push(r[1])),e},getMinorTicks:function(c){for(var o=this.getTicks(!0),r=[],i=this.getExtent(),n=1;n<o.length;n++){for(var e=o[n],l=o[n-1],t=0,a=[],s=e-l,u=s/c;t<c-1;){var h=O.round(l+(t+1)*u);h>i[0]&&h<i[1]&&a.push(h),t++}r.push(a)}return r},getLabel:function(c,o){if(c==null)return"";var r=o&&o.precision;return r==null?r=O.getPrecisionSafe(c)||0:r==="auto"&&(r=this._intervalPrecision),c=b(c,r,!0),x.addCommas(c)},niceTicks:function(c,o,r){c=c||5;var i=this._extent,n=i[1]-i[0];if(!isFinite(n))return;n<0&&(n=-n,i.reverse());var e=A.intervalScaleNiceTicks(i,c,o,r);this._intervalPrecision=e.intervalPrecision,this._interval=e.interval,this._niceExtent=e.niceTickExtent},niceExtent:function(c){var o=this._extent;if(o[0]===o[1])if(o[0]!==0){var r=o[0];c.fixMax||(o[1]+=r/2),o[0]-=r/2}else o[1]=1;var i=o[1]-o[0];isFinite(i)||(o[0]=0,o[1]=1),this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var n=this._interval;c.fixMin||(o[0]=b(Math.floor(o[0]/n)*n)),c.fixMax||(o[1]=b(Math.ceil(o[1]/n)*n))}});g.create=function(){return new g};var f=g;H.exports=f},j5sG:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.createSensor=void 0;var O=x(d("NohK"));function x(A){return A&&A.__esModule?A:{default:A}}var C=function(b){var g=void 0,f=[],c=(0,O.default)(function(){f.forEach(function(e){e(b)})}),o=function(){var l=new ResizeObserver(c);return l.observe(b),c(),l},r=function(l){g||(g=o()),f.indexOf(l)===-1&&f.push(l)},i=function(){g.disconnect(),f=[],g=void 0},n=function(l){var t=f.indexOf(l);t!==-1&&f.splice(t,1),f.length===0&&g&&i()};return{element:b,bind:r,destroy:i,unbind:n}};k.createSensor=C},jCoz:function(H,k,d){var O=d("bYtY"),x=d("4NgU"),C=d("OELB"),A=d("ieMj"),b=x.prototype,g=A.prototype,f=C.getPrecisionSafe,c=C.round,o=Math.floor,r=Math.ceil,i=Math.pow,n=Math.log,e=x.extend({type:"log",base:10,$constructor:function(){x.apply(this,arguments),this._originalScale=new A},getTicks:function(a){var s=this._originalScale,u=this._extent,h=s.getExtent();return O.map(g.getTicks.call(this,a),function(p){var m=C.round(i(this.base,p));return m=p===u[0]&&s.__fixMin?l(m,h[0]):m,m=p===u[1]&&s.__fixMax?l(m,h[1]):m,m},this)},getMinorTicks:g.getMinorTicks,getLabel:g.getLabel,scale:function(a){return a=b.scale.call(this,a),i(this.base,a)},setExtent:function(a,s){var u=this.base;a=n(a)/n(u),s=n(s)/n(u),g.setExtent.call(this,a,s)},getExtent:function(){var a=this.base,s=b.getExtent.call(this);s[0]=i(a,s[0]),s[1]=i(a,s[1]);var u=this._originalScale,h=u.getExtent();return u.__fixMin&&(s[0]=l(s[0],h[0])),u.__fixMax&&(s[1]=l(s[1],h[1])),s},unionExtent:function(a){this._originalScale.unionExtent(a);var s=this.base;a[0]=n(a[0])/n(s),a[1]=n(a[1])/n(s),b.unionExtent.call(this,a)},unionExtentFromData:function(a,s){this.unionExtent(a.getApproximateExtent(s))},niceTicks:function(a){a=a||10;var s=this._extent,u=s[1]-s[0];if(u===Infinity||u<=0)return;var h=C.quantity(u),p=a/u*h;for(p<=.5&&(h*=10);!isNaN(h)&&Math.abs(h)<1&&Math.abs(h)>0;)h*=10;var m=[C.round(r(s[0]/h)*h),C.round(o(s[1]/h)*h)];this._interval=h,this._niceExtent=m},niceExtent:function(a){g.niceExtent.call(this,a);var s=this._originalScale;s.__fixMin=a.fixMin,s.__fixMax=a.fixMax}});O.each(["contain","normalize"],function(a){e.prototype[a]=function(s){return s=n(s)/n(this.base),b[a].call(this,s)}}),e.create=function(){return new e};function l(a,s){return c(a,f(s))}var t=e;H.exports=t},jN4g:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="CloseCircleFilled";var f=k.a=x.forwardRef(g)},jO45:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="CheckCircleFilled";var f=k.a=x.forwardRef(g)},jO9C:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.Iso97971={pad:function(C,A){C.concat(O.lib.WordArray.create([2147483648],1)),O.pad.ZeroPadding.pad(C,A)},unpad:function(C){O.pad.ZeroPadding.unpad(C),C.sigBytes--}},O.pad.Iso97971})},jTL6:function(H,k,d){var O=d("y+Vt"),x=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(A,b){var g=b.cx,f=b.cy,c=Math.max(b.r,0),o=b.startAngle,r=b.endAngle,i=b.clockwise,n=Math.cos(o),e=Math.sin(o);A.moveTo(n*c+g,e*c+f),A.arc(g,f,c,o,r,!i)}});H.exports=x},je13:function(H,k,d){var O=d("5nXd"),x=d("gRFJ"),C=[d("uQRt")];H.exports=O.createStore(x,C)},jett:function(H,k,d){var O=d("ProS");d("VSLf"),d("oBaM"),d("FGaS");var x=d("mOdp"),C=d("f5Yq"),A=d("hw6D"),b=d("0/Rx"),g=d("eJH7");O.registerVisual(x("radar")),O.registerVisual(C("radar","circle")),O.registerLayout(A),O.registerProcessor(b("radar")),O.registerPreprocessor(g)},jhfD:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="ArrowLeftOutlined";var f=k.a=x.forwardRef(g)},jkPA:function(H,k,d){var O=d("bYtY"),x=O.createHashMap,C=O.isObject,A=O.map;function b(r){this.categories=r.categories||[],this._needCollect=r.needCollect,this._deduplication=r.deduplication,this._map}b.createByAxisModel=function(r){var i=r.option,n=i.data,e=n&&A(n,c);return new b({categories:e,needCollect:!e,deduplication:i.dedplication!==!1})};var g=b.prototype;g.getOrdinal=function(r){return f(this).get(r)},g.parseAndCollect=function(r){var i,n=this._needCollect;if(typeof r!="string"&&!n)return r;if(n&&!this._deduplication)return i=this.categories.length,this.categories[i]=r,i;var e=f(this);return i=e.get(r),i==null&&(n?(i=this.categories.length,this.categories[i]=r,e.set(r,i)):i=NaN),i};function f(r){return r._map||(r._map=x(r.categories))}function c(r){return C(r)&&r.value!=null?r.value:r+""}var o=b;H.exports=o},jndi:function(H,k,d){var O=d("bYtY"),x=d("Qe9p"),C=d("YXkt"),A=d("OELB"),b=d("IwbS"),g=d("kj2x"),f=d("iPDy"),c=function(t,a,s,u){var h=g.dataTransform(t,u[0]),p=g.dataTransform(t,u[1]),m=O.retrieve,v=h.coord,y=p.coord;v[0]=m(v[0],-Infinity),v[1]=m(v[1],-Infinity),y[0]=m(y[0],Infinity),y[1]=m(y[1],Infinity);var E=O.mergeAll([{},h,p]);return E.coord=[h.coord,p.coord],E.x0=h.x,E.y0=h.y,E.x1=p.x,E.y1=p.y,E};function o(t){return!isNaN(t)&&!isFinite(t)}function r(t,a,s,u){var h=1-t;return o(a[h])&&o(s[h])}function i(t,a){var s=a.coord[0],u=a.coord[1];return t.type==="cartesian2d"&&(s&&u&&(r(1,s,u,t)||r(0,s,u,t)))?!0:g.dataFilter(t,{coord:s,x:a.x0,y:a.y0})||g.dataFilter(t,{coord:u,x:a.x1,y:a.y1})}function n(t,a,s,u,h){var p=u.coordinateSystem,m=t.getItemModel(a),v,y=A.parsePercent(m.get(s[0]),h.getWidth()),E=A.parsePercent(m.get(s[1]),h.getHeight());if(!isNaN(y)&&!isNaN(E))v=[y,E];else{if(u.getMarkerPosition)v=u.getMarkerPosition(t.getValues(s,a));else{var T=t.get(s[0],a),w=t.get(s[1],a),S=[T,w];p.clampData&&p.clampData(S,S),v=p.dataToPoint(S,!0)}if(p.type==="cartesian2d"){var _=p.getAxis("x"),I=p.getAxis("y"),T=t.get(s[0],a),w=t.get(s[1],a);o(T)?v[0]=_.toGlobalCoord(_.getExtent()[s[0]==="x0"?0:1]):o(w)&&(v[1]=I.toGlobalCoord(I.getExtent()[s[1]==="y0"?0:1]))}isNaN(y)||(v[0]=y),isNaN(E)||(v[1]=E)}return v}var e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];f.extend({type:"markArea",updateTransform:function(t,a,s){a.eachSeries(function(u){var h=u.markAreaModel;if(h){var p=h.getData();p.each(function(m){var v=O.map(e,function(E){return n(p,m,E,u,s)});p.setItemLayout(m,v);var y=p.getItemGraphicEl(m);y.setShape("points",v)})}},this)},renderSeries:function(t,a,s,u){var h=t.coordinateSystem,p=t.id,m=t.getData(),v=this.markerGroupMap,y=v.get(p)||v.set(p,{group:new b.Group});this.group.add(y.group),y.__keep=!0;var E=l(h,t,a);a.setData(E),E.each(function(T){E.setItemLayout(T,O.map(e,function(w){return n(E,T,w,t,u)})),E.setItemVisual(T,{color:m.getVisual("color")})}),E.diff(y.__data).add(function(T){var w=new b.Polygon({shape:{points:E.getItemLayout(T)}});E.setItemGraphicEl(T,w),y.group.add(w)}).update(function(T,w){var S=y.__data.getItemGraphicEl(w);b.updateProps(S,{shape:{points:E.getItemLayout(T)}},a,T),y.group.add(S),E.setItemGraphicEl(T,S)}).remove(function(T){var w=y.__data.getItemGraphicEl(T);y.group.remove(w)}).execute(),E.eachItemGraphicEl(function(T,w){var S=E.getItemModel(w),_=S.getModel("label"),I=S.getModel("emphasis.label"),L=E.getItemVisual(w,"color");T.useStyle(O.defaults(S.getModel("itemStyle").getItemStyle(),{fill:x.modifyAlpha(L,.4),stroke:L})),T.hoverStyle=S.getModel("emphasis.itemStyle").getItemStyle(),b.setLabelStyle(T.style,T.hoverStyle,_,I,{labelFetcher:a,labelDataIndex:w,defaultText:E.getName(w)||"",isRectText:!0,autoColor:L}),b.setHoverStyle(T,{}),T.dataModel=a}),y.__data=E,y.group.silent=a.get("silent")||t.get("silent")}});function l(t,a,s){var u,h,p=["x0","y0","x1","y1"];t?(u=O.map(t&&t.dimensions,function(y){var E=a.getData(),T=E.getDimensionInfo(E.mapDimension(y))||{};return O.defaults({name:y},T)}),h=new C(O.map(p,function(y,E){return{name:y,type:u[E%2].type}}),s)):(u=[{name:"value",type:"float"}],h=new C(u,s));var m=O.map(s.get("data"),O.curry(c,a,t,s));t&&(m=O.filter(m,O.curry(i,t)));var v=t?function(y,E,T,w){return y.coord[Math.floor(w/2)][w%2]}:function(y){return y.value};return h.initData(m,null,v),h.hasItemOption=!0,h}},"jsU+":function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("IUWy"),A=O.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){A.superApply(this,"optionUpdated",arguments),x.each(this.option.feature,function(g,f){var c=C.get(f);c&&x.merge(g,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}}}),b=A;H.exports=b},jtI2:function(H,k,d){d("SMc4");var O=d("bLfw"),x=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"}});H.exports=x},juDX:function(H,k,d){d("P47w");var O=d("aX58"),x=O.registerPainter,C=d("3CBa");x("svg",C)},k5C7:function(H,k,d){d("0JAE"),d("g7p0"),d("7mYs")},k9D9:function(H,k){var d="original",O="arrayRows",x="objectRows",C="keyedColumns",A="unknown",b="typedArray",g="column",f="row";k.SOURCE_FORMAT_ORIGINAL=d,k.SOURCE_FORMAT_ARRAY_ROWS=O,k.SOURCE_FORMAT_OBJECT_ROWS=x,k.SOURCE_FORMAT_KEYED_COLUMNS=C,k.SOURCE_FORMAT_UNKNOWN=A,k.SOURCE_FORMAT_TYPED_ARRAY=b,k.SERIES_LAYOUT_BY_COLUMN=g,k.SERIES_LAYOUT_BY_ROW=f},kDyi:function(H,k){function d(O){var x=O.findComponents({mainType:"legend"});x&&x.length&&O.filterSeries(function(C){for(var A=0;A<x.length;A++)if(!x[A].isSelected(C.name))return!1;return!0})}H.exports=d},kGiB:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("ABKa"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},kMLO:function(H,k,d){var O=d("XxSj"),x=d("Qe9p"),C=d("bYtY"),A=C.isArray,b="itemStyle",g={seriesType:"treemap",reset:function(t,a,s,u){var h=t.getData().tree,p=h.root,m=t.getModel(b);if(p.isRemoved())return;var v=C.map(h.levelModels,function(y){return y?y.get(b):null});f(p,{},v,m,t.getViewRoot().getAncestors(),t)}};function f(t,a,s,u,h,p){var m=t.getModel(),v=t.getLayout();if(!v||v.invisible||!v.isInView)return;var y=t.getModel(b),E=s[t.depth],T=c(y,a,E,u),w=y.get("borderColor"),S=y.get("borderColorSaturation"),_;S!=null&&(_=o(T,t),w=r(S,_)),t.setVisual("borderColor",w);var I=t.viewChildren;if(!I||!I.length)_=o(T,t),t.setVisual("color",_);else{var L=n(t,m,v,y,T,I);C.each(I,function(N,R){if(N.depth>=h.length||N===h[N.depth]){var D=l(m,T,N,R,L,p);f(N,D,s,u,h,p)}})}}function c(t,a,s,u){var h=C.extend({},a);return C.each(["color","colorAlpha","colorSaturation"],function(p){var m=t.get(p,!0);m==null&&s&&(m=s[p]),m==null&&(m=a[p]),m==null&&(m=u.get(p)),m!=null&&(h[p]=m)}),h}function o(t){var a=i(t,"color");if(a){var s=i(t,"colorAlpha"),u=i(t,"colorSaturation");return u&&(a=x.modifyHSL(a,null,null,u)),s&&(a=x.modifyAlpha(a,s)),a}}function r(t,a){return a!=null?x.modifyHSL(a,null,null,t):null}function i(t,a){var s=t[a];if(s!=null&&s!=="none")return s}function n(t,a,s,u,h,p){if(!p||!p.length)return;var m=e(a,"color")||h.color!=null&&h.color!=="none"&&(e(a,"colorAlpha")||e(a,"colorSaturation"));if(!m)return;var v=a.get("visualMin"),y=a.get("visualMax"),E=s.dataExtent.slice();v!=null&&v<E[0]&&(E[0]=v),y!=null&&y>E[1]&&(E[1]=y);var T=a.get("colorMappingBy"),w={type:m.name,dataExtent:E,visual:m.range};w.type==="color"&&(T==="index"||T==="id")?(w.mappingMethod="category",w.loop=!0):w.mappingMethod="linear";var S=new O(w);return S.__drColorMappingBy=T,S}function e(t,a){var s=t.get(a);return A(s)&&s.length?{name:a,range:s}:null}function l(t,a,s,u,h,p){var m=C.extend({},a);if(h){var v=h.type,y=v==="color"&&h.__drColorMappingBy,E=y==="index"?u:y==="id"?p.mapIdToIndex(s.getId()):s.getValue(t.get("visualDimension"));m[v]=h.mapValueToVisual(E)}return m}H.exports=g},"kVK+":function(H,k){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */k.read=function(d,O,x,C,A){var b,g,f=A*8-C-1,c=(1<<f)-1,o=c>>1,r=-7,i=x?A-1:0,n=x?-1:1,e=d[O+i];for(i+=n,b=e&(1<<-r)-1,e>>=-r,r+=f;r>0;b=b*256+d[O+i],i+=n,r-=8);for(g=b&(1<<-r)-1,b>>=-r,r+=C;r>0;g=g*256+d[O+i],i+=n,r-=8);if(b===0)b=1-o;else{if(b===c)return g?NaN:(e?-1:1)*Infinity;g=g+Math.pow(2,C),b=b-o}return(e?-1:1)*g*Math.pow(2,b-C)},k.write=function(d,O,x,C,A,b){var g,f,c,o=b*8-A-1,r=(1<<o)-1,i=r>>1,n=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=C?0:b-1,l=C?1:-1,t=O<0||O===0&&1/O<0?1:0;for(O=Math.abs(O),isNaN(O)||O===Infinity?(f=isNaN(O)?1:0,g=r):(g=Math.floor(Math.log(O)/Math.LN2),O*(c=Math.pow(2,-g))<1&&(g--,c*=2),g+i>=1?O+=n/c:O+=n*Math.pow(2,1-i),O*c>=2&&(g++,c/=2),g+i>=r?(f=0,g=r):g+i>=1?(f=(O*c-1)*Math.pow(2,A),g=g+i):(f=O*Math.pow(2,i-1)*Math.pow(2,A),g=0));A>=8;d[x+e]=f&255,e+=l,f/=256,A-=8);for(g=g<<A|f,o+=A;o>0;d[x+e]=g&255,e+=l,g/=256,o-=8);d[x+e-l]|=t*128}},kj2x:function(H,k,d){var O=d("bYtY"),x=d("OELB"),C=d("7hqr"),A=C.isDimensionStacked,b=O.indexOf;function g(s){return!(isNaN(parseFloat(s.x))&&isNaN(parseFloat(s.y)))}function f(s){return!isNaN(parseFloat(s.x))&&!isNaN(parseFloat(s.y))}function c(s,u,h,p,m,v){var y=[],E=A(u,p),T=E?u.getCalculationInfo("stackResultDimension"):p,w=a(u,T,s),S=u.indicesOfNearest(T,w)[0];y[m]=u.get(h,S),y[v]=u.get(T,S);var _=u.get(p,S),I=x.getPrecision(u.get(p,S));return I=Math.min(I,20),I>=0&&(y[v]=+y[v].toFixed(I)),[y,_]}var o=O.curry,r={min:o(c,"min"),max:o(c,"max"),average:o(c,"average")};function i(s,u){var h=s.getData(),p=s.coordinateSystem;if(u&&!f(u)&&!O.isArray(u.coord)&&p){var m=p.dimensions,v=n(u,h,p,s);if(u=O.clone(u),u.type&&r[u.type]&&v.baseAxis&&v.valueAxis){var y=b(m,v.baseAxis.dim),E=b(m,v.valueAxis.dim),T=r[u.type](h,v.baseDataDim,v.valueDataDim,y,E);u.coord=T[0],u.value=T[1]}else{for(var w=[u.xAxis!=null?u.xAxis:u.radiusAxis,u.yAxis!=null?u.yAxis:u.angleAxis],S=0;S<2;S++)r[w[S]]&&(w[S]=a(h,h.mapDimension(m[S]),w[S]));u.coord=w}}return u}function n(s,u,h,p){var m={};return s.valueIndex!=null||s.valueDim!=null?(m.valueDataDim=s.valueIndex!=null?u.getDimension(s.valueIndex):s.valueDim,m.valueAxis=h.getAxis(e(p,m.valueDataDim)),m.baseAxis=h.getOtherAxis(m.valueAxis),m.baseDataDim=u.mapDimension(m.baseAxis.dim)):(m.baseAxis=p.getBaseAxis(),m.valueAxis=h.getOtherAxis(m.baseAxis),m.baseDataDim=u.mapDimension(m.baseAxis.dim),m.valueDataDim=u.mapDimension(m.valueAxis.dim)),m}function e(s,u){var h=s.getData(),p=h.dimensions;u=h.getDimension(u);for(var m=0;m<p.length;m++){var v=h.getDimensionInfo(p[m]);if(v.name===u)return v.coordDim}}function l(s,u){return s&&s.containData&&u.coord&&!g(u)?s.containData(u.coord):!0}function t(s,u,h,p){return p<2?s.coord&&s.coord[p]:s.value}function a(s,u,h){if(h==="average"){var p=0,m=0;return s.each(u,function(v,y){isNaN(v)||(p+=v,m++)}),p/m}else return h==="median"?s.getMedian(u):s.getDataExtent(u,!0)[h==="max"?1:0]}k.dataTransform=i,k.getAxisInfo=n,k.dataFilter=l,k.dimValueGetter=t,k.numCalculate=a},knOB:function(H,k,d){var O=d("bYtY"),x=d("hM6l");function C(b,g){x.call(this,"radius",b,g),this.type="category"}C.prototype={constructor:C,pointToData:function(b,g){return this.polar.pointToData(b,g)[this.dim==="radius"?0:1]},dataToRadius:x.prototype.dataToCoord,radiusToData:x.prototype.coordToData},O.inherits(C,x);var A=C;H.exports=A},ko1b:function(H,k,d){var O=d("bYtY"),x=d("T4UG"),C=d("Bsck"),A=d("Qxkt"),b=d("7aKB"),g=b.encodeHTML,f=b.addCommas,c=d("VaxA"),o=c.wrapTreePathInfo,r=x.extend({type:"series.treemap",layoutMode:"box",dependencies:["grid","polar"],preventUsingHoverLayer:!0,_viewRoot:null,defaultOption:{progressive:0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",ellipsis:!0},upperLabel:{show:!1,position:[0,"50%"],height:20,color:"#fff",ellipsis:!0,verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],color:"#fff",ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,l){var t={name:e.name,children:e.data};i(t);var a=e.levels||[];a=e.levels=n(a,l);var s=O.map(a||[],function(p){return new A(p,this,l)},this),u=C.createTree(t,this,null,h);function h(p){p.wrapMethod("getItemModel",function(m,v){var y=u.getNodeByDataIndex(v),E=s[y.depth];return E&&(m.parentModel=E),m})}return u.data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var l=this.getData(),t=this.getRawValue(e),a=O.isArray(t)?f(t[0]):f(t),s=l.getName(e);return g(s+": "+a)},getDataParams:function(e){var l=x.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(e);return l.treePathInfo=o(t,this),l},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},O.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var l=this._idIndexMap;l||(l=this._idIndexMap=O.createHashMap(),this._idIndexMapCount=0);var t=l.get(e);return t==null&&l.set(e,t=this._idIndexMapCount++),t},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var l=this.getRawData().tree.root;(!e||e!==l&&!l.contains(e))&&(this._viewRoot=l)}});function i(e){var l=0;O.each(e.children,function(a){i(a);var s=a.value;O.isArray(s)&&(s=s[0]),l+=s});var t=e.value;O.isArray(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=l),t<0&&(t=0),O.isArray(e.value)?e.value[0]=t:e.value=t}function n(e,l){var t=l.get("color");if(!t)return;e=e||[];var a;if(O.each(e,function(u){var h=new A(u),p=h.get("color");(h.get("itemStyle.color")||p&&p!=="none")&&(a=!0)}),!a){var s=e[0]||(e[0]={});s.color=t.slice()}return e}H.exports=r},kzFp:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0});var O=k.pick=function(C,A){var b={};return A.forEach(function(g){b[g]=C[g]}),b}},kzvK:function(H,k,d){var O=d("sS/r"),x=O.extend({type:"timeline"});H.exports=x},"l+S1":function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="SearchOutlined";var f=k.a=x.forwardRef(g)},lE7J:function(H,k,d){var O=d("OELB"),x=O.round;function C(f,c,o,r){var i={},n=f[1]-f[0],e=i.interval=O.nice(n/c,!0);o!=null&&e<o&&(e=i.interval=o),r!=null&&e>r&&(e=i.interval=r);var l=i.intervalPrecision=A(e),t=i.niceTickExtent=[x(Math.ceil(f[0]/e)*e,l),x(Math.floor(f[1]/e)*e,l)];return g(t,f),i}function A(f){return O.getPrecisionSafe(f)+2}function b(f,c,o){f[c]=Math.max(Math.min(f[c],o[1]),o[0])}function g(f,c){!isFinite(f[0])&&(f[0]=c[0]),!isFinite(f[1])&&(f[1]=c[1]),b(f,0,c),b(f,1,c),f[0]>f[1]&&(f[0]=f[1])}k.intervalScaleNiceTicks=C,k.getIntervalPrecision=A,k.fixExtent=g},lELe:function(H,k,d){var O=d("bYtY");function x(C){var A=[];O.each(C.series,function(b){b&&b.type==="map"&&(A.push(b),b.map=b.map||b.mapType,O.defaults(b,b.mapLocation))})}H.exports=x},lLGD:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("nVfU"),A=C.layout,b=C.largeLayout;d("Wqna"),d("F7hV"),d("Z8zF"),d("Ae16"),O.registerLayout(O.PRIORITY.VISUAL.LAYOUT,x.curry(A,"bar")),O.registerLayout(O.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,b),O.registerVisual({seriesType:"bar",reset:function(g){g.getData().setVisual("legendSymbol","roundRect")}})},lNSK:function(H,k,d){"use strict";function O(Z){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(ct){return typeof ct}:O=function(ct){return ct&&typeof Symbol=="function"&&ct.constructor===Symbol&&ct!==Symbol.prototype?"symbol":typeof ct},O(Z)}Object.defineProperty(k,"__esModule",{value:!0}),k.deflateInit=Xe,k.deflateInit2=_t,k.deflateReset=er,k.deflateResetKeep=Mt,k.deflateSetHeader=It,k.deflate=ie,k.deflateEnd=X,k.deflateSetDictionary=Be,k.deflateInfo=k.Z_DEFLATED=k.Z_UNKNOWN=k.Z_DEFAULT_STRATEGY=k.Z_FIXED=k.Z_RLE=k.Z_HUFFMAN_ONLY=k.Z_FILTERED=k.Z_DEFAULT_COMPRESSION=k.Z_BUF_ERROR=k.Z_DATA_ERROR=k.Z_STREAM_ERROR=k.Z_STREAM_END=k.Z_OK=k.Z_BLOCK=k.Z_FINISH=k.Z_FULL_FLUSH=k.Z_PARTIAL_FLUSH=k.Z_NO_FLUSH=void 0;var x=o(d("6BzB")),C=o(d("c5fP")),A=f(d("xlC8")),b=f(d("QV2g")),g=f(d("xSIq"));function f(Z){return Z&&Z.__esModule?Z:{default:Z}}function c(){if(typeof WeakMap!="function")return null;var Z=new WeakMap;return c=function(){return Z},Z}function o(Z){if(Z&&Z.__esModule)return Z;if(Z===null||O(Z)!=="object"&&typeof Z!="function")return{default:Z};var nt=c();if(nt&&nt.has(Z))return nt.get(Z);var ct={},Qe=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var dt in Z)if(Object.prototype.hasOwnProperty.call(Z,dt)){var Ft=Qe?Object.getOwnPropertyDescriptor(Z,dt):null;Ft&&(Ft.get||Ft.set)?Object.defineProperty(ct,dt,Ft):ct[dt]=Z[dt]}return ct.default=Z,nt&&nt.set(Z,ct),ct}var r=0;k.Z_NO_FLUSH=r;var i=1;k.Z_PARTIAL_FLUSH=i;var n=3;k.Z_FULL_FLUSH=n;var e=4;k.Z_FINISH=e;var l=5;k.Z_BLOCK=l;var t=0;k.Z_OK=t;var a=1;k.Z_STREAM_END=a;var s=-2;k.Z_STREAM_ERROR=s;var u=-3;k.Z_DATA_ERROR=u;var h=-5;k.Z_BUF_ERROR=h;var p=-1;k.Z_DEFAULT_COMPRESSION=p;var m=1;k.Z_FILTERED=m;var v=2;k.Z_HUFFMAN_ONLY=v;var y=3;k.Z_RLE=y;var E=4;k.Z_FIXED=E;var T=0;k.Z_DEFAULT_STRATEGY=T;var w=2;k.Z_UNKNOWN=w;var S=8;k.Z_DEFLATED=S;var _=9,I=15,L=8,N=29,R=256,D=R+1+N,F=30,M=19,U=2*D+1,B=15,j=3,W=258,V=W+j+1,z=32,J=42,q=69,de=73,ae=91,ve=103,_e=113,Ie=666,He=1,me=2,ke=3,se=4,te=3;function Ge(Z,nt){return Z.msg=g.default[nt],nt}function oe(Z){return(Z<<1)-(Z>4?9:0)}function Y(Z){for(var nt=Z.length;--nt>=0;)Z[nt]=0}function G(Z){var nt=Z.state,ct=nt.pending;if(ct>Z.avail_out&&(ct=Z.avail_out),ct===0)return;x.arraySet(Z.output,nt.pending_buf,nt.pending_out,ct,Z.next_out),Z.next_out+=ct,nt.pending_out+=ct,Z.total_out+=ct,Z.avail_out-=ct,nt.pending-=ct,nt.pending===0&&(nt.pending_out=0)}function Q(Z,nt){C._tr_flush_block(Z,Z.block_start>=0?Z.block_start:-1,Z.strstart-Z.block_start,nt),Z.block_start=Z.strstart,G(Z.strm)}function ye(Z,nt){Z.pending_buf[Z.pending++]=nt}function ce(Z,nt){Z.pending_buf[Z.pending++]=nt>>>8&255,Z.pending_buf[Z.pending++]=nt&255}function Te(Z,nt,ct,Qe){var dt=Z.avail_in;return dt>Qe&&(dt=Qe),dt===0?0:(Z.avail_in-=dt,x.arraySet(nt,Z.input,Z.next_in,dt,ct),Z.state.wrap===1?Z.adler=(0,A.default)(Z.adler,nt,dt,ct):Z.state.wrap===2&&(Z.adler=(0,b.default)(Z.adler,nt,dt,ct)),Z.next_in+=dt,Z.total_in+=dt,dt)}function Se(Z,nt){var ct=Z.max_chain_length,Qe=Z.strstart,dt,Ft,Lr=Z.prev_length,Wt=Z.nice_match,ar=Z.strstart>Z.w_size-V?Z.strstart-(Z.w_size-V):0,Ut=Z.window,kt=Z.w_mask,st=Z.prev,Rr=Z.strstart+W,on=Ut[Qe+Lr-1],Sn=Ut[Qe+Lr];Z.prev_length>=Z.good_match&&(ct>>=2),Wt>Z.lookahead&&(Wt=Z.lookahead);do{if(dt=nt,Ut[dt+Lr]!==Sn||Ut[dt+Lr-1]!==on||Ut[dt]!==Ut[Qe]||Ut[++dt]!==Ut[Qe+1])continue;Qe+=2,dt++;do;while(Ut[++Qe]===Ut[++dt]&&Ut[++Qe]===Ut[++dt]&&Ut[++Qe]===Ut[++dt]&&Ut[++Qe]===Ut[++dt]&&Ut[++Qe]===Ut[++dt]&&Ut[++Qe]===Ut[++dt]&&Ut[++Qe]===Ut[++dt]&&Ut[++Qe]===Ut[++dt]&&Qe<Rr);if(Ft=W-(Rr-Qe),Qe=Rr-W,Ft>Lr){if(Z.match_start=nt,Lr=Ft,Ft>=Wt)break;on=Ut[Qe+Lr-1],Sn=Ut[Qe+Lr]}}while((nt=st[nt&kt])>ar&&--ct!==0);return Lr<=Z.lookahead?Lr:Z.lookahead}function le(Z){var nt=Z.w_size,ct,Qe,dt,Ft,Lr;do{if(Ft=Z.window_size-Z.lookahead-Z.strstart,Z.strstart>=nt+(nt-V)){x.arraySet(Z.window,Z.window,nt,nt,0),Z.match_start-=nt,Z.strstart-=nt,Z.block_start-=nt,Qe=Z.hash_size,ct=Qe;do dt=Z.head[--ct],Z.head[ct]=dt>=nt?dt-nt:0;while(--Qe);Qe=nt,ct=Qe;do dt=Z.prev[--ct],Z.prev[ct]=dt>=nt?dt-nt:0;while(--Qe);Ft+=nt}if(Z.strm.avail_in===0)break;if(Qe=Te(Z.strm,Z.window,Z.strstart+Z.lookahead,Ft),Z.lookahead+=Qe,Z.lookahead+Z.insert>=j)for(Lr=Z.strstart-Z.insert,Z.ins_h=Z.window[Lr],Z.ins_h=(Z.ins_h<<Z.hash_shift^Z.window[Lr+1])&Z.hash_mask;Z.insert&&!(Z.ins_h=(Z.ins_h<<Z.hash_shift^Z.window[Lr+j-1])&Z.hash_mask,Z.prev[Lr&Z.w_mask]=Z.head[Z.ins_h],Z.head[Z.ins_h]=Lr,Lr++,Z.insert--,Z.lookahead+Z.insert<j););}while(Z.lookahead<V&&Z.strm.avail_in!==0)}function fe(Z,nt){var ct=65535;for(ct>Z.pending_buf_size-5&&(ct=Z.pending_buf_size-5);;){if(Z.lookahead<=1){if(le(Z),Z.lookahead===0&&nt===r)return He;if(Z.lookahead===0)break}Z.strstart+=Z.lookahead,Z.lookahead=0;var Qe=Z.block_start+ct;if((Z.strstart===0||Z.strstart>=Qe)&&(Z.lookahead=Z.strstart-Qe,Z.strstart=Qe,Q(Z,!1),Z.strm.avail_out===0))return He;if(Z.strstart-Z.block_start>=Z.w_size-V&&(Q(Z,!1),Z.strm.avail_out===0))return He}return Z.insert=0,nt===e?(Q(Z,!0),Z.strm.avail_out===0?ke:se):(Z.strstart>Z.block_start&&(Q(Z,!1),Z.strm.avail_out===0),He)}function Ee(Z,nt){for(var ct,Qe;;){if(Z.lookahead<V){if(le(Z),Z.lookahead<V&&nt===r)return He;if(Z.lookahead===0)break}if(ct=0,Z.lookahead>=j&&(Z.ins_h=(Z.ins_h<<Z.hash_shift^Z.window[Z.strstart+j-1])&Z.hash_mask,ct=Z.prev[Z.strstart&Z.w_mask]=Z.head[Z.ins_h],Z.head[Z.ins_h]=Z.strstart),ct!==0&&Z.strstart-ct<=Z.w_size-V&&(Z.match_length=Se(Z,ct)),Z.match_length>=j)if(Qe=C._tr_tally(Z,Z.strstart-Z.match_start,Z.match_length-j),Z.lookahead-=Z.match_length,Z.match_length<=Z.max_lazy_match&&Z.lookahead>=j){Z.match_length--;do Z.strstart++,Z.ins_h=(Z.ins_h<<Z.hash_shift^Z.window[Z.strstart+j-1])&Z.hash_mask,ct=Z.prev[Z.strstart&Z.w_mask]=Z.head[Z.ins_h],Z.head[Z.ins_h]=Z.strstart;while(--Z.match_length!==0);Z.strstart++}else Z.strstart+=Z.match_length,Z.match_length=0,Z.ins_h=Z.window[Z.strstart],Z.ins_h=(Z.ins_h<<Z.hash_shift^Z.window[Z.strstart+1])&Z.hash_mask;else Qe=C._tr_tally(Z,0,Z.window[Z.strstart]),Z.lookahead--,Z.strstart++;if(Qe&&(Q(Z,!1),Z.strm.avail_out===0))return He}return Z.insert=Z.strstart<j-1?Z.strstart:j-1,nt===e?(Q(Z,!0),Z.strm.avail_out===0?ke:se):Z.last_lit&&(Q(Z,!1),Z.strm.avail_out===0)?He:me}function Ve(Z,nt){for(var ct,Qe,dt;;){if(Z.lookahead<V){if(le(Z),Z.lookahead<V&&nt===r)return He;if(Z.lookahead===0)break}if(ct=0,Z.lookahead>=j&&(Z.ins_h=(Z.ins_h<<Z.hash_shift^Z.window[Z.strstart+j-1])&Z.hash_mask,ct=Z.prev[Z.strstart&Z.w_mask]=Z.head[Z.ins_h],Z.head[Z.ins_h]=Z.strstart),Z.prev_length=Z.match_length,Z.prev_match=Z.match_start,Z.match_length=j-1,ct!==0&&Z.prev_length<Z.max_lazy_match&&Z.strstart-ct<=Z.w_size-V&&(Z.match_length=Se(Z,ct),Z.match_length<=5&&(Z.strategy===m||Z.match_length===j&&Z.strstart-Z.match_start>4096)&&(Z.match_length=j-1)),Z.prev_length>=j&&Z.match_length<=Z.prev_length){dt=Z.strstart+Z.lookahead-j,Qe=C._tr_tally(Z,Z.strstart-1-Z.prev_match,Z.prev_length-j),Z.lookahead-=Z.prev_length-1,Z.prev_length-=2;do++Z.strstart<=dt&&(Z.ins_h=(Z.ins_h<<Z.hash_shift^Z.window[Z.strstart+j-1])&Z.hash_mask,ct=Z.prev[Z.strstart&Z.w_mask]=Z.head[Z.ins_h],Z.head[Z.ins_h]=Z.strstart);while(--Z.prev_length!==0);if(Z.match_available=0,Z.match_length=j-1,Z.strstart++,Qe&&(Q(Z,!1),Z.strm.avail_out===0))return He}else if(Z.match_available){if(Qe=C._tr_tally(Z,0,Z.window[Z.strstart-1]),Qe&&Q(Z,!1),Z.strstart++,Z.lookahead--,Z.strm.avail_out===0)return He}else Z.match_available=1,Z.strstart++,Z.lookahead--}return Z.match_available&&(Qe=C._tr_tally(Z,0,Z.window[Z.strstart-1]),Z.match_available=0),Z.insert=Z.strstart<j-1?Z.strstart:j-1,nt===e?(Q(Z,!0),Z.strm.avail_out===0?ke:se):Z.last_lit&&(Q(Z,!1),Z.strm.avail_out===0)?He:me}function vt(Z,nt){for(var ct,Qe,dt,Ft,Lr=Z.window;;){if(Z.lookahead<=W){if(le(Z),Z.lookahead<=W&&nt===r)return He;if(Z.lookahead===0)break}if(Z.match_length=0,Z.lookahead>=j&&Z.strstart>0&&(dt=Z.strstart-1,Qe=Lr[dt],Qe===Lr[++dt]&&Qe===Lr[++dt]&&Qe===Lr[++dt])){Ft=Z.strstart+W;do;while(Qe===Lr[++dt]&&Qe===Lr[++dt]&&Qe===Lr[++dt]&&Qe===Lr[++dt]&&Qe===Lr[++dt]&&Qe===Lr[++dt]&&Qe===Lr[++dt]&&Qe===Lr[++dt]&&dt<Ft);Z.match_length=W-(Ft-dt),Z.match_length>Z.lookahead&&(Z.match_length=Z.lookahead)}if(Z.match_length>=j?(ct=C._tr_tally(Z,1,Z.match_length-j),Z.lookahead-=Z.match_length,Z.strstart+=Z.match_length,Z.match_length=0):(ct=C._tr_tally(Z,0,Z.window[Z.strstart]),Z.lookahead--,Z.strstart++),ct&&(Q(Z,!1),Z.strm.avail_out===0))return He}return Z.insert=0,nt===e?(Q(Z,!0),Z.strm.avail_out===0?ke:se):Z.last_lit&&(Q(Z,!1),Z.strm.avail_out===0)?He:me}function et(Z,nt){for(var ct;;){if(Z.lookahead===0&&(le(Z),Z.lookahead===0)){if(nt===r)return He;break}if(Z.match_length=0,ct=C._tr_tally(Z,0,Z.window[Z.strstart]),Z.lookahead--,Z.strstart++,ct&&(Q(Z,!1),Z.strm.avail_out===0))return He}return Z.insert=0,nt===e?(Q(Z,!0),Z.strm.avail_out===0?ke:se):Z.last_lit&&(Q(Z,!1),Z.strm.avail_out===0)?He:me}function Oe(Z,nt,ct,Qe,dt){this.good_length=Z,this.max_lazy=nt,this.nice_length=ct,this.max_chain=Qe,this.func=dt}var Tt;Tt=[new Oe(0,0,0,0,fe),new Oe(4,4,8,4,Ee),new Oe(4,5,16,8,Ee),new Oe(4,6,32,32,Ee),new Oe(4,4,16,16,Ve),new Oe(8,16,32,32,Ve),new Oe(8,16,128,128,Ve),new Oe(8,32,128,256,Ve),new Oe(32,128,258,1024,Ve),new Oe(32,258,258,4096,Ve)];function Je(Z){Z.window_size=2*Z.w_size,Y(Z.head),Z.max_lazy_match=Tt[Z.level].max_lazy,Z.good_match=Tt[Z.level].good_length,Z.nice_match=Tt[Z.level].nice_length,Z.max_chain_length=Tt[Z.level].max_chain,Z.strstart=0,Z.block_start=0,Z.lookahead=0,Z.insert=0,Z.match_length=Z.prev_length=j-1,Z.match_available=0,Z.ins_h=0}function St(){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=S,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 x.Buf16(U*2),this.dyn_dtree=new x.Buf16((2*F+1)*2),this.bl_tree=new x.Buf16((2*M+1)*2),Y(this.dyn_ltree),Y(this.dyn_dtree),Y(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new x.Buf16(B+1),this.heap=new x.Buf16(2*D+1),Y(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new x.Buf16(2*D+1),Y(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 Mt(Z){var nt;return!Z||!Z.state?Ge(Z,s):(Z.total_in=Z.total_out=0,Z.data_type=w,nt=Z.state,nt.pending=0,nt.pending_out=0,nt.wrap<0&&(nt.wrap=-nt.wrap),nt.status=nt.wrap?J:_e,Z.adler=nt.wrap===2?0:1,nt.last_flush=r,C._tr_init(nt),t)}function er(Z){var nt=Mt(Z);return nt===t&&Je(Z.state),nt}function It(Z,nt){return!Z||!Z.state||Z.state.wrap!==2?s:(Z.state.gzhead=nt,t)}function _t(Z,nt,ct,Qe,dt,Ft){if(!Z)return s;var Lr=1;if(nt===p&&(nt=6),Qe<0?(Lr=0,Qe=-Qe):Qe>15&&(Lr=2,Qe-=16),dt<1||dt>_||ct!==S||Qe<8||Qe>15||nt<0||nt>9||Ft<0||Ft>E)return Ge(Z,s);Qe===8&&(Qe=9);var Wt=new St;return Z.state=Wt,Wt.strm=Z,Wt.wrap=Lr,Wt.gzhead=null,Wt.w_bits=Qe,Wt.w_size=1<<Wt.w_bits,Wt.w_mask=Wt.w_size-1,Wt.hash_bits=dt+7,Wt.hash_size=1<<Wt.hash_bits,Wt.hash_mask=Wt.hash_size-1,Wt.hash_shift=~~((Wt.hash_bits+j-1)/j),Wt.window=new x.Buf8(Wt.w_size*2),Wt.head=new x.Buf16(Wt.hash_size),Wt.prev=new x.Buf16(Wt.w_size),Wt.lit_bufsize=1<<dt+6,Wt.pending_buf_size=Wt.lit_bufsize*4,Wt.pending_buf=new x.Buf8(Wt.pending_buf_size),Wt.d_buf=1*Wt.lit_bufsize,Wt.l_buf=(1+2)*Wt.lit_bufsize,Wt.level=nt,Wt.strategy=Ft,Wt.method=ct,er(Z)}function Xe(Z,nt){return _t(Z,nt,S,I,L,T)}function ie(Z,nt){var ct,Qe,dt,Ft;if(!Z||!Z.state||nt>l||nt<0)return Z?Ge(Z,s):s;if(Qe=Z.state,!Z.output||!Z.input&&Z.avail_in!==0||Qe.status===Ie&&nt!==e)return Ge(Z,Z.avail_out===0?h:s);if(Qe.strm=Z,ct=Qe.last_flush,Qe.last_flush=nt,Qe.status===J)if(Qe.wrap===2)Z.adler=0,ye(Qe,31),ye(Qe,139),ye(Qe,8),Qe.gzhead?(ye(Qe,(Qe.gzhead.text?1:0)+(Qe.gzhead.hcrc?2:0)+(Qe.gzhead.extra?4:0)+(Qe.gzhead.name?8:0)+(Qe.gzhead.comment?16:0)),ye(Qe,Qe.gzhead.time&255),ye(Qe,Qe.gzhead.time>>8&255),ye(Qe,Qe.gzhead.time>>16&255),ye(Qe,Qe.gzhead.time>>24&255),ye(Qe,Qe.level===9?2:Qe.strategy>=v||Qe.level<2?4:0),ye(Qe,Qe.gzhead.os&255),Qe.gzhead.extra&&Qe.gzhead.extra.length&&(ye(Qe,Qe.gzhead.extra.length&255),ye(Qe,Qe.gzhead.extra.length>>8&255)),Qe.gzhead.hcrc&&(Z.adler=(0,b.default)(Z.adler,Qe.pending_buf,Qe.pending,0)),Qe.gzindex=0,Qe.status=q):(ye(Qe,0),ye(Qe,0),ye(Qe,0),ye(Qe,0),ye(Qe,0),ye(Qe,Qe.level===9?2:Qe.strategy>=v||Qe.level<2?4:0),ye(Qe,te),Qe.status=_e);else{var Lr=S+(Qe.w_bits-8<<4)<<8,Wt=-1;Qe.strategy>=v||Qe.level<2?Wt=0:Qe.level<6?Wt=1:Qe.level===6?Wt=2:Wt=3,Lr|=Wt<<6,Qe.strstart!==0&&(Lr|=z),Lr+=31-Lr%31,Qe.status=_e,ce(Qe,Lr),Qe.strstart!==0&&(ce(Qe,Z.adler>>>16),ce(Qe,Z.adler&65535)),Z.adler=1}if(Qe.status===q)if(Qe.gzhead.extra){for(dt=Qe.pending;Qe.gzindex<(Qe.gzhead.extra.length&65535)&&!(Qe.pending===Qe.pending_buf_size&&(Qe.gzhead.hcrc&&Qe.pending>dt&&(Z.adler=(0,b.default)(Z.adler,Qe.pending_buf,Qe.pending-dt,dt)),G(Z),dt=Qe.pending,Qe.pending===Qe.pending_buf_size));)ye(Qe,Qe.gzhead.extra[Qe.gzindex]&255),Qe.gzindex++;Qe.gzhead.hcrc&&Qe.pending>dt&&(Z.adler=(0,b.default)(Z.adler,Qe.pending_buf,Qe.pending-dt,dt)),Qe.gzindex===Qe.gzhead.extra.length&&(Qe.gzindex=0,Qe.status=de)}else Qe.status=de;if(Qe.status===de)if(Qe.gzhead.name){dt=Qe.pending;do{if(Qe.pending===Qe.pending_buf_size&&(Qe.gzhead.hcrc&&Qe.pending>dt&&(Z.adler=(0,b.default)(Z.adler,Qe.pending_buf,Qe.pending-dt,dt)),G(Z),dt=Qe.pending,Qe.pending===Qe.pending_buf_size)){Ft=1;break}Qe.gzindex<Qe.gzhead.name.length?Ft=Qe.gzhead.name.charCodeAt(Qe.gzindex++)&255:Ft=0,ye(Qe,Ft)}while(Ft!==0);Qe.gzhead.hcrc&&Qe.pending>dt&&(Z.adler=(0,b.default)(Z.adler,Qe.pending_buf,Qe.pending-dt,dt)),Ft===0&&(Qe.gzindex=0,Qe.status=ae)}else Qe.status=ae;if(Qe.status===ae)if(Qe.gzhead.comment){dt=Qe.pending;do{if(Qe.pending===Qe.pending_buf_size&&(Qe.gzhead.hcrc&&Qe.pending>dt&&(Z.adler=(0,b.default)(Z.adler,Qe.pending_buf,Qe.pending-dt,dt)),G(Z),dt=Qe.pending,Qe.pending===Qe.pending_buf_size)){Ft=1;break}Qe.gzindex<Qe.gzhead.comment.length?Ft=Qe.gzhead.comment.charCodeAt(Qe.gzindex++)&255:Ft=0,ye(Qe,Ft)}while(Ft!==0);Qe.gzhead.hcrc&&Qe.pending>dt&&(Z.adler=(0,b.default)(Z.adler,Qe.pending_buf,Qe.pending-dt,dt)),Ft===0&&(Qe.status=ve)}else Qe.status=ve;if(Qe.status===ve&&(Qe.gzhead.hcrc?(Qe.pending+2>Qe.pending_buf_size&&G(Z),Qe.pending+2<=Qe.pending_buf_size&&(ye(Qe,Z.adler&255),ye(Qe,Z.adler>>8&255),Z.adler=0,Qe.status=_e)):Qe.status=_e),Qe.pending!==0){if(G(Z),Z.avail_out===0)return Qe.last_flush=-1,t}else if(Z.avail_in===0&&oe(nt)<=oe(ct)&&nt!==e)return Ge(Z,h);if(Qe.status===Ie&&Z.avail_in!==0)return Ge(Z,h);if(Z.avail_in!==0||Qe.lookahead!==0||nt!==r&&Qe.status!==Ie){var ar=Qe.strategy===v?et(Qe,nt):Qe.strategy===y?vt(Qe,nt):Tt[Qe.level].func(Qe,nt);if((ar===ke||ar===se)&&(Qe.status=Ie),ar===He||ar===ke)return Z.avail_out===0&&(Qe.last_flush=-1),t;if(ar===me&&(nt===i?C._tr_align(Qe):nt!==l&&(C._tr_stored_block(Qe,0,0,!1),nt===n&&(Y(Qe.head),Qe.lookahead===0&&(Qe.strstart=0,Qe.block_start=0,Qe.insert=0))),G(Z),Z.avail_out===0))return Qe.last_flush=-1,t}return nt!==e?t:Qe.wrap<=0?a:(Qe.wrap===2?(ye(Qe,Z.adler&255),ye(Qe,Z.adler>>8&255),ye(Qe,Z.adler>>16&255),ye(Qe,Z.adler>>24&255),ye(Qe,Z.total_in&255),ye(Qe,Z.total_in>>8&255),ye(Qe,Z.total_in>>16&255),ye(Qe,Z.total_in>>24&255)):(ce(Qe,Z.adler>>>16),ce(Qe,Z.adler&65535)),G(Z),Qe.wrap>0&&(Qe.wrap=-Qe.wrap),Qe.pending!==0?t:a)}function X(Z){var nt;return!Z||!Z.state?s:(nt=Z.state.status,nt!==J&&nt!==q&&nt!==de&&nt!==ae&&nt!==ve&&nt!==_e&&nt!==Ie?Ge(Z,s):(Z.state=null,nt===_e?Ge(Z,u):t))}function Be(Z,nt){var ct=nt.length,Qe,dt,Ft,Lr,Wt,ar,Ut,kt;if(!Z||!Z.state)return s;if(Qe=Z.state,Lr=Qe.wrap,Lr===2||Lr===1&&Qe.status!==J||Qe.lookahead)return s;for(Lr===1&&(Z.adler=(0,A.default)(Z.adler,nt,ct,0)),Qe.wrap=0,ct>=Qe.w_size&&(Lr===0&&(Y(Qe.head),Qe.strstart=0,Qe.block_start=0,Qe.insert=0),kt=new x.Buf8(Qe.w_size),x.arraySet(kt,nt,ct-Qe.w_size,Qe.w_size,0),nt=kt,ct=Qe.w_size),Wt=Z.avail_in,ar=Z.next_in,Ut=Z.input,Z.avail_in=ct,Z.next_in=0,Z.input=nt,le(Qe);Qe.lookahead>=j;){dt=Qe.strstart,Ft=Qe.lookahead-(j-1);do Qe.ins_h=(Qe.ins_h<<Qe.hash_shift^Qe.window[dt+j-1])&Qe.hash_mask,Qe.prev[dt&Qe.w_mask]=Qe.head[Qe.ins_h],Qe.head[Qe.ins_h]=dt,dt++;while(--Ft);Qe.strstart=dt,Qe.lookahead=j-1,le(Qe)}return Qe.strstart+=Qe.lookahead,Qe.block_start=Qe.strstart,Qe.insert=Qe.lookahead,Qe.lookahead=0,Qe.match_length=Qe.prev_length=j-1,Qe.match_available=0,Z.next_in=ar,Z.input=Ut,Z.avail_in=Wt,Qe.wrap=Lr,t}var Ce="pako deflate (from Nodeca project)";k.deflateInfo=Ce},lOQZ:function(H,k,d){var O=d("QBsz"),x=d("U/Mo"),C=x.getSymbolSize,A=x.getNodeGlobalScale,b=Math.PI,g=[];function f(o,r){var i=o.coordinateSystem;if(i&&i.type!=="view")return;var n=i.getBoundingRect(),e=o.getData(),l=e.graph,t=n.width/2+n.x,a=n.height/2+n.y,s=Math.min(n.width,n.height)/2,u=e.count();if(e.setLayout({cx:t,cy:a}),!u)return;c[r](o,i,l,e,s,t,a,u),l.eachEdge(function(h){var p=h.getModel().get("lineStyle.curveness")||0,m=O.clone(h.node1.getLayout()),v=O.clone(h.node2.getLayout()),y,E=(m[0]+v[0])/2,T=(m[1]+v[1])/2;+p&&(p*=3,y=[t*p+E*(1-p),a*p+T*(1-p)]),h.setLayout([m,v,y])})}var c={value:function(o,r,i,n,e,l,t,a){var s=0,u=n.getSum("value"),h=Math.PI*2/(u||a);i.eachNode(function(p){var m=p.getValue("value"),v=h*(u?m:1)/2;s+=v,p.setLayout([e*Math.cos(s)+l,e*Math.sin(s)+t]),s+=v})},symbolSize:function(o,r,i,n,e,l,t,a){var s=0;g.length=a;var u=A(o);i.eachNode(function(m){var v=C(m);isNaN(v)&&(v=2),v<0&&(v=0),v*=u;var y=Math.asin(v/2/e);isNaN(y)&&(y=b/2),g[m.dataIndex]=y,s+=y*2});var h=(2*b-s)/a/2,p=0;i.eachNode(function(m){var v=h+g[m.dataIndex];p+=v,m.setLayout([e*Math.cos(p)+l,e*Math.sin(p)+t]),p+=v})}};k.circularLayout=f},lPiR:function(H,k,d){(function(O,x){H.exports=k=x(d("Ib8C"))})(this,function(O){return function(x){var C=O,A=C.lib,b=A.WordArray,g=A.Hasher,f=C.algo,c=[],o=[];(function(){function n(a){for(var s=x.sqrt(a),u=2;u<=s;u++)if(!(a%u))return!1;return!0}function e(a){return(a-(a|0))*4294967296|0}for(var l=2,t=0;t<64;)n(l)&&(t<8&&(c[t]=e(x.pow(l,1/2))),o[t]=e(x.pow(l,1/3)),t++),l++})();var r=[],i=f.SHA256=g.extend({_doReset:function(){this._hash=new b.init(c.slice(0))},_doProcessBlock:function(e,l){for(var t=this._hash.words,a=t[0],s=t[1],u=t[2],h=t[3],p=t[4],m=t[5],v=t[6],y=t[7],E=0;E<64;E++){if(E<16)r[E]=e[l+E]|0;else{var T=r[E-15],w=(T<<25|T>>>7)^(T<<14|T>>>18)^T>>>3,S=r[E-2],_=(S<<15|S>>>17)^(S<<13|S>>>19)^S>>>10;r[E]=w+r[E-7]+_+r[E-16]}var I=p&m^~p&v,L=a&s^a&u^s&u,N=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),R=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),D=y+R+I+o[E]+r[E],F=N+L;y=v,v=m,m=p,p=h+D|0,h=u,u=s,s=a,a=D+F|0}t[0]=t[0]+a|0,t[1]=t[1]+s|0,t[2]=t[2]+u|0,t[3]=t[3]+h|0,t[4]=t[4]+p|0,t[5]=t[5]+m|0,t[6]=t[6]+v|0,t[7]=t[7]+y|0},_doFinalize:function(){var e=this._data,l=e.words,t=this._nDataBytes*8,a=e.sigBytes*8;return l[a>>>5]|=128<<24-a%32,l[(a+64>>>9<<4)+14]=x.floor(t/4294967296),l[(a+64>>>9<<4)+15]=t,e.sigBytes=l.length*4,this._process(),this._hash},clone:function(){var e=g.clone.call(this);return e._hash=this._hash.clone(),e}});C.SHA256=g._createHelper(i),C.HmacSHA256=g._createHmacHelper(i)}(Math),O.SHA256})},lUTK:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("x54q"),A=d.n(C),b=d("5Dmo")},lZu9:function(H,k,d){(function(O){O(d("VrN/"),d("1eCo"),d("8EBN"))})(function(O){"use strict";O.defineMode("markdown",function(x,C){var A=O.getMode(x,"text/html"),b=A.name=="null";function g(B){if(O.findModeByName){var j=O.findModeByName(B);j&&(B=j.mime||j.mimes[0])}var W=O.getMode(x,B);return W.name=="null"?null:W}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 f={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 f)f.hasOwnProperty(c)&&C.tokenTypeOverrides[c]&&(f[c]=C.tokenTypeOverrides[c]);var o=/^([*\-_])(?:\s*\1){2,}\s*$/,r=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,i=/^\[(x| )\](?=\s)/i,n=C.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,e=/^ {0,3}(?:\={1,}|-{2,})\s*$/,l=/^[^#!\[\]*_\\<>` "'(~:]+/,t=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,a=/^\s*\[[^\]]+?\]:.*$/,s=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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 h(B,j,W){return j.f=j.inline=W,W(B,j)}function p(B,j,W){return j.f=j.block=W,W(B,j)}function m(B){return!B||!/\S/.test(B.string)}function v(B){if(B.linkTitle=!1,B.linkHref=!1,B.linkText=!1,B.em=!1,B.strong=!1,B.strikethrough=!1,B.quote=0,B.indentedCode=!1,B.f==E){var j=b;if(!j){var W=O.innerMode(A,B.htmlState);j=W.mode.name=="xml"&&W.state.tagStart===null&&!W.state.context&&W.state.tokenize.isInText}j&&(B.f=_,B.block=y,B.htmlState=null)}return B.trailingSpace=0,B.trailingSpaceNewLine=!1,B.prevLine=B.thisLine,B.thisLine={stream:null},null}function y(B,j){var W=B.column()===j.indentation,V=m(j.prevLine.stream),z=j.indentedCode,J=j.prevLine.hr,q=j.list!==!1,de=(j.listStack[j.listStack.length-1]||0)+3;j.indentedCode=!1;var ae=j.indentation;if(j.indentationDiff===null&&(j.indentationDiff=j.indentation,q)){for(j.list=null;ae<j.listStack[j.listStack.length-1];)j.listStack.pop(),j.listStack.length?j.indentation=j.listStack[j.listStack.length-1]:j.list=!1;j.list!==!1&&(j.indentationDiff=ae-j.listStack[j.listStack.length-1])}var ve=!V&&!J&&!j.prevLine.header&&(!q||!z)&&!j.prevLine.fencedCodeEnd,_e=(j.list===!1||J||V)&&j.indentation<=de&&B.match(o),Ie=null;if(j.indentationDiff>=4&&(z||j.prevLine.fencedCodeEnd||j.prevLine.header||V))return B.skipToEnd(),j.indentedCode=!0,f.code;if(B.eatSpace())return null;if(W&&j.indentation<=de&&(Ie=B.match(n))&&Ie[1].length<=6)return j.quote=0,j.header=Ie[1].length,j.thisLine.header=!0,C.highlightFormatting&&(j.formatting="header"),j.f=j.inline,w(j);if(j.indentation<=de&&B.eat(">"))return j.quote=W?1:j.quote+1,C.highlightFormatting&&(j.formatting="quote"),B.eatSpace(),w(j);if(!_e&&!j.setext&&W&&j.indentation<=de&&(Ie=B.match(r))){var He=Ie[1]?"ol":"ul";return j.indentation=ae+B.current().length,j.list=!0,j.quote=0,j.listStack.push(j.indentation),j.em=!1,j.strong=!1,j.code=!1,j.strikethrough=!1,C.taskLists&&B.match(i,!1)&&(j.taskList=!0),j.f=j.inline,C.highlightFormatting&&(j.formatting=["list","list-"+He]),w(j)}else{if(W&&j.indentation<=de&&(Ie=B.match(t,!0)))return j.quote=0,j.fencedEndRE=new RegExp(Ie[1]+"+ *$"),j.localMode=C.fencedCodeBlockHighlighting&&g(Ie[2]||C.fencedCodeBlockDefaultMode),j.localMode&&(j.localState=O.startState(j.localMode)),j.f=j.block=T,C.highlightFormatting&&(j.formatting="code-block"),j.code=-1,w(j);if(j.setext||(!ve||!q)&&!j.quote&&j.list===!1&&!j.code&&!_e&&!a.test(B.string)&&(Ie=B.lookAhead(1))&&(Ie=Ie.match(e)))return j.setext?(j.header=j.setext,j.setext=0,B.skipToEnd(),C.highlightFormatting&&(j.formatting="header")):(j.header=Ie[0].charAt(0)=="="?1:2,j.setext=j.header),j.thisLine.header=!0,j.f=j.inline,w(j);if(_e)return B.skipToEnd(),j.hr=!0,j.thisLine.hr=!0,f.hr;if(B.peek()==="[")return h(B,j,D)}return h(B,j,j.inline)}function E(B,j){var W=A.token(B,j.htmlState);if(!b){var V=O.innerMode(A,j.htmlState);(V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText||j.md_inside&&B.current().indexOf(">")>-1)&&(j.f=_,j.block=y,j.htmlState=null)}return W}function T(B,j){var W=j.listStack[j.listStack.length-1]||0,V=j.indentation<W,z=W+3;if(j.fencedEndRE&&j.indentation<=z&&(V||B.match(j.fencedEndRE))){C.highlightFormatting&&(j.formatting="code-block");var J;return V||(J=w(j)),j.localMode=j.localState=null,j.block=y,j.f=_,j.fencedEndRE=null,j.code=0,j.thisLine.fencedCodeEnd=!0,V?p(B,j,j.block):J}else return j.localMode?j.localMode.token(B,j.localState):(B.skipToEnd(),f.code)}function w(B){var j=[];if(B.formatting){j.push(f.formatting),typeof B.formatting=="string"&&(B.formatting=[B.formatting]);for(var W=0;W<B.formatting.length;W++)j.push(f.formatting+"-"+B.formatting[W]),B.formatting[W]==="header"&&j.push(f.formatting+"-"+B.formatting[W]+"-"+B.header),B.formatting[W]==="quote"&&(!C.maxBlockquoteDepth||C.maxBlockquoteDepth>=B.quote?j.push(f.formatting+"-"+B.formatting[W]+"-"+B.quote):j.push("error"))}if(B.taskOpen)return j.push("meta"),j.length?j.join(" "):null;if(B.taskClosed)return j.push("property"),j.length?j.join(" "):null;if(B.linkHref?j.push(f.linkHref,"url"):(B.strong&&j.push(f.strong),B.em&&j.push(f.em),B.strikethrough&&j.push(f.strikethrough),B.emoji&&j.push(f.emoji),B.linkText&&j.push(f.linkText),B.code&&j.push(f.code),B.image&&j.push(f.image),B.imageAltText&&j.push(f.imageAltText,"link"),B.imageMarker&&j.push(f.imageMarker)),B.header&&j.push(f.header,f.header+"-"+B.header),B.quote&&(j.push(f.quote),!C.maxBlockquoteDepth||C.maxBlockquoteDepth>=B.quote?j.push(f.quote+"-"+B.quote):j.push(f.quote+"-"+C.maxBlockquoteDepth)),B.list!==!1){var V=(B.listStack.length-1)%3;V?V===1?j.push(f.list2):j.push(f.list3):j.push(f.list1)}return B.trailingSpaceNewLine?j.push("trailing-space-new-line"):B.trailingSpace&&j.push("trailing-space-"+(B.trailingSpace%2?"a":"b")),j.length?j.join(" "):null}function S(B,j){return B.match(l,!0)?w(j):void 0}function _(B,j){var W=j.text(B,j);if(typeof W!="undefined")return W;if(j.list)return j.list=null,w(j);if(j.taskList){var V=B.match(i,!0)[1]===" ";return V?j.taskOpen=!0:j.taskClosed=!0,C.highlightFormatting&&(j.formatting="task"),j.taskList=!1,w(j)}if(j.taskOpen=!1,j.taskClosed=!1,j.header&&B.match(/^#+$/,!0))return C.highlightFormatting&&(j.formatting="header"),w(j);var z=B.next();if(j.linkTitle){j.linkTitle=!1;var J=z;z==="("&&(J=")"),J=(J+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var q="^\\s*(?:[^"+J+"\\\\]+|\\\\\\\\|\\\\.)"+J;if(B.match(new RegExp(q),!0))return f.linkHref}if(z==="`"){var de=j.formatting;C.highlightFormatting&&(j.formatting="code"),B.eatWhile("`");var ae=B.current().length;if(j.code==0&&(!j.quote||ae==1))return j.code=ae,w(j);if(ae==j.code){var ve=w(j);return j.code=0,ve}else return j.formatting=de,w(j)}else if(j.code)return w(j);if(z==="\\"&&(B.next(),C.highlightFormatting)){var _e=w(j),Ie=f.formatting+"-escape";return _e?_e+" "+Ie:Ie}if(z==="!"&&B.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return j.imageMarker=!0,j.image=!0,C.highlightFormatting&&(j.formatting="image"),w(j);if(z==="["&&j.imageMarker&&B.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return j.imageMarker=!1,j.imageAltText=!0,C.highlightFormatting&&(j.formatting="image"),w(j);if(z==="]"&&j.imageAltText){C.highlightFormatting&&(j.formatting="image");var _e=w(j);return j.imageAltText=!1,j.image=!1,j.inline=j.f=L,_e}if(z==="["&&!j.image)return j.linkText&&B.match(/^.*?\]/)||(j.linkText=!0,C.highlightFormatting&&(j.formatting="link")),w(j);if(z==="]"&&j.linkText){C.highlightFormatting&&(j.formatting="link");var _e=w(j);return j.linkText=!1,j.inline=j.f=B.match(/\(.*?\)| ?\[.*?\]/,!1)?L:_,_e}if(z==="<"&&B.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){j.f=j.inline=I,C.highlightFormatting&&(j.formatting="link");var _e=w(j);return _e?_e+=" ":_e="",_e+f.linkInline}if(z==="<"&&B.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){j.f=j.inline=I,C.highlightFormatting&&(j.formatting="link");var _e=w(j);return _e?_e+=" ":_e="",_e+f.linkEmail}if(C.xml&&z==="<"&&B.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var He=B.string.indexOf(">",B.pos);if(He!=-1){var me=B.string.substring(B.start,He);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(me)&&(j.md_inside=!0)}return B.backUp(1),j.htmlState=O.startState(A),p(B,j,E)}if(C.xml&&z==="<"&&B.match(/^\/\w*?>/))return j.md_inside=!1,"tag";if(z==="*"||z==="_"){for(var ke=1,se=B.pos==1?" ":B.string.charAt(B.pos-2);ke<3&&B.eat(z);)ke++;var te=B.peek()||" ",Ge=!/\s/.test(te)&&(!s.test(te)||/\s/.test(se)||s.test(se)),oe=!/\s/.test(se)&&(!s.test(se)||/\s/.test(te)||s.test(te)),Y=null,G=null;if(ke%2&&(!j.em&&Ge&&(z==="*"||!oe||s.test(se))?Y=!0:j.em==z&&oe&&(z==="*"||!Ge||s.test(te))&&(Y=!1)),ke>1&&(!j.strong&&Ge&&(z==="*"||!oe||s.test(se))?G=!0:j.strong==z&&oe&&(z==="*"||!Ge||s.test(te))&&(G=!1)),G!=null||Y!=null){C.highlightFormatting&&(j.formatting=Y==null?"strong":G==null?"em":"strong em"),Y===!0&&(j.em=z),G===!0&&(j.strong=z);var ve=w(j);return Y===!1&&(j.em=!1),G===!1&&(j.strong=!1),ve}}else if(z===" "&&(B.eat("*")||B.eat("_"))){if(B.peek()===" ")return w(j);B.backUp(1)}if(C.strikethrough){if(z==="~"&&B.eatWhile(z)){if(j.strikethrough){C.highlightFormatting&&(j.formatting="strikethrough");var ve=w(j);return j.strikethrough=!1,ve}else if(B.match(/^[^\s]/,!1))return j.strikethrough=!0,C.highlightFormatting&&(j.formatting="strikethrough"),w(j)}else if(z===" "&&B.match(/^~~/,!0)){if(B.peek()===" ")return w(j);B.backUp(2)}}if(C.emoji&&z===":"&&B.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){j.emoji=!0,C.highlightFormatting&&(j.formatting="emoji");var Q=w(j);return j.emoji=!1,Q}return z===" "&&(B.match(/^ +$/,!1)?j.trailingSpace++:j.trailingSpace&&(j.trailingSpaceNewLine=!0)),w(j)}function I(B,j){var W=B.next();if(W===">"){j.f=j.inline=_,C.highlightFormatting&&(j.formatting="link");var V=w(j);return V?V+=" ":V="",V+f.linkInline}return B.match(/^[^>]+/,!0),f.linkInline}function L(B,j){if(B.eatSpace())return null;var W=B.next();return W==="("||W==="["?(j.f=j.inline=R(W==="("?")":"]"),C.highlightFormatting&&(j.formatting="link-string"),j.linkHref=!0,w(j)):"error"}var N={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function R(B){return function(j,W){var V=j.next();if(V===B){W.f=W.inline=_,C.highlightFormatting&&(W.formatting="link-string");var z=w(W);return W.linkHref=!1,z}return j.match(N[B]),W.linkHref=!0,w(W)}}function D(B,j){return B.match(/^([^\]\\]|\\.)*\]:/,!1)?(j.f=F,B.next(),C.highlightFormatting&&(j.formatting="link"),j.linkText=!0,w(j)):h(B,j,_)}function F(B,j){if(B.match(/^\]:/,!0)){j.f=j.inline=M,C.highlightFormatting&&(j.formatting="link");var W=w(j);return j.linkText=!1,W}return B.match(/^([^\]\\]|\\.)+/,!0),f.linkText}function M(B,j){return B.eatSpace()?null:(B.match(/^[^\s]+/,!0),B.peek()===void 0?j.linkTitle=!0:B.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),j.f=j.inline=_,f.linkHref+" url")}var U={startState:function(){return{f:y,prevLine:{stream:null},thisLine:{stream:null},block:y,htmlState:null,indentation:0,inline:_,text:S,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(j){return{f:j.f,prevLine:j.prevLine,thisLine:j.thisLine,block:j.block,htmlState:j.htmlState&&O.copyState(A,j.htmlState),indentation:j.indentation,localMode:j.localMode,localState:j.localMode?O.copyState(j.localMode,j.localState):null,inline:j.inline,text:j.text,formatting:!1,linkText:j.linkText,linkTitle:j.linkTitle,linkHref:j.linkHref,code:j.code,em:j.em,strong:j.strong,strikethrough:j.strikethrough,emoji:j.emoji,header:j.header,setext:j.setext,hr:j.hr,taskList:j.taskList,list:j.list,listStack:j.listStack.slice(0),quote:j.quote,indentedCode:j.indentedCode,trailingSpace:j.trailingSpace,trailingSpaceNewLine:j.trailingSpaceNewLine,md_inside:j.md_inside,fencedEndRE:j.fencedEndRE}},token:function(j,W){if(W.formatting=!1,j!=W.thisLine.stream){if(W.header=0,W.hr=!1,j.match(/^\s*$/,!0))return v(W),null;if(W.prevLine=W.thisLine,W.thisLine={stream:j},W.taskList=!1,W.trailingSpace=0,W.trailingSpaceNewLine=!1,!W.localState&&(W.f=W.block,W.f!=E)){var V=j.match(/^\s*/,!0)[0].replace(/\t/g,u).length;if(W.indentation=V,W.indentationDiff=null,V>0)return null}}return W.f(j,W)},innerMode:function(j){return j.block==E?{state:j.htmlState,mode:A}:j.localState?{state:j.localState,mode:j.localMode}:{state:j,mode:U}},indent:function(j,W,V){return j.block==E&&A.indent?A.indent(j.htmlState,W,V):j.localState&&j.localMode.indent?j.localMode.indent(j.localState,W,V):O.Pass},blankLine:v,getType:w,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return U},"xml"),O.defineMIME("text/markdown","markdown"),O.defineMIME("text/x-markdown","markdown")})},laiN:function(H,k,d){var O=d("ProS");d("GVMX"),d("MH26"),O.registerPreprocessor(function(x){x.markLine=x.markLine||{}})},lnY3:function(H,k,d){},loD1:function(H,k){function d(O,x,C,A,b,g,f){if(b===0)return!1;var c=b,o=0,r=O;if(f>x+c&&f>A+c||f<x-c&&f<A-c||g>O+c&&g>C+c||g<O-c&&g<C-c)return!1;if(O!==C)o=(x-A)/(O-C),r=(O*A-C*x)/(O-C);else return Math.abs(g-O)<=c/2;var i=o*g-f+r,n=i*i/(o*o+1);return n<=c/2*c/2}k.containStroke=d},lr6o:function(H,k,d){"use strict";var O=d("rePB"),x=d("Ff2n"),C=d("VTBJ"),A=d("1OyB"),b=d("vuIU"),g=d("JX7q"),f=d("Ji7U"),c=d("LK+K"),o=d("q1tI"),r=d("TSYQ"),i=d.n(r),n=d("FTAc"),e=d("wPhX"),l=function(E){var T=E.prefixCls,w=E.level,S=E.isStart,_=E.isEnd;if(!w)return null;for(var I="".concat(T,"-indent-unit"),L=[],N=0;N<w;N+=1){var R;L.push(o.createElement("span",{key:N,className:i()(I,(R={},Object(O.a)(R,"".concat(I,"-start"),S[N+1]),Object(O.a)(R,"".concat(I,"-end"),_[N+1]),Object(O.a)(R,"".concat(I,"-end-first-level"),!N&&_[0]),R))}))}return o.createElement("span",{"aria-hidden":"true",className:"".concat(T,"-indent")},L)},t=l,a=d("c3jg"),s="open",u="close",h="---",p=function(y){Object(f.a)(T,y);var E=Object(c.a)(T);function T(){var w;return Object(A.a)(this,T),w=E.apply(this,arguments),w.state={dragNodeHighlight:!1},w.onSelectorClick=function(S){var _=w.props.context.onNodeClick;_(S,Object(a.b)(w.props)),w.isSelectable()?w.onSelect(S):w.onCheck(S)},w.onSelectorDoubleClick=function(S){var _=w.props.context.onNodeDoubleClick;_(S,Object(a.b)(w.props))},w.onSelect=function(S){if(w.isDisabled())return;var _=w.props.context.onNodeSelect;S.preventDefault(),_(S,Object(a.b)(w.props))},w.onCheck=function(S){if(w.isDisabled())return;var _=w.props,I=_.disableCheckbox,L=_.checked,N=w.props.context.onNodeCheck;if(!w.isCheckable()||I)return;S.preventDefault();var R=!L;N(S,Object(a.b)(w.props),R)},w.onMouseEnter=function(S){var _=w.props.context.onNodeMouseEnter;_(S,Object(a.b)(w.props))},w.onMouseLeave=function(S){var _=w.props.context.onNodeMouseLeave;_(S,Object(a.b)(w.props))},w.onContextMenu=function(S){var _=w.props.context.onNodeContextMenu;_(S,Object(a.b)(w.props))},w.onDragStart=function(S){var _=w.props.context.onNodeDragStart;S.stopPropagation(),w.setState({dragNodeHighlight:!0}),_(S,Object(g.a)(w));try{S.dataTransfer.setData("text/plain","")}catch(I){}},w.onDragEnter=function(S){var _=w.props.context.onNodeDragEnter;S.preventDefault(),S.stopPropagation(),_(S,Object(g.a)(w))},w.onDragOver=function(S){var _=w.props.context.onNodeDragOver;S.preventDefault(),S.stopPropagation(),_(S,Object(g.a)(w))},w.onDragLeave=function(S){var _=w.props.context.onNodeDragLeave;S.stopPropagation(),_(S,Object(g.a)(w))},w.onDragEnd=function(S){var _=w.props.context.onNodeDragEnd;S.stopPropagation(),w.setState({dragNodeHighlight:!1}),_(S,Object(g.a)(w))},w.onDrop=function(S){var _=w.props.context.onNodeDrop;S.preventDefault(),S.stopPropagation(),w.setState({dragNodeHighlight:!1}),_(S,Object(g.a)(w))},w.onExpand=function(S){var _=w.props.context.onNodeExpand;_(S,Object(a.b)(w.props))},w.setSelectHandle=function(S){w.selectHandle=S},w.getNodeState=function(){var S=w.props.expanded;return w.isLeaf()?null:S?s:u},w.hasChildren=function(){var S=w.props.eventKey,_=w.props.context.keyEntities,I=_[S]||{},L=I.children;return!!(L||[]).length},w.isLeaf=function(){var S=w.props,_=S.isLeaf,I=S.loaded,L=w.props.context.loadData,N=w.hasChildren();return _===!1?!1:_||!L&&!N||L&&I&&!N},w.isDisabled=function(){var S=w.props.disabled,_=w.props.context.disabled;return!!(_||S)},w.isCheckable=function(){var S=w.props.checkable,_=w.props.context.checkable;return!_||S===!1?!1:_},w.syncLoadData=function(S){var _=S.expanded,I=S.loading,L=S.loaded,N=w.props.context,R=N.loadData,D=N.onNodeLoad;if(I)return;R&&_&&!w.isLeaf()&&(!w.hasChildren()&&!L&&D(Object(a.b)(w.props)))},w.renderSwitcher=function(){var S=w.props,_=S.expanded,I=S.switcherIcon,L=w.props.context,N=L.prefixCls,R=L.switcherIcon,D=I||R;if(w.isLeaf())return o.createElement("span",{className:i()("".concat(N,"-switcher"),"".concat(N,"-switcher-noop"))},typeof D=="function"?D(Object(C.a)(Object(C.a)({},w.props),{},{isLeaf:!0})):D);var F=i()("".concat(N,"-switcher"),"".concat(N,"-switcher_").concat(_?s:u));return o.createElement("span",{onClick:w.onExpand,className:F},typeof D=="function"?D(Object(C.a)(Object(C.a)({},w.props),{},{isLeaf:!1})):D)},w.renderCheckbox=function(){var S=w.props,_=S.checked,I=S.halfChecked,L=S.disableCheckbox,N=w.props.context.prefixCls,R=w.isDisabled(),D=w.isCheckable();if(!D)return null;var F=typeof D!="boolean"?D:null;return o.createElement("span",{className:i()("".concat(N,"-checkbox"),_&&"".concat(N,"-checkbox-checked"),!_&&I&&"".concat(N,"-checkbox-indeterminate"),(R||L)&&"".concat(N,"-checkbox-disabled")),onClick:w.onCheck},F)},w.renderIcon=function(){var S=w.props.loading,_=w.props.context.prefixCls;return o.createElement("span",{className:i()("".concat(_,"-iconEle"),"".concat(_,"-icon__").concat(w.getNodeState()||"docu"),S&&"".concat(_,"-icon_loading"))})},w.renderSelector=function(){var S=w.state.dragNodeHighlight,_=w.props,I=_.title,L=_.selected,N=_.icon,R=_.loading,D=_.data,F=w.props.context,M=F.prefixCls,U=F.showIcon,B=F.icon,j=F.draggable,W=F.loadData,V=F.titleRender,z=w.isDisabled(),J="".concat(M,"-node-content-wrapper"),q;if(U){var de=N||B;q=de?o.createElement("span",{className:i()("".concat(M,"-iconEle"),"".concat(M,"-icon__customize"))},typeof de=="function"?de(w.props):de):w.renderIcon()}else W&&R&&(q=w.renderIcon());var ae;typeof I=="function"?ae=I(D):V?ae=V(D):ae=I;var ve=o.createElement("span",{className:"".concat(M,"-title")},ae);return o.createElement("span",{ref:w.setSelectHandle,title:typeof I=="string"?I:"",className:i()("".concat(J),"".concat(J,"-").concat(w.getNodeState()||"normal"),!z&&(L||S)&&"".concat(M,"-node-selected"),!z&&j&&"draggable"),draggable:!z&&j||void 0,"aria-grabbed":!z&&j||void 0,onMouseEnter:w.onMouseEnter,onMouseLeave:w.onMouseLeave,onContextMenu:w.onContextMenu,onClick:w.onSelectorClick,onDoubleClick:w.onSelectorDoubleClick,onDragStart:j?w.onDragStart:void 0},q,ve)},w}return Object(b.a)(T,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var S=this.props.selectable,_=this.props.context.selectable;return typeof S=="boolean"?S:_}},{key:"render",value:function(){var S,_=this.props,I=_.eventKey,L=_.className,N=_.style,R=_.dragOver,D=_.dragOverGapTop,F=_.dragOverGapBottom,M=_.isLeaf,U=_.isStart,B=_.isEnd,j=_.expanded,W=_.selected,V=_.checked,z=_.halfChecked,J=_.loading,q=_.domRef,de=_.active,ae=_.onMouseMove,ve=Object(x.a)(_,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),_e=this.props.context,Ie=_e.prefixCls,He=_e.filterTreeNode,me=_e.draggable,ke=_e.keyEntities,se=this.isDisabled(),te=Object(e.f)(ve),Ge=ke[I]||{},oe=Ge.level,Y=B[B.length-1];return o.createElement("div",Object.assign({ref:q,className:i()(L,"".concat(Ie,"-treenode"),(S={},Object(O.a)(S,"".concat(Ie,"-treenode-disabled"),se),Object(O.a)(S,"".concat(Ie,"-treenode-switcher-").concat(j?"open":"close"),!M),Object(O.a)(S,"".concat(Ie,"-treenode-checkbox-checked"),V),Object(O.a)(S,"".concat(Ie,"-treenode-checkbox-indeterminate"),z),Object(O.a)(S,"".concat(Ie,"-treenode-selected"),W),Object(O.a)(S,"".concat(Ie,"-treenode-loading"),J),Object(O.a)(S,"".concat(Ie,"-treenode-active"),de),Object(O.a)(S,"".concat(Ie,"-treenode-leaf-last"),Y),Object(O.a)(S,"drag-over",!se&&R),Object(O.a)(S,"drag-over-gap-top",!se&&D),Object(O.a)(S,"drag-over-gap-bottom",!se&&F),Object(O.a)(S,"filter-node",He&&He(Object(a.b)(this.props))),S)),style:N,onDragEnter:me?this.onDragEnter:void 0,onDragOver:me?this.onDragOver:void 0,onDragLeave:me?this.onDragLeave:void 0,onDrop:me?this.onDrop:void 0,onDragEnd:me?this.onDragEnd:void 0,onMouseMove:ae},te),o.createElement(t,{prefixCls:Ie,level:oe,isStart:U,isEnd:B}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),T}(o.Component),m=function(E){return o.createElement(n.a.Consumer,null,function(T){return o.createElement(p,Object.assign({},E,{context:T}))})};m.displayName="TreeNode",m.defaultProps={title:h},m.isTreeNode=1;var v=k.a=m},lrIw:function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("cDf5"),A=d.n(C),b=d("J4zp"),g=d.n(b),f=d("q1tI"),c=d.n(f),o=d("Zm9Q"),r=d("TSYQ"),i=d.n(r),n=d("BGR+"),e=d("2fM7"),l=d("H84U"),t=d("uaoM"),a=d("0n0R"),s=e.a.Option,u=e.a;function h(v){return v&&v.type&&(v.type.isSelectOption||v.type.isSelectOptGroup)}var p=function(y,E){var T=y.prefixCls,w=y.className,S=y.children,_=y.dataSource,I=Object(o.a)(S),L=f.useRef();f.useImperativeHandle(E,function(){return L.current});var N;if(I.length===1&&Object(a.b)(I[0])&&!h(I[0])){var R=g()(I,1);N=R[0]}var D=function(){return N},F;return I.length&&h(I[0])?F=S:F=_?_.map(function(M){if(Object(a.b)(M))return M;switch(A()(M)){case"string":return f.createElement(s,{key:M,value:M},M);case"object":{var U=M.value;return f.createElement(s,{key:U,value:U},M.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],f.useEffect(function(){Object(t.a)(!("dataSource"in y),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(t.a)(!N||!("size"in y),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),f.createElement(l.a,null,function(M){var U=M.getPrefixCls,B=U("select",T);return f.createElement(u,x()({ref:L},Object(n.default)(y,["dataSource"]),{prefixCls:B,className:i()(w,"".concat(B,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:D}),F)})},m=f.forwardRef(p);m.Option=s,k.a=m},lwQL:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("9wZj"),A=d("c8qY"),b=d("SgGq"),g=d("Ae+d"),f=d("xSat"),c=f.onIrrelevantElement,o=d("IwbS"),r=d("SA8n"),i=d("U/Mo"),n=i.getNodeGlobalScale,e="__focusNodeAdjacency",l="__unfocusNodeAdjacency",t=["itemStyle","opacity"],a=["lineStyle","opacity"];function s(m,v){var y=m.getVisual("opacity");return y!=null?y:m.getModel().get(v)}function u(m,v,y){var E=m.getGraphicEl(),T=s(m,v);y!=null&&(T==null&&(T=1),T*=y),E.downplay&&E.downplay(),E.traverse(function(w){if(!w.isGroup){var S=w.lineLabelOriginalOpacity;(S==null||y!=null)&&(S=T),w.setStyle("opacity",S)}})}function h(m,v){var y=s(m,v),E=m.getGraphicEl();E.traverse(function(T){!T.isGroup&&T.setStyle("opacity",y)}),E.highlight&&E.highlight()}var p=O.extendChartView({type:"graph",init:function(m,v){var y=new C,E=new A,T=this.group;this._controller=new b(v.getZr()),this._controllerHost={target:T},T.add(y.group),T.add(E.group),this._symbolDraw=y,this._lineDraw=E,this._firstRender=!0},render:function(m,v,y){var E=this,T=m.coordinateSystem;this._model=m;var w=this._symbolDraw,S=this._lineDraw,_=this.group;if(T.type==="view"){var I={position:T.position,scale:T.scale};this._firstRender?_.attr(I):o.updateProps(_,I,m)}r(m.getGraph(),n(m));var L=m.getData();w.updateData(L);var N=m.getEdgeData();S.updateData(N),this._updateNodeAndLinkScale(),this._updateController(m,v,y),clearTimeout(this._layoutTimeout);var R=m.forceLayout,D=m.get("force.layoutAnimation");R&&this._startForceLayoutIteration(R,D),L.eachItemGraphicEl(function(B,j){var W=L.getItemModel(j);B.off("drag").off("dragend");var V=W.get("draggable");V&&B.on("drag",function(){R&&(R.warmUp(),!this._layouting&&this._startForceLayoutIteration(R,D),R.setFixed(j),L.setItemLayout(j,B.position))},this).on("dragend",function(){R&&R.setUnfixed(j)},this),B.setDraggable(V&&R),B[e]&&B.off("mouseover",B[e]),B[l]&&B.off("mouseout",B[l]),W.get("focusNodeAdjacency")&&(B.on("mouseover",B[e]=function(){E._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:m.id,dataIndex:B.dataIndex})}),B.on("mouseout",B[l]=function(){E._dispatchUnfocus(y)}))},this),L.graph.eachEdge(function(B){var j=B.getGraphicEl();j[e]&&j.off("mouseover",j[e]),j[l]&&j.off("mouseout",j[l]),B.getModel().get("focusNodeAdjacency")&&(j.on("mouseover",j[e]=function(){E._clearTimer(),y.dispatchAction({type:"focusNodeAdjacency",seriesId:m.id,edgeDataIndex:B.dataIndex})}),j.on("mouseout",j[l]=function(){E._dispatchUnfocus(y)}))});var F=m.get("layout")==="circular"&&m.get("circular.rotateLabel"),M=L.getLayout("cx"),U=L.getLayout("cy");L.eachItemGraphicEl(function(B,j){var W=L.getItemModel(j),V=W.get("label.rotate")||0,z=B.getSymbolPath();if(F){var J=L.getItemLayout(j),q=Math.atan2(J[1]-U,J[0]-M);q<0&&(q=Math.PI*2+q);var de=J[0]<M;de&&(q=q-Math.PI);var ae=de?"left":"right";o.modifyLabelStyle(z,{textRotation:-q,textPosition:ae,textOrigin:"center"},{textPosition:ae})}else o.modifyLabelStyle(z,{textRotation:V*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(m,v){var y=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){y._unfocusDelayTimer=null,m.dispatchAction({type:"unfocusNodeAdjacency",seriesId:y._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(m,v,y,E){var T=m.getData(),w=T.graph,S=E.dataIndex,_=E.edgeDataIndex,I=w.getNodeByIndex(S),L=w.getEdgeByIndex(_);if(!I&&!L)return;w.eachNode(function(N){u(N,t,.1)}),w.eachEdge(function(N){u(N,a,.1)}),I&&(h(I,t),x.each(I.edges,function(N){if(N.dataIndex<0)return;h(N,a),h(N.node1,t),h(N.node2,t)})),L&&(h(L,a),h(L.node1,t),h(L.node2,t))},unfocusNodeAdjacency:function(m,v,y,E){var T=m.getData().graph;T.eachNode(function(w){u(w,t)}),T.eachEdge(function(w){u(w,a)})},_startForceLayoutIteration:function(m,v){var y=this;(function E(){m.step(function(T){y.updateLayout(y._model),(y._layouting=!T)&&(v?y._layoutTimeout=setTimeout(E,16):E())})})()},_updateController:function(m,v,y){var E=this._controller,T=this._controllerHost,w=this.group;if(E.setPointerChecker(function(S,_,I){var L=w.getBoundingRect();return L.applyTransform(w.transform),L.contain(_,I)&&!c(S,y,m)}),m.coordinateSystem.type!=="view"){E.disable();return}E.enable(m.get("roam")),T.zoomLimit=m.get("scaleLimit"),T.zoom=m.coordinateSystem.getZoom(),E.off("pan").off("zoom").on("pan",function(S){g.updateViewOnPan(T,S.dx,S.dy),y.dispatchAction({seriesId:m.id,type:"graphRoam",dx:S.dx,dy:S.dy})}).on("zoom",function(S){g.updateViewOnZoom(T,S.scale,S.originX,S.originY),y.dispatchAction({seriesId:m.id,type:"graphRoam",zoom:S.scale,originX:S.originX,originY:S.originY}),this._updateNodeAndLinkScale(),r(m.getGraph(),n(m)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var m=this._model,v=m.getData(),y=n(m),E=[y,y];v.eachItemGraphicEl(function(T,w){T.attr("scale",E)})},updateLayout:function(m){r(m.getGraph(),n(m)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(m,v){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});H.exports=p},m9t5:function(H,k,d){var O=d("KCsZ"),x=O([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),C={getAreaStyle:function(A,b){return x(this,A,b)}};H.exports=C},mFDi:function(H,k,d){var O=d("QBsz"),x=d("Fofx"),C=O.applyTransform,A=Math.min,b=Math.max;function g(c,o,r,i){r<0&&(c=c+r,r=-r),i<0&&(o=o+i,i=-i),this.x=c,this.y=o,this.width=r,this.height=i}g.prototype={constructor:g,union:function(o){var r=A(o.x,this.x),i=A(o.y,this.y);this.width=b(o.x+o.width,this.x+this.width)-r,this.height=b(o.y+o.height,this.y+this.height)-i,this.x=r,this.y=i},applyTransform:function(){var c=[],o=[],r=[],i=[];return function(n){if(!n)return;c[0]=r[0]=this.x,c[1]=i[1]=this.y,o[0]=i[0]=this.x+this.width,o[1]=r[1]=this.y+this.height,C(c,c,n),C(o,o,n),C(r,r,n),C(i,i,n),this.x=A(c[0],o[0],r[0],i[0]),this.y=A(c[1],o[1],r[1],i[1]);var e=b(c[0],o[0],r[0],i[0]),l=b(c[1],o[1],r[1],i[1]);this.width=e-this.x,this.height=l-this.y}}(),calculateTransform:function(o){var r=this,i=o.width/r.width,n=o.height/r.height,e=x.create();return x.translate(e,e,[-r.x,-r.y]),x.scale(e,e,[i,n]),x.translate(e,e,[o.x,o.y]),e},intersect:function(o){if(!o)return!1;o instanceof g||(o=g.create(o));var r=this,i=r.x,n=r.x+r.width,e=r.y,l=r.y+r.height,t=o.x,a=o.x+o.width,s=o.y,u=o.y+o.height;return!(n<t||a<i||l<s||u<e)},contain:function(o,r){var i=this;return o>=i.x&&o<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},clone:function(){return new g(this.x,this.y,this.width,this.height)},copy:function(o){this.x=o.x,this.y=o.y,this.width=o.width,this.height=o.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},g.create=function(c){return new g(c.x,c.y,c.width,c.height)};var f=g;H.exports=f},mHUz:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.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};k.default=O},mLcG:function(H,k){var d=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(O){setTimeout(O,16)};H.exports=d},"mO/d":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("I9Y+"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},mOdp:function(H,k,d){var O=d("bYtY"),x=O.createHashMap;function C(A){return{getTargetSeries:function(b){var g={},f=x();return b.eachSeriesByType(A,function(c){c.__paletteScope=g,f.set(c.uid,c)}),f},reset:function(b,g){var f=b.getRawData(),c={},o=b.getData();o.each(function(r){var i=o.getRawIndex(r);c[i]=r}),f.each(function(r){var i=c[r],n=i!=null&&o.getItemVisual(i,"color",!0),e=i!=null&&o.getItemVisual(i,"borderColor",!0),l;if((!n||!e)&&(l=f.getItemModel(r)),!n){var t=l.get("itemStyle.color")||b.getColorFromPalette(f.getName(r)||r+"",b.__paletteScope,f.count());i!=null&&o.setItemVisual(i,"color",t)}if(!e){var a=l.get("itemStyle.borderColor");i!=null&&o.setItemVisual(i,"borderColor",a)}})}}}H.exports=C},mTgk:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("mHUz"));function x(c){return c&&c.__esModule?c:{default:c}}var C={};function A(c,o){if(o===void 0)throw new Error('Undefined keysym for key "'+c+'"');if(c in C)throw new Error('Duplicate entry for key "'+c+'"');C[c]=[o,o,o,o]}function b(c,o,r){if(o===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]=[o,o,r,o]}function g(c,o,r){if(o===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]=[o,o,o,r]}b("Alt",O.default.XK_Alt_L,O.default.XK_Alt_R),A("AltGraph",O.default.XK_ISO_Level3_Shift),A("CapsLock",O.default.XK_Caps_Lock),b("Control",O.default.XK_Control_L,O.default.XK_Control_R),b("Meta",O.default.XK_Super_L,O.default.XK_Super_R),A("NumLock",O.default.XK_Num_Lock),A("ScrollLock",O.default.XK_Scroll_Lock),b("Shift",O.default.XK_Shift_L,O.default.XK_Shift_R),g("Enter",O.default.XK_Return,O.default.XK_KP_Enter),A("Tab",O.default.XK_Tab),g(" ",O.default.XK_space,O.default.XK_KP_Space),g("ArrowDown",O.default.XK_Down,O.default.XK_KP_Down),g("ArrowUp",O.default.XK_Up,O.default.XK_KP_Up),g("ArrowLeft",O.default.XK_Left,O.default.XK_KP_Left),g("ArrowRight",O.default.XK_Right,O.default.XK_KP_Right),g("End",O.default.XK_End,O.default.XK_KP_End),g("Home",O.default.XK_Home,O.default.XK_KP_Home),g("PageDown",O.default.XK_Next,O.default.XK_KP_Next),g("PageUp",O.default.XK_Prior,O.default.XK_KP_Prior),A("Backspace",O.default.XK_BackSpace),g("Clear",O.default.XK_Clear,O.default.XK_KP_Begin),A("Copy",O.default.XF86XK_Copy),A("Cut",O.default.XF86XK_Cut),g("Delete",O.default.XK_Delete,O.default.XK_KP_Delete),g("Insert",O.default.XK_Insert,O.default.XK_KP_Insert),A("Paste",O.default.XF86XK_Paste),A("Redo",O.default.XK_Redo),A("Undo",O.default.XK_Undo),A("Cancel",O.default.XK_Cancel),A("ContextMenu",O.default.XK_Menu),A("Escape",O.default.XK_Escape),A("Execute",O.default.XK_Execute),A("Find",O.default.XK_Find),A("Help",O.default.XK_Help),A("Pause",O.default.XK_Pause),A("Select",O.default.XK_Select),A("ZoomIn",O.default.XF86XK_ZoomIn),A("ZoomOut",O.default.XF86XK_ZoomOut),A("BrightnessDown",O.default.XF86XK_MonBrightnessDown),A("BrightnessUp",O.default.XF86XK_MonBrightnessUp),A("Eject",O.default.XF86XK_Eject),A("LogOff",O.default.XF86XK_LogOff),A("Power",O.default.XF86XK_PowerOff),A("PowerOff",O.default.XF86XK_PowerDown),A("PrintScreen",O.default.XK_Print),A("Hibernate",O.default.XF86XK_Hibernate),A("Standby",O.default.XF86XK_Standby),A("WakeUp",O.default.XF86XK_WakeUp),A("AllCandidates",O.default.XK_MultipleCandidate),A("Alphanumeric",O.default.XK_Eisu_Shift),A("CodeInput",O.default.XK_Codeinput),A("Compose",O.default.XK_Multi_key),A("Convert",O.default.XK_Henkan),A("GroupFirst",O.default.XK_ISO_First_Group),A("GroupLast",O.default.XK_ISO_Last_Group),A("GroupNext",O.default.XK_ISO_Next_Group),A("GroupPrevious",O.default.XK_ISO_Prev_Group),A("NonConvert",O.default.XK_Muhenkan),A("PreviousCandidate",O.default.XK_PreviousCandidate),A("SingleCandidate",O.default.XK_SingleCandidate),A("HangulMode",O.default.XK_Hangul),A("HanjaMode",O.default.XK_Hangul_Hanja),A("JunjuaMode",O.default.XK_Hangul_Jeonja),A("Eisu",O.default.XK_Eisu_toggle),A("Hankaku",O.default.XK_Hankaku),A("Hiragana",O.default.XK_Hiragana),A("HiraganaKatakana",O.default.XK_Hiragana_Katakana),A("KanaMode",O.default.XK_Kana_Shift),A("KanjiMode",O.default.XK_Kanji),A("Katakana",O.default.XK_Katakana),A("Romaji",O.default.XK_Romaji),A("Zenkaku",O.default.XK_Zenkaku),A("ZenkakuHanaku",O.default.XK_Zenkaku_Hankaku),A("F1",O.default.XK_F1),A("F2",O.default.XK_F2),A("F3",O.default.XK_F3),A("F4",O.default.XK_F4),A("F5",O.default.XK_F5),A("F6",O.default.XK_F6),A("F7",O.default.XK_F7),A("F8",O.default.XK_F8),A("F9",O.default.XK_F9),A("F10",O.default.XK_F10),A("F11",O.default.XK_F11),A("F12",O.default.XK_F12),A("F13",O.default.XK_F13),A("F14",O.default.XK_F14),A("F15",O.default.XK_F15),A("F16",O.default.XK_F16),A("F17",O.default.XK_F17),A("F18",O.default.XK_F18),A("F19",O.default.XK_F19),A("F20",O.default.XK_F20),A("F21",O.default.XK_F21),A("F22",O.default.XK_F22),A("F23",O.default.XK_F23),A("F24",O.default.XK_F24),A("F25",O.default.XK_F25),A("F26",O.default.XK_F26),A("F27",O.default.XK_F27),A("F28",O.default.XK_F28),A("F29",O.default.XK_F29),A("F30",O.default.XK_F30),A("F31",O.default.XK_F31),A("F32",O.default.XK_F32),A("F33",O.default.XK_F33),A("F34",O.default.XK_F34),A("F35",O.default.XK_F35),A("Close",O.default.XF86XK_Close),A("MailForward",O.default.XF86XK_MailForward),A("MailReply",O.default.XF86XK_Reply),A("MailSend",O.default.XF86XK_Send),A("MediaFastForward",O.default.XF86XK_AudioForward),A("MediaPause",O.default.XF86XK_AudioPause),A("MediaPlay",O.default.XF86XK_AudioPlay),A("MediaRecord",O.default.XF86XK_AudioRecord),A("MediaRewind",O.default.XF86XK_AudioRewind),A("MediaStop",O.default.XF86XK_AudioStop),A("MediaTrackNext",O.default.XF86XK_AudioNext),A("MediaTrackPrevious",O.default.XF86XK_AudioPrev),A("New",O.default.XF86XK_New),A("Open",O.default.XF86XK_Open),A("Print",O.default.XK_Print),A("Save",O.default.XF86XK_Save),A("SpellCheck",O.default.XF86XK_Spell),A("AudioVolumeDown",O.default.XF86XK_AudioLowerVolume),A("AudioVolumeUp",O.default.XF86XK_AudioRaiseVolume),A("AudioVolumeMute",O.default.XF86XK_AudioMute),A("MicrophoneVolumeMute",O.default.XF86XK_AudioMicMute),A("LaunchApplication1",O.default.XF86XK_MyComputer),A("LaunchApplication2",O.default.XF86XK_Calculator),A("LaunchCalendar",O.default.XF86XK_Calendar),A("LaunchMail",O.default.XF86XK_Mail),A("LaunchMediaPlayer",O.default.XF86XK_AudioMedia),A("LaunchMusicPlayer",O.default.XF86XK_Music),A("LaunchPhone",O.default.XF86XK_Phone),A("LaunchScreenSaver",O.default.XF86XK_ScreenSaver),A("LaunchSpreadsheet",O.default.XF86XK_Excel),A("LaunchWebBrowser",O.default.XF86XK_WWW),A("LaunchWebCam",O.default.XF86XK_WebCam),A("LaunchWordProcessor",O.default.XF86XK_Word),A("BrowserBack",O.default.XF86XK_Back),A("BrowserFavorites",O.default.XF86XK_Favorites),A("BrowserForward",O.default.XF86XK_Forward),A("BrowserHome",O.default.XF86XK_HomePage),A("BrowserRefresh",O.default.XF86XK_Refresh),A("BrowserSearch",O.default.XF86XK_Search),A("BrowserStop",O.default.XF86XK_Stop),A("Dimmer",O.default.XF86XK_BrightnessAdjust),A("MediaAudioTrack",O.default.XF86XK_AudioCycleTrack),A("RandomToggle",O.default.XF86XK_AudioRandomPlay),A("SplitScreenToggle",O.default.XF86XK_SplitScreen),A("Subtitle",O.default.XF86XK_Subtitle),A("VideoModeNext",O.default.XF86XK_Next_VMode),g("=",O.default.XK_equal,O.default.XK_KP_Equal),g("+",O.default.XK_plus,O.default.XK_KP_Add),g("-",O.default.XK_minus,O.default.XK_KP_Subtract),g("*",O.default.XK_asterisk,O.default.XK_KP_Multiply),g("/",O.default.XK_slash,O.default.XK_KP_Divide),g(".",O.default.XK_period,O.default.XK_KP_Decimal),g(",",O.default.XK_comma,O.default.XK_KP_Separator),g("0",O.default.XK_0,O.default.XK_KP_0),g("1",O.default.XK_1,O.default.XK_KP_1),g("2",O.default.XK_2,O.default.XK_KP_2),g("3",O.default.XK_3,O.default.XK_KP_3),g("4",O.default.XK_4,O.default.XK_KP_4),g("5",O.default.XK_5,O.default.XK_KP_5),g("6",O.default.XK_6,O.default.XK_KP_6),g("7",O.default.XK_7,O.default.XK_KP_7),g("8",O.default.XK_8,O.default.XK_KP_8),g("9",O.default.XK_9,O.default.XK_KP_9);var f=C;k.default=f},mYwL:function(H,k,d){var O=d("bYtY"),x=d("IwbS"),C=d("6GrX"),A=Math.PI;function b(g,f){f=f||{},O.defaults(f,{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 x.Group,o=new x.Rect({style:{fill:f.maskColor},zlevel:f.zlevel,z:1e4});c.add(o);var r=f.fontSize+" sans-serif",i=new x.Rect({style:{fill:"none",text:f.text,font:r,textPosition:"right",textDistance:10,textFill:f.textColor},zlevel:f.zlevel,z:10001});if(c.add(i),f.showSpinner){var n=new x.Arc({shape:{startAngle:-A/2,endAngle:-A/2+.1,r:f.spinnerRadius},style:{stroke:f.color,lineCap:"round",lineWidth:f.lineWidth},zlevel:f.zlevel,z:10001});n.animateShape(!0).when(1e3,{endAngle:A*3/2}).start("circularInOut"),n.animateShape(!0).when(1e3,{startAngle:A*3/2}).delay(300).start("circularInOut"),c.add(n)}return c.resize=function(){var e=C.getWidth(f.text,r),l=f.showSpinner?f.spinnerRadius:0,t=(g.getWidth()-l*2-(f.showSpinner&&e?10:0)-e)/2-(f.showSpinner?0:e/2),a=g.getHeight()/2;f.showSpinner&&n.setShape({cx:t,cy:a}),i.setShape({x:t-l,y:a-l,width:l*2,height:l*2}),o.setShape({x:0,y:0,width:g.getWidth(),height:g.getHeight()})},c.resize(),c}H.exports=b},mdZa:function(H,k,d){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(x,C){"use strict";if(x==null)throw new TypeError("Cannot convert undefined or null to object");for(var A=Object(x),b=1;b<arguments.length;b++){var g=arguments[b];if(g!=null)for(var f in g)Object.prototype.hasOwnProperty.call(g,f)&&(A[f]=g[f])}return A},writable:!0,configurable:!0}),function(){function O(x,C){C=C||{bubbles:!1,cancelable:!1,detail:void 0};var A=document.createEvent("CustomEvent");return A.initCustomEvent(x,C.bubbles,C.cancelable,C.detail),A}O.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=O)}(),Number.isInteger=Number.isInteger||function(x){return typeof x=="number"&&isFinite(x)&&Math.floor(x)===x}},mr32:function(H,k,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),b=d("J4zp"),g=d.n(b),f=d("q1tI"),c=d("TSYQ"),o=d.n(c),r=d("BGR+"),i=d("V/uB"),n=d.n(i),e=d("H84U"),l=function(T,w){var S={};for(var _ in T)Object.prototype.hasOwnProperty.call(T,_)&&w.indexOf(_)<0&&(S[_]=T[_]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,_=Object.getOwnPropertySymbols(T);I<_.length;I++)w.indexOf(_[I])<0&&Object.prototype.propertyIsEnumerable.call(T,_[I])&&(S[_[I]]=T[_[I]]);return S},t=function(w){var S,_=f.useContext(e.b),I=_.getPrefixCls,L=function(j){var W=w.checked,V=w.onChange,z=w.onClick;V&&V(!W),z&&z(j)},N=w.prefixCls,R=w.className,D=w.checked,F=l(w,["prefixCls","className","checked"]),M=I("tag",N),U=o()(M,(S={},x()(S,"".concat(M,"-checkable"),!0),x()(S,"".concat(M,"-checkable-checked"),D),S),R);return delete F.onChange,f.createElement("span",A()({},F,{className:U,onClick:L}))},a=t,s=d("09Wf"),u=d("g0mS"),h=function(T,w){var S={};for(var _ in T)Object.prototype.hasOwnProperty.call(T,_)&&w.indexOf(_)<0&&(S[_]=T[_]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,_=Object.getOwnPropertySymbols(T);I<_.length;I++)w.indexOf(_[I])<0&&Object.prototype.propertyIsEnumerable.call(T,_[I])&&(S[_[I]]=T[_[I]]);return S},p=new RegExp("^(".concat(s.a.join("|"),")(-inverse)?$")),m=new RegExp("^(".concat(s.b.join("|"),")$")),v=function(w,S){var _,I=w.prefixCls,L=w.className,N=w.style,R=w.children,D=w.icon,F=w.color,M=w.onClose,U=w.closeIcon,B=w.closable,j=B===void 0?!1:B,W=h(w,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),V=f.useContext(e.b),z=V.getPrefixCls,J=V.direction,q=f.useState(!0),de=g()(q,2),ae=de[0],ve=de[1];f.useEffect(function(){"visible"in W&&ve(W.visible)},[W.visible]);var _e=function(){return F?p.test(F)||m.test(F):!1},Ie=A()({backgroundColor:F&&!_e()?F:void 0},N),He=_e(),me=z("tag",I),ke=o()(me,(_={},x()(_,"".concat(me,"-").concat(F),He),x()(_,"".concat(me,"-has-color"),F&&!He),x()(_,"".concat(me,"-hidden"),!ae),x()(_,"".concat(me,"-rtl"),J==="rtl"),_),L),se=function(ce){if(ce.stopPropagation(),M&&M(ce),ce.defaultPrevented)return;"visible"in W||ve(!1)},te=function(){return j?U?f.createElement("div",{className:"".concat(me,"-close-icon"),onClick:se},U):f.createElement(n.a,{className:"".concat(me,"-close-icon"),onClick:se}):null},Ge="onClick"in W||R&&R.type==="a",oe=Object(r.default)(W,["visible"]),Y=D||null,G=Y?f.createElement(f.Fragment,null,Y,f.createElement("span",null,R)):R,Q=f.createElement("span",A()({},oe,{ref:S,className:ke,style:Ie}),G,te());return Ge?f.createElement(u.a,null,Q):Q},y=f.forwardRef(v);y.displayName="Tag",y.CheckableTag=a;var E=k.a=y},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(H){if(!0)module.exports=H();else var k})(function(){var define,module,exports;return function(){function H(k,d,O){function x(b,g){if(!d[b]){if(!k[b]){var f=typeof require=="function"&&require;if(!g&&f)return require(b,!0);if(C)return C(b,!0);var c=new Error("Cannot find module '"+b+"'");throw c.code="MODULE_NOT_FOUND",c}var o=d[b]={exports:{}};k[b][0].call(o.exports,function(r){var i=k[b][1][r];return x(i||r)},o,o.exports,H,k,d,O)}return d[b].exports}for(var C=typeof require=="function"&&require,A=0;A<O.length;A++)x(O[A]);return x}return H}()({1:[function(H,k,d){"use strict";var O=H("./browser/client");O.Buffer=H("buffer").Buffer,O.urllib=H("../shims/xhr"),O.version=H("./browser/version").version,k.exports=O},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(H,k,d){(function(O,x){"use strict";var C=H("babel-runtime/core-js/promise"),A=o(C),b=H("babel-runtime/regenerator"),g=o(b),f=H("babel-runtime/core-js/object/assign"),c=o(f);function o(D){return D&&D.__esModule?D:{default:D}}var r=H("debug")("ali-oss"),i=H("copy-to"),n=H("xml2js"),e=H("agentkeepalive"),l=H("merge-descriptors"),t=H("url"),a=H("is-type-of"),s=H("platform"),u=H("utility"),h=H("urllib"),p=H("./version"),m=H("bowser"),v=H("../common/signUtils"),y=H("../common/utils/isIP"),E=y.isIP,T=H("../common/client/initOptions"),w=H("../common/utils/createRequest"),S=w.createRequest,_=new e;function I(){var D=s.name,F=s.version;D&&D.toLowerCase&&D.toLowerCase()==="ie"&&F.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function L(){return location&&location.protocol==="https:"}function N(D,F){if(I(),!(this instanceof N))return new N(D,F);D&&D.inited?this.options=D:this.options=N.initOptions(D),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=h,this.agent=this.options.agent||_),this.ctx=F,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}k.exports=N,N.initOptions=function(F){F.stsToken||console.warn("Please use STS Token for safety, see more details at https://help.aliyun.com/document_detail/32077.html");var M=(0,c.default)({secure:L(),useFetch:!1},F);return T(M)};var R=N.prototype;R.debug=r,l(R,H("./object")),l(R,H("../common/bucket/getBucketWebsite")),l(R,H("../common/bucket/putBucketWebsite")),l(R,H("../common/bucket/deleteBucketWebsite")),l(R,H("../common/bucket/getBucketLifecycle")),l(R,H("../common/bucket/putBucketLifecycle")),l(R,H("../common/bucket/deleteBucketLifecycle")),l(R,H("../common/bucket/putBucketVersioning")),l(R,H("../common/bucket/getBucketVersioning")),l(R,H("./managed-upload")),l(R,H("../common/multipart")),l(R,H("../common/parallel")),R.signature=function(F){return this.debug("authorization stringToSign: %s",F,"info"),v.computeSignature(this.options.accessKeySecret,F)},R.authorization=function(F,M,U,B){var j=v.buildCanonicalString(F.toUpperCase(),M,{headers:B,parameters:U});return v.authorization(this.options.accessKeyId,this.options.accessKeySecret,j)},R.request=function(F){var M,U,B,j,W,V;return g.default.async(function(J){for(;;)switch(J.prev=J.next){case 0:return M=S.call(this,F),this.options.useFetch||(M.params.mode="disable-fetch"),U=void 0,B=void 0,j=!!F.stream,J.prev=5,J.next=8,g.default.awrap(this.urllib.request(M.url,M.params));case 8:U=J.sent,this.debug("response %s %s, got %s, headers: %j",F.method,M.url,U.status,U.headers,"info"),J.next=15;break;case 12:J.prev=12,J.t0=J.catch(5),B=J.t0;case 15:if(W=void 0,!(U&&F.successStatuses&&F.successStatuses.indexOf(U.status)===-1)){J.next=28;break}return J.next=19,g.default.awrap(this.requestError(U));case 19:if(W=J.sent,!(W.code==="RequestTimeTooSkewed"&&!j)){J.next=25;break}return this.options.amendTimeSkewed=+new Date(W.serverTime)-new Date,J.next=24,g.default.awrap(this.request(F));case 24:return J.abrupt("return",J.sent);case 25:W.params=F,J.next=32;break;case 28:if(!B){J.next=32;break}return J.next=31,g.default.awrap(this.requestError(B));case 31:W=J.sent;case 32:if(!W){J.next=34;break}throw W;case 34:if(!F.xmlResponse){J.next=39;break}return J.next=37,g.default.awrap(this.parseXML(U.data));case 37:V=J.sent,U.data=V;case 39:return J.abrupt("return",U);case 40:case"end":return J.stop()}},null,this,[[5,12]])},R._getResource=function(F){var M="/";return F.bucket&&(M+=F.bucket+"/"),F.object&&(M+=F.object),M},R._isIP=E,R._escape=function(F){return u.encodeURIComponent(F).replace(/%2F/g,"/")},R._getReqUrl=function(F){var M={};i(this.options.endpoint).to(M);var U=this._isIP(M.hostname),B=this.options.cname;F.bucket&&!B&&!U&&(M.host=F.bucket+"."+M.host);var j="/";F.bucket&&U&&(j+=F.bucket+"/"),F.object&&(j+=this._escape(F.object).replace(/\+/g,"%2B")),M.pathname=j;var W={};if(F.query&&l(W,F.query),F.subres){var V={};a.string(F.subres)?V[F.subres]="":a.array(F.subres)?F.subres.forEach(function(z){V[z]=""}):V=F.subres,l(W,V)}return M.query=W,t.format(M)},R._getUserAgent=function(){var F=x&&x.browser?"js":"nodejs",M="aliyun-sdk-"+F+"/"+p.version,U=s.description;return!U&&x&&(U="Node.js "+x.version.slice(1)+" on "+x.platform+" "+x.arch),this._checkUserAgent(M+" "+U)},R._checkUserAgent=function(F){var M=F.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return M},R.checkBrowserAndVersion=function(F,M){return m.name===F&&m.version.split(".")[0]===M},R.parseXML=function(F){return new A.default(function(M,U){O.isBuffer(F)&&(F=F.toString()),n.parseString(F,{explicitRoot:!1,explicitArray:!1},function(B,j){B?U(B):M(j)})})},R.requestError=function(F){var M,U,B,j;return g.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:if(M=null,!(!F.data||!F.data.length)){V.next=5;break}F.status===-1||F.status===-2?(M=new Error(F.message),M.name=F.name,M.status=F.status,M.code=F.name):(F.status===404?(M=new Error("Object not exists"),M.name="NoSuchKeyError",M.status=404,M.code="NoSuchKey"):F.status===412?(M=new Error("Pre condition failed"),M.name="PreconditionFailedError",M.status=412,M.code="PreconditionFailed"):(M=new Error("Unknow error, status: "+F.status),M.name="UnknowError",M.status=F.status),M.requestId=F.headers["x-oss-request-id"],M.host=""),V.next=33;break;case 5:return U=String(F.data),this.debug("request response error data: %s",U,"error"),B=void 0,V.prev=8,V.next=11,g.default.awrap(this.parseXML(U));case 11:if(V.t0=V.sent,V.t0){V.next=14;break}V.t0={};case 14:B=V.t0,V.next=24;break;case 17:return V.prev=17,V.t1=V.catch(8),this.debug(U,"error"),V.t1.message+=`
raw xml: `+U,V.t1.status=F.status,V.t1.requestId=F.headers["x-oss-request-id"],V.abrupt("return",V.t1);case 24:j=B.Message||"unknow request error, status: "+F.status,B.Condition&&(j+=" (condition: "+B.Condition+")"),M=new Error(j),M.name=B.Code?B.Code+"Error":"UnknowError",M.status=F.status,M.code=B.Code,M.requestId=B.RequestId,M.hostId=B.HostId,M.serverTime=B.ServerTime;case 33:return this.debug("generate error %j",M,"error"),V.abrupt("return",M);case 35:case"end":return V.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:H("../../node_modules/is-buffer/index.js")},H("_process"))},{"../../node_modules/is-buffer/index.js":197,"../common/bucket/deleteBucketLifecycle":6,"../common/bucket/deleteBucketWebsite":7,"../common/bucket/getBucketLifecycle":8,"../common/bucket/getBucketVersioning":9,"../common/bucket/getBucketWebsite":10,"../common/bucket/putBucketLifecycle":11,"../common/bucket/putBucketVersioning":12,"../common/bucket/putBucketWebsite":13,"../common/client/initOptions":15,"../common/multipart":18,"../common/parallel":33,"../common/signUtils":34,"../common/utils/createRequest":38,"../common/utils/isIP":45,"./managed-upload":3,"./object":4,"./version":5,_process:208,agentkeepalive:48,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,bowser:70,"copy-to":76,debug:288,"is-type-of":289,"merge-descriptors":200,platform:206,url:238,urllib:291,utility:290,xml2js:249}],3:[function(H,k,d){(function(O){"use strict";var x=H("babel-runtime/core-js/array/from"),C=c(x),A=H("babel-runtime/core-js/promise"),b=c(A),g=H("babel-runtime/regenerator"),f=c(g);function c(v){return v&&v.__esModule?v:{default:v}}var o=H("is-type-of"),r=H("util"),i=H("path"),n=H("mime"),e=H("copy-to"),l=H("../common/utils/isBlob"),t=l.isBlob,a=H("../common/utils/isFile"),s=a.isFile,u=d;u.multipartUpload=function(y,E,T){var w,S,_,I,L,N,R,D,F;return f.default.async(function(U){for(;;)switch(U.prev=U.next){case 0:if(this.resetCancelFlag(),T=T||{},!(T.checkpoint&&T.checkpoint.uploadId)){U.next=6;break}return U.next=5,f.default.awrap(this._resumeMultipart(T.checkpoint,T));case 5:return U.abrupt("return",U.sent);case 6:return w=100*1024,T.mime||(s(E)?T.mime=n.getType(i.extname(E.name)):t(E)?T.mime=E.type:T.mime=n.getType(i.extname(E))),T.headers=T.headers||{},this._convertMetaToHeaders(T.meta,T.headers),U.next=12,f.default.awrap(this._getFileSize(E));case 12:if(S=U.sent,!(S<w)){U.next=25;break}return _=this._createStream(E,0,S),T.contentLength=S,U.next=18,f.default.awrap(this.putStream(y,_,T));case 18:if(I=U.sent,!(T&&T.progress)){U.next=22;break}return U.next=22,f.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),U.abrupt("return",L);case 25:if(!(T.partSize&&!(parseInt(T.partSize,10)===T.partSize))){U.next=27;break}throw new Error("partSize must be int number");case 27:if(!(T.partSize&&T.partSize<w)){U.next=29;break}throw new Error("partSize must not be smaller than "+w);case 29:return U.next=31,f.default.awrap(this.initMultipartUpload(y,T));case 31:if(N=U.sent,R=N.uploadId,D=this._getPartSize(S,T.partSize),F={file:E,name:y,fileSize:S,partSize:D,uploadId:R,doneParts:[]},!(T&&T.progress)){U.next=38;break}return U.next=38,f.default.awrap(T.progress(0,F,N.res));case 38:return U.next=40,f.default.awrap(this._resumeMultipart(F,T));case 40:return U.abrupt("return",U.sent);case 41:case"end":return U.stop()}},null,this)},u._resumeMultipart=function(y,E){var T,w,S,_,I,L,N,R,D,F,M,U,B,j,W,V,z,J;return f.default.async(function(de){for(;;)switch(de.prev=de.next){case 0:if(T=this,!this.isCancel()){de.next=3;break}throw this._makeCancelEvent();case 3:return w=y.file,S=y.fileSize,_=y.partSize,I=y.uploadId,L=y.doneParts,N=y.name,R=[],L.length>0&&e(L).to(R),D=this._divideParts(S,_),F=D.length,M=!1,U=function(ve,_e){var Ie=this;return new b.default(function(me,ke){var se,te,Ge,oe;return f.default.async(function(G){for(;;)switch(G.prev=G.next){case 0:if(G.prev=0,ve.isCancel()){G.next=18;break}return se=D[_e-1],te={stream:ve._createStream(w,se.start,se.end),size:se.end-se.start},G.next=6,f.default.awrap(ve._uploadPart(N,I,_e,te));case 6:if(Ge=G.sent,!(!ve.isCancel()&&!M)){G.next=15;break}if(y.doneParts.push({number:_e,etag:Ge.res.headers.etag}),!E.progress){G.next=12;break}return G.next=12,f.default.awrap(E.progress(L.length/F,y,Ge.res));case 12:me({number:_e,etag:Ge.res.headers.etag}),G.next=16;break;case 15:me();case 16:G.next=19;break;case 18:me();case 19:G.next=30;break;case 21:G.prev=21,G.t0=G.catch(0),oe=new Error,oe.name=G.t0.name,oe.message=G.t0.message,oe.stack=G.t0.stack,oe.partNum=_e,e(G.t0).to(oe),ke(oe);case 30:case"end":return G.stop()}},null,Ie,[[0,21]])})},B=(0,C.default)(new Array(F),function(ae,ve){return ve+1}),j=R.map(function(ae){return ae.number}),W=B.filter(function(ae){return j.indexOf(ae)<0}),V=5,z=E.parallel||V,de.next=17,f.default.awrap(this._parallel(W,z,function(ae){return new b.default(function(ve,_e){U(T,ae).then(function(Ie){Ie&&R.push(Ie),ve()}).catch(function(Ie){_e(Ie)})})}));case 17:if(J=de.sent,M=!0,!this.isCancel()){de.next=22;break}throw U=null,this._makeCancelEvent();case 22:if(!(J&&J.length>0)){de.next=25;break}throw J[0].message="Failed to upload some parts with error: "+J[0].toString()+" part_num: "+J[0].partNum,J[0];case 25:return de.next=27,f.default.awrap(this.completeMultipartUpload(N,I,R,E));case 27:return de.abrupt("return",de.sent);case 28:case"end":return de.stop()}},null,this)},u._getFileSize=function(y){return f.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(!o.buffer(y)){T.next=4;break}return T.abrupt("return",y.length);case 4:if(!(t(y)||s(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 h=H("stream"),p=h.Readable;function m(v,y){if(!(this instanceof m))return new m(v,y);p.call(this,y),this.file=v,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}r.inherits(m,p),m.prototype.readFileAndPush=function(y){if(this.fileBuffer)for(var E=!0;E&&this.fileBuffer&&this.start<this.fileBuffer.length;){var T=this.start,w=T+y;w=w>this.fileBuffer.length?this.fileBuffer.length:w,this.start=w,E=this.push(this.fileBuffer.slice(T,w))}},m.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 E=16*1024;y=y||E;var T=this;this.reader.onload=function(S){T.fileBuffer=O.from(new Uint8Array(S.target.result)),T.file=null,T.readFileAndPush(y)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(y)},u._createStream=function(y,E,T){if(t(y)||s(y))return new m(y.slice(E,T));throw new Error("_createStream requires File/Blob.")},u._getPartSize=function(y,E){var T=10*1e3,w=1024*1024;return E?Math.max(Math.ceil(y/T),E):w},u._divideParts=function(y,E){for(var T=Math.ceil(y/E),w=[],S=0;S<T;S++){var _=E*S,I=Math.min(_+E,y);w.push({start:_,end:I})}return w}}).call(this,H("buffer").Buffer)},{"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/array/from":52,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,buffer:73,"copy-to":76,"is-type-of":289,mime:202,path:205,stream:230,util:243}],4:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/promise"),x=o(O),C=H("babel-runtime/core-js/object/keys"),A=o(C),b=H("babel-runtime/core-js/object/assign"),g=o(b),f=H("babel-runtime/regenerator"),c=o(f);function o(T){return T&&T.__esModule?T:{default:T}}var r=H("utility"),i=H("fs"),n=H("is-type-of"),e=H("url"),l=H("copy-to"),t=H("path"),a=H("mime"),s=H("../common/callback"),u=H("../common/signUtils"),h=H("merge-descriptors"),p=H("../common/utils/isBlob"),m=p.isBlob,v=H("../common/utils/isFile"),y=v.isFile,E=d;E.append=function(w,S,_){var I;return c.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return _=_||{},_.position===void 0&&(_.position="0"),_.subres={append:"",position:_.position},_.method="POST",N.next=6,c.default.awrap(this.put(w,S,_));case 6:return I=N.sent,I.nextAppendPosition=I.res.headers["x-oss-next-append-position"],N.abrupt("return",I);case 9:case"end":return N.stop()}},null,this)},E.put=function(w,S,_){var I,L,N,R,D,F,M;return c.default.async(function(B){for(;;)switch(B.prev=B.next){case 0:if(I=void 0,_=_||{},w=this._objectName(w),!n.buffer(S)){B.next=7;break}I=S,B.next=33;break;case 7:if(!(m(S)||y(S))){B.next=32;break}return _.mime||(y(S)?_.mime=a.getType(t.extname(S.name)):_.mime=S.type),L=this._createStream(S,0,S.size),B.next=12,c.default.awrap(this._getFileSize(S));case 12:return _.contentLength=B.sent,B.prev=13,B.next=16,c.default.awrap(this.putStream(w,L,_));case 16:return N=B.sent,B.abrupt("return",N);case 20:if(B.prev=20,B.t0=B.catch(13),!(B.t0.code==="RequestTimeTooSkewed")){B.next=29;break}return this.options.amendTimeSkewed=+new Date(B.t0.serverTime)-new Date,B.next=26,c.default.awrap(this.put(w,S,_));case 26:return B.abrupt("return",B.sent);case 29:throw B.t0;case 30:B.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return _.headers=_.headers||{},this._convertMetaToHeaders(_.meta,_.headers),R=_.method||"PUT",D=this._objectRequestParams(R,w,_),s.encodeCallback(D,_),D.mime=_.mime,D.content=I,D.successStatuses=[200],B.next=43,c.default.awrap(this.request(D));case 43:return F=B.sent,M={name:w,url:this._objectUrl(w),res:F.res},D.headers&&D.headers["x-oss-callback"]&&(M.data=JSON.parse(F.data.toString())),B.abrupt("return",M);case 47:case"end":return B.stop()}},null,this,[[13,20]])},E.putStream=function(w,S,_){var I,L,N,R;return c.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:return _=_||{},_.headers=_.headers||{},w=this._objectName(w),_.contentLength?_.headers["Content-Length"]=_.contentLength:_.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(_.meta,_.headers),I=_.method||"PUT",L=this._objectRequestParams(I,w,_),s.encodeCallback(L,_),L.mime=_.mime,L.stream=S,L.successStatuses=[200],F.next=13,c.default.awrap(this.request(L));case 13:return N=F.sent,R={name:w,url:this._objectUrl(w),res:N.res},L.headers&&L.headers["x-oss-callback"]&&(R.data=JSON.parse(N.data.toString())),F.abrupt("return",R);case 17:case"end":return F.stop()}},null,this)},h(E,H("../common/object/copyObject")),h(E,H("../common/object/getObjectTagging")),h(E,H("../common/object/putObjectTagging")),h(E,H("../common/object/deleteObjectTagging")),h(E,H("../common/image")),h(E,H("../common/object/getBucketVersions")),h(E,H("../common/object/getACL")),h(E,H("../common/object/putACL")),h(E,H("../common/object/head")),h(E,H("../common/object/delete")),h(E,H("../common/object/get")),h(E,H("../common/object/putSymlink")),h(E,H("../common/object/getSymlink")),h(E,H("../common/object/deleteMulti")),h(E,H("../common/object/getObjectMeta")),E.putMeta=function(w,S,_){var I;return c.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,c.default.awrap(this.copy(w,w,{meta:S||{},timeout:_&&_.timeout,ctx:_&&_.ctx}));case 2:return I=N.sent,N.abrupt("return",I);case 4:case"end":return N.stop()}},null,this)},E.list=function(w,S){var _,I,L,N,R;return c.default.async(function(F){for(;;)switch(F.prev=F.next){case 0:return _=this._objectRequestParams("GET","",S),_.query=w,_.xmlResponse=!0,_.successStatuses=[200],F.next=6,c.default.awrap(this.request(_));case 6:return I=F.sent,L=I.data.Contents,N=this,L&&(Array.isArray(L)||(L=[L]),L=L.map(function(M){return{name:M.Key,url:N._objectUrl(M.Key),lastModified:M.LastModified,etag:M.ETag,type:M.Type,size:Number(M.Size),storageClass:M.StorageClass,owner:{id:M.Owner.ID,displayName:M.Owner.DisplayName}}})),R=I.data.CommonPrefixes||null,R&&(Array.isArray(R)||(R=[R]),R=R.map(function(M){return M.Prefix})),F.abrupt("return",{res:I.res,objects:L,prefixes:R,nextMarker:I.data.NextMarker||null,isTruncated:I.data.IsTruncated==="true"});case 13:case"end":return F.stop()}},null,this)},E.restore=function(w,S){var _,I;return c.default.async(function(N){for(;;)switch(N.prev=N.next){case 0:return S=S||{},S.subres=(0,g.default)({restore:""},S.subres),S.versionId&&(S.subres.versionId=S.versionId),_=this._objectRequestParams("POST",w,S),_.successStatuses=[202],N.next=7,c.default.awrap(this.request(_));case 7:return I=N.sent,N.abrupt("return",{res:I.res});case 9:case"end":return N.stop()}},null,this)},E.signatureUrl=function(w,S){S=S||{},w=this._objectName(w),S.method=S.method||"GET";var _=r.timestamp()+(S.expires||1800),I={bucket:this.options.bucket,object:w},L=this._getResource(I);this.options.stsToken&&(S["security-token"]=this.options.stsToken);var N=u._signatureForURL(this.options.accessKeySecret,S,L,_),R=e.parse(this._getReqUrl(I));return R.query={OSSAccessKeyId:this.options.accessKeyId,Expires:_,Signature:N.Signature},l(N.subResource).to(R.query),R.format()},E.getObjectUrl=function(w,S){return S?S[S.length-1]!=="/"&&(S+="/"):S=this.options.endpoint.format(),S+this._escape(this._objectName(w))},E._objectUrl=function(w){return this._getReqUrl({bucket:this.options.bucket,object:w})},E.generateObjectUrl=function(T,w){if(w)w[w.length-1]!=="/"&&(w+="/");else{w=this.options.endpoint.format();var S=e.parse(w),_=this.options.bucket;S.hostname=_+"."+S.hostname,S.host=_+"."+S.host,w=S.format()}return w+this._escape(this._objectName(T))},E._objectRequestParams=function(w,S,_){if(!this.options.bucket)throw new Error("Please create a bucket first");_=_||{},S=this._objectName(S);var I={object:S,bucket:this.options.bucket,method:w,subres:_&&_.subres,timeout:_&&_.timeout,ctx:_&&_.ctx};return _.headers&&(I.headers={},l(_.headers).to(I.headers)),I},E._objectName=function(w){return w.replace(/^\/+/,"")},E._convertMetaToHeaders=function(w,S){if(!w)return;(0,A.default)(w).forEach(function(_){S["x-oss-meta-"+_]=w[_]})},E._deleteFileSafe=function(w){var S=this;return new x.default(function(_){i.exists(w,function(I){I?i.unlink(w,function(L){L&&S.debug("unlink %j error: %s",w,L,"error"),_()}):_()})})}},{"../common/callback":14,"../common/image":16,"../common/object/copyObject":19,"../common/object/delete":20,"../common/object/deleteMulti":21,"../common/object/deleteObjectTagging":22,"../common/object/get":23,"../common/object/getACL":24,"../common/object/getBucketVersions":25,"../common/object/getObjectMeta":26,"../common/object/getObjectTagging":27,"../common/object/getSymlink":28,"../common/object/head":29,"../common/object/putACL":30,"../common/object/putObjectTagging":31,"../common/object/putSymlink":32,"../common/signUtils":34,"../common/utils/isBlob":43,"../common/utils/isFile":44,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68,"copy-to":76,fs:71,"is-type-of":289,"merge-descriptors":200,mime:202,path:205,url:238,utility:290}],5:[function(H,k,d){"use strict";d.version="6.10.0"},{}],6:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(f){return f&&f.__esModule?f:{default:f}}var A=H("../utils/checkBucketName"),b=A.checkBucketName,g=d;g.deleteBucketLifecycle=function(c,o){var r,i;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return b(c),r=this._bucketRequestParams("DELETE",c,"lifecycle",o),r.successStatuses=[204],e.next=5,x.default.awrap(this.request(r));case 5:return i=e.sent,e.abrupt("return",{res:i.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],7:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(f){return f&&f.__esModule?f:{default:f}}var A=H("../utils/checkBucketName"),b=A.checkBucketName,g=d;g.deleteBucketWebsite=function(c,o){var r,i;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return b(c),r=this._bucketRequestParams("DELETE",c,"website",o),r.successStatuses=[204],e.next=5,x.default.awrap(this.request(r));case 5:return i=e.sent,e.abrupt("return",{res:i.res});case 7:case"end":return e.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],8:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(i){return i&&i.__esModule?i:{default:i}}var A=H("../utils/checkBucketName"),b=A.checkBucketName,g=H("../utils/isArray"),f=g.isArray,c=H("../utils/formatObjKey"),o=c.formatObjKey,r=d;r.getBucketLifecycle=function(n,e){var l,t,a;return x.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return b(n),l=this._bucketRequestParams("GET",n,"lifecycle",e),l.successStatuses=[200],l.xmlResponse=!0,u.next=6,x.default.awrap(this.request(l));case 6:return t=u.sent,a=t.data.Rule||null,a&&(f(a)||(a=[a]),a=a.map(function(h){return h.ID&&(h.id=h.ID,delete h.ID),h.Tag&&!f(h.Tag)&&(h.Tag=[h.Tag]),o(h,"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(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(f){return f&&f.__esModule?f:{default:f}}var A=H("../utils/checkBucketName"),b=A.checkBucketName,g=d;g.getBucketVersioning=function(c,o){var r,i,n;return x.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return b(c),r=this._bucketRequestParams("GET",c,"versioning",o),r.xmlResponse=!0,r.successStatuses=[200],l.next=6,x.default.awrap(this.request(r));case 6:return i=l.sent,n=i.data.Status,l.abrupt("return",{status:i.status,versionStatus:n,res:i.res});case 9:case"end":return l.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(o){return o&&o.__esModule?o:{default:o}}var A=H("../utils/checkBucketName"),b=A.checkBucketName,g=H("../utils/isObject"),f=g.isObject,c=d;c.getBucketWebsite=function(r,i){var n,e,l;return x.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return b(r),n=this._bucketRequestParams("GET",r,"website",i),n.successStatuses=[200],n.xmlResponse=!0,a.next=6,x.default.awrap(this.request(n));case 6:return e=a.sent,l=[],e.data.RoutingRules&&e.data.RoutingRules.RoutingRule&&(f(e.data.RoutingRules.RoutingRule)?l=[e.data.RoutingRules.RoutingRule]:l=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:l,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(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(y){return y&&y.__esModule?y:{default:y}}var A=H("../utils/checkBucketName"),b=A.checkBucketName,g=H("../utils/isArray"),f=g.isArray,c=H("../utils/deepCopy"),o=c.deepCopy,r=H("../utils/isObject"),i=r.isObject,n=H("../utils/obj2xml"),e=n.obj2xml,l=H("../utils/checkObjectTag"),t=l.checkObjectTag,a=H("../utils/getStrBytesCount"),s=a.getStrBytesCount,u=d;u.putBucketLifecycle=function(E,T,w){var S,_,I,L,N;return x.default.async(function(D){for(;;)switch(D.prev=D.next){case 0:if(b(E),f(T)){D.next=3;break}throw new Error("rules must be Array");case 3:return S=this._bucketRequestParams("PUT",E,"lifecycle",w),_=[],I={LifecycleConfiguration:{Rule:_}},T.forEach(function(F){h(F),v(F),F.id&&(F.ID=F.id,delete F.id),_.push(F)}),L=e(I,{headers:!0,firstUpperCase:!0}),S.content=L,S.mime="xml",S.successStatuses=[200],D.next=13,x.default.awrap(this.request(S));case 13:return N=D.sent,D.abrupt("return",{res:N.res});case 15:case"end":return D.stop()}},null,this)};function h(y){y.days&&(y.expiration={days:y.days}),y.date&&(y.expiration={createdBeforeDate:y.date})}function p(y,E){var T=y.days,w=y.createdBeforeDate;if(!T&&!w)throw new Error(E+" must includes days or createdBeforeDate");if(T&&!/^[1-9][0-9]*$/.test(T))throw new Error("days must be a positive integer");if(w&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(w))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function m(y){if(!f(y)&&!i(y))throw new Error("tag must be Object or Array");y=i(y)?[y]:y;var E={},T=o(y);T.forEach(function(w){E[w.key]=w.value}),t(E)}function v(y){if(y.id&&s(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");m(y.tag)}}},{"../utils/checkBucketName":35,"../utils/checkObjectTag":36,"../utils/deepCopy":39,"../utils/getStrBytesCount":41,"../utils/isArray":42,"../utils/isObject":46,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],12:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(o){return o&&o.__esModule?o:{default:o}}var A=H("../utils/checkBucketName"),b=A.checkBucketName,g=H("../utils/obj2xml"),f=g.obj2xml,c=d;c.putBucketVersioning=function(r,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,t;return x.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(b(r),["Enabled","Suspended"].includes(i)){s.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",r,"versioning",n),l={VersioningConfiguration:{Status:i}},e.mime="xml",e.content=f(l,{headers:!0}),s.next=9,x.default.awrap(this.request(e));case 9:return t=s.sent,s.abrupt("return",{res:t.res,status:t.status});case 11:case"end":return s.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],13:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(i){return i&&i.__esModule?i:{default:i}}var A=H("../utils/checkBucketName"),b=A.checkBucketName,g=H("../utils/obj2xml"),f=g.obj2xml,c=H("../utils/isArray"),o=c.isArray,r=d;r.putBucketWebsite=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=arguments[2],t,a,s,u,h;return x.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:if(b(n),t=this._bucketRequestParams("PUT",n,"website",l),a={Suffix:e.index||"index.html"},s={IndexDocument:a},u={WebsiteConfiguration:s},e.supportSubDir&&(a.SupportSubDir=e.supportSubDir),e.type&&(a.Type=e.type),e.error&&(s.ErrorDocument={Key:e.error}),!(e.routingRules!==void 0)){m.next=12;break}if(o(e.routingRules)){m.next=11;break}throw new Error("RoutingRules must be Array");case 11:s.RoutingRules={RoutingRule:e.routingRules};case 12:return u=f(u),t.content=u,t.mime="xml",t.successStatuses=[200],m.next=18,x.default.awrap(this.request(t));case 18:return h=m.sent,m.abrupt("return",{res:h.res});case 20:case"end":return m.stop()}},null,this)}},{"../utils/checkBucketName":35,"../utils/isArray":42,"../utils/obj2xml":47,"babel-runtime/regenerator":68}],14:[function(H,k,d){(function(O){"use strict";var x=H("babel-runtime/core-js/object/keys"),C=g(x),A=H("babel-runtime/core-js/json/stringify"),b=g(A);function g(f){return f&&f.__esModule?f:{default:f}}d.encodeCallback=function(c,o){if(c.headers=c.headers||{},!Object.prototype.hasOwnProperty.call(c.headers,"x-oss-callback")&&o.callback){var r={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};o.callback.host&&(r.callbackHost=o.callback.host),o.callback.contentType&&(r.callbackBodyType=o.callback.contentType);var i=O.from((0,b.default)(r)).toString("base64");if(c.headers["x-oss-callback"]=i,o.callback.customValue){var n={};(0,C.default)(o.callback.customValue).forEach(function(e){n["x:"+e]=o.callback.customValue[e]}),c.headers["x-oss-callback-var"]=O.from((0,b.default)(n)).toString("base64")}}}}).call(this,H("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/assign"),x=C(O);function C(r){return r&&r.__esModule?r:{default:r}}var A=H("humanize-ms"),b=H("url"),g=H("../utils/checkBucketName"),f=g.checkBucketName;function c(r,i){var n=b.parse(r);if(n.protocol||(n=b.parse("http"+(i?"s":"")+"://"+r)),n.protocol!=="http:"&&n.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return n}function o(r,i,n){var e=n?"https://":"http://",l=i?"-internal.aliyuncs.com":".aliyuncs.com",t="vpc100-oss-cn-";return r.substr(0,t.length)===t&&(l=".aliyuncs.com"),b.parse(e+r+l)}k.exports=function(r){if(!r||!r.accessKeyId||!r.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");r.bucket&&f(r.bucket);var i=(0,x.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},r);if(i.accessKeyId=i.accessKeyId.trim(),i.accessKeySecret=i.accessKeySecret.trim(),i.timeout&&(i.timeout=A(i.timeout)),i.endpoint)i.endpoint=c(i.endpoint,i.secure);else if(i.region)i.endpoint=o(i.region,i.internal,i.secure);else throw new Error("require options.endpoint or options.region");return i.inited=!0,i}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/assign":54,"humanize-ms":194,url:238}],16:[function(H,k,d){"use strict";var O=H("merge-descriptors"),x=d;O(x,H("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(i){return i&&i.__esModule?i:{default:i}}var A=H("../utils/checkBucketName"),b=A.checkBucketName,g=H("querystring"),f=H("js-base64"),c=f.Base64.encode,o=d;o.processObjectSave=function(n,e,l,t){var a,s,u,h;return x.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return r(n,"sourceObject"),r(e,"targetObject"),r(l,"process"),e=this._objectName(e),t&&b(t),a=this._objectRequestParams("POST",n,{subres:"x-oss-process"}),s=t?",b_"+c(t):"",e=c(e),u={"x-oss-process":l+"|sys/saveas,o_"+e+s},a.content=g.stringify(u),m.next=12,x.default.awrap(this.request(a));case 12:return h=m.sent,m.abrupt("return",{res:h.res,status:h.res.status});case 14:case"end":return m.stop()}},null,this)};function r(i,n){if(!i)throw new Error(n+" is required");if(typeof i!="string")throw new Error(n+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=C(O);function C(o){return o&&o.__esModule?o:{default:o}}var A=H("copy-to"),b=H("./callback"),g=H("./utils/deepCopy"),f=g.deepCopy,c=d;c.listUploads=function(r,i){var n,e,l,t;return x.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return i=i||{},n={},A(i).to(n),n.subres="uploads",e=this._objectRequestParams("GET","",n),e.query=r,e.xmlResponse=!0,e.successStatuses=[200],s.next=10,x.default.awrap(this.request(e));case 10:return l=s.sent,t=l.data.Upload||[],Array.isArray(t)||(t=[t]),t=t.map(function(u){return{name:u.Key,uploadId:u.UploadId,initiated:u.Initiated}}),s.abrupt("return",{res:l.res,uploads:t,bucket:l.data.Bucket,nextKeyMarker:l.data.NextKeyMarker,nextUploadIdMarker:l.data.NextUploadIdMarker,isTruncated:l.data.IsTruncated==="true"});case 15:case"end":return s.stop()}},null,this)},c.listParts=function(r,i,n,e){var l,t,a;return x.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=e||{},l={},A(e).to(l),l.subres={uploadId:i},t=this._objectRequestParams("GET",r,l),t.query=n,t.xmlResponse=!0,t.successStatuses=[200],u.next=10,x.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,i,n){var e,l,t;return x.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return this._stop(),n=n||{},e={},A(n).to(e),e.subres={uploadId:i},l=this._objectRequestParams("DELETE",r,e),l.successStatuses=[204],s.next=9,x.default.awrap(this.request(l));case 9:return t=s.sent,s.abrupt("return",{res:t.res});case 11:case"end":return s.stop()}},null,this)},c.initMultipartUpload=function(r,i){var n,e,l;return x.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return i=i||{},n={},A(i).to(n),n.headers=n.headers||{},this._convertMetaToHeaders(i.meta,n.headers),n.subres="uploads",e=this._objectRequestParams("POST",r,n),e.mime=i.mime,e.xmlResponse=!0,e.successStatuses=[200],a.next=12,x.default.awrap(this.request(e));case 12:return l=a.sent,a.abrupt("return",{res:l.res,bucket:l.data.Bucket,name:l.data.Key,uploadId:l.data.UploadId});case 14:case"end":return a.stop()}},null,this)},c.uploadPart=function(r,i,n,e,l,t,a){var s;return x.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return s={stream:this._createStream(e,l,t),size:t-l},h.next=3,x.default.awrap(this._uploadPart(r,i,n,s,a));case 3:return h.abrupt("return",h.sent);case 4:case"end":return h.stop()}},null,this)},c.completeMultipartUpload=function(r,i,n,e){var l,t,a,s,u,h,p,m;return x.default.async(function(y){for(;;)switch(y.prev=y.next){case 0:for(l=n.concat().sort(function(E,T){return E.number-T.number}).filter(function(E,T,w){return!T||E.number!==w[T-1].number}),t=`<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUpload>
`,a=0;a<l.length;a++)s=l[a],t+=`<Part>
`,t+="<PartNumber>"+s.number+`</PartNumber>
`,t+="<ETag>"+s.etag+`</ETag>
`,t+=`</Part>
`;return t+="</CompleteMultipartUpload>",e=e||{},u={},u=f(e),u.headers&&delete u.headers["x-oss-server-side-encryption"],u.subres={uploadId:i},h=this._objectRequestParams("POST",r,u),b.encodeCallback(h,u),h.mime="xml",h.content=t,h.headers&&h.headers["x-oss-callback"]||(h.xmlResponse=!0),h.successStatuses=[200],y.next=17,x.default.awrap(this.request(h));case 17:return p=y.sent,m={res:p.res,bucket:h.bucket,name:r,etag:p.res.headers.etag},h.headers&&h.headers["x-oss-callback"]&&(m.data=JSON.parse(p.data.toString())),y.abrupt("return",m);case 21:case"end":return y.stop()}},null,this)},c._uploadPart=function(r,i,n,e,l){var t,a,s;return x.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return l=l||{},t={},A(l).to(t),t.headers={"Content-Length":e.size},t.subres={partNumber:n,uploadId:i},a=this._objectRequestParams("PUT",r,t),a.mime=t.mime,a.stream=e.stream,a.successStatuses=[200],h.next=11,x.default.awrap(this.request(a));case 11:if(s=h.sent,s.res.headers.etag){h.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,h.abrupt("return",{name:r,etag:s.res.headers.etag,res:s.res});case 17:case"end":return h.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=f(O),C=H("babel-runtime/core-js/object/keys"),A=f(C),b=H("babel-runtime/helpers/typeof"),g=f(b);function f(i){return i&&i.__esModule?i:{default:i}}var c=H("../utils/checkBucketName"),o=c.checkBucketName,r=d;r.copy=function(n,e,l,t){var a,s,u;return x.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return(typeof l=="undefined"?"undefined":(0,g.default)(l))==="object"&&(t=l),t=t||{},t.headers=t.headers||{},(0,A.default)(t.headers).forEach(function(m){t.headers["x-oss-copy-source-"+m.toLowerCase()]=t.headers[m]}),t.meta&&(t.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(t.meta,t.headers),e=this._getSourceName(e,l),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,x.default.awrap(this.request(a));case 14:return s=p.sent,u=s.data,u&&(u={etag:u.ETag,lastModified:u.LastModified}),p.abrupt("return",{data:u,res:s.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")),o(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(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=b(O),C=H("babel-runtime/core-js/object/assign"),A=b(C);function b(f){return f&&f.__esModule?f:{default:f}}var g=d;g.delete=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,A.default)({},o.subres),o.versionId&&(o.subres.versionId=o.versionId),r=this._objectRequestParams("DELETE",c,o),r.successStatuses=[204],e.next=6,x.default.awrap(this.request(r));case 6:return i=e.sent,e.abrupt("return",{res:i.res});case 8:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],21:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=b(O),C=H("babel-runtime/core-js/object/assign"),A=b(C);function b(r){return r&&r.__esModule?r:{default:r}}var g=H("utility"),f=H("../utils/obj2xml"),c=f.obj2xml,o=d;o.deleteMulti=function(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e,l,t,a,s,u,h,p,m,v,y,E;return x.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(e=[],!(!i||!i.length)){w.next=3;break}throw new Error("names is required");case 3:for(l=0;l<i.length;l++)t={},typeof i[l]=="string"?t.Key=g.escape(this._objectName(i[l])):(a=i[l],s=a.key,u=a.versionId,t.Key=g.escape(this._objectName(s)),t.VersionId=u),e.push(t);return h={Delete:{Quiet:!!n.quiet,Object:e}},p=c(h,{headers:!0}),n.subres=(0,A.default)({delete:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),m=this._objectRequestParams("POST","",n),m.mime="xml",m.content=p,m.xmlResponse=!0,m.successStatuses=[200],w.next=15,x.default.awrap(this.request(m));case 15:return v=w.sent,y=v.data,E=y&&y.Deleted||null,E&&(Array.isArray(E)||(E=[E])),w.abrupt("return",{res:v.res,deleted:E||[]});case 20:case"end":return w.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=b(O),C=H("babel-runtime/core-js/object/assign"),A=b(C);function b(f){return f&&f.__esModule?f:{default:f}}var g=d;g.deleteObjectTagging=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,A.default)({tagging:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),c=this._objectName(c),r=this._objectRequestParams("DELETE",c,o),r.successStatuses=[204],e.next=7,x.default.awrap(this.request(r));case 7:return i=e.sent,e.abrupt("return",{status:i.status,res:i.res});case 9:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],23:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=b(O),C=H("babel-runtime/core-js/object/assign"),A=b(C);function b(o){return o&&o.__esModule?o:{default:o}}var g=H("fs"),f=H("is-type-of"),c=d;c.get=function(r,i){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,l,t,a;return x.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return e=null,l=!1,f.writableStream(i)?e=i:f.string(i)?(e=g.createWriteStream(i),l=!0):n=i,n=n||{},n.subres=(0,A.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,x.default.awrap(this.request(a));case 14:t=u.sent,l&&e.destroy(),u.next=25;break;case 18:if(u.prev=18,u.t0=u.catch(8),!l){u.next=24;break}return e.destroy(),u.next=24,x.default.awrap(this._deleteFileSafe(i));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(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=b(O),C=H("babel-runtime/core-js/object/assign"),A=b(C);function b(f){return f&&f.__esModule?f:{default:f}}var g=d;g.getACL=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,A.default)({acl:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),c=this._objectName(c),r=this._objectRequestParams("GET",c,o),r.successStatuses=[200],r.xmlResponse=!0,e.next=8,x.default.awrap(this.request(r));case 8:return i=e.sent,e.abrupt("return",{acl:i.data.AccessControlList.Grant,owner:{id:i.data.Owner.ID,displayName:i.data.Owner.DisplayName},res:i.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],25:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),x=f(O),C=H("babel-runtime/regenerator"),A=f(C),b=H("babel-runtime/core-js/object/assign"),g=f(b);function f(a){return a&&a.__esModule?a:{default:a}}var c=d,o=H("../utils/isObject"),r=o.isObject,i=H("../utils/isArray"),n=i.isArray;c.getBucketVersions=e,c.listObjectVersions=e;function e(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,h,p,m,v,y;return A.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 s.subres=(0,g.default)({versions:""},s.subres),s.versionId&&(s.subres.versionId=s.versionId),u=this._objectRequestParams("GET","",s),u.xmlResponse=!0,u.successStatuses=[200],u.query=t(a),T.next=10,A.default.awrap(this.request(u));case 10:return h=T.sent,p=h.data.Version||[],m=h.data.DeleteMarker||[],v=this,p&&(Array.isArray(p)||(p=[p]),p=p.map(function(w){return{name:w.Key,url:v._objectUrl(w.Key),lastModified:w.LastModified,isLatest:w.IsLatest==="true",versionId:w.VersionId,etag:w.ETag,type:w.Type,size:Number(w.Size),storageClass:w.StorageClass,owner:{id:w.Owner.ID,displayName:w.Owner.DisplayName}}})),m&&(n(m)||(m=[m]),m=m.map(function(w){return{name:w.Key,lastModified:w.LastModified,versionId:w.VersionId,owner:{id:w.Owner.ID,displayName:w.Owner.DisplayName}}})),y=h.data.CommonPrefixes||null,y&&(n(y)||(y=[y]),y=y.map(function(w){return w.Prefix})),T.abrupt("return",{res:h.res,objects:p,deleteMarker:m,prefixes:y,nextMarker:h.data.NextMarker||null,NextVersionIdMarker:h.data.NextVersionIdMarker||null,isTruncated:h.data.IsTruncated==="true"});case 19:case"end":return T.stop()}},null,this)}function l(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()}function t(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s={};return r(a)&&(0,x.default)(a).forEach(function(u){s[l(u)]=a[u]}),s}},{"../utils/isArray":42,"../utils/isObject":46,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],26:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=b(O),C=H("babel-runtime/core-js/object/assign"),A=b(C);function b(f){return f&&f.__esModule?f:{default:f}}var g=d;g.getObjectMeta=function(c,o){var r,i;return x.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o=o||{},c=this._objectName(c),o.subres=(0,A.default)({objectMeta:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),r=this._objectRequestParams("HEAD",c,o),r.successStatuses=[200],e.next=8,x.default.awrap(this.request(r));case 8:return i=e.sent,e.abrupt("return",{status:i.status,res:i.res});case 10:case"end":return e.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],27:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=b(O),C=H("babel-runtime/core-js/object/assign"),A=b(C);function b(o){return o&&o.__esModule?o:{default:o}}var g=d,f=H("../utils/isObject"),c=f.isObject;g.getObjectTagging=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,e,l,t,a;return x.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return i.subres=(0,A.default)({tagging:""},i.subres),i.versionId&&(i.subres.versionId=i.versionId),r=this._objectName(r),n=this._objectRequestParams("GET",r,i),n.successStatuses=[200],u.next=7,x.default.awrap(this.request(n));case 7:return e=u.sent,u.next=10,x.default.awrap(this.parseXML(e.data));case 10:return l=u.sent,t=l.TagSet.Tag,t=t&&c(t)?[t]:t||[],a={},t.forEach(function(h){a[h.Key]=h.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(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=b(O),C=H("babel-runtime/core-js/object/assign"),A=b(C);function b(f){return f&&f.__esModule?f:{default:f}}var g=d;g.getSymlink=function(c){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,i,n;return x.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return o.subres=(0,A.default)({symlink:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),c=this._objectName(c),r=this._objectRequestParams("GET",c,o),r.successStatuses=[200],l.next=7,x.default.awrap(this.request(r));case 7:return i=l.sent,n=i.res.headers["x-oss-symlink-target"],l.abrupt("return",{targetName:decodeURIComponent(n),res:i.res});case 10:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],29:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=f(O),C=H("babel-runtime/core-js/object/keys"),A=f(C),b=H("babel-runtime/core-js/object/assign"),g=f(b);function f(o){return o&&o.__esModule?o:{default:o}}var c=d;c.head=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,e,l;return x.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return i.subres=(0,g.default)({},i.subres),i.versionId&&(i.subres.versionId=i.versionId),n=this._objectRequestParams("HEAD",r,i),n.successStatuses=[200,304],a.next=6,x.default.awrap(this.request(n));case 6:return e=a.sent,l={meta:null,res:e.res,status:e.status},e.status===200&&(0,A.default)(e.headers).forEach(function(s){s.indexOf("x-oss-meta-")===0&&(l.meta||(l.meta={}),l.meta[s.substring(11)]=e.headers[s])}),a.abrupt("return",l);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(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=b(O),C=H("babel-runtime/core-js/object/assign"),A=b(C);function b(f){return f&&f.__esModule?f:{default:f}}var g=d;g.putACL=function(c,o,r){var i,n;return x.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return r=r||{},r.subres=(0,A.default)({acl:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.headers=r.headers||{},r.headers["x-oss-object-acl"]=o,c=this._objectName(c),i=this._objectRequestParams("PUT",c,r),i.successStatuses=[200],l.next=10,x.default.awrap(this.request(i));case 10:return n=l.sent,l.abrupt("return",{res:n.res});case 12:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=f(O),C=H("babel-runtime/core-js/object/keys"),A=f(C),b=H("babel-runtime/core-js/object/assign"),g=f(b);function f(e){return e&&e.__esModule?e:{default:e}}var c=H("../utils/obj2xml"),o=c.obj2xml,r=H("../utils/checkObjectTag"),i=r.checkObjectTag,n=d;n.putObjectTagging=function(l,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,u,h;return x.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:return i(t),a.subres=(0,g.default)({tagging:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),l=this._objectName(l),s=this._objectRequestParams("PUT",l,a),s.successStatuses=[200],t=(0,A.default)(t).map(function(v){return{Key:v,Value:t[v]}}),u={Tagging:{TagSet:{Tag:t}}},s.mime="xml",s.content=o(u),m.next=12,x.default.awrap(this.request(s));case 12:return h=m.sent,m.abrupt("return",{res:h.res,status:h.status});case 14:case"end":return m.stop()}},null,this)}},{"../utils/checkObjectTag":36,"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/keys":60,"babel-runtime/regenerator":68}],32:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=b(O),C=H("babel-runtime/core-js/object/assign"),A=b(C);function b(f){return f&&f.__esModule?f:{default:f}}var g=d;g.putSymlink=function(c,o,r){var i,n;return x.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return r=r||{},r.headers=r.headers||{},o=this._escape(this._objectName(o)),this._convertMetaToHeaders(r.meta,r.headers),r.headers["x-oss-symlink-target"]=o,r.subres=(0,A.default)({symlink:""},r.subres),r.versionId&&(r.subres.versionId=r.versionId),r.storageClass&&(r.headers["x-oss-storage-class"]=r.storageClass),c=this._objectName(c),i=this._objectRequestParams("PUT",c,r),i.successStatuses=[200],l.next=13,x.default.awrap(this.request(i));case 13:return n=l.sent,l.abrupt("return",{res:n.res});case 15:case"end":return l.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(H,k,d){"use strict";var O=H("babel-runtime/regenerator"),x=b(O),C=H("babel-runtime/core-js/promise"),A=b(C);function b(f){return f&&f.__esModule?f:{default:f}}var g=d;g._parallelNode=function(c,o,r,i){var n,e,l,t,a,s,u,h;return x.default.async(function(m){for(;;)switch(m.prev=m.next){case 0:n=this,e=[],l=[],t=c.length/o,a=c.length%o,s=a===0?t:(c.length-a)/o+1,u=1,h=0;case 8:if(!(h<c.length)){m.next=26;break}if(!n.isCancel()){m.next=11;break}return m.abrupt("break",26);case 11:if(i?l.push(r(n,c[h],i)):l.push(r(n,c[h])),!(l.length===o||u===s&&h===c.length-1)){m.next=23;break}return m.prev=13,u+=1,m.next=17,x.default.awrap(A.default.all(l));case 17:m.next=22;break;case 19:m.prev=19,m.t0=m.catch(13),e.push(m.t0);case 22:l=[];case 23:h++,m.next=8;break;case 26:return m.abrupt("return",e);case 27:case"end":return m.stop()}},null,this,[[13,19]])},g._parallel=function(c,o,r){var i=this;return new A.default(function(n){var e=[];if(o<=0||!c){n(e);return}function l(y){return function(){if(y===null)throw new Error("Callback was already called.");var E=y;y=null;for(var T=arguments.length,w=Array(T),S=0;S<T;S++)w[S]=arguments[S];E.apply(this,w)}}function t(y){var E=-1,T=y.length;return function(){return++E<T&&!i.isCancel()?{value:y[E],key:E}:null}}var a=t(c),s=!1,u=0,h=!1;function p(y,E){u-=1,y?(s=!0,e.push(y),n(e)):E==={}||s&&u<=0?(s=!0,n(e)):h||(i.isCancel()?n(e):v())}function m(y,E){r(y).then(function(T){E(null,T)}).catch(function(T){E(T)})}function v(){for(h=!0;u<o&&!s&&!i.isCancel();){var y=a();if(y===null||e.length>0){s=!0,u<=0&&n(e);return}u+=1,m(y.value,l(p))}h=!1}v()})},g.cancel=function(c){this.options.cancelFlag=!0,c&&this.abortMultipartUpload(c.name,c.uploadId,c.options)},g.isCancel=function(){return this.options.cancelFlag},g.resetCancelFlag=function(){this.options.cancelFlag=!1},g._stop=function(){this.options.cancelFlag=!0},g._makeCancelEvent=function(){var c={status:0,name:"cancel"};return c}},{"babel-runtime/core-js/promise":61,"babel-runtime/regenerator":68}],34:[function(H,k,d){(function(O){"use strict";var x=H("babel-runtime/core-js/json/stringify"),C=g(x),A=H("babel-runtime/core-js/object/keys"),b=g(A);function g(o){return o&&o.__esModule?o:{default:o}}var f=H("./../../shims/crypto/crypto.js"),c=H("is-type-of");d.buildCanonicalizedResource=function(r,i){var n=""+r,e="?";if(c.string(i)&&i.trim()!=="")n+=e+i;else if(c.array(i))i.sort(),n+=e+i.join("&");else if(i){var l=function(s,u){return s[0]>u[0]?1:s[0]<u[0]?-1:0},t=function(s){n+=e+s,i[s]&&(n+="="+i[s]),e="&"};(0,b.default)(i).sort(l).forEach(t)}return n},d.buildCanonicalString=function(r,i,n,e){n=n||{};var l=n.headers||{},t="x-oss-",a=[],s={},u=[r.toUpperCase(),l["Content-Md5"]||"",l["Content-Type"]||l["Content-Type".toLowerCase()],e||l["x-oss-date"]];return(0,b.default)(l).forEach(function(h){var p=h.toLowerCase();p.indexOf(t)===0&&(s[p]=String(l[h]).trim())}),(0,b.default)(s).sort().forEach(function(h){a.push(h+":"+s[h])}),u=u.concat(a),u.push(this.buildCanonicalizedResource(i,n.parameters)),u.join(`
`)},d.computeSignature=function(r,i){var n=f.createHmac("sha1",r);return n.update(O.from(i,"utf8")).digest("base64")},d.authorization=function(r,i,n){return"OSS "+r+":"+this.computeSignature(i,n)},d._signatureForURL=function(r){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments[2],e=arguments[3],l={},t=i.subResource,a=t===void 0?{}:t;if(i.process){var s="x-oss-process";a[s]=i.process}if(i.trafficLimit){var u="x-oss-traffic-limit";a[u]=i.trafficLimit}if(i.response&&(0,b.default)(i.response).forEach(function(v){var y="response-"+v.toLowerCase();a[y]=i.response[v]}),(0,b.default)(i).forEach(function(v){var y=v.toLowerCase(),E=i[v];y.indexOf("x-oss-")===0?l[y]=E:(y.indexOf("content-md5")===0||y.indexOf("content-type")===0)&&(l[v]=E)}),Object.prototype.hasOwnProperty.call(i,"security-token")&&(a["security-token"]=i["security-token"]),Object.prototype.hasOwnProperty.call(i,"callback")){var h={callbackUrl:encodeURI(i.callback.url),callbackBody:i.callback.body};if(i.callback.host&&(h.callbackHost=i.callback.host),i.callback.contentType&&(h.callbackBodyType=i.callback.contentType),a.callback=O.from((0,C.default)(h)).toString("base64"),i.callback.customValue){var p={};(0,b.default)(i.callback.customValue).forEach(function(v){p["x:"+v]=i.callback.customValue[v]}),a["callback-var"]=O.from((0,C.default)(p)).toString("base64")}}var m=this.buildCanonicalString(i.method,n,{headers:l,parameters:a},e.toString());return{Signature:this.computeSignature(r,m),subResource:a}}}).call(this,H("buffer").Buffer)},{"./../../shims/crypto/crypto.js":284,"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73,"is-type-of":289}],35:[function(H,k,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkBucketName=void 0,d.checkBucketName=function(O,x){var C=x?/^[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(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/entries"),x=C(O);function C(i){return i&&i.__esModule?i:{default:i}}Object.defineProperty(d,"__esModule",{value:!0}),d.checkObjectTag=void 0;var A=H("./checkValid"),b=A.checkValid,g=H("./isObject"),f=g.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 (/)"}],o={key:[].concat(c,[{pattern:/^.{1,128}$/,msg:"tag key can be a maximum of 128 bytes in length"}]),value:[].concat(c,[{pattern:/^.{0,256}$/,msg:"tag value can be a maximum of 256 bytes in length"}])};function r(i){if(!f(i))throw new Error("tag must be Object");var n=(0,x.default)(i);if(n.length>10)throw new Error("maximum of 10 tags for a object");var e=["key","value"];n.forEach(function(l){l.forEach(function(t,a){b(t,o[e[a]])})})}d.checkObjectTag=r},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(H,k,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.checkValid=void 0;function O(x,C){C.forEach(function(A){if(A.validator)A.validator(x);else if(A.pattern&&!A.pattern.test(x))throw new Error(A.msg)})}d.checkValid=O},{}],38:[function(H,k,d){(function(O){"use strict";var x=H("babel-runtime/core-js/object/assign"),C=A(x);function A(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(d,"__esModule",{value:!0}),d.createRequest=void 0;var b=H("./../../../shims/crypto/crypto.js"),g=H("debug")("ali-oss"),f=H("mime"),c=H("dateformat"),o=H("copy-to"),r=H("path");function i(l,t){return l[t]||l[t.toLowerCase()]}function n(l,t){delete l[t],delete l[t.toLowerCase()]}function e(l){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),o(l.headers).to(a),i(a,"Content-Type")||(l.mime&&l.mime.indexOf("/")>0?a["Content-Type"]=l.mime:a["Content-Type"]=f.getType(l.mime||r.extname(l.object||""))),i(a,"Content-Type")||n(a,"Content-Type"),l.content&&(a["Content-Md5"]=b.createHash("md5").update(O.from(l.content,"utf8")).digest("base64"),a["Content-Length"]||(a["Content-Length"]=l.content.length));var s=this._getResource(l);a.authorization=this.authorization(l.method,s,l.subres,a);var u=this._getReqUrl(l);g("request %s %s, with headers %j, !!stream: %s",l.method,u,a,!!l.stream);var h=l.timeout||this.options.timeout,p={method:l.method,content:l.content,stream:l.stream,headers:a,timeout:h,writeStream:l.writeStream,customResponse:l.customResponse,ctx:l.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,H("buffer").Buffer)},{"./../../../shims/crypto/crypto.js":284,"babel-runtime/core-js/object/assign":54,buffer:73,"copy-to":76,dateformat:190,debug:288,mime:202,path:205}],39:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),x=b(O),C=H("babel-runtime/helpers/typeof"),A=b(C);function b(g){return g&&g.__esModule?g:{default:g}}Object.defineProperty(d,"__esModule",{value:!0}),d.deepCopy=void 0,d.deepCopy=function(g){if(g===null||(typeof g=="undefined"?"undefined":(0,A.default)(g))!=="object")return g;var f=Array.isArray(g)?[]:{};return(0,x.default)(g).forEach(function(c){f[c]=d.deepCopy(g[c])}),f}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),x=b(O),C=H("babel-runtime/helpers/typeof"),A=b(C);function b(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(d,"__esModule",{value:!0}),d.formatObjKey=void 0;function g(c,o){if(c===null||(typeof c=="undefined"?"undefined":(0,A.default)(c))!=="object")return c;var r=void 0;if(Array.isArray(c)){r=[];for(var i=0;i<c.length;i++)r.push(g(c[i],o))}else r={},(0,x.default)(c).forEach(function(n){r[f(n,o)]=g(c[n],o)});return r}d.formatObjKey=g;function f(c,o){return o==="firstUpperCase"?c=c.replace(/^./,function(r){return r.toUpperCase()}):o==="firstLowerCase"&&(c=c.replace(/^./,function(r){return r.toLowerCase()})),c}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(H,k,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.getStrBytesCount=void 0;function O(x){for(var C=0,A=0;A<x.length;A++){var b=x.charAt(A);/^[\u00-\uff]$/.test(b)?C+=1:C+=2}return C}d.getStrBytesCount=O},{}],42:[function(H,k,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(H,k,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isBlob=void 0;function O(x){return typeof Blob!="undefined"&&x instanceof Blob}d.isBlob=O},{}],44:[function(H,k,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(H,k,d){"use strict";Object.defineProperty(d,"__esModule",{value:!0}),d.isIP=void 0,d.isIP=function(O){var x=/^(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 x.test(O)||C.test(O)}},{}],46:[function(H,k,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(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),x=C(O);function C(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(d,"__esModule",{value:!0}),d.obj2xml=void 0;var A=H("./formatObjKey");function b(f){return Object.prototype.toString.call(f).replace(/(.*? |])/g,"").toLowerCase()}function g(f,c){var o="";return c&&c.headers&&(o=`<?xml version="1.0" encoding="UTF-8"?>
`),c&&c.firstUpperCase&&(f=A.formatObjKey(f,"firstUpperCase")),b(f)==="object"?(0,x.default)(f).forEach(function(r){b(f[r])==="string"||b(f[r])==="number"?o+="<"+r+">"+f[r]+"</"+r+">":b(f[r])==="object"?o+="<"+r+">"+g(f[r])+"</"+r+">":b(f[r])==="array"?o+=f[r].map(function(i){return"<"+r+">"+g(i)+"</"+r+">"}).join(""):o+="<"+r+">"+f[r].toString()+"</"+r+">"}):o+=f.toString(),o}d.obj2xml=g},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(H,k,d){k.exports=O,k.exports.HttpsAgent=O;function O(){}},{}],49:[function(H,k,d){k.exports=H("./register")().Promise},{"./register":51}],50:[function(H,k,d){"use strict";var O="@@any-promise/REGISTRATION",x=null;k.exports=function(C,A){return function(g,f){g=g||null,f=f||{};var c=f.global!==!1;if(x===null&&c&&(x=C[O]||null),x!==null&&g!==null&&x.implementation!==g)throw new Error('any-promise already defined as "'+x.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return x===null&&(g!==null&&typeof f.Promise!="undefined"?x={Promise:f.Promise,implementation:g}:x=A(g),c&&(C[O]=x)),x}}},{}],51:[function(H,k,d){"use strict";k.exports=H("./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(H,k,d){k.exports={default:H("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(H,k,d){k.exports={default:H("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(H,k,d){k.exports={default:H("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(H,k,d){k.exports={default:H("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(H,k,d){k.exports={default:H("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(H,k,d){k.exports={default:H("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(H,k,d){k.exports={default:H("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(H,k,d){k.exports={default:H("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(H,k,d){k.exports={default:H("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(H,k,d){"use strict";d.__esModule=!0;var O=H("../core-js/symbol/iterator"),x=g(O),C=H("../core-js/symbol"),A=g(C),b=typeof A.default=="function"&&typeof x.default=="symbol"?function(f){return typeof f}:function(f){return f&&typeof A.default=="function"&&f.constructor===A.default&&f!==A.default.prototype?"symbol":typeof f};function g(f){return f&&f.__esModule?f:{default:f}}d.default=typeof A.default=="function"&&b(x.default)==="symbol"?function(f){return typeof f=="undefined"?"undefined":b(f)}:function(f){return f&&typeof A.default=="function"&&f.constructor===A.default&&f!==A.default.prototype?"symbol":typeof f=="undefined"?"undefined":b(f)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(H,k,d){k.exports=H("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(H,k,d){"use strict";d.byteLength=c,d.toByteArray=r,d.fromByteArray=e;for(var O=[],x=[],C=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b=0,g=A.length;b<g;++b)O[b]=A[b],x[A.charCodeAt(b)]=b;x["-".charCodeAt(0)]=62,x["_".charCodeAt(0)]=63;function f(l){var t=l.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var a=l.indexOf("=");a===-1&&(a=t);var s=a===t?0:4-a%4;return[a,s]}function c(l){var t=f(l),a=t[0],s=t[1];return(a+s)*3/4-s}function o(l,t,a){return(t+a)*3/4-a}function r(l){var t,a=f(l),s=a[0],u=a[1],h=new C(o(l,s,u)),p=0,m=u>0?s-4:s,v;for(v=0;v<m;v+=4)t=x[l.charCodeAt(v)]<<18|x[l.charCodeAt(v+1)]<<12|x[l.charCodeAt(v+2)]<<6|x[l.charCodeAt(v+3)],h[p++]=t>>16&255,h[p++]=t>>8&255,h[p++]=t&255;return u===2&&(t=x[l.charCodeAt(v)]<<2|x[l.charCodeAt(v+1)]>>4,h[p++]=t&255),u===1&&(t=x[l.charCodeAt(v)]<<10|x[l.charCodeAt(v+1)]<<4|x[l.charCodeAt(v+2)]>>2,h[p++]=t>>8&255,h[p++]=t&255),h}function i(l){return O[l>>18&63]+O[l>>12&63]+O[l>>6&63]+O[l&63]}function n(l,t,a){for(var s,u=[],h=t;h<a;h+=3)s=(l[h]<<16&16711680)+(l[h+1]<<8&65280)+(l[h+2]&255),u.push(i(s));return u.join("")}function e(l){for(var t,a=l.length,s=a%3,u=[],h=16383,p=0,m=a-s;p<m;p+=h)u.push(n(l,p,p+h>m?m:p+h));return s===1?(t=l[a-1],u.push(O[t>>2]+O[t<<4&63]+"==")):s===2&&(t=(l[a-2]<<8)+l[a-1],u.push(O[t>>10]+O[t>>4&63]+O[t<<2&63]+"=")),u.join("")}},{}],70:[function(H,k,d){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(O,x,C){typeof k!="undefined"&&k.exports?k.exports=C():typeof define=="function"&&define.amd?define(x,C):O[x]=C()}(this,"bowser",function(){var O=!0;function x(o){function r(U){var B=o.match(U);return B&&B.length>1&&B[1]||""}function i(U){var B=o.match(U);return B&&B.length>1&&B[2]||""}var n=r(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(o),l=!e&&/android/i.test(o),t=/nexus\s*[0-6]\s*/i.test(o),a=!t&&/nexus\s*[0-9]+/i.test(o),s=/CrOS/.test(o),u=/silk/i.test(o),h=/sailfish/i.test(o),p=/tizen/i.test(o),m=/(web|hpw)(o|0)s/i.test(o),v=/windows phone/i.test(o),y=/SamsungBrowser/i.test(o),E=!v&&/windows/i.test(o),T=!n&&!u&&/macintosh/i.test(o),w=!l&&!h&&!p&&!m&&/linux/i.test(o),S=i(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),_=r(/version\/(\d+(\.\d+)?)/i),I=/tablet/i.test(o)&&!/tablet pc/i.test(o),L=!I&&/[^-]mobi/i.test(o),N=/xbox/i.test(o),R;/opera/i.test(o)?R={name:"Opera",opera:O,version:_||r(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(o)?R={name:"Opera",opera:O,version:r(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||_}:/SamsungBrowser/i.test(o)?R={name:"Samsung Internet for Android",samsungBrowser:O,version:_||r(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(o)?R={name:"NAVER Whale browser",whale:O,version:r(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(o)?R={name:"MZ Browser",mzbrowser:O,version:r(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(o)?R={name:"Opera Coast",coast:O,version:_||r(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(o)?R={name:"Focus",focus:O,version:r(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(o)?R={name:"Yandex Browser",yandexbrowser:O,version:_||r(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(o)?R={name:"UC Browser",ucbrowser:O,version:r(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(o)?R={name:"Maxthon",maxthon:O,version:r(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(o)?R={name:"Epiphany",epiphany:O,version:r(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(o)?R={name:"Puffin",puffin:O,version:r(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(o)?R={name:"Sleipnir",sleipnir:O,version:r(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(o)?R={name:"K-Meleon",kMeleon:O,version:r(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:v?(R={name:"Windows Phone",osname:"Windows Phone",windowsphone:O},S?(R.msedge=O,R.version=S):(R.msie=O,R.version=r(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(o)?R={name:"Internet Explorer",msie:O,version:r(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:s?R={name:"Chrome",osname:"Chrome OS",chromeos:O,chromeBook:O,chrome:O,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(o)?R={name:"Microsoft Edge",msedge:O,version:S}:/vivaldi/i.test(o)?R={name:"Vivaldi",vivaldi:O,version:r(/vivaldi\/(\d+(\.\d+)?)/i)||_}:h?R={name:"Sailfish",osname:"Sailfish OS",sailfish:O,version:r(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(o)?R={name:"SeaMonkey",seamonkey:O,version:r(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(o)?(R={name:"Firefox",firefox:O,version:r(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(o)&&(R.firefoxos=O,R.osname="Firefox OS")):u?R={name:"Amazon Silk",silk:O,version:r(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(o)?R={name:"PhantomJS",phantom:O,version:r(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(o)?R={name:"SlimerJS",slimer:O,version:r(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(o)||/rim\stablet/i.test(o)?R={name:"BlackBerry",osname:"BlackBerry OS",blackberry:O,version:_||r(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:m?(R={name:"WebOS",osname:"WebOS",webos:O,version:_||r(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(o)&&(R.touchpad=O)):/bada/i.test(o)?R={name:"Bada",osname:"Bada",bada:O,version:r(/dolfin\/(\d+(\.\d+)?)/i)}:p?R={name:"Tizen",osname:"Tizen",tizen:O,version:r(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||_}:/qupzilla/i.test(o)?R={name:"QupZilla",qupzilla:O,version:r(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||_}:/chromium/i.test(o)?R={name:"Chromium",chromium:O,version:r(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||_}:/chrome|crios|crmo/i.test(o)?R={name:"Chrome",chrome:O,version:r(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:l?R={name:"Android",version:_}:/safari|applewebkit/i.test(o)?(R={name:"Safari",safari:O},_&&(R.version=_)):n?(R={name:n=="iphone"?"iPhone":n=="ipad"?"iPad":"iPod"},_&&(R.version=_)):/googlebot/i.test(o)?R={name:"Googlebot",googlebot:O,version:r(/googlebot\/(\d+(\.\d+))/i)||_}:R={name:r(/^(.*)\/(.*) /),version:i(/^(.*)\/(.*) /)},!R.msedge&&/(apple)?webkit/i.test(o)?(/(apple)?webkit\/537\.36/i.test(o)?(R.name=R.name||"Blink",R.blink=O):(R.name=R.name||"Webkit",R.webkit=O),!R.version&&_&&(R.version=_)):!R.opera&&/gecko\//i.test(o)&&(R.name=R.name||"Gecko",R.gecko=O,R.version=R.version||r(/gecko\/(\d+(\.\d+)?)/i)),!R.windowsphone&&(l||R.silk)?(R.android=O,R.osname="Android"):!R.windowsphone&&n?(R[n]=O,R.ios=O,R.osname="iOS"):T?(R.mac=O,R.osname="macOS"):N?(R.xbox=O,R.osname="Xbox"):E?(R.windows=O,R.osname="Windows"):w&&(R.linux=O,R.osname="Linux");function D(U){switch(U){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}var F="";R.windows?F=D(r(/Windows ((NT|XP)( \d\d?.\d)?)/i)):R.windowsphone?F=r(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):R.mac?(F=r(/Mac OS X (\d+([_\.\s]\d+)*)/i),F=F.replace(/[_\s]/g,".")):n?(F=r(/os (\d+([_\s]\d+)*) like mac os x/i),F=F.replace(/[_\s]/g,".")):l?F=r(/android[ \/-](\d+(\.\d+)*)/i):R.webos?F=r(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):R.blackberry?F=r(/rim\stablet\sos\s(\d+(\.\d+)*)/i):R.bada?F=r(/bada\/(\d+(\.\d+)*)/i):R.tizen&&(F=r(/tizen[\/\s](\d+(\.\d+)*)/i)),F&&(R.osversion=F);var M=!R.windows&&F.split(".")[0];return I||a||n=="ipad"||l&&(M==3||M>=4&&!L)||R.silk?R.tablet=O:(L||n=="iphone"||n=="ipod"||l||t||R.blackberry||R.webos||R.bada)&&(R.mobile=O),R.msedge||R.msie&&R.version>=10||R.yandexbrowser&&R.version>=15||R.vivaldi&&R.version>=1||R.chrome&&R.version>=20||R.samsungBrowser&&R.version>=4||R.whale&&g([R.version,"1.0"])===1||R.mzbrowser&&g([R.version,"6.0"])===1||R.focus&&g([R.version,"1.0"])===1||R.firefox&&R.version>=20||R.safari&&R.version>=6||R.opera&&R.version>=10||R.ios&&R.osversion&&R.osversion.split(".")[0]>=6||R.blackberry&&R.version>=10.1||R.chromium&&R.version>=20?R.a=O:R.msie&&R.version<10||R.chrome&&R.version<20||R.firefox&&R.version<20||R.safari&&R.version<6||R.opera&&R.version<10||R.ios&&R.osversion&&R.osversion.split(".")[0]<6||R.chromium&&R.version<20?R.c=O:R.x=O,R}var C=x(typeof navigator!="undefined"&&navigator.userAgent||"");C.test=function(o){for(var r=0;r<o.length;++r){var i=o[r];if(typeof i=="string"&&i in C)return!0}return!1};function A(o){return o.split(".").length}function b(o,r){var i=[],n;if(Array.prototype.map)return Array.prototype.map.call(o,r);for(n=0;n<o.length;n++)i.push(r(o[n]));return i}function g(o){for(var r=Math.max(A(o[0]),A(o[1])),i=b(o,function(n){var e=r-A(n);return n=n+new Array(e+1).join(".0"),b(n.split("."),function(l){return new Array(20-l.length).join("0")+l}).reverse()});--r>=0;){if(i[0][r]>i[1][r])return 1;if(i[0][r]===i[1][r]){if(r===0)return 0}else return-1}}function f(o,r,i){var n=C;typeof r=="string"&&(i=r,r=void 0),r===void 0&&(r=!1),i&&(n=x(i));var e=""+n.version;for(var l in o)if(o.hasOwnProperty(l)&&n[l]){if(typeof o[l]!="string")throw new Error("Browser version in the minVersion map should be a string: "+l+": "+String(o));return g([e,o[l]])<0}return r}function c(o,r,i){return!f(o,r,i)}return C.isUnsupportedBrowser=f,C.compareVersions=g,C.check=c,C._detect=x,C.detect=x,C})},{}],71:[function(H,k,d){},{}],72:[function(H,k,d){var O=H("buffer").Buffer,x=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&&!x(c))throw new Error("Unknown encoding: "+c)}var A=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=g;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=f;break;default:this.write=b;return}this.charBuffer=new O(6),this.charReceived=0,this.charLength=0};A.prototype.write=function(c){for(var o="";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),o=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var n=o.charCodeAt(o.length-1);if(n>=55296&&n<=56319){this.charLength+=this.surrogateSize,o="";continue}if(this.charReceived=this.charLength=0,c.length===0)return o;break}this.detectIncompleteChar(c);var i=c.length;this.charLength&&(c.copy(this.charBuffer,0,c.length-this.charReceived,i),i-=this.charReceived),o+=c.toString(this.encoding,0,i);var i=o.length-1,n=o.charCodeAt(i);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),o.substring(0,i)}return o},A.prototype.detectIncompleteChar=function(c){for(var o=c.length>=3?3:c.length;o>0;o--){var r=c[c.length-o];if(o==1&&r>>5==6){this.charLength=2;break}if(o<=2&&r>>4==14){this.charLength=3;break}if(o<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=o},A.prototype.end=function(c){var o="";if(c&&c.length&&(o=this.write(c)),this.charReceived){var r=this.charReceived,i=this.charBuffer,n=this.encoding;o+=i.slice(0,r).toString(n)}return o};function b(c){return c.toString(this.encoding)}function g(c){this.charReceived=c.length%2,this.charLength=this.charReceived?2:0}function f(c){this.charReceived=c.length%3,this.charLength=this.charReceived?3:0}},{buffer:73}],73:[function(H,k,d){(function(O,x){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var C=H("base64-js"),A=H("ieee754"),b=H("isarray");d.Buffer=x,d.SlowBuffer=u,d.INSPECT_MAX_BYTES=50,x.TYPED_ARRAY_SUPPORT=O.TYPED_ARRAY_SUPPORT!==void 0?O.TYPED_ARRAY_SUPPORT:g(),d.kMaxLength=f();function g(){try{var oe=new Uint8Array(1);return oe.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},oe.foo()===42&&typeof oe.subarray=="function"&&oe.subarray(1,1).byteLength===0}catch(Y){return!1}}function f(){return x.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(oe,Y){if(f()<Y)throw new RangeError("Invalid typed array length");return x.TYPED_ARRAY_SUPPORT?(oe=new Uint8Array(Y),oe.__proto__=x.prototype):(oe===null&&(oe=new x(Y)),oe.length=Y),oe}function x(oe,Y,G){if(!x.TYPED_ARRAY_SUPPORT&&!(this instanceof x))return new x(oe,Y,G);if(typeof oe=="number"){if(typeof Y=="string")throw new Error("If encoding is specified then the first argument must be a string");return n(this,oe)}return o(this,oe,Y,G)}x.poolSize=8192,x._augment=function(oe){return oe.__proto__=x.prototype,oe};function o(oe,Y,G,Q){if(typeof Y=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Y instanceof ArrayBuffer?t(oe,Y,G,Q):typeof Y=="string"?e(oe,Y,G):a(oe,Y)}x.from=function(oe,Y,G){return o(null,oe,Y,G)},x.TYPED_ARRAY_SUPPORT&&(x.prototype.__proto__=Uint8Array.prototype,x.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&x[Symbol.species]===x&&Object.defineProperty(x,Symbol.species,{value:null,configurable:!0}));function r(oe){if(typeof oe!="number")throw new TypeError('"size" argument must be a number');if(oe<0)throw new RangeError('"size" argument must not be negative')}function i(oe,Y,G,Q){return r(Y),Y<=0?c(oe,Y):G!==void 0?typeof Q=="string"?c(oe,Y).fill(G,Q):c(oe,Y).fill(G):c(oe,Y)}x.alloc=function(oe,Y,G){return i(null,oe,Y,G)};function n(oe,Y){if(r(Y),oe=c(oe,Y<0?0:s(Y)|0),!x.TYPED_ARRAY_SUPPORT)for(var G=0;G<Y;++G)oe[G]=0;return oe}x.allocUnsafe=function(oe){return n(null,oe)},x.allocUnsafeSlow=function(oe){return n(null,oe)};function e(oe,Y,G){if((typeof G!="string"||G==="")&&(G="utf8"),!x.isEncoding(G))throw new TypeError('"encoding" must be a valid string encoding');var Q=h(Y,G)|0;oe=c(oe,Q);var ye=oe.write(Y,G);return ye!==Q&&(oe=oe.slice(0,ye)),oe}function l(oe,Y){var G=Y.length<0?0:s(Y.length)|0;oe=c(oe,G);for(var Q=0;Q<G;Q+=1)oe[Q]=Y[Q]&255;return oe}function t(oe,Y,G,Q){if(Y.byteLength,G<0||Y.byteLength<G)throw new RangeError("'offset' is out of bounds");if(Y.byteLength<G+(Q||0))throw new RangeError("'length' is out of bounds");return G===void 0&&Q===void 0?Y=new Uint8Array(Y):Q===void 0?Y=new Uint8Array(Y,G):Y=new Uint8Array(Y,G,Q),x.TYPED_ARRAY_SUPPORT?(oe=Y,oe.__proto__=x.prototype):oe=l(oe,Y),oe}function a(oe,Y){if(x.isBuffer(Y)){var G=s(Y.length)|0;return oe=c(oe,G),oe.length===0||Y.copy(oe,0,0,G),oe}if(Y){if(typeof ArrayBuffer!="undefined"&&Y.buffer instanceof ArrayBuffer||"length"in Y)return typeof Y.length!="number"||Ge(Y.length)?c(oe,0):l(oe,Y);if(Y.type==="Buffer"&&b(Y.data))return l(oe,Y.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function s(oe){if(oe>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return oe|0}function u(oe){return+oe!=oe&&(oe=0),x.alloc(+oe)}x.isBuffer=function(Y){return!!(Y!=null&&Y._isBuffer)},x.compare=function(Y,G){if(!x.isBuffer(Y)||!x.isBuffer(G))throw new TypeError("Arguments must be Buffers");if(Y===G)return 0;for(var Q=Y.length,ye=G.length,ce=0,Te=Math.min(Q,ye);ce<Te;++ce)if(Y[ce]!==G[ce]){Q=Y[ce],ye=G[ce];break}return Q<ye?-1:ye<Q?1:0},x.isEncoding=function(Y){switch(String(Y).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}},x.concat=function(Y,G){if(!b(Y))throw new TypeError('"list" argument must be an Array of Buffers');if(Y.length===0)return x.alloc(0);var Q;if(G===void 0)for(G=0,Q=0;Q<Y.length;++Q)G+=Y[Q].length;var ye=x.allocUnsafe(G),ce=0;for(Q=0;Q<Y.length;++Q){var Te=Y[Q];if(!x.isBuffer(Te))throw new TypeError('"list" argument must be an Array of Buffers');Te.copy(ye,ce),ce+=Te.length}return ye};function h(oe,Y){if(x.isBuffer(oe))return oe.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(oe)||oe instanceof ArrayBuffer))return oe.byteLength;typeof oe!="string"&&(oe=""+oe);var G=oe.length;if(G===0)return 0;for(var Q=!1;;)switch(Y){case"ascii":case"latin1":case"binary":return G;case"utf8":case"utf-8":case void 0:return He(oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G*2;case"hex":return G>>>1;case"base64":return se(oe).length;default:if(Q)return He(oe).length;Y=(""+Y).toLowerCase(),Q=!0}}x.byteLength=h;function p(oe,Y,G){var Q=!1;if((Y===void 0||Y<0)&&(Y=0),Y>this.length)return"";if((G===void 0||G>this.length)&&(G=this.length),G<=0)return"";if(G>>>=0,Y>>>=0,G<=Y)return"";for(oe||(oe="utf8");;)switch(oe){case"hex":return U(this,Y,G);case"utf8":case"utf-8":return N(this,Y,G);case"ascii":return F(this,Y,G);case"latin1":case"binary":return M(this,Y,G);case"base64":return L(this,Y,G);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,Y,G);default:if(Q)throw new TypeError("Unknown encoding: "+oe);oe=(oe+"").toLowerCase(),Q=!0}}x.prototype._isBuffer=!0;function m(oe,Y,G){var Q=oe[Y];oe[Y]=oe[G],oe[G]=Q}x.prototype.swap16=function(){var Y=this.length;if(Y%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var G=0;G<Y;G+=2)m(this,G,G+1);return this},x.prototype.swap32=function(){var Y=this.length;if(Y%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var G=0;G<Y;G+=4)m(this,G,G+3),m(this,G+1,G+2);return this},x.prototype.swap64=function(){var Y=this.length;if(Y%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var G=0;G<Y;G+=8)m(this,G,G+7),m(this,G+1,G+6),m(this,G+2,G+5),m(this,G+3,G+4);return this},x.prototype.toString=function(){var Y=this.length|0;return Y===0?"":arguments.length===0?N(this,0,Y):p.apply(this,arguments)},x.prototype.equals=function(Y){if(!x.isBuffer(Y))throw new TypeError("Argument must be a Buffer");return this===Y?!0:x.compare(this,Y)===0},x.prototype.inspect=function(){var Y="",G=d.INSPECT_MAX_BYTES;return this.length>0&&(Y=this.toString("hex",0,G).match(/.{2}/g).join(" "),this.length>G&&(Y+=" ... ")),"<Buffer "+Y+">"},x.prototype.compare=function(Y,G,Q,ye,ce){if(!x.isBuffer(Y))throw new TypeError("Argument must be a Buffer");if(G===void 0&&(G=0),Q===void 0&&(Q=Y?Y.length:0),ye===void 0&&(ye=0),ce===void 0&&(ce=this.length),G<0||Q>Y.length||ye<0||ce>this.length)throw new RangeError("out of range index");if(ye>=ce&&G>=Q)return 0;if(ye>=ce)return-1;if(G>=Q)return 1;if(G>>>=0,Q>>>=0,ye>>>=0,ce>>>=0,this===Y)return 0;for(var Te=ce-ye,Se=Q-G,le=Math.min(Te,Se),fe=this.slice(ye,ce),Ee=Y.slice(G,Q),Ve=0;Ve<le;++Ve)if(fe[Ve]!==Ee[Ve]){Te=fe[Ve],Se=Ee[Ve];break}return Te<Se?-1:Se<Te?1:0};function v(oe,Y,G,Q,ye){if(oe.length===0)return-1;if(typeof G=="string"?(Q=G,G=0):G>2147483647?G=2147483647:G<-2147483648&&(G=-2147483648),G=+G,isNaN(G)&&(G=ye?0:oe.length-1),G<0&&(G=oe.length+G),G>=oe.length){if(ye)return-1;G=oe.length-1}else if(G<0)if(ye)G=0;else return-1;if(typeof Y=="string"&&(Y=x.from(Y,Q)),x.isBuffer(Y))return Y.length===0?-1:y(oe,Y,G,Q,ye);if(typeof Y=="number")return Y=Y&255,x.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ye?Uint8Array.prototype.indexOf.call(oe,Y,G):Uint8Array.prototype.lastIndexOf.call(oe,Y,G):y(oe,[Y],G,Q,ye);throw new TypeError("val must be string, number or Buffer")}function y(oe,Y,G,Q,ye){var ce=1,Te=oe.length,Se=Y.length;if(Q!==void 0&&(Q=String(Q).toLowerCase(),Q==="ucs2"||Q==="ucs-2"||Q==="utf16le"||Q==="utf-16le")){if(oe.length<2||Y.length<2)return-1;ce=2,Te/=2,Se/=2,G/=2}function le(et,Oe){return ce===1?et[Oe]:et.readUInt16BE(Oe*ce)}var fe;if(ye){var Ee=-1;for(fe=G;fe<Te;fe++)if(le(oe,fe)===le(Y,Ee===-1?0:fe-Ee)){if(Ee===-1&&(Ee=fe),fe-Ee+1===Se)return Ee*ce}else Ee!==-1&&(fe-=fe-Ee),Ee=-1}else for(G+Se>Te&&(G=Te-Se),fe=G;fe>=0;fe--){for(var Ve=!0,vt=0;vt<Se;vt++)if(le(oe,fe+vt)!==le(Y,vt)){Ve=!1;break}if(Ve)return fe}return-1}x.prototype.includes=function(Y,G,Q){return this.indexOf(Y,G,Q)!==-1},x.prototype.indexOf=function(Y,G,Q){return v(this,Y,G,Q,!0)},x.prototype.lastIndexOf=function(Y,G,Q){return v(this,Y,G,Q,!1)};function E(oe,Y,G,Q){G=Number(G)||0;var ye=oe.length-G;Q?(Q=Number(Q),Q>ye&&(Q=ye)):Q=ye;var ce=Y.length;if(ce%2!==0)throw new TypeError("Invalid hex string");Q>ce/2&&(Q=ce/2);for(var Te=0;Te<Q;++Te){var Se=parseInt(Y.substr(Te*2,2),16);if(isNaN(Se))return Te;oe[G+Te]=Se}return Te}function T(oe,Y,G,Q){return te(He(Y,oe.length-G),oe,G,Q)}function w(oe,Y,G,Q){return te(me(Y),oe,G,Q)}function S(oe,Y,G,Q){return w(oe,Y,G,Q)}function _(oe,Y,G,Q){return te(se(Y),oe,G,Q)}function I(oe,Y,G,Q){return te(ke(Y,oe.length-G),oe,G,Q)}x.prototype.write=function(Y,G,Q,ye){if(G===void 0)ye="utf8",Q=this.length,G=0;else if(Q===void 0&&typeof G=="string")ye=G,Q=this.length,G=0;else if(isFinite(G))G=G|0,isFinite(Q)?(Q=Q|0,ye===void 0&&(ye="utf8")):(ye=Q,Q=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var ce=this.length-G;if((Q===void 0||Q>ce)&&(Q=ce),Y.length>0&&(Q<0||G<0)||G>this.length)throw new RangeError("Attempt to write outside buffer bounds");ye||(ye="utf8");for(var Te=!1;;)switch(ye){case"hex":return E(this,Y,G,Q);case"utf8":case"utf-8":return T(this,Y,G,Q);case"ascii":return w(this,Y,G,Q);case"latin1":case"binary":return S(this,Y,G,Q);case"base64":return _(this,Y,G,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,Y,G,Q);default:if(Te)throw new TypeError("Unknown encoding: "+ye);ye=(""+ye).toLowerCase(),Te=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(oe,Y,G){return Y===0&&G===oe.length?C.fromByteArray(oe):C.fromByteArray(oe.slice(Y,G))}function N(oe,Y,G){G=Math.min(oe.length,G);for(var Q=[],ye=Y;ye<G;){var ce=oe[ye],Te=null,Se=ce>239?4:ce>223?3:ce>191?2:1;if(ye+Se<=G){var le,fe,Ee,Ve;switch(Se){case 1:ce<128&&(Te=ce);break;case 2:le=oe[ye+1],(le&192)===128&&(Ve=(ce&31)<<6|le&63,Ve>127&&(Te=Ve));break;case 3:le=oe[ye+1],fe=oe[ye+2],(le&192)===128&&(fe&192)===128&&(Ve=(ce&15)<<12|(le&63)<<6|fe&63,Ve>2047&&(Ve<55296||Ve>57343)&&(Te=Ve));break;case 4:le=oe[ye+1],fe=oe[ye+2],Ee=oe[ye+3],(le&192)===128&&(fe&192)===128&&(Ee&192)===128&&(Ve=(ce&15)<<18|(le&63)<<12|(fe&63)<<6|Ee&63,Ve>65535&&Ve<1114112&&(Te=Ve))}}Te===null?(Te=65533,Se=1):Te>65535&&(Te-=65536,Q.push(Te>>>10&1023|55296),Te=56320|Te&1023),Q.push(Te),ye+=Se}return D(Q)}var R=4096;function D(oe){var Y=oe.length;if(Y<=R)return String.fromCharCode.apply(String,oe);for(var G="",Q=0;Q<Y;)G+=String.fromCharCode.apply(String,oe.slice(Q,Q+=R));return G}function F(oe,Y,G){var Q="";G=Math.min(oe.length,G);for(var ye=Y;ye<G;++ye)Q+=String.fromCharCode(oe[ye]&127);return Q}function M(oe,Y,G){var Q="";G=Math.min(oe.length,G);for(var ye=Y;ye<G;++ye)Q+=String.fromCharCode(oe[ye]);return Q}function U(oe,Y,G){var Q=oe.length;(!Y||Y<0)&&(Y=0),(!G||G<0||G>Q)&&(G=Q);for(var ye="",ce=Y;ce<G;++ce)ye+=Ie(oe[ce]);return ye}function B(oe,Y,G){for(var Q=oe.slice(Y,G),ye="",ce=0;ce<Q.length;ce+=2)ye+=String.fromCharCode(Q[ce]+Q[ce+1]*256);return ye}x.prototype.slice=function(Y,G){var Q=this.length;Y=~~Y,G=G===void 0?Q:~~G,Y<0?(Y+=Q,Y<0&&(Y=0)):Y>Q&&(Y=Q),G<0?(G+=Q,G<0&&(G=0)):G>Q&&(G=Q),G<Y&&(G=Y);var ye;if(x.TYPED_ARRAY_SUPPORT)ye=this.subarray(Y,G),ye.__proto__=x.prototype;else{var ce=G-Y;ye=new x(ce,void 0);for(var Te=0;Te<ce;++Te)ye[Te]=this[Te+Y]}return ye};function j(oe,Y,G){if(oe%1!==0||oe<0)throw new RangeError("offset is not uint");if(oe+Y>G)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUIntLE=function(Y,G,Q){Y=Y|0,G=G|0,Q||j(Y,G,this.length);for(var ye=this[Y],ce=1,Te=0;++Te<G&&(ce*=256);)ye+=this[Y+Te]*ce;return ye},x.prototype.readUIntBE=function(Y,G,Q){Y=Y|0,G=G|0,Q||j(Y,G,this.length);for(var ye=this[Y+--G],ce=1;G>0&&(ce*=256);)ye+=this[Y+--G]*ce;return ye},x.prototype.readUInt8=function(Y,G){return G||j(Y,1,this.length),this[Y]},x.prototype.readUInt16LE=function(Y,G){return G||j(Y,2,this.length),this[Y]|this[Y+1]<<8},x.prototype.readUInt16BE=function(Y,G){return G||j(Y,2,this.length),this[Y]<<8|this[Y+1]},x.prototype.readUInt32LE=function(Y,G){return G||j(Y,4,this.length),(this[Y]|this[Y+1]<<8|this[Y+2]<<16)+this[Y+3]*16777216},x.prototype.readUInt32BE=function(Y,G){return G||j(Y,4,this.length),this[Y]*16777216+(this[Y+1]<<16|this[Y+2]<<8|this[Y+3])},x.prototype.readIntLE=function(Y,G,Q){Y=Y|0,G=G|0,Q||j(Y,G,this.length);for(var ye=this[Y],ce=1,Te=0;++Te<G&&(ce*=256);)ye+=this[Y+Te]*ce;return ce*=128,ye>=ce&&(ye-=Math.pow(2,8*G)),ye},x.prototype.readIntBE=function(Y,G,Q){Y=Y|0,G=G|0,Q||j(Y,G,this.length);for(var ye=G,ce=1,Te=this[Y+--ye];ye>0&&(ce*=256);)Te+=this[Y+--ye]*ce;return ce*=128,Te>=ce&&(Te-=Math.pow(2,8*G)),Te},x.prototype.readInt8=function(Y,G){return G||j(Y,1,this.length),this[Y]&128?(255-this[Y]+1)*-1:this[Y]},x.prototype.readInt16LE=function(Y,G){G||j(Y,2,this.length);var Q=this[Y]|this[Y+1]<<8;return Q&32768?Q|4294901760:Q},x.prototype.readInt16BE=function(Y,G){G||j(Y,2,this.length);var Q=this[Y+1]|this[Y]<<8;return Q&32768?Q|4294901760:Q},x.prototype.readInt32LE=function(Y,G){return G||j(Y,4,this.length),this[Y]|this[Y+1]<<8|this[Y+2]<<16|this[Y+3]<<24},x.prototype.readInt32BE=function(Y,G){return G||j(Y,4,this.length),this[Y]<<24|this[Y+1]<<16|this[Y+2]<<8|this[Y+3]},x.prototype.readFloatLE=function(Y,G){return G||j(Y,4,this.length),A.read(this,Y,!0,23,4)},x.prototype.readFloatBE=function(Y,G){return G||j(Y,4,this.length),A.read(this,Y,!1,23,4)},x.prototype.readDoubleLE=function(Y,G){return G||j(Y,8,this.length),A.read(this,Y,!0,52,8)},x.prototype.readDoubleBE=function(Y,G){return G||j(Y,8,this.length),A.read(this,Y,!1,52,8)};function W(oe,Y,G,Q,ye,ce){if(!x.isBuffer(oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(Y>ye||Y<ce)throw new RangeError('"value" argument is out of bounds');if(G+Q>oe.length)throw new RangeError("Index out of range")}x.prototype.writeUIntLE=function(Y,G,Q,ye){if(Y=+Y,G=G|0,Q=Q|0,!ye){var ce=Math.pow(2,8*Q)-1;W(this,Y,G,Q,ce,0)}var Te=1,Se=0;for(this[G]=Y&255;++Se<Q&&(Te*=256);)this[G+Se]=Y/Te&255;return G+Q},x.prototype.writeUIntBE=function(Y,G,Q,ye){if(Y=+Y,G=G|0,Q=Q|0,!ye){var ce=Math.pow(2,8*Q)-1;W(this,Y,G,Q,ce,0)}var Te=Q-1,Se=1;for(this[G+Te]=Y&255;--Te>=0&&(Se*=256);)this[G+Te]=Y/Se&255;return G+Q},x.prototype.writeUInt8=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,1,255,0),x.TYPED_ARRAY_SUPPORT||(Y=Math.floor(Y)),this[G]=Y&255,G+1};function V(oe,Y,G,Q){Y<0&&(Y=65535+Y+1);for(var ye=0,ce=Math.min(oe.length-G,2);ye<ce;++ye)oe[G+ye]=(Y&255<<8*(Q?ye:1-ye))>>>(Q?ye:1-ye)*8}x.prototype.writeUInt16LE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[G]=Y&255,this[G+1]=Y>>>8):V(this,Y,G,!0),G+2},x.prototype.writeUInt16BE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>8,this[G+1]=Y&255):V(this,Y,G,!1),G+2};function z(oe,Y,G,Q){Y<0&&(Y=4294967295+Y+1);for(var ye=0,ce=Math.min(oe.length-G,4);ye<ce;++ye)oe[G+ye]=Y>>>(Q?ye:3-ye)*8&255}x.prototype.writeUInt32LE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[G+3]=Y>>>24,this[G+2]=Y>>>16,this[G+1]=Y>>>8,this[G]=Y&255):z(this,Y,G,!0),G+4},x.prototype.writeUInt32BE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>24,this[G+1]=Y>>>16,this[G+2]=Y>>>8,this[G+3]=Y&255):z(this,Y,G,!1),G+4},x.prototype.writeIntLE=function(Y,G,Q,ye){if(Y=+Y,G=G|0,!ye){var ce=Math.pow(2,8*Q-1);W(this,Y,G,Q,ce-1,-ce)}var Te=0,Se=1,le=0;for(this[G]=Y&255;++Te<Q&&(Se*=256);)Y<0&&le===0&&this[G+Te-1]!==0&&(le=1),this[G+Te]=(Y/Se>>0)-le&255;return G+Q},x.prototype.writeIntBE=function(Y,G,Q,ye){if(Y=+Y,G=G|0,!ye){var ce=Math.pow(2,8*Q-1);W(this,Y,G,Q,ce-1,-ce)}var Te=Q-1,Se=1,le=0;for(this[G+Te]=Y&255;--Te>=0&&(Se*=256);)Y<0&&le===0&&this[G+Te+1]!==0&&(le=1),this[G+Te]=(Y/Se>>0)-le&255;return G+Q},x.prototype.writeInt8=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,1,127,-128),x.TYPED_ARRAY_SUPPORT||(Y=Math.floor(Y)),Y<0&&(Y=255+Y+1),this[G]=Y&255,G+1},x.prototype.writeInt16LE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[G]=Y&255,this[G+1]=Y>>>8):V(this,Y,G,!0),G+2},x.prototype.writeInt16BE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>8,this[G+1]=Y&255):V(this,Y,G,!1),G+2},x.prototype.writeInt32LE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,4,2147483647,-2147483648),x.TYPED_ARRAY_SUPPORT?(this[G]=Y&255,this[G+1]=Y>>>8,this[G+2]=Y>>>16,this[G+3]=Y>>>24):z(this,Y,G,!0),G+4},x.prototype.writeInt32BE=function(Y,G,Q){return Y=+Y,G=G|0,Q||W(this,Y,G,4,2147483647,-2147483648),Y<0&&(Y=4294967295+Y+1),x.TYPED_ARRAY_SUPPORT?(this[G]=Y>>>24,this[G+1]=Y>>>16,this[G+2]=Y>>>8,this[G+3]=Y&255):z(this,Y,G,!1),G+4};function J(oe,Y,G,Q,ye,ce){if(G+Q>oe.length)throw new RangeError("Index out of range");if(G<0)throw new RangeError("Index out of range")}function q(oe,Y,G,Q,ye){return ye||J(oe,Y,G,4,34028234663852886e22,-34028234663852886e22),A.write(oe,Y,G,Q,23,4),G+4}x.prototype.writeFloatLE=function(Y,G,Q){return q(this,Y,G,!0,Q)},x.prototype.writeFloatBE=function(Y,G,Q){return q(this,Y,G,!1,Q)};function de(oe,Y,G,Q,ye){return ye||J(oe,Y,G,8,17976931348623157e292,-17976931348623157e292),A.write(oe,Y,G,Q,52,8),G+8}x.prototype.writeDoubleLE=function(Y,G,Q){return de(this,Y,G,!0,Q)},x.prototype.writeDoubleBE=function(Y,G,Q){return de(this,Y,G,!1,Q)},x.prototype.copy=function(Y,G,Q,ye){if(Q||(Q=0),!ye&&ye!==0&&(ye=this.length),G>=Y.length&&(G=Y.length),G||(G=0),ye>0&&ye<Q&&(ye=Q),ye===Q)return 0;if(Y.length===0||this.length===0)return 0;if(G<0)throw new RangeError("targetStart out of bounds");if(Q<0||Q>=this.length)throw new RangeError("sourceStart out of bounds");if(ye<0)throw new RangeError("sourceEnd out of bounds");ye>this.length&&(ye=this.length),Y.length-G<ye-Q&&(ye=Y.length-G+Q);var ce=ye-Q,Te;if(this===Y&&Q<G&&G<ye)for(Te=ce-1;Te>=0;--Te)Y[Te+G]=this[Te+Q];else if(ce<1e3||!x.TYPED_ARRAY_SUPPORT)for(Te=0;Te<ce;++Te)Y[Te+G]=this[Te+Q];else Uint8Array.prototype.set.call(Y,this.subarray(Q,Q+ce),G);return ce},x.prototype.fill=function(Y,G,Q,ye){if(typeof Y=="string"){if(typeof G=="string"?(ye=G,G=0,Q=this.length):typeof Q=="string"&&(ye=Q,Q=this.length),Y.length===1){var ce=Y.charCodeAt(0);ce<256&&(Y=ce)}if(ye!==void 0&&typeof ye!="string")throw new TypeError("encoding must be a string");if(typeof ye=="string"&&!x.isEncoding(ye))throw new TypeError("Unknown encoding: "+ye)}else typeof Y=="number"&&(Y=Y&255);if(G<0||this.length<G||this.length<Q)throw new RangeError("Out of range index");if(Q<=G)return this;G=G>>>0,Q=Q===void 0?this.length:Q>>>0,Y||(Y=0);var Te;if(typeof Y=="number")for(Te=G;Te<Q;++Te)this[Te]=Y;else{var Se=x.isBuffer(Y)?Y:He(new x(Y,ye).toString()),le=Se.length;for(Te=0;Te<Q-G;++Te)this[Te+G]=Se[Te%le]}return this};var ae=/[^+\/0-9A-Za-z-_]/g;function ve(oe){if(oe=_e(oe).replace(ae,""),oe.length<2)return"";for(;oe.length%4!==0;)oe=oe+"=";return oe}function _e(oe){return oe.trim?oe.trim():oe.replace(/^\s+|\s+$/g,"")}function Ie(oe){return oe<16?"0"+oe.toString(16):oe.toString(16)}function He(oe,Y){Y=Y||Infinity;for(var G,Q=oe.length,ye=null,ce=[],Te=0;Te<Q;++Te){if(G=oe.charCodeAt(Te),G>55295&&G<57344){if(!ye){if(G>56319){(Y-=3)>-1&&ce.push(239,191,189);continue}else if(Te+1===Q){(Y-=3)>-1&&ce.push(239,191,189);continue}ye=G;continue}if(G<56320){(Y-=3)>-1&&ce.push(239,191,189),ye=G;continue}G=(ye-55296<<10|G-56320)+65536}else ye&&((Y-=3)>-1&&ce.push(239,191,189));if(ye=null,G<128){if((Y-=1)<0)break;ce.push(G)}else if(G<2048){if((Y-=2)<0)break;ce.push(G>>6|192,G&63|128)}else if(G<65536){if((Y-=3)<0)break;ce.push(G>>12|224,G>>6&63|128,G&63|128)}else if(G<1114112){if((Y-=4)<0)break;ce.push(G>>18|240,G>>12&63|128,G>>6&63|128,G&63|128)}else throw new Error("Invalid code point")}return ce}function me(oe){for(var Y=[],G=0;G<oe.length;++G)Y.push(oe.charCodeAt(G)&255);return Y}function ke(oe,Y){for(var G,Q,ye,ce=[],Te=0;Te<oe.length&&!((Y-=2)<0);++Te)G=oe.charCodeAt(Te),Q=G>>8,ye=G%256,ce.push(ye),ce.push(Q);return ce}function se(oe){return C.toByteArray(ve(oe))}function te(oe,Y,G,Q){for(var ye=0;ye<Q&&!(ye+G>=Y.length||ye>=oe.length);++ye)Y[ye+G]=oe[ye];return ye}function Ge(oe){return oe!==oe}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},H("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(H,k,d){k.exports={"100":"Continue","101":"Switching Protocols","102":"Processing","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I'm a teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Unordered Collection","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}},{}],75:[function(H,k,d){k.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],76:[function(H,k,d){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var O=Array.prototype.slice;k.exports=x;function x(A,b){if(!(this instanceof x))return new x(A,b);this.src=A,this._withAccess=b}x.prototype.withAccess=function(A){return this._withAccess=A!==!1,this},x.prototype.pick=function(A){return Array.isArray(A)||(A=O.call(arguments)),A.length&&(this.keys=A),this},x.prototype.to=function(A){if(A=A||{},!this.src)return A;var b=this.keys||Object.keys(this.src);if(!this._withAccess){for(var g=0;g<b.length;g++){if(f=b[g],A[f]!==void 0)continue;A[f]=this.src[f]}return A}for(var g=0;g<b.length;g++){var f=b[g];if(!C(A,f))continue;var c=this.src.__lookupGetter__(f),o=this.src.__lookupSetter__(f);c&&A.__defineGetter__(f,c),o&&A.__defineSetter__(f,o),!c&&!o&&(A[f]=this.src[f])}return A},x.prototype.toCover=function(A){for(var b=this.keys||Object.keys(this.src),g=0;g<b.length;g++){var f=b[g];delete A[f];var c=this.src.__lookupGetter__(f),o=this.src.__lookupSetter__(f);c&&A.__defineGetter__(f,c),o&&A.__defineSetter__(f,o),!c&&!o&&(A[f]=this.src[f])}},x.prototype.override=x.prototype.toCover,x.prototype.and=function(A){var b={};return this.to(b),this.src=A,this.to(b),this.src=b,this};function C(A,b){return A[b]===void 0&&A.__lookupGetter__(b)===void 0&&A.__lookupSetter__(b)===void 0}},{}],77:[function(H,k,d){H("../../modules/es6.string.iterator"),H("../../modules/es6.array.from"),k.exports=H("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(H,k,d){var O=H("../../modules/_core"),x=O.JSON||(O.JSON={stringify:JSON.stringify});k.exports=function(A){return x.stringify.apply(x,arguments)}},{"../../modules/_core":99}],79:[function(H,k,d){H("../../modules/es6.object.assign"),k.exports=H("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(H,k,d){H("../../modules/es6.object.create");var O=H("../../modules/_core").Object;k.exports=function(C,A){return O.create(C,A)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(H,k,d){H("../../modules/es6.object.define-property");var O=H("../../modules/_core").Object;k.exports=function(C,A,b){return O.defineProperty(C,A,b)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(H,k,d){H("../../modules/es7.object.entries"),k.exports=H("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(H,k,d){H("../../modules/es6.object.get-own-property-names");var O=H("../../modules/_core").Object;k.exports=function(C){return O.getOwnPropertyNames(C)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(H,k,d){H("../../modules/es6.object.get-prototype-of"),k.exports=H("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(H,k,d){H("../../modules/es6.object.keys"),k.exports=H("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(H,k,d){H("../modules/es6.object.to-string"),H("../modules/es6.string.iterator"),H("../modules/web.dom.iterable"),H("../modules/es6.promise"),H("../modules/es7.promise.finally"),H("../modules/es7.promise.try"),k.exports=H("../modules/_core").Promise},{"../modules/_core":99,"../modules/es6.object.to-string":177,"../modules/es6.promise":178,"../modules/es6.string.iterator":180,"../modules/es7.promise.finally":183,"../modules/es7.promise.try":184,"../modules/web.dom.iterable":187}],87:[function(H,k,d){H("../modules/web.immediate"),k.exports=H("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(H,k,d){H("../../modules/es6.string.from-code-point"),k.exports=H("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(H,k,d){H("../../modules/es6.function.has-instance"),k.exports=H("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(H,k,d){H("../../modules/es6.symbol"),H("../../modules/es6.object.to-string"),H("../../modules/es7.symbol.async-iterator"),H("../../modules/es7.symbol.observable"),k.exports=H("../../modules/_core").Symbol},{"../../modules/_core":99,"../../modules/es6.object.to-string":177,"../../modules/es6.symbol":181,"../../modules/es7.symbol.async-iterator":185,"../../modules/es7.symbol.observable":186}],91:[function(H,k,d){H("../../modules/es6.string.iterator"),H("../../modules/web.dom.iterable"),k.exports=H("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(H,k,d){k.exports=function(O){if(typeof O!="function")throw TypeError(O+" is not a function!");return O}},{}],93:[function(H,k,d){k.exports=function(){}},{}],94:[function(H,k,d){k.exports=function(O,x,C,A){if(!(O instanceof x)||A!==void 0&&A in O)throw TypeError(C+": incorrect invocation!");return O}},{}],95:[function(H,k,d){var O=H("./_is-object");k.exports=function(x){if(!O(x))throw TypeError(x+" is not an object!");return x}},{"./_is-object":119}],96:[function(H,k,d){var O=H("./_to-iobject"),x=H("./_to-length"),C=H("./_to-absolute-index");k.exports=function(A){return function(b,g,f){var c=O(b),o=x(c.length),r=C(f,o),i;if(A&&g!=g){for(;o>r;)if(i=c[r++],i!=i)return!0}else for(;o>r;r++)if((A||r in c)&&c[r]===g)return A||r||0;return!A&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(H,k,d){var O=H("./_cof"),x=H("./_wks")("toStringTag"),C=O(function(){return arguments}())=="Arguments",A=function(g,f){try{return g[f]}catch(c){}};k.exports=function(b){var g,f,c;return b===void 0?"Undefined":b===null?"Null":typeof(f=A(g=Object(b),x))=="string"?f:C?O(g):(c=O(g))=="Object"&&typeof g.callee=="function"?"Arguments":c}},{"./_cof":98,"./_wks":166}],98:[function(H,k,d){var O={}.toString;k.exports=function(x){return O.call(x).slice(8,-1)}},{}],99:[function(H,k,d){var O=k.exports={version:"2.6.11"};typeof __e=="number"&&(__e=O)},{}],100:[function(H,k,d){"use strict";var O=H("./_object-dp"),x=H("./_property-desc");k.exports=function(C,A,b){A in C?O.f(C,A,x(0,b)):C[A]=b}},{"./_object-dp":132,"./_property-desc":146}],101:[function(H,k,d){var O=H("./_a-function");k.exports=function(x,C,A){if(O(x),C===void 0)return x;switch(A){case 1:return function(b){return x.call(C,b)};case 2:return function(b,g){return x.call(C,b,g)};case 3:return function(b,g,f){return x.call(C,b,g,f)}}return function(){return x.apply(C,arguments)}}},{"./_a-function":92}],102:[function(H,k,d){k.exports=function(O){if(O==null)throw TypeError("Can't call method on "+O);return O}},{}],103:[function(H,k,d){k.exports=!H("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(H,k,d){var O=H("./_is-object"),x=H("./_global").document,C=O(x)&&O(x.createElement);k.exports=function(A){return C?x.createElement(A):{}}},{"./_global":110,"./_is-object":119}],105:[function(H,k,d){k.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(H,k,d){var O=H("./_object-keys"),x=H("./_object-gops"),C=H("./_object-pie");k.exports=function(A){var b=O(A),g=x.f;if(g)for(var f=g(A),c=C.f,o=0,r;f.length>o;)c.call(A,r=f[o++])&&b.push(r);return b}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(H,k,d){var O=H("./_global"),x=H("./_core"),C=H("./_ctx"),A=H("./_hide"),b=H("./_has"),g="prototype",f=function c(o,r,i){var n=o&c.F,e=o&c.G,l=o&c.S,t=o&c.P,a=o&c.B,s=o&c.W,u=e?x:x[r]||(x[r]={}),h=u[g],p=e?O:l?O[r]:(O[r]||{})[g],m,v,y;e&&(i=r);for(m in i){if(v=!n&&p&&p[m]!==void 0,v&&b(u,m))continue;y=v?p[m]:i[m],u[m]=e&&typeof p[m]!="function"?i[m]:a&&v?C(y,O):s&&p[m]==y?function(E){var T=function(S,_,I){if(this instanceof E){switch(arguments.length){case 0:return new E;case 1:return new E(S);case 2:return new E(S,_)}return new E(S,_,I)}return E.apply(this,arguments)};return T[g]=E[g],T}(y):t&&typeof y=="function"?C(Function.call,y):y,t&&((u.virtual||(u.virtual={}))[m]=y,o&c.R&&h&&!h[m]&&A(h,m,y))}};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,k.exports=f},{"./_core":99,"./_ctx":101,"./_global":110,"./_has":111,"./_hide":112}],108:[function(H,k,d){k.exports=function(O){try{return!!O()}catch(x){return!0}}},{}],109:[function(H,k,d){var O=H("./_ctx"),x=H("./_iter-call"),C=H("./_is-array-iter"),A=H("./_an-object"),b=H("./_to-length"),g=H("./core.get-iterator-method"),f={},c={},d=k.exports=function(o,r,i,n,e){var l=e?function(){return o}:g(o),t=O(i,n,r?2:1),a=0,s,u,h,p;if(typeof l!="function")throw TypeError(o+" is not iterable!");if(C(l)){for(s=b(o.length);s>a;a++)if(p=r?t(A(u=o[a])[0],u[1]):t(o[a]),p===f||p===c)return p}else for(h=l.call(o);!(u=h.next()).done;)if(p=x(h,t,u.value,r),p===f||p===c)return p};d.BREAK=f,d.RETURN=c},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(H,k,d){var O=k.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(H,k,d){var O={}.hasOwnProperty;k.exports=function(x,C){return O.call(x,C)}},{}],112:[function(H,k,d){var O=H("./_object-dp"),x=H("./_property-desc");k.exports=H("./_descriptors")?function(C,A,b){return O.f(C,A,x(1,b))}:function(C,A,b){return C[A]=b,C}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(H,k,d){var O=H("./_global").document;k.exports=O&&O.documentElement},{"./_global":110}],114:[function(H,k,d){k.exports=!H("./_descriptors")&&!H("./_fails")(function(){return Object.defineProperty(H("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(H,k,d){k.exports=function(O,x,C){var A=C===void 0;switch(x.length){case 0:return A?O():O.call(C);case 1:return A?O(x[0]):O.call(C,x[0]);case 2:return A?O(x[0],x[1]):O.call(C,x[0],x[1]);case 3:return A?O(x[0],x[1],x[2]):O.call(C,x[0],x[1],x[2]);case 4:return A?O(x[0],x[1],x[2],x[3]):O.call(C,x[0],x[1],x[2],x[3])}return O.apply(C,x)}},{}],116:[function(H,k,d){var O=H("./_cof");k.exports=Object("z").propertyIsEnumerable(0)?Object:function(x){return O(x)=="String"?x.split(""):Object(x)}},{"./_cof":98}],117:[function(H,k,d){var O=H("./_iterators"),x=H("./_wks")("iterator"),C=Array.prototype;k.exports=function(A){return A!==void 0&&(O.Array===A||C[x]===A)}},{"./_iterators":125,"./_wks":166}],118:[function(H,k,d){var O=H("./_cof");k.exports=Array.isArray||function(C){return O(C)=="Array"}},{"./_cof":98}],119:[function(H,k,d){k.exports=function(O){return typeof O=="object"?O!==null:typeof O=="function"}},{}],120:[function(H,k,d){var O=H("./_an-object");k.exports=function(x,C,A,b){try{return b?C(O(A)[0],A[1]):C(A)}catch(f){var g=x.return;throw g!==void 0&&O(g.call(x)),f}}},{"./_an-object":95}],121:[function(H,k,d){"use strict";var O=H("./_object-create"),x=H("./_property-desc"),C=H("./_set-to-string-tag"),A={};H("./_hide")(A,H("./_wks")("iterator"),function(){return this}),k.exports=function(b,g,f){b.prototype=O(A,{next:x(1,f)}),C(b,g+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(H,k,d){"use strict";var O=H("./_library"),x=H("./_export"),C=H("./_redefine"),A=H("./_hide"),b=H("./_iterators"),g=H("./_iter-create"),f=H("./_set-to-string-tag"),c=H("./_object-gpo"),o=H("./_wks")("iterator"),r=!([].keys&&"next"in[].keys()),i="@@iterator",n="keys",e="values",l=function(){return this};k.exports=function(t,a,s,u,h,p,m){g(s,a,u);var v=function(M){if(!r&&M in w)return w[M];switch(M){case n:return function(){return new s(this,M)};case e:return function(){return new s(this,M)}}return function(){return new s(this,M)}},y=a+" Iterator",E=h==e,T=!1,w=t.prototype,S=w[o]||w[i]||h&&w[h],_=S||v(h),I=h?E?v("entries"):_:void 0,L=a=="Array"&&w.entries||S,N,R,D;if(L&&(D=c(L.call(new t)),D!==Object.prototype&&D.next&&(f(D,y,!0),!O&&typeof D[o]!="function"&&A(D,o,l))),E&&S&&S.name!==e&&(T=!0,_=function(){return S.call(this)}),(!O||m)&&(r||T||!w[o])&&A(w,o,_),b[a]=_,b[y]=l,h)if(N={values:E?_:v(e),keys:p?_:v(n),entries:I},m)for(R in N)R in w||C(w,R,N[R]);else x(x.P+x.F*(r||T),a,N);return N}},{"./_export":107,"./_hide":112,"./_iter-create":121,"./_iterators":125,"./_library":126,"./_object-gpo":138,"./_redefine":148,"./_set-to-string-tag":150,"./_wks":166}],123:[function(H,k,d){var O=H("./_wks")("iterator"),x=!1;try{var C=[7][O]();C.return=function(){x=!0},Array.from(C,function(){throw 2})}catch(A){}k.exports=function(A,b){if(!b&&!x)return!1;var g=!1;try{var f=[7],c=f[O]();c.next=function(){return{done:g=!0}},f[O]=function(){return c},A(f)}catch(o){}return g}},{"./_wks":166}],124:[function(H,k,d){k.exports=function(O,x){return{value:x,done:!!O}}},{}],125:[function(H,k,d){k.exports={}},{}],126:[function(H,k,d){k.exports=!0},{}],127:[function(H,k,d){var O=H("./_uid")("meta"),x=H("./_is-object"),C=H("./_has"),A=H("./_object-dp").f,b=0,g=Object.isExtensible||function(){return!0},f=!H("./_fails")(function(){return g(Object.preventExtensions({}))}),c=function(l){A(l,O,{value:{i:"O"+ ++b,w:{}}})},o=function(l,t){if(!x(l))return typeof l=="symbol"?l:(typeof l=="string"?"S":"P")+l;if(!C(l,O)){if(!g(l))return"F";if(!t)return"E";c(l)}return l[O].i},r=function(l,t){if(!C(l,O)){if(!g(l))return!0;if(!t)return!1;c(l)}return l[O].w},i=function(l){return f&&n.NEED&&g(l)&&!C(l,O)&&c(l),l},n=k.exports={KEY:O,NEED:!1,fastKey:o,getWeak:r,onFreeze:i}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(H,k,d){var O=H("./_global"),x=H("./_task").set,C=O.MutationObserver||O.WebKitMutationObserver,A=O.process,b=O.Promise,g=H("./_cof")(A)=="process";k.exports=function(){var f,c,o,r=function(){var t,a;for(g&&(t=A.domain)&&t.exit();f;){a=f.fn,f=f.next;try{a()}catch(s){throw f?o():c=void 0,s}}c=void 0,t&&t.enter()};if(g)o=function(){A.nextTick(r)};else if(C&&!(O.navigator&&O.navigator.standalone)){var i=!0,n=document.createTextNode("");new C(r).observe(n,{characterData:!0}),o=function(){n.data=i=!i}}else if(b&&b.resolve){var e=b.resolve(void 0);o=function(){e.then(r)}}else o=function(){x.call(O,r)};return function(l){var t={fn:l,next:void 0};c&&(c.next=t),f||(f=t,o()),c=t}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(H,k,d){"use strict";var O=H("./_a-function");function x(C){var A,b;this.promise=new C(function(g,f){if(A!==void 0||b!==void 0)throw TypeError("Bad Promise constructor");A=g,b=f}),this.resolve=O(A),this.reject=O(b)}k.exports.f=function(C){return new x(C)}},{"./_a-function":92}],130:[function(H,k,d){"use strict";var O=H("./_descriptors"),x=H("./_object-keys"),C=H("./_object-gops"),A=H("./_object-pie"),b=H("./_to-object"),g=H("./_iobject"),f=Object.assign;k.exports=!f||H("./_fails")(function(){var c={},o={},r=Symbol(),i="abcdefghijklmnopqrst";return c[r]=7,i.split("").forEach(function(n){o[n]=n}),f({},c)[r]!=7||Object.keys(f({},o)).join("")!=i})?function(o,r){for(var i=b(o),n=arguments.length,e=1,l=C.f,t=A.f;n>e;)for(var a=g(arguments[e++]),s=l?x(a).concat(l(a)):x(a),u=s.length,h=0,p;u>h;)p=s[h++],(!O||t.call(a,p))&&(i[p]=a[p]);return i}:f},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(H,k,d){var O=H("./_an-object"),x=H("./_object-dps"),C=H("./_enum-bug-keys"),A=H("./_shared-key")("IE_PROTO"),b=function(){},g="prototype",f=function(){var o=H("./_dom-create")("iframe"),r=C.length,i="<",n=">",e;for(o.style.display="none",H("./_html").appendChild(o),o.src="javascript:",e=o.contentWindow.document,e.open(),e.write(i+"script"+n+"document.F=Object"+i+"/script"+n),e.close(),f=e.F;r--;)delete f[g][C[r]];return f()};k.exports=Object.create||function(o,r){var i;return o!==null?(b[g]=O(o),i=new b,b[g]=null,i[A]=o):i=f(),r===void 0?i:x(i,r)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(H,k,d){var O=H("./_an-object"),x=H("./_ie8-dom-define"),C=H("./_to-primitive"),A=Object.defineProperty;d.f=H("./_descriptors")?Object.defineProperty:function(g,f,c){if(O(g),f=C(f,!0),O(c),x)try{return A(g,f,c)}catch(o){}if("get"in c||"set"in c)throw TypeError("Accessors not supported!");return"value"in c&&(g[f]=c.value),g}},{"./_an-object":95,"./_descriptors":103,"./_ie8-dom-define":114,"./_to-primitive":161}],133:[function(H,k,d){var O=H("./_object-dp"),x=H("./_an-object"),C=H("./_object-keys");k.exports=H("./_descriptors")?Object.defineProperties:function(b,g){x(b);for(var f=C(g),c=f.length,o=0,r;c>o;)O.f(b,r=f[o++],g[r]);return b}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(H,k,d){var O=H("./_object-pie"),x=H("./_property-desc"),C=H("./_to-iobject"),A=H("./_to-primitive"),b=H("./_has"),g=H("./_ie8-dom-define"),f=Object.getOwnPropertyDescriptor;d.f=H("./_descriptors")?f:function(o,r){if(o=C(o),r=A(r,!0),g)try{return f(o,r)}catch(i){}if(b(o,r))return x(!O.f.call(o,r),o[r])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(H,k,d){var O=H("./_to-iobject"),x=H("./_object-gopn").f,C={}.toString,A=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],b=function(f){try{return x(f)}catch(c){return A.slice()}};k.exports.f=function(f){return A&&C.call(f)=="[object Window]"?b(f):x(O(f))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(H,k,d){var O=H("./_object-keys-internal"),x=H("./_enum-bug-keys").concat("length","prototype");d.f=Object.getOwnPropertyNames||function(A){return O(A,x)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(H,k,d){d.f=Object.getOwnPropertySymbols},{}],138:[function(H,k,d){var O=H("./_has"),x=H("./_to-object"),C=H("./_shared-key")("IE_PROTO"),A=Object.prototype;k.exports=Object.getPrototypeOf||function(b){return b=x(b),O(b,C)?b[C]:typeof b.constructor=="function"&&b instanceof b.constructor?b.constructor.prototype:b instanceof Object?A:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(H,k,d){var O=H("./_has"),x=H("./_to-iobject"),C=H("./_array-includes")(!1),A=H("./_shared-key")("IE_PROTO");k.exports=function(b,g){var f=x(b),c=0,o=[],r;for(r in f)r!=A&&(O(f,r)&&o.push(r));for(;g.length>c;)O(f,r=g[c++])&&(~C(o,r)||o.push(r));return o}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(H,k,d){var O=H("./_object-keys-internal"),x=H("./_enum-bug-keys");k.exports=Object.keys||function(A){return O(A,x)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(H,k,d){d.f={}.propertyIsEnumerable},{}],142:[function(H,k,d){var O=H("./_export"),x=H("./_core"),C=H("./_fails");k.exports=function(A,b){var g=(x.Object||{})[A]||Object[A],f={};f[A]=b(g),O(O.S+O.F*C(function(){g(1)}),"Object",f)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(H,k,d){var O=H("./_descriptors"),x=H("./_object-keys"),C=H("./_to-iobject"),A=H("./_object-pie").f;k.exports=function(b){return function(g){for(var f=C(g),c=x(f),o=c.length,r=0,i=[],n;o>r;)n=c[r++],(!O||A.call(f,n))&&i.push(b?[n,f[n]]:f[n]);return i}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(H,k,d){k.exports=function(O){try{return{e:!1,v:O()}}catch(x){return{e:!0,v:x}}}},{}],145:[function(H,k,d){var O=H("./_an-object"),x=H("./_is-object"),C=H("./_new-promise-capability");k.exports=function(A,b){if(O(A),x(b)&&b.constructor===A)return b;var g=C.f(A),f=g.resolve;return f(b),g.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(H,k,d){k.exports=function(O,x){return{enumerable:!(O&1),configurable:!(O&2),writable:!(O&4),value:x}}},{}],147:[function(H,k,d){var O=H("./_hide");k.exports=function(x,C,A){for(var b in C)A&&x[b]?x[b]=C[b]:O(x,b,C[b]);return x}},{"./_hide":112}],148:[function(H,k,d){k.exports=H("./_hide")},{"./_hide":112}],149:[function(H,k,d){"use strict";var O=H("./_global"),x=H("./_core"),C=H("./_object-dp"),A=H("./_descriptors"),b=H("./_wks")("species");k.exports=function(g){var f=typeof x[g]=="function"?x[g]:O[g];A&&f&&!f[b]&&C.f(f,b,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(H,k,d){var O=H("./_object-dp").f,x=H("./_has"),C=H("./_wks")("toStringTag");k.exports=function(A,b,g){A&&!x(A=g?A:A.prototype,C)&&O(A,C,{configurable:!0,value:b})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(H,k,d){var O=H("./_shared")("keys"),x=H("./_uid");k.exports=function(C){return O[C]||(O[C]=x(C))}},{"./_shared":152,"./_uid":162}],152:[function(H,k,d){var O=H("./_core"),x=H("./_global"),C="__core-js_shared__",A=x[C]||(x[C]={});(k.exports=function(b,g){return A[b]||(A[b]=g!==void 0?g:{})})("versions",[]).push({version:O.version,mode:H("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(H,k,d){var O=H("./_an-object"),x=H("./_a-function"),C=H("./_wks")("species");k.exports=function(A,b){var g=O(A).constructor,f;return g===void 0||(f=O(g)[C])==null?b:x(f)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(H,k,d){var O=H("./_to-integer"),x=H("./_defined");k.exports=function(C){return function(A,b){var g=String(x(A)),f=O(b),c=g.length,o,r;return f<0||f>=c?C?"":void 0:(o=g.charCodeAt(f),o<55296||o>56319||f+1===c||(r=g.charCodeAt(f+1))<56320||r>57343?C?g.charAt(f):o:C?g.slice(f,f+2):(o-55296<<10)+(r-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(H,k,d){var O=H("./_ctx"),x=H("./_invoke"),C=H("./_html"),A=H("./_dom-create"),b=H("./_global"),g=b.process,f=b.setImmediate,c=b.clearImmediate,o=b.MessageChannel,r=b.Dispatch,i=0,n={},e="onreadystatechange",l,t,a,s=function(){var p=+this;if(n.hasOwnProperty(p)){var m=n[p];delete n[p],m()}},u=function(p){s.call(p.data)};(!f||!c)&&(f=function(p){for(var m=[],v=1;arguments.length>v;)m.push(arguments[v++]);return n[++i]=function(){x(typeof p=="function"?p:Function(p),m)},l(i),i},c=function(p){delete n[p]},H("./_cof")(g)=="process"?l=function(p){g.nextTick(O(s,p,1))}:r&&r.now?l=function(p){r.now(O(s,p,1))}:o?(t=new o,a=t.port2,t.port1.onmessage=u,l=O(a.postMessage,a,1)):b.addEventListener&&typeof postMessage=="function"&&!b.importScripts?(l=function(p){b.postMessage(p+"","*")},b.addEventListener("message",u,!1)):e in A("script")?l=function(p){C.appendChild(A("script"))[e]=function(){C.removeChild(this),s.call(p)}}:l=function(p){setTimeout(O(s,p,1),0)}),k.exports={set:f,clear:c}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(H,k,d){var O=H("./_to-integer"),x=Math.max,C=Math.min;k.exports=function(A,b){return A=O(A),A<0?x(A+b,0):C(A,b)}},{"./_to-integer":157}],157:[function(H,k,d){var O=Math.ceil,x=Math.floor;k.exports=function(C){return isNaN(C=+C)?0:(C>0?x:O)(C)}},{}],158:[function(H,k,d){var O=H("./_iobject"),x=H("./_defined");k.exports=function(C){return O(x(C))}},{"./_defined":102,"./_iobject":116}],159:[function(H,k,d){var O=H("./_to-integer"),x=Math.min;k.exports=function(C){return C>0?x(O(C),9007199254740991):0}},{"./_to-integer":157}],160:[function(H,k,d){var O=H("./_defined");k.exports=function(x){return Object(O(x))}},{"./_defined":102}],161:[function(H,k,d){var O=H("./_is-object");k.exports=function(x,C){if(!O(x))return x;var A,b;if(C&&typeof(A=x.toString)=="function"&&!O(b=A.call(x)))return b;if(typeof(A=x.valueOf)=="function"&&!O(b=A.call(x)))return b;if(!C&&typeof(A=x.toString)=="function"&&!O(b=A.call(x)))return b;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(H,k,d){var O=0,x=Math.random();k.exports=function(C){return"Symbol(".concat(C===void 0?"":C,")_",(++O+x).toString(36))}},{}],163:[function(H,k,d){var O=H("./_global"),x=O.navigator;k.exports=x&&x.userAgent||""},{"./_global":110}],164:[function(H,k,d){var O=H("./_global"),x=H("./_core"),C=H("./_library"),A=H("./_wks-ext"),b=H("./_object-dp").f;k.exports=function(g){var f=x.Symbol||(x.Symbol=C?{}:O.Symbol||{});g.charAt(0)!="_"&&!(g in f)&&b(f,g,{value:A.f(g)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(H,k,d){d.f=H("./_wks")},{"./_wks":166}],166:[function(H,k,d){var O=H("./_shared")("wks"),x=H("./_uid"),C=H("./_global").Symbol,A=typeof C=="function",b=k.exports=function(g){return O[g]||(O[g]=A&&C[g]||(A?C:x)("Symbol."+g))};b.store=O},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(H,k,d){var O=H("./_classof"),x=H("./_wks")("iterator"),C=H("./_iterators");k.exports=H("./_core").getIteratorMethod=function(A){if(A!=null)return A[x]||A["@@iterator"]||C[O(A)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(H,k,d){"use strict";var O=H("./_ctx"),x=H("./_export"),C=H("./_to-object"),A=H("./_iter-call"),b=H("./_is-array-iter"),g=H("./_to-length"),f=H("./_create-property"),c=H("./core.get-iterator-method");x(x.S+x.F*!H("./_iter-detect")(function(o){Array.from(o)}),"Array",{from:function(r){var i=C(r),n=typeof this=="function"?this:Array,e=arguments.length,l=e>1?arguments[1]:void 0,t=l!==void 0,a=0,s=c(i),u,h,p,m;if(t&&(l=O(l,e>2?arguments[2]:void 0,2)),s!=null&&!(n==Array&&b(s)))for(m=s.call(i),h=new n;!(p=m.next()).done;a++)f(h,a,t?A(m,l,[p.value,a],!0):p.value);else for(u=g(i.length),h=new n(u);u>a;a++)f(h,a,t?l(i[a],a):i[a]);return h.length=a,h}})},{"./_create-property":100,"./_ctx":101,"./_export":107,"./_is-array-iter":117,"./_iter-call":120,"./_iter-detect":123,"./_to-length":159,"./_to-object":160,"./core.get-iterator-method":167}],169:[function(H,k,d){"use strict";var O=H("./_add-to-unscopables"),x=H("./_iter-step"),C=H("./_iterators"),A=H("./_to-iobject");k.exports=H("./_iter-define")(Array,"Array",function(b,g){this._t=A(b),this._i=0,this._k=g},function(){var b=this._t,g=this._k,f=this._i++;return!b||f>=b.length?(this._t=void 0,x(1)):g=="keys"?x(0,f):g=="values"?x(0,b[f]):x(0,[f,b[f]])},"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(H,k,d){"use strict";var O=H("./_is-object"),x=H("./_object-gpo"),C=H("./_wks")("hasInstance"),A=Function.prototype;C in A||H("./_object-dp").f(A,C,{value:function(g){if(typeof this!="function"||!O(g))return!1;if(!O(this.prototype))return g instanceof this;for(;g=x(g);)if(this.prototype===g)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(H,k,d){var O=H("./_export");O(O.S+O.F,"Object",{assign:H("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(H,k,d){var O=H("./_export");O(O.S,"Object",{create:H("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(H,k,d){var O=H("./_export");O(O.S+O.F*!H("./_descriptors"),"Object",{defineProperty:H("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(H,k,d){H("./_object-sap")("getOwnPropertyNames",function(){return H("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(H,k,d){var O=H("./_to-object"),x=H("./_object-gpo");H("./_object-sap")("getPrototypeOf",function(){return function(A){return x(O(A))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(H,k,d){var O=H("./_to-object"),x=H("./_object-keys");H("./_object-sap")("keys",function(){return function(A){return x(O(A))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(H,k,d){arguments[4][71][0].apply(d,arguments)},{dup:71}],178:[function(H,k,d){"use strict";var O=H("./_library"),x=H("./_global"),C=H("./_ctx"),A=H("./_classof"),b=H("./_export"),g=H("./_is-object"),f=H("./_a-function"),c=H("./_an-instance"),o=H("./_for-of"),r=H("./_species-constructor"),i=H("./_task").set,n=H("./_microtask")(),e=H("./_new-promise-capability"),l=H("./_perform"),t=H("./_user-agent"),a=H("./_promise-resolve"),s="Promise",u=x.TypeError,h=x.process,p=h&&h.versions,m=p&&p.v8||"",v=x[s],y=A(h)=="process",E=function(){},T,w,S,_,I=w=e.f,L=!!function(){try{var j=v.resolve(1),W=(j.constructor={})[H("./_wks")("species")]=function(V){V(E,E)};return(y||typeof PromiseRejectionEvent=="function")&&j.then(E)instanceof W&&m.indexOf("6.6")!==0&&t.indexOf("Chrome/66")===-1}catch(V){}}(),N=function(W){var V;return g(W)&&typeof(V=W.then)=="function"?V:!1},R=function(W,V){if(W._n)return;W._n=!0;var z=W._c;n(function(){for(var J=W._v,q=W._s==1,de=0,ae=function(_e){var Ie=q?_e.ok:_e.fail,He=_e.resolve,me=_e.reject,ke=_e.domain,se,te,Ge;try{Ie?(q||(W._h==2&&M(W),W._h=1),Ie===!0?se=J:(ke&&ke.enter(),se=Ie(J),ke&&(ke.exit(),Ge=!0)),se===_e.promise?me(u("Promise-chain cycle")):(te=N(se))?te.call(se,He,me):He(se)):me(J)}catch(oe){ke&&!Ge&&ke.exit(),me(oe)}};z.length>de;)ae(z[de++]);W._c=[],W._n=!1,V&&!W._h&&D(W)})},D=function(W){i.call(x,function(){var V=W._v,z=F(W),J,q,de;if(z&&(J=l(function(){y?h.emit("unhandledRejection",V,W):(q=x.onunhandledrejection)?q({promise:W,reason:V}):(de=x.console)&&de.error&&de.error("Unhandled promise rejection",V)}),W._h=y||F(W)?2:1),W._a=void 0,z&&J.e)throw J.v})},F=function(W){return W._h!==1&&(W._a||W._c).length===0},M=function(W){i.call(x,function(){var V;y?h.emit("rejectionHandled",W):(V=x.onrejectionhandled)&&V({promise:W,reason:W._v})})},U=function(W){var V=this;if(V._d)return;V._d=!0,V=V._w||V,V._v=W,V._s=2,V._a||(V._a=V._c.slice()),R(V,!0)},B=function j(W){var V=this,z;if(V._d)return;V._d=!0,V=V._w||V;try{if(V===W)throw u("Promise can't be resolved itself");(z=N(W))?n(function(){var J={_w:V,_d:!1};try{z.call(W,C(j,J,1),C(U,J,1))}catch(q){U.call(J,q)}}):(V._v=W,V._s=1,R(V,!1))}catch(J){U.call({_w:V,_d:!1},J)}};L||(v=function(W){c(this,v,s,"_h"),f(W),T.call(this);try{W(C(B,this,1),C(U,this,1))}catch(V){U.call(this,V)}},T=function(W){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},T.prototype=H("./_redefine-all")(v.prototype,{then:function(W,V){var z=I(r(this,v));return z.ok=typeof W=="function"?W:!0,z.fail=typeof V=="function"&&V,z.domain=y?h.domain:void 0,this._c.push(z),this._a&&this._a.push(z),this._s&&R(this,!1),z.promise},catch:function(W){return this.then(void 0,W)}}),S=function(){var W=new T;this.promise=W,this.resolve=C(B,W,1),this.reject=C(U,W,1)},e.f=I=function(W){return W===v||W===_?new S(W):w(W)}),b(b.G+b.W+b.F*!L,{Promise:v}),H("./_set-to-string-tag")(v,s),H("./_set-species")(s),_=H("./_core")[s],b(b.S+b.F*!L,s,{reject:function(W){var V=I(this),z=V.reject;return z(W),V.promise}}),b(b.S+b.F*(O||!L),s,{resolve:function(W){return a(O&&this===_?v:this,W)}}),b(b.S+b.F*!(L&&H("./_iter-detect")(function(j){v.all(j).catch(E)})),s,{all:function(W){var V=this,z=I(V),J=z.resolve,q=z.reject,de=l(function(){var ae=[],ve=0,_e=1;o(W,!1,function(Ie){var He=ve++,me=!1;ae.push(void 0),_e++,V.resolve(Ie).then(function(ke){if(me)return;me=!0,ae[He]=ke,--_e||J(ae)},q)}),--_e||J(ae)});return de.e&&q(de.v),z.promise},race:function(W){var V=this,z=I(V),J=z.reject,q=l(function(){o(W,!1,function(de){V.resolve(de).then(z.resolve,J)})});return q.e&&J(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(H,k,d){var O=H("./_export"),x=H("./_to-absolute-index"),C=String.fromCharCode,A=String.fromCodePoint;O(O.S+O.F*(!!A&&A.length!=1),"String",{fromCodePoint:function(g){for(var f=[],c=arguments.length,o=0,r;c>o;){if(r=+arguments[o++],x(r,1114111)!==r)throw RangeError(r+" is not a valid code point");f.push(r<65536?C(r):C(((r-=65536)>>10)+55296,r%1024+56320))}return f.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(H,k,d){"use strict";var O=H("./_string-at")(!0);H("./_iter-define")(String,"String",function(x){this._t=String(x),this._i=0},function(){var x=this._t,C=this._i,A;return C>=x.length?{value:void 0,done:!0}:(A=O(x,C),this._i+=A.length,{value:A,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(H,k,d){"use strict";var O=H("./_global"),x=H("./_has"),C=H("./_descriptors"),A=H("./_export"),b=H("./_redefine"),g=H("./_meta").KEY,f=H("./_fails"),c=H("./_shared"),o=H("./_set-to-string-tag"),r=H("./_uid"),i=H("./_wks"),n=H("./_wks-ext"),e=H("./_wks-define"),l=H("./_enum-keys"),t=H("./_is-array"),a=H("./_an-object"),s=H("./_is-object"),u=H("./_to-object"),h=H("./_to-iobject"),p=H("./_to-primitive"),m=H("./_property-desc"),v=H("./_object-create"),y=H("./_object-gopn-ext"),E=H("./_object-gopd"),T=H("./_object-gops"),w=H("./_object-dp"),S=H("./_object-keys"),_=E.f,I=w.f,L=y.f,N=O.Symbol,R=O.JSON,D=R&&R.stringify,F="prototype",M=i("_hidden"),U=i("toPrimitive"),B={}.propertyIsEnumerable,j=c("symbol-registry"),W=c("symbols"),V=c("op-symbols"),z=Object[F],J=typeof N=="function"&&!!T.f,q=O.QObject,de=!q||!q[F]||!q[F].findChild,ae=C&&f(function(){return v(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a!=7})?function(ce,Te,Se){var le=_(z,Te);le&&delete z[Te],I(ce,Te,Se),le&&ce!==z&&I(z,Te,le)}:I,ve=function(Te){var Se=W[Te]=v(N[F]);return Se._k=Te,Se},_e=J&&typeof N.iterator=="symbol"?function(ce){return typeof ce=="symbol"}:function(ce){return ce instanceof N},Ie=function(Te,Se,le){return Te===z&&Ie(V,Se,le),a(Te),Se=p(Se,!0),a(le),x(W,Se)?(le.enumerable?(x(Te,M)&&Te[M][Se]&&(Te[M][Se]=!1),le=v(le,{enumerable:m(0,!1)})):(x(Te,M)||I(Te,M,m(1,{})),Te[M][Se]=!0),ae(Te,Se,le)):I(Te,Se,le)},He=function(Te,Se){a(Te);for(var le=l(Se=h(Se)),fe=0,Ee=le.length,Ve;Ee>fe;)Ie(Te,Ve=le[fe++],Se[Ve]);return Te},me=function(Te,Se){return Se===void 0?v(Te):He(v(Te),Se)},ke=function(Te){var Se=B.call(this,Te=p(Te,!0));return this===z&&x(W,Te)&&!x(V,Te)?!1:Se||!x(this,Te)||!x(W,Te)||x(this,M)&&this[M][Te]?Se:!0},se=function(Te,Se){if(Te=h(Te),Se=p(Se,!0),Te===z&&x(W,Se)&&!x(V,Se))return;var le=_(Te,Se);return le&&x(W,Se)&&!(x(Te,M)&&Te[M][Se])&&(le.enumerable=!0),le},te=function(Te){for(var Se=L(h(Te)),le=[],fe=0,Ee;Se.length>fe;)!x(W,Ee=Se[fe++])&&Ee!=M&&Ee!=g&&le.push(Ee);return le},Ge=function(Te){for(var Se=Te===z,le=L(Se?V:h(Te)),fe=[],Ee=0,Ve;le.length>Ee;)x(W,Ve=le[Ee++])&&(Se?x(z,Ve):!0)&&fe.push(W[Ve]);return fe};J||(N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var Te=r(arguments.length>0?arguments[0]:void 0),Se=function le(fe){this===z&&le.call(V,fe),x(this,M)&&x(this[M],Te)&&(this[M][Te]=!1),ae(this,Te,m(1,fe))};return C&&de&&ae(z,Te,{configurable:!0,set:Se}),ve(Te)},b(N[F],"toString",function(){return this._k}),E.f=se,w.f=Ie,H("./_object-gopn").f=y.f=te,H("./_object-pie").f=ke,T.f=Ge,C&&!H("./_library")&&b(z,"propertyIsEnumerable",ke,!0),n.f=function(ce){return ve(i(ce))}),A(A.G+A.W+A.F*!J,{Symbol:N});for(var oe="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Y=0;oe.length>Y;)i(oe[Y++]);for(var G=S(i.store),Q=0;G.length>Q;)e(G[Q++]);A(A.S+A.F*!J,"Symbol",{for:function(Te){return x(j,Te+="")?j[Te]:j[Te]=N(Te)},keyFor:function(Te){if(!_e(Te))throw TypeError(Te+" is not a symbol!");for(var Se in j)if(j[Se]===Te)return Se},useSetter:function(){de=!0},useSimple:function(){de=!1}}),A(A.S+A.F*!J,"Object",{create:me,defineProperty:Ie,defineProperties:He,getOwnPropertyDescriptor:se,getOwnPropertyNames:te,getOwnPropertySymbols:Ge});var ye=f(function(){T.f(1)});A(A.S+A.F*ye,"Object",{getOwnPropertySymbols:function(Te){return T.f(u(Te))}}),R&&A(A.S+A.F*(!J||f(function(){var ce=N();return D([ce])!="[null]"||D({a:ce})!="{}"||D(Object(ce))!="{}"})),"JSON",{stringify:function(Te){for(var Se=[Te],le=1,fe,Ee;arguments.length>le;)Se.push(arguments[le++]);return Ee=fe=Se[1],!s(fe)&&Te===void 0||_e(Te)?void 0:(t(fe)||(fe=function(vt,et){if(typeof Ee=="function"&&(et=Ee.call(this,vt,et)),!_e(et))return et}),Se[1]=fe,D.apply(R,Se))}}),N[F][U]||H("./_hide")(N[F],U,N[F].valueOf),o(N,"Symbol"),o(Math,"Math",!0),o(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(H,k,d){var O=H("./_export"),x=H("./_object-to-array")(!0);O(O.S,"Object",{entries:function(A){return x(A)}})},{"./_export":107,"./_object-to-array":143}],183:[function(H,k,d){"use strict";var O=H("./_export"),x=H("./_core"),C=H("./_global"),A=H("./_species-constructor"),b=H("./_promise-resolve");O(O.P+O.R,"Promise",{finally:function(f){var c=A(this,x.Promise||C.Promise),o=typeof f=="function";return this.then(o?function(r){return b(c,f()).then(function(){return r})}:f,o?function(r){return b(c,f()).then(function(){throw r})}:f)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(H,k,d){"use strict";var O=H("./_export"),x=H("./_new-promise-capability"),C=H("./_perform");O(O.S,"Promise",{try:function(b){var g=x.f(this),f=C(b);return(f.e?g.reject:g.resolve)(f.v),g.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(H,k,d){H("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(H,k,d){H("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(H,k,d){H("./es6.array.iterator");for(var O=H("./_global"),x=H("./_hide"),C=H("./_iterators"),A=H("./_wks")("toStringTag"),b="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(","),g=0;g<b.length;g++){var f=b[g],c=O[f],o=c&&c.prototype;o&&!o[A]&&x(o,A,f),C[f]=C.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(H,k,d){var O=H("./_export"),x=H("./_task");O(O.G+O.B,{setImmediate:x.set,clearImmediate:x.clear})},{"./_export":107,"./_task":155}],189:[function(H,k,d){(function(O){"use strict";var x=H("babel-runtime/helpers/typeof"),C=A(x);function A(p){return p&&p.__esModule?p:{default:p}}function b(p){return Array.isArray?Array.isArray(p):h(p)==="[object Array]"}d.isArray=b;function g(p){return typeof p=="boolean"}d.isBoolean=g;function f(p){return p===null}d.isNull=f;function c(p){return p==null}d.isNullOrUndefined=c;function o(p){return typeof p=="number"}d.isNumber=o;function r(p){return typeof p=="string"}d.isString=r;function i(p){return(typeof p=="undefined"?"undefined":(0,C.default)(p))==="symbol"}d.isSymbol=i;function n(p){return p===void 0}d.isUndefined=n;function e(p){return h(p)==="[object RegExp]"}d.isRegExp=e;function l(p){return(typeof p=="undefined"?"undefined":(0,C.default)(p))==="object"&&p!==null}d.isObject=l;function t(p){return h(p)==="[object Date]"}d.isDate=t;function a(p){return h(p)==="[object Error]"||p instanceof Error}d.isError=a;function s(p){return typeof p=="function"}d.isFunction=s;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 h(p){return Object.prototype.toString.call(p)}}).call(this,{isBuffer:H("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(H,k,d){"use strict";var O=H("babel-runtime/helpers/typeof"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(A){"use strict";var b=function(){var r=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,i=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,n=/[^-+\dA-Z]/g;return function(e,l,t,a){if(arguments.length===1&&o(e)==="string"&&!/\d/.test(e)&&(l=e,e=void 0),e=e||new Date,e instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");l=String(b.masks[l]||l||b.masks.default);var s=l.slice(0,4);(s==="UTC:"||s==="GMT:")&&(l=l.slice(4),t=!0,s==="GMT:"&&(a=!0));var u=t?"getUTC":"get",h=e[u+"Date"](),p=e[u+"Day"](),m=e[u+"Month"](),v=e[u+"FullYear"](),y=e[u+"Hours"](),E=e[u+"Minutes"](),T=e[u+"Seconds"](),w=e[u+"Milliseconds"](),S=t?0:e.getTimezoneOffset(),_=f(e),I=c(e),L={d:h,dd:g(h),ddd:b.i18n.dayNames[p],dddd:b.i18n.dayNames[p+7],m:m+1,mm:g(m+1),mmm:b.i18n.monthNames[m],mmmm:b.i18n.monthNames[m+12],yy:String(v).slice(2),yyyy:v,h:y%12||12,hh:g(y%12||12),H:y,HH:g(y),M:E,MM:g(E),s:T,ss:g(T),l:g(w,3),L:g(Math.round(w/10)),t:y<12?"a":"p",tt:y<12?"am":"pm",T:y<12?"A":"P",TT:y<12?"AM":"PM",Z:a?"GMT":t?"UTC":(String(e).match(i)||[""]).pop().replace(n,""),o:(S>0?"-":"+")+g(Math.floor(Math.abs(S)/60)*100+Math.abs(S)%60,4),S:["th","st","nd","rd"][h%10>3?0:(h%100-h%10!=10)*h%10],W:_,N:I};return l.replace(r,function(N){return N in L?L[N]:N.slice(1,N.length-1)})}}();b.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"},b.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 g(r,i){for(r=String(r),i=i||2;r.length<i;)r="0"+r;return r}function f(r){var i=new Date(r.getFullYear(),r.getMonth(),r.getDate());i.setDate(i.getDate()-(i.getDay()+6)%7+3);var n=new Date(i.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var e=i.getTimezoneOffset()-n.getTimezoneOffset();i.setHours(i.getHours()-e);var l=(i-n)/(864e5*7);return 1+Math.floor(l)}function c(r){var i=r.getDay();return i===0&&(i=7),i}function o(r){return r===null?"null":r===void 0?"undefined":(typeof r=="undefined"?"undefined":(0,x.default)(r))!=="object"?typeof r=="undefined"?"undefined":(0,x.default)(r):Array.isArray(r)?"array":{}.toString.call(r).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return b}):(typeof d=="undefined"?"undefined":(0,x.default)(d))==="object"?k.exports=b:A.dateFormat=b})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(H,k,d){/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/"use strict";var O=/["'&<>]/;k.exports=x;function x(C){var A=""+C,b=O.exec(A);if(!b)return A;var g,f="",c=0,o=0;for(c=b.index;c<A.length;c++){switch(A.charCodeAt(c)){case 34:g="&quot;";break;case 38:g="&amp;";break;case 39:g="&#39;";break;case 60:g="&lt;";break;case 62:g="&gt;";break;default:continue}o!==c&&(f+=A.substring(o,c)),o=c+1,f+=g}return o!==c?f+A.substring(o,c):f}},{}],192:[function(H,k,d){function O(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}k.exports=O,O.EventEmitter=O,O.prototype._events=void 0,O.prototype._maxListeners=void 0,O.defaultMaxListeners=10,O.prototype.setMaxListeners=function(g){if(!C(g)||g<0||isNaN(g))throw TypeError("n must be a positive number");return this._maxListeners=g,this},O.prototype.emit=function(g){var f,c,o,r,i,n;if(this._events||(this._events={}),g==="error"&&(!this._events.error||A(this._events.error)&&!this._events.error.length)){if(f=arguments[1],f instanceof Error)throw f;var e=new Error('Uncaught, unspecified "error" event. ('+f+")");throw e.context=f,e}if(c=this._events[g],b(c))return!1;if(x(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(A(c))for(r=Array.prototype.slice.call(arguments,1),n=c.slice(),o=n.length,i=0;i<o;i++)n[i].apply(this,r);return!0},O.prototype.addListener=function(g,f){var c;if(!x(f))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",g,x(f.listener)?f.listener:f),this._events[g]?A(this._events[g])?this._events[g].push(f):this._events[g]=[this._events[g],f]:this._events[g]=f,A(this._events[g])&&!this._events[g].warned&&(b(this._maxListeners)?c=O.defaultMaxListeners:c=this._maxListeners,c&&c>0&&this._events[g].length>c&&(this._events[g].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[g].length),typeof console.trace=="function"&&console.trace())),this},O.prototype.on=O.prototype.addListener,O.prototype.once=function(g,f){if(!x(f))throw TypeError("listener must be a function");var c=!1;function o(){this.removeListener(g,o),c||(c=!0,f.apply(this,arguments))}return o.listener=f,this.on(g,o),this},O.prototype.removeListener=function(g,f){var c,o,r,i;if(!x(f))throw TypeError("listener must be a function");if(!this._events||!this._events[g])return this;if(c=this._events[g],r=c.length,o=-1,c===f||x(c.listener)&&c.listener===f)delete this._events[g],this._events.removeListener&&this.emit("removeListener",g,f);else if(A(c)){for(i=r;i-- >0;)if(c[i]===f||c[i].listener&&c[i].listener===f){o=i;break}if(o<0)return this;c.length===1?(c.length=0,delete this._events[g]):c.splice(o,1),this._events.removeListener&&this.emit("removeListener",g,f)}return this},O.prototype.removeAllListeners=function(g){var f,c;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[g]&&delete this._events[g],this;if(arguments.length===0){for(f in this._events){if(f==="removeListener")continue;this.removeAllListeners(f)}return this.removeAllListeners("removeListener"),this._events={},this}if(c=this._events[g],x(c))this.removeListener(g,c);else if(c)for(;c.length;)this.removeListener(g,c[c.length-1]);return delete this._events[g],this},O.prototype.listeners=function(g){var f;return!this._events||!this._events[g]?f=[]:x(this._events[g])?f=[this._events[g]]:f=this._events[g].slice(),f},O.prototype.listenerCount=function(g){if(this._events){var f=this._events[g];if(x(f))return 1;if(f)return f.length}return 0},O.listenerCount=function(g,f){return g.listenerCount(f)};function x(g){return typeof g=="function"}function C(g){return typeof g=="number"}function A(g){return typeof g=="object"&&g!==null}function b(g){return g===void 0}},{}],193:[function(H,k,d){var O=H("http"),x=k.exports;for(var C in O)O.hasOwnProperty(C)&&(x[C]=O[C]);x.request=function(A,b){return A||(A={}),A.scheme="https",A.protocol="https:",O.request.call(this,A,b)}},{http:231}],194:[function(H,k,d){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var O=H("util"),x=H("ms");k.exports=function(C){if(typeof C=="number")return C;var A=x(C);if(A===void 0){var b=new Error(O.format("humanize-ms(%j) result undefined",C));console.warn(b.stack)}return A}},{ms:204,util:243}],195:[function(H,k,d){d.read=function(O,x,C,A,b){var g,f,c=b*8-A-1,o=(1<<c)-1,r=o>>1,i=-7,n=C?b-1:0,e=C?-1:1,l=O[x+n];for(n+=e,g=l&(1<<-i)-1,l>>=-i,i+=c;i>0;g=g*256+O[x+n],n+=e,i-=8);for(f=g&(1<<-i)-1,g>>=-i,i+=A;i>0;f=f*256+O[x+n],n+=e,i-=8);if(g===0)g=1-r;else{if(g===o)return f?NaN:(l?-1:1)*Infinity;f=f+Math.pow(2,A),g=g-r}return(l?-1:1)*f*Math.pow(2,g-A)},d.write=function(O,x,C,A,b,g){var f,c,o,r=g*8-b-1,i=(1<<r)-1,n=i>>1,e=b===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=A?0:g-1,t=A?1:-1,a=x<0||x===0&&1/x<0?1:0;for(x=Math.abs(x),isNaN(x)||x===Infinity?(c=isNaN(x)?1:0,f=i):(f=Math.floor(Math.log(x)/Math.LN2),x*(o=Math.pow(2,-f))<1&&(f--,o*=2),f+n>=1?x+=e/o:x+=e*Math.pow(2,1-n),x*o>=2&&(f++,o/=2),f+n>=i?(c=0,f=i):f+n>=1?(c=(x*o-1)*Math.pow(2,b),f=f+n):(c=x*Math.pow(2,n-1)*Math.pow(2,b),f=0));b>=8;O[C+l]=c&255,l+=t,c/=256,b-=8);for(f=f<<b|c,r+=b;r>0;O[C+l]=f&255,l+=t,f/=256,r-=8);O[C+l-t]|=a*128}},{}],196:[function(H,k,d){typeof Object.create=="function"?k.exports=function(x,C){C&&(x.super_=C,x.prototype=Object.create(C.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}))}:k.exports=function(x,C){if(C){x.super_=C;var A=function(){};A.prototype=C.prototype,x.prototype=new A,x.prototype.constructor=x}}},{}],197:[function(H,k,d){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/k.exports=function(C){return C!=null&&(O(C)||x(C)||!!C._isBuffer)};function O(C){return!!C.constructor&&typeof C.constructor.isBuffer=="function"&&C.constructor.isBuffer(C)}function x(C){return typeof C.readFloatLE=="function"&&typeof C.slice=="function"&&O(C.slice(0,0))}},{}],198:[function(H,k,d){var O={}.toString;k.exports=Array.isArray||function(x){return O.call(x)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(H,k){typeof exports=="object"&&typeof module!="undefined"?module.exports=k(H):typeof define=="function"&&define.amd?define(k):k(H)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:this,function(global){"use strict";global=global||{};var _Base64=global.Base64,version="2.5.2",buffer;if(typeof module!="undefined"&&module.exports)try{buffer=eval("require('buffer').Buffer")}catch(H){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(H){for(var k={},d=0,O=H.length;d<O;d++)k[H.charAt(d)]=d;return k}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(k){if(k.length<2){var d=k.charCodeAt(0);return d<128?k:d<2048?fromCharCode(192|d>>>6)+fromCharCode(128|d&63):fromCharCode(224|d>>>12&15)+fromCharCode(128|d>>>6&63)+fromCharCode(128|d&63)}else{var d=65536+(k.charCodeAt(0)-55296)*1024+(k.charCodeAt(1)-56320);return fromCharCode(240|d>>>18&7)+fromCharCode(128|d>>>12&63)+fromCharCode(128|d>>>6&63)+fromCharCode(128|d&63)}},re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,utob=function(k){return k.replace(re_utob,cb_utob)},cb_encode=function(k){var d=[0,2,1][k.length%3],O=k.charCodeAt(0)<<16|(k.length>1?k.charCodeAt(1):0)<<8|(k.length>2?k.charCodeAt(2):0),x=[b64chars.charAt(O>>>18),b64chars.charAt(O>>>12&63),d>=2?"=":b64chars.charAt(O>>>6&63),d>=1?"=":b64chars.charAt(O&63)];return x.join("")},btoa=global.btoa?function(H){return global.btoa(H)}:function(H){return H.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(k){var d=Object.prototype.toString.call(k)==="[object Uint8Array]";return d?k.toString("base64"):btoa(utob(String(k)))},encode=function(k,d){return d?_encode(String(k)).replace(/[+\/]/g,function(O){return O=="+"?"-":"_"}).replace(/=/g,""):_encode(k)},encodeURI=function(k){return encode(k,!0)},re_btou=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cb_btou=function(k){switch(k.length){case 4:var d=(7&k.charCodeAt(0))<<18|(63&k.charCodeAt(1))<<12|(63&k.charCodeAt(2))<<6|63&k.charCodeAt(3),O=d-65536;return fromCharCode((O>>>10)+55296)+fromCharCode((O&1023)+56320);case 3:return fromCharCode((15&k.charCodeAt(0))<<12|(63&k.charCodeAt(1))<<6|63&k.charCodeAt(2));default:return fromCharCode((31&k.charCodeAt(0))<<6|63&k.charCodeAt(1))}},btou=function(k){return k.replace(re_btou,cb_btou)},cb_decode=function(k){var d=k.length,O=d%4,x=(d>0?b64tab[k.charAt(0)]<<18:0)|(d>1?b64tab[k.charAt(1)]<<12:0)|(d>2?b64tab[k.charAt(2)]<<6:0)|(d>3?b64tab[k.charAt(3)]:0),C=[fromCharCode(x>>>16),fromCharCode(x>>>8&255),fromCharCode(x&255)];return C.length-=[0,0,2,1][O],C.join("")},_atob=global.atob?function(H){return global.atob(H)}:function(H){return H.replace(/\S{1,4}/g,cb_decode)},atob=function(k){return _atob(String(k).replace(/[^A-Za-z0-9\+\/]/g,""))},_decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(H){return(H.constructor===buffer.constructor?H:buffer.from(H,"base64")).toString()}:function(H){return(H.constructor===buffer.constructor?H:new buffer(H,"base64")).toString()}:function(H){return btou(_atob(H))},decode=function(k){return _decode(String(k).replace(/[-_]/g,function(d){return d=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))},noConflict=function(){var k=global.Base64;return global.Base64=_Base64,k};if(global.Base64={VERSION:version,atob,btoa,fromBase64:decode,toBase64:encode,utob,encode,encodeURI,btou,decode,noConflict,__buffer__:buffer},typeof Object.defineProperty=="function"){var noEnum=function(k){return{value:k,enumerable:!1,writable:!0,configurable:!0}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)})),Object.defineProperty(String.prototype,"toBase64",noEnum(function(H){return encode(this,H)})),Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,!0)}))}}return global.Meteor&&(Base64=global.Base64),typeof module!="undefined"&&module.exports?module.exports.Base64=global.Base64:typeof define=="function"&&define.amd&&define([],function(){return global.Base64}),{Base64:global.Base64}})}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],200:[function(H,k,d){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";k.exports=x;var O=Object.prototype.hasOwnProperty;function x(C,A,b){if(!C)throw new TypeError("argument dest is required");if(!A)throw new TypeError("argument src is required");return b===void 0&&(b=!0),Object.getOwnPropertyNames(A).forEach(function(f){if(!b&&O.call(C,f))return;var c=Object.getOwnPropertyDescriptor(A,f);Object.defineProperty(C,f,c)}),C}},{}],201:[function(H,k,d){"use strict";function O(){this._types=Object.create(null),this._extensions=Object.create(null);for(var x=0;x<arguments.length;x++)this.define(arguments[x]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}O.prototype.define=function(x,C){for(var A in x){var b=x[A].map(function(c){return c.toLowerCase()});A=A.toLowerCase();for(var g=0;g<b.length;g++){var f=b[g];if(f[0]=="*")continue;if(!C&&f in this._types)throw new Error('Attempt to change mapping for "'+f+'" extension from "'+this._types[f]+'" to "'+A+'". Pass `force=true` to allow this, otherwise remove "'+f+'" from the list of extensions for "'+A+'".');this._types[f]=A}if(C||!this._extensions[A]){var f=b[0];this._extensions[A]=f[0]!="*"?f:f.substr(1)}}},O.prototype.getType=function(x){x=String(x);var C=x.replace(/^.*[/\\]/,"").toLowerCase(),A=C.replace(/^.*\./,"").toLowerCase(),b=C.length<x.length,g=A.length<C.length-1;return(g||!b)&&this._types[A]||null},O.prototype.getExtension=function(x){return x=/^\s*([^;\s]*)/.test(x)&&RegExp.$1,x&&this._extensions[x.toLowerCase()]||null},k.exports=O},{}],202:[function(H,k,d){"use strict";var O=H("./Mime");k.exports=new O(H("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(H,k,d){k.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}],204:[function(H,k,d){var O=1e3,x=O*60,C=x*60,A=C*24,b=A*7,g=A*365.25;k.exports=function(i,n){n=n||{};var e=typeof i;if(e==="string"&&i.length>0)return f(i);if(e==="number"&&isFinite(i))return n.long?o(i):c(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function f(i){if(i=String(i),i.length>100)return;var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!n)return;var e=parseFloat(n[1]),l=(n[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return e*g;case"weeks":case"week":case"w":return e*b;case"days":case"day":case"d":return e*A;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*x;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(i){var n=Math.abs(i);return n>=A?Math.round(i/A)+"d":n>=C?Math.round(i/C)+"h":n>=x?Math.round(i/x)+"m":n>=O?Math.round(i/O)+"s":i+"ms"}function o(i){var n=Math.abs(i);return n>=A?r(i,n,A,"day"):n>=C?r(i,n,C,"hour"):n>=x?r(i,n,x,"minute"):n>=O?r(i,n,O,"second"):i+" ms"}function r(i,n,e,l){var t=n>=e*1.5;return Math.round(i/e)+" "+l+(t?"s":"")}},{}],205:[function(H,k,d){(function(O){function x(g,f){for(var c=0,o=g.length-1;o>=0;o--){var r=g[o];r==="."?g.splice(o,1):r===".."?(g.splice(o,1),c++):c&&(g.splice(o,1),c--)}if(f)for(;c--;c)g.unshift("..");return g}d.resolve=function(){for(var g="",f=!1,c=arguments.length-1;c>=-1&&!f;c--){var o=c>=0?arguments[c]:O.cwd();if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!o)continue;g=o+"/"+g,f=o.charAt(0)==="/"}return g=x(A(g.split("/"),function(r){return!!r}),!f).join("/"),(f?"/":"")+g||"."},d.normalize=function(g){var f=d.isAbsolute(g),c=b(g,-1)==="/";return g=x(A(g.split("/"),function(o){return!!o}),!f).join("/"),!g&&!f&&(g="."),g&&c&&(g+="/"),(f?"/":"")+g},d.isAbsolute=function(g){return g.charAt(0)==="/"},d.join=function(){var g=Array.prototype.slice.call(arguments,0);return d.normalize(A(g,function(f,c){if(typeof f!="string")throw new TypeError("Arguments to path.join must be strings");return f}).join("/"))},d.relative=function(g,f){g=d.resolve(g).substr(1),f=d.resolve(f).substr(1);function c(t){for(var a=0;a<t.length&&!(t[a]!=="");a++);for(var s=t.length-1;s>=0&&!(t[s]!=="");s--);return a>s?[]:t.slice(a,s-a+1)}for(var o=c(g.split("/")),r=c(f.split("/")),i=Math.min(o.length,r.length),n=i,e=0;e<i;e++)if(o[e]!==r[e]){n=e;break}for(var l=[],e=n;e<o.length;e++)l.push("..");return l=l.concat(r.slice(n)),l.join("/")},d.sep="/",d.delimiter=":",d.dirname=function(g){if(typeof g!="string"&&(g=g+""),g.length===0)return".";for(var f=g.charCodeAt(0),c=f===47,o=-1,r=!0,i=g.length-1;i>=1;--i)if(f=g.charCodeAt(i),f===47){if(!r){o=i;break}}else r=!1;return o===-1?c?"/":".":c&&o===1?"/":g.slice(0,o)};function C(g){typeof g!="string"&&(g=g+"");var f=0,c=-1,o=!0,r;for(r=g.length-1;r>=0;--r)if(g.charCodeAt(r)===47){if(!o){f=r+1;break}}else c===-1&&(o=!1,c=r+1);return c===-1?"":g.slice(f,c)}d.basename=function(g,f){var c=C(g);return f&&c.substr(-1*f.length)===f&&(c=c.substr(0,c.length-f.length)),c},d.extname=function(g){typeof g!="string"&&(g=g+"");for(var f=-1,c=0,o=-1,r=!0,i=0,n=g.length-1;n>=0;--n){var e=g.charCodeAt(n);if(e===47){if(!r){c=n+1;break}continue}o===-1&&(r=!1,o=n+1),e===46?f===-1?f=n:i!==1&&(i=1):f!==-1&&(i=-1)}return f===-1||o===-1||i===0||i===1&&f===o-1&&f===c+1?"":g.slice(f,o)};function A(g,f){if(g.filter)return g.filter(f);for(var c=[],o=0;o<g.length;o++)f(g[o],o,g)&&c.push(g[o]);return c}var b="ab".substr(-1)==="b"?function(g,f,c){return g.substr(f,c)}:function(g,f,c){return f<0&&(f=g.length+f),g.substr(f,c)}}).call(this,H("_process"))},{_process:208}],206:[function(H,k,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 x={function:!0,object:!0},C=x[typeof window]&&window||this,A=C,b=x[typeof d]&&d,g=x[typeof k]&&k&&!k.nodeType&&k,f=b&&g&&typeof O=="object"&&O;f&&(f.global===f||f.window===f||f.self===f)&&(C=f);var c=Math.pow(2,53)-1,o=/\bOpera/,r=this,i=Object.prototype,n=i.hasOwnProperty,e=i.toString;function l(w){return w=String(w),w.charAt(0).toUpperCase()+w.slice(1)}function t(w,S,_){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 S&&_&&/^Win/i.test(w)&&!/^Windows Phone /i.test(w)&&(I=I[/[\d.]+$/.exec(w)])&&(w="Windows "+I),w=String(w),S&&_&&(w=w.replace(RegExp(S,"i"),_)),w=s(w.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0]),w}function a(w,S){var _=-1,I=w?w.length:0;if(typeof I=="number"&&I>-1&&I<=c)for(;++_<I;)S(w[_],_,w);else u(w,S)}function s(w){return w=y(w),/^(?:webOS|i(?:OS|P))/.test(w)?w:l(w)}function u(w,S){for(var _ in w)n.call(w,_)&&S(w[_],_,w)}function h(w){return w==null?l(w):e.call(w).slice(8,-1)}function p(w,S){var _=w!=null?typeof w[S]:"number";return!/^(?:boolean|number|string|undefined)$/.test(_)&&(_=="object"?!!w[S]:!0)}function m(w){return String(w).replace(/([ -])(?!$)/g,"$1?")}function v(w,S){var _=null;return a(w,function(I,L){_=S(_,I,L,w)}),_}function y(w){return String(w).replace(/^ +| +$/g,"")}function E(w){var S=C,_=w&&typeof w=="object"&&h(w)!="String";_&&(S=w,w=null);var I=S.navigator||{},L=I.userAgent||"";w||(w=L);var N=_||r==A,R=_?!!I.likeChrome:/\bChrome\b/.test(w)&&!/internal|\n/i.test(e.toString()),D="Object",F=_?D:"ScriptBridgingProxyObject",M=_?D:"Environment",U=_&&S.java?"JavaPackage":h(S.java),B=_?D:"RuntimeObject",j=/\bJava/.test(U)&&S.java,W=j&&h(S.environment)==M,V=j?"a":"\u03B1",z=j?"b":"\u03B2",J=S.document||{},q=S.operamini||S.opera,de=o.test(de=_&&q?q["[[Class]]"]:h(q))?de:q=null,ae,ve=w,_e=[],Ie=null,He=w==L,me=He&&q&&typeof q.version=="function"&&q.version(),ke,se=G([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),te=ye(["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"]),Ge=Te([{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"]),oe=Q({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}}),Y=ce(["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(Ee){return v(Ee,function(Ve,vt){return Ve||RegExp("\\b"+(vt.pattern||m(vt))+"\\b","i").exec(w)&&(vt.label||vt)})}function Q(Ee){return v(Ee,function(Ve,vt,et){return Ve||(vt[Ge]||vt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Ge)]||RegExp("\\b"+m(et)+"(?:\\b|\\w*\\d)","i").exec(w))&&et})}function ye(Ee){return v(Ee,function(Ve,vt){return Ve||RegExp("\\b"+(vt.pattern||m(vt))+"\\b","i").exec(w)&&(vt.label||vt)})}function ce(Ee){return v(Ee,function(Ve,vt){var et=vt.pattern||m(vt);return!Ve&&(Ve=RegExp("\\b"+et+"(?:/[\\d.]+|[ \\w.]*)","i").exec(w))&&(Ve=t(Ve,et,vt.label||vt)),Ve})}function Te(Ee){return v(Ee,function(Ve,vt){var et=vt.pattern||m(vt);return!Ve&&(Ve=RegExp("\\b"+et+" *\\d+[.\\w_]*","i").exec(w)||RegExp("\\b"+et+" *\\w+-[\\w]*","i").exec(w)||RegExp("\\b"+et+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(w))&&((Ve=String(vt.label&&!RegExp(et,"i").test(vt.label)?vt.label:Ve).split("/"))[1]&&!/[\d.]+/.test(Ve[0])&&(Ve[0]+=" "+Ve[1]),vt=vt.label||vt,Ve=s(Ve[0].replace(RegExp(et,"i"),vt).replace(RegExp("; *(?:"+vt+"[_-])?","i")," ").replace(RegExp("("+vt+")[-_.]?(\\w)","i"),"$1 $2"))),Ve})}function Se(Ee){return v(Ee,function(Ve,vt){return Ve||(RegExp(vt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(w)||0)[1]||null})}function le(){return this.description||""}if(se&&(se=[se]),oe&&!Ge&&(Ge=Te([oe])),(ae=/\bGoogle TV\b/.exec(Ge))&&(Ge=ae[0]),/\bSimulator\b/i.test(w)&&(Ge=(Ge?Ge+" ":"")+"Simulator"),te=="Opera Mini"&&/\bOPiOS\b/.test(w)&&_e.push("running in Turbo/Uncompressed mode"),te=="IE"&&/\blike iPhone OS\b/.test(w)?(ae=E(w.replace(/like iPhone OS/,"")),oe=ae.manufacturer,Ge=ae.product):/^iP/.test(Ge)?(te||(te="Safari"),Y="iOS"+((ae=/ OS ([\d_]+)/i.exec(w))?" "+ae[1].replace(/_/g,"."):"")):te=="Konqueror"&&!/buntu/i.test(Y)?Y="Kubuntu":oe&&oe!="Google"&&(/Chrome/.test(te)&&!/\bMobile Safari\b/i.test(w)||/\bVita\b/.test(Ge))||/\bAndroid\b/.test(Y)&&/^Chrome/.test(te)&&/\bVersion\//i.test(w)?(te="Android Browser",Y=/\bAndroid\b/.test(Y)?Y:"Android"):te=="Silk"?(/\bMobi/i.test(w)||(Y="Android",_e.unshift("desktop mode")),/Accelerated *= *true/i.test(w)&&_e.unshift("accelerated")):te=="PaleMoon"&&(ae=/\bFirefox\/([\d.]+)\b/.exec(w))?_e.push("identifying as Firefox "+ae[1]):te=="Firefox"&&(ae=/\b(Mobile|Tablet|TV)\b/i.exec(w))?(Y||(Y="Firefox OS"),Ge||(Ge=ae[1])):!te||(ae=!/\bMinefield\b/i.test(w)&&/\b(?:Firefox|Safari)\b/.exec(te))?(te&&!Ge&&/[\/,]|^[^(]+?\)/.test(w.slice(w.indexOf(ae+"/")+8))&&(te=null),(ae=Ge||oe||Y)&&(Ge||oe||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Y))&&(te=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Y)?Y:ae)+" Browser")):te=="Electron"&&(ae=(/\bChrome\/([\d.]+)\b/.exec(w)||0)[1])&&_e.push("Chromium "+ae),me||(me=Se(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",m(te),"(?:Firefox|Minefield|NetFront)"])),(ae=se=="iCab"&&parseFloat(me)>3&&"WebKit"||/\bOpera\b/.test(te)&&(/\bOPR\b/.test(w)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(w)&&!/^(?:Trident|EdgeHTML)$/.test(se)&&"WebKit"||!se&&/\bMSIE\b/i.test(w)&&(Y=="Mac OS"?"Tasman":"Trident")||se=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(te)&&"NetFront")&&(se=[ae]),te=="IE"&&(ae=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(w)||0)[1])?(te+=" Mobile",Y="Windows Phone "+(/\+$/.test(ae)?ae:ae+".x"),_e.unshift("desktop mode")):/\bWPDesktop\b/i.test(w)?(te="IE Mobile",Y="Windows Phone 8.x",_e.unshift("desktop mode"),me||(me=(/\brv:([\d.]+)/.exec(w)||0)[1])):te!="IE"&&se=="Trident"&&(ae=/\brv:([\d.]+)/.exec(w))&&(te&&_e.push("identifying as "+te+(me?" "+me:"")),te="IE",me=ae[1]),He){if(p(S,"global"))if(j&&(ae=j.lang.System,ve=ae.getProperty("os.arch"),Y=Y||ae.getProperty("os.name")+" "+ae.getProperty("os.version")),W){try{me=S.require("ringo/engine").version.join("."),te="RingoJS"}catch(Ee){(ae=S.system)&&ae.global.system==S.system&&(te="Narwhal",Y||(Y=ae[0].os||null))}te||(te="Rhino")}else typeof S.process=="object"&&!S.process.browser&&(ae=S.process)&&(typeof ae.versions=="object"&&(typeof ae.versions.electron=="string"?(_e.push("Node "+ae.versions.node),te="Electron",me=ae.versions.electron):typeof ae.versions.nw=="string"&&(_e.push("Chromium "+me,"Node "+ae.versions.node),te="NW.js",me=ae.versions.nw)),te||(te="Node.js",ve=ae.arch,Y=ae.platform,me=/[\d.]+/.exec(ae.version),me=me?me[0]:null));else h(ae=S.runtime)==F?(te="Adobe AIR",Y=ae.flash.system.Capabilities.os):h(ae=S.phantom)==B?(te="PhantomJS",me=(ae=ae.version||null)&&ae.major+"."+ae.minor+"."+ae.patch):typeof J.documentMode=="number"&&(ae=/\bTrident\/(\d+)/i.exec(w))?(me=[me,J.documentMode],(ae=+ae[1]+4)!=me[1]&&(_e.push("IE "+me[1]+" mode"),se&&(se[1]=""),me[1]=ae),me=te=="IE"?String(me[1].toFixed(1)):me[0]):typeof J.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(te)&&(_e.push("masking as "+te+" "+me),te="IE",me="11.0",se=["Trident"],Y="Windows");Y=Y&&s(Y)}if(me&&(ae=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(me)||/(?:alpha|beta)(?: ?\d)?/i.exec(w+";"+(He&&I.appMinorVersion))||/\bMinefield\b/i.test(w)&&"a")&&(Ie=/b/i.test(ae)?"beta":"alpha",me=me.replace(RegExp(ae+"\\+?$"),"")+(Ie=="beta"?z:V)+(/\d+\+?/.exec(ae)||"")),te=="Fennec"||te=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(Y))te="Firefox Mobile";else if(te=="Maxthon"&&me)me=me.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Ge))Ge=="Xbox 360"&&(Y=null),Ge=="Xbox 360"&&/\bIEMobile\b/.test(w)&&_e.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(te)||te&&!Ge&&!/Browser|Mobi/.test(te))&&(Y=="Windows CE"||/Mobi/i.test(w)))te+=" Mobile";else if(te=="IE"&&He)try{S.external===null&&_e.unshift("platform preview")}catch(Ee){_e.unshift("embedded")}else(/\bBlackBerry\b/.test(Ge)||/\bBB10\b/.test(w))&&(ae=(RegExp(Ge.replace(/ +/g," *")+"/([.\\d]+)","i").exec(w)||0)[1]||me)?(ae=[ae,/BB10/.test(w)],Y=(ae[1]?(Ge=null,oe="BlackBerry"):"Device Software")+" "+ae[0],me=null):this!=u&&Ge!="Wii"&&(He&&q||/Opera/.test(te)&&/\b(?:MSIE|Firefox)\b/i.test(w)||te=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Y)||te=="IE"&&(Y&&!/^Win/.test(Y)&&me>5.5||/\bWindows XP\b/.test(Y)&&me>8||me==8&&!/\bTrident\b/.test(w)))&&!o.test(ae=E.call(u,w.replace(o,"")+";"))&&ae.name&&(ae="ing as "+ae.name+((ae=ae.version)?" "+ae:""),o.test(te)?(/\bIE\b/.test(ae)&&Y=="Mac OS"&&(Y=null),ae="identify"+ae):(ae="mask"+ae,de?te=s(de.replace(/([a-z])([A-Z])/g,"$1 $2")):te="Opera",/\bIE\b/.test(ae)&&(Y=null),He||(me=null)),se=["Presto"],_e.push(ae));(ae=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(w)||0)[1])&&(ae=[parseFloat(ae.replace(/\.(\d)$/,".0$1")),ae],te=="Safari"&&ae[1].slice(-1)=="+"?(te="WebKit Nightly",Ie="alpha",me=ae[1].slice(0,-1)):(me==ae[1]||me==(ae[2]=(/\bSafari\/([\d.]+\+?)/i.exec(w)||0)[1]))&&(me=null),ae[1]=(/\bChrome\/([\d.]+)/i.exec(w)||0)[1],ae[0]==537.36&&ae[2]==537.36&&parseFloat(ae[1])>=28&&se=="WebKit"&&(se=["Blink"]),!He||!R&&!ae[1]?(se&&(se[1]="like Safari"),ae=(ae=ae[0],ae<400?1:ae<500?2:ae<526?3:ae<533?4:ae<534?"4+":ae<535?5:ae<537?6:ae<538?7:ae<601?8:"8")):(se&&(se[1]="like Chrome"),ae=ae[1]||(ae=ae[0],ae<530?1:ae<532?2:ae<532.05?3:ae<533?4:ae<534.03?5:ae<534.07?6:ae<534.1?7:ae<534.13?8:ae<534.16?9:ae<534.24?10:ae<534.3?11:ae<535.01?12:ae<535.02?"13+":ae<535.07?15:ae<535.11?16:ae<535.19?17:ae<536.05?18:ae<536.1?19:ae<537.01?20:ae<537.11?"21+":ae<537.13?23:ae<537.18?24:ae<537.24?25:ae<537.36?26:se!="Blink"?"27":"28")),se&&(se[1]+=" "+(ae+=typeof ae=="number"?".x":/[.+]/.test(ae)?"":"+")),te=="Safari"&&(!me||parseInt(me)>45)&&(me=ae)),te=="Opera"&&(ae=/\bzbov|zvav$/.exec(Y))?(te+=" ",_e.unshift("desktop mode"),ae=="zvav"?(te+="Mini",me=null):te+="Mobile",Y=Y.replace(RegExp(" *"+ae+"$"),"")):te=="Safari"&&/\bChrome\b/.exec(se&&se[1])&&(_e.unshift("desktop mode"),te="Chrome Mobile",me=null,/\bOS X\b/.test(Y)?(oe="Apple",Y="iOS 4.3+"):Y=null),me&&me.indexOf(ae=/[\d.]+$/.exec(Y))==0&&w.indexOf("/"+ae+"-")>-1&&(Y=y(Y.replace(ae,""))),se&&!/\b(?:Avant|Nook)\b/.test(te)&&(/Browser|Lunascape|Maxthon/.test(te)||te!="Safari"&&/^iOS/.test(Y)&&/\bSafari\b/.test(se[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(te)&&se[1])&&((ae=se[se.length-1])&&_e.push(ae)),_e.length&&(_e=["("+_e.join("; ")+")"]),oe&&Ge&&Ge.indexOf(oe)<0&&_e.push("on "+oe),Ge&&_e.push((/^on /.test(_e[_e.length-1])?"":"on ")+Ge),Y&&(ae=/ ([\d.+]+)$/.exec(Y),ke=ae&&Y.charAt(Y.length-ae[0].length-1)=="/",Y={architecture:32,family:ae&&!ke?Y.replace(ae[0],""):Y,version:ae?ae[1]:null,toString:function(){var Ve=this.version;return this.family+(Ve&&!ke?" "+Ve:"")+(this.architecture==64?" 64-bit":"")}}),(ae=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ve))&&!/\bi686\b/i.test(ve)?(Y&&(Y.architecture=64,Y.family=Y.family.replace(RegExp(" *"+ae),"")),te&&(/\bWOW64\b/i.test(w)||He&&/\w(?:86|32)$/.test(I.cpuClass||I.platform)&&!/\bWin64; x64\b/i.test(w))&&_e.unshift("32-bit")):Y&&/^OS X/.test(Y.family)&&te=="Chrome"&&parseFloat(me)>=39&&(Y.architecture=64),w||(w=null);var fe={};return fe.description=w,fe.layout=se&&se[0],fe.manufacturer=oe,fe.name=te,fe.prerelease=Ie,fe.product=Ge,fe.ua=w,fe.version=te&&me,fe.os=Y||{architecture:null,family:null,version:null,toString:function(){return"null"}},fe.parse=E,fe.toString=le,fe.version&&_e.unshift(me),fe.name&&_e.unshift(te),Y&&te&&!(Y==String(Y).split(" ")[0]&&(Y==te.split(" ")[0]||Ge))&&_e.push(Ge?"("+Y+")":"on "+Y),_e.length&&(fe.description=_e.join(" ")),fe}var T=E();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(C.platform=T,define(function(){return T})):b&&g?u(T,function(w,S){b[S]=w}):C.platform=T}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(H,k,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?k.exports={nextTick:x}:k.exports=O;function x(C,A,b,g){if(typeof C!="function")throw new TypeError('"callback" argument must be a function');var f=arguments.length,c,o;switch(f){case 0:case 1:return O.nextTick(C);case 2:return O.nextTick(function(){C.call(null,A)});case 3:return O.nextTick(function(){C.call(null,A,b)});case 4:return O.nextTick(function(){C.call(null,A,b,g)});default:for(c=new Array(f-1),o=0;o<c.length;)c[o++]=arguments[o];return O.nextTick(function(){C.apply(null,c)})}}}).call(this,H("_process"))},{_process:208}],208:[function(H,k,d){var O=k.exports={},x,C;function A(){throw new Error("setTimeout has not been defined")}function b(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?x=setTimeout:x=A}catch(a){x=A}try{typeof clearTimeout=="function"?C=clearTimeout:C=b}catch(a){C=b}})();function g(a){if(x===setTimeout)return setTimeout(a,0);if((x===A||!x)&&setTimeout)return x=setTimeout,setTimeout(a,0);try{return x(a,0)}catch(s){try{return x.call(null,a,0)}catch(u){return x.call(this,a,0)}}}function f(a){if(C===clearTimeout)return clearTimeout(a);if((C===b||!C)&&clearTimeout)return C=clearTimeout,clearTimeout(a);try{return C(a)}catch(s){try{return C.call(null,a)}catch(u){return C.call(this,a)}}}var c=[],o=!1,r,i=-1;function n(){if(!o||!r)return;o=!1,r.length?c=r.concat(c):i=-1,c.length&&e()}function e(){if(o)return;var a=g(n);o=!0;for(var s=c.length;s;){for(r=c,c=[];++i<s;)r&&r[i].run();i=-1,s=c.length}r=null,o=!1,f(a)}O.nextTick=function(a){var s=new Array(arguments.length-1);if(arguments.length>1)for(var u=1;u<arguments.length;u++)s[u-1]=arguments[u];c.push(new l(a,s)),c.length===1&&!o&&g(e)};function l(a,s){this.fun=a,this.array=s}l.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(H,k,d){(function(O){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(x){var C=typeof d=="object"&&d&&!d.nodeType&&d,A=typeof k=="object"&&k&&!k.nodeType&&k,b=typeof O=="object"&&O;(b.global===b||b.window===b||b.self===b)&&(x=b);var g,f=2147483647,c=36,o=1,r=26,i=38,n=700,e=72,l=128,t="-",a=/^xn--/,s=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=c-o,m=Math.floor,v=String.fromCharCode,y;function E(U){throw new RangeError(h[U])}function T(U,B){for(var j=U.length,W=[];j--;)W[j]=B(U[j]);return W}function w(U,B){var j=U.split("@"),W="";j.length>1&&(W=j[0]+"@",U=j[1]),U=U.replace(u,".");var V=U.split("."),z=T(V,B).join(".");return W+z}function S(U){for(var B=[],j=0,W=U.length,V,z;j<W;)V=U.charCodeAt(j++),V>=55296&&V<=56319&&j<W?(z=U.charCodeAt(j++),(z&64512)==56320?B.push(((V&1023)<<10)+(z&1023)+65536):(B.push(V),j--)):B.push(V);return B}function _(U){return T(U,function(B){var j="";return B>65535&&(B-=65536,j+=v(B>>>10&1023|55296),B=56320|B&1023),j+=v(B),j}).join("")}function I(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:c}function L(U,B){return U+22+75*(U<26)-((B!=0)<<5)}function N(U,B,j){var W=0;for(U=j?m(U/n):U>>1,U+=m(U/B);U>p*r>>1;W+=c)U=m(U/p);return m(W+(p+1)*U/(U+i))}function R(U){var B=[],j=U.length,W,V=0,z=l,J=e,q,de,ae,ve,_e,Ie,He,me,ke;for(q=U.lastIndexOf(t),q<0&&(q=0),de=0;de<q;++de)U.charCodeAt(de)>=128&&E("not-basic"),B.push(U.charCodeAt(de));for(ae=q>0?q+1:0;ae<j;){for(ve=V,_e=1,Ie=c;!(ae>=j&&E("invalid-input"),He=I(U.charCodeAt(ae++)),(He>=c||He>m((f-V)/_e))&&E("overflow"),V+=He*_e,me=Ie<=J?o:Ie>=J+r?r:Ie-J,He<me);Ie+=c)ke=c-me,_e>m(f/ke)&&E("overflow"),_e*=ke;W=B.length+1,J=N(V-ve,W,ve==0),m(V/W)>f-z&&E("overflow"),z+=m(V/W),V%=W,B.splice(V++,0,z)}return _(B)}function D(U){var B,j,W,V,z,J,q,de,ae,ve,_e,Ie=[],He,me,ke,se;for(U=S(U),He=U.length,B=l,j=0,z=e,J=0;J<He;++J)_e=U[J],_e<128&&Ie.push(v(_e));for(W=V=Ie.length,V&&Ie.push(t);W<He;){for(q=f,J=0;J<He;++J)_e=U[J],_e>=B&&_e<q&&(q=_e);for(me=W+1,q-B>m((f-j)/me)&&E("overflow"),j+=(q-B)*me,B=q,J=0;J<He;++J)if(_e=U[J],_e<B&&++j>f&&E("overflow"),_e==B){for(de=j,ae=c;!(ve=ae<=z?o:ae>=z+r?r:ae-z,de<ve);ae+=c)se=de-ve,ke=c-ve,Ie.push(v(L(ve+se%ke,0))),de=m(se/ke);Ie.push(v(L(de,0))),z=N(j,me,W==V),j=0,++W}++j,++B}return Ie.join("")}function F(U){return w(U,function(B){return a.test(B)?R(B.slice(4).toLowerCase()):B})}function M(U){return w(U,function(B){return s.test(B)?"xn--"+D(B):B})}if(g={version:"1.4.1",ucs2:{decode:S,encode:_},decode:R,encode:D,toASCII:M,toUnicode:F},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return g});else if(C&&A)if(k.exports==C)A.exports=g;else for(y in g)g.hasOwnProperty(y)&&(C[y]=g[y]);else x.punycode=g})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(H,k,d){"use strict";function O(C,A){return Object.prototype.hasOwnProperty.call(C,A)}k.exports=function(C,A,b,g){A=A||"&",b=b||"=";var f={};if(typeof C!="string"||C.length===0)return f;var c=/\+/g;C=C.split(A);var o=1e3;g&&typeof g.maxKeys=="number"&&(o=g.maxKeys);var r=C.length;o>0&&r>o&&(r=o);for(var i=0;i<r;++i){var n=C[i].replace(c,"%20"),e=n.indexOf(b),l,t,a,s;e>=0?(l=n.substr(0,e),t=n.substr(e+1)):(l=n,t=""),a=decodeURIComponent(l),s=decodeURIComponent(t),O(f,a)?x(f[a])?f[a].push(s):f[a]=[f[a],s]:f[a]=s}return f};var x=Array.isArray||function(C){return Object.prototype.toString.call(C)==="[object Array]"}},{}],211:[function(H,k,d){"use strict";var O=function(g){switch(typeof g){case"string":return g;case"boolean":return g?"true":"false";case"number":return isFinite(g)?g:"";default:return""}};k.exports=function(b,g,f,c){return g=g||"&",f=f||"=",b===null&&(b=void 0),typeof b=="object"?C(A(b),function(o){var r=encodeURIComponent(O(o))+f;return x(b[o])?C(b[o],function(i){return r+encodeURIComponent(O(i))}).join(g):r+encodeURIComponent(O(b[o]))}).join(g):c?encodeURIComponent(O(c))+f+encodeURIComponent(O(b)):""};var x=Array.isArray||function(b){return Object.prototype.toString.call(b)==="[object Array]"};function C(b,g){if(b.map)return b.map(g);for(var f=[],c=0;c<b.length;c++)f.push(g(b[c],c));return f}var A=Object.keys||function(b){var g=[];for(var f in b)Object.prototype.hasOwnProperty.call(b,f)&&g.push(f);return g}},{}],212:[function(H,k,d){"use strict";d.decode=d.parse=H("./decode"),d.encode=d.stringify=H("./encode")},{"./decode":210,"./encode":211}],213:[function(H,k,d){k.exports=H("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=b(O),C=H("babel-runtime/core-js/object/keys"),A=b(C);function b(s){return s&&s.__esModule?s:{default:s}}var g=H("process-nextick-args"),f=A.default||function(s){var u=[];for(var h in s)u.push(h);return u};k.exports=l;var c=(0,x.default)(H("core-util-is"));c.inherits=H("inherits");var o=H("./_stream_readable"),r=H("./_stream_writable");c.inherits(l,o);for(var i=f(r.prototype),n=0;n<i.length;n++){var e=i[n];l.prototype[e]||(l.prototype[e]=r.prototype[e])}function l(s){if(!(this instanceof l))return new l(s);o.call(this,s),r.call(this,s),s&&s.readable===!1&&(this.readable=!1),s&&s.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,s&&s.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",t)}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function t(){if(this.allowHalfOpen||this._writableState.ended)return;g.nextTick(a,this)}function a(s){s.end()}Object.defineProperty(l.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(u){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=u,this._writableState.destroyed=u}}),l.prototype._destroy=function(s,u){this.push(null),this.end(),g.nextTick(u,s)}},{"./_stream_readable":216,"./_stream_writable":218,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60,"core-util-is":189,inherits:196,"process-nextick-args":207}],215:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(f){return f&&f.__esModule?f:{default:f}}k.exports=g;var A=H("./_stream_transform"),b=(0,x.default)(H("core-util-is"));b.inherits=H("inherits"),b.inherits(g,A);function g(f){if(!(this instanceof g))return new g(f);A.call(this,f)}g.prototype._transform=function(f,c,o){o(null,f)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(H,k,d){(function(O,x){"use strict";var C=H("babel-runtime/core-js/object/get-prototype-of"),A=f(C),b=H("babel-runtime/core-js/object/create"),g=f(b);function f(se){return se&&se.__esModule?se:{default:se}}var c=H("process-nextick-args");k.exports=S;var o=H("isarray"),r;S.ReadableState=w;var i=H("events").EventEmitter,n=function(te,Ge){return te.listeners(Ge).length},e=H("./internal/streams/stream"),l=H("safe-buffer").Buffer,t=x.Uint8Array||function(){};function a(se){return l.from(se)}function s(se){return l.isBuffer(se)||se instanceof t}var u=(0,g.default)(H("core-util-is"));u.inherits=H("inherits");var h=H("util"),p=void 0;h&&h.debuglog?p=h.debuglog("stream"):p=function(){};var m=H("./internal/streams/BufferList"),v=H("./internal/streams/destroy"),y;u.inherits(S,e);var E=["error","close","destroy","pause","resume"];function T(se,te,Ge){if(typeof se.prependListener=="function")return se.prependListener(te,Ge);!se._events||!se._events[te]?se.on(te,Ge):o(se._events[te])?se._events[te].unshift(Ge):se._events[te]=[Ge,se._events[te]]}function w(se,te){r=r||H("./_stream_duplex"),se=se||{};var Ge=te instanceof r;this.objectMode=!!se.objectMode,Ge&&(this.objectMode=this.objectMode||!!se.readableObjectMode);var oe=se.highWaterMark,Y=se.readableHighWaterMark,G=this.objectMode?16:16*1024;oe||oe===0?this.highWaterMark=oe:Ge&&(Y||Y===0)?this.highWaterMark=Y:this.highWaterMark=G,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,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=se.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,se.encoding&&(y||(y=H("string_decoder/").StringDecoder),this.decoder=new y(se.encoding),this.encoding=se.encoding)}function S(se){if(r=r||H("./_stream_duplex"),!(this instanceof S))return new S(se);this._readableState=new w(se,this),this.readable=!0,se&&(typeof se.read=="function"&&(this._read=se.read),typeof se.destroy=="function"&&(this._destroy=se.destroy)),e.call(this)}Object.defineProperty(S.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(te){if(!this._readableState)return;this._readableState.destroyed=te}}),S.prototype.destroy=v.destroy,S.prototype._undestroy=v.undestroy,S.prototype._destroy=function(se,te){this.push(null),te(se)},S.prototype.push=function(se,te){var Ge=this._readableState,oe;return Ge.objectMode?oe=!0:typeof se=="string"&&(te=te||Ge.defaultEncoding,te!==Ge.encoding&&(se=l.from(se,te),te=""),oe=!0),_(this,se,te,!1,oe)},S.prototype.unshift=function(se){return _(this,se,null,!0,!1)};function _(se,te,Ge,oe,Y){var G=se._readableState;if(te===null)G.reading=!1,M(se,G);else{var Q;Y||(Q=L(G,te)),Q?se.emit("error",Q):G.objectMode||te&&te.length>0?(typeof te!="string"&&!G.objectMode&&(0,A.default)(te)!==l.prototype&&(te=a(te)),oe?G.endEmitted?se.emit("error",new Error("stream.unshift() after end event")):I(se,G,te,!0):G.ended?se.emit("error",new Error("stream.push() after EOF")):(G.reading=!1,G.decoder&&!Ge?(te=G.decoder.write(te),G.objectMode||te.length!==0?I(se,G,te,!1):j(se,G)):I(se,G,te,!1))):oe||(G.reading=!1)}return N(G)}function I(se,te,Ge,oe){te.flowing&&te.length===0&&!te.sync?(se.emit("data",Ge),se.read(0)):(te.length+=te.objectMode?1:Ge.length,oe?te.buffer.unshift(Ge):te.buffer.push(Ge),te.needReadable&&U(se)),j(se,te)}function L(se,te){var Ge;return!s(te)&&typeof te!="string"&&te!==void 0&&!se.objectMode&&(Ge=new TypeError("Invalid non-string/buffer chunk")),Ge}function N(se){return!se.ended&&(se.needReadable||se.length<se.highWaterMark||se.length===0)}S.prototype.isPaused=function(){return this._readableState.flowing===!1},S.prototype.setEncoding=function(se){return y||(y=H("string_decoder/").StringDecoder),this._readableState.decoder=new y(se),this._readableState.encoding=se,this};var R=8388608;function D(se){return se>=R?se=R:(se--,se|=se>>>1,se|=se>>>2,se|=se>>>4,se|=se>>>8,se|=se>>>16,se++),se}function F(se,te){return se<=0||te.length===0&&te.ended?0:te.objectMode?1:se!==se?te.flowing&&te.length?te.buffer.head.data.length:te.length:(se>te.highWaterMark&&(te.highWaterMark=D(se)),se<=te.length?se:te.ended?te.length:(te.needReadable=!0,0))}S.prototype.read=function(se){p("read",se),se=parseInt(se,10);var te=this._readableState,Ge=se;if(se!==0&&(te.emittedReadable=!1),se===0&&te.needReadable&&(te.length>=te.highWaterMark||te.ended))return p("read: emitReadable",te.length,te.ended),te.length===0&&te.ended?He(this):U(this),null;if(se=F(se,te),se===0&&te.ended)return te.length===0&&He(this),null;var oe=te.needReadable;p("need readable",oe),(te.length===0||te.length-se<te.highWaterMark)&&(oe=!0,p("length less than watermark",oe)),te.ended||te.reading?(oe=!1,p("reading or ended",oe)):oe&&(p("do read"),te.reading=!0,te.sync=!0,te.length===0&&(te.needReadable=!0),this._read(te.highWaterMark),te.sync=!1,te.reading||(se=F(Ge,te)));var Y;return se>0?Y=ae(se,te):Y=null,Y===null?(te.needReadable=!0,se=0):te.length-=se,te.length===0&&(te.ended||(te.needReadable=!0),Ge!==se&&te.ended&&He(this)),Y!==null&&this.emit("data",Y),Y};function M(se,te){if(te.ended)return;if(te.decoder){var Ge=te.decoder.end();Ge&&Ge.length&&(te.buffer.push(Ge),te.length+=te.objectMode?1:Ge.length)}te.ended=!0,U(se)}function U(se){var te=se._readableState;te.needReadable=!1,te.emittedReadable||(p("emitReadable",te.flowing),te.emittedReadable=!0,te.sync?c.nextTick(B,se):B(se))}function B(se){p("emit readable"),se.emit("readable"),de(se)}function j(se,te){te.readingMore||(te.readingMore=!0,c.nextTick(W,se,te))}function W(se,te){for(var Ge=te.length;!te.reading&&!te.flowing&&!te.ended&&te.length<te.highWaterMark&&!(p("maybeReadMore read 0"),se.read(0),Ge===te.length);)Ge=te.length;te.readingMore=!1}S.prototype._read=function(se){this.emit("error",new Error("_read() is not implemented"))},S.prototype.pipe=function(se,te){var Ge=this,oe=this._readableState;switch(oe.pipesCount){case 0:oe.pipes=se;break;case 1:oe.pipes=[oe.pipes,se];break;default:oe.pipes.push(se);break}oe.pipesCount+=1,p("pipe count=%d opts=%j",oe.pipesCount,te);var Y=(!te||te.end!==!1)&&se!==O.stdout&&se!==O.stderr,G=Y?ye:et;oe.endEmitted?c.nextTick(G):Ge.once("end",G),se.on("unpipe",Q);function Q(Oe,Tt){p("onunpipe"),Oe===Ge&&(Tt&&Tt.hasUnpiped===!1&&(Tt.hasUnpiped=!0,Se()))}function ye(){p("onend"),se.end()}var ce=V(Ge);se.on("drain",ce);var Te=!1;function Se(){p("cleanup"),se.removeListener("close",Ve),se.removeListener("finish",vt),se.removeListener("drain",ce),se.removeListener("error",Ee),se.removeListener("unpipe",Q),Ge.removeListener("end",ye),Ge.removeListener("end",et),Ge.removeListener("data",fe),Te=!0,oe.awaitDrain&&(!se._writableState||se._writableState.needDrain)&&ce()}var le=!1;Ge.on("data",fe);function fe(Oe){p("ondata"),le=!1;var Tt=se.write(Oe);Tt===!1&&!le&&((oe.pipesCount===1&&oe.pipes===se||oe.pipesCount>1&&ke(oe.pipes,se)!==-1)&&!Te&&(p("false write response, pause",Ge._readableState.awaitDrain),Ge._readableState.awaitDrain++,le=!0),Ge.pause())}function Ee(Oe){p("onerror",Oe),et(),se.removeListener("error",Ee),n(se,"error")===0&&se.emit("error",Oe)}T(se,"error",Ee);function Ve(){se.removeListener("finish",vt),et()}se.once("close",Ve);function vt(){p("onfinish"),se.removeListener("close",Ve),et()}se.once("finish",vt);function et(){p("unpipe"),Ge.unpipe(se)}return se.emit("pipe",Ge),oe.flowing||(p("pipe resume"),Ge.resume()),se};function V(se){return function(){var te=se._readableState;p("pipeOnDrain",te.awaitDrain),te.awaitDrain&&te.awaitDrain--,te.awaitDrain===0&&n(se,"data")&&(te.flowing=!0,de(se))}}S.prototype.unpipe=function(se){var te=this._readableState,Ge={hasUnpiped:!1};if(te.pipesCount===0)return this;if(te.pipesCount===1)return se&&se!==te.pipes?this:(se||(se=te.pipes),te.pipes=null,te.pipesCount=0,te.flowing=!1,se&&se.emit("unpipe",this,Ge),this);if(!se){var oe=te.pipes,Y=te.pipesCount;te.pipes=null,te.pipesCount=0,te.flowing=!1;for(var G=0;G<Y;G++)oe[G].emit("unpipe",this,Ge);return this}var Q=ke(te.pipes,se);return Q===-1?this:(te.pipes.splice(Q,1),te.pipesCount-=1,te.pipesCount===1&&(te.pipes=te.pipes[0]),se.emit("unpipe",this,Ge),this)},S.prototype.on=function(se,te){var Ge=e.prototype.on.call(this,se,te);if(se==="data")this._readableState.flowing!==!1&&this.resume();else if(se==="readable"){var oe=this._readableState;!oe.endEmitted&&!oe.readableListening&&(oe.readableListening=oe.needReadable=!0,oe.emittedReadable=!1,oe.reading?oe.length&&U(this):c.nextTick(z,this))}return Ge},S.prototype.addListener=S.prototype.on;function z(se){p("readable nexttick read 0"),se.read(0)}S.prototype.resume=function(){var se=this._readableState;return se.flowing||(p("resume"),se.flowing=!0,J(this,se)),this};function J(se,te){te.resumeScheduled||(te.resumeScheduled=!0,c.nextTick(q,se,te))}function q(se,te){te.reading||(p("resume read 0"),se.read(0)),te.resumeScheduled=!1,te.awaitDrain=0,se.emit("resume"),de(se),te.flowing&&!te.reading&&se.read(0)}S.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 de(se){var te=se._readableState;for(p("flow",te.flowing);te.flowing&&se.read()!==null;);}S.prototype.wrap=function(se){var te=this,Ge=this._readableState,oe=!1;se.on("end",function(){if(p("wrapped end"),Ge.decoder&&!Ge.ended){var Q=Ge.decoder.end();Q&&Q.length&&te.push(Q)}te.push(null)}),se.on("data",function(Q){if(p("wrapped data"),Ge.decoder&&(Q=Ge.decoder.write(Q)),Ge.objectMode&&Q==null)return;if(!Ge.objectMode&&(!Q||!Q.length))return;var ye=te.push(Q);ye||(oe=!0,se.pause())});for(var Y in se)this[Y]===void 0&&typeof se[Y]=="function"&&(this[Y]=function(Q){return function(){return se[Q].apply(se,arguments)}}(Y));for(var G=0;G<E.length;G++)se.on(E[G],this.emit.bind(this,E[G]));return this._read=function(Q){p("wrapped _read",Q),oe&&(oe=!1,se.resume())},this},Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),S._fromList=ae;function ae(se,te){if(te.length===0)return null;var Ge;return te.objectMode?Ge=te.buffer.shift():!se||se>=te.length?(te.decoder?Ge=te.buffer.join(""):te.buffer.length===1?Ge=te.buffer.head.data:Ge=te.buffer.concat(te.length),te.buffer.clear()):Ge=ve(se,te.buffer,te.decoder),Ge}function ve(se,te,Ge){var oe;return se<te.head.data.length?(oe=te.head.data.slice(0,se),te.head.data=te.head.data.slice(se)):se===te.head.data.length?oe=te.shift():oe=Ge?_e(se,te):Ie(se,te),oe}function _e(se,te){var Ge=te.head,oe=1,Y=Ge.data;for(se-=Y.length;Ge=Ge.next;){var G=Ge.data,Q=se>G.length?G.length:se;if(Q===G.length?Y+=G:Y+=G.slice(0,se),se-=Q,se===0){Q===G.length?(++oe,Ge.next?te.head=Ge.next:te.head=te.tail=null):(te.head=Ge,Ge.data=G.slice(Q));break}++oe}return te.length-=oe,Y}function Ie(se,te){var Ge=l.allocUnsafe(se),oe=te.head,Y=1;for(oe.data.copy(Ge),se-=oe.data.length;oe=oe.next;){var G=oe.data,Q=se>G.length?G.length:se;if(G.copy(Ge,Ge.length-se,0,Q),se-=Q,se===0){Q===G.length?(++Y,oe.next?te.head=oe.next:te.head=te.tail=null):(te.head=oe,oe.data=G.slice(Q));break}++Y}return te.length-=Y,Ge}function He(se){var te=se._readableState;if(te.length>0)throw new Error('"endReadable()" called on non-empty stream');te.endEmitted||(te.ended=!0,c.nextTick(me,te,se))}function me(se,te){!se.endEmitted&&se.length===0&&(se.endEmitted=!0,te.readable=!1,te.emit("end"))}function ke(se,te){for(var Ge=0,oe=se.length;Ge<oe;Ge++)if(se[Ge]===te)return Ge;return-1}}).call(this,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/BufferList":219,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/get-prototype-of":59,"core-util-is":189,events:192,inherits:196,isarray:198,"process-nextick-args":207,"safe-buffer":228,"string_decoder/":235,util:71}],217:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(r){return r&&r.__esModule?r:{default:r}}k.exports=f;var A=H("./_stream_duplex"),b=(0,x.default)(H("core-util-is"));b.inherits=H("inherits"),b.inherits(f,A);function g(r,i){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,i!=null&&this.push(i),e(r);var l=this._readableState;l.reading=!1,(l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}function f(r){if(!(this instanceof f))return new f(r);A.call(this,r),this._transformState={afterTransform:g.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,r&&(typeof r.transform=="function"&&(this._transform=r.transform),typeof r.flush=="function"&&(this._flush=r.flush)),this.on("prefinish",c)}function c(){var r=this;typeof this._flush=="function"?this._flush(function(i,n){o(r,i,n)}):o(this,null,null)}f.prototype.push=function(r,i){return this._transformState.needTransform=!1,A.prototype.push.call(this,r,i)},f.prototype._transform=function(r,i,n){throw new Error("_transform() is not implemented")},f.prototype._write=function(r,i,n){var e=this._transformState;if(e.writecb=n,e.writechunk=r,e.writeencoding=i,!e.transforming){var l=this._readableState;(e.needTransform||l.needReadable||l.length<l.highWaterMark)&&this._read(l.highWaterMark)}},f.prototype._read=function(r){var i=this._transformState;i.writechunk!==null&&i.writecb&&!i.transforming?(i.transforming=!0,this._transform(i.writechunk,i.writeencoding,i.afterTransform)):i.needTransform=!0},f.prototype._destroy=function(r,i){var n=this;A.prototype._destroy.call(this,r,function(e){i(e),n.emit("close")})};function o(r,i,n){if(i)return r.emit("error",i);if(n!=null&&r.push(n),r._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(r._transformState.transforming)throw new Error("Calling transform done when still transforming");return r.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(H,k,d){(function(O,x){"use strict";var C=H("babel-runtime/core-js/object/define-property"),A=e(C),b=H("babel-runtime/core-js/symbol/has-instance"),g=e(b),f=H("babel-runtime/core-js/symbol"),c=e(f),o=H("babel-runtime/core-js/object/create"),r=e(o),i=H("babel-runtime/core-js/set-immediate"),n=e(i);function e(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}}var l=H("process-nextick-args");k.exports=L;function t(Ie,He,me){this.chunk=Ie,this.encoding=He,this.callback=me,this.next=null}function a(Ie){var He=this;this.next=null,this.entry=null,this.finish=function(){_e(He,Ie)}}var s=!O.browser&&["v0.10","v0.9."].indexOf(O.version.slice(0,5))>-1?n.default:l.nextTick,u;L.WritableState=_;var h=(0,r.default)(H("core-util-is"));h.inherits=H("inherits");var p={deprecate:H("util-deprecate")},m=H("./internal/streams/stream"),v=H("safe-buffer").Buffer,y=x.Uint8Array||function(){};function E(Ie){return v.from(Ie)}function T(Ie){return v.isBuffer(Ie)||Ie instanceof y}var w=H("./internal/streams/destroy");h.inherits(L,m);function S(){}function _(Ie,He){u=u||H("./_stream_duplex"),Ie=Ie||{};var me=He instanceof u;this.objectMode=!!Ie.objectMode,me&&(this.objectMode=this.objectMode||!!Ie.writableObjectMode);var ke=Ie.highWaterMark,se=Ie.writableHighWaterMark,te=this.objectMode?16:16*1024;ke||ke===0?this.highWaterMark=ke:me&&(se||se===0)?this.highWaterMark=se:this.highWaterMark=te,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 Ge=Ie.decodeStrings===!1;this.decodeStrings=!Ge,this.defaultEncoding=Ie.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){j(He,oe)},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,me=[];He;)me.push(He),He=He.next;return me},function(){try{Object.defineProperty(_.prototype,"buffer",{get:p.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ie){}}();var I;typeof c.default=="function"&&g.default&&typeof Function.prototype[g.default]=="function"?(I=Function.prototype[g.default],(0,A.default)(L,g.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(Ie){if(u=u||H("./_stream_duplex"),!I.call(L,this)&&!(this instanceof u))return new L(Ie);this._writableState=new _(Ie,this),this.writable=!0,Ie&&(typeof Ie.write=="function"&&(this._write=Ie.write),typeof Ie.writev=="function"&&(this._writev=Ie.writev),typeof Ie.destroy=="function"&&(this._destroy=Ie.destroy),typeof Ie.final=="function"&&(this._final=Ie.final)),m.call(this)}L.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function N(Ie,He){var me=new Error("write after end");Ie.emit("error",me),l.nextTick(He,me)}function R(Ie,He,me,ke){var se=!0,te=!1;return me===null?te=new TypeError("May not write null values to stream"):typeof me!="string"&&me!==void 0&&!He.objectMode&&(te=new TypeError("Invalid non-string/buffer chunk")),te&&(Ie.emit("error",te),l.nextTick(ke,te),se=!1),se}L.prototype.write=function(Ie,He,me){var ke=this._writableState,se=!1,te=!ke.objectMode&&T(Ie);return te&&!v.isBuffer(Ie)&&(Ie=E(Ie)),typeof He=="function"&&(me=He,He=null),te?He="buffer":He||(He=ke.defaultEncoding),typeof me!="function"&&(me=S),ke.ended?N(this,me):(te||R(this,ke,Ie,me))&&(ke.pendingcb++,se=F(this,ke,te,Ie,He,me)),se},L.prototype.cork=function(){var Ie=this._writableState;Ie.corked++},L.prototype.uncork=function(){var Ie=this._writableState;Ie.corked&&(Ie.corked--,!Ie.writing&&!Ie.corked&&!Ie.finished&&!Ie.bufferProcessing&&Ie.bufferedRequest&&z(this,Ie))},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 D(Ie,He,me){return!Ie.objectMode&&Ie.decodeStrings!==!1&&typeof He=="string"&&(He=v.from(He,me)),He}Object.defineProperty(L.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function F(Ie,He,me,ke,se,te){if(!me){var Ge=D(He,ke,se);ke!==Ge&&(me=!0,se="buffer",ke=Ge)}var oe=He.objectMode?1:ke.length;He.length+=oe;var Y=He.length<He.highWaterMark;if(Y||(He.needDrain=!0),He.writing||He.corked){var G=He.lastBufferedRequest;He.lastBufferedRequest={chunk:ke,encoding:se,isBuf:me,callback:te,next:null},G?G.next=He.lastBufferedRequest:He.bufferedRequest=He.lastBufferedRequest,He.bufferedRequestCount+=1}else M(Ie,He,!1,oe,ke,se,te);return Y}function M(Ie,He,me,ke,se,te,Ge){He.writelen=ke,He.writecb=Ge,He.writing=!0,He.sync=!0,me?Ie._writev(se,He.onwrite):Ie._write(se,te,He.onwrite),He.sync=!1}function U(Ie,He,me,ke,se){--He.pendingcb,me?(l.nextTick(se,ke),l.nextTick(ae,Ie,He),Ie._writableState.errorEmitted=!0,Ie.emit("error",ke)):(se(ke),Ie._writableState.errorEmitted=!0,Ie.emit("error",ke),ae(Ie,He))}function B(Ie){Ie.writing=!1,Ie.writecb=null,Ie.length-=Ie.writelen,Ie.writelen=0}function j(Ie,He){var me=Ie._writableState,ke=me.sync,se=me.writecb;if(B(me),He)U(Ie,me,ke,He,se);else{var te=J(me);!te&&!me.corked&&!me.bufferProcessing&&me.bufferedRequest&&z(Ie,me),ke?s(W,Ie,me,te,se):W(Ie,me,te,se)}}function W(Ie,He,me,ke){me||V(Ie,He),He.pendingcb--,ke(),ae(Ie,He)}function V(Ie,He){He.length===0&&He.needDrain&&(He.needDrain=!1,Ie.emit("drain"))}function z(Ie,He){He.bufferProcessing=!0;var me=He.bufferedRequest;if(Ie._writev&&me&&me.next){var ke=He.bufferedRequestCount,se=new Array(ke),te=He.corkedRequestsFree;te.entry=me;for(var Ge=0,oe=!0;me;)se[Ge]=me,me.isBuf||(oe=!1),me=me.next,Ge+=1;se.allBuffers=oe,M(Ie,He,!0,He.length,se,"",te.finish),He.pendingcb++,He.lastBufferedRequest=null,te.next?(He.corkedRequestsFree=te.next,te.next=null):He.corkedRequestsFree=new a(He),He.bufferedRequestCount=0}else{for(;me;){var Y=me.chunk,G=me.encoding,Q=me.callback,ye=He.objectMode?1:Y.length;if(M(Ie,He,!1,ye,Y,G,Q),me=me.next,He.bufferedRequestCount--,He.writing)break}me===null&&(He.lastBufferedRequest=null)}He.bufferedRequest=me,He.bufferProcessing=!1}L.prototype._write=function(Ie,He,me){me(new Error("_write() is not implemented"))},L.prototype._writev=null,L.prototype.end=function(Ie,He,me){var ke=this._writableState;typeof Ie=="function"?(me=Ie,Ie=null,He=null):typeof He=="function"&&(me=He,He=null),Ie!=null&&this.write(Ie,He),ke.corked&&(ke.corked=1,this.uncork()),!ke.ending&&!ke.finished&&ve(this,ke,me)};function J(Ie){return Ie.ending&&Ie.length===0&&Ie.bufferedRequest===null&&!Ie.finished&&!Ie.writing}function q(Ie,He){Ie._final(function(me){He.pendingcb--,me&&Ie.emit("error",me),He.prefinished=!0,Ie.emit("prefinish"),ae(Ie,He)})}function de(Ie,He){!He.prefinished&&!He.finalCalled&&(typeof Ie._final=="function"?(He.pendingcb++,He.finalCalled=!0,l.nextTick(q,Ie,He)):(He.prefinished=!0,Ie.emit("prefinish")))}function ae(Ie,He){var me=J(He);return me&&(de(Ie,He),He.pendingcb===0&&(He.finished=!0,Ie.emit("finish"))),me}function ve(Ie,He,me){He.ending=!0,ae(Ie,He),me&&(He.finished?l.nextTick(me):Ie.once("finish",me)),He.ended=!0,Ie.writable=!1}function _e(Ie,He,me){var ke=Ie.entry;for(Ie.entry=null;ke;){var se=ke.callback;He.pendingcb--,se(me),ke=ke.next}He.corkedRequestsFree?He.corkedRequestsFree.next=Ie:He.corkedRequestsFree=Ie}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=w.destroy,L.prototype._undestroy=w.undestroy,L.prototype._destroy=function(Ie,He){this.end(),He(Ie)}}).call(this,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":214,"./internal/streams/destroy":220,"./internal/streams/stream":221,_process:208,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/set-immediate":62,"babel-runtime/core-js/symbol":64,"babel-runtime/core-js/symbol/has-instance":65,"core-util-is":189,inherits:196,"process-nextick-args":207,"safe-buffer":228,"util-deprecate":240}],219:[function(H,k,d){"use strict";function O(b,g){if(!(b instanceof g))throw new TypeError("Cannot call a class as a function")}var x=H("safe-buffer").Buffer,C=H("util");function A(b,g,f){b.copy(g,f)}k.exports=function(){function b(){O(this,b),this.head=null,this.tail=null,this.length=0}return b.prototype.push=function(f){var c={data:f,next:null};this.length>0?this.tail.next=c:this.head=c,this.tail=c,++this.length},b.prototype.unshift=function(f){var c={data:f,next:this.head};this.length===0&&(this.tail=c),this.head=c,++this.length},b.prototype.shift=function(){if(this.length===0)return;var f=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,f},b.prototype.clear=function(){this.head=this.tail=null,this.length=0},b.prototype.join=function(f){if(this.length===0)return"";for(var c=this.head,o=""+c.data;c=c.next;)o+=f+c.data;return o},b.prototype.concat=function(f){if(this.length===0)return x.alloc(0);if(this.length===1)return this.head.data;for(var c=x.allocUnsafe(f>>>0),o=this.head,r=0;o;)A(o.data,c,r),r+=o.data.length,o=o.next;return c},b}(),C&&C.inspect&&C.inspect.custom&&(k.exports.prototype[C.inspect.custom]=function(){var b=C.inspect({length:this.length});return this.constructor.name+" "+b})},{"safe-buffer":228,util:71}],220:[function(H,k,d){"use strict";var O=H("process-nextick-args");function x(b,g){var f=this,c=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return c||o?(g?g(b):b&&(!this._writableState||!this._writableState.errorEmitted)&&O.nextTick(A,this,b),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(b||null,function(r){!g&&r?(O.nextTick(A,f,r),f._writableState&&(f._writableState.errorEmitted=!0)):g&&g(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 A(b,g){b.emit("error",g)}k.exports={destroy:x,undestroy:C}},{"process-nextick-args":207}],221:[function(H,k,d){"use strict";k.exports=H("events").EventEmitter},{events:192}],222:[function(H,k,d){k.exports=H("./readable").PassThrough},{"./readable":223}],223:[function(H,k,d){d=k.exports=H("./lib/_stream_readable.js"),d.Stream=d,d.Readable=d,d.Writable=H("./lib/_stream_writable.js"),d.Duplex=H("./lib/_stream_duplex.js"),d.Transform=H("./lib/_stream_transform.js"),d.PassThrough=H("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":214,"./lib/_stream_passthrough.js":215,"./lib/_stream_readable.js":216,"./lib/_stream_transform.js":217,"./lib/_stream_writable.js":218}],224:[function(H,k,d){k.exports=H("./readable").Transform},{"./readable":223}],225:[function(H,k,d){k.exports=H("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(H,k,d){var O=function(){return this}()||Function("return this")(),x=O.regeneratorRuntime&&Object.getOwnPropertyNames(O).indexOf("regeneratorRuntime")>=0,C=x&&O.regeneratorRuntime;if(O.regeneratorRuntime=void 0,k.exports=H("./runtime"),x)O.regeneratorRuntime=C;else try{delete O.regeneratorRuntime}catch(A){O.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(H,k,d){!function(O){"use strict";var x=Object.prototype,C=x.hasOwnProperty,A,b=typeof Symbol=="function"?Symbol:{},g=b.iterator||"@@iterator",f=b.asyncIterator||"@@asyncIterator",c=b.toStringTag||"@@toStringTag",o=typeof k=="object",r=O.regeneratorRuntime;if(r){o&&(k.exports=r);return}r=O.regeneratorRuntime=o?k.exports:{};function i(F,M,U,B){var j=M&&M.prototype instanceof u?M:u,W=Object.create(j.prototype),V=new N(B||[]);return W._invoke=S(F,U,V),W}r.wrap=i;function n(F,M,U){try{return{type:"normal",arg:F.call(M,U)}}catch(B){return{type:"throw",arg:B}}}var e="suspendedStart",l="suspendedYield",t="executing",a="completed",s={};function u(){}function h(){}function p(){}var m={};m[g]=function(){return this};var v=Object.getPrototypeOf,y=v&&v(v(R([])));y&&y!==x&&C.call(y,g)&&(m=y);var E=p.prototype=u.prototype=Object.create(m);h.prototype=E.constructor=p,p.constructor=h,p[c]=h.displayName="GeneratorFunction";function T(F){["next","throw","return"].forEach(function(M){F[M]=function(U){return this._invoke(M,U)}})}r.isGeneratorFunction=function(F){var M=typeof F=="function"&&F.constructor;return M?M===h||(M.displayName||M.name)==="GeneratorFunction":!1},r.mark=function(F){return Object.setPrototypeOf?Object.setPrototypeOf(F,p):(F.__proto__=p,c in F||(F[c]="GeneratorFunction")),F.prototype=Object.create(E),F},r.awrap=function(F){return{__await:F}};function w(F){function M(j,W,V,z){var J=n(F[j],F,W);if(J.type==="throw")z(J.arg);else{var q=J.arg,de=q.value;return de&&typeof de=="object"&&C.call(de,"__await")?Promise.resolve(de.__await).then(function(ae){M("next",ae,V,z)},function(ae){M("throw",ae,V,z)}):Promise.resolve(de).then(function(ae){q.value=ae,V(q)},z)}}var U;function B(j,W){function V(){return new Promise(function(z,J){M(j,W,z,J)})}return U=U?U.then(V,V):V()}this._invoke=B}T(w.prototype),w.prototype[f]=function(){return this},r.AsyncIterator=w,r.async=function(F,M,U,B){var j=new w(i(F,M,U,B));return r.isGeneratorFunction(M)?j:j.next().then(function(W){return W.done?W.value:j.next()})};function S(F,M,U){var B=e;return function(W,V){if(B===t)throw new Error("Generator is already running");if(B===a){if(W==="throw")throw V;return D()}for(U.method=W,U.arg=V;;){var z=U.delegate;if(z){var J=_(z,U);if(J){if(J===s)continue;return J}}if(U.method==="next")U.sent=U._sent=U.arg;else if(U.method==="throw"){if(B===e)throw B=a,U.arg;U.dispatchException(U.arg)}else U.method==="return"&&U.abrupt("return",U.arg);B=t;var q=n(F,M,U);if(q.type==="normal"){if(B=U.done?a:l,q.arg===s)continue;return{value:q.arg,done:U.done}}else q.type==="throw"&&(B=a,U.method="throw",U.arg=q.arg)}}}function _(F,M){var U=F.iterator[M.method];if(U===A){if(M.delegate=null,M.method==="throw"){if(F.iterator.return&&(M.method="return",M.arg=A,_(F,M),M.method==="throw"))return s;M.method="throw",M.arg=new TypeError("The iterator does not provide a 'throw' method")}return s}var B=n(U,F.iterator,M.arg);if(B.type==="throw")return M.method="throw",M.arg=B.arg,M.delegate=null,s;var j=B.arg;if(!j)return M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,s;if(j.done)M[F.resultName]=j.value,M.next=F.nextLoc,M.method!=="return"&&(M.method="next",M.arg=A);else return j;return M.delegate=null,s}T(E),E[c]="Generator",E[g]=function(){return this},E.toString=function(){return"[object Generator]"};function I(F){var M={tryLoc:F[0]};1 in F&&(M.catchLoc=F[1]),2 in F&&(M.finallyLoc=F[2],M.afterLoc=F[3]),this.tryEntries.push(M)}function L(F){var M=F.completion||{};M.type="normal",delete M.arg,F.completion=M}function N(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(I,this),this.reset(!0)}r.keys=function(F){var M=[];for(var U in F)M.push(U);return M.reverse(),function B(){for(;M.length;){var j=M.pop();if(j in F)return B.value=j,B.done=!1,B}return B.done=!0,B}};function R(F){if(F){var M=F[g];if(M)return M.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var U=-1,B=function j(){for(;++U<F.length;)if(C.call(F,U))return j.value=F[U],j.done=!1,j;return j.value=A,j.done=!0,j};return B.next=B}}return{next:D}}r.values=R;function D(){return{value:A,done:!0}}N.prototype={constructor:N,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=A,this.done=!1,this.delegate=null,this.method="next",this.arg=A,this.tryEntries.forEach(L),!M)for(var U in this)U.charAt(0)==="t"&&C.call(this,U)&&!isNaN(+U.slice(1))&&(this[U]=A)},stop:function(){this.done=!0;var M=this.tryEntries[0],U=M.completion;if(U.type==="throw")throw U.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var U=this;function B(q,de){return V.type="throw",V.arg=M,U.next=q,de&&(U.method="next",U.arg=A),!!de}for(var j=this.tryEntries.length-1;j>=0;--j){var W=this.tryEntries[j],V=W.completion;if(W.tryLoc==="root")return B("end");if(W.tryLoc<=this.prev){var z=C.call(W,"catchLoc"),J=C.call(W,"finallyLoc");if(z&&J){if(this.prev<W.catchLoc)return B(W.catchLoc,!0);if(this.prev<W.finallyLoc)return B(W.finallyLoc)}else if(z){if(this.prev<W.catchLoc)return B(W.catchLoc,!0)}else if(J){if(this.prev<W.finallyLoc)return B(W.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(M,U){for(var B=this.tryEntries.length-1;B>=0;--B){var j=this.tryEntries[B];if(j.tryLoc<=this.prev&&C.call(j,"finallyLoc")&&this.prev<j.finallyLoc){var W=j;break}}W&&(M==="break"||M==="continue")&&W.tryLoc<=U&&U<=W.finallyLoc&&(W=null);var V=W?W.completion:{};return V.type=M,V.arg=U,W?(this.method="next",this.next=W.finallyLoc,s):this.complete(V)},complete:function(M,U){if(M.type==="throw")throw M.arg;return M.type==="break"||M.type==="continue"?this.next=M.arg:M.type==="return"?(this.rval=this.arg=M.arg,this.method="return",this.next="end"):M.type==="normal"&&U&&(this.next=U),s},finish:function(M){for(var U=this.tryEntries.length-1;U>=0;--U){var B=this.tryEntries[U];if(B.finallyLoc===M)return this.complete(B.completion,B.afterLoc),L(B),s}},catch:function(M){for(var U=this.tryEntries.length-1;U>=0;--U){var B=this.tryEntries[U];if(B.tryLoc===M){var j=B.completion;if(j.type==="throw"){var W=j.arg;L(B)}return W}}throw new Error("illegal catch attempt")},delegateYield:function(M,U,B){return this.delegate={iterator:R(M),resultName:U,nextLoc:B},this.method==="next"&&(this.arg=A),s}}}(function(){return this}()||Function("return this")())},{}],228:[function(H,k,d){var O=H("buffer"),x=O.Buffer;function C(b,g){for(var f in b)g[f]=b[f]}x.from&&x.alloc&&x.allocUnsafe&&x.allocUnsafeSlow?k.exports=O:(C(O,d),d.Buffer=A);function A(b,g,f){return x(b,g,f)}C(x,A),A.from=function(b,g,f){if(typeof b=="number")throw new TypeError("Argument must not be a number");return x(b,g,f)},A.alloc=function(b,g,f){if(typeof b!="number")throw new TypeError("Argument must be a number");var c=x(b);return g!==void 0?typeof f=="string"?c.fill(g,f):c.fill(g):c.fill(0),c},A.allocUnsafe=function(b){if(typeof b!="number")throw new TypeError("Argument must be a number");return x(b)},A.allocUnsafeSlow=function(b){if(typeof b!="number")throw new TypeError("Argument must be a number");return O.SlowBuffer(b)}},{buffer:73}],229:[function(H,k,d){(function(O){"use strict";var x=H("babel-runtime/core-js/string/from-code-point"),C=l(x),A=H("babel-runtime/core-js/json/stringify"),b=l(A),g=H("babel-runtime/helpers/typeof"),f=l(g),c=H("babel-runtime/core-js/object/define-property"),o=l(c),r=H("babel-runtime/core-js/object/keys"),i=l(r),n=H("babel-runtime/core-js/object/create"),e=l(n);function l(t){return t&&t.__esModule?t:{default:t}}(function(t){t.parser=function(G,Q){return new s(G,Q)},t.SAXParser=s,t.SAXStream=E,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 s(G,Q){if(!(this instanceof s))return new s(G,Q);var ye=this;h(ye),ye.q=ye.c="",ye.bufferCheckPosition=t.MAX_BUFFER_LENGTH,ye.opt=Q||{},ye.opt.lowercase=ye.opt.lowercase||ye.opt.lowercasetags,ye.looseCase=ye.opt.lowercase?"toLowerCase":"toUpperCase",ye.tags=[],ye.closed=ye.closedRoot=ye.sawRoot=!1,ye.tag=ye.error=null,ye.strict=!!G,ye.noscript=!!(G||ye.opt.noscript),ye.state=W.BEGIN,ye.strictEntities=ye.opt.strictEntities,ye.ENTITIES=ye.strictEntities?(0,e.default)(t.XML_ENTITIES):(0,e.default)(t.ENTITIES),ye.attribList=[],ye.opt.xmlns&&(ye.ns=(0,e.default)(I)),ye.trackPosition=ye.opt.position!==!1,ye.trackPosition&&(ye.position=ye.line=ye.column=0),z(ye,"onready")}e.default||(Object.create=function(G){function Q(){}Q.prototype=G;var ye=new Q;return ye}),i.default||(Object.keys=function(G){var Q=[];for(var ye in G)G.hasOwnProperty(ye)&&Q.push(ye);return Q});function u(G){for(var Q=Math.max(t.MAX_BUFFER_LENGTH,10),ye=0,ce=0,Te=a.length;ce<Te;ce++){var Se=G[a[ce]].length;if(Se>Q)switch(a[ce]){case"textNode":q(G);break;case"cdata":J(G,"oncdata",G.cdata),G.cdata="";break;case"script":J(G,"onscript",G.script),G.script="";break;default:ae(G,"Max buffer length exceeded: "+a[ce])}ye=Math.max(ye,Se)}var le=t.MAX_BUFFER_LENGTH-ye;G.bufferCheckPosition=le+G.position}function h(G){for(var Q=0,ye=a.length;Q<ye;Q++)G[a[Q]]=""}function p(G){q(G),G.cdata!==""&&(J(G,"oncdata",G.cdata),G.cdata=""),G.script!==""&&(J(G,"onscript",G.script),G.script="")}s.prototype={end:function(){ve(this)},write:Y,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){p(this)}};var m;try{m=H("stream").Stream}catch(G){m=function(){}}var v=t.EVENTS.filter(function(G){return G!=="error"&&G!=="end"});function y(G,Q){return new E(G,Q)}function E(G,Q){if(!(this instanceof E))return new E(G,Q);m.apply(this),this._parser=new s(G,Q),this.writable=!0,this.readable=!0;var ye=this;this._parser.onend=function(){ye.emit("end")},this._parser.onerror=function(ce){ye.emit("error",ce),ye._parser.error=null},this._decoder=null,v.forEach(function(ce){(0,o.default)(ye,"on"+ce,{get:function(){return ye._parser["on"+ce]},set:function(Se){if(!Se)return ye.removeAllListeners(ce),ye._parser["on"+ce]=Se,Se;ye.on(ce,Se)},enumerable:!0,configurable:!1})})}E.prototype=(0,e.default)(m.prototype,{constructor:{value:E}}),E.prototype.write=function(G){if(typeof O=="function"&&typeof O.isBuffer=="function"&&O.isBuffer(G)){if(!this._decoder){var Q=H("string_decoder").StringDecoder;this._decoder=new Q("utf8")}G=this._decoder.write(G)}return this._parser.write(G.toString()),this.emit("data",G),!0},E.prototype.end=function(G){return G&&G.length&&this.write(G),this._parser.end(),!0},E.prototype.on=function(G,Q){var ye=this;return!ye._parser["on"+G]&&v.indexOf(G)!==-1&&(ye._parser["on"+G]=function(){var ce=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);ce.splice(0,0,G),ye.emit.apply(ye,ce)}),m.prototype.on.call(ye,G,Q)};var T="[CDATA[",w="DOCTYPE",S="http://www.w3.org/XML/1998/namespace",_="http://www.w3.org/2000/xmlns/",I={xml:S,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]/,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\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,R=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,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-]/;function F(G){return G===" "||G===`
`||G==="\r"||G===" "}function M(G){return G==='"'||G==="'"}function U(G){return G===">"||F(G)}function B(G,Q){return G.test(Q)}function j(G,Q){return!B(G,Q)}var W=0;t.STATE={BEGIN:W++,BEGIN_WHITESPACE:W++,TEXT:W++,TEXT_ENTITY:W++,OPEN_WAKA:W++,SGML_DECL:W++,SGML_DECL_QUOTED:W++,DOCTYPE:W++,DOCTYPE_QUOTED:W++,DOCTYPE_DTD:W++,DOCTYPE_DTD_QUOTED:W++,COMMENT_STARTING:W++,COMMENT:W++,COMMENT_ENDING:W++,COMMENT_ENDED:W++,CDATA:W++,CDATA_ENDING:W++,CDATA_ENDING_2:W++,PROC_INST:W++,PROC_INST_BODY:W++,PROC_INST_ENDING:W++,OPEN_TAG:W++,OPEN_TAG_SLASH:W++,ATTRIB:W++,ATTRIB_NAME:W++,ATTRIB_NAME_SAW_WHITE:W++,ATTRIB_VALUE:W++,ATTRIB_VALUE_QUOTED:W++,ATTRIB_VALUE_CLOSED:W++,ATTRIB_VALUE_UNQUOTED:W++,ATTRIB_VALUE_ENTITY_Q:W++,ATTRIB_VALUE_ENTITY_U:W++,CLOSE_TAG:W++,CLOSE_TAG_SAW_WHITE:W++,SCRIPT:W++,SCRIPT_ENDING:W++},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,i.default)(t.ENTITIES).forEach(function(G){var Q=t.ENTITIES[G],ye=typeof Q=="number"?String.fromCharCode(Q):Q;t.ENTITIES[G]=ye});for(var V in t.STATE)t.STATE[t.STATE[V]]=V;W=t.STATE;function z(G,Q,ye){G[Q]&&G[Q](ye)}function J(G,Q,ye){G.textNode&&q(G),z(G,Q,ye)}function q(G){G.textNode=de(G.opt,G.textNode),G.textNode&&z(G,"ontext",G.textNode),G.textNode=""}function de(G,Q){return G.trim&&(Q=Q.trim()),G.normalize&&(Q=Q.replace(/\s+/g," ")),Q}function ae(G,Q){return q(G),G.trackPosition&&(Q+=`
Line: `+G.line+`
Column: `+G.column+`
Char: `+G.c),Q=new Error(Q),G.error=Q,z(G,"onerror",Q),G}function ve(G){return G.sawRoot&&!G.closedRoot&&_e(G,"Unclosed root tag"),G.state!==W.BEGIN&&G.state!==W.BEGIN_WHITESPACE&&G.state!==W.TEXT&&ae(G,"Unexpected end"),q(G),G.c="",G.closed=!0,z(G,"onend"),s.call(G,G.strict,G.opt),G}function _e(G,Q){if((typeof G=="undefined"?"undefined":(0,f.default)(G))!=="object"||!(G instanceof s))throw new Error("bad call to strictFail");G.strict&&ae(G,Q)}function Ie(G){G.strict||(G.tagName=G.tagName[G.looseCase]());var Q=G.tags[G.tags.length-1]||G,ye=G.tag={name:G.tagName,attributes:{}};G.opt.xmlns&&(ye.ns=Q.ns),G.attribList.length=0,J(G,"onopentagstart",ye)}function He(G,Q){var ye=G.indexOf(":"),ce=ye<0?["",G]:G.split(":"),Te=ce[0],Se=ce[1];return Q&&G==="xmlns"&&(Te="xmlns",Se=""),{prefix:Te,local:Se}}function me(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 Q=He(G.attribName,!0),ye=Q.prefix,ce=Q.local;if(ye==="xmlns")if(ce==="xml"&&G.attribValue!==S)_e(G,"xml: prefix must be bound to "+S+`
Actual: `+G.attribValue);else if(ce==="xmlns"&&G.attribValue!==_)_e(G,"xmlns: prefix must be bound to "+_+`
Actual: `+G.attribValue);else{var Te=G.tag,Se=G.tags[G.tags.length-1]||G;Te.ns===Se.ns&&(Te.ns=(0,e.default)(Se.ns)),Te.ns[ce]=G.attribValue}G.attribList.push([G.attribName,G.attribValue])}else G.tag.attributes[G.attribName]=G.attribValue,J(G,"onattribute",{name:G.attribName,value:G.attribValue});G.attribName=G.attribValue=""}function ke(G,Q){if(G.opt.xmlns){var ye=G.tag,ce=He(G.tagName);ye.prefix=ce.prefix,ye.local=ce.local,ye.uri=ye.ns[ce.prefix]||"",ye.prefix&&!ye.uri&&(_e(G,"Unbound namespace prefix: "+(0,b.default)(G.tagName)),ye.uri=ce.prefix);var Te=G.tags[G.tags.length-1]||G;ye.ns&&Te.ns!==ye.ns&&(0,i.default)(ye.ns).forEach(function(St){J(G,"onopennamespace",{prefix:St,uri:ye.ns[St]})});for(var Se=0,le=G.attribList.length;Se<le;Se++){var fe=G.attribList[Se],Ee=fe[0],Ve=fe[1],vt=He(Ee,!0),et=vt.prefix,Oe=vt.local,Tt=et===""?"":ye.ns[et]||"",Je={name:Ee,value:Ve,prefix:et,local:Oe,uri:Tt};et&&et!=="xmlns"&&!Tt&&(_e(G,"Unbound namespace prefix: "+(0,b.default)(et)),Je.uri=et),G.tag.attributes[Ee]=Je,J(G,"onattribute",Je)}G.attribList.length=0}G.tag.isSelfClosing=!!Q,G.sawRoot=!0,G.tags.push(G.tag),J(G,"onopentag",G.tag),Q||(!G.noscript&&G.tagName.toLowerCase()==="script"?G.state=W.SCRIPT:G.state=W.TEXT,G.tag=null,G.tagName=""),G.attribName=G.attribValue="",G.attribList.length=0}function se(G){if(!G.tagName){_e(G,"Weird empty close tag."),G.textNode+="</>",G.state=W.TEXT;return}if(G.script){if(G.tagName!=="script"){G.script+="</"+G.tagName+">",G.tagName="",G.state=W.SCRIPT;return}J(G,"onscript",G.script),G.script=""}var Q=G.tags.length,ye=G.tagName;G.strict||(ye=ye[G.looseCase]());for(var ce=ye;Q--;){var Te=G.tags[Q];if(Te.name!==ce)_e(G,"Unexpected close tag");else break}if(Q<0){_e(G,"Unmatched closing tag: "+G.tagName),G.textNode+="</"+G.tagName+">",G.state=W.TEXT;return}G.tagName=ye;for(var Se=G.tags.length;Se-- >Q;){var le=G.tag=G.tags.pop();G.tagName=G.tag.name,J(G,"onclosetag",G.tagName);var fe={};for(var Ee in le.ns)fe[Ee]=le.ns[Ee];var Ve=G.tags[G.tags.length-1]||G;G.opt.xmlns&&le.ns!==Ve.ns&&(0,i.default)(le.ns).forEach(function(vt){var et=le.ns[vt];J(G,"onclosenamespace",{prefix:vt,uri:et})})}Q===0&&(G.closedRoot=!0),G.tagName=G.attribValue=G.attribName="",G.attribList.length=0,G.state=W.TEXT}function te(G){var Q=G.entity,ye=Q.toLowerCase(),ce,Te="";return G.ENTITIES[Q]?G.ENTITIES[Q]:G.ENTITIES[ye]?G.ENTITIES[ye]:(Q=ye,Q.charAt(0)==="#"&&(Q.charAt(1)==="x"?(Q=Q.slice(2),ce=parseInt(Q,16),Te=ce.toString(16)):(Q=Q.slice(1),ce=parseInt(Q,10),Te=ce.toString(10))),Q=Q.replace(/^0+/,""),isNaN(ce)||Te.toLowerCase()!==Q?(_e(G,"Invalid character entity"),"&"+G.entity+";"):(0,C.default)(ce))}function Ge(G,Q){Q==="<"?(G.state=W.OPEN_WAKA,G.startTagPosition=G.position):F(Q)||(_e(G,"Non-whitespace before first tag."),G.textNode=Q,G.state=W.TEXT)}function oe(G,Q){var ye="";return Q<G.length&&(ye=G.charAt(Q)),ye}function Y(G){var Q=this;if(this.error)throw this.error;if(Q.closed)return ae(Q,"Cannot write after close. Assign an onready handler.");if(G===null)return ve(Q);(typeof G=="undefined"?"undefined":(0,f.default)(G))==="object"&&(G=G.toString());for(var ye=0,ce="";!(ce=oe(G,ye++),Q.c=ce,!ce);){Q.trackPosition&&(Q.position++,ce===`
`?(Q.line++,Q.column=0):Q.column++);switch(Q.state){case W.BEGIN:if(Q.state=W.BEGIN_WHITESPACE,ce==="\uFEFF")continue;Ge(Q,ce);continue;case W.BEGIN_WHITESPACE:Ge(Q,ce);continue;case W.TEXT:if(Q.sawRoot&&!Q.closedRoot){for(var Te=ye-1;ce&&ce!=="<"&&ce!=="&";)ce=oe(G,ye++),ce&&Q.trackPosition&&(Q.position++,ce===`
`?(Q.line++,Q.column=0):Q.column++);Q.textNode+=G.substring(Te,ye-1)}ce==="<"&&!(Q.sawRoot&&Q.closedRoot&&!Q.strict)?(Q.state=W.OPEN_WAKA,Q.startTagPosition=Q.position):(!F(ce)&&(!Q.sawRoot||Q.closedRoot)&&_e(Q,"Text data outside of root node."),ce==="&"?Q.state=W.TEXT_ENTITY:Q.textNode+=ce);continue;case W.SCRIPT:ce==="<"?Q.state=W.SCRIPT_ENDING:Q.script+=ce;continue;case W.SCRIPT_ENDING:ce==="/"?Q.state=W.CLOSE_TAG:(Q.script+="<"+ce,Q.state=W.SCRIPT);continue;case W.OPEN_WAKA:if(ce==="!")Q.state=W.SGML_DECL,Q.sgmlDecl="";else if(!F(ce))if(B(L,ce))Q.state=W.OPEN_TAG,Q.tagName=ce;else if(ce==="/")Q.state=W.CLOSE_TAG,Q.tagName="";else if(ce==="?")Q.state=W.PROC_INST,Q.procInstName=Q.procInstBody="";else{if(_e(Q,"Unencoded <"),Q.startTagPosition+1<Q.position){var Se=Q.position-Q.startTagPosition;ce=new Array(Se).join(" ")+ce}Q.textNode+="<"+ce,Q.state=W.TEXT}continue;case W.SGML_DECL:(Q.sgmlDecl+ce).toUpperCase()===T?(J(Q,"onopencdata"),Q.state=W.CDATA,Q.sgmlDecl="",Q.cdata=""):Q.sgmlDecl+ce==="--"?(Q.state=W.COMMENT,Q.comment="",Q.sgmlDecl=""):(Q.sgmlDecl+ce).toUpperCase()===w?(Q.state=W.DOCTYPE,(Q.doctype||Q.sawRoot)&&_e(Q,"Inappropriately located doctype declaration"),Q.doctype="",Q.sgmlDecl=""):ce===">"?(J(Q,"onsgmldeclaration",Q.sgmlDecl),Q.sgmlDecl="",Q.state=W.TEXT):(M(ce)&&(Q.state=W.SGML_DECL_QUOTED),Q.sgmlDecl+=ce);continue;case W.SGML_DECL_QUOTED:ce===Q.q&&(Q.state=W.SGML_DECL,Q.q=""),Q.sgmlDecl+=ce;continue;case W.DOCTYPE:ce===">"?(Q.state=W.TEXT,J(Q,"ondoctype",Q.doctype),Q.doctype=!0):(Q.doctype+=ce,ce==="["?Q.state=W.DOCTYPE_DTD:M(ce)&&(Q.state=W.DOCTYPE_QUOTED,Q.q=ce));continue;case W.DOCTYPE_QUOTED:Q.doctype+=ce,ce===Q.q&&(Q.q="",Q.state=W.DOCTYPE);continue;case W.DOCTYPE_DTD:Q.doctype+=ce,ce==="]"?Q.state=W.DOCTYPE:M(ce)&&(Q.state=W.DOCTYPE_DTD_QUOTED,Q.q=ce);continue;case W.DOCTYPE_DTD_QUOTED:Q.doctype+=ce,ce===Q.q&&(Q.state=W.DOCTYPE_DTD,Q.q="");continue;case W.COMMENT:ce==="-"?Q.state=W.COMMENT_ENDING:Q.comment+=ce;continue;case W.COMMENT_ENDING:ce==="-"?(Q.state=W.COMMENT_ENDED,Q.comment=de(Q.opt,Q.comment),Q.comment&&J(Q,"oncomment",Q.comment),Q.comment=""):(Q.comment+="-"+ce,Q.state=W.COMMENT);continue;case W.COMMENT_ENDED:ce!==">"?(_e(Q,"Malformed comment"),Q.comment+="--"+ce,Q.state=W.COMMENT):Q.state=W.TEXT;continue;case W.CDATA:ce==="]"?Q.state=W.CDATA_ENDING:Q.cdata+=ce;continue;case W.CDATA_ENDING:ce==="]"?Q.state=W.CDATA_ENDING_2:(Q.cdata+="]"+ce,Q.state=W.CDATA);continue;case W.CDATA_ENDING_2:ce===">"?(Q.cdata&&J(Q,"oncdata",Q.cdata),J(Q,"onclosecdata"),Q.cdata="",Q.state=W.TEXT):ce==="]"?Q.cdata+="]":(Q.cdata+="]]"+ce,Q.state=W.CDATA);continue;case W.PROC_INST:ce==="?"?Q.state=W.PROC_INST_ENDING:F(ce)?Q.state=W.PROC_INST_BODY:Q.procInstName+=ce;continue;case W.PROC_INST_BODY:if(!Q.procInstBody&&F(ce))continue;ce==="?"?Q.state=W.PROC_INST_ENDING:Q.procInstBody+=ce;continue;case W.PROC_INST_ENDING:ce===">"?(J(Q,"onprocessinginstruction",{name:Q.procInstName,body:Q.procInstBody}),Q.procInstName=Q.procInstBody="",Q.state=W.TEXT):(Q.procInstBody+="?"+ce,Q.state=W.PROC_INST_BODY);continue;case W.OPEN_TAG:B(N,ce)?Q.tagName+=ce:(Ie(Q),ce===">"?ke(Q):ce==="/"?Q.state=W.OPEN_TAG_SLASH:(F(ce)||_e(Q,"Invalid character in tag name"),Q.state=W.ATTRIB));continue;case W.OPEN_TAG_SLASH:ce===">"?(ke(Q,!0),se(Q)):(_e(Q,"Forward-slash in opening tag not followed by >"),Q.state=W.ATTRIB);continue;case W.ATTRIB:if(F(ce))continue;ce===">"?ke(Q):ce==="/"?Q.state=W.OPEN_TAG_SLASH:B(L,ce)?(Q.attribName=ce,Q.attribValue="",Q.state=W.ATTRIB_NAME):_e(Q,"Invalid attribute name");continue;case W.ATTRIB_NAME:ce==="="?Q.state=W.ATTRIB_VALUE:ce===">"?(_e(Q,"Attribute without value"),Q.attribValue=Q.attribName,me(Q),ke(Q)):F(ce)?Q.state=W.ATTRIB_NAME_SAW_WHITE:B(N,ce)?Q.attribName+=ce:_e(Q,"Invalid attribute name");continue;case W.ATTRIB_NAME_SAW_WHITE:if(ce==="=")Q.state=W.ATTRIB_VALUE;else{if(F(ce))continue;_e(Q,"Attribute without value"),Q.tag.attributes[Q.attribName]="",Q.attribValue="",J(Q,"onattribute",{name:Q.attribName,value:""}),Q.attribName="",ce===">"?ke(Q):B(L,ce)?(Q.attribName=ce,Q.state=W.ATTRIB_NAME):(_e(Q,"Invalid attribute name"),Q.state=W.ATTRIB)}continue;case W.ATTRIB_VALUE:if(F(ce))continue;M(ce)?(Q.q=ce,Q.state=W.ATTRIB_VALUE_QUOTED):(_e(Q,"Unquoted attribute value"),Q.state=W.ATTRIB_VALUE_UNQUOTED,Q.attribValue=ce);continue;case W.ATTRIB_VALUE_QUOTED:if(ce!==Q.q){ce==="&"?Q.state=W.ATTRIB_VALUE_ENTITY_Q:Q.attribValue+=ce;continue}me(Q),Q.q="",Q.state=W.ATTRIB_VALUE_CLOSED;continue;case W.ATTRIB_VALUE_CLOSED:F(ce)?Q.state=W.ATTRIB:ce===">"?ke(Q):ce==="/"?Q.state=W.OPEN_TAG_SLASH:B(L,ce)?(_e(Q,"No whitespace between attributes"),Q.attribName=ce,Q.attribValue="",Q.state=W.ATTRIB_NAME):_e(Q,"Invalid attribute name");continue;case W.ATTRIB_VALUE_UNQUOTED:if(!U(ce)){ce==="&"?Q.state=W.ATTRIB_VALUE_ENTITY_U:Q.attribValue+=ce;continue}me(Q),ce===">"?ke(Q):Q.state=W.ATTRIB;continue;case W.CLOSE_TAG:if(Q.tagName)ce===">"?se(Q):B(N,ce)?Q.tagName+=ce:Q.script?(Q.script+="</"+Q.tagName,Q.tagName="",Q.state=W.SCRIPT):(F(ce)||_e(Q,"Invalid tagname in closing tag"),Q.state=W.CLOSE_TAG_SAW_WHITE);else{if(F(ce))continue;j(L,ce)?Q.script?(Q.script+="</"+ce,Q.state=W.SCRIPT):_e(Q,"Invalid tagname in closing tag."):Q.tagName=ce}continue;case W.CLOSE_TAG_SAW_WHITE:if(F(ce))continue;ce===">"?se(Q):_e(Q,"Invalid characters in closing tag");continue;case W.TEXT_ENTITY:case W.ATTRIB_VALUE_ENTITY_Q:case W.ATTRIB_VALUE_ENTITY_U:var le,fe;switch(Q.state){case W.TEXT_ENTITY:le=W.TEXT,fe="textNode";break;case W.ATTRIB_VALUE_ENTITY_Q:le=W.ATTRIB_VALUE_QUOTED,fe="attribValue";break;case W.ATTRIB_VALUE_ENTITY_U:le=W.ATTRIB_VALUE_UNQUOTED,fe="attribValue";break}ce===";"?(Q[fe]+=te(Q),Q.entity="",Q.state=le):B(Q.entity.length?D:R,ce)?Q.entity+=ce:(_e(Q,"Invalid character in entity name"),Q[fe]+="&"+Q.entity+ce,Q.entity="",Q.state=le);continue;default:throw new Error(Q,"Unknown state: "+Q.state)}}return Q.position>=Q.bufferCheckPosition&&u(Q),Q}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */C.default||function(){var G=String.fromCharCode,Q=Math.floor,ye=function(){var Te=16384,Se=[],le,fe,Ee=-1,Ve=arguments.length;if(!Ve)return"";for(var vt="";++Ee<Ve;){var et=Number(arguments[Ee]);if(!isFinite(et)||et<0||et>1114111||Q(et)!==et)throw RangeError("Invalid code point: "+et);et<=65535?Se.push(et):(et-=65536,le=(et>>10)+55296,fe=et%1024+56320,Se.push(le,fe)),(Ee+1===Ve||Se.length>Te)&&(vt+=G.apply(null,Se),Se.length=0)}return vt};o.default?Object.defineProperty(String,"fromCodePoint",{value:ye,configurable:!0,writable:!0}):String.fromCodePoint=ye}()})(typeof d=="undefined"?(void 0).sax={}:d)}).call(this,H("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/define-property":56,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/string/from-code-point":63,"babel-runtime/helpers/typeof":67,buffer:73,stream:230,string_decoder:72}],230:[function(H,k,d){k.exports=C;var O=H("events").EventEmitter,x=H("inherits");x(C,O),C.Readable=H("readable-stream/readable.js"),C.Writable=H("readable-stream/writable.js"),C.Duplex=H("readable-stream/duplex.js"),C.Transform=H("readable-stream/transform.js"),C.PassThrough=H("readable-stream/passthrough.js"),C.Stream=C;function C(){O.call(this)}C.prototype.pipe=function(A,b){var g=this;function f(l){A.writable&&(A.write(l)===!1&&g.pause&&g.pause())}g.on("data",f);function c(){g.readable&&g.resume&&g.resume()}A.on("drain",c),!A._isStdio&&(!b||b.end!==!1)&&(g.on("end",r),g.on("close",i));var o=!1;function r(){if(o)return;o=!0,A.end()}function i(){if(o)return;o=!0,typeof A.destroy=="function"&&A.destroy()}function n(l){if(e(),O.listenerCount(this,"error")===0)throw l}g.on("error",n),A.on("error",n);function e(){g.removeListener("data",f),A.removeListener("drain",c),g.removeListener("end",r),g.removeListener("close",i),g.removeListener("error",n),A.removeListener("error",n),g.removeListener("end",e),g.removeListener("close",e),A.removeListener("close",e)}return g.on("end",e),g.on("close",e),A.on("close",e),A.emit("pipe",g),A}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(H,k,d){(function(O){var x=H("./lib/request"),C=H("./lib/response"),A=H("xtend"),b=H("builtin-status-codes"),g=H("url"),f=d;f.request=function(c,o){typeof c=="string"?c=g.parse(c):c=A(c);var r=O.location.protocol.search(/^https?:$/)===-1?"http:":"",i=c.protocol||r,n=c.hostname||c.host,e=c.port,l=c.path||"/";n&&n.indexOf(":")!==-1&&(n="["+n+"]"),c.url=(n?i+"//"+n:"")+(e?":"+e:"")+l,c.method=(c.method||"GET").toUpperCase(),c.headers=c.headers||{};var t=new x(c);return o&&t.on("response",o),t},f.get=function(o,r){var i=f.request(o,r);return i.end(),i},f.ClientRequest=x,f.IncomingMessage=C.IncomingMessage,f.Agent=function(){},f.Agent.defaultMaxSockets=4,f.globalAgent=new f.Agent,f.STATUS_CODES=b,f.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":233,"./lib/response":234,"builtin-status-codes":74,url:238,xtend:283}],232:[function(H,k,d){(function(O){"use strict";d.fetch=f(O.fetch)&&f(O.ReadableStream),d.writableStream=f(O.WritableStream),d.abortController=f(O.AbortController),d.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),d.blobConstructor=!0}catch(c){}var x;function C(){if(x!==void 0)return x;if(O.XMLHttpRequest){x=new O.XMLHttpRequest;try{x.open("GET",O.XDomainRequest?"/":"https://example.com")}catch(c){x=null}}else x=null;return x}function A(c){var o=C();if(!o)return!1;try{return o.responseType=c,o.responseType===c}catch(r){}return!1}var b=typeof O.ArrayBuffer!="undefined",g=b&&f(O.ArrayBuffer.prototype.slice);d.arraybuffer=d.fetch||b&&A("arraybuffer"),d.msstream=!d.fetch&&g&&A("ms-stream"),d.mozchunkedarraybuffer=!d.fetch&&b&&A("moz-chunked-arraybuffer"),d.overrideMimeType=d.fetch||(C()?f(C().overrideMimeType):!1),d.vbArray=f(O.VBArray);function f(c){return typeof c=="function"}x=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(H,k,d){(function(O,x,C){"use strict";var A=H("babel-runtime/core-js/object/keys"),b=g(A);function g(u){return u&&u.__esModule?u:{default:u}}var f=H("./capability"),c=H("inherits"),o=H("./response"),r=H("readable-stream"),i=H("to-arraybuffer"),n=o.IncomingMessage,e=o.readyStates;function l(u,h){return f.fetch&&h?"fetch":f.mozchunkedarraybuffer?"moz-chunked-arraybuffer":f.msstream?"ms-stream":f.arraybuffer&&u?"arraybuffer":f.vbArray&&u?"text:vbarray":"text"}var t=k.exports=function(u){var h=this;r.Writable.call(h),h._opts=u,h._body=[],h._headers={},u.auth&&h.setHeader("Authorization","Basic "+new C(u.auth).toString("base64")),(0,b.default)(u.headers).forEach(function(v){h.setHeader(v,u.headers[v])});var p,m=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!f.abortController)m=!1,p=!0;else if(u.mode==="prefer-streaming")p=!1;else if(u.mode==="allow-wrong-content-type")p=!f.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")p=!0;else throw new Error("Invalid value for opts.mode");h._mode=l(p,m),h._fetchTimer=null,h.on("finish",function(){h._onFinish()})};c(t,r.Writable),t.prototype.setHeader=function(u,h){var p=this,m=u.toLowerCase();if(s.indexOf(m)!==-1)return;p._headers[m]={name:u,value:h}},t.prototype.getHeader=function(u){var h=this._headers[u.toLowerCase()];return h?h.value:null},t.prototype.removeHeader=function(u){var h=this;delete h._headers[u.toLowerCase()]},t.prototype._onFinish=function(){var u=this;if(u._destroyed)return;var h=u._opts,p=u._headers,m=null;h.method!=="GET"&&h.method!=="HEAD"&&(f.arraybuffer?m=i(C.concat(u._body)):f.blobConstructor?m=new x.Blob(u._body.map(function(S){return i(S)}),{type:(p["content-type"]||{}).value||""}):m=C.concat(u._body).toString());var v=[];if((0,b.default)(p).forEach(function(S){var _=p[S].name,I=p[S].value;Array.isArray(I)?I.forEach(function(L){v.push([_,L])}):v.push([_,I])}),u._mode==="fetch"){var y=null,E=null;if(f.abortController){var T=new AbortController;y=T.signal,u._fetchAbortController=T,"requestTimeout"in h&&h.requestTimeout!==0&&(u._fetchTimer=x.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},h.requestTimeout))}x.fetch(u._opts.url,{method:u._opts.method,headers:v,body:m||void 0,mode:"cors",credentials:h.withCredentials?"include":"same-origin",signal:y}).then(function(S){u._fetchResponse=S,u._connect()},function(S){x.clearTimeout(u._fetchTimer),u._destroyed||u.emit("error",S)})}else{var w=u._xhr=new x.XMLHttpRequest;try{w.open(u._opts.method,u._opts.url,!0)}catch(S){O.nextTick(function(){u.emit("error",S)});return}"responseType"in w&&(w.responseType=u._mode.split(":")[0]),"withCredentials"in w&&(w.withCredentials=!!h.withCredentials),u._mode==="text"&&"overrideMimeType"in w&&w.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in h&&(w.timeout=h.requestTimeout,w.ontimeout=function(){u.emit("requestTimeout")}),v.forEach(function(S){w.setRequestHeader(S[0],S[1])}),u._response=null,w.onreadystatechange=function(){switch(w.readyState){case e.LOADING:case e.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(w.onprogress=function(){u._onXHRProgress()}),w.onerror=function(){if(u._destroyed)return;u.emit("error",new Error("XHR error"))};try{w.send(m)}catch(S){O.nextTick(function(){u.emit("error",S)});return}}};function a(u){try{var h=u.status;return h!==null&&h!==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(h){u.emit("error",h)}),u.emit("response",u._response)},t.prototype._write=function(u,h,p){var m=this;m._body.push(u),p()},t.prototype.abort=t.prototype.destroy=function(){var u=this;u._destroyed=!0,x.clearTimeout(u._fetchTimer),u._response&&(u._response._destroyed=!0),u._xhr?u._xhr.abort():u._fetchAbortController&&u._fetchAbortController.abort()},t.prototype.end=function(u,h,p){var m=this;typeof u=="function"&&(p=u,u=void 0),r.Writable.prototype.end.call(m,u,h,p)},t.prototype.flushHeaders=function(){},t.prototype.setTimeout=function(){},t.prototype.setNoDelay=function(){},t.prototype.setSocketKeepAlive=function(){};var s=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},H("buffer").Buffer)},{"./capability":232,"./response":234,_process:208,"babel-runtime/core-js/object/keys":60,buffer:73,inherits:196,"readable-stream":223,"to-arraybuffer":237}],234:[function(H,k,d){(function(O,x,C){"use strict";var A=H("babel-runtime/core-js/promise"),b=g(A);function g(n){return n&&n.__esModule?n:{default:n}}var f=H("./capability"),c=H("inherits"),o=H("readable-stream"),r=d.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},i=d.IncomingMessage=function(n,e,l,t){var a=this;if(o.Readable.call(a),a._mode=l,a.headers={},a.rawHeaders=[],a.trailers={},a.rawTrailers=[],a.on("end",function(){O.nextTick(function(){a.emit("close")})}),l==="fetch"){var s=function y(){h.read().then(function(E){if(a._destroyed)return;if(E.done){x.clearTimeout(t),a.push(null);return}a.push(new C(E.value)),y()}).catch(function(E){x.clearTimeout(t),a._destroyed||a.emit("error",E)})};if(a._fetchResponse=e,a.url=e.url,a.statusCode=e.status,a.statusMessage=e.statusText,e.headers.forEach(function(y,E){a.headers[E.toLowerCase()]=y,a.rawHeaders.push(E,y)}),f.writableStream){var u=new WritableStream({write:function(E){return new b.default(function(T,w){a._destroyed?w():a.push(new C(E))?T():a._resumeFetch=T})},close:function(){x.clearTimeout(t),a._destroyed||a.push(null)},abort:function(E){a._destroyed||a.emit("error",E)}});try{e.body.pipeTo(u).catch(function(y){x.clearTimeout(t),a._destroyed||a.emit("error",y)});return}catch(y){}}var h=e.body.getReader();s()}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 E=y.match(/^([^:]+):\s*(.*)/);if(E){var T=E[1].toLowerCase();T==="set-cookie"?(a.headers[T]===void 0&&(a.headers[T]=[]),a.headers[T].push(E[2])):a.headers[T]!==void 0?a.headers[T]+=", "+E[2]:a.headers[T]=E[2],a.rawHeaders.push(E[1],E[2])}}),a._charset="x-user-defined",!f.overrideMimeType){var m=a.rawHeaders["mime-type"];if(m){var v=m.match(/;\s*charset=([^;])(;|$)/);v&&(a._charset=v[1].toLowerCase())}a._charset||(a._charset="utf-8")}}};c(i,o.Readable),i.prototype._read=function(){var n=this,e=n._resumeFetch;e&&(n._resumeFetch=null,e())},i.prototype._onXHRProgress=function(){var n=this,e=n._xhr,l=null;switch(n._mode){case"text:vbarray":if(e.readyState!==r.DONE)break;try{l=new x.VBArray(e.responseBody).toArray()}catch(h){}if(l!==null){n.push(new C(l));break}case"text":try{l=e.responseText}catch(h){n._mode="text:vbarray";break}if(l.length>n._pos){var t=l.substr(n._pos);if(n._charset==="x-user-defined"){for(var a=new C(t.length),s=0;s<t.length;s++)a[s]=t.charCodeAt(s)&255;n.push(a)}else n.push(t,n._charset);n._pos=l.length}break;case"arraybuffer":if(e.readyState!==r.DONE||!e.response)break;l=e.response,n.push(new C(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=e.response,e.readyState!==r.LOADING||!l)break;n.push(new C(new Uint8Array(l)));break;case"ms-stream":if(l=e.response,e.readyState!==r.LOADING)break;var u=new x.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(l);break}n._xhr.readyState===r.DONE&&n._mode!=="ms-stream"&&n.push(null)}}).call(this,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},H("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(H,k,d){"use strict";var O=H("safe-buffer").Buffer,x=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 h;;)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(h)return;u=(""+u).toLowerCase(),h=!0}}function A(u){var h=C(u);if(typeof h!="string"&&(O.isEncoding===x||!x(u)))throw new Error("Unknown encoding: "+u);return h||u}d.StringDecoder=b;function b(u){this.encoding=A(u);var h;switch(this.encoding){case"utf16le":this.text=n,this.end=e,h=4;break;case"utf8":this.fillLast=o,h=4;break;case"base64":this.text=l,this.end=t,h=3;break;default:this.write=a,this.end=s;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=O.allocUnsafe(h)}b.prototype.write=function(u){if(u.length===0)return"";var h,p;if(this.lastNeed){if(h=this.fillLast(u),h===void 0)return"";p=this.lastNeed,this.lastNeed=0}else p=0;return p<u.length?h?h+this.text(u,p):this.text(u,p):h||""},b.prototype.end=i,b.prototype.text=r,b.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 g(u){return u<=127?0:u>>5===6?2:u>>4===14?3:u>>3===30?4:u>>6===2?-1:-2}function f(u,h,p){var m=h.length-1;if(m<p)return 0;var v=g(h[m]);return v>=0?(v>0&&(u.lastNeed=v-1),v):--m<p||v===-2?0:(v=g(h[m]),v>=0?(v>0&&(u.lastNeed=v-2),v):--m<p||v===-2?0:(v=g(h[m]),v>=0?(v>0&&(v===2?v=0:u.lastNeed=v-3),v):0))}function c(u,h,p){if((h[0]&192)!==128)return u.lastNeed=0,"\uFFFD";if(u.lastNeed>1&&h.length>1){if((h[1]&192)!==128)return u.lastNeed=1,"\uFFFD";if(u.lastNeed>2&&h.length>2&&(h[2]&192)!==128)return u.lastNeed=2,"\uFFFD"}}function o(u){var h=this.lastTotal-this.lastNeed,p=c(this,u,h);if(p!==void 0)return p;if(this.lastNeed<=u.length)return u.copy(this.lastChar,h,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);u.copy(this.lastChar,h,0,u.length),this.lastNeed-=u.length}function r(u,h){var p=f(this,u,h);if(!this.lastNeed)return u.toString("utf8",h);this.lastTotal=p;var m=u.length-(p-this.lastNeed);return u.copy(this.lastChar,0,m),u.toString("utf8",h,m)}function i(u){var h=u&&u.length?this.write(u):"";return this.lastNeed?h+"\uFFFD":h}function n(u,h){if((u.length-h)%2===0){var p=u.toString("utf16le",h);if(p){var m=p.charCodeAt(p.length-1);if(m>=55296&&m<=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",h,u.length-1)}function e(u){var h=u&&u.length?this.write(u):"";if(this.lastNeed){var p=this.lastTotal-this.lastNeed;return h+this.lastChar.toString("utf16le",0,p)}return h}function l(u,h){var p=(u.length-h)%3;return p===0?u.toString("base64",h):(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",h,u.length-p))}function t(u){var h=u&&u.length?this.write(u):"";return this.lastNeed?h+this.lastChar.toString("base64",0,3-this.lastNeed):h}function a(u){return u.toString(this.encoding)}function s(u){return u&&u.length?this.write(u):""}},{"safe-buffer":228}],236:[function(H,k,d){(function(O,x){var C=H("process/browser.js").nextTick,A=Function.prototype.apply,b=Array.prototype.slice,g={},f=0;d.setTimeout=function(){return new c(A.call(setTimeout,window,arguments),clearTimeout)},d.setInterval=function(){return new c(A.call(setInterval,window,arguments),clearInterval)},d.clearTimeout=d.clearInterval=function(o){o.close()};function c(o,r){this._id=o,this._clearFn=r}c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},d.enroll=function(o,r){clearTimeout(o._idleTimeoutId),o._idleTimeout=r},d.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},d._unrefActive=d.active=function(o){clearTimeout(o._idleTimeoutId);var r=o._idleTimeout;r>=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},r))},d.setImmediate=typeof O=="function"?O:function(o){var r=f++,i=arguments.length<2?!1:b.call(arguments,1);return g[r]=!0,C(function(){g[r]&&(i?o.apply(null,i):o.call(null),d.clearImmediate(r))}),r},d.clearImmediate=typeof x=="function"?x:function(o){delete g[o]}}).call(this,H("timers").setImmediate,H("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(H,k,d){var O=H("buffer").Buffer;k.exports=function(x){if(x instanceof Uint8Array){if(x.byteOffset===0&&x.byteLength===x.buffer.byteLength)return x.buffer;if(typeof x.buffer.slice=="function")return x.buffer.slice(x.byteOffset,x.byteOffset+x.byteLength)}if(O.isBuffer(x)){for(var C=new Uint8Array(x.length),A=x.length,b=0;b<A;b++)C[b]=x[b];return C.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(H,k,d){"use strict";var O=H("punycode"),x=H("./util");d.parse=h,d.resolve=m,d.resolveObject=v,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 A=/^([a-z0-9.+-]+:)/i,b=/:[0-9]*$/,g=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r",`
`," "],c=["{","}","|","\\","^","`"].concat(f),o=["'"].concat(c),r=["%","/","?",";","#"].concat(o),i=["/","?","#"],n=255,e=/^[+a-z0-9A-Z_-]{0,63}$/,l=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,t={javascript:!0,"javascript:":!0},a={javascript:!0,"javascript:":!0},s={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},u=H("querystring");function h(y,E,T){if(y&&x.isObject(y)&&y instanceof C)return y;var w=new C;return w.parse(y,E,T),w}C.prototype.parse=function(y,E,T){if(!x.isString(y))throw new TypeError("Parameter 'url' must be a string, not "+typeof y);var w=y.indexOf("?"),S=w!==-1&&w<y.indexOf("#")?"?":"#",_=y.split(S),I=/\\/g;_[0]=_[0].replace(I,"/"),y=_.join(S);var L=y;if(L=L.trim(),!T&&y.split("#").length===1){var N=g.exec(L);if(N)return this.path=L,this.href=L,this.pathname=N[1],N[2]?(this.search=N[2],E?this.query=u.parse(this.search.substr(1)):this.query=this.search.substr(1)):E&&(this.search="",this.query={}),this}var R=A.exec(L);if(R){R=R[0];var D=R.toLowerCase();this.protocol=D,L=L.substr(R.length)}if(T||R||L.match(/^\/\/[^@\/]+@[^@\/]+/)){var F=L.substr(0,2)==="//";F&&!(R&&a[R])&&(L=L.substr(2),this.slashes=!0)}if(!a[R]&&(F||R&&!s[R])){for(var M=-1,U=0;U<i.length;U++){var B=L.indexOf(i[U]);B!==-1&&(M===-1||B<M)&&(M=B)}var j,W;M===-1?W=L.lastIndexOf("@"):W=L.lastIndexOf("@",M),W!==-1&&(j=L.slice(0,W),L=L.slice(W+1),this.auth=decodeURIComponent(j)),M=-1;for(var U=0;U<r.length;U++){var B=L.indexOf(r[U]);B!==-1&&(M===-1||B<M)&&(M=B)}M===-1&&(M=L.length),this.host=L.slice(0,M),L=L.slice(M),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(/\./),U=0,J=z.length;U<J;U++){var q=z[U];if(!q)continue;if(!q.match(e)){for(var de="",ae=0,ve=q.length;ae<ve;ae++)q.charCodeAt(ae)>127?de+="x":de+=q[ae];if(!de.match(e)){var _e=z.slice(0,U),Ie=z.slice(U+1),He=q.match(l);He&&(_e.push(He[1]),Ie.unshift(He[2])),Ie.length&&(L="/"+Ie.join(".")+L),this.hostname=_e.join(".");break}}}this.hostname.length>n?this.hostname="":this.hostname=this.hostname.toLowerCase(),V||(this.hostname=O.toASCII(this.hostname));var me=this.port?":"+this.port:"",ke=this.hostname||"";this.host=ke+me,this.href+=this.host,V&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),L[0]!=="/"&&(L="/"+L))}if(!t[D])for(var U=0,J=o.length;U<J;U++){var se=o[U];if(L.indexOf(se)===-1)continue;var te=encodeURIComponent(se);te===se&&(te=escape(se)),L=L.split(se).join(te)}var Ge=L.indexOf("#");Ge!==-1&&(this.hash=L.substr(Ge),L=L.slice(0,Ge));var oe=L.indexOf("?");if(oe!==-1?(this.search=L.substr(oe),this.query=L.substr(oe+1),E&&(this.query=u.parse(this.query)),L=L.slice(0,oe)):E&&(this.search="",this.query={}),L&&(this.pathname=L),s[D]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var me=this.pathname||"",Y=this.search||"";this.path=me+Y}return this.href=this.format(),this};function p(y){return x.isString(y)&&(y=h(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 E=this.protocol||"",T=this.pathname||"",w=this.hash||"",S=!1,_="";this.host?S=y+this.host:this.hostname&&(S=y+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(S+=":"+this.port)),this.query&&x.isObject(this.query)&&Object.keys(this.query).length&&(_=u.stringify(this.query));var I=this.search||_&&"?"+_||"";return E&&E.substr(-1)!==":"&&(E+=":"),this.slashes||(!E||s[E])&&S!==!1?(S="//"+(S||""),T&&T.charAt(0)!=="/"&&(T="/"+T)):S||(S=""),w&&w.charAt(0)!=="#"&&(w="#"+w),I&&I.charAt(0)!=="?"&&(I="?"+I),T=T.replace(/[?#]/g,function(L){return encodeURIComponent(L)}),I=I.replace("#","%23"),E+S+T+I+w};function m(y,E){return h(y,!1,!0).resolve(E)}C.prototype.resolve=function(y){return this.resolveObject(h(y,!1,!0)).format()};function v(y,E){return y?h(y,!1,!0).resolveObject(E):E}C.prototype.resolveObject=function(y){if(x.isString(y)){var E=new C;E.parse(y,!1,!0),y=E}for(var T=new C,w=Object.keys(this),S=0;S<w.length;S++){var _=w[S];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 N=I[L];N!=="protocol"&&(T[N]=y[N])}return s[T.protocol]&&T.hostname&&!T.pathname&&(T.path=T.pathname="/"),T.href=T.format(),T}if(y.protocol&&y.protocol!==T.protocol){if(!s[y.protocol]){for(var R=Object.keys(y),D=0;D<R.length;D++){var F=R[D];T[F]=y[F]}return T.href=T.format(),T}if(T.protocol=y.protocol,!y.host&&!a[y.protocol]){for(var J=(y.pathname||"").split("/");J.length&&!(y.host=J.shift()););y.host||(y.host=""),y.hostname||(y.hostname=""),J[0]!==""&&J.unshift(""),J.length<2&&J.unshift(""),T.pathname=J.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 M=T.pathname||"",U=T.search||"";T.path=M+U}return T.slashes=T.slashes||y.slashes,T.href=T.format(),T}var B=T.pathname&&T.pathname.charAt(0)==="/",j=y.host||y.pathname&&y.pathname.charAt(0)==="/",W=j||B||T.host&&y.pathname,V=W,z=T.pathname&&T.pathname.split("/")||[],J=y.pathname&&y.pathname.split("/")||[],q=T.protocol&&!s[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&&(J[0]===""?J[0]=y.host:J.unshift(y.host)),y.host=null),W=W&&(J[0]===""||z[0]==="")),j)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=J;else if(J.length)z||(z=[]),z.pop(),z=z.concat(J),T.search=y.search,T.query=y.query;else if(!x.isNullOrUndefined(y.search)){if(q){T.hostname=T.host=z.shift();var de=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;de&&(T.auth=de.shift(),T.host=T.hostname=de.shift())}return T.search=y.search,T.query=y.query,(!x.isNull(T.pathname)||!x.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 ae=z.slice(-1)[0],ve=(T.host||y.host||z.length>1)&&(ae==="."||ae==="..")||ae==="",_e=0,Ie=z.length;Ie>=0;Ie--)ae=z[Ie],ae==="."?z.splice(Ie,1):ae===".."?(z.splice(Ie,1),_e++):_e&&(z.splice(Ie,1),_e--);if(!W&&!V)for(;_e--;_e)z.unshift("..");W&&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 de=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;de&&(T.auth=de.shift(),T.host=T.hostname=de.shift())}return W=W||T.host&&z.length,W&&!He&&z.unshift(""),z.length?T.pathname=z.join("/"):(T.pathname=null,T.path=null),(!x.isNull(T.pathname)||!x.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,E=b.exec(y);E&&(E=E[0],E!==":"&&(this.port=E.substr(1)),y=y.substr(0,y.length-E.length)),y&&(this.hostname=y)}},{"./util":239,punycode:209,querystring:212}],239:[function(H,k,d){"use strict";k.exports={isString:function(x){return typeof x=="string"},isObject:function(x){return typeof x=="object"&&x!==null},isNull:function(x){return x===null},isNullOrUndefined:function(x){return x==null}}},{}],240:[function(H,k,d){(function(O){k.exports=x;function x(A,b){if(C("noDeprecation"))return A;var g=!1;function f(){if(!g){if(C("throwDeprecation"))throw new Error(b);C("traceDeprecation")?console.trace(b):console.warn(b),g=!0}return A.apply(this,arguments)}return f}function C(A){try{if(!O.localStorage)return!1}catch(g){return!1}var b=O.localStorage[A];return b==null?!1:String(b).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(H,k,d){typeof Object.create=="function"?k.exports=function(x,C){x.super_=C,x.prototype=Object.create(C.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}})}:k.exports=function(x,C){x.super_=C;var A=function(){};A.prototype=C.prototype,x.prototype=new A,x.prototype.constructor=x}},{}],242:[function(H,k,d){k.exports=function(x){return x&&typeof x=="object"&&typeof x.copy=="function"&&typeof x.fill=="function"&&typeof x.readUInt8=="function"}},{}],243:[function(H,k,d){(function(O,x){var C=/%[sdj%]/g;d.format=function(M){if(!m(M)){for(var U=[],B=0;B<arguments.length;B++)U.push(g(arguments[B]));return U.join(" ")}for(var B=1,j=arguments,W=j.length,V=String(M).replace(C,function(J){if(J==="%%")return"%";if(B>=W)return J;switch(J){case"%s":return String(j[B++]);case"%d":return Number(j[B++]);case"%j":try{return JSON.stringify(j[B++])}catch(q){return"[Circular]"}default:return J}}),z=j[B];B<W;z=j[++B])u(z)||!T(z)?V+=" "+z:V+=" "+g(z);return V},d.deprecate=function(M,U){if(y(x.process))return function(){return d.deprecate(M,U).apply(this,arguments)};if(O.noDeprecation===!0)return M;var B=!1;function j(){if(!B){if(O.throwDeprecation)throw new Error(U);O.traceDeprecation?console.trace(U):console.error(U),B=!0}return M.apply(this,arguments)}return j};var A={},b;d.debuglog=function(M){if(y(b)&&(b=O.env.NODE_DEBUG||""),M=M.toUpperCase(),!A[M])if(new RegExp("\\b"+M+"\\b","i").test(b)){var U=O.pid;A[M]=function(){var B=d.format.apply(d,arguments);console.error("%s %d: %s",M,U,B)}}else A[M]=function(){};return A[M]};function g(M,U){var B={seen:[],stylize:c};return arguments.length>=3&&(B.depth=arguments[2]),arguments.length>=4&&(B.colors=arguments[3]),s(U)?B.showHidden=U:U&&d._extend(B,U),y(B.showHidden)&&(B.showHidden=!1),y(B.depth)&&(B.depth=2),y(B.colors)&&(B.colors=!1),y(B.customInspect)&&(B.customInspect=!0),B.colors&&(B.stylize=f),r(B,M,B.depth)}d.inspect=g,g.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]},g.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(M,U){var B=g.styles[U];return B?"["+g.colors[B][0]+"m"+M+"["+g.colors[B][1]+"m":M}function c(M,U){return M}function o(M){var U={};return M.forEach(function(B,j){U[B]=!0}),U}function r(M,U,B){if(M.customInspect&&U&&_(U.inspect)&&U.inspect!==d.inspect&&!(U.constructor&&U.constructor.prototype===U)){var j=U.inspect(B,M);return m(j)||(j=r(M,j,B)),j}var W=i(M,U);if(W)return W;var V=Object.keys(U),z=o(V);if(M.showHidden&&(V=Object.getOwnPropertyNames(U)),S(U)&&(V.indexOf("message")>=0||V.indexOf("description")>=0))return n(U);if(V.length===0){if(_(U)){var J=U.name?": "+U.name:"";return M.stylize("[Function"+J+"]","special")}if(E(U))return M.stylize(RegExp.prototype.toString.call(U),"regexp");if(w(U))return M.stylize(Date.prototype.toString.call(U),"date");if(S(U))return n(U)}var q="",de=!1,ae=["{","}"];if(a(U)&&(de=!0,ae=["[","]"]),_(U)){var ve=U.name?": "+U.name:"";q=" [Function"+ve+"]"}if(E(U)&&(q=" "+RegExp.prototype.toString.call(U)),w(U)&&(q=" "+Date.prototype.toUTCString.call(U)),S(U)&&(q=" "+n(U)),V.length===0&&(!de||U.length==0))return ae[0]+q+ae[1];if(B<0)return E(U)?M.stylize(RegExp.prototype.toString.call(U),"regexp"):M.stylize("[Object]","special");M.seen.push(U);var _e;return de?_e=e(M,U,B,z,V):_e=V.map(function(Ie){return l(M,U,B,z,Ie,de)}),M.seen.pop(),t(_e,q,ae)}function i(M,U){if(y(U))return M.stylize("undefined","undefined");if(m(U)){var B="'"+JSON.stringify(U).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return M.stylize(B,"string")}if(p(U))return M.stylize(""+U,"number");if(s(U))return M.stylize(""+U,"boolean");if(u(U))return M.stylize("null","null")}function n(M){return"["+Error.prototype.toString.call(M)+"]"}function e(M,U,B,j,W){for(var V=[],z=0,J=U.length;z<J;++z)F(U,String(z))?V.push(l(M,U,B,j,String(z),!0)):V.push("");return W.forEach(function(q){q.match(/^\d+$/)||V.push(l(M,U,B,j,q,!0))}),V}function l(M,U,B,j,W,V){var z,J,q;if(q=Object.getOwnPropertyDescriptor(U,W)||{value:U[W]},q.get?q.set?J=M.stylize("[Getter/Setter]","special"):J=M.stylize("[Getter]","special"):q.set&&(J=M.stylize("[Setter]","special")),F(j,W)||(z="["+W+"]"),J||(M.seen.indexOf(q.value)<0?(u(B)?J=r(M,q.value,null):J=r(M,q.value,B-1),J.indexOf(`
`)>-1&&(V?J=J.split(`
`).map(function(de){return" "+de}).join(`
`).substr(2):J=`
`+J.split(`
`).map(function(de){return" "+de}).join(`
`))):J=M.stylize("[Circular]","special")),y(z)){if(V&&W.match(/^\d+$/))return J;z=JSON.stringify(""+W),z.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(z=z.substr(1,z.length-2),z=M.stylize(z,"name")):(z=z.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),z=M.stylize(z,"string"))}return z+": "+J}function t(M,U,B){var j=0,W=M.reduce(function(V,z){return j++,z.indexOf(`
`)>=0&&j++,V+z.replace(/\u001b\[\d\d?m/g,"").length+1},0);return W>60?B[0]+(U===""?"":U+`
`)+" "+M.join(`,
`)+" "+B[1]:B[0]+U+" "+M.join(", ")+" "+B[1]}function a(M){return Array.isArray(M)}d.isArray=a;function s(M){return typeof M=="boolean"}d.isBoolean=s;function u(M){return M===null}d.isNull=u;function h(M){return M==null}d.isNullOrUndefined=h;function p(M){return typeof M=="number"}d.isNumber=p;function m(M){return typeof M=="string"}d.isString=m;function v(M){return typeof M=="symbol"}d.isSymbol=v;function y(M){return M===void 0}d.isUndefined=y;function E(M){return T(M)&&L(M)==="[object RegExp]"}d.isRegExp=E;function T(M){return typeof M=="object"&&M!==null}d.isObject=T;function w(M){return T(M)&&L(M)==="[object Date]"}d.isDate=w;function S(M){return T(M)&&(L(M)==="[object Error]"||M instanceof Error)}d.isError=S;function _(M){return typeof M=="function"}d.isFunction=_;function I(M){return M===null||typeof M=="boolean"||typeof M=="number"||typeof M=="string"||typeof M=="symbol"||typeof M=="undefined"}d.isPrimitive=I,d.isBuffer=H("./support/isBuffer");function L(M){return Object.prototype.toString.call(M)}function N(M){return M<10?"0"+M.toString(10):M.toString(10)}var R=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function D(){var M=new Date,U=[N(M.getHours()),N(M.getMinutes()),N(M.getSeconds())].join(":");return[M.getDate(),R[M.getMonth()],U].join(" ")}d.log=function(){console.log("%s - %s",D(),d.format.apply(d,arguments))},d.inherits=H("inherits"),d._extend=function(M,U){if(!U||!T(U))return M;for(var B=Object.keys(U),j=B.length;j--;)M[B[j]]=U[B[j]];return M};function F(M,U){return Object.prototype.hasOwnProperty.call(M,U)}}).call(this,H("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(H,k,d){"use strict";(function(){"use strict";d.stripBOM=function(O){return O[0]==="\uFEFF"?O.substring(1):O}}).call(void 0)},{}],245:[function(H,k,d){"use strict";var O=H("babel-runtime/helpers/typeof"),x=b(O),C=H("babel-runtime/core-js/object/keys"),A=b(C);function b(g){return g&&g.__esModule?g:{default:g}}(function(){"use strict";var g,f,c,o,r,i={}.hasOwnProperty;g=H("xmlbuilder"),f=H("./defaults").defaults,o=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 l,t,a;this.options={},t=f["0.2"];for(l in t){if(!i.call(t,l))continue;a=t[l],this.options[l]=a}for(l in e){if(!i.call(e,l))continue;a=e[l],this.options[l]=a}}return n.prototype.buildObject=function(e){var l,t,a,s,u;return l=this.options.attrkey,t=this.options.charkey,(0,A.default)(e).length===1&&this.options.rootName===f["0.2"].rootName?(u=(0,A.default)(e)[0],e=e[u]):u=this.options.rootName,a=function(h){return function(p,m){var v,y,E,T,w,S;if((typeof m=="undefined"?"undefined":(0,x.default)(m))!=="object")h.options.cdata&&o(m)?p.raw(r(m)):p.txt(m);else if(Array.isArray(m))for(T in m){if(!i.call(m,T))continue;y=m[T];for(w in y)E=y[w],p=a(p.ele(w),E).up()}else for(w in m){if(!i.call(m,w))continue;if(y=m[w],w===l){if((typeof y=="undefined"?"undefined":(0,x.default)(y))==="object")for(v in y)S=y[v],p=p.att(v,S)}else if(w===t)h.options.cdata&&o(y)?p=p.raw(r(y)):p=p.txt(y);else if(Array.isArray(y))for(T in y){if(!i.call(y,T))continue;E=y[T],typeof E=="string"?h.options.cdata&&o(E)?p=p.ele(w).raw(r(E)).up():p=p.ele(w,E).up():p=a(p.ele(w),E).up()}else(typeof y=="undefined"?"undefined":(0,x.default)(y))==="object"?p=a(p.ele(w),y).up():typeof y=="string"&&h.options.cdata&&o(y)?p=p.ele(w).raw(r(y)).up():(y==null&&(y=""),p=p.ele(w,y.toString()).up())}return p}}(this),s=g.create(u,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),a(s,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(H,k,d){"use strict";(function(){d.defaults={"0.1":{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},"0.2":{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],247:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/promise"),x=o(O),C=H("babel-runtime/core-js/object/get-own-property-names"),A=o(C),b=H("babel-runtime/core-js/object/keys"),g=o(b),f=H("babel-runtime/helpers/typeof"),c=o(f);function o(r){return r&&r.__esModule?r:{default:r}}(function(){"use strict";var r,i,n,e,l,t,a,s,u=function(v,y){return function(){return v.apply(y,arguments)}},h=function(v,y){for(var E in y)p.call(y,E)&&(v[E]=y[E]);function T(){this.constructor=v}return T.prototype=y.prototype,v.prototype=new T,v.__super__=y.prototype,v},p={}.hasOwnProperty;a=H("sax"),n=H("events"),r=H("./bom"),t=H("./processors"),s=H("timers").setImmediate,i=H("./defaults").defaults,e=function(v){return(typeof v=="undefined"?"undefined":(0,c.default)(v))==="object"&&v!=null&&(0,g.default)(v).length===0},l=function(v,y,E){var T,w,S;for(T=0,w=v.length;T<w;T++)S=v[T],y=S(y,E);return y},d.Parser=function(m){h(v,m);function v(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 E,T,w;if(!(this instanceof d.Parser))return new d.Parser(y);this.options={},T=i["0.2"];for(E in T){if(!p.call(T,E))continue;w=T[E],this.options[E]=w}for(E in y){if(!p.call(y,E))continue;w=y[E],this.options[E]=w}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 v.prototype.processAsync=function(){var y,E;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),s(this.processAsync))}catch(T){if(E=T,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(E)}},v.prototype.assignOrPush=function(y,E,T){return E in y?(y[E]instanceof Array||(y[E]=[y[E]]),y[E].push(T)):this.options.explicitArray?y[E]=[T]:y[E]=T},v.prototype.reset=function(){var y,E,T,w;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(S){return function(_){if(S.saxParser.resume(),!S.saxParser.errThrown)return S.saxParser.errThrown=!0,S.emit("error",_)}}(this),this.saxParser.onend=function(S){return function(){if(!S.saxParser.ended)return S.saxParser.ended=!0,S.emit("end",S.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,w=[],y=this.options.attrkey,E=this.options.charkey,this.saxParser.onopentag=function(S){return function(_){var I,L,N,R,D;if(N={},N[E]="",!S.options.ignoreAttrs){D=_.attributes;for(I in D){if(!p.call(D,I))continue;!(y in N)&&!S.options.mergeAttrs&&(N[y]={}),L=S.options.attrValueProcessors?l(S.options.attrValueProcessors,_.attributes[I],I):_.attributes[I],R=S.options.attrNameProcessors?l(S.options.attrNameProcessors,I):I,S.options.mergeAttrs?S.assignOrPush(N,R,L):N[y][R]=L}}return N["#name"]=S.options.tagNameProcessors?l(S.options.tagNameProcessors,_.name):_.name,S.options.xmlns&&(N[S.options.xmlnskey]={uri:_.uri,local:_.local}),w.push(N)}}(this),this.saxParser.onclosetag=function(S){return function(){var _,I,L,N,R,D,F,M,U,B;if(D=w.pop(),R=D["#name"],(!S.options.explicitChildren||!S.options.preserveChildrenOrder)&&delete D["#name"],D.cdata===!0&&(_=D.cdata,delete D.cdata),U=w[w.length-1],D[E].match(/^\s*$/)&&!_?(I=D[E],delete D[E]):(S.options.trim&&(D[E]=D[E].trim()),S.options.normalize&&(D[E]=D[E].replace(/\s{2,}/g," ").trim()),D[E]=S.options.valueProcessors?l(S.options.valueProcessors,D[E],R):D[E],(0,g.default)(D).length===1&&E in D&&!S.EXPLICIT_CHARKEY&&(D=D[E])),e(D)&&(D=S.options.emptyTag!==""?S.options.emptyTag:I),S.options.validator!=null&&(B="/"+function(){var j,W,V;for(V=[],j=0,W=w.length;j<W;j++)N=w[j],V.push(N["#name"]);return V}().concat(R).join("/"),function(){var j;try{return D=S.options.validator(B,U&&U[R],D)}catch(W){return j=W,S.emit("error",j)}}()),S.options.explicitChildren&&!S.options.mergeAttrs&&(typeof D=="undefined"?"undefined":(0,c.default)(D))==="object"){if(!S.options.preserveChildrenOrder)N={},S.options.attrkey in D&&(N[S.options.attrkey]=D[S.options.attrkey],delete D[S.options.attrkey]),!S.options.charsAsChildren&&S.options.charkey in D&&(N[S.options.charkey]=D[S.options.charkey],delete D[S.options.charkey]),(0,A.default)(D).length>0&&(N[S.options.childkey]=D),D=N;else if(U){U[S.options.childkey]=U[S.options.childkey]||[],F={};for(L in D){if(!p.call(D,L))continue;F[L]=D[L]}U[S.options.childkey].push(F),delete D["#name"],(0,g.default)(D).length===1&&E in D&&!S.EXPLICIT_CHARKEY&&(D=D[E])}}return w.length>0?S.assignOrPush(U,R,D):(S.options.explicitRoot&&(M=D,D={},D[R]=M),S.resultObject=D,S.saxParser.ended=!0,S.emit("end",S.resultObject))}}(this),T=function(S){return function(_){var I,L;if(L=w[w.length-1],L)return L[E]+=_,S.options.explicitChildren&&S.options.preserveChildrenOrder&&S.options.charsAsChildren&&(S.options.includeWhiteChars||_.replace(/\\n/g,"").trim()!=="")&&(L[S.options.childkey]=L[S.options.childkey]||[],I={"#name":"__text__"},I[E]=_,S.options.normalize&&(I[E]=I[E].replace(/\s{2,}/g," ").trim()),L[S.options.childkey].push(I)),L}}(this),this.saxParser.ontext=T,this.saxParser.oncdata=function(S){return function(_){var I;if(I=T(_),I)return I.cdata=!0}}(this)},v.prototype.parseString=function(y,E){var T;E!=null&&typeof E=="function"&&(this.on("end",function(w){return this.reset(),E(null,w)}),this.on("error",function(w){return this.reset(),E(w)}));try{return y=y.toString(),y.trim()===""?(this.emit("end",null),!0):(y=r.stripBOM(y),this.options.async?(this.remaining=y,s(this.processAsync),this.saxParser):this.saxParser.write(y).close())}catch(w){if(T=w,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw T}else return this.emit("error",T),this.saxParser.errThrown=!0}},v.prototype.parseStringPromise=function(y){return new x.default(function(E){return function(T,w){return E.parseString(y,function(S,_){return S?w(S):T(_)})}}(this))},v}(n),d.parseString=function(m,v,y){var E,T,w;return y!=null?(typeof y=="function"&&(E=y),(typeof v=="undefined"?"undefined":(0,c.default)(v))==="object"&&(T=v)):(typeof v=="function"&&(E=v),T={}),w=new d.Parser(T),w.parseString(m,E)},d.parseStringPromise=function(m,v){var y,E;return(typeof v=="undefined"?"undefined":(0,c.default)(v))==="object"&&(y=v),E=new d.Parser(y),E.parseStringPromise(m)}}).call(void 0)},{"./bom":244,"./defaults":246,"./processors":248,"babel-runtime/core-js/object/get-own-property-names":58,"babel-runtime/core-js/object/keys":60,"babel-runtime/core-js/promise":61,"babel-runtime/helpers/typeof":67,events:192,sax:229,timers:236}],248:[function(H,k,d){"use strict";(function(){"use strict";var O;O=new RegExp(/(?!xmlns)^.*:/),d.normalize=function(x){return x.toLowerCase()},d.firstCharLowerCase=function(x){return x.charAt(0).toLowerCase()+x.slice(1)},d.stripPrefix=function(x){return x.replace(O,"")},d.parseNumbers=function(x){return isNaN(x)||(x=x%1===0?parseInt(x,10):parseFloat(x)),x},d.parseBooleans=function(x){return/^(?:true|false)$/i.test(x)&&(x=x.toLowerCase()==="true"),x}}).call(void 0)},{}],249:[function(H,k,d){"use strict";(function(){"use strict";var O,x,C,A,b=function(c,o){for(var r in o)g.call(o,r)&&(c[r]=o[r]);function i(){this.constructor=c}return i.prototype=o.prototype,c.prototype=new i,c.__super__=o.prototype,c},g={}.hasOwnProperty;x=H("./defaults"),O=H("./builder"),C=H("./parser"),A=H("./processors"),d.defaults=x.defaults,d.processors=A,d.ValidationError=function(f){b(c,f);function c(o){this.message=o}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(H,k,d){"use strict";(function(){k.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(H,k,d){"use strict";(function(){k.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(void 0)},{}],252:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/get-prototype-of"),x=f(O),C=H("babel-runtime/helpers/typeof"),A=f(C),b=H("babel-runtime/core-js/object/assign"),g=f(b);function f(c){return c&&c.__esModule?c:{default:c}}(function(){var c,o,r,i,n,e,l,t=[].slice,a={}.hasOwnProperty;c=function(){var u,h,p,m,v,y;if(y=arguments[0],v=2<=arguments.length?t.call(arguments,1):[],n(g.default))g.default.apply(null,arguments);else for(u=0,p=v.length;u<p;u++)if(m=v[u],m!=null)for(h in m){if(!a.call(m,h))continue;y[h]=m[h]}return y},n=function(u){return!!u&&Object.prototype.toString.call(u)==="[object Function]"},e=function(u){var h;return!!u&&((h=typeof u=="undefined"?"undefined":(0,A.default)(u))==="function"||h==="object")},r=function(u){return n(Array.isArray)?Array.isArray(u):Object.prototype.toString.call(u)==="[object Array]"},i=function(u){var h;if(r(u))return!u.length;for(h in u){if(!a.call(u,h))continue;return!1}return!0},l=function(u){var h,p;return e(u)&&(p=(0,x.default)(u))&&(h=p.constructor)&&typeof h=="function"&&h instanceof h&&Function.prototype.toString.call(h)===Function.prototype.toString.call(Object)},o=function(u){return n(u.valueOf)?u.valueOf():u},k.exports.assign=c,k.exports.isFunction=n,k.exports.isObject=e,k.exports.isArray=r,k.exports.isEmpty=i,k.exports.isPlainObject=l,k.exports.getValue=o}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(H,k,d){"use strict";(function(){k.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,b,g;A=H("./NodeType"),g=H("./XMLNode"),k.exports=b=function(){function f(c,o,r){if(this.parent=c,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),o==null)throw new Error("Missing attribute name. "+this.debugInfo(o));this.name=this.stringify.name(o),this.value=this.stringify.attValue(r),this.type=A.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(f.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(f.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(f.prototype,"textContent",{get:function(){return this.value},set:function(o){return this.value=o||""}}),Object.defineProperty(f.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(f.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(f.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(f.prototype,"specified",{get:function(){return!0}}),f.prototype.clone=function(){return(0,x.default)(this)},f.prototype.toString=function(c){return this.options.writer.attribute(this,this.options.writer.filterOptions(c))},f.prototype.debugInfo=function(c){return c=c||this.name,c==null?"parent: <"+this.parent.name+">":"attribute: {"+c+"}, parent: <"+this.parent.name+">"},f.prototype.isEqualNode=function(c){return c.namespaceURI!==this.namespaceURI||(c.prefix!==this.prefix||c.localName!==this.localName)?!1:!(c.value!==this.value)},f}()}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],255:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,b,g,f=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function e(){this.constructor=r}return e.prototype=i.prototype,r.prototype=new e,r.__super__=i.prototype,r},c={}.hasOwnProperty;A=H("./NodeType"),g=H("./XMLCharacterData"),k.exports=b=function(o){f(r,o);function r(i,n){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=A.CData,this.value=this.stringify.cdata(n)}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(i){return this.options.writer.cdata(this,this.options.writer.filterOptions(i))},r}(g)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,b,g=function(o,r){for(var i in r)f.call(r,i)&&(o[i]=r[i]);function n(){this.constructor=o}return n.prototype=r.prototype,o.prototype=new n,o.__super__=r.prototype,o},f={}.hasOwnProperty;b=H("./XMLNode"),k.exports=A=function(c){g(o,c);function o(r){o.__super__.constructor.call(this,r),this.value=""}return Object.defineProperty(o.prototype,"data",{get:function(){return this.value},set:function(i){return this.value=i||""}}),Object.defineProperty(o.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(o.prototype,"textContent",{get:function(){return this.value},set:function(i){return this.value=i||""}}),o.prototype.clone=function(){return(0,x.default)(this)},o.prototype.substringData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.appendData=function(r){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.insertData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.deleteData=function(r,i){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.replaceData=function(r,i,n){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isEqualNode=function(r){return o.__super__.isEqualNode.apply(this,arguments).isEqualNode(r)?!(r.data!==this.data):!1},o}(b)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,b,g,f=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function e(){this.constructor=r}return e.prototype=i.prototype,r.prototype=new e,r.__super__=i.prototype,r},c={}.hasOwnProperty;A=H("./NodeType"),b=H("./XMLCharacterData"),k.exports=g=function(o){f(r,o);function r(i,n){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=A.Comment,this.value=this.stringify.comment(n)}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(i){return this.options.writer.comment(this,this.options.writer.filterOptions(i))},r}(b)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),x=b(O),C=H("babel-runtime/core-js/object/create"),A=b(C);function b(g){return g&&g.__esModule?g:{default:g}}(function(){var g,f,c;f=H("./XMLDOMErrorHandler"),c=H("./XMLDOMStringList"),k.exports=g=function(){function o(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new f,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,A.default)(this.defaultParams)}return Object.defineProperty(o.prototype,"parameterNames",{get:function(){return new c((0,x.default)(this.defaultParams))}}),o.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},o.prototype.canSetParameter=function(r,i){return!0},o.prototype.setParameter=function(r,i){return i!=null?this.params[r]=i:delete this.params[r]},o}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(H,k,d){"use strict";(function(){var O;k.exports=O=function(){function x(){}return x.prototype.handleError=function(C){throw new Error(C)},x}()}).call(void 0)},{}],260:[function(H,k,d){"use strict";(function(){var O;k.exports=O=function(){function x(){}return x.prototype.hasFeature=function(C,A){return!0},x.prototype.createDocumentType=function(C,A,b){throw new Error("This DOM method is not implemented.")},x.prototype.createDocument=function(C,A,b){throw new Error("This DOM method is not implemented.")},x.prototype.createHTMLDocument=function(C){throw new Error("This DOM method is not implemented.")},x.prototype.getFeature=function(C,A){throw new Error("This DOM method is not implemented.")},x}()}).call(void 0)},{}],261:[function(H,k,d){"use strict";(function(){var O;k.exports=O=function(){function x(C){this.arr=C||[]}return Object.defineProperty(x.prototype,"length",{get:function(){return this.arr.length}}),x.prototype.item=function(C){return this.arr[C]||null},x.prototype.contains=function(C){return this.arr.indexOf(C)!==-1},x}()}).call(void 0)},{}],262:[function(H,k,d){"use strict";(function(){var O,x,C,A=function(f,c){for(var o in c)b.call(c,o)&&(f[o]=c[o]);function r(){this.constructor=f}return r.prototype=c.prototype,f.prototype=new r,f.__super__=c.prototype,f},b={}.hasOwnProperty;C=H("./XMLNode"),O=H("./NodeType"),k.exports=x=function(g){A(f,g);function f(c,o,r,i,n,e){if(f.__super__.constructor.call(this,c),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(r==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(o));if(!i)throw new Error("Missing DTD attribute type. "+this.debugInfo(o));if(!n)throw new Error("Missing DTD attribute default. "+this.debugInfo(o));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(o));if(e&&!n.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(o));this.elementName=this.stringify.name(o),this.type=O.AttributeDeclaration,this.attributeName=this.stringify.name(r),this.attributeType=this.stringify.dtdAttType(i),e&&(this.defaultValue=this.stringify.dtdAttDefault(e)),this.defaultValueType=n}return f.prototype.toString=function(c){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(c))},f}(C)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],263:[function(H,k,d){"use strict";(function(){var O,x,C,A=function(f,c){for(var o in c)b.call(c,o)&&(f[o]=c[o]);function r(){this.constructor=f}return r.prototype=c.prototype,f.prototype=new r,f.__super__=c.prototype,f},b={}.hasOwnProperty;C=H("./XMLNode"),O=H("./NodeType"),k.exports=x=function(g){A(f,g);function f(c,o,r){if(f.__super__.constructor.call(this,c),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());r||(r="(#PCDATA)"),Array.isArray(r)&&(r="("+r.join(",")+")"),this.name=this.stringify.name(o),this.type=O.ElementDeclaration,this.value=this.stringify.dtdElementValue(r)}return f.prototype.toString=function(c){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(c))},f}(C)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],264:[function(H,k,d){"use strict";(function(){var O,x,C,A,b=function(c,o){for(var r in o)g.call(o,r)&&(c[r]=o[r]);function i(){this.constructor=c}return i.prototype=o.prototype,c.prototype=new i,c.__super__=o.prototype,c},g={}.hasOwnProperty;A=H("./Utility").isObject,C=H("./XMLNode"),O=H("./NodeType"),k.exports=x=function(f){b(c,f);function c(o,r,i,n){if(c.__super__.constructor.call(this,o),i==null)throw new Error("Missing DTD entity name. "+this.debugInfo(i));if(n==null)throw new Error("Missing DTD entity value. "+this.debugInfo(i));if(this.pe=!!r,this.name=this.stringify.name(i),this.type=O.EntityDeclaration,!A(n))this.value=this.stringify.dtdEntityValue(n),this.internal=!0;else{if(!n.pubID&&!n.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(i));if(n.pubID&&!n.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(i));if(this.internal=!1,n.pubID!=null&&(this.pubID=this.stringify.dtdPubID(n.pubID)),n.sysID!=null&&(this.sysID=this.stringify.dtdSysID(n.sysID)),n.nData!=null&&(this.nData=this.stringify.dtdNData(n.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(i))}}return Object.defineProperty(c.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(c.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(c.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(c.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(c.prototype,"xmlVersion",{get:function(){return null}}),c.prototype.toString=function(o){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(o))},c}(C)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(H,k,d){"use strict";(function(){var O,x,C,A=function(f,c){for(var o in c)b.call(c,o)&&(f[o]=c[o]);function r(){this.constructor=f}return r.prototype=c.prototype,f.prototype=new r,f.__super__=c.prototype,f},b={}.hasOwnProperty;C=H("./XMLNode"),O=H("./NodeType"),k.exports=x=function(g){A(f,g);function f(c,o,r){if(f.__super__.constructor.call(this,c),o==null)throw new Error("Missing DTD notation name. "+this.debugInfo(o));if(!r.pubID&&!r.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(o));this.name=this.stringify.name(o),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(f.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(f.prototype,"systemId",{get:function(){return this.sysID}}),f.prototype.toString=function(c){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(c))},f}(C)}).call(void 0)},{"./NodeType":251,"./XMLNode":273}],266:[function(H,k,d){"use strict";(function(){var O,x,C,A,b=function(c,o){for(var r in o)g.call(o,r)&&(c[r]=o[r]);function i(){this.constructor=c}return i.prototype=o.prototype,c.prototype=new i,c.__super__=o.prototype,c},g={}.hasOwnProperty;A=H("./Utility").isObject,C=H("./XMLNode"),O=H("./NodeType"),k.exports=x=function(f){b(c,f);function c(o,r,i,n){var e;c.__super__.constructor.call(this,o),A(r)&&(e=r,r=e.version,i=e.encoding,n=e.standalone),r||(r="1.0"),this.type=O.Declaration,this.version=this.stringify.xmlVersion(r),i!=null&&(this.encoding=this.stringify.xmlEncoding(i)),n!=null&&(this.standalone=this.stringify.xmlStandalone(n))}return c.prototype.toString=function(o){return this.options.writer.declaration(this,this.options.writer.filterOptions(o))},c}(C)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(H,k,d){"use strict";(function(){var O,x,C,A,b,g,f,c,o,r=function(e,l){for(var t in l)i.call(l,t)&&(e[t]=l[t]);function a(){this.constructor=e}return a.prototype=l.prototype,e.prototype=new a,e.__super__=l.prototype,e},i={}.hasOwnProperty;o=H("./Utility").isObject,c=H("./XMLNode"),O=H("./NodeType"),x=H("./XMLDTDAttList"),A=H("./XMLDTDEntity"),C=H("./XMLDTDElement"),b=H("./XMLDTDNotation"),f=H("./XMLNamedNodeMap"),k.exports=g=function(n){r(e,n);function e(l,t,a){var s,u,h,p,m,v;if(e.__super__.constructor.call(this,l),this.type=O.DocType,l.children){for(p=l.children,u=0,h=p.length;u<h;u++)if(s=p[u],s.type===O.Element){this.name=s.name;break}}this.documentObject=l,o(t)&&(m=t,t=m.pubID,a=m.sysID),a==null&&(v=[t,a],a=v[0],t=v[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,s,u,h;for(u={},h=this.children,a=0,s=h.length;a<s;a++)t=h[a],t.type===O.EntityDeclaration&&!t.pe&&(u[t.name]=t);return new f(u)}}),Object.defineProperty(e.prototype,"notations",{get:function(){var t,a,s,u,h;for(u={},h=this.children,a=0,s=h.length;a<s;a++)t=h[a],t.type===O.NotationDeclaration&&(u[t.name]=t);return new f(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(l,t){var a;return a=new C(this,l,t),this.children.push(a),this},e.prototype.attList=function(l,t,a,s,u){var h;return h=new x(this,l,t,a,s,u),this.children.push(h),this},e.prototype.entity=function(l,t){var a;return a=new A(this,!1,l,t),this.children.push(a),this},e.prototype.pEntity=function(l,t){var a;return a=new A(this,!0,l,t),this.children.push(a),this},e.prototype.notation=function(l,t){var a;return a=new b(this,l,t),this.children.push(a),this},e.prototype.toString=function(l){return this.options.writer.docType(this,this.options.writer.filterOptions(l))},e.prototype.ele=function(l,t){return this.element(l,t)},e.prototype.att=function(l,t,a,s,u){return this.attList(l,t,a,s,u)},e.prototype.ent=function(l,t){return this.entity(l,t)},e.prototype.pent=function(l,t){return this.pEntity(l,t)},e.prototype.not=function(l,t){return this.notation(l,t)},e.prototype.up=function(){return this.root()||this.documentObject},e.prototype.isEqualNode=function(l){return e.__super__.isEqualNode.apply(this,arguments).isEqualNode(l)?l.name!==this.name||l.publicId!==this.publicId?!1:!(l.systemId!==this.systemId):!1},e}(c)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLNamedNodeMap":272,"./XMLNode":273}],268:[function(H,k,d){"use strict";(function(){var O,x,C,A,b,g,f,c,o=function(n,e){for(var l in e)r.call(e,l)&&(n[l]=e[l]);function t(){this.constructor=n}return t.prototype=e.prototype,n.prototype=new t,n.__super__=e.prototype,n},r={}.hasOwnProperty;c=H("./Utility").isPlainObject,C=H("./XMLDOMImplementation"),x=H("./XMLDOMConfiguration"),b=H("./XMLNode"),O=H("./NodeType"),f=H("./XMLStringifier"),g=H("./XMLStringWriter"),k.exports=A=function(i){o(n,i);function n(e){n.__super__.constructor.call(this,null),this.name="#document",this.type=O.Document,this.documentURI=null,this.domConfig=new x,e||(e={}),e.writer||(e.writer=new g),this.options=e,this.stringify=new f(e)}return Object.defineProperty(n.prototype,"implementation",{value:new C}),Object.defineProperty(n.prototype,"doctype",{get:function(){var l,t,a,s;for(s=this.children,t=0,a=s.length;t<a;t++)if(l=s[t],l.type===O.DocType)return l;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 l;return l={},e?c(e)&&(l=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(l))},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,l){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,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createElementNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createAttributeNS=function(e,l){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.getElementsByTagNameNS=function(e,l){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,l,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,l,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.createTreeWalker=function(e,l,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n}(b)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(H,k,d){"use strict";(function(){var O,x,C,A,b,g,f,c,o,r,i,n,e,l,t,a,s,u,h,p,m,v,y,E,T={}.hasOwnProperty;E=H("./Utility"),v=E.isObject,m=E.isFunction,y=E.isPlainObject,p=E.getValue,O=H("./NodeType"),n=H("./XMLDocument"),l=H("./XMLElement"),A=H("./XMLCData"),b=H("./XMLComment"),a=H("./XMLRaw"),h=H("./XMLText"),t=H("./XMLProcessingInstruction"),r=H("./XMLDeclaration"),i=H("./XMLDocType"),g=H("./XMLDTDAttList"),c=H("./XMLDTDEntity"),f=H("./XMLDTDElement"),o=H("./XMLDTDNotation"),C=H("./XMLAttribute"),u=H("./XMLStringifier"),s=H("./XMLStringWriter"),x=H("./WriterState"),k.exports=e=function(){function w(S,_,I){var L;this.name="?xml",this.type=O.Document,S||(S={}),L={},S.writer?y(S.writer)&&(L=S.writer,S.writer=new s):S.writer=new s,this.options=S,this.writer=S.writer,this.writerOptions=this.writer.filterOptions(L),this.stringify=new u(S),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 w.prototype.createChildNode=function(S){var _,I,L,N,R,D,F,M;switch(S.type){case O.CData:this.cdata(S.value);break;case O.Comment:this.comment(S.value);break;case O.Element:L={},F=S.attribs;for(I in F){if(!T.call(F,I))continue;_=F[I],L[I]=_.value}this.node(S.name,L);break;case O.Dummy:this.dummy();break;case O.Raw:this.raw(S.value);break;case O.Text:this.text(S.value);break;case O.ProcessingInstruction:this.instruction(S.target,S.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+S.constructor.name)}for(M=S.children,R=0,D=M.length;R<D;R++)N=M[R],this.createChildNode(N),N.type===O.Element&&this.up();return this},w.prototype.dummy=function(){return this},w.prototype.node=function(S,_,I){var L;if(S==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(S));return this.openCurrent(),S=p(S),_==null&&(_={}),_=p(_),v(_)||(L=[_,I],I=L[0],_=L[1]),this.currentNode=new l(this,S,_),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,I!=null&&this.text(I),this},w.prototype.element=function(S,_,I){var L,N,R,D,F,M;if(this.currentNode&&this.currentNode.type===O.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(S)||v(S)||m(S))for(D=this.options.noValidation,this.options.noValidation=!0,M=new n(this.options).element("TEMP_ROOT"),M.element(S),this.options.noValidation=D,F=M.children,N=0,R=F.length;N<R;N++)L=F[N],this.createChildNode(L),L.type===O.Element&&this.up();else this.node(S,_,I);return this},w.prototype.attribute=function(S,_){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(S));if(S!=null&&(S=p(S)),v(S))for(I in S){if(!T.call(S,I))continue;L=S[I],this.attribute(I,L)}else m(_)&&(_=_.apply()),this.options.keepNullAttributes&&_==null?this.currentNode.attribs[S]=new C(this,S,""):_!=null&&(this.currentNode.attribs[S]=new C(this,S,_));return this},w.prototype.text=function(S){var _;return this.openCurrent(),_=new h(this,S),this.onData(this.writer.text(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.cdata=function(S){var _;return this.openCurrent(),_=new A(this,S),this.onData(this.writer.cdata(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.comment=function(S){var _;return this.openCurrent(),_=new b(this,S),this.onData(this.writer.comment(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.raw=function(S){var _;return this.openCurrent(),_=new a(this,S),this.onData(this.writer.raw(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.instruction=function(S,_){var I,L,N,R,D;if(this.openCurrent(),S!=null&&(S=p(S)),_!=null&&(_=p(_)),Array.isArray(S))for(I=0,R=S.length;I<R;I++)L=S[I],this.instruction(L);else if(v(S))for(L in S){if(!T.call(S,L))continue;N=S[L],this.instruction(L,N)}else m(_)&&(_=_.apply()),D=new t(this,S,_),this.onData(this.writer.processingInstruction(D,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},w.prototype.declaration=function(S,_,I){var L;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return L=new r(this,S,_,I),this.onData(this.writer.declaration(L,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.doctype=function(S,_,I){if(this.openCurrent(),S==null)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new i(this,_,I),this.currentNode.rootNodeName=S,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},w.prototype.dtdElement=function(S,_){var I;return this.openCurrent(),I=new f(this,S,_),this.onData(this.writer.dtdElement(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.attList=function(S,_,I,L,N){var R;return this.openCurrent(),R=new g(this,S,_,I,L,N),this.onData(this.writer.dtdAttList(R,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.entity=function(S,_){var I;return this.openCurrent(),I=new c(this,!1,S,_),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.pEntity=function(S,_){var I;return this.openCurrent(),I=new c(this,!0,S,_),this.onData(this.writer.dtdEntity(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.notation=function(S,_){var I;return this.openCurrent(),I=new o(this,S,_),this.onData(this.writer.dtdNotation(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},w.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},w.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},w.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},w.prototype.openNode=function(S){var _,I,L,N;if(!S.isOpen){if(!this.root&&this.currentLevel===0&&S.type===O.Element&&(this.root=S),I="",S.type===O.Element){this.writerOptions.state=x.OpenTag,I=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<"+S.name,N=S.attribs;for(L in N){if(!T.call(N,L))continue;_=N[L],I+=this.writer.attribute(_,this.writerOptions,this.currentLevel)}I+=(S.children?">":"/>")+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=x.InsideTag}else this.writerOptions.state=x.OpenTag,I=this.writer.indent(S,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+S.rootNodeName,S.pubID&&S.sysID?I+=' PUBLIC "'+S.pubID+'" "'+S.sysID+'"':S.sysID&&(I+=' SYSTEM "'+S.sysID+'"'),S.children?(I+=" [",this.writerOptions.state=x.InsideTag):(this.writerOptions.state=x.CloseTag,I+=">"),I+=this.writer.endline(S,this.writerOptions,this.currentLevel);return this.onData(I,this.currentLevel),S.isOpen=!0}},w.prototype.closeNode=function(S){var _;if(!S.isClosed)return _="",this.writerOptions.state=x.CloseTag,S.type===O.Element?_=this.writer.indent(S,this.writerOptions,this.currentLevel)+"</"+S.name+">"+this.writer.endline(S,this.writerOptions,this.currentLevel):_=this.writer.indent(S,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(S,this.writerOptions,this.currentLevel),this.writerOptions.state=x.None,this.onData(_,this.currentLevel),S.isClosed=!0},w.prototype.onData=function(S,_){return this.documentStarted=!0,this.onDataCallback(S,_+1)},w.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},w.prototype.debugInfo=function(S){return S==null?"":"node: <"+S+">"},w.prototype.ele=function(){return this.element.apply(this,arguments)},w.prototype.nod=function(S,_,I){return this.node(S,_,I)},w.prototype.txt=function(S){return this.text(S)},w.prototype.dat=function(S){return this.cdata(S)},w.prototype.com=function(S){return this.comment(S)},w.prototype.ins=function(S,_){return this.instruction(S,_)},w.prototype.dec=function(S,_,I){return this.declaration(S,_,I)},w.prototype.dtd=function(S,_,I){return this.doctype(S,_,I)},w.prototype.e=function(S,_,I){return this.element(S,_,I)},w.prototype.n=function(S,_,I){return this.node(S,_,I)},w.prototype.t=function(S){return this.text(S)},w.prototype.d=function(S){return this.cdata(S)},w.prototype.c=function(S){return this.comment(S)},w.prototype.r=function(S){return this.raw(S)},w.prototype.i=function(S,_){return this.instruction(S,_)},w.prototype.att=function(){return this.currentNode&&this.currentNode.type===O.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},w.prototype.a=function(){return this.currentNode&&this.currentNode.type===O.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},w.prototype.ent=function(S,_){return this.entity(S,_)},w.prototype.pent=function(S,_){return this.pEntity(S,_)},w.prototype.not=function(S,_){return this.notation(S,_)},w}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLAttribute":254,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDocument":268,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLStringWriter":278,"./XMLStringifier":279,"./XMLText":280}],270:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,b,g,f=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function e(){this.constructor=r}return e.prototype=i.prototype,r.prototype=new e,r.__super__=i.prototype,r},c={}.hasOwnProperty;g=H("./XMLNode"),A=H("./NodeType"),k.exports=b=function(o){f(r,o);function r(i){r.__super__.constructor.call(this,i),this.type=A.Dummy}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(i){return""},r}(g)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,b,g,f,c,o,r,i,n,e=function(a,s){for(var u in s)l.call(s,u)&&(a[u]=s[u]);function h(){this.constructor=a}return h.prototype=s.prototype,a.prototype=new h,a.__super__=s.prototype,a},l={}.hasOwnProperty;n=H("./Utility"),i=n.isObject,r=n.isFunction,o=n.getValue,c=H("./XMLNode"),A=H("./NodeType"),b=H("./XMLAttribute"),f=H("./XMLNamedNodeMap"),k.exports=g=function(t){e(a,t);function a(s,u,h){var p,m,v,y;if(a.__super__.constructor.call(this,s),u==null)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(u),this.type=A.Element,this.attribs={},this.schemaTypeInfo=null,h!=null&&this.attribute(h),s.type===A.Document&&(this.isRoot=!0,this.documentObject=s,s.rootObject=this,s.children)){for(y=s.children,m=0,v=y.length;m<v;m++)if(p=y[m],p.type===A.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 f(this.attribs)),this.attributeMap}}),a.prototype.clone=function(){var s,u,h,p;h=(0,x.default)(this),h.isRoot&&(h.documentObject=null),h.attribs={},p=this.attribs;for(u in p){if(!l.call(p,u))continue;s=p[u],h.attribs[u]=s.clone()}return h.children=[],this.children.forEach(function(m){var v;return v=m.clone(),v.parent=h,h.children.push(v)}),h},a.prototype.attribute=function(s,u){var h,p;if(s!=null&&(s=o(s)),i(s))for(h in s){if(!l.call(s,h))continue;p=s[h],this.attribute(h,p)}else r(u)&&(u=u.apply()),this.options.keepNullAttributes&&u==null?this.attribs[s]=new b(this,s,""):u!=null&&(this.attribs[s]=new b(this,s,u));return this},a.prototype.removeAttribute=function(s){var u,h,p;if(s==null)throw new Error("Missing attribute name. "+this.debugInfo());if(s=o(s),Array.isArray(s))for(h=0,p=s.length;h<p;h++)u=s[h],delete this.attribs[u];else delete this.attribs[s];return this},a.prototype.toString=function(s){return this.options.writer.element(this,this.options.writer.filterOptions(s))},a.prototype.att=function(s,u){return this.attribute(s,u)},a.prototype.a=function(s,u){return this.attribute(s,u)},a.prototype.getAttribute=function(s){return this.attribs.hasOwnProperty(s)?this.attribs[s].value:null},a.prototype.setAttribute=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNode=function(s){return this.attribs.hasOwnProperty(s)?this.attribs[s]:null},a.prototype.setAttributeNode=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNode=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNS=function(s,u,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.removeAttributeNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getAttributeNodeNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setAttributeNodeNS=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.hasAttribute=function(s){return this.attribs.hasOwnProperty(s)},a.prototype.hasAttributeNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttribute=function(s,u){return this.attribs.hasOwnProperty(s)?this.attribs[s].isId:u},a.prototype.setIdAttributeNS=function(s,u,h){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.setIdAttributeNode=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(s,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByClassName=function(s){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.isEqualNode=function(s){var u,h,p;if(!a.__super__.isEqualNode.apply(this,arguments).isEqualNode(s))return!1;if(s.namespaceURI!==this.namespaceURI)return!1;if(s.prefix!==this.prefix)return!1;if(s.localName!==this.localName)return!1;if(s.attribs.length!==this.attribs.length)return!1;for(u=h=0,p=this.attribs.length-1;0<=p?h<=p:h>=p;u=0<=p?++h:--h)if(!this.attribs[u].isEqualNode(s.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(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/keys"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A;k.exports=A=function(){function b(g){this.nodes=g}return Object.defineProperty(b.prototype,"length",{get:function(){return(0,x.default)(this.nodes).length||0}}),b.prototype.clone=function(){return this.nodes=null},b.prototype.getNamedItem=function(g){return this.nodes[g]},b.prototype.setNamedItem=function(g){var f;return f=this.nodes[g.nodeName],this.nodes[g.nodeName]=g,f||null},b.prototype.removeNamedItem=function(g){var f;return f=this.nodes[g],delete this.nodes[g],f||null},b.prototype.item=function(g){return this.nodes[(0,x.default)(this.nodes)[g]]||null},b.prototype.getNamedItemNS=function(g,f){throw new Error("This DOM method is not implemented.")},b.prototype.setNamedItemNS=function(g){throw new Error("This DOM method is not implemented.")},b.prototype.removeNamedItemNS=function(g,f){throw new Error("This DOM method is not implemented.")},b}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(H,k,d){"use strict";(function(){var O,x,C,A,b,g,f,c,o,r,i,n,e,l,t,a,s,u,h,p={}.hasOwnProperty;h=H("./Utility"),u=h.isObject,s=h.isFunction,a=h.isEmpty,t=h.getValue,c=null,C=null,A=null,b=null,g=null,e=null,l=null,n=null,f=null,x=null,i=null,o=null,O=null,k.exports=r=function(){function m(v){this.parent=v,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,c||(c=H("./XMLElement"),C=H("./XMLCData"),A=H("./XMLComment"),b=H("./XMLDeclaration"),g=H("./XMLDocType"),e=H("./XMLRaw"),l=H("./XMLText"),n=H("./XMLProcessingInstruction"),f=H("./XMLDummy"),x=H("./NodeType"),i=H("./XMLNodeList"),o=H("./XMLNamedNodeMap"),O=H("./DocumentPosition"))}return Object.defineProperty(m.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(m.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(m.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(m.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(m.prototype,"childNodes",{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new i(this.children)),this.childNodeList}}),Object.defineProperty(m.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(m.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(m.prototype,"previousSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y-1]||null}}),Object.defineProperty(m.prototype,"nextSibling",{get:function(){var y;return y=this.parent.children.indexOf(this),this.parent.children[y+1]||null}}),Object.defineProperty(m.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(m.prototype,"textContent",{get:function(){var y,E,T,w,S;if(this.nodeType===x.Element||this.nodeType===x.DocumentFragment){for(S="",w=this.children,E=0,T=w.length;E<T;E++)y=w[E],y.textContent&&(S+=y.textContent);return S}else return null},set:function(y){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),m.prototype.setParent=function(v){var y,E,T,w,S;for(this.parent=v,v&&(this.options=v.options,this.stringify=v.stringify),w=this.children,S=[],E=0,T=w.length;E<T;E++)y=w[E],S.push(y.setParent(this));return S},m.prototype.element=function(v,y,E){var T,w,S,_,I,L,N,R,D,F,M;if(L=null,y===null&&E==null&&(D=[{},null],y=D[0],E=D[1]),y==null&&(y={}),y=t(y),u(y)||(F=[y,E],E=F[0],y=F[1]),v!=null&&(v=t(v)),Array.isArray(v))for(S=0,N=v.length;S<N;S++)w=v[S],L=this.element(w);else if(s(v))L=this.element(v.apply());else if(u(v))for(I in v){if(!p.call(v,I))continue;if(M=v[I],s(M)&&(M=M.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&I.indexOf(this.stringify.convertAttKey)===0)L=this.attribute(I.substr(this.stringify.convertAttKey.length),M);else if(!this.options.separateArrayItems&&Array.isArray(M)&&a(M))L=this.dummy();else if(u(M)&&a(M))L=this.element(I);else if(!this.options.keepNullNodes&&M==null)L=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(M))for(_=0,R=M.length;_<R;_++)w=M[_],T={},T[I]=w,L=this.element(T);else u(M)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&I.indexOf(this.stringify.convertTextKey)===0?L=this.element(M):(L=this.element(I),L.element(M)):L=this.element(I,M)}else!this.options.keepNullNodes&&E===null?L=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&v.indexOf(this.stringify.convertTextKey)===0?L=this.text(E):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&v.indexOf(this.stringify.convertCDataKey)===0?L=this.cdata(E):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&v.indexOf(this.stringify.convertCommentKey)===0?L=this.comment(E):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&v.indexOf(this.stringify.convertRawKey)===0?L=this.raw(E):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&v.indexOf(this.stringify.convertPIKey)===0?L=this.instruction(v.substr(this.stringify.convertPIKey.length),E):L=this.node(v,y,E);if(L==null)throw new Error("Could not create any elements with: "+v+". "+this.debugInfo());return L},m.prototype.insertBefore=function(v,y,E){var T,w,S,_,I;if(v!=null?v.type:void 0)return S=v,_=y,S.setParent(this),_?(w=children.indexOf(_),I=children.splice(w),children.push(S),Array.prototype.push.apply(children,I)):children.push(S),S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(v));return w=this.parent.children.indexOf(this),I=this.parent.children.splice(w),T=this.parent.element(v,y,E),Array.prototype.push.apply(this.parent.children,I),T},m.prototype.insertAfter=function(v,y,E){var T,w,S;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(v));return w=this.parent.children.indexOf(this),S=this.parent.children.splice(w+1),T=this.parent.element(v,y,E),Array.prototype.push.apply(this.parent.children,S),T},m.prototype.remove=function(){var v,y;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return v=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[v,v-v+1].concat(y=[])),this.parent},m.prototype.node=function(v,y,E){var T,w;return v!=null&&(v=t(v)),y||(y={}),y=t(y),u(y)||(w=[y,E],E=w[0],y=w[1]),T=new c(this,v,y),E!=null&&T.text(E),this.children.push(T),T},m.prototype.text=function(v){var y;return u(v)&&this.element(v),y=new l(this,v),this.children.push(y),this},m.prototype.cdata=function(v){var y;return y=new C(this,v),this.children.push(y),this},m.prototype.comment=function(v){var y;return y=new A(this,v),this.children.push(y),this},m.prototype.commentBefore=function(v){var y,E,T;return E=this.parent.children.indexOf(this),T=this.parent.children.splice(E),y=this.parent.comment(v),Array.prototype.push.apply(this.parent.children,T),this},m.prototype.commentAfter=function(v){var y,E,T;return E=this.parent.children.indexOf(this),T=this.parent.children.splice(E+1),y=this.parent.comment(v),Array.prototype.push.apply(this.parent.children,T),this},m.prototype.raw=function(v){var y;return y=new e(this,v),this.children.push(y),this},m.prototype.dummy=function(){var v;return v=new f(this),v},m.prototype.instruction=function(v,y){var E,T,w,S,_;if(v!=null&&(v=t(v)),y!=null&&(y=t(y)),Array.isArray(v))for(S=0,_=v.length;S<_;S++)E=v[S],this.instruction(E);else if(u(v))for(E in v){if(!p.call(v,E))continue;T=v[E],this.instruction(E,T)}else s(y)&&(y=y.apply()),w=new n(this,v,y),this.children.push(w);return this},m.prototype.instructionBefore=function(v,y){var E,T,w;return T=this.parent.children.indexOf(this),w=this.parent.children.splice(T),E=this.parent.instruction(v,y),Array.prototype.push.apply(this.parent.children,w),this},m.prototype.instructionAfter=function(v,y){var E,T,w;return T=this.parent.children.indexOf(this),w=this.parent.children.splice(T+1),E=this.parent.instruction(v,y),Array.prototype.push.apply(this.parent.children,w),this},m.prototype.declaration=function(v,y,E){var T,w;return T=this.document(),w=new b(T,v,y,E),T.children.length===0?T.children.unshift(w):T.children[0].type===x.Declaration?T.children[0]=w:T.children.unshift(w),T.root()||T},m.prototype.dtd=function(v,y){var E,T,w,S,_,I,L,N,R,D;for(T=this.document(),w=new g(T,v,y),R=T.children,S=_=0,L=R.length;_<L;S=++_)if(E=R[S],E.type===x.DocType)return T.children[S]=w,w;for(D=T.children,S=I=0,N=D.length;I<N;S=++I)if(E=D[S],E.isRoot)return T.children.splice(S,0,w),w;return T.children.push(w),w},m.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},m.prototype.root=function(){var v;for(v=this;v;){if(v.type===x.Document)return v.rootObject;if(v.isRoot)return v;v=v.parent}},m.prototype.document=function(){var v;for(v=this;v;){if(v.type===x.Document)return v;v=v.parent}},m.prototype.end=function(v){return this.document().end(v)},m.prototype.prev=function(){var v;if(v=this.parent.children.indexOf(this),v<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[v-1]},m.prototype.next=function(){var v;if(v=this.parent.children.indexOf(this),v===-1||v===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[v+1]},m.prototype.importDocument=function(v){var y;return y=v.root().clone(),y.parent=this,y.isRoot=!1,this.children.push(y),this},m.prototype.debugInfo=function(v){var y,E;return v=v||this.name,v==null&&!((y=this.parent)!=null?y.name:void 0)?"":v==null?"parent: <"+this.parent.name+">":((E=this.parent)!=null?E.name:void 0)?"node: <"+v+">, parent: <"+this.parent.name+">":"node: <"+v+">"},m.prototype.ele=function(v,y,E){return this.element(v,y,E)},m.prototype.nod=function(v,y,E){return this.node(v,y,E)},m.prototype.txt=function(v){return this.text(v)},m.prototype.dat=function(v){return this.cdata(v)},m.prototype.com=function(v){return this.comment(v)},m.prototype.ins=function(v,y){return this.instruction(v,y)},m.prototype.doc=function(){return this.document()},m.prototype.dec=function(v,y,E){return this.declaration(v,y,E)},m.prototype.e=function(v,y,E){return this.element(v,y,E)},m.prototype.n=function(v,y,E){return this.node(v,y,E)},m.prototype.t=function(v){return this.text(v)},m.prototype.d=function(v){return this.cdata(v)},m.prototype.c=function(v){return this.comment(v)},m.prototype.r=function(v){return this.raw(v)},m.prototype.i=function(v,y){return this.instruction(v,y)},m.prototype.u=function(){return this.up()},m.prototype.importXMLBuilder=function(v){return this.importDocument(v)},m.prototype.replaceChild=function(v,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.removeChild=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.appendChild=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.hasChildNodes=function(){return this.children.length!==0},m.prototype.cloneNode=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.isSupported=function(v,y){return!0},m.prototype.hasAttributes=function(){return this.attribs.length!==0},m.prototype.compareDocumentPosition=function(v){var y,E;return y=this,y===v?0:this.document()!==v.document()?(E=O.Disconnected|O.ImplementationSpecific,Math.random()<.5?E|=O.Preceding:E|=O.Following,E):y.isAncestor(v)?O.Contains|O.Preceding:y.isDescendant(v)?O.Contains|O.Following:y.isPreceding(v)?O.Preceding:O.Following},m.prototype.isSameNode=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.lookupPrefix=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.isDefaultNamespace=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.lookupNamespaceURI=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.isEqualNode=function(v){var y,E,T;if(v.nodeType!==this.nodeType)return!1;if(v.children.length!==this.children.length)return!1;for(y=E=0,T=this.children.length-1;0<=T?E<=T:E>=T;y=0<=T?++E:--E)if(!this.children[y].isEqualNode(v.children[y]))return!1;return!0},m.prototype.getFeature=function(v,y){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.setUserData=function(v,y,E){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.getUserData=function(v){throw new Error("This DOM method is not implemented."+this.debugInfo())},m.prototype.contains=function(v){return v?v===this||this.isDescendant(v):!1},m.prototype.isDescendant=function(v){var y,E,T,w,S;for(S=this.children,T=0,w=S.length;T<w;T++){if(y=S[T],v===y)return!0;if(E=y.isDescendant(v),E)return!0}return!1},m.prototype.isAncestor=function(v){return v.isDescendant(this)},m.prototype.isPreceding=function(v){var y,E;return y=this.treePosition(v),E=this.treePosition(this),y===-1||E===-1?!1:y<E},m.prototype.isFollowing=function(v){var y,E;return y=this.treePosition(v),E=this.treePosition(this),y===-1||E===-1?!1:y>E},m.prototype.treePosition=function(v){var y,E;return E=0,y=!1,this.foreachTreeNode(this.document(),function(T){if(E++,!y&&T===v)return y=!0}),y?E:-1},m.prototype.foreachTreeNode=function(v,y){var E,T,w,S,_;for(v||(v=this.document()),S=v.children,T=0,w=S.length;T<w;T++){if(E=S[T],_=y(E))return _;if(_=this.foreachTreeNode(E,y),_)return _}},m}()}).call(void 0)},{"./DocumentPosition":250,"./NodeType":251,"./Utility":252,"./XMLCData":255,"./XMLComment":257,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLNamedNodeMap":272,"./XMLNodeList":274,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],274:[function(H,k,d){"use strict";(function(){var O;k.exports=O=function(){function x(C){this.nodes=C}return Object.defineProperty(x.prototype,"length",{get:function(){return this.nodes.length||0}}),x.prototype.clone=function(){return this.nodes=null},x.prototype.item=function(C){return this.nodes[C]||null},x}()}).call(void 0)},{}],275:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,b,g,f=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function e(){this.constructor=r}return e.prototype=i.prototype,r.prototype=new e,r.__super__=i.prototype,r},c={}.hasOwnProperty;A=H("./NodeType"),b=H("./XMLCharacterData"),k.exports=g=function(o){f(r,o);function r(i,n,e){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=A.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,x.default)(this)},r.prototype.toString=function(i){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(i))},r.prototype.isEqualNode=function(i){return r.__super__.isEqualNode.apply(this,arguments).isEqualNode(i)?!(i.target!==this.target):!1},r}(b)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,b,g,f=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function e(){this.constructor=r}return e.prototype=i.prototype,r.prototype=new e,r.__super__=i.prototype,r},c={}.hasOwnProperty;A=H("./NodeType"),b=H("./XMLNode"),k.exports=g=function(o){f(r,o);function r(i,n){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=A.Raw,this.value=this.stringify.raw(n)}return r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(i){return this.options.writer.raw(this,this.options.writer.filterOptions(i))},r}(b)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(H,k,d){"use strict";(function(){var O,x,C,A,b=function(c,o){for(var r in o)g.call(o,r)&&(c[r]=o[r]);function i(){this.constructor=c}return i.prototype=o.prototype,c.prototype=new i,c.__super__=o.prototype,c},g={}.hasOwnProperty;O=H("./NodeType"),A=H("./XMLWriterBase"),x=H("./WriterState"),k.exports=C=function(f){b(c,f);function c(o,r){this.stream=o,c.__super__.constructor.call(this,r)}return c.prototype.endline=function(o,r,i){return o.isLastRootNode&&r.state===x.CloseTag?"":c.__super__.endline.call(this,o,r,i)},c.prototype.document=function(o,r){var i,n,e,l,t,a,s,u,h;for(s=o.children,n=e=0,t=s.length;e<t;n=++e)i=s[n],i.isLastRootNode=n===o.children.length-1;for(r=this.filterOptions(r),u=o.children,h=[],l=0,a=u.length;l<a;l++)i=u[l],h.push(this.writeChildNode(i,r,0));return h},c.prototype.attribute=function(o,r,i){return this.stream.write(c.__super__.attribute.call(this,o,r,i))},c.prototype.cdata=function(o,r,i){return this.stream.write(c.__super__.cdata.call(this,o,r,i))},c.prototype.comment=function(o,r,i){return this.stream.write(c.__super__.comment.call(this,o,r,i))},c.prototype.declaration=function(o,r,i){return this.stream.write(c.__super__.declaration.call(this,o,r,i))},c.prototype.docType=function(o,r,i){var n,e,l,t;if(i||(i=0),this.openNode(o,r,i),r.state=x.OpenTag,this.stream.write(this.indent(o,r,i)),this.stream.write("<!DOCTYPE "+o.root().name),o.pubID&&o.sysID?this.stream.write(' PUBLIC "'+o.pubID+'" "'+o.sysID+'"'):o.sysID&&this.stream.write(' SYSTEM "'+o.sysID+'"'),o.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(o,r,i)),r.state=x.InsideTag,t=o.children,e=0,l=t.length;e<l;e++)n=t[e],this.writeChildNode(n,r,i+1);r.state=x.CloseTag,this.stream.write("]")}return r.state=x.CloseTag,this.stream.write(r.spaceBeforeSlash+">"),this.stream.write(this.endline(o,r,i)),r.state=x.None,this.closeNode(o,r,i)},c.prototype.element=function(o,r,i){var n,e,l,t,a,s,u,h,p,m;i||(i=0),this.openNode(o,r,i),r.state=x.OpenTag,this.stream.write(this.indent(o,r,i)+"<"+o.name),p=o.attribs;for(u in p){if(!g.call(p,u))continue;n=p[u],this.attribute(n,r,i)}if(l=o.children.length,t=l===0?null:o.children[0],l===0||o.children.every(function(v){return(v.type===O.Text||v.type===O.Raw)&&v.value===""}))r.allowEmpty?(this.stream.write(">"),r.state=x.CloseTag,this.stream.write("</"+o.name+">")):(r.state=x.CloseTag,this.stream.write(r.spaceBeforeSlash+"/>"));else if(r.pretty&&l===1&&(t.type===O.Text||t.type===O.Raw)&&t.value!=null)this.stream.write(">"),r.state=x.InsideTag,r.suppressPrettyCount++,h=!0,this.writeChildNode(t,r,i+1),r.suppressPrettyCount--,h=!1,r.state=x.CloseTag,this.stream.write("</"+o.name+">");else{for(this.stream.write(">"+this.endline(o,r,i)),r.state=x.InsideTag,m=o.children,a=0,s=m.length;a<s;a++)e=m[a],this.writeChildNode(e,r,i+1);r.state=x.CloseTag,this.stream.write(this.indent(o,r,i)+"</"+o.name+">")}return this.stream.write(this.endline(o,r,i)),r.state=x.None,this.closeNode(o,r,i)},c.prototype.processingInstruction=function(o,r,i){return this.stream.write(c.__super__.processingInstruction.call(this,o,r,i))},c.prototype.raw=function(o,r,i){return this.stream.write(c.__super__.raw.call(this,o,r,i))},c.prototype.text=function(o,r,i){return this.stream.write(c.__super__.text.call(this,o,r,i))},c.prototype.dtdAttList=function(o,r,i){return this.stream.write(c.__super__.dtdAttList.call(this,o,r,i))},c.prototype.dtdElement=function(o,r,i){return this.stream.write(c.__super__.dtdElement.call(this,o,r,i))},c.prototype.dtdEntity=function(o,r,i){return this.stream.write(c.__super__.dtdEntity.call(this,o,r,i))},c.prototype.dtdNotation=function(o,r,i){return this.stream.write(c.__super__.dtdNotation.call(this,o,r,i))},c}(A)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(H,k,d){"use strict";(function(){var O,x,C=function(g,f){for(var c in f)A.call(f,c)&&(g[c]=f[c]);function o(){this.constructor=g}return o.prototype=f.prototype,g.prototype=new o,g.__super__=f.prototype,g},A={}.hasOwnProperty;x=H("./XMLWriterBase"),k.exports=O=function(b){C(g,b);function g(f){g.__super__.constructor.call(this,f)}return g.prototype.document=function(f,c){var o,r,i,n,e;for(c=this.filterOptions(c),n="",e=f.children,r=0,i=e.length;r<i;r++)o=e[r],n+=this.writeChildNode(o,c,0);return c.pretty&&n.slice(-c.newline.length)===c.newline&&(n=n.slice(0,-c.newline.length)),n},g}(x)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(H,k,d){"use strict";(function(){var O,x=function(b,g){return function(){return b.apply(g,arguments)}},C={}.hasOwnProperty;k.exports=O=function(){function A(b){this.assertLegalName=x(this.assertLegalName,this),this.assertLegalChar=x(this.assertLegalChar,this);var g,f,c;b||(b={}),this.options=b,this.options.version||(this.options.version="1.0"),f=b.stringify||{};for(g in f){if(!C.call(f,g))continue;c=f[g],this[g]=c}}return A.prototype.name=function(b){return this.options.noValidation?b:this.assertLegalName(""+b||"")},A.prototype.text=function(b){return this.options.noValidation?b:this.assertLegalChar(this.textEscape(""+b||""))},A.prototype.cdata=function(b){return this.options.noValidation?b:(b=""+b||"",b=b.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(b))},A.prototype.comment=function(b){if(this.options.noValidation)return b;if(b=""+b||"",b.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+b);return this.assertLegalChar(b)},A.prototype.raw=function(b){return this.options.noValidation?b:""+b||""},A.prototype.attValue=function(b){return this.options.noValidation?b:this.assertLegalChar(this.attEscape(b=""+b||""))},A.prototype.insTarget=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},A.prototype.insValue=function(b){if(this.options.noValidation)return b;if(b=""+b||"",b.match(/\?>/))throw new Error("Invalid processing instruction value: "+b);return this.assertLegalChar(b)},A.prototype.xmlVersion=function(b){if(this.options.noValidation)return b;if(b=""+b||"",!b.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+b);return b},A.prototype.xmlEncoding=function(b){if(this.options.noValidation)return b;if(b=""+b||"",!b.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+b);return this.assertLegalChar(b)},A.prototype.xmlStandalone=function(b){return this.options.noValidation?b:b?"yes":"no"},A.prototype.dtdPubID=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},A.prototype.dtdSysID=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},A.prototype.dtdElementValue=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},A.prototype.dtdAttType=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},A.prototype.dtdAttDefault=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},A.prototype.dtdEntityValue=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},A.prototype.dtdNData=function(b){return this.options.noValidation?b:this.assertLegalChar(""+b||"")},A.prototype.convertAttKey="@",A.prototype.convertPIKey="?",A.prototype.convertTextKey="#text",A.prototype.convertCDataKey="#cdata",A.prototype.convertCommentKey="#comment",A.prototype.convertRawKey="#raw",A.prototype.assertLegalChar=function(b){var g,f;if(this.options.noValidation)return b;if(g="",this.options.version==="1.0"){if(g=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=b.match(g))throw new Error("Invalid character in string: "+b+" at index "+f.index)}else if(this.options.version==="1.1"&&(g=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,f=b.match(g)))throw new Error("Invalid character in string: "+b+" at index "+f.index);return b},A.prototype.assertLegalName=function(b){var g;if(this.options.noValidation)return b;if(this.assertLegalChar(b),g=/^([: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])*$/,!b.match(g))throw new Error("Invalid character in name");return b},A.prototype.textEscape=function(b){var g;return this.options.noValidation?b:(g=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,b.replace(g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},A.prototype.attEscape=function(b){var g;return this.options.noValidation?b:(g=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,b.replace(g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},A}()}).call(void 0)},{}],280:[function(H,k,d){"use strict";var O=H("babel-runtime/core-js/object/create"),x=C(O);function C(A){return A&&A.__esModule?A:{default:A}}(function(){var A,b,g,f=function(r,i){for(var n in i)c.call(i,n)&&(r[n]=i[n]);function e(){this.constructor=r}return e.prototype=i.prototype,r.prototype=new e,r.__super__=i.prototype,r},c={}.hasOwnProperty;A=H("./NodeType"),b=H("./XMLCharacterData"),k.exports=g=function(o){f(r,o);function r(i,n){if(r.__super__.constructor.call(this,i),n==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=A.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,l;for(l="",e=this.previousSibling;e;)l=e.data+l,e=e.previousSibling;for(l+=this.data,n=this.nextSibling;n;)l=l+n.data,n=n.nextSibling;return l}}),r.prototype.clone=function(){return(0,x.default)(this)},r.prototype.toString=function(i){return this.options.writer.text(this,this.options.writer.filterOptions(i))},r.prototype.splitText=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},r.prototype.replaceWholeText=function(i){throw new Error("This DOM method is not implemented."+this.debugInfo())},r}(b)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(H,k,d){"use strict";(function(){var O,x,C,A,b,g,f,c,o,r,i,n,e,l,t,a,s,u={}.hasOwnProperty;s=H("./Utility").assign,O=H("./NodeType"),o=H("./XMLDeclaration"),r=H("./XMLDocType"),C=H("./XMLCData"),A=H("./XMLComment"),n=H("./XMLElement"),l=H("./XMLRaw"),t=H("./XMLText"),e=H("./XMLProcessingInstruction"),i=H("./XMLDummy"),b=H("./XMLDTDAttList"),g=H("./XMLDTDElement"),f=H("./XMLDTDEntity"),c=H("./XMLDTDNotation"),x=H("./WriterState"),k.exports=a=function(){function h(p){var m,v,y;p||(p={}),this.options=p,v=p.writer||{};for(m in v){if(!u.call(v,m))continue;y=v[m],this["_"+m]=this[m],this[m]=y}}return h.prototype.filterOptions=function(p){var m,v,y,E,T,w,S,_;return p||(p={}),p=s({},this.options,p),m={writer:this},m.pretty=p.pretty||!1,m.allowEmpty=p.allowEmpty||!1,m.indent=(v=p.indent)!=null?v:" ",m.newline=(y=p.newline)!=null?y:`
`,m.offset=(E=p.offset)!=null?E:0,m.dontPrettyTextNodes=(T=(w=p.dontPrettyTextNodes)!=null?w:p.dontprettytextnodes)!=null?T:0,m.spaceBeforeSlash=(S=(_=p.spaceBeforeSlash)!=null?_:p.spacebeforeslash)!=null?S:"",m.spaceBeforeSlash===!0&&(m.spaceBeforeSlash=" "),m.suppressPrettyCount=0,m.user={},m.state=x.None,m},h.prototype.indent=function(p,m,v){var y;return!m.pretty||m.suppressPrettyCount?"":m.pretty&&(y=(v||0)+m.offset+1,y>0)?new Array(y).join(m.indent):""},h.prototype.endline=function(p,m,v){return!m.pretty||m.suppressPrettyCount?"":m.newline},h.prototype.attribute=function(p,m,v){var y;return this.openAttribute(p,m,v),y=" "+p.name+'="'+p.value+'"',this.closeAttribute(p,m,v),y},h.prototype.cdata=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<![CDATA[",m.state=x.InsideTag,y+=p.value,m.state=x.CloseTag,y+="]]>"+this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.comment=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<!-- ",m.state=x.InsideTag,y+=p.value,m.state=x.CloseTag,y+=" -->"+this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.declaration=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<?xml",m.state=x.InsideTag,y+=' version="'+p.version+'"',p.encoding!=null&&(y+=' encoding="'+p.encoding+'"'),p.standalone!=null&&(y+=' standalone="'+p.standalone+'"'),m.state=x.CloseTag,y+=m.spaceBeforeSlash+"?>",y+=this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.docType=function(p,m,v){var y,E,T,w,S;if(v||(v=0),this.openNode(p,m,v),m.state=x.OpenTag,w=this.indent(p,m,v),w+="<!DOCTYPE "+p.root().name,p.pubID&&p.sysID?w+=' PUBLIC "'+p.pubID+'" "'+p.sysID+'"':p.sysID&&(w+=' SYSTEM "'+p.sysID+'"'),p.children.length>0){for(w+=" [",w+=this.endline(p,m,v),m.state=x.InsideTag,S=p.children,E=0,T=S.length;E<T;E++)y=S[E],w+=this.writeChildNode(y,m,v+1);m.state=x.CloseTag,w+="]"}return m.state=x.CloseTag,w+=m.spaceBeforeSlash+">",w+=this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),w},h.prototype.element=function(p,m,v){var y,E,T,w,S,_,I,L,N,R,D,F,M,U;v||(v=0),R=!1,D="",this.openNode(p,m,v),m.state=x.OpenTag,D+=this.indent(p,m,v)+"<"+p.name,F=p.attribs;for(N in F){if(!u.call(F,N))continue;y=F[N],D+=this.attribute(y,m,v)}if(T=p.children.length,w=T===0?null:p.children[0],T===0||p.children.every(function(B){return(B.type===O.Text||B.type===O.Raw)&&B.value===""}))m.allowEmpty?(D+=">",m.state=x.CloseTag,D+="</"+p.name+">"+this.endline(p,m,v)):(m.state=x.CloseTag,D+=m.spaceBeforeSlash+"/>"+this.endline(p,m,v));else if(m.pretty&&T===1&&(w.type===O.Text||w.type===O.Raw)&&w.value!=null)D+=">",m.state=x.InsideTag,m.suppressPrettyCount++,R=!0,D+=this.writeChildNode(w,m,v+1),m.suppressPrettyCount--,R=!1,m.state=x.CloseTag,D+="</"+p.name+">"+this.endline(p,m,v);else{if(m.dontPrettyTextNodes){for(M=p.children,S=0,I=M.length;S<I;S++)if(E=M[S],(E.type===O.Text||E.type===O.Raw)&&E.value!=null){m.suppressPrettyCount++,R=!0;break}}for(D+=">"+this.endline(p,m,v),m.state=x.InsideTag,U=p.children,_=0,L=U.length;_<L;_++)E=U[_],D+=this.writeChildNode(E,m,v+1);m.state=x.CloseTag,D+=this.indent(p,m,v)+"</"+p.name+">",R&&m.suppressPrettyCount--,D+=this.endline(p,m,v),m.state=x.None}return this.closeNode(p,m,v),D},h.prototype.writeChildNode=function(p,m,v){switch(p.type){case O.CData:return this.cdata(p,m,v);case O.Comment:return this.comment(p,m,v);case O.Element:return this.element(p,m,v);case O.Raw:return this.raw(p,m,v);case O.Text:return this.text(p,m,v);case O.ProcessingInstruction:return this.processingInstruction(p,m,v);case O.Dummy:return"";case O.Declaration:return this.declaration(p,m,v);case O.DocType:return this.docType(p,m,v);case O.AttributeDeclaration:return this.dtdAttList(p,m,v);case O.ElementDeclaration:return this.dtdElement(p,m,v);case O.EntityDeclaration:return this.dtdEntity(p,m,v);case O.NotationDeclaration:return this.dtdNotation(p,m,v);default:throw new Error("Unknown XML node type: "+p.constructor.name)}},h.prototype.processingInstruction=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<?",m.state=x.InsideTag,y+=p.target,p.value&&(y+=" "+p.value),m.state=x.CloseTag,y+=m.spaceBeforeSlash+"?>",y+=this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.raw=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v),m.state=x.InsideTag,y+=p.value,m.state=x.CloseTag,y+=this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.text=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v),m.state=x.InsideTag,y+=p.value,m.state=x.CloseTag,y+=this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.dtdAttList=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<!ATTLIST",m.state=x.InsideTag,y+=" "+p.elementName+" "+p.attributeName+" "+p.attributeType,p.defaultValueType!=="#DEFAULT"&&(y+=" "+p.defaultValueType),p.defaultValue&&(y+=' "'+p.defaultValue+'"'),m.state=x.CloseTag,y+=m.spaceBeforeSlash+">"+this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.dtdElement=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<!ELEMENT",m.state=x.InsideTag,y+=" "+p.name+" "+p.value,m.state=x.CloseTag,y+=m.spaceBeforeSlash+">"+this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.dtdEntity=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<!ENTITY",m.state=x.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)),m.state=x.CloseTag,y+=m.spaceBeforeSlash+">"+this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.dtdNotation=function(p,m,v){var y;return this.openNode(p,m,v),m.state=x.OpenTag,y=this.indent(p,m,v)+"<!NOTATION",m.state=x.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+'"'),m.state=x.CloseTag,y+=m.spaceBeforeSlash+">"+this.endline(p,m,v),m.state=x.None,this.closeNode(p,m,v),y},h.prototype.openNode=function(p,m,v){},h.prototype.closeNode=function(p,m,v){},h.prototype.openAttribute=function(p,m,v){},h.prototype.closeAttribute=function(p,m,v){},h}()}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLCData":255,"./XMLComment":257,"./XMLDTDAttList":262,"./XMLDTDElement":263,"./XMLDTDEntity":264,"./XMLDTDNotation":265,"./XMLDeclaration":266,"./XMLDocType":267,"./XMLDummy":270,"./XMLElement":271,"./XMLProcessingInstruction":275,"./XMLRaw":276,"./XMLText":280}],282:[function(H,k,d){"use strict";(function(){var O,x,C,A,b,g,f,c,o,r;r=H("./Utility"),c=r.assign,o=r.isFunction,C=H("./XMLDOMImplementation"),A=H("./XMLDocument"),b=H("./XMLDocumentCB"),f=H("./XMLStringWriter"),g=H("./XMLStreamWriter"),O=H("./NodeType"),x=H("./WriterState"),k.exports.create=function(i,n,e,l){var t,a;if(i==null)throw new Error("Root element needs a name.");return l=c({},n,e,l),t=new A(l),a=t.element(i),l.headless||(t.declaration(l),(l.pubID!=null||l.sysID!=null)&&t.dtd(l)),a},k.exports.begin=function(i,n,e){var l;return o(i)&&(l=[i,n],n=l[0],e=l[1],i={}),n?new b(i,n,e):new A(i)},k.exports.stringWriter=function(i){return new f(i)},k.exports.streamWriter=function(i,n){return new g(i,n)},k.exports.implementation=new C,k.exports.nodeType=O,k.exports.writerState=x}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(H,k,d){k.exports=x;var O=Object.prototype.hasOwnProperty;function x(){for(var C={},A=0;A<arguments.length;A++){var b=arguments[A];for(var g in b)O.call(b,g)&&(C[g]=b[g])}return C}},{}],284:[function(H,k,d){"use strict";var O=H("buffer").Buffer,x=H("./sha"),C=H("./md5"),A={sha1:x,md5:C},b=64,g=O.alloc(b);g.fill(0);function f(r,i,n){O.isBuffer(i)||(i=O.from(i)),O.isBuffer(n)||(n=O.from(n)),i.length>b?i=r(i):i.length<b&&(i=O.concat([i,g],b));for(var e=O.alloc(b),l=O.alloc(b),t=0;t<b;t++)e[t]=i[t]^54,l[t]=i[t]^92;var a=r(O.concat([e,n]));return r(O.concat([l,a]))}function c(r,i){r=r||"sha1";var n=A[r],e=[],l=0;return n||o("algorithm:",r,"is not yet supported"),{update:function(a){return O.isBuffer(a)||(a=O.from(a)),e.push(a),l+=a.length,this},digest:function(a){var s=O.concat(e),u=i?f(n,i,s):n(s);return e=null,a?u.toString(a):u}}}function o(){var r=[].slice.call(arguments).join(" ");throw new Error([r,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}d.createHash=function(r){return c(r)},d.createHmac=function(r,i){return c(r,i)},d.createCredentials=function(){o("sorry,createCredentials is not implemented yet")},d.createCipher=function(){o("sorry,createCipher is not implemented yet")},d.createCipheriv=function(){o("sorry,createCipheriv is not implemented yet")},d.createDecipher=function(){o("sorry,createDecipher is not implemented yet")},d.createDecipheriv=function(){o("sorry,createDecipheriv is not implemented yet")},d.createSign=function(){o("sorry,createSign is not implemented yet")},d.createVerify=function(){o("sorry,createVerify is not implemented yet")},d.createDiffieHellman=function(){o("sorry,createDiffieHellman is not implemented yet")},d.pbkdf2=function(){o("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(H,k,d){"use strict";var O=H("buffer").Buffer,x=4,C=O.alloc(x);C.fill(0);var A=8;function b(c,o){if(c.length%x!==0){var r=c.length+(x-c.length%x);c=O.concat([c,C],r)}for(var i=[],n=o?c.readInt32BE:c.readInt32LE,e=0;e<c.length;e+=x)i.push(n.call(c,e));return i}function g(c,o,r){for(var i=O.alloc(o),n=r?i.writeInt32BE:i.writeInt32LE,e=0;e<c.length;e++)n.call(i,c[e],e*4,!0);return i}function f(c,o,r,i){O.isBuffer(c)||(c=O.from(c));var n=o(b(c,i),c.length*A);return g(n,r,i)}k.exports={hash:f}},{buffer:73}],286:[function(H,k,d){"use strict";var O=H("./helpers");function x(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function C(i,n){i[n>>5]|=128<<n%32,i[(n+64>>>9<<4)+14]=n;for(var e=1732584193,l=-271733879,t=-1732584194,a=271733878,s=0;s<i.length;s+=16){var u=e,h=l,p=t,m=a;e=b(e,l,t,a,i[s+0],7,-680876936),a=b(a,e,l,t,i[s+1],12,-389564586),t=b(t,a,e,l,i[s+2],17,606105819),l=b(l,t,a,e,i[s+3],22,-1044525330),e=b(e,l,t,a,i[s+4],7,-176418897),a=b(a,e,l,t,i[s+5],12,1200080426),t=b(t,a,e,l,i[s+6],17,-1473231341),l=b(l,t,a,e,i[s+7],22,-45705983),e=b(e,l,t,a,i[s+8],7,1770035416),a=b(a,e,l,t,i[s+9],12,-1958414417),t=b(t,a,e,l,i[s+10],17,-42063),l=b(l,t,a,e,i[s+11],22,-1990404162),e=b(e,l,t,a,i[s+12],7,1804603682),a=b(a,e,l,t,i[s+13],12,-40341101),t=b(t,a,e,l,i[s+14],17,-1502002290),l=b(l,t,a,e,i[s+15],22,1236535329),e=g(e,l,t,a,i[s+1],5,-165796510),a=g(a,e,l,t,i[s+6],9,-1069501632),t=g(t,a,e,l,i[s+11],14,643717713),l=g(l,t,a,e,i[s+0],20,-373897302),e=g(e,l,t,a,i[s+5],5,-701558691),a=g(a,e,l,t,i[s+10],9,38016083),t=g(t,a,e,l,i[s+15],14,-660478335),l=g(l,t,a,e,i[s+4],20,-405537848),e=g(e,l,t,a,i[s+9],5,568446438),a=g(a,e,l,t,i[s+14],9,-1019803690),t=g(t,a,e,l,i[s+3],14,-187363961),l=g(l,t,a,e,i[s+8],20,1163531501),e=g(e,l,t,a,i[s+13],5,-1444681467),a=g(a,e,l,t,i[s+2],9,-51403784),t=g(t,a,e,l,i[s+7],14,1735328473),l=g(l,t,a,e,i[s+12],20,-1926607734),e=f(e,l,t,a,i[s+5],4,-378558),a=f(a,e,l,t,i[s+8],11,-2022574463),t=f(t,a,e,l,i[s+11],16,1839030562),l=f(l,t,a,e,i[s+14],23,-35309556),e=f(e,l,t,a,i[s+1],4,-1530992060),a=f(a,e,l,t,i[s+4],11,1272893353),t=f(t,a,e,l,i[s+7],16,-155497632),l=f(l,t,a,e,i[s+10],23,-1094730640),e=f(e,l,t,a,i[s+13],4,681279174),a=f(a,e,l,t,i[s+0],11,-358537222),t=f(t,a,e,l,i[s+3],16,-722521979),l=f(l,t,a,e,i[s+6],23,76029189),e=f(e,l,t,a,i[s+9],4,-640364487),a=f(a,e,l,t,i[s+12],11,-421815835),t=f(t,a,e,l,i[s+15],16,530742520),l=f(l,t,a,e,i[s+2],23,-995338651),e=c(e,l,t,a,i[s+0],6,-198630844),a=c(a,e,l,t,i[s+7],10,1126891415),t=c(t,a,e,l,i[s+14],15,-1416354905),l=c(l,t,a,e,i[s+5],21,-57434055),e=c(e,l,t,a,i[s+12],6,1700485571),a=c(a,e,l,t,i[s+3],10,-1894986606),t=c(t,a,e,l,i[s+10],15,-1051523),l=c(l,t,a,e,i[s+1],21,-2054922799),e=c(e,l,t,a,i[s+8],6,1873313359),a=c(a,e,l,t,i[s+15],10,-30611744),t=c(t,a,e,l,i[s+6],15,-1560198380),l=c(l,t,a,e,i[s+13],21,1309151649),e=c(e,l,t,a,i[s+4],6,-145523070),a=c(a,e,l,t,i[s+11],10,-1120210379),t=c(t,a,e,l,i[s+2],15,718787259),l=c(l,t,a,e,i[s+9],21,-343485551),e=o(e,u),l=o(l,h),t=o(t,p),a=o(a,m)}return Array(e,l,t,a)}function A(i,n,e,l,t,a){return o(r(o(o(n,i),o(l,a)),t),e)}function b(i,n,e,l,t,a,s){return A(n&e|~n&l,i,n,t,a,s)}function g(i,n,e,l,t,a,s){return A(n&l|e&~l,i,n,t,a,s)}function f(i,n,e,l,t,a,s){return A(n^e^l,i,n,t,a,s)}function c(i,n,e,l,t,a,s){return A(e^(n|~l),i,n,t,a,s)}function o(i,n){var e=(i&65535)+(n&65535),l=(i>>16)+(n>>16)+(e>>16);return l<<16|e&65535}function r(i,n){return i<<n|i>>>32-n}k.exports=function(n){return O.hash(n,C,16)}},{"./helpers":285}],287:[function(H,k,d){"use strict";var O=H("./helpers");function x(f,c){f[c>>5]|=128<<24-c%32,f[(c+64>>9<<4)+15]=c;for(var o=Array(80),r=1732584193,i=-271733879,n=-1732584194,e=271733878,l=-1009589776,t=0;t<f.length;t+=16){for(var a=r,s=i,u=n,h=e,p=l,m=0;m<80;m++){m<16?o[m]=f[t+m]:o[m]=g(o[m-3]^o[m-8]^o[m-14]^o[m-16],1);var v=b(b(g(r,5),C(m,i,n,e)),b(b(l,o[m]),A(m)));l=e,e=n,n=g(i,30),i=r,r=v}r=b(r,a),i=b(i,s),n=b(n,u),e=b(e,h),l=b(l,p)}return Array(r,i,n,e,l)}function C(f,c,o,r){return f<20?c&o|~c&r:f<40?c^o^r:f<60?c&o|c&r|o&r:c^o^r}function A(f){return f<20?1518500249:f<40?1859775393:f<60?-1894007588:-899497514}function b(f,c){var o=(f&65535)+(c&65535),r=(f>>16)+(c>>16)+(o>>16);return r<<16|o&65535}function g(f,c){return f<<c|f>>>32-c}k.exports=function(c){return O.hash(c,x,20,!0)}},{"./helpers":285}],288:[function(H,k,d){"use strict";k.exports=function(){return function(){}}},{}],289:[function(H,k,d){(function(O){"use strict";var x=H("babel-runtime/helpers/typeof"),C=A(x);function A(r){return r&&r.__esModule?r:{default:r}}var b=H("stream"),g=b.Stream,f=H("../lib/common/utils/isArray"),c=f.isArray;k.exports.string=function(i){return typeof i=="string"},k.exports.array=c,k.exports.buffer=O.isBuffer;function o(r){return r instanceof g}k.exports.writableStream=function(i){return o(i)&&typeof i._write=="function"&&(0,C.default)(i._writableState)==="object"}}).call(this,{isBuffer:H("../node_modules/is-buffer/index.js")})},{"../lib/common/utils/isArray":42,"../node_modules/is-buffer/index.js":197,"babel-runtime/helpers/typeof":67,stream:230}],290:[function(H,k,d){"use strict";d.encodeURIComponent=function(O){try{return encodeURIComponent(O)}catch(x){return O}},d.escape=H("escape-html"),d.timestamp=function(x){if(x){var C=x;return typeof C=="string"&&(C=Number(C)),String(x).length===10&&(C*=1e3),new Date(C)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(H,k,d){(function(O,x){"use strict";var C=H("babel-runtime/core-js/json/stringify"),A=f(C),b=H("babel-runtime/helpers/typeof"),g=f(b);function f(m){return m&&m.__esModule?m:{default:m}}var c=H("util"),o=H("url"),r=H("http"),i=H("https"),n=H("debug")("urllib"),e=H("humanize-ms"),l,t=0,a=Math.pow(2,31)-10,s=/^https?:\/\//i;function u(m,v){return m===void 0?v:m}function h(m,v){return function(y,E,T){if(y)return v(y);m({data:E,status:T.statusCode,headers:T.headers,res:T})}}d.TIMEOUTS=[e("300s"),e("300s")];var p=["json","text"];d.request=function(v,y,E){return arguments.length===2&&typeof y=="function"&&(E=y,y=null),typeof E=="function"?d.requestWithCallback(v,y,E):(l||(l=H("any-promise")),new l(function(T,w){d.requestWithCallback(v,y,h(T,w))}))},d.requestWithCallback=function(v,y,E){if(!v||typeof v!="string"&&(typeof v=="undefined"?"undefined":(0,g.default)(v))!=="object"){var T=c.format("expect request url to be a string or a http request options, but got %j",v);throw new Error(T)}arguments.length===2&&typeof y=="function"&&(E=y,y=null),y=y||{},t>=a&&(t=0);var w=++t;y.requestUrls=y.requestUrls||[];var S={requestId:w,url:v,args:y,ctx:y.ctx};y.emitter&&y.emitter.emit("request",S),y.timeout=y.timeout||d.TIMEOUTS,y.maxRedirects=y.maxRedirects||10,y.streaming=y.streaming||y.customResponse;var _=Date.now(),I;typeof v=="string"?(s.test(v)||(v="http://"+v),I=o.parse(v)):I=v;var L=(y.type||y.method||I.method||"GET").toUpperCase(),N=I.port||80,R=r,D=u(y.agent,d.agent),F=y.fixJSONCtlChars;I.protocol==="https:"&&(R=i,D=u(y.httpsAgent,d.httpsAgent),I.port||(N=443));var M={host:I.hostname||I.host||"localhost",path:I.path||"/",method:L,port:N,agent:D,headers:y.headers||{},lookup:y.lookup};Array.isArray(y.timeout)?M.requestTimeout=y.timeout[y.timeout.length-1]:typeof y.timeout!="undefined"&&(M.requestTimeout=y.timeout);for(var U=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],B=0;B<U.length;B++){var j=U[B];y.hasOwnProperty(j)&&(M[j]=y[j])}M.rejectUnauthorized===!1&&!M.hasOwnProperty("secureOptions")&&(M.secureOptions=H("constants").SSL_OP_NO_TLSv1_2);var W=y.auth||I.auth;W&&(M.auth=W);var V=y.content||y.data,z=L==="GET"||L==="HEAD"||y.dataAsQueryString;if(!y.content&&(V&&!(typeof V=="string"||x.isBuffer(V))))if(z)V=y.nestedQuerystring?qs.stringify(V):querystring.stringify(V);else{var J=M.headers["Content-Type"]||M.headers["content-type"];J||(y.contentType==="json"?J="application/json":J="application/x-www-form-urlencoded",M.headers["Content-Type"]=J),parseContentType(J).type==="application/json"?V=(0,A.default)(V):V=y.nestedQuerystring?qs.stringify(V):querystring.stringify(V)}z&&V&&(M.path+=(I.query?"&":"?")+V,V=null);var q=0;if(V){var de=V.length;x.isBuffer(V)||(de=x.byteLength(V)),q=M.headers["Content-Length"]=de}y.dataType==="json"&&(M.headers.Accept="application/json"),typeof y.beforeRequest=="function"&&y.beforeRequest(M);var ae=null,ve=null,_e=null,Ie=!1,He=!1,me=0,ke=-1,se=!1,te="",Ge="",oe=null;y.timing&&(oe={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Y(){ae&&(clearTimeout(ae),ae=null)}function G(){ve&&(clearTimeout(ve),ve=null)}function Q(Oe,Tt,Je){if(G(),!E){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),w,O.pid,M.method,v),Oe&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),w,O.pid,Oe.name,Oe.message,Oe.stack);return}var St=E;E=null;var Mt={};if(Je&&(ke=Je.statusCode,Mt=Je.headers),ke===401&&Mt["www-authenticate"]&&(!y.headers||!y.headers.Authorization)&&y.digestAuth){var er=Mt["www-authenticate"];if(er.indexOf("Digest ")>=0)return n("Request#%d %s: got digest auth header WWW-Authenticate: %s",w,v,er),y.headers=y.headers||{},y.headers.Authorization=digestAuthHeader(M.method,M.path,er,y.digestAuth),n("Request#%d %s: auth with digest header: %s",w,v,y.headers.Authorization),Je.headers["set-cookie"]&&(y.headers.Cookie=Je.headers["set-cookie"].join(";")),d.requestWithCallback(v,y,St)}var It=Date.now()-_;oe&&(oe.contentDownload=It),n("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",It,me,ke,M.method,M.host,M.path,He,oe);var _t={status:ke,statusCode:ke,headers:Mt,size:me,aborted:se,rt:It,keepAliveSocket:He,data:Tt,requestUrls:y.requestUrls,timing:oe,remoteAddress:te,remotePort:Ge};if(Oe){var Xe="";D&&typeof D.getCurrentStatus=="function"&&(Xe=", agent status: "+(0,A.default)(D.getCurrentStatus())),Oe.message+=", "+M.method+" "+v+" "+ke+" (connected: "+Ie+", keepalive socket: "+He+Xe+`)
headers: `+(0,A.default)(Mt),Oe.data=Tt,Oe.path=M.path,Oe.status=ke,Oe.headers=Mt,Oe.res=_t}St(Oe,Tt,y.streaming?Je:_t),y.emitter&&(S.url=v,S.socket=vt&&vt.connection,S.options=M,S.size=q,y.emitter.emit("response",{requestId:w,error:Oe,ctx:y.ctx,req:S,res:_t}))}function ye(Oe){var Tt=null;if(y.followRedirect&&statuses.redirect[Oe.statusCode]){y._followRedirectCount=(y._followRedirectCount||0)+1;var Je=Oe.headers.location;if(!Je)Tt=new Error("Got statusCode "+Oe.statusCode+" but cannot resolve next location from headers"),Tt.name="FollowRedirectError";else if(y._followRedirectCount>y.maxRedirects)Tt=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+v),Tt.name="MaxRedirectError";else{var St=y.formatRedirectUrl?y.formatRedirectUrl(v,Je):o.resolve(v,Je);n("Request#%d %s: `redirected` from %s to %s",w,M.path,v,St),G(),y.headers&&y.headers.Host&&s.test(Je)&&(y.headers.Host=null);var Mt=E;return E=null,d.requestWithCallback(St,y,Mt),{redirect:!0,error:null}}}return{redirect:!1,error:Tt}}!M.headers["User-Agent"]&&!M.headers["user-agent"]&&(M.headers["User-Agent"]=navigator.userAgent),y.gzip&&(!M.headers["Accept-Encoding"]&&!M.headers["accept-encoding"]&&(M.headers["Accept-Encoding"]="gzip"));function ce(Oe,Tt,Je){var St=Oe.headers["content-encoding"];return Je(null,Tt,St)}var Te=y.writeStream;n("Request#%d %s %s with headers %j, options.path: %s",w,L,v,M.headers,M.path),y.requestUrls.push(v);function Se(Oe){if(oe&&(oe.waiting=Date.now()-_),n("Request#%d %s `req response` event emit: status %d, headers: %j",w,v,Oe.statusCode,Oe.headers),y.streaming){var Tt=ye(Oe);if(Tt.redirect){Oe.resume();return}return Tt.error?(Oe.resume(),Q(Tt.error,null,Oe)):Q(null,null,Oe)}if(Oe.on("close",function(){n("Request#%d %s: `res close` event emit, total size %d",w,v,me)}),Oe.on("error",function(){n("Request#%d %s: `res error` event emit, total size %d",w,v,me)}),Oe.on("aborted",function(){se=!0,n("Request#%d %s: `res aborted` event emit, total size %d",w,v,me)}),Te){var Tt=ye(Oe);if(Tt.redirect){Oe.resume();return}return Tt.error?(Oe.resume(),Te.end(),Q(Tt.error,null,Oe)):(y.consumeWriteStream===!1?Oe.on("end",Q.bind(null,null,null,Oe)):isNode010||isNode012?first([[Te,"close"],[Oe,"aborted"]],function(Mt,er,It){n("Request#%d %s: writeStream or res %s event emitted",w,v,It),Q(_e||null,null,Oe)}):Te.on("close",function(){n("Request#%d %s: writeStream close event emitted",w,v),Q(_e||null,null,Oe)}),Oe.pipe(Te))}var Je=[];Oe.on("data",function(St){n("Request#%d %s: `res data` event emit, size %d",w,v,St.length),me+=St.length,Je.push(St)}),Oe.on("end",function(){var St=x.concat(Je,me);if(n("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",w,v,me,Oe._dumped),_e)return Q(_e,St,Oe);var Mt=ye(Oe);if(Mt.error)return Q(Mt.error,St,Oe);if(Mt.redirect)return;ce(Oe,St,function(er,It,_t){if(er)return Q(er,St,Oe);if(!_t&&p.indexOf(y.dataType)>=0){try{It=decodeBodyByCharset(It,Oe)}catch(ie){return n("decodeBodyByCharset error: %s",ie),Q(null,It,Oe)}if(y.dataType==="json")if(me===0)It=null;else{var Xe=parseJSON(It,F);Xe.error?er=Xe.error:It=Xe.data}}se&&n("Request#%d %s: Remote socket was terminated before `response.end()` was called",w,v),Q(er,It,Oe)})})}var le,fe;Array.isArray(y.timeout)?(le=e(y.timeout[0]),fe=e(y.timeout[1])):le=fe=e(y.timeout),n("ConnectTimeout: %d, ResponseTimeout: %d",le,fe);function Ee(){n("Connect timer ticking, timeout: %d",le),ae=setTimeout(function(){ae=null,ke===-1&&(ke=-2);var Oe="Connect timeout for "+le+"ms",Tt="ConnectionTimeoutError";vt.socket||(Tt="SocketAssignTimeoutError",Oe+=", working sockets is full"),_e=new Error(Oe),_e.name=Tt,_e.requestId=w,n("ConnectTimeout: Request#%d %s %s: %s, connected: %s",w,v,_e.name,Oe,Ie),et()},le)}function Ve(){n("Response timer ticking, timeout: %d",fe),ve=setTimeout(function(){ve=null;var Oe="Response timeout for "+fe+"ms",Tt="ResponseTimeoutError";_e=new Error(Oe),_e.name=Tt,_e.requestId=w,n("ResponseTimeout: Request#%d %s %s: %s, connected: %s",w,v,_e.name,Oe,Ie),et()},fe)}var vt;M.mode=y.mode?y.mode:"";try{vt=R.request(M,Se)}catch(Oe){return Q(Oe)}typeof window=="undefined"?Ee():vt.on("requestTimeout",function(){ke===-1&&(ke=-2);var Oe="Connect timeout for "+le+"ms",Tt="ConnectionTimeoutError";_e=new Error(Oe),_e.name=Tt,_e.requestId=w,et()});function et(){n("Request#%d %s abort, connected: %s",w,v,Ie),vt.socket||(_e.noSocket=!0,Q(_e)),vt.abort()}return oe&&vt.on("finish",function(){oe.requestSent=Date.now()-_}),vt.once("socket",function(Oe){oe&&(oe.queuing=Date.now()-_),isNode010&&Oe.socket&&(Oe=Oe.socket);var Tt=Oe.readyState;if(Tt==="opening"){Oe.once("lookup",function(Je,St,Mt){n("Request#%d %s lookup: %s, %s, %s",w,v,Je,St,Mt),oe&&(oe.dnslookup=Date.now()-_),St&&(te=St)}),Oe.once("connect",function(){oe&&(oe.connected=Date.now()-_),Y(),Ve(),n("Request#%d %s new socket connected",w,v),Ie=!0,te||(te=Oe.remoteAddress),Ge=Oe.remotePort});return}n("Request#%d %s reuse socket connected, readyState: %s",w,v,Tt),Ie=!0,He=!0,te||(te=Oe.remoteAddress),Ge=Oe.remotePort,Y(),Ve()}),vt.on("error",function(Oe){(Oe.name==="Error"||Oe.name==="TypeError")&&(Oe.name=Ie?"ResponseError":"RequestError"),Oe.message+=' (req "error")',n("Request#%d %s `req error` event emit, %s: %s",w,v,Oe.name,Oe.message),Q(_e||Oe)}),Te&&Te.once("error",function(Oe){Oe.message+=' (writeStream "error")',_e=Oe,n("Request#%d %s `writeStream error` event emit, %s: %s",w,v,Oe.name,Oe.message),et()}),y.stream?(y.stream.pipe(vt),y.stream.once("error",function(Oe){Oe.message+=' (stream "error")',_e=Oe,n("Request#%d %s `readStream error` event emit, %s: %s",w,v,Oe.name,Oe.message),et()})):vt.end(V),vt.requestId=w,vt}}).call(this,H("_process"),H("buffer").Buffer)},{_process:208,"any-promise":49,"babel-runtime/core-js/json/stringify":53,"babel-runtime/helpers/typeof":67,buffer:73,constants:75,debug:288,http:231,https:193,"humanize-ms":194,url:238,util:243}]},{},[1])(1)})}).call(this,__webpack_require__("yLpj"))},n1HI:function(H,k,d){var O=d("hX1E"),x=O.normalizeRadian,C=Math.PI*2;function A(b,g,f,c,o,r,i,n,e){if(i===0)return!1;var l=i;n-=b,e-=g;var t=Math.sqrt(n*n+e*e);if(t-l>f||t+l<f)return!1;if(Math.abs(c-o)%C<1e-4)return!0;if(r){var a=c;c=x(o),o=x(a)}else c=x(c),o=x(o);c>o&&(o+=C);var s=Math.atan2(e,n);return s<0&&(s+=C),s>=c&&s<=o||s+C>=c&&s+C<=o}k.containStroke=A},n4Lv:function(H,k,d){var O=d("7hqr"),x=O.isDimensionStacked,C=d("bYtY"),A=C.map;function b(c,o,r){var i=c.getBaseAxis(),n=c.getOtherAxis(i),e=g(n,r),l=i.dim,t=n.dim,a=o.mapDimension(t),s=o.mapDimension(l),u=t==="x"||t==="radius"?1:0,h=A(c.dimensions,function(v){return o.mapDimension(v)}),p,m=o.getCalculationInfo("stackResultDimension");return(p|=x(o,h[0]))&&(h[0]=m),(p|=x(o,h[1]))&&(h[1]=m),{dataDimsForPoint:h,valueStart:e,valueAxisDim:t,baseAxisDim:l,stacked:!!p,valueDim:a,baseDim:s,baseDataOffset:u,stackedOverDimension:o.getCalculationInfo("stackedOverDimension")}}function g(c,o){var r=0,i=c.scale.getExtent();return o==="start"?r=i[0]:o==="end"?r=i[1]:i[0]>0?r=i[0]:i[1]<0&&(r=i[1]),r}function f(c,o,r,i){var n=NaN;c.stacked&&(n=r.get(r.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=c.valueStart);var e=c.baseDataOffset,l=[];return l[e]=r.get(c.baseDim,i),l[1-e]=n,o.dataToPoint(l)}k.prepareDataCoordInfo=b,k.getStackedOnPoint=f},n6Mw:function(H,k,d){var O=d("SrGk"),x=d("bYtY"),C=d("Fofx");function A(g,f){O.call(this,g,f,"clipPath","__clippath_in_use__")}x.inherits(A,O),A.prototype.update=function(g){var f=this.getSvgElement(g);f&&this.updateDom(f,g.__clipPaths,!1);var c=this.getTextSvgElement(g);c&&this.updateDom(c,g.__clipPaths,!0),this.markUsed(g)},A.prototype.updateDom=function(g,f,c){if(f&&f.length>0){var o=this.getDefs(!0),r=f[0],i,n,e=c?"_textDom":"_dom";r[e]?(n=r[e].getAttribute("id"),i=r[e],o.contains(i)||o.appendChild(i)):(n="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,i=this.createElement("clipPath"),i.setAttribute("id",n),o.appendChild(i),r[e]=i);var l=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),l.brush(r),r.transform=t}else l.brush(r);var a=this.getSvgElement(r);i.innerHTML="",i.appendChild(a.cloneNode()),g.setAttribute("clip-path","url(#"+n+")"),f.length>1&&this.updateDom(i,f.slice(1),c)}else g&&g.setAttribute("clip-path","none")},A.prototype.markUsed=function(g){var f=this;g.__clipPaths&&x.each(g.__clipPaths,function(c){c._dom&&O.prototype.markUsed.call(f,c._dom),c._textDom&&O.prototype.markUsed.call(f,c._textDom)})};var b=A;H.exports=b},nCxF:function(H,k,d){var O=d("QBsz"),x=O.min,C=O.max,A=O.scale,b=O.distance,g=O.add,f=O.clone,c=O.sub;function o(r,i,n,e){var l=[],t=[],a=[],s=[],u,h,p,m;if(e){p=[Infinity,Infinity],m=[-Infinity,-Infinity];for(var v=0,y=r.length;v<y;v++)x(p,p,r[v]),C(m,m,r[v]);x(p,p,e[0]),C(m,m,e[1])}for(var v=0,y=r.length;v<y;v++){var E=r[v];if(n)u=r[v?v-1:y-1],h=r[(v+1)%y];else if(v===0||v===y-1){l.push(f(r[v]));continue}else u=r[v-1],h=r[v+1];c(t,h,u),A(t,t,i);var T=b(E,u),w=b(E,h),S=T+w;S!==0&&(T/=S,w/=S),A(a,t,-T),A(s,t,w);var _=g([],E,a),I=g([],E,s);e&&(C(_,_,p),x(_,_,m),C(I,I,p),x(I,I,m)),l.push(_),l.push(I)}return n&&l.push(l.shift()),l}H.exports=o},nKiI:function(H,k,d){var O=d("bYtY"),x=d("mFDi"),C=d("OELB"),A=C.parsePercent,b=C.MAX_SAFE_INTEGER,g=d("+TT/"),f=d("VaxA"),c=Math.max,o=Math.min,r=O.retrieve,i=O.each,n=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],l=["upperLabel","show"],t=["upperLabel","height"],a={seriesType:"treemap",reset:function(_,I,L,N){var R=L.getWidth(),D=L.getHeight(),F=_.option,M=g.getLayoutRect(_.getBoxLayoutParams(),{width:L.getWidth(),height:L.getHeight()}),U=F.size||[],B=A(r(M.width,U[0]),R),j=A(r(M.height,U[1]),D),W=N&&N.type,V=["treemapZoomToNode","treemapRootToNode"],z=f.retrieveTargetInfo(N,V,_),J=W==="treemapRender"||W==="treemapMove"?N.rootRect:null,q=_.getViewRoot(),de=f.getPathToRoot(q);if(W!=="treemapMove"){var ae=W==="treemapZoomToNode"?E(_,z,q,B,j):J?[J.width,J.height]:[B,j],ve=F.sort;ve&&ve!=="asc"&&ve!=="desc"&&(ve="desc");var _e={squareRatio:F.squareRatio,sort:ve,leafDepth:F.leafDepth};q.hostTree.clearLayouts();var Ie={x:0,y:0,width:ae[0],height:ae[1],area:ae[0]*ae[1]};q.setLayout(Ie),s(q,_e,!1,0);var Ie=q.getLayout();i(de,function(me,ke){var se=(de[ke+1]||q).getValue();me.setLayout(O.extend({dataExtent:[se,se],borderWidth:0,upperHeight:0},Ie))})}var He=_.getData().tree.root;He.setLayout(T(M,J,z),!0),_.setLayoutInfo(M),w(He,new x(-M.x,-M.y,R,D),de,q,0)}};function s(_,I,L,N){var R,D;if(_.isRemoved())return;var F=_.getLayout();R=F.width,D=F.height;var M=_.getModel(),U=M.get(n),B=M.get(e)/2,j=S(M),W=Math.max(U,j),V=U-B,z=W-B,M=_.getModel();_.setLayout({borderWidth:U,upperHeight:W,upperLabelHeight:j},!0),R=c(R-2*V,0),D=c(D-V-z,0);var J=R*D,q=u(_,M,J,I,L,N);if(!q.length)return;var de={x:V,y:z,width:R,height:D},ae=o(R,D),ve=Infinity,_e=[];_e.area=0;for(var Ie=0,He=q.length;Ie<He;){var me=q[Ie];_e.push(me),_e.area+=me.getLayout().area;var ke=v(_e,ae,I.squareRatio);ke<=ve?(Ie++,ve=ke):(_e.area-=_e.pop().getLayout().area,y(_e,ae,de,B,!1),ae=o(de.width,de.height),_e.length=_e.area=0,ve=Infinity)}if(_e.length&&y(_e,ae,de,B,!0),!L){var se=M.get("childrenVisibleMin");se!=null&&J<se&&(L=!0)}for(var Ie=0,He=q.length;Ie<He;Ie++)s(q[Ie],I,L,N+1)}function u(_,I,L,N,R,D){var F=_.children||[],M=N.sort;M!=="asc"&&M!=="desc"&&(M=null);var U=N.leafDepth!=null&&N.leafDepth<=D;if(R&&!U)return _.viewChildren=[];F=O.filter(F,function(z){return!z.isRemoved()}),p(F,M);var B=m(I,F,M);if(B.sum===0)return _.viewChildren=[];if(B.sum=h(I,L,B.sum,M,F),B.sum===0)return _.viewChildren=[];for(var j=0,W=F.length;j<W;j++){var V=F[j].getValue()/B.sum*L;F[j].setLayout({area:V})}return U&&(F.length&&_.setLayout({isLeafRoot:!0},!0),F.length=0),_.viewChildren=F,_.setLayout({dataExtent:B.dataExtent},!0),F}function h(_,I,L,N,R){if(!N)return L;for(var D=_.get("visibleMin"),F=R.length,M=F,U=F-1;U>=0;U--){var B=R[N==="asc"?F-U-1:U].getValue();B/L*I<D&&(M=U,L-=B)}return N==="asc"?R.splice(0,F-M):R.splice(M,F-M),L}function p(_,I){return I&&_.sort(function(L,N){var R=I==="asc"?L.getValue()-N.getValue():N.getValue()-L.getValue();return R===0?I==="asc"?L.dataIndex-N.dataIndex:N.dataIndex-L.dataIndex:R}),_}function m(_,I,L){for(var N=0,R=0,D=I.length;R<D;R++)N+=I[R].getValue();var F=_.get("visualDimension"),M;if(!I||!I.length)M=[NaN,NaN];else if(F==="value"&&L)M=[I[I.length-1].getValue(),I[0].getValue()],L==="asc"&&M.reverse();else{var M=[Infinity,-Infinity];i(I,function(B){var j=B.getValue(F);j<M[0]&&(M[0]=j),j>M[1]&&(M[1]=j)})}return{sum:N,dataExtent:M}}function v(_,I,L){for(var N=0,R=Infinity,D=0,F,M=_.length;D<M;D++)F=_[D].getLayout().area,F&&(F<R&&(R=F),F>N&&(N=F));var U=_.area*_.area,B=I*I*L;return U?c(B*N/U,U/(B*R)):Infinity}function y(_,I,L,N,R){var D=I===L.width?0:1,F=1-D,M=["x","y"],U=["width","height"],B=L[M[D]],j=I?_.area/I:0;(R||j>L[U[F]])&&(j=L[U[F]]);for(var W=0,V=_.length;W<V;W++){var z=_[W],J={},q=j?z.getLayout().area/j:0,de=J[U[F]]=c(j-2*N,0),ae=L[M[D]]+L[U[D]]-B,ve=W===V-1||ae<q?ae:q,_e=J[U[D]]=c(ve-2*N,0);J[M[F]]=L[M[F]]+o(N,de/2),J[M[D]]=B+o(N,_e/2),B+=ve,z.setLayout(J,!0)}L[M[F]]+=j,L[U[F]]-=j}function E(_,I,L,N,R){var D=(I||{}).node,F=[N,R];if(!D||D===L)return F;for(var M,U=N*R,B=U*_.option.zoomToNodeRatio;M=D.parentNode;){for(var j=0,W=M.children,V=0,z=W.length;V<z;V++)j+=W[V].getValue();var J=D.getValue();if(J===0)return F;B*=j/J;var q=M.getModel(),de=q.get(n),ae=Math.max(de,S(q,de));B+=4*de*de+(3*de+ae)*Math.pow(B,.5),B>b&&(B=b),D=M}B<U&&(B=U);var ve=Math.pow(B/U,.5);return[N*ve,R*ve]}function T(_,I,L){if(I)return{x:I.x,y:I.y};var N={x:0,y:0};if(!L)return N;var R=L.node,D=R.getLayout();if(!D)return N;for(var F=[D.width/2,D.height/2],M=R;M;){var U=M.getLayout();F[0]+=U.x,F[1]+=U.y,M=M.parentNode}return{x:_.width/2-F[0],y:_.height/2-F[1]}}function w(_,I,L,N,R){var D=_.getLayout(),F=L[R],M=F&&F===_;if(F&&!M||R===L.length&&_!==N)return;_.setLayout({isInView:!0,invisible:!M&&!I.intersect(D),isAboveViewRoot:M},!0);var U=new x(I.x-D.x,I.y-D.y,I.width,I.height);i(_.viewChildren||[],function(B){w(B,U,L,N,R+1)})}function S(_){return _.get(l)?_.get(t):0}H.exports=a},nPnh:function(H,k){var d=Math.round;function O(A,b,g){if(!b)return;var f=b.x1,c=b.x2,o=b.y1,r=b.y2;A.x1=f,A.x2=c,A.y1=o,A.y2=r;var i=g&&g.lineWidth;if(!i)return;d(f*2)===d(c*2)&&(A.x1=A.x2=C(f,i,!0)),d(o*2)===d(r*2)&&(A.y1=A.y2=C(o,i,!0))}function x(A,b,g){if(!b)return;var f=b.x,c=b.y,o=b.width,r=b.height;A.x=f,A.y=c,A.width=o,A.height=r;var i=g&&g.lineWidth;if(!i)return;A.x=C(f,i,!0),A.y=C(c,i,!0),A.width=Math.max(C(f+o,i,!1)-A.x,o===0?0:1),A.height=Math.max(C(c+r,i,!1)-A.y,r===0?0:1)}function C(A,b,g){if(!b)return A;var f=d(A*2);return(f+d(b))%2===0?f/2:(f+(g?1:-1))/2}k.subPixelOptimizeLine=O,k.subPixelOptimizeRect=x,k.subPixelOptimize=C},nRaC:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("0fbx"),A=d.n(C),b=d("OaEy"),g=d("R9oj")},nVfU:function(H,k,d){var O=d("bYtY"),x=d("OELB"),C=x.parsePercent,A=d("7hqr"),b=A.isDimensionStacked,g=d("zM3Q"),f="__ec_stack_",c=.5,o=typeof Float32Array!="undefined"?Float32Array:Array;function r(y){return y.get("stack")||f+y.seriesIndex}function i(y){return y.dim+y.index}function n(y){var E=[],T=y.axis,w="axis0";if(T.type!=="category")return;for(var S=T.getBandWidth(),_=0;_<y.count||0;_++)E.push(O.defaults({bandWidth:S,axisKey:w,stackId:f+_},y));for(var I=a(E),L=[],_=0;_<y.count;_++){var N=I[w][f+_];N.offsetCenter=N.offset+N.width/2,L.push(N)}return L}function e(y,E){var T=[];return E.eachSeriesByType(y,function(w){p(w)&&!m(w)&&T.push(w)}),T}function l(y){var E={};O.each(y,function(N){var R=N.coordinateSystem,D=R.getBaseAxis();if(D.type!=="time"&&D.type!=="value")return;for(var F=N.getData(),M=D.dim+"_"+D.index,U=F.mapDimension(D.dim),B=0,j=F.count();B<j;++B){var W=F.get(U,B);E[M]?E[M].push(W):E[M]=[W]}});var T=[];for(var w in E)if(E.hasOwnProperty(w)){var S=E[w];if(S){S.sort(function(N,R){return N-R});for(var _=null,I=1;I<S.length;++I){var L=S[I]-S[I-1];L>0&&(_=_===null?L:Math.min(_,L))}T[w]=_}}return T}function t(y){var E=l(y),T=[];return O.each(y,function(w){var S=w.coordinateSystem,_=S.getBaseAxis(),I=_.getExtent(),L;if(_.type==="category")L=_.getBandWidth();else if(_.type==="value"||_.type==="time"){var N=_.dim+"_"+_.index,R=E[N],D=Math.abs(I[1]-I[0]),F=_.scale.getExtent(),M=Math.abs(F[1]-F[0]);L=R?D/M*R:D}else{var U=w.getData();L=Math.abs(I[1]-I[0])/U.count()}var B=C(w.get("barWidth"),L),j=C(w.get("barMaxWidth"),L),W=C(w.get("barMinWidth")||1,L),V=w.get("barGap"),z=w.get("barCategoryGap");T.push({bandWidth:L,barWidth:B,barMaxWidth:j,barMinWidth:W,barGap:V,barCategoryGap:z,axisKey:i(_),stackId:r(w)})}),a(T)}function a(y){var E={};O.each(y,function(w,S){var _=w.axisKey,I=w.bandWidth,L=E[_]||{bandWidth:I,remainedWidth:I,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},N=L.stacks;E[_]=L;var R=w.stackId;N[R]||L.autoWidthCount++,N[R]=N[R]||{width:0,maxWidth:0};var D=w.barWidth;D&&!N[R].width&&(N[R].width=D,D=Math.min(L.remainedWidth,D),L.remainedWidth-=D);var F=w.barMaxWidth;F&&(N[R].maxWidth=F);var M=w.barMinWidth;M&&(N[R].minWidth=M);var U=w.barGap;U!=null&&(L.gap=U);var B=w.barCategoryGap;B!=null&&(L.categoryGap=B)});var T={};return O.each(E,function(w,S){T[S]={};var _=w.stacks,I=w.bandWidth,L=C(w.categoryGap,I),N=C(w.gap,1),R=w.remainedWidth,D=w.autoWidthCount,F=(R-L)/(D+(D-1)*N);F=Math.max(F,0),O.each(_,function(j){var W=j.maxWidth,V=j.minWidth;if(j.width){var z=j.width;W&&(z=Math.min(z,W)),V&&(z=Math.max(z,V)),j.width=z,R-=z+N*z,D--}else{var z=F;W&&W<z&&(z=Math.min(W,R)),V&&V>z&&(z=V),z!==F&&(j.width=z,R-=z+N*z,D--)}}),F=(R-L)/(D+(D-1)*N),F=Math.max(F,0);var M=0,U;O.each(_,function(j,W){j.width||(j.width=F),U=j,M+=j.width*(1+N)}),U&&(M-=U.width*N);var B=-M/2;O.each(_,function(j,W){T[S][W]=T[S][W]||{bandWidth:I,offset:B,width:j.width},B+=j.width*(1+N)})}),T}function s(y,E,T){if(y&&E){var w=y[i(E)];return w!=null&&T!=null&&(w=w[r(T)]),w}}function u(y,E){var T=e(y,E),w=t(T),S={},_={};O.each(T,function(I){var L=I.getData(),N=I.coordinateSystem,R=N.getBaseAxis(),D=r(I),F=w[i(R)][D],M=F.offset,U=F.width,B=N.getOtherAxis(R),j=I.get("barMinHeight")||0;S[D]=S[D]||[],_[D]=_[D]||[],L.setLayout({bandWidth:F.bandWidth,offset:M,size:U});for(var W=L.mapDimension(B.dim),V=L.mapDimension(R.dim),z=b(L,W),J=B.isHorizontal(),q=v(R,B,z),de=0,ae=L.count();de<ae;de++){var ve=L.get(W,de),_e=L.get(V,de),Ie=ve>=0?"p":"n",He=q;z&&(S[D][_e]||(S[D][_e]={p:q,n:q}),He=S[D][_e][Ie]);var me,ke,se,te;if(J){var Ge=N.dataToPoint([ve,_e]);me=He,ke=Ge[1]+M,se=Ge[0]-q,te=U,Math.abs(se)<j&&(se=(se<0?-1:1)*j),isNaN(se)||z&&(S[D][_e][Ie]+=se)}else{var Ge=N.dataToPoint([_e,ve]);me=Ge[0]+M,ke=He,se=U,te=Ge[1]-q,Math.abs(te)<j&&(te=(te<=0?-1:1)*j),isNaN(te)||z&&(S[D][_e][Ie]+=te)}L.setItemLayout(de,{x:me,y:ke,width:se,height:te})}},this)}var h={seriesType:"bar",plan:g(),reset:function(y){if(!p(y)||!m(y))return;var E=y.getData(),T=y.coordinateSystem,w=T.grid.getRect(),S=T.getBaseAxis(),_=T.getOtherAxis(S),I=E.mapDimension(_.dim),L=E.mapDimension(S.dim),N=_.isHorizontal(),R=N?0:1,D=s(t([y]),S,y).width;return D>c||(D=c),{progress:F};function F(M,U){for(var B=M.count,j=new o(B*2),W=new o(B*2),V=new o(B),z,J=[],q=[],de=0,ae=0;(z=M.next())!=null;)q[R]=U.get(I,z),q[1-R]=U.get(L,z),J=T.dataToPoint(q,null,J),W[de]=N?w.x+w.width:J[0],j[de++]=J[0],W[de]=N?J[1]:w.y+w.height,j[de++]=J[1],V[ae++]=z;U.setLayout({largePoints:j,largeDataIndices:V,largeBackgroundPoints:W,barWidth:D,valueAxisStart:v(S,_,!1),backgroundStart:N?w.x:w.y,valueAxisHorizontal:N})}}};function p(y){return y.coordinateSystem&&y.coordinateSystem.type==="cartesian2d"}function m(y){return y.pipelineContext&&y.pipelineContext.large}function v(y,E,T){return E.toGlobalCoord(E.dataToCoord(E.type==="log"?1:0))}k.getLayoutOnAxis=n,k.prepareLayoutBarSeries=e,k.makeColumnLayout=t,k.retrieveColumnLayout=s,k.layout=u,k.largeLayout=h},ngQI:function(H,k,d){"use strict";d.d(k,"a",function(){return $l}),d.d(k,"b",function(){return Iu}),d.d(k,"c",function(){return Yr});var O=d("q1tI"),x=d.n(O),C=d("dI71"),A=d("wx14"),b=d("ANjH"),g=d("/MKj");function f(Le,ee){if(Le.length!==ee.length)return!1;for(var Ae=0;Ae<Le.length;Ae++)if(Le[Ae]!==ee[Ae])return!1;return!0}function c(Le,ee){var Ae=Object(O.useState)(function(){return{inputs:ee,result:Le()}})[0],ze=Object(O.useRef)(!0),lt=Object(O.useRef)(Ae),Dt=ze.current||Boolean(ee&&lt.current.inputs&&f(ee,lt.current.inputs)),Vt=Dt?lt.current:{inputs:ee,result:Le()};return Object(O.useEffect)(function(){ze.current=!1,lt.current=Vt},[Vt]),Vt.result}function o(Le,ee){return c(function(){return Le},ee)}var r=c,i=o,n=d("9R94"),e=function(ee){var Ae=ee.top,ze=ee.right,lt=ee.bottom,Dt=ee.left,Vt=ze-Dt,Zt=lt-Ae,Ir={top:Ae,right:ze,bottom:lt,left:Dt,width:Vt,height:Zt,x:Dt,y:Ae,center:{x:(ze+Dt)/2,y:(lt+Ae)/2}};return Ir},l=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}},s={top:0,right:0,bottom:0,left:0},u=function(ee){var Ae=ee.borderBox,ze=ee.margin,lt=ze===void 0?s:ze,Dt=ee.border,Vt=Dt===void 0?s:Dt,Zt=ee.padding,Ir=Zt===void 0?s:Zt,$r=e(l(Ae,lt)),Tr=e(t(Ae,Vt)),xr=e(t(Tr,Ir));return{marginBox:$r,borderBox:e(Ae),paddingBox:Tr,contentBox:xr,margin:lt,border:Vt,padding:Ir}},h=function(ee){var Ae=ee.slice(0,-2),ze=ee.slice(-2);if(ze!=="px")return 0;var lt=Number(Ae);return isNaN(lt)&&Object(n.a)(!1),lt},p=function(){return{x:window.pageXOffset,y:window.pageYOffset}},m=function(ee,Ae){var ze=ee.borderBox,lt=ee.border,Dt=ee.margin,Vt=ee.padding,Zt=a(ze,Ae);return u({borderBox:Zt,border:lt,margin:Dt,padding:Vt})},v=function(ee,Ae){return Ae===void 0&&(Ae=p()),m(ee,Ae)},y=function(ee,Ae){var ze={top:h(Ae.marginTop),right:h(Ae.marginRight),bottom:h(Ae.marginBottom),left:h(Ae.marginLeft)},lt={top:h(Ae.paddingTop),right:h(Ae.paddingRight),bottom:h(Ae.paddingBottom),left:h(Ae.paddingLeft)},Dt={top:h(Ae.borderTopWidth),right:h(Ae.borderRightWidth),bottom:h(Ae.borderBottomWidth),left:h(Ae.borderLeftWidth)};return u({borderBox:ee,margin:ze,padding:lt,border:Dt})},E=function(ee){var Ae=ee.getBoundingClientRect(),ze=window.getComputedStyle(ee);return y(Ae,ze)},T=Number.isNaN||function(ee){return typeof ee=="number"&&ee!==ee};function w(Le,ee){return Le===ee?!0:!!(T(Le)&&T(ee))}function S(Le,ee){if(Le.length!==ee.length)return!1;for(var Ae=0;Ae<Le.length;Ae++)if(!w(Le[Ae],ee[Ae]))return!1;return!0}function _(Le,ee){ee===void 0&&(ee=S);var Ae,ze=[],lt,Dt=!1;function Vt(){for(var Zt=[],Ir=0;Ir<arguments.length;Ir++)Zt[Ir]=arguments[Ir];return Dt&&Ae===this&&ee(Zt,ze)||(lt=Le.apply(this,Zt),Dt=!0,Ae=this,ze=Zt),lt}return Vt}var I=_,L=function(ee){var Ae=[],ze=null,lt=function(){for(var Vt=arguments.length,Zt=new Array(Vt),Ir=0;Ir<Vt;Ir++)Zt[Ir]=arguments[Ir];if(Ae=Zt,ze)return;ze=requestAnimationFrame(function(){ze=null,ee.apply(void 0,Ae)})};return lt.cancel=function(){if(!ze)return;cancelAnimationFrame(ze),ze=null},lt},N=L,R=d("i8i4"),D=d.n(R),F=!0,M=/[ \t]{2,}/g,U=/^[ \t]*/gm,B=function(ee){return ee.replace(M," ").replace(U,"").trim()},j=function(ee){return B(`
%creact-beautiful-dnd
%c`+B(ee)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},W=function(ee){return[j(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(Le,ee){var Ae;if(F)return;if(typeof window!="undefined"&&window[V])return;(Ae=console)[Le].apply(Ae,W(ee))}var J=z.bind(null,"warn"),q=z.bind(null,"error");function de(){}function ae(Le,ee){return Object(A.a)({},Le,{},ee)}function ve(Le,ee,Ae){var ze=ee.map(function(lt){var Dt=ae(Ae,lt.options);return Le.addEventListener(lt.eventName,lt.fn,Dt),function(){Le.removeEventListener(lt.eventName,lt.fn,Dt)}});return function(){ze.forEach(function(Dt){Dt()})}}var _e=!0,Ie="Invariant failed";function He(Le){this.message=Le}He.prototype.toString=function(){return this.message};function me(Le,ee){if(Le)return;throw _e?new He(Ie):new He(Ie+": "+(ee||""))}var ke=function(Le){Object(C.a)(ee,Le);function ee(){for(var ze,lt=arguments.length,Dt=new Array(lt),Vt=0;Vt<lt;Vt++)Dt[Vt]=arguments[Vt];return ze=Le.call.apply(Le,[this].concat(Dt))||this,ze.callbacks=null,ze.unbind=de,ze.onWindowError=function(Zt){var Ir=ze.getCallbacks();Ir.isDragging()&&Ir.tryAbort();var $r=Zt.error;$r instanceof He&&Zt.preventDefault()},ze.getCallbacks=function(){if(!ze.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return ze.callbacks},ze.setCallbacks=function(Zt){ze.callbacks=Zt},ze}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(lt){if(lt instanceof He){this.setState({});return}throw lt},Ae.render=function(){return this.props.children(this.setCallbacks)},ee}(x.a.Component),se=`
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
`,te=function(ee){return ee+1},Ge=function(ee){return`
You have lifted an item in position `+te(ee.source.index)+`
`},oe=function(ee,Ae){var ze=ee.droppableId===Ae.droppableId,lt=te(ee.index),Dt=te(Ae.index);return ze?`
You have moved the item from position `+lt+`
to position `+Dt+`
`:`
You have moved the item from position `+lt+`
in list `+ee.droppableId+`
to list `+Ae.droppableId+`
in position `+Dt+`
`},Y=function(ee,Ae,ze){var lt=Ae.droppableId===ze.droppableId;return lt?`
The item `+ee+`
has been combined with `+ze.draggableId:`
The item `+ee+`
in list `+Ae.droppableId+`
has been combined with `+ze.draggableId+`
in list `+ze.droppableId+`
`},G=function(ee){var Ae=ee.destination;if(Ae)return oe(ee.source,Ae);var ze=ee.combine;return ze?Y(ee.draggableId,ee.source,ze):"You are over an area that cannot be dropped on"},Q=function(ee){return`
The item has returned to its starting position
of `+te(ee.index)+`
`},ye=function(ee){if(ee.reason==="CANCEL")return`
Movement cancelled.
`+Q(ee.source)+`
`;var Ae=ee.destination,ze=ee.combine;return Ae?`
You have dropped the item.
`+oe(ee.source,Ae)+`
`:ze?`
You have dropped the item.
`+Y(ee.draggableId,ee.source,ze)+`
`:`
The item has been dropped while not over a drop area.
`+Q(ee.source)+`
`},ce={dragHandleUsageInstructions:se,onDragStart:Ge,onDragUpdate:G,onDragEnd:ye},Te={x:0,y:0},Se=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}},fe=function(ee,Ae){return ee.x===Ae.x&&ee.y===Ae.y},Ee=function(ee){return{x:ee.x!==0?-ee.x:0,y:ee.y!==0?-ee.y:0}},Ve=function(ee,Ae,ze){var lt;return ze===void 0&&(ze=0),lt={},lt[ee]=Ae,lt[ee==="x"?"y":"x"]=ze,lt},vt=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(ze){return vt(ee,ze)}))},Oe=function(ee){return function(Ae){return{x:ee(Ae.x),y:ee(Ae.y)}}},Tt=function(ee,Ae){var ze=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 ze.width<=0||ze.height<=0?null:ze},Je=function(ee,Ae){return{top:ee.top+Ae.y,left:ee.left+Ae.x,bottom:ee.bottom+Ae.y,right:ee.right+Ae.x}},St=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}]},Mt={top:0,right:0,bottom:0,left:0},er=function(ee,Ae){return Ae?Je(ee,Ae.scroll.diff.displacement):ee},It=function(ee,Ae,ze){if(ze&&ze.increasedBy){var lt;return Object(A.a)({},ee,(lt={},lt[Ae.end]=ee[Ae.end]+ze.increasedBy[Ae.line],lt))}return ee},_t=function(ee,Ae){return Ae&&Ae.shouldClipSubject?Tt(Ae.pageMarginBox,ee):e(ee)},Xe=function(ee){var Ae=ee.page,ze=ee.withPlaceholder,lt=ee.axis,Dt=ee.frame,Vt=er(Ae.marginBox,Dt),Zt=It(Vt,lt,ze),Ir=_t(Zt,Dt);return{page:Ae,withPlaceholder:ze,active:Ir}},ie=function(ee,Ae){ee.frame||me(!1);var ze=ee.frame,lt=le(Ae,ze.scroll.initial),Dt=Ee(lt),Vt=Object(A.a)({},ze,{scroll:{initial:ze.scroll.initial,current:Ae,diff:{value:lt,displacement:Dt},max:ze.scroll.max}}),Zt=Xe({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:Vt}),Ir=Object(A.a)({},ee,{frame:Vt,subject:Zt});return Ir};function X(Le){return Number.isInteger?Number.isInteger(Le):typeof Le=="number"&&isFinite(Le)&&Math.floor(Le)===Le}function Be(Le){return Object.values?Object.values(Le):Object.keys(Le).map(function(ee){return Le[ee]})}function Ce(Le,ee){if(Le.findIndex)return Le.findIndex(ee);for(var Ae=0;Ae<Le.length;Ae++)if(ee(Le[Ae]))return Ae;return-1}function Z(Le,ee){if(Le.find)return Le.find(ee);var Ae=Ce(Le,ee);return Ae!==-1?Le[Ae]:void 0}function nt(Le){return Array.prototype.slice.call(Le)}var ct=I(function(Le){return Le.reduce(function(ee,Ae){return ee[Ae.descriptor.id]=Ae,ee},{})}),Qe=I(function(Le){return Le.reduce(function(ee,Ae){return ee[Ae.descriptor.id]=Ae,ee},{})}),dt=I(function(Le){return Be(Le)}),Ft=I(function(Le){return Be(Le)}),Lr=I(function(Le,ee){var Ae=Ft(ee).filter(function(ze){return Le===ze.descriptor.droppableId}).sort(function(ze,lt){return ze.descriptor.index-lt.descriptor.index});return Ae});function Wt(Le){return Le.at&&Le.at.type==="REORDER"?Le.at.destination:null}function ar(Le){return Le.at&&Le.at.type==="COMBINE"?Le.at.combine:null}var Ut=I(function(Le,ee){return ee.filter(function(Ae){return Ae.descriptor.id!==Le.descriptor.id})}),kt=function(ee){var Ae=ee.isMovingForward,ze=ee.draggable,lt=ee.destination,Dt=ee.insideDestination,Vt=ee.previousImpact;if(!lt.isCombineEnabled)return null;var Zt=Wt(Vt);if(!Zt)return null;function Ir(Ai){var Qi={type:"COMBINE",combine:{draggableId:Ai,droppableId:lt.descriptor.id}};return Object(A.a)({},Vt,{at:Qi})}var $r=Vt.displaced.all,Tr=$r.length?$r[0]:null;if(Ae)return Tr?Ir(Tr):null;var xr=Ut(ze,Dt);if(!Tr){if(!xr.length)return null;var zr=xr[xr.length-1];return Ir(zr.descriptor.id)}var nn=Ce(xr,function(Ai){return Ai.descriptor.id===Tr});nn!==-1||me(!1);var On=nn-1;if(On<0)return null;var gi=xr[On];return Ir(gi.descriptor.id)},st=function(ee,Ae){return ee.descriptor.droppableId===Ae.descriptor.id},Rr={point:Te,value:0},on={invisible:{},visible:{},all:[]},Sn={displaced:on,displacedBy:Rr,at:null},zn=function(ee,Ae){return function(ze){return ee<=ze&&ze<=Ae}},Ii=function(ee){var Ae=zn(ee.top,ee.bottom),ze=zn(ee.left,ee.right);return function(lt){var Dt=Ae(lt.top)&&Ae(lt.bottom)&&ze(lt.left)&&ze(lt.right);if(Dt)return!0;var Vt=Ae(lt.top)||Ae(lt.bottom),Zt=ze(lt.left)||ze(lt.right),Ir=Vt&&Zt;if(Ir)return!0;var $r=lt.top<ee.top&&lt.bottom>ee.bottom,Tr=lt.left<ee.left&&lt.right>ee.right,xr=$r&&Tr;if(xr)return!0;var zr=$r&&Zt||Tr&&Vt;return zr}},yn=function(ee){var Ae=zn(ee.top,ee.bottom),ze=zn(ee.left,ee.right);return function(lt){var Dt=Ae(lt.top)&&Ae(lt.bottom)&&ze(lt.left)&&ze(lt.right);return Dt}},Nn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},jt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},At=function(ee){return function(Ae){var ze=zn(Ae.top,Ae.bottom),lt=zn(Ae.left,Ae.right);return function(Dt){return ee===Nn?ze(Dt.top)&&ze(Dt.bottom):lt(Dt.left)&&lt(Dt.right)}}},Re=function(ee,Ae){var ze=Ae.frame?Ae.frame.scroll.diff.displacement:Te;return Je(ee,ze)},Ke=function(ee,Ae,ze){return Ae.subject.active?ze(Ae.subject.active)(ee):!1},Pe=function(ee,Ae,ze){return ze(Ae)(ee)},at=function(ee){var Ae=ee.target,ze=ee.destination,lt=ee.viewport,Dt=ee.withDroppableDisplacement,Vt=ee.isVisibleThroughFrameFn,Zt=Dt?Re(Ae,ze):Ae;return Ke(Zt,ze,Vt)&&Pe(Zt,lt,Vt)},wt=function(ee){return at(Object(A.a)({},ee,{isVisibleThroughFrameFn:Ii}))},Rt=function(ee){return at(Object(A.a)({},ee,{isVisibleThroughFrameFn:yn}))},xt=function(ee){return at(Object(A.a)({},ee,{isVisibleThroughFrameFn:At(ee.destination.axis)}))},Lt=function(ee,Ae,ze){if(typeof ze=="boolean")return ze;if(!Ae)return!0;var lt=Ae.invisible,Dt=Ae.visible;if(lt[ee])return!1;var Vt=Dt[ee];return Vt?Vt.shouldAnimate:!0};function gr(Le,ee){var Ae=Le.page.marginBox,ze={top:ee.point.y,right:0,bottom:0,left:ee.point.x};return e(l(Ae,ze))}function Br(Le){var ee=Le.afterDragging,Ae=Le.destination,ze=Le.displacedBy,lt=Le.viewport,Dt=Le.forceShouldAnimate,Vt=Le.last;return ee.reduce(function(Ir,$r){var Tr=gr($r,ze),xr=$r.descriptor.id;Ir.all.push(xr);var zr=wt({target:Tr,destination:Ae,viewport:lt,withDroppableDisplacement:!0});if(!zr)return Ir.invisible[$r.descriptor.id]=!0,Ir;var nn=Lt(xr,Vt,Dt),On={draggableId:xr,shouldAnimate:nn};return Ir.visible[xr]=On,Ir},{all:[],visible:{},invisible:{}})}function Et(Le,ee){if(!Le.length)return 0;var Ae=Le[Le.length-1].descriptor.index;return ee.inHomeList?Ae:Ae+1}function it(Le){var ee=Le.insideDestination,Ae=Le.inHomeList,ze=Le.displacedBy,lt=Le.destination,Dt=Et(ee,{inHomeList:Ae});return{displaced:on,displacedBy:ze,at:{type:"REORDER",destination:{droppableId:lt.descriptor.id,index:Dt}}}}function rt(Le){var ee=Le.draggable,Ae=Le.insideDestination,ze=Le.destination,lt=Le.viewport,Dt=Le.displacedBy,Vt=Le.last,Zt=Le.index,Ir=Le.forceShouldAnimate,$r=st(ee,ze);if(Zt==null)return it({insideDestination:Ae,inHomeList:$r,displacedBy:Dt,destination:ze});var Tr=Z(Ae,function(gi){return gi.descriptor.index===Zt});if(!Tr)return it({insideDestination:Ae,inHomeList:$r,displacedBy:Dt,destination:ze});var xr=Ut(ee,Ae),zr=Ae.indexOf(Tr),nn=xr.slice(zr),On=Br({afterDragging:nn,destination:ze,displacedBy:Dt,last:Vt,viewport:lt.frame,forceShouldAnimate:Ir});return{displaced:On,displacedBy:Dt,at:{type:"REORDER",destination:{droppableId:ze.descriptor.id,index:Zt}}}}function Pt(Le,ee){return Boolean(ee.effected[Le])}var Ht=function(ee){var Ae=ee.isMovingForward,ze=ee.destination,lt=ee.draggables,Dt=ee.combine,Vt=ee.afterCritical;if(!ze.isCombineEnabled)return null;var Zt=Dt.draggableId,Ir=lt[Zt],$r=Ir.descriptor.index,Tr=Pt(Zt,Vt);return Tr?Ae?$r:$r-1:Ae?$r+1:$r},bt=function(ee){var Ae=ee.isMovingForward,ze=ee.isInHomeList,lt=ee.insideDestination,Dt=ee.location;if(!lt.length)return null;var Vt=Dt.index,Zt=Ae?Vt+1:Vt-1,Ir=lt[0].descriptor.index,$r=lt[lt.length-1].descriptor.index,Tr=ze?$r:$r+1;return Zt<Ir||Zt>Tr?null:Zt},Gt=function(ee){var Ae=ee.isMovingForward,ze=ee.isInHomeList,lt=ee.draggable,Dt=ee.draggables,Vt=ee.destination,Zt=ee.insideDestination,Ir=ee.previousImpact,$r=ee.viewport,Tr=ee.afterCritical,xr=Ir.at;if(xr||me(!1),xr.type==="REORDER"){var zr=bt({isMovingForward:Ae,isInHomeList:ze,location:xr.destination,insideDestination:Zt});return zr==null?null:rt({draggable:lt,insideDestination:Zt,destination:Vt,viewport:$r,last:Ir.displaced,displacedBy:Ir.displacedBy,index:zr})}var nn=Ht({isMovingForward:Ae,destination:Vt,displaced:Ir.displaced,draggables:Dt,combine:xr.combine,afterCritical:Tr});return nn==null?null:rt({draggable:lt,insideDestination:Zt,destination:Vt,viewport:$r,last:Ir.displaced,displacedBy:Ir.displacedBy,index:nn})},ut=function(ee){var Ae=ee.displaced,ze=ee.afterCritical,lt=ee.combineWith,Dt=ee.displacedBy,Vt=Boolean(Ae.visible[lt]||Ae.invisible[lt]);return Pt(lt,ze)?Vt?Te:Ee(Dt.point):Vt?Dt.point:Te},Kt=function(ee){var Ae=ee.afterCritical,ze=ee.impact,lt=ee.draggables,Dt=ar(ze);Dt||me(!1);var Vt=Dt.draggableId,Zt=lt[Vt].page.borderBox.center,Ir=ut({displaced:ze.displaced,afterCritical:Ae,combineWith:Vt,displacedBy:ze.displacedBy});return Se(Zt,Ir)},Ar=function(ee,Ae){return Ae.margin[ee.start]+Ae.borderBox[ee.size]/2},ir=function(ee,Ae){return Ae.margin[ee.end]+Ae.borderBox[ee.size]/2},pr=function(ee,Ae,ze){return Ae[ee.crossAxisStart]+ze.margin[ee.crossAxisStart]+ze.borderBox[ee.crossAxisSize]/2},tn=function(ee){var Ae=ee.axis,ze=ee.moveRelativeTo,lt=ee.isMoving;return Ve(Ae.line,ze.marginBox[Ae.end]+Ar(Ae,lt),pr(Ae,ze.marginBox,lt))},fn=function(ee){var Ae=ee.axis,ze=ee.moveRelativeTo,lt=ee.isMoving;return Ve(Ae.line,ze.marginBox[Ae.start]-ir(Ae,lt),pr(Ae,ze.marginBox,lt))},Mn=function(ee){var Ae=ee.axis,ze=ee.moveInto,lt=ee.isMoving;return Ve(Ae.line,ze.contentBox[Ae.start]+Ar(Ae,lt),pr(Ae,ze.contentBox,lt))},Yn=function(ee){var Ae=ee.impact,ze=ee.draggable,lt=ee.draggables,Dt=ee.droppable,Vt=ee.afterCritical,Zt=Lr(Dt.descriptor.id,lt),Ir=ze.page,$r=Dt.axis;if(!Zt.length)return Mn({axis:$r,moveInto:Dt.page,isMoving:Ir});var Tr=Ae.displaced,xr=Ae.displacedBy,zr=Tr.all[0];if(zr){var nn=lt[zr];if(Pt(zr,Vt))return fn({axis:$r,moveRelativeTo:nn.page,isMoving:Ir});var On=m(nn.page,xr.point);return fn({axis:$r,moveRelativeTo:On,isMoving:Ir})}var gi=Zt[Zt.length-1];if(gi.descriptor.id===ze.descriptor.id)return Ir.borderBox.center;if(Pt(gi.descriptor.id,Vt)){var Ai=m(gi.page,Ee(Vt.displacedBy.point));return tn({axis:$r,moveRelativeTo:Ai,isMoving:Ir})}return tn({axis:$r,moveRelativeTo:gi.page,isMoving:Ir})},si=function(ee,Ae){var ze=ee.frame;return ze?Se(Ae,ze.scroll.diff.displacement):Ae},vi=function(ee){var Ae=ee.impact,ze=ee.draggable,lt=ee.droppable,Dt=ee.draggables,Vt=ee.afterCritical,Zt=ze.page.borderBox.center,Ir=Ae.at;return lt&&Ir?Ir.type==="REORDER"?Yn({impact:Ae,draggable:ze,draggables:Dt,droppable:lt,afterCritical:Vt}):Kt({impact:Ae,draggables:Dt,afterCritical:Vt}):Zt},xi=function(ee){var Ae=vi(ee),ze=ee.droppable,lt=ze?si(ze,Ae):Ae;return lt},_i=function(ee,Ae){var ze=le(Ae,ee.scroll.initial),lt=Ee(ze),Dt=e({top:Ae.y,bottom:Ae.y+ee.frame.height,left:Ae.x,right:Ae.x+ee.frame.width}),Vt={frame:Dt,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:Ae,diff:{value:ze,displacement:lt}}};return Vt};function Ze(Le,ee){return Le.map(function(Ae){return ee[Ae]})}function we(Le,ee){for(var Ae=0;Ae<ee.length;Ae++){var ze=ee[Ae].visible[Le];if(ze)return ze}return null}var Ne=function(ee){var Ae=ee.impact,ze=ee.viewport,lt=ee.destination,Dt=ee.draggables,Vt=ee.maxScrollChange,Zt=_i(ze,Se(ze.scroll.current,Vt)),Ir=lt.frame?ie(lt,Se(lt.frame.scroll.current,Vt)):lt,$r=Ae.displaced,Tr=Br({afterDragging:Ze($r.all,Dt),destination:lt,displacedBy:Ae.displacedBy,viewport:Zt.frame,last:$r,forceShouldAnimate:!1}),xr=Br({afterDragging:Ze($r.all,Dt),destination:Ir,displacedBy:Ae.displacedBy,viewport:ze.frame,last:$r,forceShouldAnimate:!1}),zr={},nn={},On=[$r,Tr,xr];$r.all.forEach(function(Ai){var Qi=we(Ai,On);if(Qi){nn[Ai]=Qi;return}zr[Ai]=!0});var gi=Object(A.a)({},Ae,{displaced:{all:$r.all,invisible:zr,visible:nn}});return gi},Fe=function(ee,Ae){return Se(ee.scroll.diff.displacement,Ae)},Ye=function(ee){var Ae=ee.pageBorderBoxCenter,ze=ee.draggable,lt=ee.viewport,Dt=Fe(lt,Ae),Vt=le(Dt,ze.page.borderBox.center);return Se(ze.client.borderBox.center,Vt)},We=function(ee){var Ae=ee.draggable,ze=ee.destination,lt=ee.newPageBorderBoxCenter,Dt=ee.viewport,Vt=ee.withDroppableDisplacement,Zt=ee.onlyOnMainAxis,Ir=Zt===void 0?!1:Zt,$r=le(lt,Ae.page.borderBox.center),Tr=Je(Ae.page.borderBox,$r),xr={target:Tr,destination:ze,withDroppableDisplacement:Vt,viewport:Dt};return Ir?xt(xr):Rt(xr)},qe=function(ee){var Ae=ee.isMovingForward,ze=ee.draggable,lt=ee.destination,Dt=ee.draggables,Vt=ee.previousImpact,Zt=ee.viewport,Ir=ee.previousPageBorderBoxCenter,$r=ee.previousClientSelection,Tr=ee.afterCritical;if(!lt.isEnabled)return null;var xr=Lr(lt.descriptor.id,Dt),zr=st(ze,lt),nn=kt({isMovingForward:Ae,draggable:ze,destination:lt,insideDestination:xr,previousImpact:Vt})||Gt({isMovingForward:Ae,isInHomeList:zr,draggable:ze,draggables:Dt,destination:lt,insideDestination:xr,previousImpact:Vt,viewport:Zt,afterCritical:Tr});if(!nn)return null;var On=xi({impact:nn,draggable:ze,droppable:lt,draggables:Dt,afterCritical:Tr}),gi=We({draggable:ze,destination:lt,newPageBorderBoxCenter:On,viewport:Zt.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(gi){var Ai=Ye({pageBorderBoxCenter:On,draggable:ze,viewport:Zt});return{clientSelection:Ai,impact:nn,scrollJumpRequest:null}}var Qi=le(On,Ir),Bi=Ne({impact:nn,viewport:Zt,destination:lt,draggables:Dt,maxScrollChange:Qi});return{clientSelection:$r,impact:Bi,scrollJumpRequest:Qi}},yt=function(ee){var Ae=ee.subject.active;return Ae||me(!1),Ae},ot=function(ee){var Ae=ee.isMovingForward,ze=ee.pageBorderBoxCenter,lt=ee.source,Dt=ee.droppables,Vt=ee.viewport,Zt=lt.subject.active;if(!Zt)return null;var Ir=lt.axis,$r=zn(Zt[Ir.start],Zt[Ir.end]),Tr=dt(Dt).filter(function(zr){return zr!==lt}).filter(function(zr){return zr.isEnabled}).filter(function(zr){return Boolean(zr.subject.active)}).filter(function(zr){return Ii(Vt.frame)(yt(zr))}).filter(function(zr){var nn=yt(zr);return Ae?Zt[Ir.crossAxisEnd]<nn[Ir.crossAxisEnd]:nn[Ir.crossAxisStart]<Zt[Ir.crossAxisStart]}).filter(function(zr){var nn=yt(zr),On=zn(nn[Ir.start],nn[Ir.end]);return $r(nn[Ir.start])||$r(nn[Ir.end])||On(Zt[Ir.start])||On(Zt[Ir.end])}).sort(function(zr,nn){var On=yt(zr)[Ir.crossAxisStart],gi=yt(nn)[Ir.crossAxisStart];return Ae?On-gi:gi-On}).filter(function(zr,nn,On){return yt(zr)[Ir.crossAxisStart]===yt(On[0])[Ir.crossAxisStart]});if(!Tr.length)return null;if(Tr.length===1)return Tr[0];var xr=Tr.filter(function(zr){var nn=zn(yt(zr)[Ir.start],yt(zr)[Ir.end]);return nn(ze[Ir.line])});return xr.length===1?xr[0]:xr.length>1?xr.sort(function(zr,nn){return yt(zr)[Ir.start]-yt(nn)[Ir.start]})[0]:Tr.sort(function(zr,nn){var On=et(ze,St(yt(zr))),gi=et(ze,St(yt(nn)));return On!==gi?On-gi:yt(zr)[Ir.start]-yt(nn)[Ir.start]})[0]},$t=function(ee,Ae){var ze=ee.page.borderBox.center;return Pt(ee.descriptor.id,Ae)?le(ze,Ae.displacedBy.point):ze},Mr=function(ee,Ae){var ze=ee.page.borderBox;return Pt(ee.descriptor.id,Ae)?Je(ze,Ee(Ae.displacedBy.point)):ze},Sr=function(ee){var Ae=ee.pageBorderBoxCenter,ze=ee.viewport,lt=ee.destination,Dt=ee.insideDestination,Vt=ee.afterCritical,Zt=Dt.filter(function(Ir){return Rt({target:Mr(Ir,Vt),destination:lt,viewport:ze.frame,withDroppableDisplacement:!0})}).sort(function(Ir,$r){var Tr=vt(Ae,si(lt,$t(Ir,Vt))),xr=vt(Ae,si(lt,$t($r,Vt)));return Tr<xr?-1:xr<Tr?1:Ir.descriptor.index-$r.descriptor.index});return Zt[0]||null},jr=I(function(ee,Ae){var ze=Ae[ee.line];return{value:ze,point:Ve(ee.line,ze)}}),tr=function(ee,Ae,ze){var lt=ee.axis;if(ee.descriptor.mode==="virtual")return Ve(lt.line,Ae[lt.line]);var Dt=ee.subject.page.contentBox[lt.size],Vt=Lr(ee.descriptor.id,ze),Zt=Vt.reduce(function(Tr,xr){return Tr+xr.client.marginBox[lt.size]},0),Ir=Zt+Ae[lt.line],$r=Ir-Dt;return $r<=0?null:Ve(lt.line,$r)},gn=function(ee,Ae){return Object(A.a)({},ee,{scroll:Object(A.a)({},ee.scroll,{max:Ae})})},sr=function(ee,Ae,ze){var lt=ee.frame;st(Ae,ee)&&me(!1),ee.subject.withPlaceholder&&me(!1);var Dt=jr(ee.axis,Ae.displaceBy).point,Vt=tr(ee,Dt,ze),Zt={placeholderSize:Dt,increasedBy:Vt,oldFrameMaxScroll:ee.frame?ee.frame.scroll.max:null};if(!lt){var Ir=Xe({page:ee.subject.page,withPlaceholder:Zt,axis:ee.axis,frame:ee.frame});return Object(A.a)({},ee,{subject:Ir})}var $r=Vt?Se(lt.scroll.max,Vt):lt.scroll.max,Tr=gn(lt,$r),xr=Xe({page:ee.subject.page,withPlaceholder:Zt,axis:ee.axis,frame:Tr});return Object(A.a)({},ee,{subject:xr,frame:Tr})},un=function(ee){var Ae=ee.subject.withPlaceholder;Ae||me(!1);var ze=ee.frame;if(!ze){var lt=Xe({page:ee.subject.page,axis:ee.axis,frame:null,withPlaceholder:null});return Object(A.a)({},ee,{subject:lt})}var Dt=Ae.oldFrameMaxScroll;Dt||me(!1);var Vt=gn(ze,Dt),Zt=Xe({page:ee.subject.page,axis:ee.axis,frame:Vt,withPlaceholder:null});return Object(A.a)({},ee,{subject:Zt,frame:Vt})},an=function(ee){var Ae=ee.previousPageBorderBoxCenter,ze=ee.moveRelativeTo,lt=ee.insideDestination,Dt=ee.draggable,Vt=ee.draggables,Zt=ee.destination,Ir=ee.viewport,$r=ee.afterCritical;if(!ze){if(lt.length)return null;var Tr={displaced:on,displacedBy:Rr,at:{type:"REORDER",destination:{droppableId:Zt.descriptor.id,index:0}}},xr=xi({impact:Tr,draggable:Dt,droppable:Zt,draggables:Vt,afterCritical:$r}),zr=st(Dt,Zt)?Zt:sr(Zt,Dt,Vt),nn=We({draggable:Dt,destination:zr,newPageBorderBoxCenter:xr,viewport:Ir.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return nn?Tr:null}var On=Boolean(Ae[Zt.axis.line]<=ze.page.borderBox.center[Zt.axis.line]),gi=function(){var Qi=ze.descriptor.index;return ze.descriptor.id===Dt.descriptor.id||On?Qi:Qi+1}(),Ai=jr(Zt.axis,Dt.displaceBy);return rt({draggable:Dt,insideDestination:lt,destination:Zt,viewport:Ir,displacedBy:Ai,last:on,index:gi})},Pr=function(ee){var Ae=ee.isMovingForward,ze=ee.previousPageBorderBoxCenter,lt=ee.draggable,Dt=ee.isOver,Vt=ee.draggables,Zt=ee.droppables,Ir=ee.viewport,$r=ee.afterCritical,Tr=ot({isMovingForward:Ae,pageBorderBoxCenter:ze,source:Dt,droppables:Zt,viewport:Ir});if(!Tr)return null;var xr=Lr(Tr.descriptor.id,Vt),zr=Sr({pageBorderBoxCenter:ze,viewport:Ir,destination:Tr,insideDestination:xr,afterCritical:$r}),nn=an({previousPageBorderBoxCenter:ze,destination:Tr,draggable:lt,draggables:Vt,moveRelativeTo:zr,insideDestination:xr,viewport:Ir,afterCritical:$r});if(!nn)return null;var On=xi({impact:nn,draggable:lt,droppable:Tr,draggables:Vt,afterCritical:$r}),gi=Ye({pageBorderBoxCenter:On,draggable:lt,viewport:Ir});return{clientSelection:gi,impact:nn,scrollJumpRequest:null}},In=function(ee){var Ae=ee.at;return Ae?Ae.type==="REORDER"?Ae.destination.droppableId:Ae.combine.droppableId:null},ci=function(ee,Ae){var ze=In(ee);return ze?Ae[ze]:null},Ui=function(ee){var Ae=ee.state,ze=ee.type,lt=ci(Ae.impact,Ae.dimensions.droppables),Dt=Boolean(lt),Vt=Ae.dimensions.droppables[Ae.critical.droppable.id],Zt=lt||Vt,Ir=Zt.axis.direction,$r=Ir==="vertical"&&(ze==="MOVE_UP"||ze==="MOVE_DOWN")||Ir==="horizontal"&&(ze==="MOVE_LEFT"||ze==="MOVE_RIGHT");if($r&&!Dt)return null;var Tr=ze==="MOVE_DOWN"||ze==="MOVE_RIGHT",xr=Ae.dimensions.draggables[Ae.critical.draggable.id],zr=Ae.current.page.borderBoxCenter,nn=Ae.dimensions,On=nn.draggables,gi=nn.droppables;return $r?qe({isMovingForward:Tr,previousPageBorderBoxCenter:zr,draggable:xr,destination:Zt,draggables:On,viewport:Ae.viewport,previousClientSelection:Ae.current.client.selection,previousImpact:Ae.impact,afterCritical:Ae.afterCritical}):Pr({isMovingForward:Tr,previousPageBorderBoxCenter:zr,draggable:xr,isOver:Zt,draggables:On,droppables:gi,viewport:Ae.viewport,afterCritical:Ae.afterCritical})};function ki(Le){return Le.phase==="DRAGGING"||Le.phase==="COLLECTING"}function Ri(Le){var ee=zn(Le.top,Le.bottom),Ae=zn(Le.left,Le.right);return function(lt){return ee(lt.y)&&Ae(lt.x)}}function Ki(Le,ee){return Le.left<ee.right&&Le.right>ee.left&&Le.top<ee.bottom&&Le.bottom>ee.top}function Hr(Le){var ee=Le.pageBorderBox,Ae=Le.draggable,ze=Le.candidates,lt=Ae.page.borderBox.center,Dt=ze.map(function(Vt){var Zt=Vt.axis,Ir=Ve(Vt.axis.line,ee.center[Zt.line],Vt.page.borderBox.center[Zt.crossAxisLine]);return{id:Vt.descriptor.id,distance:vt(lt,Ir)}}).sort(function(Vt,Zt){return Zt.distance-Vt.distance});return Dt[0]?Dt[0].id:null}function Cn(Le){var ee=Le.pageBorderBox,Ae=Le.draggable,ze=Le.droppables,lt=dt(ze).filter(function(Dt){if(!Dt.isEnabled)return!1;var Vt=Dt.subject.active;if(!Vt)return!1;if(!Ki(ee,Vt))return!1;if(Ri(Vt)(ee.center))return!0;var Zt=Dt.axis,Ir=Vt.center[Zt.crossAxisLine],$r=ee[Zt.crossAxisStart],Tr=ee[Zt.crossAxisEnd],xr=zn(Vt[Zt.crossAxisStart],Vt[Zt.crossAxisEnd]),zr=xr($r),nn=xr(Tr);return!zr&&!nn?!0:zr?$r<Ir:Tr>Ir});return lt.length?lt.length===1?lt[0].descriptor.id:Hr({pageBorderBox:ee,draggable:Ae,candidates:lt}):null}var kr=function(ee,Ae){return e(Je(ee,Ae))},mr=function(ee,Ae){var ze=ee.frame;return ze?kr(Ae,ze.scroll.diff.value):Ae};function Cr(Le){var ee=Le.displaced,Ae=Le.id;return Boolean(ee.visible[Ae]||ee.invisible[Ae])}function Nt(Le){var ee=Le.draggable,Ae=Le.closest,ze=Le.inHomeList;return Ae?ze&&Ae.descriptor.index>ee.descriptor.index?Ae.descriptor.index-1:Ae.descriptor.index:null}var wr=function(ee){var Ae=ee.pageBorderBoxWithDroppableScroll,ze=ee.draggable,lt=ee.destination,Dt=ee.insideDestination,Vt=ee.last,Zt=ee.viewport,Ir=ee.afterCritical,$r=lt.axis,Tr=jr(lt.axis,ze.displaceBy),xr=Tr.value,zr=Ae[$r.start],nn=Ae[$r.end],On=Ut(ze,Dt),gi=Z(On,function(Qi){var Bi=Qi.descriptor.id,Ma=Qi.page.borderBox.center[$r.line],ea=Pt(Bi,Ir),oo=Cr({displaced:Vt,id:Bi});return ea?oo?nn<=Ma:zr<Ma-xr:oo?nn<=Ma+xr:zr<Ma}),Ai=Nt({draggable:ze,closest:gi,inHomeList:st(ze,lt)});return rt({draggable:ze,insideDestination:Dt,destination:lt,viewport:Zt,last:Vt,displacedBy:Tr,index:Ai})},Gr=4,Kr=function(ee){var Ae=ee.draggable,ze=ee.pageBorderBoxWithDroppableScroll,lt=ee.previousImpact,Dt=ee.destination,Vt=ee.insideDestination,Zt=ee.afterCritical;if(!Dt.isCombineEnabled)return null;var Ir=Dt.axis,$r=jr(Dt.axis,Ae.displaceBy),Tr=$r.value,xr=ze[Ir.start],zr=ze[Ir.end],nn=Ut(Ae,Vt),On=Z(nn,function(Ai){var Qi=Ai.descriptor.id,Bi=Ai.page.borderBox,Ma=Bi[Ir.size],ea=Ma/Gr,oo=Pt(Qi,Zt),Ba=Cr({displaced:lt.displaced,id:Qi});return oo?Ba?zr>Bi[Ir.start]+ea&&zr<Bi[Ir.end]-ea:xr>Bi[Ir.start]-Tr+ea&&xr<Bi[Ir.end]-Tr-ea:Ba?zr>Bi[Ir.start]+Tr+ea&&zr<Bi[Ir.end]+Tr-ea:xr>Bi[Ir.start]+ea&&xr<Bi[Ir.end]-ea});if(!On)return null;var gi={displacedBy:$r,displaced:lt.displaced,at:{type:"COMBINE",combine:{draggableId:On.descriptor.id,droppableId:Dt.descriptor.id}}};return gi},qr=function(ee){var Ae=ee.pageOffset,ze=ee.draggable,lt=ee.draggables,Dt=ee.droppables,Vt=ee.previousImpact,Zt=ee.viewport,Ir=ee.afterCritical,$r=kr(ze.page.borderBox,Ae),Tr=Cn({pageBorderBox:$r,draggable:ze,droppables:Dt});if(!Tr)return Sn;var xr=Dt[Tr],zr=Lr(xr.descriptor.id,lt),nn=mr(xr,$r);return Kr({pageBorderBoxWithDroppableScroll:nn,draggable:ze,previousImpact:Vt,destination:xr,insideDestination:zr,afterCritical:Ir})||wr({pageBorderBoxWithDroppableScroll:nn,draggable:ze,destination:xr,insideDestination:zr,last:Vt.displaced,viewport:Zt,afterCritical:Ir})},oi=function(ee,Ae){var ze;return Object(A.a)({},ee,(ze={},ze[Ae.descriptor.id]=Ae,ze))},Gn=function(ee){var Ae=ee.previousImpact,ze=ee.impact,lt=ee.droppables,Dt=In(Ae),Vt=In(ze);if(!Dt)return lt;if(Dt===Vt)return lt;var Zt=lt[Dt];if(!Zt.subject.withPlaceholder)return lt;var Ir=un(Zt);return oi(lt,Ir)},Ti=function(ee){var Ae=ee.draggable,ze=ee.draggables,lt=ee.droppables,Dt=ee.previousImpact,Vt=ee.impact,Zt=Gn({previousImpact:Dt,impact:Vt,droppables:lt}),Ir=In(Vt);if(!Ir)return Zt;var $r=lt[Ir];if(st(Ae,$r))return Zt;if($r.subject.withPlaceholder)return Zt;var Tr=sr($r,Ae,ze);return oi(Zt,Tr)},hn=function(ee){var Ae=ee.state,ze=ee.clientSelection,lt=ee.dimensions,Dt=ee.viewport,Vt=ee.impact,Zt=ee.scrollJumpRequest,Ir=Dt||Ae.viewport,$r=lt||Ae.dimensions,Tr=ze||Ae.current.client.selection,xr=le(Tr,Ae.initial.client.selection),zr={offset:xr,selection:Tr,borderBoxCenter:Se(Ae.initial.client.borderBoxCenter,xr)},nn={selection:Se(zr.selection,Ir.scroll.current),borderBoxCenter:Se(zr.borderBoxCenter,Ir.scroll.current),offset:Se(zr.offset,Ir.scroll.diff.value)},On={client:zr,page:nn};if(Ae.phase==="COLLECTING")return Object(A.a)({phase:"COLLECTING"},Ae,{dimensions:$r,viewport:Ir,current:On});var gi=$r.draggables[Ae.critical.draggable.id],Ai=Vt||qr({pageOffset:nn.offset,draggable:gi,draggables:$r.draggables,droppables:$r.droppables,previousImpact:Ae.impact,viewport:Ir,afterCritical:Ae.afterCritical}),Qi=Ti({draggable:gi,impact:Ai,previousImpact:Ae.impact,draggables:$r.draggables,droppables:$r.droppables}),Bi=Object(A.a)({},Ae,{current:On,dimensions:{draggables:$r.draggables,droppables:Qi},impact:Ai,viewport:Ir,scrollJumpRequest:Zt||null,forceShouldAnimate:Zt?!1:null});return Bi};function _r(Le,ee){return Le.map(function(Ae){return ee[Ae]})}var En=function(ee){var Ae=ee.impact,ze=ee.viewport,lt=ee.draggables,Dt=ee.destination,Vt=ee.forceShouldAnimate,Zt=Ae.displaced,Ir=_r(Zt.all,lt),$r=Br({afterDragging:Ir,destination:Dt,displacedBy:Ae.displacedBy,viewport:ze.frame,forceShouldAnimate:Vt,last:Zt});return Object(A.a)({},Ae,{displaced:$r})},Fn=function(ee){var Ae=ee.impact,ze=ee.draggable,lt=ee.droppable,Dt=ee.draggables,Vt=ee.viewport,Zt=ee.afterCritical,Ir=xi({impact:Ae,draggable:ze,draggables:Dt,droppable:lt,afterCritical:Zt});return Ye({pageBorderBoxCenter:Ir,draggable:ze,viewport:Vt})},Vn=function(ee){var Ae=ee.state,ze=ee.dimensions,lt=ee.viewport;Ae.movementMode==="SNAP"||me(!1);var Dt=Ae.impact,Vt=lt||Ae.viewport,Zt=ze||Ae.dimensions,Ir=Zt.draggables,$r=Zt.droppables,Tr=Ir[Ae.critical.draggable.id],xr=In(Dt);xr||me(!1);var zr=$r[xr],nn=En({impact:Dt,viewport:Vt,destination:zr,draggables:Ir}),On=Fn({impact:nn,draggable:Tr,droppable:zr,draggables:Ir,viewport:Vt,afterCritical:Ae.afterCritical});return hn({impact:nn,clientSelection:On,state:Ae,dimensions:Zt,viewport:Vt})},qn=function(ee){return{index:ee.index,droppableId:ee.droppableId}},Oi=function(ee){var Ae=ee.draggable,ze=ee.home,lt=ee.draggables,Dt=ee.viewport,Vt=jr(ze.axis,Ae.displaceBy),Zt=Lr(ze.descriptor.id,lt),Ir=Zt.indexOf(Ae);Ir!==-1||me(!1);var $r=Zt.slice(Ir+1),Tr=$r.reduce(function(On,gi){return On[gi.descriptor.id]=!0,On},{}),xr={inVirtualList:ze.descriptor.mode==="virtual",displacedBy:Vt,effected:Tr},zr=Br({afterDragging:$r,destination:ze,displacedBy:Vt,last:null,viewport:Dt.frame,forceShouldAnimate:!1}),nn={displaced:zr,displacedBy:Vt,at:{type:"REORDER",destination:qn(Ae.descriptor)}};return{impact:nn,afterCritical:xr}},Ni=function(ee,Ae){return{draggables:ee.draggables,droppables:oi(ee.droppables,Ae)}},Mi=function(ee){},Ji=function(ee){},ma=function(ee){var Ae=ee.draggable,ze=ee.offset,lt=ee.initialWindowScroll,Dt=m(Ae.client,ze),Vt=v(Dt,lt),Zt=Object(A.a)({},Ae,{placeholder:Object(A.a)({},Ae.placeholder,{client:Dt}),client:Dt,page:Vt});return Zt},la=function(ee){var Ae=ee.frame;return Ae||me(!1),Ae},qa=function(ee){var Ae=ee.additions,ze=ee.updatedDroppables,lt=ee.viewport,Dt=lt.scroll.diff.value;return Ae.map(function(Vt){var Zt=Vt.descriptor.droppableId,Ir=ze[Zt],$r=la(Ir),Tr=$r.scroll.diff.value,xr=Se(Dt,Tr),zr=ma({draggable:Vt,offset:xr,initialWindowScroll:lt.scroll.initial});return zr})},bi=function(ee){var Ae=ee.state,ze=ee.published;Mi();var lt=ze.modified.map(function(ea){var oo=Ae.dimensions.droppables[ea.droppableId],Ba=ie(oo,ea.scroll);return Ba}),Dt=Object(A.a)({},Ae.dimensions.droppables,{},ct(lt)),Vt=Qe(qa({additions:ze.additions,updatedDroppables:Dt,viewport:Ae.viewport})),Zt=Object(A.a)({},Ae.dimensions.draggables,{},Vt);ze.removals.forEach(function(ea){delete Zt[ea]});var Ir={droppables:Dt,draggables:Zt},$r=In(Ae.impact),Tr=$r?Ir.droppables[$r]:null,xr=Ir.draggables[Ae.critical.draggable.id],zr=Ir.droppables[Ae.critical.droppable.id],nn=Oi({draggable:xr,home:zr,draggables:Zt,viewport:Ae.viewport}),On=nn.impact,gi=nn.afterCritical,Ai=Tr&&Tr.isCombineEnabled?Ae.impact:On,Qi=qr({pageOffset:Ae.current.page.offset,draggable:Ir.draggables[Ae.critical.draggable.id],draggables:Ir.draggables,droppables:Ir.droppables,previousImpact:Ai,viewport:Ae.viewport,afterCritical:gi});Ji();var Bi=Object(A.a)({phase:"DRAGGING"},Ae,{phase:"DRAGGING",impact:Qi,onLiftImpact:On,dimensions:Ir,afterCritical:gi,forceShouldAnimate:!1});if(Ae.phase==="COLLECTING")return Bi;var Ma=Object(A.a)({phase:"DROP_PENDING"},Bi,{phase:"DROP_PENDING",reason:Ae.reason,isWaiting:!1});return Ma},xn=function(ee){return ee.movementMode==="SNAP"},zi=function(ee,Ae,ze){var lt=Ni(ee.dimensions,Ae);return!xn(ee)||ze?hn({state:ee,dimensions:lt}):Vn({state:ee,dimensions:lt})};function oa(Le){return Le.isDragging&&Le.movementMode==="SNAP"?Object(A.a)({phase:"DRAGGING"},Le,{scrollJumpRequest:null}):Le}var Yi={phase:"IDLE",completed:null,shouldFlush:!1},ca=function(ee,Ae){if(ee===void 0&&(ee=Yi),Ae.type==="FLUSH")return Object(A.a)({},Yi,{shouldFlush:!0});if(Ae.type==="INITIAL_PUBLISH"){ee.phase==="IDLE"||me(!1);var ze=Ae.payload,lt=ze.critical,Dt=ze.clientSelection,Vt=ze.viewport,Zt=ze.dimensions,Ir=ze.movementMode,$r=Zt.draggables[lt.draggable.id],Tr=Zt.droppables[lt.droppable.id],xr={selection:Dt,borderBoxCenter:$r.client.borderBox.center,offset:Te},zr={client:xr,page:{selection:Se(xr.selection,Vt.scroll.initial),borderBoxCenter:Se(xr.selection,Vt.scroll.initial),offset:Se(xr.selection,Vt.scroll.diff.value)}},nn=dt(Zt.droppables).every(function(ns){return!ns.isFixedOnPage}),On=Oi({draggable:$r,home:Tr,draggables:Zt.draggables,viewport:Vt}),gi=On.impact,Ai=On.afterCritical,Qi={phase:"DRAGGING",isDragging:!0,critical:lt,movementMode:Ir,dimensions:Zt,initial:zr,current:zr,isWindowScrollAllowed:nn,impact:gi,afterCritical:Ai,onLiftImpact:gi,viewport:Vt,scrollJumpRequest:null,forceShouldAnimate:null};return Qi}if(Ae.type==="COLLECTION_STARTING"){if(ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING")return ee;ee.phase==="DRAGGING"||me(!1);var Bi=Object(A.a)({phase:"COLLECTING"},ee,{phase:"COLLECTING"});return Bi}if(Ae.type==="PUBLISH_WHILE_DRAGGING")return ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING"||me(!1),bi({state:ee,published:Ae.payload});if(Ae.type==="MOVE"){if(ee.phase==="DROP_PENDING")return ee;ki(ee)||me(!1);var Ma=Ae.payload.client;return fe(Ma,ee.current.client.selection)?ee:hn({state:ee,clientSelection:Ma,impact:xn(ee)?ee.impact:null})}if(Ae.type==="UPDATE_DROPPABLE_SCROLL"){if(ee.phase==="DROP_PENDING")return oa(ee);if(ee.phase==="COLLECTING")return oa(ee);ki(ee)||me(!1);var ea=Ae.payload,oo=ea.id,Ba=ea.newScroll,Ro=ee.dimensions.droppables[oo];if(!Ro)return ee;var Zo=ie(Ro,Ba);return zi(ee,Zo,!1)}if(Ae.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ee.phase==="DROP_PENDING")return ee;ki(ee)||me(!1);var P=Ae.payload,K=P.id,$=P.isEnabled,re=ee.dimensions.droppables[K];re||me(!1),re.isEnabled!==$||me(!1);var ue=Object(A.a)({},re,{isEnabled:$});return zi(ee,ue,!0)}if(Ae.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ee.phase==="DROP_PENDING")return ee;ki(ee)||me(!1);var Me=Ae.payload,gt=Me.id,zt=Me.isCombineEnabled,or=ee.dimensions.droppables[gt];or||me(!1),or.isCombineEnabled!==zt||me(!1);var cr=Object(A.a)({},or,{isCombineEnabled:zt});return zi(ee,cr,!0)}if(Ae.type==="MOVE_BY_WINDOW_SCROLL"){if(ee.phase==="DROP_PENDING"||ee.phase==="DROP_ANIMATING")return ee;ki(ee)||me(!1),ee.isWindowScrollAllowed||me(!1);var wn=Ae.payload.newScroll;if(fe(ee.viewport.scroll.current,wn))return oa(ee);var Rn=_i(ee.viewport,wn);return xn(ee)?Vn({state:ee,viewport:Rn}):hn({state:ee,viewport:Rn})}if(Ae.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!ki(ee))return ee;var ui=Ae.payload.maxScroll;if(fe(ui,ee.viewport.scroll.max))return ee;var hi=Object(A.a)({},ee.viewport,{scroll:Object(A.a)({},ee.viewport.scroll,{max:ui})});return Object(A.a)({phase:"DRAGGING"},ee,{viewport:hi})}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"||me(!1);var Wi=Ui({state:ee,type:Ae.type});return Wi?hn({state:ee,impact:Wi.impact,clientSelection:Wi.clientSelection,scrollJumpRequest:Wi.scrollJumpRequest}):ee}if(Ae.type==="DROP_PENDING"){var ia=Ae.payload.reason;ee.phase==="COLLECTING"||me(!1);var xa=Object(A.a)({phase:"DROP_PENDING"},ee,{phase:"DROP_PENDING",isWaiting:!0,reason:ia});return xa}if(Ae.type==="DROP_ANIMATE"){var ba=Ae.payload,va=ba.completed,Ua=ba.dropDuration,eo=ba.newHomeClientOffset;ee.phase==="DRAGGING"||ee.phase==="DROP_PENDING"||me(!1);var ko={phase:"DROP_ANIMATING",completed:va,dropDuration:Ua,newHomeClientOffset:eo,dimensions:ee.dimensions};return ko}if(Ae.type==="DROP_COMPLETE"){var To=Ae.payload.completed;return{phase:"IDLE",completed:To,shouldFlush:!1}}return ee},Hi=function(ee){return{type:"BEFORE_INITIAL_CAPTURE",payload:ee}},Ia=function(ee){return{type:"LIFT",payload:ee}},Da=function(ee){return{type:"INITIAL_PUBLISH",payload:ee}},Qa=function(ee){return{type:"PUBLISH_WHILE_DRAGGING",payload:ee}},Wo=function(){return{type:"COLLECTION_STARTING",payload:null}},po=function(ee){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ee}},Mo=function(ee){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ee}},Fo=function(ee){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ee}},yo=function(ee){return{type:"MOVE",payload:ee}},Oo=function(ee){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ee}},sa=function(ee){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ee}},hs=function(){return{type:"MOVE_UP",payload:null}},Jo=function(){return{type:"MOVE_DOWN",payload:null}},wo=function(){return{type:"MOVE_RIGHT",payload:null}},_o=function(){return{type:"MOVE_LEFT",payload:null}},Bo=function(){return{type:"FLUSH",payload:null}},Ds=function(ee){return{type:"DROP_ANIMATE",payload:ee}},Dr=function(ee){return{type:"DROP_COMPLETE",payload:ee}},rn=function(ee){return{type:"DROP",payload:ee}},Tn=function(ee){return{type:"DROP_PENDING",payload:ee}},en=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function ur(Le){if(Le.length<=1)return;for(var ee=Le.map(function(Zt){return Zt.descriptor.index}),Ae={},ze=1;ze<ee.length;ze++){var lt=ee[ze],Dt=ee[ze-1];lt!==Dt+1&&(Ae[lt]=!0)}if(!Object.keys(Ae).length)return;var Vt=ee.map(function(Zt){var Ir=Boolean(Ae[Zt]);return Ir?"[\u{1F525}"+Zt+"]":""+Zt}).join(", ")}function sn(Le,ee){if(!1)var Ae}var Bn=function(ee){return function(Ae){var ze=Ae.getState,lt=Ae.dispatch;return function(Dt){return function(Vt){if(Vt.type!=="LIFT"){Dt(Vt);return}var Zt=Vt.payload,Ir=Zt.id,$r=Zt.clientSelection,Tr=Zt.movementMode,xr=ze();xr.phase==="DROP_ANIMATING"&&lt(Dr({completed:xr.completed})),ze().phase==="IDLE"||me(!1),lt(Bo()),lt(Hi({draggableId:Ir,movementMode:Tr}));var zr={shouldPublishImmediately:Tr==="SNAP"},nn={draggableId:Ir,scrollOptions:zr},On=ee.startPublishing(nn),gi=On.critical,Ai=On.dimensions,Qi=On.viewport;sn(gi,Ai),lt(Da({critical:gi,dimensions:Ai,clientSelection:$r,movementMode:Tr,viewport:Qi}))}}}},Hn=function(ee){return function(){return function(Ae){return function(ze){ze.type==="INITIAL_PUBLISH"&&ee.dragging(),ze.type==="DROP_ANIMATE"&&ee.dropping(ze.payload.completed.result.reason),(ze.type==="FLUSH"||ze.type==="DROP_COMPLETE")&&ee.resting(),Ae(ze)}}}},Li={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Ci={opacity:{drop:0,combining:.7},scale:{drop:.75}},Jn={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},mi=Jn.outOfTheWay+"s "+Li.outOfTheWay,yi={fluid:"opacity "+mi,snap:"transform "+mi+", opacity "+mi,drop:function(ee){var Ae=ee+"s "+Li.drop;return"transform "+Ae+", opacity "+Ae},outOfTheWay:"transform "+mi,placeholder:"height "+mi+", width "+mi+", margin "+mi},da=function(ee){return fe(ee,Te)?null:"translate("+ee.x+"px, "+ee.y+"px)"},ha={moveTo:da,drop:function(ee,Ae){var ze=da(ee);return ze?Ae?ze+" scale("+Ci.scale.drop+")":ze:null}},Pa=Jn.minDropTime,Ra=Jn.maxDropTime,so=Ra-Pa,La=1500,lo=.6,So=function(ee){var Ae=ee.current,ze=ee.destination,lt=ee.reason,Dt=vt(Ae,ze);if(Dt<=0)return Pa;if(Dt>=La)return Ra;var Vt=Dt/La,Zt=Pa+so*Vt,Ir=lt==="CANCEL"?Zt*lo:Zt;return Number(Ir.toFixed(2))},Qt=function(ee){var Ae=ee.impact,ze=ee.draggable,lt=ee.dimensions,Dt=ee.viewport,Vt=ee.afterCritical,Zt=lt.draggables,Ir=lt.droppables,$r=In(Ae),Tr=$r?Ir[$r]:null,xr=Ir[ze.descriptor.droppableId],zr=Fn({impact:Ae,draggable:ze,draggables:Zt,afterCritical:Vt,droppable:Tr||xr,viewport:Dt}),nn=le(zr,ze.client.borderBox.center);return nn},Vr=function(ee){var Ae=ee.draggables,ze=ee.reason,lt=ee.lastImpact,Dt=ee.home,Vt=ee.viewport,Zt=ee.onLiftImpact;if(!lt.at||ze!=="DROP"){var Ir=En({draggables:Ae,impact:Zt,destination:Dt,viewport:Vt,forceShouldAnimate:!0});return{impact:Ir,didDropInsideDroppable:!1}}if(lt.at.type==="REORDER")return{impact:lt,didDropInsideDroppable:!0};var $r=Object(A.a)({},lt,{displaced:on});return{impact:$r,didDropInsideDroppable:!0}},cn=function(ee){var Ae=ee.getState,ze=ee.dispatch;return function(lt){return function(Dt){if(Dt.type!=="DROP"){lt(Dt);return}var Vt=Ae(),Zt=Dt.payload.reason;if(Vt.phase==="COLLECTING"){ze(Tn({reason:Zt}));return}if(Vt.phase==="IDLE")return;var Ir=Vt.phase==="DROP_PENDING"&&Vt.isWaiting;Ir&&me(!1),Vt.phase==="DRAGGING"||Vt.phase==="DROP_PENDING"||me(!1);var $r=Vt.critical,Tr=Vt.dimensions,xr=Tr.draggables[Vt.critical.draggable.id],zr=Vr({reason:Zt,lastImpact:Vt.impact,afterCritical:Vt.afterCritical,onLiftImpact:Vt.onLiftImpact,home:Vt.dimensions.droppables[Vt.critical.droppable.id],viewport:Vt.viewport,draggables:Vt.dimensions.draggables}),nn=zr.impact,On=zr.didDropInsideDroppable,gi=On?Wt(nn):null,Ai=On?ar(nn):null,Qi={index:$r.draggable.index,droppableId:$r.droppable.id},Bi={draggableId:xr.descriptor.id,type:xr.descriptor.type,source:Qi,reason:Zt,mode:Vt.movementMode,destination:gi,combine:Ai},Ma=Qt({impact:nn,draggable:xr,dimensions:Tr,viewport:Vt.viewport,afterCritical:Vt.afterCritical}),ea={critical:Vt.critical,afterCritical:Vt.afterCritical,result:Bi,impact:nn},oo=!fe(Vt.current.client.offset,Ma)||Boolean(Bi.combine);if(!oo){ze(Dr({completed:ea}));return}var Ba=So({current:Vt.current.client.offset,destination:Ma,reason:Zt}),Ro={newHomeClientOffset:Ma,dropDuration:Ba,completed:ea};ze(Ds(Ro))}}},vn=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function ni(Le){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(Ae){if(Ae.target!==window&&Ae.target!==window.document)return;Le()}}}function li(Le){var ee=Le.onWindowScroll;function Ae(){ee(vn())}var ze=N(Ae),lt=ni(ze),Dt=de;function Vt(){return Dt!==de}function Zt(){Vt()&&me(!1),Dt=ve(window,[lt])}function Ir(){Vt()||me(!1),ze.cancel(),Dt(),Dt=de}return{start:Zt,stop:Ir,isActive:Vt}}var fi=function(ee){return ee.type==="DROP_COMPLETE"||ee.type==="DROP_ANIMATE"||ee.type==="FLUSH"},di=function(ee){var Ae=li({onWindowScroll:function(lt){ee.dispatch(Oo({newScroll:lt}))}});return function(ze){return function(lt){!Ae.isActive()&&lt.type==="INITIAL_PUBLISH"&&Ae.start(),Ae.isActive()&&fi(lt)&&Ae.stop(),ze(lt)}}},Jt=function(ee){var Ae=!1,ze=!1,lt=setTimeout(function(){ze=!0}),Dt=function(Zt){if(Ae)return;if(ze)return;Ae=!0,ee(Zt),clearTimeout(lt)};return Dt.wasCalled=function(){return Ae},Dt},Ot=function(){var ee=[],Ae=function(Vt){var Zt=Ce(ee,function(Tr){return Tr.timerId===Vt});Zt!==-1||me(!1);var Ir=ee.splice(Zt,1),$r=Ir[0];$r.callback()},ze=function(Vt){var Zt=setTimeout(function(){return Ae(Zt)}),Ir={timerId:Zt,callback:Vt};ee.push(Ir)},lt=function(){if(!ee.length)return;var Vt=[].concat(ee);ee.length=0,Vt.forEach(function(Zt){clearTimeout(Zt.timerId),Zt.callback()})};return{add:ze,flush:lt}},yr=function(ee,Ae){return ee==null&&Ae==null?!0:ee==null||Ae==null?!1:ee.droppableId===Ae.droppableId&&ee.index===Ae.index},ft=function(ee,Ae){return ee==null&&Ae==null?!0:ee==null||Ae==null?!1:ee.draggableId===Ae.draggableId&&ee.droppableId===Ae.droppableId},qt=function(ee,Ae){if(ee===Ae)return!0;var ze=ee.draggable.id===Ae.draggable.id&&ee.draggable.droppableId===Ae.draggable.droppableId&&ee.draggable.type===Ae.draggable.type&&ee.draggable.index===Ae.draggable.index,lt=ee.droppable.id===Ae.droppable.id&&ee.droppable.type===Ae.droppable.type;return ze&&lt},dr=function(ee,Ae){Mi(),Ae(),Ji()},Nr=function(ee,Ae){return{draggableId:ee.draggable.id,type:ee.droppable.type,source:{droppableId:ee.droppable.id,index:ee.draggable.index},mode:Ae}},Zr=function(ee,Ae,ze,lt){if(!ee){ze(lt(Ae));return}var Dt=Jt(ze),Vt={announce:Dt};ee(Ae,Vt),Dt.wasCalled()||ze(lt(Ae))},pn=function(ee,Ae){var ze=Ot(),lt=null,Dt=function(nn,On){lt&&me(!1),dr("onBeforeCapture",function(){var gi=ee().onBeforeCapture;if(gi){var Ai={draggableId:nn,mode:On};gi(Ai)}})},Vt=function(nn,On){lt&&me(!1),dr("onBeforeDragStart",function(){var gi=ee().onBeforeDragStart;gi&&gi(Nr(nn,On))})},Zt=function(nn,On){lt&&me(!1);var gi=Nr(nn,On);lt={mode:On,lastCritical:nn,lastLocation:gi.source,lastCombine:null},ze.add(function(){dr("onDragStart",function(){return Zr(ee().onDragStart,gi,Ae,ce.onDragStart)})})},Ir=function(nn,On){var gi=Wt(On),Ai=ar(On);lt||me(!1);var Qi=!qt(nn,lt.lastCritical);Qi&&(lt.lastCritical=nn);var Bi=!yr(lt.lastLocation,gi);Bi&&(lt.lastLocation=gi);var Ma=!ft(lt.lastCombine,Ai);if(Ma&&(lt.lastCombine=Ai),!Qi&&!Bi&&!Ma)return;var ea=Object(A.a)({},Nr(nn,lt.mode),{combine:Ai,destination:gi});ze.add(function(){dr("onDragUpdate",function(){return Zr(ee().onDragUpdate,ea,Ae,ce.onDragUpdate)})})},$r=function(){lt||me(!1),ze.flush()},Tr=function(nn){lt||me(!1),lt=null,dr("onDragEnd",function(){return Zr(ee().onDragEnd,nn,Ae,ce.onDragEnd)})},xr=function(){if(!lt)return;var nn=Object(A.a)({},Nr(lt.lastCritical,lt.mode),{combine:null,destination:null,reason:"CANCEL"});Tr(nn)};return{beforeCapture:Dt,beforeStart:Vt,start:Zt,update:Ir,flush:$r,drop:Tr,abort:xr}},_n=function(ee,Ae){var ze=pn(ee,Ae);return function(lt){return function(Dt){return function(Vt){if(Vt.type==="BEFORE_INITIAL_CAPTURE"){ze.beforeCapture(Vt.payload.draggableId,Vt.payload.movementMode);return}if(Vt.type==="INITIAL_PUBLISH"){var Zt=Vt.payload.critical;ze.beforeStart(Zt,Vt.payload.movementMode),Dt(Vt),ze.start(Zt,Vt.payload.movementMode);return}if(Vt.type==="DROP_COMPLETE"){var Ir=Vt.payload.completed.result;ze.flush(),Dt(Vt),ze.drop(Ir);return}if(Dt(Vt),Vt.type==="FLUSH"){ze.abort();return}var $r=lt.getState();$r.phase==="DRAGGING"&&ze.update($r.critical,$r.impact)}}}},Dn=function(ee){return function(Ae){return function(ze){if(ze.type!=="DROP_ANIMATION_FINISHED"){Ae(ze);return}var lt=ee.getState();lt.phase==="DROP_ANIMATING"||me(!1),ee.dispatch(Dr({completed:lt.completed}))}}},Zn=function(ee){var Ae=null,ze=null;function lt(){ze&&(cancelAnimationFrame(ze),ze=null),Ae&&(Ae(),Ae=null)}return function(Dt){return function(Vt){if((Vt.type==="FLUSH"||Vt.type==="DROP_COMPLETE"||Vt.type==="DROP_ANIMATION_FINISHED")&&lt(),Dt(Vt),Vt.type!=="DROP_ANIMATE")return;var Zt={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var $r=ee.getState();$r.phase==="DROP_ANIMATING"&&ee.dispatch(en())}};ze=requestAnimationFrame(function(){ze=null,Ae=ve(window,[Zt])})}}},ii=function(ee){return function(){return function(Ae){return function(ze){(ze.type==="DROP_COMPLETE"||ze.type==="FLUSH"||ze.type==="DROP_ANIMATE")&&ee.stopPublishing(),Ae(ze)}}}},pi=function(ee){var Ae=!1;return function(){return function(ze){return function(lt){if(lt.type==="INITIAL_PUBLISH"){Ae=!0,ee.tryRecordFocus(lt.payload.critical.draggable.id),ze(lt),ee.tryRestoreFocusRecorded();return}if(ze(lt),!Ae)return;if(lt.type==="FLUSH"){Ae=!1,ee.tryRestoreFocusRecorded();return}if(lt.type==="DROP_COMPLETE"){Ae=!1;var Dt=lt.payload.completed.result;Dt.combine&&ee.tryShiftRecord(Dt.draggableId,Dt.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}},ri=function(ee){return ee.type==="DROP_COMPLETE"||ee.type==="DROP_ANIMATE"||ee.type==="FLUSH"},ji=function(ee){return function(Ae){return function(ze){return function(lt){if(ri(lt)){ee.stop(),ze(lt);return}if(lt.type==="INITIAL_PUBLISH"){ze(lt);var Dt=Ae.getState();Dt.phase==="DRAGGING"||me(!1),ee.start(Dt);return}ze(lt),ee.scroll(Ae.getState())}}}},ei=function(ee){return function(Ae){return function(ze){if(Ae(ze),ze.type!=="PUBLISH_WHILE_DRAGGING")return;var lt=ee.getState();if(lt.phase!=="DROP_PENDING")return;if(lt.isWaiting)return;ee.dispatch(rn({reason:lt.reason}))}}},$e=b.d,Yt=function(ee){var Ae=ee.dimensionMarshal,ze=ee.focusMarshal,lt=ee.styleMarshal,Dt=ee.getResponders,Vt=ee.announce,Zt=ee.autoScroller;return Object(b.e)(ca,$e(Object(b.a)(Hn(lt),ii(Ae),Bn(Ae),cn,Dn,Zn,ei,ji(Zt),di,pi(ze),_n(Dt,Vt))))},vr=function(){return{additions:{},removals:{},modified:{}}};function fr(Le){var ee=Le.registry,Ae=Le.callbacks,ze=vr(),lt=null,Dt=function(){if(lt)return;Ae.collectionStarting(),lt=requestAnimationFrame(function(){lt=null,Mi();var Tr=ze,xr=Tr.additions,zr=Tr.removals,nn=Tr.modified,On=Object.keys(xr).map(function(Qi){return ee.draggable.getById(Qi).getDimension(Te)}).sort(function(Qi,Bi){return Qi.descriptor.index-Bi.descriptor.index}),gi=Object.keys(nn).map(function(Qi){var Bi=ee.droppable.getById(Qi),Ma=Bi.callbacks.getScrollWhileDragging();return{droppableId:Qi,scroll:Ma}}),Ai={additions:On,removals:Object.keys(zr),modified:gi};ze=vr(),Ji(),Ae.publish(Ai)})},Vt=function(Tr){var xr=Tr.descriptor.id;ze.additions[xr]=Tr,ze.modified[Tr.descriptor.droppableId]=!0,ze.removals[xr]&&delete ze.removals[xr],Dt()},Zt=function(Tr){var xr=Tr.descriptor;ze.removals[xr.id]=!0,ze.modified[xr.droppableId]=!0,ze.additions[xr.id]&&delete ze.additions[xr.id],Dt()},Ir=function(){if(!lt)return;cancelAnimationFrame(lt),lt=null,ze=vr()};return{add:Vt,remove:Zt,stop:Ir}}var Xr=function(ee){var Ae=ee.scrollHeight,ze=ee.scrollWidth,lt=ee.height,Dt=ee.width,Vt=le({x:ze,y:Ae},{x:Dt,y:lt}),Zt={x:Math.max(0,Vt.x),y:Math.max(0,Vt.y)};return Zt},Fr=function(){var ee=document.documentElement;return ee||me(!1),ee},hr=function(){var ee=Fr(),Ae=Xr({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return Ae},An=function(){var ee=vn(),Ae=hr(),ze=ee.y,lt=ee.x,Dt=Fr(),Vt=Dt.clientWidth,Zt=Dt.clientHeight,Ir=lt+Vt,$r=ze+Zt,Tr=e({top:ze,left:lt,right:Ir,bottom:$r}),xr={frame:Tr,scroll:{initial:ee,current:ee,max:Ae,diff:{value:Te,displacement:Te}}};return xr},br=function(ee){var Ae=ee.critical,ze=ee.scrollOptions,lt=ee.registry;Mi();var Dt=An(),Vt=Dt.scroll.current,Zt=Ae.droppable,Ir=lt.droppable.getAllByType(Zt.type).map(function(zr){return zr.callbacks.getDimensionAndWatchScroll(Vt,ze)}),$r=lt.draggable.getAllByType(Ae.draggable.type).map(function(zr){return zr.getDimension(Vt)}),Tr={draggables:Qe($r),droppables:ct(Ir)};Ji();var xr={dimensions:Tr,critical:Ae,viewport:Dt};return xr};function mn(Le,ee,Ae){if(Ae.descriptor.id===ee.id)return!1;if(Ae.descriptor.type!==ee.type)return!1;var ze=Le.droppable.getById(Ae.descriptor.droppableId);return!(ze.descriptor.mode!=="virtual")}var Kn=function(ee,Ae){var ze=null,lt=fr({callbacks:{publish:Ae.publishWhileDragging,collectionStarting:Ae.collectionStarting},registry:ee}),Dt=function(On,gi){if(ee.droppable.exists(On)||me(!1),!ze)return;Ae.updateDroppableIsEnabled({id:On,isEnabled:gi})},Vt=function(On,gi){if(!ze)return;ee.droppable.exists(On)||me(!1),Ae.updateDroppableIsCombineEnabled({id:On,isCombineEnabled:gi})},Zt=function(On,gi){if(!ze)return;ee.droppable.exists(On)||me(!1),Ae.updateDroppableScroll({id:On,newScroll:gi})},Ir=function(On,gi){if(!ze)return;ee.droppable.getById(On).callbacks.scroll(gi)},$r=function(){if(!ze)return;lt.stop();var On=ze.critical.droppable;ee.droppable.getAllByType(On.type).forEach(function(gi){return gi.callbacks.dragStopped()}),ze.unsubscribe(),ze=null},Tr=function(On){ze||me(!1);var gi=ze.critical.draggable;On.type==="ADDITION"&&(mn(ee,gi,On.value)&&lt.add(On.value)),On.type==="REMOVAL"&&(mn(ee,gi,On.value)&&lt.remove(On.value))},xr=function(On){ze&&me(!1);var gi=ee.draggable.getById(On.draggableId),Ai=ee.droppable.getById(gi.descriptor.droppableId),Qi={draggable:gi.descriptor,droppable:Ai.descriptor},Bi=ee.subscribe(Tr);return ze={critical:Qi,unsubscribe:Bi},br({critical:Qi,registry:ee,scrollOptions:On.scrollOptions})},zr={updateDroppableIsEnabled:Dt,updateDroppableIsCombineEnabled:Vt,scrollDroppable:Ir,updateDroppableScroll:Zt,startPublishing:xr,stopPublishing:$r};return zr},Wn=function(ee,Ae){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===Ae?!1:ee.completed.result.reason==="DROP"},Ln=function(ee){window.scrollBy(ee.x,ee.y)},$n=I(function(Le){return dt(Le).filter(function(ee){return ee.isEnabled?!!ee.frame:!1})}),Un=function(ee,Ae){var ze=Z($n(Ae),function(lt){return lt.frame||me(!1),Ri(lt.frame.pageMarginBox)(ee)});return ze},ti=function(ee){var Ae=ee.center,ze=ee.destination,lt=ee.droppables;if(ze){var Dt=lt[ze];return Dt.frame?Dt:null}var Vt=Un(Ae,lt);return Vt},Xn={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ee){return Math.pow(ee,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},wi=function(ee,Ae){var ze=ee[Ae.size]*Xn.startFromPercentage,lt=ee[Ae.size]*Xn.maxScrollAtPercentage,Dt={startScrollingFrom:ze,maxScrollValueAt:lt};return Dt},Ei=function(ee){var Ae=ee.startOfRange,ze=ee.endOfRange,lt=ee.current,Dt=ze-Ae;if(Dt===0)return 0;var Vt=lt-Ae,Zt=Vt/Dt;return Zt},Zi=1,ua=function(ee,Ae){if(ee>Ae.startScrollingFrom)return 0;if(ee<=Ae.maxScrollValueAt)return Xn.maxPixelScroll;if(ee===Ae.startScrollingFrom)return Zi;var ze=Ei({startOfRange:Ae.maxScrollValueAt,endOfRange:Ae.startScrollingFrom,current:ee}),lt=1-ze,Dt=Xn.maxPixelScroll*Xn.ease(lt);return Math.ceil(Dt)},Xi=Xn.durationDampening.accelerateAt,Gi=Xn.durationDampening.stopDampeningAt,wa=function(ee,Ae){var ze=Ae,lt=Gi,Dt=Date.now(),Vt=Dt-ze;if(Vt>=Gi)return ee;if(Vt<Xi)return Zi;var Zt=Ei({startOfRange:Xi,endOfRange:lt,current:Vt}),Ir=ee*Xn.ease(Zt);return Math.ceil(Ir)},na=function(ee){var Ae=ee.distanceToEdge,ze=ee.thresholds,lt=ee.dragStartTime,Dt=ee.shouldUseTimeDampening,Vt=ua(Ae,ze);return Vt===0?0:Dt?Math.max(wa(Vt,lt),Zi):Vt},mo=function(ee){var Ae=ee.container,ze=ee.distanceToEdges,lt=ee.dragStartTime,Dt=ee.axis,Vt=ee.shouldUseTimeDampening,Zt=wi(Ae,Dt),Ir=ze[Dt.end]<ze[Dt.start];return Ir?na({distanceToEdge:ze[Dt.end],thresholds:Zt,dragStartTime:lt,shouldUseTimeDampening:Vt}):-1*na({distanceToEdge:ze[Dt.start],thresholds:Zt,dragStartTime:lt,shouldUseTimeDampening:Vt})},Ca=function(ee){var Ae=ee.container,ze=ee.subject,lt=ee.proposedScroll,Dt=ze.height>Ae.height,Vt=ze.width>Ae.width;return!Vt&&!Dt?lt:Vt&&Dt?null:{x:Vt?0:lt.x,y:Dt?0:lt.y}},qi=Oe(function(Le){return Le===0?0:Le}),aa=function(ee){var Ae=ee.dragStartTime,ze=ee.container,lt=ee.subject,Dt=ee.center,Vt=ee.shouldUseTimeDampening,Zt={top:Dt.y-ze.top,right:ze.right-Dt.x,bottom:ze.bottom-Dt.y,left:Dt.x-ze.left},Ir=mo({container:ze,distanceToEdges:Zt,dragStartTime:Ae,axis:Nn,shouldUseTimeDampening:Vt}),$r=mo({container:ze,distanceToEdges:Zt,dragStartTime:Ae,axis:jt,shouldUseTimeDampening:Vt}),Tr=qi({x:$r,y:Ir});if(fe(Tr,Te))return null;var xr=Ca({container:ze,subject:lt,proposedScroll:Tr});return xr?fe(xr,Te)?null:xr:null},$i=Oe(function(Le){return Le===0?0:Le>0?1:-1}),Aa=function(){var Le=function(Ae,ze){return Ae<0?Ae:Ae>ze?Ae-ze:0};return function(ee){var Ae=ee.current,ze=ee.max,lt=ee.change,Dt=Se(Ae,lt),Vt={x:Le(Dt.x,ze.x),y:Le(Dt.y,ze.y)};return fe(Vt,Te)?null:Vt}}(),ya=function(ee){var Ae=ee.max,ze=ee.current,lt=ee.change,Dt={x:Math.max(ze.x,Ae.x),y:Math.max(ze.y,Ae.y)},Vt=$i(lt),Zt=Aa({max:Dt,current:ze,change:Vt});return Zt?Vt.x!==0&&Zt.x===0?!0:Vt.y!==0&&Zt.y===0:!0},Ha=function(ee,Ae){return ya({current:ee.scroll.current,max:ee.scroll.max,change:Ae})},ta=function(ee,Ae){if(!Ha(ee,Ae))return null;var ze=ee.scroll.max,lt=ee.scroll.current;return Aa({current:lt,max:ze,change:Ae})},ra=function(ee,Ae){var ze=ee.frame;return ze?ya({current:ze.scroll.current,max:ze.scroll.max,change:Ae}):!1},_a=function(ee,Ae){var ze=ee.frame;return ze&&ra(ee,Ae)?Aa({current:ze.scroll.current,max:ze.scroll.max,change:Ae}):null},Ka=function(ee){var Ae=ee.viewport,ze=ee.subject,lt=ee.center,Dt=ee.dragStartTime,Vt=ee.shouldUseTimeDampening,Zt=aa({dragStartTime:Dt,container:Ae.frame,subject:ze,center:lt,shouldUseTimeDampening:Vt});return Zt&&Ha(Ae,Zt)?Zt:null},bo=function(ee){var Ae=ee.droppable,ze=ee.subject,lt=ee.center,Dt=ee.dragStartTime,Vt=ee.shouldUseTimeDampening,Zt=Ae.frame;if(!Zt)return null;var Ir=aa({dragStartTime:Dt,container:Zt.pageMarginBox,subject:ze,center:lt,shouldUseTimeDampening:Vt});return Ir&&ra(Ae,Ir)?Ir:null},ga=function(ee){var Ae=ee.state,ze=ee.dragStartTime,lt=ee.shouldUseTimeDampening,Dt=ee.scrollWindow,Vt=ee.scrollDroppable,Zt=Ae.current.page.borderBoxCenter,Ir=Ae.dimensions.draggables[Ae.critical.draggable.id],$r=Ir.page.marginBox;if(Ae.isWindowScrollAllowed){var Tr=Ae.viewport,xr=Ka({dragStartTime:ze,viewport:Tr,subject:$r,center:Zt,shouldUseTimeDampening:lt});if(xr){Dt(xr);return}}var zr=ti({center:Zt,destination:In(Ae.impact),droppables:Ae.dimensions.droppables});if(!zr)return;var nn=bo({dragStartTime:ze,droppable:zr,subject:$r,center:Zt,shouldUseTimeDampening:lt});nn&&Vt(zr.descriptor.id,nn)},go=function(ee){var Ae=ee.scrollWindow,ze=ee.scrollDroppable,lt=N(Ae),Dt=N(ze),Vt=null,Zt=function(xr){Vt||me(!1);var zr=Vt,nn=zr.shouldUseTimeDampening,On=zr.dragStartTime;ga({state:xr,scrollWindow:lt,scrollDroppable:Dt,dragStartTime:On,shouldUseTimeDampening:nn})},Ir=function(xr){Mi(),Vt&&me(!1);var zr=Date.now(),nn=!1,On=function(){nn=!0};ga({state:xr,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:On,scrollDroppable:On}),Vt={dragStartTime:zr,shouldUseTimeDampening:nn},Ji(),nn&&Zt(xr)},$r=function(){if(!Vt)return;lt.cancel(),Dt.cancel(),Vt=null};return{start:Ir,stop:$r,scroll:Zt}},Sa=function(ee){var Ae=ee.move,ze=ee.scrollDroppable,lt=ee.scrollWindow,Dt=function(Tr,xr){var zr=Se(Tr.current.client.selection,xr);Ae({client:zr})},Vt=function(Tr,xr){if(!ra(Tr,xr))return xr;var zr=_a(Tr,xr);if(!zr)return ze(Tr.descriptor.id,xr),null;var nn=le(xr,zr);ze(Tr.descriptor.id,nn);var On=le(xr,nn);return On},Zt=function(Tr,xr,zr){if(!Tr)return zr;if(!Ha(xr,zr))return zr;var nn=ta(xr,zr);if(!nn)return lt(zr),null;var On=le(zr,nn);lt(On);var gi=le(zr,On);return gi},Ir=function(Tr){var xr=Tr.scrollJumpRequest;if(!xr)return;var zr=In(Tr.impact);zr||me(!1);var nn=Vt(Tr.dimensions.droppables[zr],xr);if(!nn)return;var On=Tr.viewport,gi=Zt(Tr.isWindowScrollAllowed,On,nn);if(!gi)return;Dt(Tr,gi)};return Ir},Va=function(ee){var Ae=ee.scrollDroppable,ze=ee.scrollWindow,lt=ee.move,Dt=go({scrollWindow:ze,scrollDroppable:Ae}),Vt=Sa({move:lt,scrollWindow:ze,scrollDroppable:Ae}),Zt=function(Tr){if(Tr.phase!=="DRAGGING")return;if(Tr.movementMode==="FLUID"){Dt.scroll(Tr);return}if(!Tr.scrollJumpRequest)return;Vt(Tr)},Ir={scroll:Zt,start:Dt.start,stop:Dt.stop};return Ir},uo="data-rbd",No=function(){var Le=uo+"-drag-handle";return{base:Le,draggableId:Le+"-draggable-id",contextId:Le+"-context-id"}}(),Po=function(){var Le=uo+"-draggable";return{base:Le,contextId:Le+"-context-id",id:Le+"-id"}}(),to=function(){var Le=uo+"-droppable";return{base:Le,contextId:Le+"-context-id",id:Le+"-id"}}(),Uo={contextId:uo+"-scroll-container-context-id"},co=function(ee){return function(Ae){return"["+Ae+'="'+ee+'"]'}},fa=function(ee,Ae){return ee.map(function(ze){var lt=ze.styles[Ae];return lt?ze.selector+" { "+lt+" }":""}).join(" ")},ro="pointer-events: none;",Wa=function(ee){var Ae=co(ee),ze=function(){var Ir=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:Ae(No.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Ir,dragging:ro,dropAnimating:Ir}}}(),lt=function(){var Ir=`
transition: `+yi.outOfTheWay+`;
`;return{selector:Ae(Po.contextId),styles:{dragging:Ir,dropAnimating:Ir,userCancel:Ir}}}(),Dt={selector:Ae(to.contextId),styles:{always:"overflow-anchor: none;"}},Vt={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;
`}},Zt=[lt,ze,Dt,Vt];return{always:fa(Zt,"always"),resting:fa(Zt,"resting"),dragging:fa(Zt,"dragging"),dropAnimating:fa(Zt,"dropAnimating"),userCancel:fa(Zt,"userCancel")}},Ea=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?O.useLayoutEffect:O.useEffect,Jr=function(){var ee=document.querySelector("head");return ee||me(!1),ee},za=function(ee){var Ae=document.createElement("style");return ee&&Ae.setAttribute("nonce",ee),Ae.type="text/css",Ae};function rs(Le,ee){var Ae=r(function(){return Wa(Le)},[Le]),ze=Object(O.useRef)(null),lt=Object(O.useRef)(null),Dt=i(I(function(xr){var zr=lt.current;zr||me(!1),zr.textContent=xr}),[]),Vt=i(function(xr){var zr=ze.current;zr||me(!1),zr.textContent=xr},[]);Ea(function(){!ze.current&&!lt.current||me(!1);var xr=za(ee),zr=za(ee);return ze.current=xr,lt.current=zr,xr.setAttribute(uo+"-always",Le),zr.setAttribute(uo+"-dynamic",Le),Jr().appendChild(xr),Jr().appendChild(zr),Vt(Ae.always),Dt(Ae.resting),function(){var nn=function(gi){var Ai=gi.current;Ai||me(!1),Jr().removeChild(Ai),gi.current=null};nn(ze),nn(lt)}},[ee,Vt,Dt,Ae.always,Ae.resting,Le]);var Zt=i(function(){return Dt(Ae.dragging)},[Dt,Ae.dragging]),Ir=i(function(xr){if(xr==="DROP"){Dt(Ae.dropAnimating);return}Dt(Ae.userCancel)},[Dt,Ae.dropAnimating,Ae.userCancel]),$r=i(function(){if(!lt.current)return;Dt(Ae.resting)},[Dt,Ae.resting]),Tr=r(function(){return{dragging:Zt,dropping:Ir,resting:$r}},[Zt,Ir,$r]);return Tr}var Vo=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function Go(Le){return Le instanceof Vo(Le).HTMLElement}function Qo(Le,ee){var Ae="["+No.contextId+'="'+Le+'"]',ze=nt(document.querySelectorAll(Ae));if(!ze.length)return null;var lt=Z(ze,function(Dt){return Dt.getAttribute(No.draggableId)===ee});return lt&&Go(lt)?lt:null}function Yo(Le){var ee=Object(O.useRef)({}),Ae=Object(O.useRef)(null),ze=Object(O.useRef)(null),lt=Object(O.useRef)(!1),Dt=i(function(zr,nn){var On={id:zr,focus:nn};return ee.current[zr]=On,function(){var Ai=ee.current,Qi=Ai[zr];Qi!==On&&delete Ai[zr]}},[]),Vt=i(function(zr){var nn=Qo(Le,zr);nn&&nn!==document.activeElement&&nn.focus()},[Le]),Zt=i(function(zr,nn){Ae.current===zr&&(Ae.current=nn)},[]),Ir=i(function(){if(ze.current)return;if(!lt.current)return;ze.current=requestAnimationFrame(function(){ze.current=null;var zr=Ae.current;zr&&Vt(zr)})},[Vt]),$r=i(function(zr){Ae.current=null;var nn=document.activeElement;if(!nn)return;if(nn.getAttribute(No.draggableId)!==zr)return;Ae.current=zr},[]);Ea(function(){return lt.current=!0,function(){lt.current=!1;var zr=ze.current;zr&&cancelAnimationFrame(zr)}},[]);var Tr=r(function(){return{register:Dt,tryRecordFocus:$r,tryRestoreFocusRecorded:Ir,tryShiftRecord:Zt}},[Dt,$r,Ir,Zt]);return Tr}function vo(){var Le={draggables:{},droppables:{}},ee=[];function Ae(xr){return ee.push(xr),function(){var nn=ee.indexOf(xr);if(nn===-1)return;ee.splice(nn,1)}}function ze(xr){ee.length&&ee.forEach(function(zr){return zr(xr)})}function lt(xr){return Le.draggables[xr]||null}function Dt(xr){var zr=lt(xr);return zr||me(!1),zr}var Vt={register:function(zr){Le.draggables[zr.descriptor.id]=zr,ze({type:"ADDITION",value:zr})},update:function(zr,nn){var On=Le.draggables[nn.descriptor.id];if(!On)return;if(On.uniqueId!==zr.uniqueId)return;delete Le.draggables[nn.descriptor.id],Le.draggables[zr.descriptor.id]=zr},unregister:function(zr){var nn=zr.descriptor.id,On=lt(nn);if(!On)return;if(zr.uniqueId!==On.uniqueId)return;delete Le.draggables[nn],ze({type:"REMOVAL",value:zr})},getById:Dt,findById:lt,exists:function(zr){return Boolean(lt(zr))},getAllByType:function(zr){return Be(Le.draggables).filter(function(nn){return nn.descriptor.type===zr})}};function Zt(xr){return Le.droppables[xr]||null}function Ir(xr){var zr=Zt(xr);return zr||me(!1),zr}var $r={register:function(zr){Le.droppables[zr.descriptor.id]=zr},unregister:function(zr){var nn=Zt(zr.descriptor.id);if(!nn)return;if(zr.uniqueId!==nn.uniqueId)return;delete Le.droppables[zr.descriptor.id]},getById:Ir,findById:Zt,exists:function(zr){return Boolean(Zt(zr))},getAllByType:function(zr){return Be(Le.droppables).filter(function(nn){return nn.descriptor.type===zr})}};function Tr(){Le.draggables={},Le.droppables={},ee.length=0}return{draggable:Vt,droppable:$r,subscribe:Ae,clean:Tr}}function Io(){var Le=r(vo,[]);return Object(O.useEffect)(function(){return function(){requestAnimationFrame(Le.clean)}},[Le]),Le}var zo=x.a.createContext(null),Fa=function(){var ee=document.body;return ee||me(!1),ee},Ja={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},ho=function(ee){return"rbd-announcement-"+ee};function Ao(Le){var ee=r(function(){return ho(Le)},[Le]),Ae=Object(O.useRef)(null);Object(O.useEffect)(function(){var Dt=document.createElement("div");return Ae.current=Dt,Dt.id=ee,Dt.setAttribute("aria-live","assertive"),Dt.setAttribute("aria-atomic","true"),Object(A.a)(Dt.style,Ja),Fa().appendChild(Dt),function(){setTimeout(function(){var Ir=Fa();Ir.contains(Dt)&&Ir.removeChild(Dt),Dt===Ae.current&&(Ae.current=null)})}},[ee]);var ze=i(function(lt){var Dt=Ae.current;if(Dt){Dt.textContent=lt;return}},[]);return ze}var $o=0,ps={separator:"::"};function is(){$o=0}function Za(Le,ee){return ee===void 0&&(ee=ps),r(function(){return""+Le+ee.separator+$o++},[ee.separator,Le])}function Ct(Le){var ee=Le.contextId,Ae=Le.uniqueId;return"rbd-hidden-text-"+ee+"-"+Ae}function Bt(Le){var ee=Le.contextId,Ae=Le.text,ze=Za("hidden-text",{separator:"-"}),lt=r(function(){return Ct({contextId:ee,uniqueId:ze})},[ze,ee]);return Object(O.useEffect)(function(){var Vt=document.createElement("div");return Vt.id=lt,Vt.textContent=Ae,Vt.style.display="none",Fa().appendChild(Vt),function(){var Ir=Fa();Ir.contains(Vt)&&Ir.removeChild(Vt)}},[lt,Ae]),lt}var Wr=x.a.createContext(null),Pn={react:"^16.8.5","react-dom":"^16.8.5"},ht=/(\d+)\.(\d+)\.(\d+)/,ne=function(ee){var Ae=ht.exec(ee);Ae!=null||me(!1);var ze=Number(Ae[1]),lt=Number(Ae[2]),Dt=Number(Ae[3]);return{major:ze,minor:lt,patch:Dt,raw:ee}},pe=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},be=function(ee,Ae){var ze=ne(ee),lt=ne(Ae);if(pe(ze,lt))return},Ue=`
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
`,pt=function(ee){var Ae=ee.doctype;if(!Ae)return;Ae.name.toLowerCase()!=="html",Ae.publicId!==""};function Xt(Le){}function Or(Le,ee){Xt(function(){Object(O.useEffect)(function(){try{Le()}catch(Ae){q(`
A setup problem was encountered.
> `+Ae.message+`
`)}},ee)})}function Qr(){Or(function(){be(Pn.react,x.a.version),pt(document)},[])}function dn(Le){var ee=Object(O.useRef)(Le);return Object(O.useEffect)(function(){ee.current=Le}),ee}function jn(){var Le=null;function ee(){return Boolean(Le)}function Ae(Vt){return Vt===Le}function ze(Vt){Le&&me(!1);var Zt={abandon:Vt};return Le=Zt,Zt}function lt(){Le||me(!1),Le=null}function Dt(){Le&&(Le.abandon(),lt())}return{isClaimed:ee,isActive:Ae,claim:ze,release:lt,tryAbandon:Dt}}var ai=9,Qn=13,Di=27,Vi=32,Ta=33,Ga=34,ao=35,Do=36,fo=37,as=38,io=39,Xa=40,Ya,ka=(Ya={},Ya[Qn]=!0,Ya[ai]=!0,Ya),os=function(ee){ka[ee.keyCode]&&ee.preventDefault()},Es=function(){var Le="visibilitychange";if(typeof document=="undefined")return Le;var ee=[Le,"ms"+Le,"webkit"+Le,"moz"+Le,"o"+Le],Ae=Z(ee,function(ze){return"on"+ze in document});return Ae||Le}(),qo=0,pa=5;function ls(Le,ee){return Math.abs(ee.x-Le.x)>=pa||Math.abs(ee.y-Le.y)>=pa}var Os={type:"IDLE"};function ys(Le){var ee=Le.cancel,Ae=Le.completed,ze=Le.getPhase,lt=Le.setPhase;return[{eventName:"mousemove",fn:function(Vt){var Zt=Vt.button,Ir=Vt.clientX,$r=Vt.clientY;if(Zt!==qo)return;var Tr={x:Ir,y:$r},xr=ze();if(xr.type==="DRAGGING"){Vt.preventDefault(),xr.actions.move(Tr);return}xr.type==="PENDING"||me(!1);var zr=xr.point;if(!ls(zr,Tr))return;Vt.preventDefault();var nn=xr.actions.fluidLift(Tr);lt({type:"DRAGGING",actions:nn})}},{eventName:"mouseup",fn:function(Vt){var Zt=ze();if(Zt.type!=="DRAGGING"){ee();return}Vt.preventDefault(),Zt.actions.drop({shouldBlockNextClick:!0}),Ae()}},{eventName:"mousedown",fn:function(Vt){ze().type==="DRAGGING"&&Vt.preventDefault(),ee()}},{eventName:"keydown",fn:function(Vt){var Zt=ze();if(Zt.type==="PENDING"){ee();return}if(Vt.keyCode===Di){Vt.preventDefault(),ee();return}os(Vt)}},{eventName:"resize",fn:ee},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ze().type==="PENDING"&&ee()}},{eventName:"webkitmouseforcedown",fn:function(Vt){var Zt=ze();if(Zt.type!=="IDLE"||me(!1),Zt.actions.shouldRespectForcePress()){ee();return}Vt.preventDefault()}},{eventName:Es,fn:ee}]}function ms(Le){var ee=Object(O.useRef)(Os),Ae=Object(O.useRef)(de),ze=r(function(){return{eventName:"mousedown",fn:function(xr){if(xr.defaultPrevented)return;if(xr.button!==qo)return;if(xr.ctrlKey||xr.metaKey||xr.shiftKey||xr.altKey)return;var zr=Le.findClosestDraggableId(xr);if(!zr)return;var nn=Le.tryGetLock(zr,Vt,{sourceEvent:xr});if(!nn)return;xr.preventDefault();var On={x:xr.clientX,y:xr.clientY};Ae.current(),$r(nn,On)}}},[Le]),lt=r(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(xr){if(xr.defaultPrevented)return;var zr=Le.findClosestDraggableId(xr);if(!zr)return;var nn=Le.findOptionsForDraggable(zr);if(!nn)return;if(nn.shouldRespectForcePress)return;if(!Le.canGetLock(zr))return;xr.preventDefault()}}},[Le]),Dt=i(function(){var xr={passive:!1,capture:!0};Ae.current=ve(window,[lt,ze],xr)},[lt,ze]),Vt=i(function(){var Tr=ee.current;if(Tr.type==="IDLE")return;ee.current=Os,Ae.current(),Dt()},[Dt]),Zt=i(function(){var Tr=ee.current;Vt(),Tr.type==="DRAGGING"&&Tr.actions.cancel({shouldBlockNextClick:!0}),Tr.type==="PENDING"&&Tr.actions.abort()},[Vt]),Ir=i(function(){var xr={capture:!0,passive:!1},zr=ys({cancel:Zt,completed:Vt,getPhase:function(){return ee.current},setPhase:function(On){ee.current=On}});Ae.current=ve(window,zr,xr)},[Zt,Vt]),$r=i(function(xr,zr){ee.current.type==="IDLE"||me(!1),ee.current={type:"PENDING",point:zr,actions:xr},Ir()},[Ir]);Ea(function(){return Dt(),function(){Ae.current()}},[Dt])}var ws;function Pl(){}var ml=(ws={},ws[Ga]=!0,ws[Ta]=!0,ws[Do]=!0,ws[ao]=!0,ws);function Ws(Le,ee){function Ae(){ee(),Le.cancel()}function ze(){ee(),Le.drop()}return[{eventName:"keydown",fn:function(Dt){if(Dt.keyCode===Di){Dt.preventDefault(),Ae();return}if(Dt.keyCode===Vi){Dt.preventDefault(),ze();return}if(Dt.keyCode===Xa){Dt.preventDefault(),Le.moveDown();return}if(Dt.keyCode===as){Dt.preventDefault(),Le.moveUp();return}if(Dt.keyCode===io){Dt.preventDefault(),Le.moveRight();return}if(Dt.keyCode===fo){Dt.preventDefault(),Le.moveLeft();return}if(ml[Dt.keyCode]){Dt.preventDefault();return}os(Dt)}},{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:Es,fn:Ae}]}function fs(Le){var ee=Object(O.useRef)(Pl),Ae=r(function(){return{eventName:"keydown",fn:function(Dt){if(Dt.defaultPrevented)return;if(Dt.keyCode!==Vi)return;var Vt=Le.findClosestDraggableId(Dt);if(!Vt)return;var Zt=Le.tryGetLock(Vt,Tr,{sourceEvent:Dt});if(!Zt)return;Dt.preventDefault();var Ir=!0,$r=Zt.snapLift();ee.current();function Tr(){Ir||me(!1),Ir=!1,ee.current(),ze()}ee.current=ve(window,Ws($r,Tr),{capture:!0,passive:!1})}}},[Le]),ze=i(function(){var Dt={passive:!1,capture:!0};ee.current=ve(window,[Ae],Dt)},[Ae]);Ea(function(){return ze(),function(){ee.current()}},[ze])}var _s={type:"IDLE"},gl=120,Bs=.15;function Us(Le){var ee=Le.cancel,Ae=Le.getPhase;return[{eventName:"orientationchange",fn:ee},{eventName:"resize",fn:ee},{eventName:"contextmenu",fn:function(lt){lt.preventDefault()}},{eventName:"keydown",fn:function(lt){if(Ae().type!=="DRAGGING"){ee();return}lt.keyCode===Di&&lt.preventDefault(),ee()}},{eventName:Es,fn:ee}]}function Qs(Le){var ee=Le.cancel,Ae=Le.completed,ze=Le.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Dt){var Vt=ze();if(Vt.type!=="DRAGGING"){ee();return}Vt.hasMoved=!0;var Zt=Dt.touches[0],Ir=Zt.clientX,$r=Zt.clientY,Tr={x:Ir,y:$r};Dt.preventDefault(),Vt.actions.move(Tr)}},{eventName:"touchend",fn:function(Dt){var Vt=ze();if(Vt.type!=="DRAGGING"){ee();return}Dt.preventDefault(),Vt.actions.drop({shouldBlockNextClick:!0}),Ae()}},{eventName:"touchcancel",fn:function(Dt){if(ze().type!=="DRAGGING"){ee();return}Dt.preventDefault(),ee()}},{eventName:"touchforcechange",fn:function(Dt){var Vt=ze();Vt.type!=="IDLE"||me(!1);var Zt=Dt.touches[0];if(!Zt)return;var Ir=Zt.force>=Bs;if(!Ir)return;var $r=Vt.actions.shouldRespectForcePress();if(Vt.type==="PENDING"){$r&&ee();return}if($r){if(Vt.hasMoved){Dt.preventDefault();return}ee();return}Dt.preventDefault()}},{eventName:Es,fn:ee}]}function al(Le){var ee=Object(O.useRef)(_s),Ae=Object(O.useRef)(de),ze=i(function(){return ee.current},[]),lt=i(function(nn){ee.current=nn},[]),Dt=r(function(){return{eventName:"touchstart",fn:function(nn){if(nn.defaultPrevented)return;var On=Le.findClosestDraggableId(nn);if(!On)return;var gi=Le.tryGetLock(On,Zt,{sourceEvent:nn});if(!gi)return;var Ai=nn.touches[0],Qi=Ai.clientX,Bi=Ai.clientY,Ma={x:Qi,y:Bi};Ae.current(),xr(gi,Ma)}}},[Le]),Vt=i(function(){var nn={capture:!0,passive:!1};Ae.current=ve(window,[Dt],nn)},[Dt]),Zt=i(function(){var zr=ee.current;if(zr.type==="IDLE")return;zr.type==="PENDING"&&clearTimeout(zr.longPressTimerId),lt(_s),Ae.current(),Vt()},[Vt,lt]),Ir=i(function(){var zr=ee.current;Zt(),zr.type==="DRAGGING"&&zr.actions.cancel({shouldBlockNextClick:!0}),zr.type==="PENDING"&&zr.actions.abort()},[Zt]),$r=i(function(){var nn={capture:!0,passive:!1},On={cancel:Ir,completed:Zt,getPhase:ze},gi=ve(window,Qs(On),nn),Ai=ve(window,Us(On),nn);Ae.current=function(){gi(),Ai()}},[Ir,ze,Zt]),Tr=i(function(){var nn=ze();nn.type==="PENDING"||me(!1);var On=nn.actions.fluidLift(nn.point);lt({type:"DRAGGING",actions:On,hasMoved:!1})},[ze,lt]),xr=i(function(nn,On){ze().type==="IDLE"||me(!1);var gi=setTimeout(Tr,gl);lt({type:"PENDING",point:On,actions:nn,longPressTimerId:gi}),$r()},[$r,ze,lt,Tr]);Ea(function(){return Vt(),function(){Ae.current();var On=ze();On.type==="PENDING"&&(clearTimeout(On.longPressTimerId),lt(_s))}},[ze,Vt,lt]),Ea(function(){var nn=ve(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return nn},[])}function El(Le){Xt(function(){var ee=dn(Le);Or(function(){ee.current.length===Le.length||me(!1)})})}var bl={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ol(Le,ee){if(ee==null)return!1;var Ae=Boolean(bl[ee.tagName.toLowerCase()]);if(Ae)return!0;var ze=ee.getAttribute("contenteditable");return ze==="true"||ze===""?!0:ee===Le?!1:ol(Le,ee.parentElement)}function Gs(Le,ee){var Ae=ee.target;return Go(Ae)?ol(Le,Ae):!1}var zs=function(ee){return e(ee.getBoundingClientRect()).center};function vl(Le){return Le instanceof Vo(Le).Element}var Xs=function(){var Le="matches";if(typeof document=="undefined")return Le;var ee=[Le,"msMatchesSelector","webkitMatchesSelector"],Ae=Z(ee,function(ze){return ze in Element.prototype});return Ae||Le}();function sl(Le,ee){return Le==null?null:Le[Xs](ee)?Le:sl(Le.parentElement,ee)}function dl(Le,ee){return Le.closest?Le.closest(ee):sl(Le,ee)}function rl(Le){return"["+No.contextId+'="'+Le+'"]'}function nl(Le,ee){var Ae=ee.target;if(!vl(Ae))return null;var ze=rl(Le),lt=dl(Ae,ze);return lt&&Go(lt)?lt:null}function Tl(Le,ee){var Ae=nl(Le,ee);return Ae?Ae.getAttribute(No.draggableId):null}function Rs(Le,ee){var Ae="["+Po.contextId+'="'+Le+'"]',ze=nt(document.querySelectorAll(Ae)),lt=Z(ze,function(Dt){return Dt.getAttribute(Po.id)===ee});return lt&&Go(lt)?lt:null}function bs(Le){Le.preventDefault()}function Ms(Le){var ee=Le.expected,Ae=Le.phase,ze=Le.isLockActive,lt=Le.shouldWarn;return ze()?!(ee!==Ae):!1}function Ts(Le){var ee=Le.lockAPI,Ae=Le.store,ze=Le.registry,lt=Le.draggableId;if(ee.isClaimed())return!1;var Dt=ze.draggable.findById(lt);return Dt&&Dt.options.isEnabled?!!Wn(Ae.getState(),lt):!1}function Zs(Le){var ee=Le.lockAPI,Ae=Le.contextId,ze=Le.store,lt=Le.registry,Dt=Le.draggableId,Vt=Le.forceSensorStop,Zt=Le.sourceEvent,Ir=Ts({lockAPI:ee,store:ze,registry:lt,draggableId:Dt});if(!Ir)return null;var $r=lt.draggable.getById(Dt),Tr=Rs(Ae,$r.descriptor.id);if(!Tr)return null;if(Zt&&!$r.options.canDragInteractiveElements&&Gs(Tr,Zt))return null;var xr=ee.claim(Vt||de),zr="PRE_DRAG";function nn(){return $r.options.shouldRespectForcePress}function On(){return ee.isActive(xr)}function gi(Ba,Ro){Ms({expected:Ba,phase:zr,isLockActive:On,shouldWarn:!0})&&ze.dispatch(Ro())}var Ai=gi.bind(null,"DRAGGING");function Qi(Ba){function Ro(){ee.release(),zr="COMPLETED"}zr!=="PRE_DRAG"&&(Ro(),zr==="PRE_DRAG"||me(!1)),ze.dispatch(Ia(Ba.liftActionArgs)),zr="DRAGGING";function Zo(P,K){if(K===void 0&&(K={shouldBlockNextClick:!1}),Ba.cleanup(),K.shouldBlockNextClick){var $=ve(window,[{eventName:"click",fn:bs,options:{once:!0,passive:!1,capture:!0}}]);setTimeout($)}Ro(),ze.dispatch(rn({reason:P}))}return Object(A.a)({isActive:function(){return Ms({expected:"DRAGGING",phase:zr,isLockActive:On,shouldWarn:!1})},shouldRespectForcePress:nn,drop:function(K){return Zo("DROP",K)},cancel:function(K){return Zo("CANCEL",K)}},Ba.actions)}function Bi(Ba){var Ro=N(function(P){Ai(function(){return yo({client:P})})}),Zo=Qi({liftActionArgs:{id:Dt,clientSelection:Ba,movementMode:"FLUID"},cleanup:function(){return Ro.cancel()},actions:{move:Ro}});return Object(A.a)({},Zo,{move:Ro})}function Ma(){var Ba={moveUp:function(){return Ai(hs)},moveRight:function(){return Ai(wo)},moveDown:function(){return Ai(Jo)},moveLeft:function(){return Ai(_o)}};return Qi({liftActionArgs:{id:Dt,clientSelection:zs(Tr),movementMode:"SNAP"},cleanup:de,actions:Ba})}function ea(){var Ba=Ms({expected:"PRE_DRAG",phase:zr,isLockActive:On,shouldWarn:!0});Ba&&ee.release()}var oo={isActive:function(){return Ms({expected:"PRE_DRAG",phase:zr,isLockActive:On,shouldWarn:!1})},shouldRespectForcePress:nn,fluidLift:Bi,snapLift:Ma,abort:ea};return oo}var hl=[ms,fs,al];function wl(Le){var ee=Le.contextId,Ae=Le.store,ze=Le.registry,lt=Le.customSensors,Dt=Le.enableDefaultSensors,Vt=[].concat(Dt?hl:[],lt||[]),Zt=Object(O.useState)(function(){return jn()})[0],Ir=i(function(Bi,Ma){Bi.isDragging&&!Ma.isDragging&&Zt.tryAbandon()},[Zt]);Ea(function(){var Bi=Ae.getState(),Ma=Ae.subscribe(function(){var ea=Ae.getState();Ir(Bi,ea),Bi=ea});return Ma},[Zt,Ae,Ir]),Ea(function(){return Zt.tryAbandon},[Zt.tryAbandon]);var $r=i(function(Qi){return Ts({lockAPI:Zt,registry:ze,store:Ae,draggableId:Qi})},[Zt,ze,Ae]),Tr=i(function(Qi,Bi,Ma){return Zs({lockAPI:Zt,registry:ze,contextId:ee,store:Ae,draggableId:Qi,forceSensorStop:Bi,sourceEvent:Ma&&Ma.sourceEvent?Ma.sourceEvent:null})},[ee,Zt,ze,Ae]),xr=i(function(Qi){return Tl(ee,Qi)},[ee]),zr=i(function(Qi){var Bi=ze.draggable.findById(Qi);return Bi?Bi.options:null},[ze.draggable]),nn=i(function(){if(!Zt.isClaimed())return;Zt.tryAbandon(),Ae.getState().phase!=="IDLE"&&Ae.dispatch(Bo())},[Zt,Ae]),On=i(Zt.isClaimed,[Zt]),gi=r(function(){return{canGetLock:$r,tryGetLock:Tr,findClosestDraggableId:xr,findOptionsForDraggable:zr,tryReleaseLock:nn,isLockClaimed:On}},[$r,Tr,xr,zr,nn,On]);El(Vt);for(var Ai=0;Ai<Vt.length;Ai++)Vt[Ai](gi)}var Kl=function(ee){return{onBeforeCapture:ee.onBeforeCapture,onBeforeDragStart:ee.onBeforeDragStart,onDragStart:ee.onDragStart,onDragEnd:ee.onDragEnd,onDragUpdate:ee.onDragUpdate}};function il(Le){return Le.current||me(!1),Le.current}function fl(Le){var ee=Le.contextId,Ae=Le.setCallbacks,ze=Le.sensors,lt=Le.nonce,Dt=Le.dragHandleUsageInstructions,Vt=Object(O.useRef)(null);Qr();var Zt=dn(Le),Ir=i(function(){return Kl(Zt.current)},[Zt]),$r=Ao(ee),Tr=Bt({contextId:ee,text:Dt}),xr=rs(ee,lt),zr=i(function(P){il(Vt).dispatch(P)},[]),nn=r(function(){return Object(b.b)({publishWhileDragging:Qa,updateDroppableScroll:po,updateDroppableIsEnabled:Mo,updateDroppableIsCombineEnabled:Fo,collectionStarting:Wo},zr)},[zr]),On=Io(),gi=r(function(){return Kn(On,nn)},[On,nn]),Ai=r(function(){return Va(Object(A.a)({scrollWindow:Ln,scrollDroppable:gi.scrollDroppable},Object(b.b)({move:yo},zr)))},[gi.scrollDroppable,zr]),Qi=Yo(ee),Bi=r(function(){return Yt({announce:$r,autoScroller:Ai,dimensionMarshal:gi,focusMarshal:Qi,getResponders:Ir,styleMarshal:xr})},[$r,Ai,gi,Qi,Ir,xr]);Vt.current=Bi;var Ma=i(function(){var P=il(Vt),K=P.getState();K.phase!=="IDLE"&&P.dispatch(Bo())},[]),ea=i(function(){var P=il(Vt).getState();return P.isDragging||P.phase==="DROP_ANIMATING"},[]),oo=r(function(){return{isDragging:ea,tryAbort:Ma}},[ea,Ma]);Ae(oo);var Ba=i(function(P){return Wn(il(Vt).getState(),P)},[]),Ro=i(function(){return ki(il(Vt).getState())},[]),Zo=r(function(){return{marshal:gi,focus:Qi,contextId:ee,canLift:Ba,isMovementAllowed:Ro,dragHandleUsageInstructionsId:Tr,registry:On}},[ee,gi,Tr,Qi,Ba,Ro,On]);return wl({contextId:ee,store:Bi,registry:On,customSensors:ze,enableDefaultSensors:Le.enableDefaultSensors!==!1}),Object(O.useEffect)(function(){return Ma},[Ma]),x.a.createElement(Wr.Provider,{value:Zo},x.a.createElement(g.a,{context:zo,store:Bi},Le.children))}var kl=0;function gu(){kl=0}function Jl(){return r(function(){return""+kl++},[])}function Zl(){gu(),is()}function $l(Le){var ee=Jl(),Ae=Le.dragHandleUsageInstructions||ce.dragHandleUsageInstructions;return x.a.createElement(ke,null,function(ze){return x.a.createElement(fl,{nonce:Le.nonce,contextId:ee,setCallbacks:ze,dragHandleUsageInstructions:Ae,enableDefaultSensors:Le.enableDefaultSensors,sensors:Le.sensors,onBeforeCapture:Le.onBeforeCapture,onBeforeDragStart:Le.onBeforeDragStart,onDragStart:Le.onDragStart,onDragUpdate:Le.onDragUpdate,onDragEnd:Le.onDragEnd},Le.children)})}var Gl=function(ee){return function(Ae){return ee===Ae}},$s=Gl("scroll"),ll=Gl("auto"),pl=Gl("visible"),Nl=function(ee,Ae){return Ae(ee.overflowX)||Ae(ee.overflowY)},ou=function(ee,Ae){return Ae(ee.overflowX)&&Ae(ee.overflowY)},ql=function(ee){var Ae=window.getComputedStyle(ee),ze={overflowX:Ae.overflowX,overflowY:Ae.overflowY};return Nl(ze,$s)||Nl(ze,ll)},eu=function(){return!1;var ee,Ae;if(!ql(ee))return!1;var ze,lt;if(ou(lt,pl))return!1},el=function Le(ee){return ee==null?null:ee===document.body?eu()?ee:null:ee===document.documentElement?null:ql(ee)?ee:Le(ee.parentElement)},tu=function(ee){if(!ee)return;var Ae=el(ee.parentElement);if(!Ae)return},ru=function(ee){return{x:ee.scrollLeft,y:ee.scrollTop}},su=function Le(ee){if(!ee)return!1;var Ae=window.getComputedStyle(ee);return Ae.position==="fixed"?!0:Le(ee.parentElement)},Cl=function(ee){var Ae=el(ee),ze=su(ee);return{closestScrollable:Ae,isFixedOnPage:ze}},Dl=function(ee){var Ae=ee.descriptor,ze=ee.isEnabled,lt=ee.isCombineEnabled,Dt=ee.isFixedOnPage,Vt=ee.direction,Zt=ee.client,Ir=ee.page,$r=ee.closest,Tr=function(){if(!$r)return null;var On=$r.scrollSize,gi=$r.client,Ai=Xr({scrollHeight:On.scrollHeight,scrollWidth:On.scrollWidth,height:gi.paddingBox.height,width:gi.paddingBox.width});return{pageMarginBox:$r.page.marginBox,frameClient:gi,scrollSize:On,shouldClipSubject:$r.shouldClipSubject,scroll:{initial:$r.scroll,current:$r.scroll,max:Ai,diff:{value:Te,displacement:Te}}}}(),xr=Vt==="vertical"?Nn:jt,zr=Xe({page:Ir,withPlaceholder:null,axis:xr,frame:Tr}),nn={descriptor:Ae,isCombineEnabled:lt,isFixedOnPage:Dt,axis:xr,isEnabled:ze,client:Zt,page:Ir,frame:Tr,subject:zr};return nn},Fl=function(ee,Ae){var ze=E(ee);if(!Ae)return ze;if(ee!==Ae)return ze;var lt=ze.paddingBox.top-Ae.scrollTop,Dt=ze.paddingBox.left-Ae.scrollLeft,Vt=lt+Ae.scrollHeight,Zt=Dt+Ae.scrollWidth,Ir={top:lt,right:Zt,bottom:Vt,left:Dt},$r=l(Ir,ze.border),Tr=u({borderBox:$r,margin:ze.margin,border:ze.border,padding:ze.padding});return Tr},Xl=function(ee){var Ae=ee.ref,ze=ee.descriptor,lt=ee.env,Dt=ee.windowScroll,Vt=ee.direction,Zt=ee.isDropDisabled,Ir=ee.isCombineEnabled,$r=ee.shouldClipSubject,Tr=lt.closestScrollable,xr=Fl(Ae,Tr),zr=v(xr,Dt),nn=function(){if(!Tr)return null;var gi=E(Tr),Ai={scrollHeight:Tr.scrollHeight,scrollWidth:Tr.scrollWidth};return{client:gi,page:v(gi,Dt),scroll:ru(Tr),scrollSize:Ai,shouldClipSubject:$r}}(),On=Dl({descriptor:ze,isEnabled:!Zt,isCombineEnabled:Ir,isFixedOnPage:lt.isFixedOnPage,direction:Vt,client:xr,page:zr,closest:nn});return On},jo={passive:!1},Ho={passive:!0},us=function(ee){return ee.shouldPublishImmediately?jo:Ho};function cs(Le){var ee=Object(O.useContext)(Le);return ee||me(!1),ee}var Cs=function(ee){return ee&&ee.env.closestScrollable||null};function ds(Le){var ee=Object(O.useRef)(null),Ae=cs(Wr),ze=Za("droppable"),lt=Ae.registry,Dt=Ae.marshal,Vt=dn(Le),Zt=r(function(){return{id:Le.droppableId,type:Le.type,mode:Le.mode}},[Le.droppableId,Le.mode,Le.type]),Ir=Object(O.useRef)(Zt),$r=r(function(){return I(function(ea,oo){ee.current||me(!1);var Ba={x:ea,y:oo};Dt.updateDroppableScroll(Zt.id,Ba)})},[Zt.id,Dt]),Tr=i(function(){var ea=ee.current;return!ea||!ea.env.closestScrollable?Te:ru(ea.env.closestScrollable)},[]),xr=i(function(){var ea=Tr();$r(ea.x,ea.y)},[Tr,$r]),zr=r(function(){return N(xr)},[xr]),nn=i(function(){var ea=ee.current,oo=Cs(ea);ea&&oo||me(!1);var Ba=ea.scrollOptions;if(Ba.shouldPublishImmediately){xr();return}zr()},[zr,xr]),On=i(function(ea,oo){ee.current&&me(!1);var Ba=Vt.current,Ro=Ba.getDroppableRef();Ro||me(!1);var Zo=Cl(Ro),P={ref:Ro,descriptor:Zt,env:Zo,scrollOptions:oo};ee.current=P;var K=Xl({ref:Ro,descriptor:Zt,env:Zo,windowScroll:ea,direction:Ba.direction,isDropDisabled:Ba.isDropDisabled,isCombineEnabled:Ba.isCombineEnabled,shouldClipSubject:!Ba.ignoreContainerClipping}),$=Zo.closestScrollable;return $&&($.setAttribute(Uo.contextId,Ae.contextId),$.addEventListener("scroll",nn,us(P.scrollOptions))),K},[Ae.contextId,Zt,nn,Vt]),gi=i(function(){var ea=ee.current,oo=Cs(ea);return ea&&oo||me(!1),ru(oo)},[]),Ai=i(function(){var ea=ee.current;ea||me(!1);var oo=Cs(ea);if(ee.current=null,!oo)return;zr.cancel(),oo.removeAttribute(Uo.contextId),oo.removeEventListener("scroll",nn,us(ea.scrollOptions))},[nn,zr]),Qi=i(function(ea){var oo=ee.current;oo||me(!1);var Ba=Cs(oo);Ba||me(!1),Ba.scrollTop+=ea.y,Ba.scrollLeft+=ea.x},[]),Bi=r(function(){return{getDimensionAndWatchScroll:On,getScrollWhileDragging:gi,dragStopped:Ai,scroll:Qi}},[Ai,On,gi,Qi]),Ma=r(function(){return{uniqueId:ze,descriptor:Zt,callbacks:Bi}},[Bi,Zt,ze]);Ea(function(){return Ir.current=Ma.descriptor,lt.droppable.register(Ma),function(){ee.current&&Ai(),lt.droppable.unregister(Ma)}},[Bi,Zt,Ai,Ma,Dt,lt.droppable]),Ea(function(){if(!ee.current)return;Dt.updateDroppableIsEnabled(Ir.current.id,!Le.isDropDisabled)},[Le.isDropDisabled,Dt]),Ea(function(){if(!ee.current)return;Dt.updateDroppableIsCombineEnabled(Ir.current.id,Le.isCombineEnabled)},[Le.isCombineEnabled,Dt])}function Js(){}var ss={width:0,height:0,margin:Mt},Is=function(ee){var Ae=ee.isAnimatingOpenOnMount,ze=ee.placeholder,lt=ee.animate;return Ae||lt==="close"?ss:{height:ze.client.borderBox.height,width:ze.client.borderBox.width,margin:ze.client.margin}},Al=function(ee){var Ae=ee.isAnimatingOpenOnMount,ze=ee.placeholder,lt=ee.animate,Dt=Is({isAnimatingOpenOnMount:Ae,placeholder:ze,animate:lt});return{display:ze.display,boxSizing:"border-box",width:Dt.width,height:Dt.height,marginTop:Dt.margin.top,marginRight:Dt.margin.right,marginBottom:Dt.margin.bottom,marginLeft:Dt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:lt!=="none"?yi.placeholder:null}};function lu(Le){var ee=Object(O.useRef)(null),Ae=i(function(){if(!ee.current)return;clearTimeout(ee.current),ee.current=null},[]),ze=Le.animate,lt=Le.onTransitionEnd,Dt=Le.onClose,Vt=Le.contextId,Zt=Object(O.useState)(Le.animate==="open"),Ir=Zt[0],$r=Zt[1];Object(O.useEffect)(function(){return Ir?ze!=="open"?(Ae(),$r(!1),Js):ee.current?Js:(ee.current=setTimeout(function(){ee.current=null,$r(!1)}),Ae):Js},[ze,Ir,Ae]);var Tr=i(function(zr){if(zr.propertyName!=="height")return;lt(),ze==="close"&&Dt()},[ze,Dt,lt]),xr=Al({isAnimatingOpenOnMount:Ir,animate:Le.animate,placeholder:Le.placeholder});return x.a.createElement(Le.placeholder.tagName,{style:xr,"data-rbd-placeholder-context-id":Vt,onTransitionEnd:Tr,ref:Le.innerRef})}var uu=x.a.memo(lu),Yl=x.a.createContext(null);function nu(Le){Le&&Go(Le)||me(!1)}function vu(Le){return typeof Le=="boolean"}function yu(Le,ee){ee.forEach(function(Ae){return Ae(Le)})}var bu=[function(ee){var Ae=ee.props;Ae.droppableId||me(!1),typeof Ae.droppableId=="string"||me(!1)},function(ee){var Ae=ee.props;vu(Ae.isDropDisabled)||me(!1),vu(Ae.isCombineEnabled)||me(!1),vu(Ae.ignoreContainerClipping)||me(!1)},function(ee){var Ae=ee.getDroppableRef;nu(Ae())}],_l=[function(ee){var Ae=ee.props,ze=ee.getPlaceholderRef;if(!Ae.placeholder)return;var lt=ze();if(lt)return}],Rl=[function(ee){var Ae=ee.props;Ae.renderClone||me(!1)},function(ee){var Ae=ee.getPlaceholderRef;Ae()&&me(!1)}];function Wl(Le){Or(function(){yu(Le,bu),Le.props.mode==="standard"&&yu(Le,_l),Le.props.mode==="virtual"&&yu(Le,Rl)})}var es=function(Le){Object(C.a)(ee,Le);function ee(){for(var ze,lt=arguments.length,Dt=new Array(lt),Vt=0;Vt<lt;Vt++)Dt[Vt]=arguments[Vt];return ze=Le.call.apply(Le,[this].concat(Dt))||this,ze.state={isVisible:Boolean(ze.props.on),data:ze.props.on,animate:ze.props.shouldAnimate&&ze.props.on?"open":"none"},ze.onClose=function(){if(ze.state.animate!=="close")return;ze.setState({isVisible:!1})},ze}ee.getDerivedStateFromProps=function(lt,Dt){return lt.shouldAnimate?lt.on?{isVisible:!0,data:lt.on,animate:"open"}:Dt.isVisible?{isVisible:!0,data:Dt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(lt.on),data:lt.on,animate:"none"}};var Ae=ee.prototype;return Ae.render=function(){if(!this.state.isVisible)return null;var lt={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(lt)},ee}(x.a.PureComponent),$a={dragging:5e3,dropAnimating:4500},Eo=function(ee,Ae){return Ae?yi.drop(Ae.duration):ee?yi.snap:yi.fluid},Ko=function(ee,Ae){return ee?Ae?Ci.opacity.drop:Ci.opacity.combining:null},js=function(ee){return ee.forceShouldAnimate!=null?ee.forceShouldAnimate:ee.mode==="SNAP"};function Bl(Le){var ee=Le.dimension,Ae=ee.client,ze=Le.offset,lt=Le.combineWith,Dt=Le.dropping,Vt=Boolean(lt),Zt=js(Le),Ir=Boolean(Dt),$r=Ir?ha.drop(ze,Vt):ha.moveTo(ze),Tr={position:"fixed",top:Ae.marginBox.top,left:Ae.marginBox.left,boxSizing:"border-box",width:Ae.borderBox.width,height:Ae.borderBox.height,transition:Eo(Zt,Dt),transform:$r,opacity:Ko(Vt,Ir),zIndex:Ir?$a.dropAnimating:$a.dragging,pointerEvents:"none"};return Tr}function Ul(Le){return{transform:ha.moveTo(Le.offset),transition:Le.shouldAnimateDisplacement?null:"none"}}function Ol(Le){return Le.type==="DRAGGING"?Bl(Le):Ul(Le)}function Ll(Le,ee,Ae){Ae===void 0&&(Ae=Te);var ze=window.getComputedStyle(ee),lt=ee.getBoundingClientRect(),Dt=y(lt,ze),Vt=v(Dt,Ae),Zt={client:Dt,tagName:ee.tagName.toLowerCase(),display:ze.display},Ir={x:Dt.marginBox.width,y:Dt.marginBox.height},$r={descriptor:Le,placeholder:Zt,displaceBy:Ir,client:Dt,page:Vt};return $r}function jl(Le){var ee=Za("draggable"),Ae=Le.descriptor,ze=Le.registry,lt=Le.getDraggableRef,Dt=Le.canDragInteractiveElements,Vt=Le.shouldRespectForcePress,Zt=Le.isEnabled,Ir=r(function(){return{canDragInteractiveElements:Dt,shouldRespectForcePress:Vt,isEnabled:Zt}},[Dt,Zt,Vt]),$r=i(function(nn){var On=lt();return On||me(!1),Ll(Ae,On,nn)},[Ae,lt]),Tr=r(function(){return{uniqueId:ee,descriptor:Ae,options:Ir,getDimension:$r}},[Ae,$r,Ir,ee]),xr=Object(O.useRef)(Tr),zr=Object(O.useRef)(!0);Ea(function(){return ze.draggable.register(xr.current),function(){return ze.draggable.unregister(xr.current)}},[ze.draggable]),Ea(function(){if(zr.current){zr.current=!1;return}var nn=xr.current;xr.current=Tr,ze.draggable.update(Tr,nn)},[Tr,ze.draggable])}function Hl(Le,ee,Ae){Or(function(){function ze(Dt){return"Draggable[id: "+Dt+"]: "}var lt=Le.draggableId;if(lt||me(!1),typeof lt=="string"||me(!1),X(Le.index)||me(!1),Le.mapped.type==="DRAGGING")return;nu(Ae()),Le.isEnabled&&(Qo(ee,lt)||me(!1))})}function Vs(Le){Xt(function(){var ee=Object(O.useRef)(Le);Or(function(){Le===ee.current||me(!1)},[Le])})}function cu(Le){Le.preventDefault()}function wu(Le){var ee=Object(O.useRef)(null),Ae=i(function(P){ee.current=P},[]),ze=i(function(){return ee.current},[]),lt=cs(Wr),Dt=lt.contextId,Vt=lt.dragHandleUsageInstructionsId,Zt=lt.registry,Ir=cs(Yl),$r=Ir.type,Tr=Ir.droppableId,xr=r(function(){return{id:Le.draggableId,index:Le.index,type:$r,droppableId:Tr}},[Le.draggableId,Le.index,$r,Tr]),zr=Le.children,nn=Le.draggableId,On=Le.isEnabled,gi=Le.shouldRespectForcePress,Ai=Le.canDragInteractiveElements,Qi=Le.isClone,Bi=Le.mapped,Ma=Le.dropAnimationFinished;if(Hl(Le,Dt,ze),Vs(Qi),!Qi){var ea=r(function(){return{descriptor:xr,registry:Zt,getDraggableRef:ze,canDragInteractiveElements:Ai,shouldRespectForcePress:gi,isEnabled:On}},[xr,Zt,ze,Ai,gi,On]);jl(ea)}var oo=r(function(){return On?{tabIndex:0,role:"button","aria-describedby":Vt,"data-rbd-drag-handle-draggable-id":nn,"data-rbd-drag-handle-context-id":Dt,draggable:!1,onDragStart:cu}:null},[Dt,Vt,nn,On]),Ba=i(function(P){if(Bi.type!=="DRAGGING")return;if(!Bi.dropping)return;if(P.propertyName!=="transform")return;Ma()},[Ma,Bi]),Ro=r(function(){var P=Ol(Bi),K=Bi.type==="DRAGGING"&&Bi.dropping?Ba:null,$={innerRef:Ae,draggableProps:{"data-rbd-draggable-context-id":Dt,"data-rbd-draggable-id":nn,style:P,onTransitionEnd:K},dragHandleProps:oo};return $},[Dt,oo,nn,Bi,Ba,Ae]),Zo=r(function(){return{draggableId:xr.id,type:xr.type,source:{index:xr.index,droppableId:xr.droppableId}}},[xr.droppableId,xr.id,xr.index,xr.type]);return zr(Ro,Bi.snapshot,Zo)}var Au=function(ee,Ae){return ee===Ae},_u=function(ee){var Ae=ee.combine,ze=ee.destination;return ze?ze.droppableId:Ae?Ae.droppableId:null},Vu=function(ee){return ee.combine?ee.combine.draggableId:null},Fu=function(ee){return ee.at&&ee.at.type==="COMBINE"?ee.at.combine.draggableId:null};function ec(){var Le=I(function(lt,Dt){return{x:lt,y:Dt}}),ee=I(function(lt,Dt,Vt,Zt,Ir){return{isDragging:!0,isClone:Dt,isDropAnimating:Boolean(Ir),dropAnimation:Ir,mode:lt,draggingOver:Vt,combineWith:Zt,combineTargetFor:null}}),Ae=I(function(lt,Dt,Vt,Zt,Ir,$r,Tr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Ir,combineWith:$r,mode:Dt,offset:lt,dimension:Vt,forceShouldAnimate:Tr,snapshot:ee(Dt,Zt,Ir,$r,null)}}}),ze=function(Dt,Vt){if(Dt.isDragging){if(Dt.critical.draggable.id!==Vt.draggableId)return null;var Zt=Dt.current.client.offset,Ir=Dt.dimensions.draggables[Vt.draggableId],$r=In(Dt.impact),Tr=Fu(Dt.impact),xr=Dt.forceShouldAnimate;return Ae(Le(Zt.x,Zt.y),Dt.movementMode,Ir,Vt.isClone,$r,Tr,xr)}if(Dt.phase==="DROP_ANIMATING"){var zr=Dt.completed;if(zr.result.draggableId!==Vt.draggableId)return null;var nn=Vt.isClone,On=Dt.dimensions.draggables[Vt.draggableId],gi=zr.result,Ai=gi.mode,Qi=_u(gi),Bi=Vu(gi),Ma=Dt.dropDuration,ea={duration:Ma,curve:Li.drop,moveTo:Dt.newHomeClientOffset,opacity:Bi?Ci.opacity.drop:null,scale:Bi?Ci.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Dt.newHomeClientOffset,dimension:On,dropping:ea,draggingOver:Qi,combineWith:Bi,mode:Ai,forceShouldAnimate:null,snapshot:ee(Ai,nn,Qi,Bi,ea)}}}return null};return ze}function Bu(Le){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:Le,combineWith:null}}var Gu={mapped:{type:"SECONDARY",offset:Te,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Bu(null)}};function Xu(){var Le=I(function(Vt,Zt){return{x:Vt,y:Zt}}),ee=I(Bu),Ae=I(function(Vt,Zt,Ir){return Zt===void 0&&(Zt=null),{mapped:{type:"SECONDARY",offset:Vt,combineTargetFor:Zt,shouldAnimateDisplacement:Ir,snapshot:ee(Zt)}}}),ze=function(Zt){return Zt?Ae(Te,Zt,!0):null},lt=function(Zt,Ir,$r,Tr){var xr=$r.displaced.visible[Zt],zr=Boolean(Tr.inVirtualList&&Tr.effected[Zt]),nn=ar($r),On=nn&&nn.draggableId===Zt?Ir:null;if(!xr){if(!zr)return ze(On);if($r.displaced.invisible[Zt])return null;var gi=Ee(Tr.displacedBy.point),Ai=Le(gi.x,gi.y);return Ae(Ai,On,!0)}if(zr)return ze(On);var Qi=$r.displacedBy.point,Bi=Le(Qi.x,Qi.y);return Ae(Bi,On,xr.shouldAnimate)},Dt=function(Zt,Ir){if(Zt.isDragging)return Zt.critical.draggable.id===Ir.draggableId?null:lt(Ir.draggableId,Zt.critical.draggable.id,Zt.impact,Zt.afterCritical);if(Zt.phase==="DROP_ANIMATING"){var $r=Zt.completed;return $r.result.draggableId===Ir.draggableId?null:lt(Ir.draggableId,$r.result.draggableId,$r.impact,$r.afterCritical)}return null};return Dt}var Yu=function(){var ee=ec(),Ae=Xu(),ze=function(Dt,Vt){return ee(Dt,Vt)||Ae(Dt,Vt)||Gu};return ze},Uu={dropAnimationFinished:en},Ou=Object(g.c)(Yu,Uu,null,{context:zo,pure:!0,areStatePropsEqual:Au})(wu);function Ql(Le){var ee=cs(Yl),Ae=ee.isUsingCloneFor;return Ae===Le.draggableId&&!Le.isClone?null:x.a.createElement(Ou,Le)}function Iu(Le){var ee=typeof Le.isDragDisabled=="boolean"?!Le.isDragDisabled:!0,Ae=Boolean(Le.disableInteractiveElementBlocking),ze=Boolean(Le.shouldRespectForcePress);return x.a.createElement(Ql,Object(A.a)({},Le,{isClone:!1,isEnabled:ee,canDragInteractiveElements:Ae,shouldRespectForcePress:ze}))}function iu(Le){var ee=Object(O.useContext)(Wr);ee||me(!1);var Ae=ee.contextId,ze=ee.isMovementAllowed,lt=Object(O.useRef)(null),Dt=Object(O.useRef)(null),Vt=Le.children,Zt=Le.droppableId,Ir=Le.type,$r=Le.mode,Tr=Le.direction,xr=Le.ignoreContainerClipping,zr=Le.isDropDisabled,nn=Le.isCombineEnabled,On=Le.snapshot,gi=Le.useClone,Ai=Le.updateViewportMaxScroll,Qi=Le.getContainerForClone,Bi=i(function(){return lt.current},[]),Ma=i(function(re){lt.current=re},[]),ea=i(function(){return Dt.current},[]),oo=i(function(re){Dt.current=re},[]);Wl({props:Le,getDroppableRef:Bi,getPlaceholderRef:ea});var Ba=i(function(){ze()&&Ai({maxScroll:hr()})},[ze,Ai]);ds({droppableId:Zt,type:Ir,mode:$r,direction:Tr,isDropDisabled:zr,isCombineEnabled:nn,ignoreContainerClipping:xr,getDroppableRef:Bi});var Ro=x.a.createElement(es,{on:Le.placeholder,shouldAnimate:Le.shouldAnimatePlaceholder},function(re){var ue=re.onClose,Me=re.data,gt=re.animate;return x.a.createElement(uu,{placeholder:Me,onClose:ue,innerRef:oo,animate:gt,contextId:Ae,onTransitionEnd:Ba})}),Zo=r(function(){return{innerRef:Ma,placeholder:Ro,droppableProps:{"data-rbd-droppable-id":Zt,"data-rbd-droppable-context-id":Ae}}},[Ae,Zt,Ro,Ma]),P=gi?gi.dragging.draggableId:null,K=r(function(){return{droppableId:Zt,type:Ir,isUsingCloneFor:P}},[Zt,P,Ir]);function $(){if(!gi)return null;var re=gi.dragging,ue=gi.render,Me=x.a.createElement(Ql,{draggableId:re.draggableId,index:re.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(gt,zt){return ue(gt,zt,re)});return D.a.createPortal(Me,Qi())}return x.a.createElement(Yl.Provider,{value:K},Vt(Zo,On),$())}var Eu=function(ee,Ae){return ee===Ae.droppable.type},ge=function(ee,Ae){return Ae.draggables[ee.draggable.id]},je=function(){var ee={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},Ae=Object(A.a)({},ee,{shouldAnimatePlaceholder:!1}),ze=I(function(Vt){return{draggableId:Vt.id,type:Vt.type,source:{index:Vt.index,droppableId:Vt.droppableId}}}),lt=I(function(Vt,Zt,Ir,$r,Tr,xr){var zr=Tr.descriptor.id,nn=Tr.descriptor.droppableId===Vt;if(nn){var On=xr?{render:xr,dragging:ze(Tr.descriptor)}:null,gi={isDraggingOver:Ir,draggingOverWith:Ir?zr:null,draggingFromThisWith:zr,isUsingPlaceholder:!0};return{placeholder:Tr.placeholder,shouldAnimatePlaceholder:!1,snapshot:gi,useClone:On}}if(!Zt)return Ae;if(!$r)return ee;var Ai={isDraggingOver:Ir,draggingOverWith:zr,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:Tr.placeholder,shouldAnimatePlaceholder:!0,snapshot:Ai,useClone:null}}),Dt=function(Zt,Ir){var $r=Ir.droppableId,Tr=Ir.type,xr=!Ir.isDropDisabled,zr=Ir.renderClone;if(Zt.isDragging){var nn=Zt.critical;if(!Eu(Tr,nn))return Ae;var On=ge(nn,Zt.dimensions),gi=In(Zt.impact)===$r;return lt($r,xr,gi,gi,On,zr)}if(Zt.phase==="DROP_ANIMATING"){var Ai=Zt.completed;if(!Eu(Tr,Ai.critical))return Ae;var Qi=ge(Ai.critical,Zt.dimensions);return lt($r,xr,_u(Ai.result)===$r,In(Ai.impact)===$r,Qi,zr)}if(Zt.phase==="IDLE"&&Zt.completed&&!Zt.shouldFlush){var Bi=Zt.completed;if(!Eu(Tr,Bi.critical))return Ae;var Ma=In(Bi.impact)===$r,ea=Boolean(Bi.impact.at&&Bi.impact.at.type==="COMBINE"),oo=Bi.critical.droppable.id===$r;return Ma?ea?ee:Ae:oo?ee:Ae}return Ae};return Dt},mt={updateViewportMaxScroll:sa};function nr(){return document.body||me(!1),document.body}var Er={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:nr},Yr=Object(g.c)(je,mt,null,{context:zo,pure:!0,areStatePropsEqual:Au})(iu);Yr.defaultProps=Er},ni6a:function(H,k,d){var O=d("pzxd"),x=d("mFDi"),C=d("gut8"),A=C.WILL_BE_RESTORED,b=new x,g=function(){};g.prototype={constructor:g,drawRectText:function(o,r){var i=this.style;r=i.textRect||r,this.__dirty&&O.normalizeTextStyle(i,!0);var n=i.text;if(n!=null&&(n+=""),!O.needDrawText(n,i))return;o.save();var e=this.transform;i.transformText?this.setTransform(o):e&&(b.copy(r),b.applyTransform(e),r=b),O.renderText(this,o,n,i,r,A),o.restore()}};var f=g;H.exports=f},nkfE:function(H,k,d){var O=d("bYtY"),x=d("ca2m"),C=d("bLfw"),A=d("+TT/"),b=A.getLayoutParams,g=A.mergeLayoutParam,f=d("jkPA"),c=["value","category","time","log"];function o(r,i,n,e){O.each(c,function(l){i.extend({type:r+"Axis."+l,mergeDefaultAndTheme:function(t,a){var s=this.layoutMode,u=s?b(t):{},h=a.getTheme();O.merge(t,h.get(l+"Axis")),O.merge(t,this.getDefaultOption()),t.type=n(r,t),s&&g(t,u,s)},optionUpdated:function(){var t=this.option;t.type==="category"&&(this.__ordinalMeta=f.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([{},x[l+"Axis"],e],!0)})}),C.registerSubTypeDefaulter(r+"Axis",O.curry(n,r))}H.exports=o},noeP:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("UOVi");O.registerAction("dataZoom",function(A,b){var g=C.createLinkedNodesFinder(x.bind(b.eachComponent,b,"dataZoom"),C.eachAxisDim,function(c,o){return c.get(o.axisIndex)}),f=[];b.eachComponent({mainType:"dataZoom",query:A},function(c,o){f.push.apply(f,g(c).nodes)}),x.each(f,function(c,o){c.setRawRange({start:A.start,end:A.end,startValue:A.startValue,endValue:A.endValue})})})},o40c:function(H,k,d){var O=d("IwbS"),x=d("OS9S"),C=d("loD1"),A=d("aKvl"),b=O.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(o,r){var i=r.segs,n=r.curveness;if(r.polyline)for(var e=0;e<i.length;){var l=i[e++];if(l>0){o.moveTo(i[e++],i[e++]);for(var t=1;t<l;t++)o.lineTo(i[e++],i[e++])}}else for(var e=0;e<i.length;){var a=i[e++],s=i[e++],u=i[e++],h=i[e++];if(o.moveTo(a,s),n>0){var p=(a+u)/2-(s-h)*n,m=(s+h)/2-(u-a)*n;o.quadraticCurveTo(p,m,u,h)}else o.lineTo(u,h)}},findDataIndex:function(o,r){var i=this.shape,n=i.segs,e=i.curveness;if(i.polyline)for(var l=0,t=0;t<n.length;){var a=n[t++];if(a>0)for(var s=n[t++],u=n[t++],h=1;h<a;h++){var p=n[t++],m=n[t++];if(C.containStroke(s,u,p,m))return l}l++}else for(var l=0,t=0;t<n.length;){var s=n[t++],u=n[t++],p=n[t++],m=n[t++];if(e>0){var v=(s+p)/2-(u-m)*e,y=(u+m)/2-(p-s)*e;if(A.containStroke(s,u,v,y,p,m))return l}else if(C.containStroke(s,u,p,m))return l;l++}return-1}});function g(){this.group=new O.Group}var f=g.prototype;f.isPersistent=function(){return!this._incremental},f.updateData=function(o){this.group.removeAll();var r=new b({rectHover:!0,cursor:"default"});r.setShape({segs:o.getLayout("linesPoints")}),this._setCommon(r,o),this.group.add(r),this._incremental=null},f.incrementalPrepareUpdate=function(o){this.group.removeAll(),this._clearIncremental(),o.count()>5e5?(this._incremental||(this._incremental=new x({silent:!0})),this.group.add(this._incremental)):this._incremental=null},f.incrementalUpdate=function(o,r){var i=new b;i.setShape({segs:r.getLayout("linesPoints")}),this._setCommon(i,r,!!this._incremental),this._incremental?this._incremental.addDisplayable(i,!0):(i.rectHover=!0,i.cursor="default",i.__startIndex=o.start,this.group.add(i))},f.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},f._setCommon=function(o,r,i){var n=r.hostModel;o.setShape({polyline:n.get("polyline"),curveness:n.get("lineStyle.curveness")}),o.useStyle(n.getModel("lineStyle").getLineStyle()),o.style.strokeNoScale=!0;var e=r.getVisual("color");e&&o.setStyle("stroke",e),o.setStyle("fill"),i||(o.seriesIndex=n.seriesIndex,o.on("mousemove",function(l){o.dataIndex=null;var t=o.findDataIndex(l.offsetX,l.offsetY);t>0&&(o.dataIndex=t+o.__startIndex)}))},f._clearIncremental=function(){var o=this._incremental;o&&o.clearDisplaybles()};var c=g;H.exports=c},oBaM:function(H,k,d){var O=d("T4UG"),x=d("5GtS"),C=d("bYtY"),A=d("7aKB"),b=A.encodeHTML,g=d("xKMd"),f=O.extend({type:"series.radar",dependencies:["radar"],init:function(o){f.superApply(this,"init",arguments),this.legendVisualProvider=new g(C.bind(this.getData,this),C.bind(this.getRawData,this))},getInitialData:function(o,r){return x(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(o){var r=this.getData(),i=this.coordinateSystem,n=i.getIndicatorAxes(),e=this.getData().getName(o);return b(e===""?this.name:e)+"<br/>"+C.map(n,function(l,t){var a=r.get(r.mapDimension(l.dim),o);return b(l.name+" : "+a)}).join("<br />")},getTooltipPosition:function(o){if(o!=null){for(var r=this.getData(),i=this.coordinateSystem,n=r.getValues(C.map(i.dimensions,function(a){return r.mapDimension(a)}),o,!0),e=0,l=n.length;e<l;e++)if(!isNaN(n[e])){var t=i.getIndicatorAxes();return i.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=f;H.exports=c},oE7X:function(H,k,d){var O=d("bLfw");O.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(H,k,d){},oRuE:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.Iso10126={pad:function(C,A){var b=A*4,g=b-C.sigBytes%b;C.concat(O.lib.WordArray.random(g-1)).concat(O.lib.WordArray.create([g<<24],1))},unpad:function(C){var A=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=A}},O.pad.Iso10126})},oVpE:function(H,k,d){var O=d("bYtY"),x=d("IwbS"),C=d("mFDi"),A=d("6GrX"),b=A.calculateTextPosition,g=x.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,s){var u=s.cx,h=s.cy,p=s.width/2,m=s.height/2;a.moveTo(u,h-m),a.lineTo(u+p,h+m),a.lineTo(u-p,h+m),a.closePath()}}),f=x.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(a,s){var u=s.cx,h=s.cy,p=s.width/2,m=s.height/2;a.moveTo(u,h-m),a.lineTo(u+p,h),a.lineTo(u,h+m),a.lineTo(u-p,h),a.closePath()}}),c=x.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,s){var u=s.x,h=s.y,p=s.width/5*3,m=Math.max(p,s.height),v=p/2,y=v*v/(m-v),E=h-m+v+y,T=Math.asin(y/v),w=Math.cos(T)*v,S=Math.sin(T),_=Math.cos(T),I=v*.6,L=v*.7;a.moveTo(u-w,E+y),a.arc(u,E,v,Math.PI-T,Math.PI*2+T),a.bezierCurveTo(u+w-S*I,E+y+_*I,u,h-L,u,h),a.bezierCurveTo(u,h-L,u-w+S*I,E+y+_*I,u-w,E+y),a.closePath()}}),o=x.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(a,s){var u=s.height,h=s.width,p=s.x,m=s.y,v=h/3*2;a.moveTo(p,m),a.lineTo(p+v,m+u),a.lineTo(p,m+u/4*3),a.lineTo(p-v,m+u),a.lineTo(p,m),a.closePath()}}),r={line:x.Line,rect:x.Rect,roundRect:x.Rect,square:x.Rect,circle:x.Circle,diamond:f,pin:c,arrow:o,triangle:g},i={line:function(a,s,u,h,p){p.x1=a,p.y1=s+h/2,p.x2=a+u,p.y2=s+h/2},rect:function(a,s,u,h,p){p.x=a,p.y=s,p.width=u,p.height=h},roundRect:function(a,s,u,h,p){p.x=a,p.y=s,p.width=u,p.height=h,p.r=Math.min(u,h)/4},square:function(a,s,u,h,p){var m=Math.min(u,h);p.x=a,p.y=s,p.width=m,p.height=m},circle:function(a,s,u,h,p){p.cx=a+u/2,p.cy=s+h/2,p.r=Math.min(u,h)/2},diamond:function(a,s,u,h,p){p.cx=a+u/2,p.cy=s+h/2,p.width=u,p.height=h},pin:function(a,s,u,h,p){p.x=a+u/2,p.y=s+h/2,p.width=u,p.height=h},arrow:function(a,s,u,h,p){p.x=a+u/2,p.y=s+h/2,p.width=u,p.height=h},triangle:function(a,s,u,h,p){p.cx=a+u/2,p.cy=s+h/2,p.width=u,p.height=h}},n={};O.each(r,function(a,s){n[s]=new a});var e=x.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(a,s,u){var h=b(a,s,u),p=this.shape;return p&&p.symbolType==="pin"&&s.textPosition==="inside"&&(h.y=u.y+u.height*.4),h},buildPath:function(a,s,u){var h=s.symbolType;if(h!=="none"){var p=n[h];p||(h="rect",p=n[h]),i[h](s.x,s.y,s.width,s.height,p.shape),p.buildPath(a,p.shape,u)}}});function l(a,s){if(this.type!=="image"){var u=this.style,h=this.shape;h&&h.symbolType==="line"?u.stroke=a:this.__isEmptyBrush?(u.stroke=a,u.fill=s||"#fff"):(u.fill&&(u.fill=a),u.stroke&&(u.stroke=a)),this.dirty(!1)}}function t(a,s,u,h,p,m,v){var y=a.indexOf("empty")===0;y&&(a=a.substr(5,1).toLowerCase()+a.substr(6));var E;return a.indexOf("image://")===0?E=x.makeImage(a.slice(8),new C(s,u,h,p),v?"center":"cover"):a.indexOf("path://")===0?E=x.makePath(a.slice(7),{},new C(s,u,h,p),v?"center":"cover"):E=new e({shape:{symbolType:a,x:s,y:u,width:h,height:p}}),E.__isEmptyBrush=y,E.setColor=l,E.setColor(m),E}k.createSymbol=t},oY9F:function(H,k,d){var O=d("OlYY"),x=O.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});H.exports=x},osHv:function(H,k,d){(function(O){O(d("VrN/"))})(function(O){"use strict";var x=O.Pos;function C(s,u){return s.line-u.line||s.ch-u.ch}var A="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",b=A+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",g=new RegExp("<(/?)(["+A+"]["+b+"]*)","g");function f(s,u,h,p){this.line=u,this.ch=h,this.cm=s,this.text=s.getLine(u),this.min=p?Math.max(p.from,s.firstLine()):s.firstLine(),this.max=p?Math.min(p.to-1,s.lastLine()):s.lastLine()}function c(s,u){var h=s.cm.getTokenTypeAt(x(s.line,u));return h&&/\btag\b/.test(h)}function o(s){return s.line>=s.max?void 0:(s.ch=0,s.text=s.cm.getLine(++s.line),!0)}function r(s){return s.line<=s.min?void 0:(s.text=s.cm.getLine(--s.line),s.ch=s.text.length,!0)}function i(s){for(;;){var u=s.text.indexOf(">",s.ch);if(u==-1){if(o(s))continue;return}if(!c(s,u+1)){s.ch=u+1;continue}var h=s.text.lastIndexOf("/",u),p=h>-1&&!/\S/.test(s.text.slice(h+1,u));return s.ch=u+1,p?"selfClose":"regular"}}function n(s){for(;;){var u=s.ch?s.text.lastIndexOf("<",s.ch-1):-1;if(u==-1){if(r(s))continue;return}if(!c(s,u+1)){s.ch=u;continue}g.lastIndex=u,s.ch=u;var h=g.exec(s.text);if(h&&h.index==u)return h}}function e(s){for(;;){g.lastIndex=s.ch;var u=g.exec(s.text);if(!u){if(o(s))continue;return}if(!c(s,u.index+1)){s.ch=u.index+1;continue}return s.ch=u.index+u[0].length,u}}function l(s){for(;;){var u=s.ch?s.text.lastIndexOf(">",s.ch-1):-1;if(u==-1){if(r(s))continue;return}if(!c(s,u+1)){s.ch=u;continue}var h=s.text.lastIndexOf("/",u),p=h>-1&&!/\S/.test(s.text.slice(h+1,u));return s.ch=u+1,p?"selfClose":"regular"}}function t(s,u){for(var h=[];;){var p=e(s),m,v=s.line,y=s.ch-(p?p[0].length:0);if(!p||!(m=i(s)))return;if(m=="selfClose")continue;if(p[1]){for(var E=h.length-1;E>=0;--E)if(h[E]==p[2]){h.length=E;break}if(E<0&&(!u||u==p[2]))return{tag:p[2],from:x(v,y),to:x(s.line,s.ch)}}else h.push(p[2])}}function a(s,u){for(var h=[];;){var p=l(s);if(!p)return;if(p=="selfClose"){n(s);continue}var m=s.line,v=s.ch,y=n(s);if(!y)return;if(y[1])h.push(y[2]);else{for(var E=h.length-1;E>=0;--E)if(h[E]==y[2]){h.length=E;break}if(E<0&&(!u||u==y[2]))return{tag:y[2],from:x(s.line,s.ch),to:x(m,v)}}}}O.registerHelper("fold","xml",function(s,u){for(var h=new f(s,u.line,0);;){var p=e(h);if(!p||h.line!=u.line)return;var m=i(h);if(!m)return;if(!p[1]&&m!="selfClose"){var v=x(h.line,h.ch),y=t(h,p[2]);return y&&C(y.from,v)>0?{from:v,to:y.from}:null}}}),O.findMatchingTag=function(s,u,h){var p=new f(s,u.line,u.ch,h);if(p.text.indexOf(">")==-1&&p.text.indexOf("<")==-1)return;var m=i(p),v=m&&x(p.line,p.ch),y=m&&n(p);if(!m||!y||C(p,u)>0)return;var E={from:x(p.line,p.ch),to:v,tag:y[2]};return m=="selfClose"?{open:E,close:null,at:"open"}:y[1]?{open:a(p,y[2]),close:E,at:"close"}:(p=new f(s,v.line,v.ch,h),{open:E,close:t(p,y[2]),at:"open"})},O.findEnclosingTag=function(s,u,h,p){for(var m=new f(s,u.line,u.ch,h);;){var v=a(m,p);if(!v)break;var y=new f(s,u.line,u.ch,h),E=t(y,v.tag);if(E)return{open:v,close:E}}},O.scanForClosingTag=function(s,u,h,p){var m=new f(s,u.line,u.ch,p?{from:0,to:p}:null);return t(m,h)}})},ozfa:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("KxFI"),A=d.n(C)},"p+If":function(H,k,d){var O=d("ProS");d("cpOr"),d("rkZ5");var x=d("ZYIC"),C=d("7ph2");O.registerLayout(x),O.registerVisual(C)},"p/La":function(H,k){var d=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function O(x,C){x==="china"&&C.name==="\u53F0\u6E7E"&&C.geometries.push({type:"polygon",exterior:d[0]})}H.exports=O},p1MT:function(H,k,d){var O=d("Hw7h"),x=d("IwbS"),C=d("6Ic6"),A=d("OELB"),b=A.parsePercent,g=A.round,f=A.linearMap;function c(e,l){var t=e.get("center"),a=l.getWidth(),s=l.getHeight(),u=Math.min(a,s),h=b(t[0],l.getWidth()),p=b(t[1],l.getHeight()),m=b(e.get("radius"),u/2);return{cx:h,cy:p,r:m}}function o(e,l){return l&&(typeof l=="string"?e=l.replace("{value}",e!=null?e:""):typeof l=="function"&&(e=l(e))),e}var r=Math.PI*2,i=C.extend({type:"gauge",render:function(e,l,t){this.group.removeAll();var a=e.get("axisLine.lineStyle.color"),s=c(e,t);this._renderMain(e,l,t,a,s)},dispose:function(){},_renderMain:function(e,l,t,a,s){for(var u=this.group,h=e.getModel("axisLine"),p=h.getModel("lineStyle"),m=e.get("clockwise"),v=-e.get("startAngle")/180*Math.PI,y=-e.get("endAngle")/180*Math.PI,E=(y-v)%r,T=v,w=p.get("width"),S=h.get("show"),_=0;S&&_<a.length;_++){var I=Math.min(Math.max(a[_][0],0),1),y=v+E*I,L=new x.Sector({shape:{startAngle:T,endAngle:y,cx:s.cx,cy:s.cy,clockwise:m,r0:s.r-w,r:s.r},silent:!0});L.setStyle({fill:a[_][1]}),L.setStyle(p.getLineStyle(["color","borderWidth","borderColor"])),u.add(L),T=y}var N=function(D){if(D<=0)return a[0][1];for(var F=0;F<a.length;F++)if(a[F][0]>=D&&(F===0?0:a[F-1][0])<D)return a[F][1];return a[F-1][1]};if(!m){var R=v;v=y,y=R}this._renderTicks(e,l,t,N,s,v,y,m),this._renderPointer(e,l,t,N,s,v,y,m),this._renderTitle(e,l,t,N,s),this._renderDetail(e,l,t,N,s)},_renderTicks:function(e,l,t,a,s,u,h,p){for(var m=this.group,v=s.cx,y=s.cy,E=s.r,T=+e.get("min"),w=+e.get("max"),S=e.getModel("splitLine"),_=e.getModel("axisTick"),I=e.getModel("axisLabel"),L=e.get("splitNumber"),N=_.get("splitNumber"),R=b(S.get("length"),E),D=b(_.get("length"),E),F=u,M=(h-u)/L,U=M/N,B=S.getModel("lineStyle").getLineStyle(),j=_.getModel("lineStyle").getLineStyle(),W=0;W<=L;W++){var V=Math.cos(F),z=Math.sin(F);if(S.get("show")){var J=new x.Line({shape:{x1:V*E+v,y1:z*E+y,x2:V*(E-R)+v,y2:z*(E-R)+y},style:B,silent:!0});B.stroke==="auto"&&J.setStyle({stroke:a(W/L)}),m.add(J)}if(I.get("show")){var q=o(g(W/L*(w-T)+T),I.get("formatter")),de=I.get("distance"),ae=a(W/L);m.add(new x.Text({style:x.setTextStyle({},I,{text:q,x:V*(E-R-de)+v,y:z*(E-R-de)+y,textVerticalAlign:z<-.4?"top":z>.4?"bottom":"middle",textAlign:V<-.4?"left":V>.4?"right":"center"},{autoColor:ae}),silent:!0}))}if(_.get("show")&&W!==L){for(var ve=0;ve<=N;ve++){var V=Math.cos(F),z=Math.sin(F),_e=new x.Line({shape:{x1:V*E+v,y1:z*E+y,x2:V*(E-D)+v,y2:z*(E-D)+y},silent:!0,style:j});j.stroke==="auto"&&_e.setStyle({stroke:a((W+ve/N)/L)}),m.add(_e),F+=U}F-=U}else F+=M}},_renderPointer:function(e,l,t,a,s,u,h,p){var m=this.group,v=this._data;if(!e.get("pointer.show")){v&&v.eachItemGraphicEl(function(S){m.remove(S)});return}var y=[+e.get("min"),+e.get("max")],E=[u,h],T=e.getData(),w=T.mapDimension("value");T.diff(v).add(function(S){var _=new O({shape:{angle:u}});x.initProps(_,{shape:{angle:f(T.get(w,S),y,E,!0)}},e),m.add(_),T.setItemGraphicEl(S,_)}).update(function(S,_){var I=v.getItemGraphicEl(_);x.updateProps(I,{shape:{angle:f(T.get(w,S),y,E,!0)}},e),m.add(I),T.setItemGraphicEl(S,I)}).remove(function(S){var _=v.getItemGraphicEl(S);m.remove(_)}).execute(),T.eachItemGraphicEl(function(S,_){var I=T.getItemModel(_),L=I.getModel("pointer");S.setShape({x:s.cx,y:s.cy,width:b(L.get("width"),s.r),r:b(L.get("length"),s.r)}),S.useStyle(I.getModel("itemStyle").getItemStyle()),S.style.fill==="auto"&&S.setStyle("fill",a(f(T.get(w,_),y,[0,1],!0))),x.setHoverStyle(S,I.getModel("emphasis.itemStyle").getItemStyle())}),this._data=T},_renderTitle:function(e,l,t,a,s){var u=e.getData(),h=u.mapDimension("value"),p=e.getModel("title");if(p.get("show")){var m=p.get("offsetCenter"),v=s.cx+b(m[0],s.r),y=s.cy+b(m[1],s.r),E=+e.get("min"),T=+e.get("max"),w=e.getData().get(h,0),S=a(f(w,[E,T],[0,1],!0));this.group.add(new x.Text({silent:!0,style:x.setTextStyle({},p,{x:v,y,text:u.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:S,forceRich:!0})}))}},_renderDetail:function(e,l,t,a,s){var u=e.getModel("detail"),h=+e.get("min"),p=+e.get("max");if(u.get("show")){var m=u.get("offsetCenter"),v=s.cx+b(m[0],s.r),y=s.cy+b(m[1],s.r),E=b(u.get("width"),s.r),T=b(u.get("height"),s.r),w=e.getData(),S=w.get(w.mapDimension("value"),0),_=a(f(S,[h,p],[0,1],!0));this.group.add(new x.Text({silent:!0,style:x.setTextStyle({},u,{x:v,y,text:o(S,u.get("formatter")),textWidth:isNaN(E)?null:E,textHeight:isNaN(T)?null:T,textAlign:"center",textVerticalAlign:"middle"},{autoColor:_,forceRich:!0})}))}}}),n=i;H.exports=n},"p77/":function(H,k,d){},pA7S:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.WordArray,b=C.BlockCipher,g=x.algo,f=[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],o=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],r=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],i=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],n=g.DES=b.extend({_doReset:function(){for(var s=this._key,u=s.words,h=[],p=0;p<56;p++){var m=f[p]-1;h[p]=u[m>>>5]>>>31-m%32&1}for(var v=this._subKeys=[],y=0;y<16;y++){for(var E=v[y]=[],T=o[y],p=0;p<24;p++)E[p/6|0]|=h[(c[p]-1+T)%28]<<31-p%6,E[4+(p/6|0)]|=h[28+(c[p+24]-1+T)%28]<<31-p%6;E[0]=E[0]<<1|E[0]>>>31;for(var p=1;p<7;p++)E[p]=E[p]>>>(p-1)*4+3;E[7]=E[7]<<5|E[7]>>>27}for(var w=this._invSubKeys=[],p=0;p<16;p++)w[p]=v[15-p]},encryptBlock:function(s,u){this._doCryptBlock(s,u,this._subKeys)},decryptBlock:function(s,u){this._doCryptBlock(s,u,this._invSubKeys)},_doCryptBlock:function(s,u,h){this._lBlock=s[u],this._rBlock=s[u+1],e.call(this,4,252645135),e.call(this,16,65535),l.call(this,2,858993459),l.call(this,8,16711935),e.call(this,1,1431655765);for(var p=0;p<16;p++){for(var m=h[p],v=this._lBlock,y=this._rBlock,E=0,T=0;T<8;T++)E|=r[T][((y^m[T])&i[T])>>>0];this._lBlock=y,this._rBlock=v^E}var w=this._lBlock;this._lBlock=this._rBlock,this._rBlock=w,e.call(this,1,1431655765),l.call(this,8,16711935),l.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),s[u]=this._lBlock,s[u+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function e(a,s){var u=(this._lBlock>>>a^this._rBlock)&s;this._rBlock^=u,this._lBlock^=u<<a}function l(a,s){var u=(this._rBlock>>>a^this._lBlock)&s;this._lBlock^=u,this._rBlock^=u<<a}x.DES=b._createHelper(n);var t=g.TripleDES=b.extend({_doReset:function(){var s=this._key,u=s.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 h=u.slice(0,2),p=u.length<4?u.slice(0,2):u.slice(2,4),m=u.length<6?u.slice(0,2):u.slice(4,6);this._des1=n.createEncryptor(A.create(h)),this._des2=n.createEncryptor(A.create(p)),this._des3=n.createEncryptor(A.create(m))},encryptBlock:function(s,u){this._des1.encryptBlock(s,u),this._des2.decryptBlock(s,u),this._des3.encryptBlock(s,u)},decryptBlock:function(s,u){this._des3.decryptBlock(s,u),this._des2.encryptBlock(s,u),this._des1.decryptBlock(s,u)},keySize:192/32,ivSize:64/32,blockSize:64/32});x.TripleDES=b._createHelper(t)}(),O.TripleDES})},pC0b:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("xzDV"),A=d.n(C),b=d("5Dmo")},"pED+":function(H,k,d){},pG52:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("WXVj"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},pLH3:function(H,k,d){var O=d("ProS");d("ALo7"),d("TWL2");var x=d("mOdp"),C=d("JLnu"),A=d("0/Rx");O.registerVisual(x("funnel")),O.registerLayout(C),O.registerProcessor(A("funnel"))},pP6R:function(H,k,d){var O=d("ProS"),x="\0_ec_interaction_mutex";function C(f,c,o){var r=g(f);r[c]=o}function A(f,c,o){var r=g(f),i=r[c];i===o&&(r[c]=null)}function b(f,c){return!!g(f)[c]}function g(f){return f[x]||(f[x]={})}O.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),k.take=C,k.release=A,k.isTaken=b},pmaE:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("IwbS"),A=d("DEFe"),b="__seriesMapHighDown",g="__seriesMapCallKey",f=O.extendChartView({type:"map",render:function(r,i,n,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var l=this.group;if(l.removeAll(),r.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===r.id){var t=this._mapDraw;t&&l.add(t.group)}else if(r.needsDrawMap){var t=this._mapDraw||new A(n,!0);l.add(t.group),t.draw(r,i,n,this,e),this._mapDraw=t}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(r,i,n)},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(r,i,n){var e=r.originalData,l=this.group;e.each(e.mapDimension("value"),function(t,a){if(isNaN(t))return;var s=e.getItemLayout(a);if(!s||!s.point)return;var u=s.point,h=s.offset,p=new C.Circle({style:{fill:r.getData().getVisual("color")},shape:{cx:u[0]+h*9,cy:u[1],r:3},silent:!0,z2:8+(h?0:C.Z2_EMPHASIS_LIFT+1)});if(!h){var m=r.mainSeries.getData(),v=e.getName(a),y=m.indexOfName(v),E=e.getItemModel(a),T=E.getModel("label"),w=E.getModel("emphasis.label"),S=m.getItemGraphicEl(y),_=x.retrieve2(r.getFormattedLabel(y,"normal"),v),I=x.retrieve2(r.getFormattedLabel(y,"emphasis"),_),L=S[b],N=Math.random();if(!L){L=S[b]={};var R=x.curry(c,!0),D=x.curry(c,!1);S.on("mouseover",R).on("mouseout",D).on("emphasis",R).on("normal",D)}S[g]=N,x.extend(L,{recordVersion:N,circle:p,labelModel:T,hoverLabelModel:w,emphasisText:I,normalText:_}),o(L,!1)}l.add(p)})}});function c(r){var i=this[b];i&&i.recordVersion===this[g]&&o(i,r)}function o(r,i){var n=r.circle,e=r.labelModel,l=r.hoverLabelModel,t=r.emphasisText,a=r.normalText;i?(n.style.extendFrom(C.setTextStyle({},l,{text:l.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))}H.exports=f},pwpV:function(H,k,d){},pzxd:function(H,k,d){var O=d("bYtY"),x=O.retrieve2,C=O.retrieve3,A=O.each,b=O.normalizeCssArray,g=O.isString,f=O.isObject,c=d("6GrX"),o=d("VpOo"),r=d("Xnb7"),i=d("fW2E"),n=d("gut8"),e=n.ContextCachedBy,l=n.WILL_BE_RESTORED,t=c.DEFAULT_FONT,a={left:1,right:1,center:1},s={top:1,bottom:1,middle:1},u=[["textShadowBlur","shadowBlur",0],["textShadowOffsetX","shadowOffsetX",0],["textShadowOffsetY","shadowOffsetY",0],["textShadowColor","shadowColor","transparent"]],h={},p={};function m(W){return v(W),A(W.rich,v),W}function v(W){if(W){W.font=c.makeFont(W);var V=W.textAlign;V==="middle"&&(V="center"),W.textAlign=V==null||a[V]?V:"left";var z=W.textVerticalAlign||W.textBaseline;z==="center"&&(z="middle"),W.textVerticalAlign=z==null||s[z]?z:"top";var J=W.textPadding;J&&(W.textPadding=b(W.textPadding))}}function y(W,V,z,J,q,de){J.rich?T(W,V,z,J,q,de):E(W,V,z,J,q,de)}function E(W,V,z,J,q,de){"use strict";var ae=I(J),ve,_e=!1,Ie=V.__attrCachedBy===e.PLAIN_TEXT;de!==l?(de&&(ve=de.style,_e=!ae&&Ie&&ve),V.__attrCachedBy=ae?e.NONE:e.PLAIN_TEXT):Ie&&(V.__attrCachedBy=e.NONE);var He=J.font||t;(!_e||He!==(ve.font||t))&&(V.font=He);var me=W.__computedFont;W.__styleFont!==He&&(W.__styleFont=He,me=W.__computedFont=V.font);var ke=J.textPadding,se=J.textLineHeight,te=W.__textCotentBlock;(!te||W.__dirtyText)&&(te=W.__textCotentBlock=c.parsePlainText(z,me,ke,se,J.truncate));var Ge=te.outerHeight,oe=te.lines,Y=te.lineHeight,G=R(p,W,J,q),Q=G.baseX,ye=G.baseY,ce=G.textAlign||"left",Te=G.textVerticalAlign;S(V,J,q,Q,ye);var Se=c.adjustTextY(ye,Ge,Te),le=Q,fe=Se;if(ae||ke){var Ee=c.getWidth(z,me),Ve=Ee;ke&&(Ve+=ke[1]+ke[3]);var vt=c.adjustTextX(Q,Ve,ce);ae&&L(W,V,J,vt,Se,Ve,Ge),ke&&(le=B(Q,ce,ke),fe+=ke[0])}V.textAlign=ce,V.textBaseline="middle",V.globalAlpha=J.opacity||1;for(var et=0;et<u.length;et++){var Oe=u[et],Tt=Oe[0],Je=Oe[1],St=J[Tt];(!_e||St!==ve[Tt])&&(V[Je]=i(V,Je,St||Oe[2]))}fe+=Y/2;var Mt=J.textStrokeWidth,er=_e?ve.textStrokeWidth:null,It=!_e||Mt!==er,_t=!_e||It||J.textStroke!==ve.textStroke,Xe=F(J.textStroke,Mt),ie=M(J.textFill);if(Xe&&(It&&(V.lineWidth=Mt),_t&&(V.strokeStyle=Xe)),ie&&((!_e||J.textFill!==ve.textFill)&&(V.fillStyle=ie)),oe.length===1)Xe&&V.strokeText(oe[0],le,fe),ie&&V.fillText(oe[0],le,fe);else for(var et=0;et<oe.length;et++)Xe&&V.strokeText(oe[et],le,fe),ie&&V.fillText(oe[et],le,fe),fe+=Y}function T(W,V,z,J,q,de){de!==l&&(V.__attrCachedBy=e.NONE);var ae=W.__textCotentBlock;(!ae||W.__dirtyText)&&(ae=W.__textCotentBlock=c.parseRichText(z,J)),w(W,V,ae,J,q)}function w(W,V,z,J,q){var de=z.width,ae=z.outerWidth,ve=z.outerHeight,_e=J.textPadding,Ie=R(p,W,J,q),He=Ie.baseX,me=Ie.baseY,ke=Ie.textAlign,se=Ie.textVerticalAlign;S(V,J,q,He,me);var te=c.adjustTextX(He,ae,ke),Ge=c.adjustTextY(me,ve,se),oe=te,Y=Ge;_e&&(oe+=_e[3],Y+=_e[0]);var G=oe+de;I(J)&&L(W,V,J,te,Ge,ae,ve);for(var Q=0;Q<z.lines.length;Q++){for(var ye=z.lines[Q],ce=ye.tokens,Te=ce.length,Se=ye.lineHeight,le=ye.width,fe=0,Ee=oe,Ve=G,vt=Te-1,et;fe<Te&&(et=ce[fe],!et.textAlign||et.textAlign==="left");)_(W,V,et,J,Se,Y,Ee,"left"),le-=et.width,Ee+=et.width,fe++;for(;vt>=0&&(et=ce[vt],et.textAlign==="right");)_(W,V,et,J,Se,Y,Ve,"right"),le-=et.width,Ve-=et.width,vt--;for(Ee+=(de-(Ee-oe)-(G-Ve)-le)/2;fe<=vt;)et=ce[fe],_(W,V,et,J,Se,Y,Ee+et.width/2,"center"),Ee+=et.width,fe++;Y+=Se}}function S(W,V,z,J,q){if(z&&V.textRotation){var de=V.textOrigin;de==="center"?(J=z.width/2+z.x,q=z.height/2+z.y):de&&(J=de[0]+z.x,q=de[1]+z.y),W.translate(J,q),W.rotate(-V.textRotation),W.translate(-J,-q)}}function _(W,V,z,J,q,de,ae,ve){var _e=J.rich[z.styleName]||{};_e.text=z.text;var Ie=z.textVerticalAlign,He=de+q/2;Ie==="top"?He=de+z.height/2:Ie==="bottom"&&(He=de+q-z.height/2),!z.isLineHolder&&I(_e)&&L(W,V,_e,ve==="right"?ae-z.width:ve==="center"?ae-z.width/2:ae,He-z.height/2,z.width,z.height);var me=z.textPadding;me&&(ae=B(ae,ve,me),He-=z.height/2-me[2]-z.textHeight/2),D(V,"shadowBlur",C(_e.textShadowBlur,J.textShadowBlur,0)),D(V,"shadowColor",_e.textShadowColor||J.textShadowColor||"transparent"),D(V,"shadowOffsetX",C(_e.textShadowOffsetX,J.textShadowOffsetX,0)),D(V,"shadowOffsetY",C(_e.textShadowOffsetY,J.textShadowOffsetY,0)),D(V,"textAlign",ve),D(V,"textBaseline","middle"),D(V,"font",z.font||t);var ke=F(_e.textStroke||J.textStroke,te),se=M(_e.textFill||J.textFill),te=x(_e.textStrokeWidth,J.textStrokeWidth);ke&&(D(V,"lineWidth",te),D(V,"strokeStyle",ke),V.strokeText(z.text,ae,He)),se&&(D(V,"fillStyle",se),V.fillText(z.text,ae,He))}function I(W){return!!(W.textBackgroundColor||W.textBorderWidth&&W.textBorderColor)}function L(W,V,z,J,q,de,ae){var ve=z.textBackgroundColor,_e=z.textBorderWidth,Ie=z.textBorderColor,He=g(ve);if(D(V,"shadowBlur",z.textBoxShadowBlur||0),D(V,"shadowColor",z.textBoxShadowColor||"transparent"),D(V,"shadowOffsetX",z.textBoxShadowOffsetX||0),D(V,"shadowOffsetY",z.textBoxShadowOffsetY||0),He||_e&&Ie){V.beginPath();var me=z.textBorderRadius;me?o.buildPath(V,{x:J,y:q,width:de,height:ae,r:me}):V.rect(J,q,de,ae),V.closePath()}if(He)if(D(V,"fillStyle",ve),z.fillOpacity!=null){var ke=V.globalAlpha;V.globalAlpha=z.fillOpacity*z.opacity,V.fill(),V.globalAlpha=ke}else V.fill();else if(f(ve)){var se=ve.image;se=r.createOrUpdateImage(se,null,W,N,ve),se&&r.isImageReady(se)&&V.drawImage(se,J,q,de,ae)}if(_e&&Ie)if(D(V,"lineWidth",_e),D(V,"strokeStyle",Ie),z.strokeOpacity!=null){var ke=V.globalAlpha;V.globalAlpha=z.strokeOpacity*z.opacity,V.stroke(),V.globalAlpha=ke}else V.stroke()}function N(W,V){V.image=W}function R(W,V,z,J){var q=z.x||0,de=z.y||0,ae=z.textAlign,ve=z.textVerticalAlign;if(J){var _e=z.textPosition;if(_e instanceof Array)q=J.x+U(_e[0],J.width),de=J.y+U(_e[1],J.height);else{var Ie=V&&V.calculateTextPosition?V.calculateTextPosition(h,z,J):c.calculateTextPosition(h,z,J);q=Ie.x,de=Ie.y,ae=ae||Ie.textAlign,ve=ve||Ie.textVerticalAlign}var He=z.textOffset;He&&(q+=He[0],de+=He[1])}return W=W||{},W.baseX=q,W.baseY=de,W.textAlign=ae,W.textVerticalAlign=ve,W}function D(W,V,z){return W[V]=i(W,V,z),W[V]}function F(W,V){return W==null||V<=0||W==="transparent"||W==="none"?null:W.image||W.colorStops?"#000":W}function M(W){return W==null||W==="none"?null:W.image||W.colorStops?"#000":W}function U(W,V){return typeof W=="string"?W.lastIndexOf("%")>=0?parseFloat(W)/100*V:parseFloat(W):W}function B(W,V,z){return V==="right"?W-z[1]:V==="center"?W+z[3]/2-z[1]/2:W+z[3]}function j(W,V){return W!=null&&(W||V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor||V.textPadding)}k.normalizeTextStyle=m,k.renderText=y,k.getBoxPosition=R,k.getStroke=F,k.getFill=M,k.parsePercent=U,k.needDrawText=j},"q/+u":function(H,k,d){var O=d("ProS"),x=d("9wZj"),C=d("yWXo"),A=d("h8O9");O.extendChartView({type:"scatter",render:function(b,g,f){var c=b.getData(),o=this._updateSymbolDraw(c,b);o.updateData(c,{clipShape:this._getClipShape(b)}),this._finished=!0},incrementalPrepareRender:function(b,g,f){var c=b.getData(),o=this._updateSymbolDraw(c,b);o.incrementalPrepareUpdate(c),this._finished=!1},incrementalRender:function(b,g,f){this._symbolDraw.incrementalUpdate(b,g.getData(),{clipShape:this._getClipShape(g)}),this._finished=b.end===g.getData().count()},updateTransform:function(b,g,f){var c=b.getData();if(this.group.dirty(),!this._finished||c.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=A().reset(b);o.progress&&o.progress({start:0,end:c.count()},c),this._symbolDraw.updateLayout(c)},_getClipShape:function(b){var g=b.coordinateSystem,f=g&&g.getArea&&g.getArea();return b.get("clip",!0)?f:null},_updateSymbolDraw:function(b,g){var f=this._symbolDraw,c=g.pipelineContext,o=c.large;return(!f||o!==this._isLargeDraw)&&(f&&f.remove(),f=this._symbolDraw=o?new C:new x,this._isLargeDraw=o,this.group.removeAll()),this.group.add(f.group),f},remove:function(b,g){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(H,k){var d=["lineStyle","normal","opacity"],O={seriesType:"parallel",reset:function(x,C,A){var b=x.getModel("itemStyle"),g=x.getModel("lineStyle"),f=C.get("color"),c=g.get("color")||b.get("color")||f[x.seriesIndex%f.length],o=x.get("inactiveOpacity"),r=x.get("activeOpacity"),i=x.getModel("lineStyle").getLineStyle(),n=x.coordinateSystem,e=x.getData(),l={normal:i.opacity,active:r,inactive:o};e.setVisual("color",c);function t(a,s){n.eachActiveState(s,function(u,h){var p=l[u];if(u==="normal"&&s.hasItemOption){var m=s.getItemModel(h).get(d,!0);m!=null&&(p=m)}s.setItemVisual(h,"opacity",p)},a.start,a.end)}return{progress:t}}};H.exports=O},q4HE:function(H,k){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",x="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",A=O+x+C,b="\\ufe0e\\ufe0f",g="["+d+"]",f="["+A+"]",c="\\ud83c[\\udffb-\\udfff]",o="(?:"+f+"|"+c+")",r="[^"+d+"]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",n="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",l=o+"?",t="["+b+"]?",a="(?:"+e+"(?:"+[r,i,n].join("|")+")"+t+l+")*",s=t+l+a,u="(?:"+[r+f+"?",f,i,n,g].join("|")+")",h=RegExp(c+"(?="+c+")|"+u+s,"g");function p(m){for(var v=h.lastIndex=0;h.test(m);)++v;return v}H.exports=p},q7KB:function(H,k,d){},qBft:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.AnsiX923={pad:function(C,A){var b=C.sigBytes,g=A*4,f=g-b%g,c=b+f-1;C.clamp(),C.words[c>>>2]|=f<<24-c%4*8,C.sigBytes+=f},unpad:function(C){var A=C.words[C.sigBytes-1>>>2]&255;C.sigBytes-=A}},O.pad.Ansix923})},qH13:function(H,k,d){var O=d("ItGF"),x=d("QBsz"),C=x.applyTransform,A=d("mFDi"),b=d("Qe9p"),g=d("6GrX"),f=d("pzxd"),c=d("ni6a"),o=d("Gev7"),r=d("Dagg"),i=d("dqUG"),n=d("y+Vt"),e=d("IMiH"),l=d("QuXc"),t=d("06Qe"),a=e.CMD,s=Math.round,u=Math.sqrt,h=Math.abs,p=Math.cos,m=Math.sin,v=Math.max;if(!O.canvasSupported){var y=",",E="progid:DXImageTransform.Microsoft",T=21600,w=T/2,S=1e5,_=1e3,I=function(ye){ye.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",ye.coordsize=T+","+T,ye.coordorigin="0,0"},L=function(ye){return String(ye).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},N=function(ye,ce,Te){return"rgb("+[ye,ce,Te].join(",")+")"},R=function(ye,ce){ce&&ye&&ce.parentNode!==ye&&ye.appendChild(ce)},D=function(ye,ce){ce&&ye&&ce.parentNode===ye&&ye.removeChild(ce)},F=function(ye,ce,Te){return(parseFloat(ye)||0)*S+(parseFloat(ce)||0)*_+Te},M=f.parsePercent,U=function(ye,ce,Te){var Se=b.parse(ce);Te=+Te,isNaN(Te)&&(Te=1),Se&&(ye.color=N(Se[0],Se[1],Se[2]),ye.opacity=Te*Se[3])},B=function(ye){var ce=b.parse(ye);return[N(ce[0],ce[1],ce[2]),ce[3]]},j=function(ye,ce,Te){var Se=ce.fill;if(Se!=null)if(Se instanceof l){var le,fe=0,Ee=[0,0],Ve=0,vt=1,et=Te.getBoundingRect(),Oe=et.width,Tt=et.height;if(Se.type==="linear"){le="gradient";var Je=Te.transform,St=[Se.x*Oe,Se.y*Tt],Mt=[Se.x2*Oe,Se.y2*Tt];Je&&(C(St,St,Je),C(Mt,Mt,Je));var er=Mt[0]-St[0],It=Mt[1]-St[1];fe=Math.atan2(er,It)*180/Math.PI,fe<0&&(fe+=360),fe<1e-6&&(fe=0)}else{le="gradientradial";var St=[Se.x*Oe,Se.y*Tt],Je=Te.transform,_t=Te.scale,Xe=Oe,ie=Tt;Ee=[(St[0]-et.x)/Xe,(St[1]-et.y)/ie],Je&&C(St,St,Je),Xe/=_t[0]*T,ie/=_t[1]*T;var X=v(Xe,ie);Ve=2*0/X,vt=2*Se.r/X-Ve}var Be=Se.colorStops.slice();Be.sort(function(Ut,kt){return Ut.offset-kt.offset});for(var Ce=Be.length,Z=[],nt=[],ct=0;ct<Ce;ct++){var Qe=Be[ct],dt=B(Qe.color);nt.push(Qe.offset*vt+Ve+" "+dt[0]),(ct===0||ct===Ce-1)&&Z.push(dt)}if(Ce>=2){var Ft=Z[0][0],Lr=Z[1][0],Wt=Z[0][1]*ce.opacity,ar=Z[1][1]*ce.opacity;ye.type=le,ye.method="none",ye.focus="100%",ye.angle=fe,ye.color=Ft,ye.color2=Lr,ye.colors=nt.join(","),ye.opacity=ar,ye.opacity2=Wt}le==="radial"&&(ye.focusposition=Ee.join(","))}else U(ye,Se,ce.opacity)},W=function(ye,ce){ce.lineDash&&(ye.dashstyle=ce.lineDash.join(" ")),ce.stroke!=null&&!(ce.stroke instanceof l)&&U(ye,ce.stroke,ce.opacity)},V=function(ye,ce,Te,Se){var le=ce==="fill",fe=ye.getElementsByTagName(ce)[0];Te[ce]!=null&&Te[ce]!=="none"&&(le||!le&&Te.lineWidth)?(ye[le?"filled":"stroked"]="true",Te[ce]instanceof l&&D(ye,fe),fe||(fe=t.createNode(ce)),le?j(fe,Te,Se):W(fe,Te),R(ye,fe)):(ye[le?"filled":"stroked"]="false",D(ye,fe))},z=[[],[],[]],J=function(ye,ce){var Te=a.M,Se=a.C,le=a.L,fe=a.A,Ee=a.Q,Ve=[],vt,et,Oe,Tt,Je,St,Mt=ye.data,er=ye.len();for(Tt=0;Tt<er;){Oe=Mt[Tt++],et="",vt=0;switch(Oe){case Te:et=" m ",vt=1,Je=Mt[Tt++],St=Mt[Tt++],z[0][0]=Je,z[0][1]=St;break;case le:et=" l ",vt=1,Je=Mt[Tt++],St=Mt[Tt++],z[0][0]=Je,z[0][1]=St;break;case Ee:case Se:et=" c ",vt=3;var It=Mt[Tt++],_t=Mt[Tt++],Xe=Mt[Tt++],ie=Mt[Tt++],X,Be;Oe===Ee?(X=Xe,Be=ie,Xe=(Xe+2*It)/3,ie=(ie+2*_t)/3,It=(Je+2*It)/3,_t=(St+2*_t)/3):(X=Mt[Tt++],Be=Mt[Tt++]),z[0][0]=It,z[0][1]=_t,z[1][0]=Xe,z[1][1]=ie,z[2][0]=X,z[2][1]=Be,Je=X,St=Be;break;case fe:var Ce=0,Z=0,nt=1,ct=1,Qe=0;ce&&(Ce=ce[4],Z=ce[5],nt=u(ce[0]*ce[0]+ce[1]*ce[1]),ct=u(ce[2]*ce[2]+ce[3]*ce[3]),Qe=Math.atan2(-ce[1]/ct,ce[0]/nt));var dt=Mt[Tt++],Ft=Mt[Tt++],Lr=Mt[Tt++],Wt=Mt[Tt++],ar=Mt[Tt++]+Qe,Ut=Mt[Tt++]+ar+Qe;Tt++;var kt=Mt[Tt++],st=dt+p(ar)*Lr,Rr=Ft+m(ar)*Wt,It=dt+p(Ut)*Lr,_t=Ft+m(Ut)*Wt,on=kt?" wa ":" at ";Math.abs(st-It)<1e-4&&(Math.abs(Ut-ar)>.01?kt&&(st+=270/T):Math.abs(Rr-Ft)<1e-4?kt&&st<dt||!kt&&st>dt?_t-=270/T:_t+=270/T:kt&&Rr<Ft||!kt&&Rr>Ft?It+=270/T:It-=270/T),Ve.push(on,s(((dt-Lr)*nt+Ce)*T-w),y,s(((Ft-Wt)*ct+Z)*T-w),y,s(((dt+Lr)*nt+Ce)*T-w),y,s(((Ft+Wt)*ct+Z)*T-w),y,s((st*nt+Ce)*T-w),y,s((Rr*ct+Z)*T-w),y,s((It*nt+Ce)*T-w),y,s((_t*ct+Z)*T-w)),Je=It,St=_t;break;case a.R:var Sn=z[0],zn=z[1];Sn[0]=Mt[Tt++],Sn[1]=Mt[Tt++],zn[0]=Sn[0]+Mt[Tt++],zn[1]=Sn[1]+Mt[Tt++],ce&&(C(Sn,Sn,ce),C(zn,zn,ce)),Sn[0]=s(Sn[0]*T-w),zn[0]=s(zn[0]*T-w),Sn[1]=s(Sn[1]*T-w),zn[1]=s(zn[1]*T-w),Ve.push(" m ",Sn[0],y,Sn[1]," l ",zn[0],y,Sn[1]," l ",zn[0],y,zn[1]," l ",Sn[0],y,zn[1]);break;case a.Z:Ve.push(" x ")}if(vt>0){Ve.push(et);for(var Ii=0;Ii<vt;Ii++){var yn=z[Ii];ce&&C(yn,yn,ce),Ve.push(s(yn[0]*T-w),y,s(yn[1]*T-w),Ii<vt-1?y:"")}}}return Ve.join("")};n.prototype.brushVML=function(Q){var ye=this.style,ce=this._vmlEl;ce||(ce=t.createNode("shape"),I(ce),this._vmlEl=ce),V(ce,"fill",ye,this),V(ce,"stroke",ye,this);var Te=this.transform,Se=Te!=null,le=ce.getElementsByTagName("stroke")[0];if(le){var fe=ye.lineWidth;if(Se&&!ye.strokeNoScale){var Ee=Te[0]*Te[3]-Te[1]*Te[2];fe*=u(h(Ee))}le.weight=fe+"px"}var Ve=this.path||(this.path=new e);this.__dirtyPath&&(Ve.beginPath(),Ve.subPixelOptimize=!1,this.buildPath(Ve,this.shape),Ve.toStatic(),this.__dirtyPath=!1),ce.path=J(Ve,this.transform),ce.style.zIndex=F(this.zlevel,this.z,this.z2),R(Q,ce),ye.text!=null?this.drawRectText(Q,this.getBoundingRect()):this.removeRectText(Q)},n.prototype.onRemove=function(Q){D(Q,this._vmlEl),this.removeRectText(Q)},n.prototype.onAdd=function(Q){R(Q,this._vmlEl),this.appendRectText(Q)};var q=function(ye){return typeof ye=="object"&&ye.tagName&&ye.tagName.toUpperCase()==="IMG"};r.prototype.brushVML=function(Q){var ye=this.style,ce=ye.image,Te,Se;if(q(ce)){var le=ce.src;if(le===this._imageSrc)Te=this._imageWidth,Se=this._imageHeight;else{var fe=ce.runtimeStyle,Ee=fe.width,Ve=fe.height;fe.width="auto",fe.height="auto",Te=ce.width,Se=ce.height,fe.width=Ee,fe.height=Ve,this._imageSrc=le,this._imageWidth=Te,this._imageHeight=Se}ce=le}else ce===this._imageSrc&&(Te=this._imageWidth,Se=this._imageHeight);if(!ce)return;var vt=ye.x||0,et=ye.y||0,Oe=ye.width,Tt=ye.height,Je=ye.sWidth,St=ye.sHeight,Mt=ye.sx||0,er=ye.sy||0,It=Je&&St,_t=this._vmlEl;_t||(_t=t.doc.createElement("div"),I(_t),this._vmlEl=_t);var Xe=_t.style,ie=!1,X,Be=1,Ce=1;if(this.transform&&(X=this.transform,Be=u(X[0]*X[0]+X[1]*X[1]),Ce=u(X[2]*X[2]+X[3]*X[3]),ie=X[1]||X[2]),ie){var Z=[vt,et],nt=[vt+Oe,et],ct=[vt,et+Tt],Qe=[vt+Oe,et+Tt];C(Z,Z,X),C(nt,nt,X),C(ct,ct,X),C(Qe,Qe,X);var dt=v(Z[0],nt[0],ct[0],Qe[0]),Ft=v(Z[1],nt[1],ct[1],Qe[1]),Lr=[];Lr.push("M11=",X[0]/Be,y,"M12=",X[2]/Ce,y,"M21=",X[1]/Be,y,"M22=",X[3]/Ce,y,"Dx=",s(vt*Be+X[4]),y,"Dy=",s(et*Ce+X[5])),Xe.padding="0 "+s(dt)+"px "+s(Ft)+"px 0",Xe.filter=E+".Matrix("+Lr.join("")+", SizingMethod=clip)"}else X&&(vt=vt*Be+X[4],et=et*Ce+X[5]),Xe.filter="",Xe.left=s(vt)+"px",Xe.top=s(et)+"px";var Wt=this._imageEl,ar=this._cropEl;Wt||(Wt=t.doc.createElement("div"),this._imageEl=Wt);var Ut=Wt.style;if(It){if(Te&&Se)Ut.width=s(Be*Te*Oe/Je)+"px",Ut.height=s(Ce*Se*Tt/St)+"px";else{var kt=new Image,st=this;kt.onload=function(){kt.onload=null,Te=kt.width,Se=kt.height,Ut.width=s(Be*Te*Oe/Je)+"px",Ut.height=s(Ce*Se*Tt/St)+"px",st._imageWidth=Te,st._imageHeight=Se,st._imageSrc=ce},kt.src=ce}ar||(ar=t.doc.createElement("div"),ar.style.overflow="hidden",this._cropEl=ar);var Rr=ar.style;Rr.width=s((Oe+Mt*Oe/Je)*Be),Rr.height=s((Tt+er*Tt/St)*Ce),Rr.filter=E+".Matrix(Dx="+-Mt*Oe/Je*Be+",Dy="+-er*Tt/St*Ce+")",ar.parentNode||_t.appendChild(ar),Wt.parentNode!==ar&&ar.appendChild(Wt)}else Ut.width=s(Be*Oe)+"px",Ut.height=s(Ce*Tt)+"px",_t.appendChild(Wt),ar&&ar.parentNode&&(_t.removeChild(ar),this._cropEl=null);var on="",Sn=ye.opacity;Sn<1&&(on+=".Alpha(opacity="+s(Sn*100)+") "),on+=E+".AlphaImageLoader(src="+ce+", SizingMethod=scale)",Ut.filter=on,_t.style.zIndex=F(this.zlevel,this.z,this.z2),R(Q,_t),ye.text!=null&&this.drawRectText(Q,this.getBoundingRect())},r.prototype.onRemove=function(Q){D(Q,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(Q)},r.prototype.onAdd=function(Q){R(Q,this._vmlEl),this.appendRectText(Q)};var de="normal",ae={},ve=0,_e=100,Ie=document.createElement("div"),He=function(ye){var ce=ae[ye];if(!ce){ve>_e&&(ve=0,ae={});var Te=Ie.style,Se;try{Te.font=ye,Se=Te.fontFamily.split(",")[0]}catch(le){}ce={style:Te.fontStyle||de,variant:Te.fontVariant||de,weight:Te.fontWeight||de,size:parseFloat(Te.fontSize||12)|0,family:Se||"Microsoft YaHei"},ae[ye]=ce,ve++}return ce},me;g.$override("measureText",function(Q,ye){var ce=t.doc;me||(me=ce.createElement("div"),me.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",t.doc.body.appendChild(me));try{me.style.font=ye}catch(Te){}return me.innerHTML="",me.appendChild(ce.createTextNode(Q)),{width:me.offsetWidth}});for(var ke=new A,se=function(ye,ce,Te,Se){var le=this.style;this.__dirty&&f.normalizeTextStyle(le,!0);var fe=le.text;if(fe!=null&&(fe+=""),!fe)return;if(le.rich){var Ee=g.parseRichText(fe,le);fe=[];for(var Ve=0;Ve<Ee.lines.length;Ve++){for(var vt=Ee.lines[Ve].tokens,et=[],Oe=0;Oe<vt.length;Oe++)et.push(vt[Oe].text);fe.push(et.join(""))}fe=fe.join(`
`)}var Tt,Je,St=le.textAlign,Mt=le.textVerticalAlign,er=He(le.font),It=er.style+" "+er.variant+" "+er.weight+" "+er.size+'px "'+er.family+'"';Te=Te||g.getBoundingRect(fe,It,St,Mt,le.textPadding,le.textLineHeight);var _t=this.transform;if(_t&&!Se&&(ke.copy(ce),ke.applyTransform(_t),ce=ke),Se)Tt=ce.x,Je=ce.y;else{var Xe=le.textPosition;if(Xe instanceof Array)Tt=ce.x+M(Xe[0],ce.width),Je=ce.y+M(Xe[1],ce.height),St=St||"left";else{var ie=this.calculateTextPosition?this.calculateTextPosition({},le,ce):g.calculateTextPosition({},le,ce);Tt=ie.x,Je=ie.y,St=St||ie.textAlign,Mt=Mt||ie.textVerticalAlign}}Tt=g.adjustTextX(Tt,Te.width,St),Je=g.adjustTextY(Je,Te.height,Mt),Je+=Te.height/2;var X=t.createNode,Be=this._textVmlEl,Ce,Z,nt;Be?(nt=Be.firstChild,Ce=nt.nextSibling,Z=Ce.nextSibling):(Be=X("line"),Ce=X("path"),Z=X("textpath"),nt=X("skew"),Z.style["v-text-align"]="left",I(Be),Ce.textpathok=!0,Z.on=!0,Be.from="0 0",Be.to="1000 0.05",R(Be,nt),R(Be,Ce),R(Be,Z),this._textVmlEl=Be);var ct=[Tt,Je],Qe=Be.style;_t&&Se?(C(ct,ct,_t),nt.on=!0,nt.matrix=_t[0].toFixed(3)+y+_t[2].toFixed(3)+y+_t[1].toFixed(3)+y+_t[3].toFixed(3)+",0,0",nt.offset=(s(ct[0])||0)+","+(s(ct[1])||0),nt.origin="0 0",Qe.left="0px",Qe.top="0px"):(nt.on=!1,Qe.left=s(Tt)+"px",Qe.top=s(Je)+"px"),Z.string=L(fe);try{Z.style.font=It}catch(dt){}V(Be,"fill",{fill:le.textFill,opacity:le.opacity},this),V(Be,"stroke",{stroke:le.textStroke,opacity:le.opacity,lineDash:le.lineDash||null},this),Be.style.zIndex=F(this.zlevel,this.z,this.z2),R(ye,Be)},te=function(ye){D(ye,this._textVmlEl),this._textVmlEl=null},Ge=function(ye){R(ye,this._textVmlEl)},oe=[c,o,r,n,i],Y=0;Y<oe.length;Y++){var G=oe[Y].prototype;G.drawRectText=se,G.removeRectText=te,G.appendRectText=Ge}i.prototype.brushVML=function(Q){var ye=this.style;ye.text!=null?this.drawRectText(Q,{x:ye.x||0,y:ye.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(Q)},i.prototype.onRemove=function(Q){this.removeRectText(Q)},i.prototype.onAdd=function(Q){this.appendRectText(Q)}}},qJCg:function(H,k,d){var O=d("BlVb"),x=d("mFDi"),C=d("IwbS"),A=C.linePolygonIntersect,b={lineX:g(0),lineY:g(1),rect:{point:function(o,r,i){return o&&i.boundingRect.contain(o[0],o[1])},rect:function(o,r,i){return o&&i.boundingRect.intersect(o)}},polygon:{point:function(o,r,i){return o&&i.boundingRect.contain(o[0],o[1])&&O.contain(i.range,o[0],o[1])},rect:function(o,r,i){var n=i.range;if(!o||n.length<=1)return!1;var e=o.x,l=o.y,t=o.width,a=o.height,s=n[0];if(O.contain(n,e,l)||O.contain(n,e+t,l)||O.contain(n,e,l+a)||O.contain(n,e+t,l+a)||x.create(o).contain(s[0],s[1])||A(e,l,e+t,l,n)||A(e,l,e,l+a,n)||A(e+t,l,e+t,l+a,n)||A(e,l+a,e+t,l+a,n))return!0}}};function g(o){var r=["x","y"],i=["width","height"];return{point:function(n,e,l){if(n){var t=l.range,a=n[o];return f(a,t)}},rect:function(n,e,l){if(n){var t=l.range,a=[n[r[o]],n[r[o]]+n[i[o]]];return a[1]<a[0]&&a.reverse(),f(a[0],t)||f(a[1],t)||f(t[0],a)||f(t[1],a)}}}}function f(o,r){return r[0]<=o&&o<=r[1]}var c=b;H.exports=c},qM6L:function(H,k,d){(function(O,x){H.exports=k=x(d("Ib8C"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.WordArray,b=x.enc,g=b.Utf16=b.Utf16BE={stringify:function(o){for(var r=o.words,i=o.sigBytes,n=[],e=0;e<i;e+=2){var l=r[e>>>2]>>>16-e%4*8&65535;n.push(String.fromCharCode(l))}return n.join("")},parse:function(o){for(var r=o.length,i=[],n=0;n<r;n++)i[n>>>1]|=o.charCodeAt(n)<<16-n%2*16;return A.create(i,r*2)}};b.Utf16LE={stringify:function(o){for(var r=o.words,i=o.sigBytes,n=[],e=0;e<i;e+=2){var l=f(r[e>>>2]>>>16-e%4*8&65535);n.push(String.fromCharCode(l))}return n.join("")},parse:function(o){for(var r=o.length,i=[],n=0;n<r;n++)i[n>>>1]|=f(o.charCodeAt(n)<<16-n%2*16);return A.create(i,r*2)}};function f(c){return c<<8&4278255360|c>>>8&16711935}}(),O.enc.Utf16})},qMZE:function(H,k,d){var O=d("JEkh"),x=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}}}});H.exports=x},qOx5:function(H,k,d){"use strict";d.d(k,"a",function(){return g});var O=d("xroW");function x(f,c){var o=new Set;return f.forEach(function(r){c.has(r)||o.add(r)}),o}function C(f){var c=f||{},o=c.disabled,r=c.disableCheckbox,i=c.checkable;return!!(o||r)||i===!1}function A(f,c,o,r){for(var i=new Set(f),n=new Set,e=0;e<=o;e+=1){var l=c.get(e)||new Set;l.forEach(function(u){var h=u.key,p=u.node,m=u.children,v=m===void 0?[]:m;i.has(h)&&!r(p)&&v.filter(function(y){return!r(y.node)}).forEach(function(y){i.add(y.key)})})}for(var t=new Set,a=o;a>=0;a-=1){var s=c.get(a)||new Set;s.forEach(function(u){var h=u.parent,p=u.node;if(r(p)||!u.parent||t.has(u.parent.key))return;if(r(u.parent.node)){t.add(h.key);return}var m=!0,v=!1;(h.children||[]).filter(function(y){return!r(y.node)}).forEach(function(y){var E=y.key,T=i.has(E);m&&!T&&(m=!1),!v&&(T||n.has(E))&&(v=!0)}),m&&i.add(h.key),v&&n.add(h.key),t.add(h.key)})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(x(n,i))}}function b(f,c,o,r,i){for(var n=new Set(f),e=new Set(c),l=0;l<=r;l+=1){var t=o.get(l)||new Set;t.forEach(function(h){var p=h.key,m=h.node,v=h.children,y=v===void 0?[]:v;!n.has(p)&&!e.has(p)&&!i(m)&&y.filter(function(E){return!i(E.node)}).forEach(function(E){n.delete(E.key)})})}e=new Set;for(var a=new Set,s=r;s>=0;s-=1){var u=o.get(s)||new Set;u.forEach(function(h){var p=h.parent,m=h.node;if(i(m)||!h.parent||a.has(h.parent.key))return;if(i(h.parent.node)){a.add(p.key);return}var v=!0,y=!1;(p.children||[]).filter(function(E){return!i(E.node)}).forEach(function(E){var T=E.key,w=n.has(T);v&&!w&&(v=!1),!y&&(w||e.has(T))&&(y=!0)}),v||n.delete(p.key),y&&e.add(p.key),a.add(p.key)})}return{checkedKeys:Array.from(n),halfCheckedKeys:Array.from(x(e,n))}}function g(f,c,o,r){var i=[],n;r?n=r:n=C;var e=new Set(f.filter(function(s){var u=!!o[s];return u||i.push(s),u})),l=new Map,t=0;Object.keys(o).forEach(function(s){var u=o[s],h=u.level,p=l.get(h);p||(p=new Set,l.set(h,p)),p.add(u),t=Math.max(t,h)}),Object(O.a)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(s){return"'".concat(s,"'")}).join(", ")));var a;return c===!0?a=A(e,l,t,n):a=b(e,c.halfCheckedKeys,l,t,n),a}},qPY4:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("u4NN"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},qWUW:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("DL4k")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="CaretDownOutlined";var c=A.forwardRef(f);k.default=c},qWt2:function(H,k,d){var O=d("ProS"),x=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}}});H.exports=x},qZFw:function(H,k,d){var O=d("bYtY"),x=d("6GrX"),C=d("hM6l"),A=d("4NO4"),b=A.makeInner,g=b();function f(o,r){r=r||[0,360],C.call(this,"angle",o,r),this.type="category"}f.prototype={constructor:f,pointToData:function(o,r){return this.polar.pointToData(o,r)[this.dim==="radius"?0:1]},dataToAngle:C.prototype.dataToCoord,angleToData:C.prototype.coordToData,calculateCategoryInterval:function(){var o=this,r=o.getLabelModel(),i=o.scale,n=i.getExtent(),e=i.count();if(n[1]-n[0]<1)return 0;var l=n[0],t=o.dataToCoord(l+1)-o.dataToCoord(l),a=Math.abs(t),s=x.getBoundingRect(l,r.getFont(),"center","top"),u=Math.max(s.height,7),h=u/a;isNaN(h)&&(h=Infinity);var p=Math.max(0,Math.floor(h)),m=g(o.model),v=m.lastAutoInterval,y=m.lastTickCount;return v!=null&&y!=null&&Math.abs(v-p)<=1&&Math.abs(y-e)<=1&&v>p?p=v:(m.lastTickCount=e,m.lastAutoInterval=p),p}},O.inherits(f,C);var c=f;H.exports=c},qgGe:function(H,k,d){var O=d("bYtY"),x=d("T4UG"),C=d("Bsck"),A=d("VaxA"),b=A.wrapTreePathInfo,g=x.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(c,o){var r={name:c.name,children:c.data};f(r);var i=c.levels||[],n={};return n.levels=i,C.createTree(r,this,n).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(c){var o=x.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(c);return o.treePathInfo=b(r,this),o},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 o=this.getRawData().tree.root;(!c||c!==o&&!o.contains(c))&&(this._viewRoot=o)}});function f(c){var o=0;O.each(c.children,function(i){f(i);var n=i.value;O.isArray(n)&&(n=n[0]),o+=n});var r=c.value;O.isArray(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=o),r<0&&(r=0),O.isArray(c.value)?c.value[0]=r:c.value=r}H.exports=g},qj72:function(H,k,d){var O=d("bYtY");function x(A,b){return b=b||[0,0],O.map(["x","y"],function(g,f){var c=this.getAxis(g),o=b[f],r=A[f]/2;return c.type==="category"?c.getBandWidth():Math.abs(c.dataToCoord(o-r)-c.dataToCoord(o+r))},this)}function C(A){var b=A.grid.getRect();return{coordSys:{type:"cartesian2d",x:b.x,y:b.y,width:b.width,height:b.height},api:{coord:function(g){return A.dataToPoint(g)},size:O.bind(x,A)}}}H.exports=C},"qt/9":function(H,k,d){var O=d("ProS"),x=d("bYtY");d("Wqna"),d("1tlw"),d("Mylv");var C=d("nVfU"),A=C.layout,b=d("f5Yq");d("Ae16"),O.registerLayout(x.curry(A,"pictorialBar")),O.registerVisual(b("pictorialBar","roundRect"))},qu8F:function(H,k,d){(function(O,x,C){H.exports=k=x(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 x=O.lib.BlockCipherMode.extend();function C(g){if((g>>24&255)===255){var f=g>>16&255,c=g>>8&255,o=g&255;f===255?(f=0,c===255?(c=0,o===255?o=0:++o):++c):++f,g=0,g+=f<<16,g+=c<<8,g+=o}else g+=1<<24;return g}function A(g){return(g[0]=C(g[0]))===0&&(g[1]=C(g[1])),g}var b=x.Encryptor=x.extend({processBlock:function(f,c){var o=this._cipher,r=o.blockSize,i=this._iv,n=this._counter;i&&(n=this._counter=i.slice(0),this._iv=void 0),A(n);var e=n.slice(0);o.encryptBlock(e,0);for(var l=0;l<r;l++)f[c+l]^=e[l]}});return x.Decryptor=b,x}(),O.mode.CTRGladman})},quyA:function(H,k){var d="\\ud800-\\udfff",O="\\u0300-\\u036f",x="\\ufe20-\\ufe2f",C="\\u20d0-\\u20ff",A=O+x+C,b="\\ufe0e\\ufe0f",g="\\u200d",f=RegExp("["+g+d+A+b+"]");function c(o){return f.test(o)}H.exports=c},qwVE:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("K4ya"),A=d("XxSj"),b=O.PRIORITY.VISUAL.COMPONENT;O.registerVisual(b,{createOnAllSeries:!0,reset:function(f,c){var o=[];return c.eachComponent("visualMap",function(r){var i=f.pipelineContext;if(!r.isTargetSeries(f)||i&&i.large)return;o.push(C.incrementalApplyVisual(r.stateList,r.targetVisuals,x.bind(r.getValueState,r),r.getDataDimension(f.getData())))}),o}}),O.registerVisual(b,{createOnAllSeries:!0,reset:function(f,c){var o=f.getData(),r=[];c.eachComponent("visualMap",function(i){if(i.isTargetSeries(f)){var n=i.getVisualMeta(x.bind(g,null,f,i))||{stops:[],outerColors:[]},e=i.getDataDimension(o),l=o.getDimensionInfo(e);l!=null&&(n.dimension=l.index,r.push(n))}}),f.getData().setVisual("visualMeta",r)}});function g(f,c,o,r){for(var i=c.targetVisuals[r],n=A.prepareVisualTypes(i),e={color:f.getData().getVisual("color")},l=0,t=n.length;l<t;l++){var a=n[l],s=i[a==="opacity"?"__alphaForOpacity":a];s&&s.applyVisual(o,u,h)}return e.color;function u(p){return e[p]}function h(p,m){e[p]=m}}},"r+aA":function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("s2MQ")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="EyeInvisibleOutlined";var c=A.forwardRef(f);k.default=c},"r/2G":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("+Zaj"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},r6Bn:function(H,k,d){var O=d("bYtY"),x=d("ItGF"),C=d("4fz+"),A=d("BPZU");function b(c,o){return c.zlevel===o.zlevel?c.z===o.z?c.z2-o.z2:c.z-o.z:c.zlevel-o.zlevel}var g=function(){this._roots=[],this._displayList=[],this._displayListLen=0};g.prototype={constructor:g,traverse:function(o,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(o,r)},getDisplayList:function(o,r){return r=r||!1,o&&this.updateDisplayList(r),this._displayList},updateDisplayList:function(o){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,e=r.length;n<e;n++)this._updateAndAddDisplayable(r[n],null,o);i.length=this._displayListLen,x.canvasSupported&&A(i,b)},_updateAndAddDisplayable:function(o,r,i){if(o.ignore&&!i)return;o.beforeUpdate(),o.__dirty&&o.update(),o.afterUpdate();var n=o.clipPath;if(n){r?r=r.slice():r=[];for(var e=n,l=o;e;)e.parent=l,e.updateTransform(),r.push(e),l=e,e=e.clipPath}if(o.isGroup){for(var t=o._children,a=0;a<t.length;a++){var s=t[a];o.__dirty&&(s.__dirty=!0),this._updateAndAddDisplayable(s,r,i)}o.__dirty=!1}else o.__clipPaths=r,this._displayList[this._displayListLen++]=o},addRoot:function(o){if(o.__storage===this)return;o instanceof C&&o.addChildrenToStorage(this),this.addToStorage(o),this._roots.push(o)},delRoot:function(o){if(o==null){for(var r=0;r<this._roots.length;r++){var i=this._roots[r];i instanceof C&&i.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(o instanceof Array){for(var r=0,n=o.length;r<n;r++)this.delRoot(o[r]);return}var e=O.indexOf(this._roots,o);e>=0&&(this.delFromStorage(o),this._roots.splice(e,1),o instanceof C&&o.delChildrenFromStorage(this))},addToStorage:function(o){return o&&(o.__storage=this,o.dirty(!1)),this},delFromStorage:function(o){return o&&(o.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:b};var f=g;H.exports=f},rA99:function(H,k,d){var O=d("y+Vt"),x=d("QBsz"),C=d("Sj9i"),A=C.quadraticSubdivide,b=C.cubicSubdivide,g=C.quadraticAt,f=C.cubicAt,c=C.quadraticDerivativeAt,o=C.cubicDerivativeAt,r=[];function i(e,l,t){var a=e.cpx2,s=e.cpy2;return a===null||s===null?[(t?o:f)(e.x1,e.cpx1,e.cpx2,e.x2,l),(t?o:f)(e.y1,e.cpy1,e.cpy2,e.y2,l)]:[(t?c:g)(e.x1,e.cpx1,e.x2,l),(t?c:g)(e.y1,e.cpy1,e.y2,l)]}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(l,t){var a=t.x1,s=t.y1,u=t.x2,h=t.y2,p=t.cpx1,m=t.cpy1,v=t.cpx2,y=t.cpy2,E=t.percent;if(E===0)return;l.moveTo(a,s),v==null||y==null?(E<1&&(A(a,p,u,E,r),p=r[1],u=r[2],A(s,m,h,E,r),m=r[1],h=r[2]),l.quadraticCurveTo(p,m,u,h)):(E<1&&(b(a,p,v,u,E,r),p=r[1],v=r[2],u=r[3],b(s,m,y,h,E,r),m=r[1],y=r[2],h=r[3]),l.bezierCurveTo(p,m,v,y,u,h))},pointAt:function(l){return i(this.shape,l,!1)},tangentAt:function(l){var t=i(this.shape,l,!0);return x.normalize(t,t)}});H.exports=n},"rAM+":function(H,k,d){"use strict";d.d(k,"a",function(){return x});var O=d("Qw5x");function x(C,A){var b;if(typeof Symbol=="undefined"||C[Symbol.iterator]==null){if(Array.isArray(C)||(b=Object(O.a)(C))||A&&C&&typeof C.length=="number"){b&&(C=b);var g=0,f=function(){};return{s:f,n:function(){return g>=C.length?{done:!0}:{done:!1,value:C[g++]}},e:function(n){throw n},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.`)}var c=!0,o=!1,r;return{s:function(){b=C[Symbol.iterator]()},n:function(){var n=b.next();return c=n.done,n},e:function(n){o=!0,r=n},f:function(){try{!c&&b.return!=null&&b.return()}finally{if(o)throw r}}}}},rHrb:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.CopyToClipboard=void 0;var O=C(d("q1tI")),x=C(d("+QRC"));function C(h){return h&&h.__esModule?h:{default:h}}function A(h){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(m){return typeof m}:A=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},A(h)}function b(h,p){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(h);p&&(v=v.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),m.push.apply(m,v)}return m}function g(h){for(var p=1;p<arguments.length;p++){var m=arguments[p]!=null?arguments[p]:{};p%2?b(m,!0).forEach(function(v){s(h,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):b(m).forEach(function(v){Object.defineProperty(h,v,Object.getOwnPropertyDescriptor(m,v))})}return h}function f(h,p){if(h==null)return{};var m=c(h,p),v,y;if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(h);for(y=0;y<E.length;y++){if(v=E[y],p.indexOf(v)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(h,v))continue;m[v]=h[v]}}return m}function c(h,p){if(h==null)return{};var m={},v=Object.keys(h),y,E;for(E=0;E<v.length;E++){if(y=v[E],p.indexOf(y)>=0)continue;m[y]=h[y]}return m}function o(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function r(h,p){for(var m=0;m<p.length;m++){var v=p[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,v.key,v)}}function i(h,p,m){return p&&r(h.prototype,p),m&&r(h,m),h}function n(h,p){return p&&(A(p)==="object"||typeof p=="function")?p:l(h)}function e(h){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(m){return m.__proto__||Object.getPrototypeOf(m)},e(h)}function l(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}function t(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,writable:!0,configurable:!0}}),p&&a(h,p)}function a(h,p){return a=Object.setPrototypeOf||function(v,y){return v.__proto__=y,v},a(h,p)}function s(h,p,m){return p in h?Object.defineProperty(h,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[p]=m,h}var u=function(h){t(p,h);function p(){var m,v;o(this,p);for(var y=arguments.length,E=new Array(y),T=0;T<y;T++)E[T]=arguments[T];return v=n(this,(m=e(p)).call.apply(m,[this].concat(E))),s(l(v),"onClick",function(w){var S=v.props,_=S.text,I=S.onCopy,L=S.children,N=S.options,R=O.default.Children.only(L),D=(0,x.default)(_,N);I&&I(_,D),R&&R.props&&typeof R.props.onClick=="function"&&R.props.onClick(w)}),v}return i(p,[{key:"render",value:function(){var v=this.props,y=v.text,E=v.onCopy,T=v.options,w=v.children,S=f(v,["text","onCopy","options","children"]),_=O.default.Children.only(w);return O.default.cloneElement(_,g({},S,{onClick:this.onClick}))}}]),p}(O.default.PureComponent);k.CopyToClipboard=u,s(u,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="ReloadOutlined";var f=k.a=x.forwardRef(g)},rUJ1:function(H,k){var d=/[&<>"']/,O=/[&<>"']/g,x=/[<>"']|&(?!#?\w+;)/,C=/[<>"']|&(?!#?\w+;)/g,A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},b=function(w){return A[w]};function g(T,w){if(w){if(d.test(T))return T.replace(O,b)}else if(x.test(T))return T.replace(C,b);return T}var f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function c(T){return T.replace(f,function(w,S){return S=S.toLowerCase(),S==="colon"?":":S.charAt(0)==="#"?S.charAt(1)==="x"?String.fromCharCode(parseInt(S.substring(2),16)):String.fromCharCode(+S.substring(1)):""})}var o=/(^|[^\[])\^/g;function r(T,w){T=T.source||T,w=w||"";var S={replace:function(I,L){return L=L.source||L,L=L.replace(o,"$1"),T=T.replace(I,L),S},getRegex:function(){return new RegExp(T,w)}};return S}var i=/[^\w:]/g,n=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function e(T,w,S){if(T){var _;try{_=decodeURIComponent(c(S)).replace(i,"").toLowerCase()}catch(I){return null}if(_.indexOf("javascript:")===0||_.indexOf("vbscript:")===0||_.indexOf("data:")===0)return null}w&&!n.test(S)&&(S=u(w,S));try{S=encodeURI(S).replace(/%25/g,"%")}catch(I){return null}return S}var l={},t=/^[^:]+:\/*[^/]*$/,a=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function u(T,w){l[" "+T]||(t.test(T)?l[" "+T]=T+"/":l[" "+T]=v(T,"/",!0)),T=l[" "+T];var S=T.indexOf(":")===-1;return w.substring(0,2)==="//"?S?w:T.replace(a,"$1")+w:w.charAt(0)==="/"?S?w:T.replace(s,"$1")+w:T+w}var h={exec:function(){}};function p(T){for(var w=1,S,_;w<arguments.length;w++){S=arguments[w];for(_ in S)Object.prototype.hasOwnProperty.call(S,_)&&(T[_]=S[_])}return T}function m(T,w){var S=T.replace(/\|/g,function(L,N,R){for(var D=!1,F=N;--F>=0&&R[F]==="\\";)D=!D;return D?"|":" |"}),_=S.split(/ \|/),I=0;if(_.length>w)_.splice(w);else for(;_.length<w;)_.push("");for(;I<_.length;I++)_[I]=_[I].trim().replace(/\\\|/g,"|");return _}function v(T,w,S){var _=T.length;if(_===0)return"";for(var I=0;I<_;){var L=T.charAt(_-I-1);if(L===w&&!S)I++;else if(L!==w&&S)I++;else break}return T.substr(0,_-I)}function y(T,w){if(T.indexOf(w[1])===-1)return-1;for(var S=T.length,_=0,I=0;I<S;I++)if(T[I]==="\\")I++;else if(T[I]===w[0])_++;else if(T[I]===w[1]&&(_--,_<0))return I;return-1}function E(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")}H.exports={escape:g,unescape:c,edit:r,cleanUrl:e,resolveUrl:u,noopTest:h,merge:p,splitCells:m,rtrim:v,findClosingBracket:y,checkSanitizeDeprecation:E}},rdUC:function(H,k,d){var O=d("MFOe"),x=O.Global;H.exports={name:"localStorage",read:A,write:b,each:g,remove:f,clearAll:c};function C(){return x.localStorage}function A(o){return C().getItem(o)}function b(o,r){return C().setItem(o,r)}function g(o){for(var r=C().length-1;r>=0;r--){var i=C().key(r);o(A(i),i)}}function f(o){return C().removeItem(o)}function c(){return C().clear()}},rdor:function(H,k,d){var O=d("lOQZ"),x=O.circularLayout;function C(A){A.eachSeriesByType("graph",function(b){b.get("layout")==="circular"&&x(b,"symbolSize")})}H.exports=C},rfSb:function(H,k,d){var O=d("T4UG"),x=d("sdST"),C=d("L0Ub"),A=C.getDimensionTypeByAxis,b=d("YXkt"),g=d("bYtY"),f=d("4NO4"),c=f.groupData,o=d("7aKB"),r=o.encodeHTML,i=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 i(g.bind(this.getData,this),g.bind(this.getRawData,this))},fixData:function(t){var a=t.length,s=c(t,function(R){return R[2]}),u=[];s.buckets.each(function(R,D){u.push({name:D,dataList:R})});for(var h=u.length,p=-1,m=-1,v=0;v<h;++v){var y=u[v].dataList.length;y>p&&(p=y,m=v)}for(var E=0;E<h;++E){if(E===m)continue;for(var T=u[E].name,w=0;w<p;++w){for(var S=u[m].dataList[w][0],_=u[E].dataList.length,I=-1,L=0;L<_;++L){var N=u[E].dataList[L][0];if(N===S){I=L;break}}I===-1&&(t[a]=[],t[a][0]=S,t[a][1]=0,t[a][2]=T,a++)}}return t},getInitialData:function(t,a){for(var s=a.queryComponents({mainType:"singleAxis",index:this.get("singleAxisIndex"),id:this.get("singleAxisId")})[0],u=s.get("type"),h=g.filter(t.data,function(S){return S[2]!==void 0}),p=this.fixData(h||[]),m=[],v=this.nameMap=g.createHashMap(),y=0,E=0;E<p.length;++E)m.push(p[E][n]),v.get(p[E][n])||(v.set(p[E][n],y),y++);var T=x(p,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:A(u)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),w=new b(T,this);return w.initData(p),w},getLayerSeries:function(){for(var t=this.getData(),a=t.count(),s=[],u=0;u<a;++u)s[u]=u;var h=t.mapDimension("single"),p=c(s,function(v){return t.get("name",v)}),m=[];return p.buckets.each(function(v,y){v.sort(function(E,T){return t.get(h,E)-t.get(h,T)}),m.push({name:y,indices:v})}),m},getAxisTooltipData:function(t,a,s){g.isArray(t)||(t=t?[t]:[]);for(var u=this.getData(),h=this.getLayerSeries(),p=[],m=h.length,v,y=0;y<m;++y){for(var E=Number.MAX_VALUE,T=-1,w=h[y].indices.length,S=0;S<w;++S){var _=u.get(t[0],h[y].indices[S]),I=Math.abs(_-a);I<=E&&(v=_,E=I,T=h[y].indices[S])}p.push(T)}return{dataIndices:p,nestestValue:v}},formatTooltip:function(t){var a=this.getData(),s=a.getName(t),u=a.get(a.mapDimension("value"),t);return(isNaN(u)||u==null)&&(u="-"),r(s+" : "+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}}}}),l=e;H.exports=l},rkZ5:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("ProS"),A=d("c8qY"),b=d("D9ME"),g=d("fls0"),f=d("RSch"),c=d("akwb"),o=d("o40c"),r=d("ZYIC"),i=d("sK/D"),n=i.createClipPath,e=C.extendChartView({type:"lines",init:function(){},render:function(l,t,a){var s=l.getData(),u=this._updateLineDraw(s,l),h=l.get("zlevel"),p=l.get("effect.trailLength"),m=a.getZr(),v=m.painter.getType()==="svg";v||m.painter.getLayer(h).clear(!0),this._lastZlevel!=null&&!v&&m.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(l)&&p&&(v||m.configLayer(h,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(p/10+.9,1),0)})),u.updateData(s);var y=l.get("clip",!0)&&n(l.coordinateSystem,!1,l);y?this.group.setClipPath(y):this.group.removeClipPath(),this._lastZlevel=h,this._finished=!0},incrementalPrepareRender:function(l,t,a){var s=l.getData(),u=this._updateLineDraw(s,l);u.incrementalPrepareUpdate(s),this._clearLayer(a),this._finished=!1},incrementalRender:function(l,t,a){this._lineDraw.incrementalUpdate(l,t.getData()),this._finished=l.end===t.getData().count()},updateTransform:function(l,t,a){var s=l.getData(),u=l.pipelineContext;if(!this._finished||u.large||u.progressiveRender)return{update:!0};var h=r.reset(l);h.progress&&h.progress({start:0,end:s.count()},s),this._lineDraw.updateLayout(),this._clearLayer(a)},_updateLineDraw:function(l,t){var a=this._lineDraw,s=this._showEffect(t),u=!!t.get("polyline"),h=t.pipelineContext,p=h.large;return(!a||s!==this._hasEffet||u!==this._isPolyline||p!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=p?new o:new A(u?s?c:f:s?b:g),this._hasEffet=s,this._isPolyline=u,this._isLargeDraw=p,this.group.removeAll()),this.group.add(a.group),a},_showEffect:function(l){return!!l.get("effect.show")},_clearLayer:function(l){var t=l.getZr(),a=t.painter.getType()==="svg";!a&&this._lastZlevel!=null&&t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(l,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});H.exports=e},rmlV:function(H,k,d){var O=d("y+Vt"),x=O.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(A,b){var g=.5522848,f=b.cx,c=b.cy,o=b.rx,r=b.ry,i=o*g,n=r*g;A.moveTo(f-o,c),A.bezierCurveTo(f-o,c-n,f-i,c-r,f,c-r),A.bezierCurveTo(f+i,c-r,f+o,c-n,f+o,c),A.bezierCurveTo(f+o,c+n,f+i,c+r,f,c+r),A.bezierCurveTo(f-i,c+r,f-o,c+n,f-o,c),A.closePath()}});H.exports=x},rnVJ:function(H,k,d){var O=d("bYtY"),x=["rect","polygon","keep","clear"];function C(b,g){var f=b&&b.brush;if(O.isArray(f)||(f=f?[f]:[]),!f.length)return;var c=[];O.each(f,function(e){var l=e.hasOwnProperty("toolbox")?e.toolbox:[];l instanceof Array&&(c=c.concat(l))});var o=b&&b.toolbox;O.isArray(o)&&(o=o[0]),o||(o={feature:{}},b.toolbox=[o]);var r=o.feature||(o.feature={}),i=r.brush||(r.brush={}),n=i.type||(i.type=[]);n.push.apply(n,c),A(n),g&&!n.length&&n.push.apply(n,x)}function A(b){var g={};O.each(b,function(f){g[f]=1}),b.length=0,O.each(g,function(f,c){b.push(c)})}H.exports=C},rwxt:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=d("GdRQ");function x(f,c){if(!(f instanceof c))throw new TypeError("Cannot call a class as a function")}function C(f,c){for(var o=0;o<c.length;o++){var r=c[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(f,r.key,r)}}function A(f,c,o){return c&&C(f.prototype,c),o&&C(f,o),f}var b=!O.supportsCursorURIs||O.isTouchDevice,g=function(){function f(){x(this,f),this._target=null,this._canvas=document.createElement("canvas"),b&&(this._canvas.style.position="fixed",this._canvas.style.zIndex="65535",this._canvas.style.pointerEvents="none",this._canvas.style.visibility="hidden"),this._position={x:0,y:0},this._hotSpot={x:0,y:0},this._eventHandlers={mouseover:this._handleMouseOver.bind(this),mouseleave:this._handleMouseLeave.bind(this),mousemove:this._handleMouseMove.bind(this),mouseup:this._handleMouseUp.bind(this)}}return A(f,[{key:"attach",value:function(o){if(this._target&&this.detach(),this._target=o,b){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(b){var o={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,o),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,o),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,o),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,o),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(o,r,i,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-i,this._hotSpot.x=r,this._hotSpot.y=i;var l=this._canvas.getContext("2d");this._canvas.width=n,this._canvas.height=e;var t;try{t=new ImageData(new Uint8ClampedArray(o),n,e)}catch(s){t=l.createImageData(n,e),t.data.set(new Uint8ClampedArray(o))}if(l.clearRect(0,0,n,e),l.putImageData(t,0,0),b)this._updatePosition();else{var a=this._canvas.toDataURL();this._target.style.cursor="url("+a+")"+r+" "+i+", default"}}},{key:"clear",value:function(){this._target.style.cursor="none",this._canvas.width=0,this._canvas.height=0,this._position.x=this._position.x+this._hotSpot.x,this._position.y=this._position.y+this._hotSpot.y,this._hotSpot.x=0,this._hotSpot.y=0}},{key:"move",value:function(o,r){if(!b)return;window.visualViewport?(this._position.x=o+window.visualViewport.offsetLeft,this._position.y=r+window.visualViewport.offsetTop):(this._position.x=o,this._position.y=r),this._updatePosition();var i=document.elementFromPoint(o,r);this._updateVisibility(i)}},{key:"_handleMouseOver",value:function(o){this._handleMouseMove(o)}},{key:"_handleMouseLeave",value:function(o){this._updateVisibility(o.relatedTarget)}},{key:"_handleMouseMove",value:function(o){this._updateVisibility(o.target),this._position.x=o.clientX-this._hotSpot.x,this._position.y=o.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(o){var r=this,i=document.elementFromPoint(o.clientX,o.clientY);this._updateVisibility(i),this._captureIsActive()&&window.setTimeout(function(){if(!r._target)return;i=document.elementFromPoint(o.clientX,o.clientY),r._updateVisibility(i)},0)}},{key:"_showCursor",value:function(){this._canvas.style.visibility==="hidden"&&(this._canvas.style.visibility="")}},{key:"_hideCursor",value:function(){this._canvas.style.visibility!=="hidden"&&(this._canvas.style.visibility="hidden")}},{key:"_shouldShowCursor",value:function(o){return o?o===this._target?!0:this._target.contains(o)?!(window.getComputedStyle(o).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(o){this._captureIsActive()&&(o=document.captureElement),this._shouldShowCursor(o)?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)}}]),f}();k.default=g},rySg:function(H,k,d){d("SMc4"),d("8nMs")},s2MQ:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},s2lz:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("IwbS"),A=d("gPAo"),b=d("VaxA"),g=d("9hCq"),f=d("SgGq"),c=d("mFDi"),o=d("Fofx"),r=d("5s0K"),i=d("KCsZ"),n=d("7aKB"),e=n.windowOpen,l=x.bind,t=C.Group,a=C.Rect,s=x.each,u=3,h=["label"],p=["emphasis","label"],m=["upperLabel"],v=["emphasis","upperLabel"],y=10,E=1,T=2,w=i([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),S=function(R){var D=w(R);return D.stroke=D.fill=D.lineWidth=null,D},_=O.extendChartView({type:"treemap",init:function(R,D){this._containerGroup,this._storage=I(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(R,D,F,M){var U=D.findComponents({mainType:"series",subType:"treemap",query:M});if(x.indexOf(U,R)<0)return;this.seriesModel=R,this.api=F,this.ecModel=D;var B=["treemapZoomToNode","treemapRootToNode"],j=b.retrieveTargetInfo(M,B,R),W=M&&M.type,V=R.layoutInfo,z=!this._oldTree,J=this._storage,q=W==="treemapRootToNode"&&j&&J?{rootNodeGroup:J.nodeGroup[j.node.getRawIndex()],direction:M.direction}:null,de=this._giveContainerGroup(V),ae=this._doRender(de,R,q);!z&&(!W||W==="treemapZoomToNode"||W==="treemapRootToNode")?this._doAnimation(de,ae,R,q):ae.renderFinally(),this._resetController(F),this._renderBreadcrumb(R,F,j)},_giveContainerGroup:function(R){var D=this._containerGroup;return D||(D=this._containerGroup=new t,this._initEvents(D),this.group.add(D)),D.attr("position",[R.x,R.y]),D},_doRender:function(R,D,F){var M=D.getData().tree,U=this._oldTree,B=I(),j=I(),W=this._storage,V=[],z=x.curry(L,D,j,W,F,B,V);q(M.root?[M.root]:[],U&&U.root?[U.root]:[],R,M===U||!U,0);var J=de(W);return this._oldTree=M,this._storage=j,{lastsForAnimation:B,willDeleteEls:J,renderFinally:ae};function q(ve,_e,Ie,He,me){He?(_e=ve,s(ve,function(te,Ge){!te.isRemoved()&&se(Ge,Ge)})):new A(_e,ve,ke,ke).add(se).update(se).remove(x.curry(se,null)).execute();function ke(te){return te.getId()}function se(te,Ge){var oe=te!=null?ve[te]:null,Y=Ge!=null?_e[Ge]:null,G=z(oe,Y,Ie,me);G&&q(oe&&oe.viewChildren||[],Y&&Y.viewChildren||[],G,He,me+1)}}function de(ve){var _e=I();return ve&&s(ve,function(Ie,He){var me=_e[He];s(Ie,function(ke){ke&&(me.push(ke),ke.__tmWillDelete=1)})}),_e}function ae(){s(J,function(ve){s(ve,function(_e){_e.parent&&_e.parent.remove(_e)})}),s(V,function(ve){ve.invisible=!0,ve.dirty()})}},_doAnimation:function(R,D,F,M){if(!F.get("animation"))return;var U=F.get("animationDurationUpdate"),B=F.get("animationEasing"),j=r.createWrap();s(D.willDeleteEls,function(W,V){s(W,function(z,J){if(z.invisible)return;var q=z.parent,de;if(M&&M.direction==="drillDown")de=q===M.rootNodeGroup?{shape:{x:0,y:0,width:q.__tmNodeWidth,height:q.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var ae=0,ve=0;q.__tmWillDelete||(ae=q.__tmNodeWidth/2,ve=q.__tmNodeHeight/2),de=V==="nodeGroup"?{position:[ae,ve],style:{opacity:0}}:{shape:{x:ae,y:ve,width:0,height:0},style:{opacity:0}}}de&&j.add(z,de,U,B)})}),s(this._storage,function(W,V){s(W,function(z,J){var q=D.lastsForAnimation[V][J],de={};if(!q)return;V==="nodeGroup"?q.old&&(de.position=z.position.slice(),z.attr("position",q.old)):(q.old&&(de.shape=x.extend({},z.shape),z.setShape(q.old)),q.fadein?(z.setStyle("opacity",0),de.style={opacity:1}):z.style.opacity!==1&&(de.style={opacity:1})),j.add(z,de,U,B)})},this),this._state="animating",j.done(l(function(){this._state="ready",D.renderFinally()},this)).start()},_resetController:function(R){var D=this._controller;D||(D=this._controller=new f(R.getZr()),D.enable(this.seriesModel.get("roam")),D.on("pan",l(this._onPan,this)),D.on("zoom",l(this._onZoom,this)));var F=new c(0,0,R.getWidth(),R.getHeight());D.setPointerChecker(function(M,U,B){return F.contain(U,B)})},_clearController:function(){var R=this._controller;R&&(R.dispose(),R=null)},_onPan:function(R){if(this._state!=="animating"&&(Math.abs(R.dx)>u||Math.abs(R.dy)>u)){var D=this.seriesModel.getData().tree.root;if(!D)return;var F=D.getLayout();if(!F)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:F.x+R.dx,y:F.y+R.dy,width:F.width,height:F.height}})}},_onZoom:function(R){var D=R.originX,F=R.originY;if(this._state!=="animating"){var M=this.seriesModel.getData().tree.root;if(!M)return;var U=M.getLayout();if(!U)return;var B=new c(U.x,U.y,U.width,U.height),j=this.seriesModel.layoutInfo;D-=j.x,F-=j.y;var W=o.create();o.translate(W,W,[-D,-F]),o.scale(W,W,[R.scale,R.scale]),o.translate(W,W,[D,F]),B.applyTransform(W),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:B.x,y:B.y,width:B.width,height:B.height}})}},_initEvents:function(R){R.on("click",function(D){if(this._state!=="ready")return;var F=this.seriesModel.get("nodeClick",!0);if(!F)return;var M=this.findTarget(D.offsetX,D.offsetY);if(!M)return;var U=M.node;if(U.getLayout().isLeafRoot)this._rootToNode(M);else if(F==="zoomToNode")this._zoomToNode(M);else if(F==="link"){var B=U.hostTree.data.getItemModel(U.dataIndex),j=B.get("link",!0),W=B.get("target",!0)||"blank";j&&e(j,W)}},this)},_renderBreadcrumb:function(R,D,F){F||(F=R.get("leafDepth",!0)!=null?{node:R.getViewRoot()}:this.findTarget(D.getWidth()/2,D.getHeight()/2),F||(F={node:R.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new g(this.group))).render(R,D,F.node,l(M,this));function M(U){this._state!=="animating"&&(b.aboveViewRoot(R.getViewRoot(),U)?this._rootToNode({node:U}):this._zoomToNode({node:U}))}},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(R){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:R.node})},_rootToNode:function(R){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:R.node})},findTarget:function(R,D){var F,M=this.seriesModel.getViewRoot();return M.eachNode({attr:"viewChildren",order:"preorder"},function(U){var B=this._storage.background[U.getRawIndex()];if(B){var j=B.transformCoordToLocal(R,D),W=B.shape;if(W.x<=j[0]&&j[0]<=W.x+W.width&&W.y<=j[1]&&j[1]<=W.y+W.height)F={node:U,offsetX:j[0],offsetY:j[1]};else return!1}},this),F}});function I(){return{nodeGroup:[],background:[],content:[]}}function L(R,D,F,M,U,B,j,W,V,z){if(!j)return;var J=j.getLayout(),q=R.getData();if(q.setItemGraphicEl(j.dataIndex,null),!J||!J.isInView)return;var de=J.width,ae=J.height,ve=J.borderWidth,_e=J.invisible,Ie=j.getRawIndex(),He=W&&W.getRawIndex(),me=j.viewChildren,ke=J.upperHeight,se=me&&me.length,te=j.getModel("itemStyle"),Ge=j.getModel("emphasis.itemStyle"),oe=fe("nodeGroup",t);if(!oe)return;if(V.add(oe),oe.attr("position",[J.x||0,J.y||0]),oe.__tmNodeWidth=de,oe.__tmNodeHeight=ae,J.isAboveViewRoot)return oe;var Y=j.getModel(),G=fe("background",a,z,E);if(G&&ye(oe,G,se&&J.upperLabelHeight),se)C.isHighDownDispatcher(oe)&&C.setAsHighDownDispatcher(oe,!1),G&&(C.setAsHighDownDispatcher(G,!0),q.setItemGraphicEl(j.dataIndex,G));else{var Q=fe("content",a,z,T);Q&&ce(oe,Q),G&&C.isHighDownDispatcher(G)&&C.setAsHighDownDispatcher(G,!1),C.setAsHighDownDispatcher(oe,!0),q.setItemGraphicEl(j.dataIndex,oe)}return oe;function ye(vt,et,Oe){if(et.dataIndex=j.dataIndex,et.seriesIndex=R.seriesIndex,et.setShape({x:0,y:0,width:de,height:ae}),_e)Te(et);else{et.invisible=!1;var Tt=j.getVisual("borderColor",!0),Je=Ge.get("borderColor"),St=S(te);St.fill=Tt;var Mt=w(Ge);if(Mt.fill=Je,Oe){var er=de-2*ve;Se(St,Mt,Tt,er,ke,{x:ve,y:0,width:er,height:ke})}else St.text=Mt.text=null;et.setStyle(St),C.setElementHoverStyle(et,Mt)}vt.add(et)}function ce(vt,et){et.dataIndex=j.dataIndex,et.seriesIndex=R.seriesIndex;var Oe=Math.max(de-2*ve,0),Tt=Math.max(ae-2*ve,0);if(et.culling=!0,et.setShape({x:ve,y:ve,width:Oe,height:Tt}),_e)Te(et);else{et.invisible=!1;var Je=j.getVisual("color",!0),St=S(te);St.fill=Je;var Mt=w(Ge);Se(St,Mt,Je,Oe,Tt),et.setStyle(St),C.setElementHoverStyle(et,Mt)}vt.add(et)}function Te(vt){!vt.invisible&&B.push(vt)}function Se(vt,et,Oe,Tt,Je,St){var Mt=Y.get("name"),er=Y.getModel(St?m:h),It=Y.getModel(St?v:p),_t=er.getShallow("show");C.setLabelStyle(vt,et,er,It,{defaultText:_t?Mt:null,autoColor:Oe,isRectText:!0,labelFetcher:R,labelDataIndex:j.dataIndex,labelProp:St?"upperLabel":"label"}),le(vt,St,J),le(et,St,J),St&&(vt.textRect=x.clone(St)),vt.truncate=_t&&er.get("ellipsis")?{outerWidth:Tt,outerHeight:Je,minChar:2}:null}function le(vt,et,Oe){var Tt=vt.text;if(!et&&Oe.isLeafRoot&&Tt!=null){var Je=R.get("drillDownIcon",!0);vt.text=Je?Je+" "+Tt:Tt}}function fe(vt,et,Oe,Tt){var Je=He!=null&&F[vt][He],St=U[vt];return Je?(F[vt][He]=null,Ee(St,Je,vt)):_e||(Je=new et({z:N(Oe,Tt)}),Je.__tmDepth=Oe,Je.__tmStorageName=vt,Ve(St,Je,vt)),D[vt][Ie]=Je}function Ee(vt,et,Oe){var Tt=vt[Ie]={};Tt.old=Oe==="nodeGroup"?et.position.slice():x.extend({},et.shape)}function Ve(vt,et,Oe){var Tt=vt[Ie]={},Je=j.parentNode;if(Je&&(!M||M.direction==="drillDown")){var St=0,Mt=0,er=U.background[Je.getRawIndex()];!M&&er&&er.old&&(St=er.old.width,Mt=er.old.height),Tt.old=Oe==="nodeGroup"?[0,Mt]:{x:St,y:Mt,width:0,height:0}}Tt.fadein=Oe!=="nodeGroup"}}function N(R,D){var F=R*y+D;return(F-1)/F}H.exports=_},sAZ8:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("+rIm"),A=d("/IIm"),b=d("9KIM"),g=d("IwbS"),f=["axisLine","axisTickLabel","axisName"],c=O.extendComponentView({type:"parallelAxis",init:function(e,l){c.superApply(this,"init",arguments),(this._brushController=new A(l.getZr())).on("brush",x.bind(this._onBrush,this))},render:function(e,l,t,a){if(o(e,l,a))return;this.axisModel=e,this.api=t,this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new g.Group,this.group.add(this._axisGroup),!e.get("show"))return;var u=i(e,l),h=u.coordinateSystem,p=e.getAreaSelectStyle(),m=p.width,v=e.axis.dim,y=h.getAxisLayout(v),E=x.extend({strokeContainThreshold:m},y),T=new C(e,E);x.each(f,T.add,T),this._axisGroup.add(T.getGroup()),this._refreshBrushController(E,p,e,u,m,t);var w=a&&a.animation===!1?null:e;g.groupTransition(s,this._axisGroup,w)},_refreshBrushController:function(e,l,t,a,s,u){var h=t.axis.getExtent(),p=h[1]-h[0],m=Math.min(30,Math.abs(p)*.1),v=g.BoundingRect.create({x:h[0],y:-s/2,width:p,height:s});v.x-=m,v.width+=2*m,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:b.makeRectPanelClipPath(v),isTargetByCursor:b.makeRectIsTargetByCursor(v,u,a),getLinearBrushOtherExtent:b.makeLinearBrushOtherExtent(v,0)}]).enableBrush({brushType:"lineX",brushStyle:l,removeOnClick:!0}).updateCovers(r(t))},_onBrush:function(e,l){var t=this.axisModel,a=t.axis,s=x.map(e,function(u){return[a.coordToData(u.range[0],!0),a.coordToData(u.range[1],!0)]});(!t.option.realtime===l.isEnd||l.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:t.id,intervals:s})},dispose:function(){this._brushController.dispose()}});function o(e,l,t){return t&&t.type==="axisAreaSelect"&&l.findComponents({mainType:"parallelAxis",query:t})[0]===e}function r(e){var l=e.axis;return x.map(e.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[l.dataToCoord(t[0],!0),l.dataToCoord(t[1],!0)]}})}function i(e,l){return l.getComponent("parallel",e.get("parallelIndex"))}var n=c;H.exports=n},sE09:function(H,k,d){},sGsY:function(H,k,d){"use strict";var O=d("lSNA"),x=d.n(O),C=d("pVnL"),A=d.n(C),b=d("q1tI"),g=d("TSYQ"),f=d.n(g),c=d("H84U"),o=d("B6l+"),r=d.n(o),i=function(j){var W=j.value,V=j.formatter,z=j.precision,J=j.decimalSeparator,q=j.groupSeparator,de=q===void 0?"":q,ae=j.prefixCls,ve;if(typeof V=="function")ve=V(W);else{var _e=String(W),Ie=_e.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ie||_e==="-")ve=_e;else{var He=Ie[1],me=Ie[2]||"0",ke=Ie[4]||"";me=me.replace(/\B(?=(\d{3})+(?!\d))/g,de),typeof z=="number"&&(ke=r()(ke,z,"0").slice(0,z)),ke&&(ke="".concat(J).concat(ke)),ve=[b.createElement("span",{key:"int",className:"".concat(ae,"-content-value-int")},He,me),ke&&b.createElement("span",{key:"decimal",className:"".concat(ae,"-content-value-decimal")},ke)]}}return b.createElement("span",{className:"".concat(ae,"-content-value")},ve)},n=i,e=function(j){var W=j.prefixCls,V=j.className,z=j.style,J=j.valueStyle,q=j.value,de=q===void 0?0:q,ae=j.title,ve=j.valueRender,_e=j.prefix,Ie=j.suffix,He=j.direction,me=j.onMouseEnter,ke=j.onMouseLeave,se=b.createElement(n,A()({},j,{value:de})),te=f()(W,V,x()({},"".concat(W,"-rtl"),He==="rtl"));return b.createElement("div",{className:te,style:z,onMouseEnter:me,onMouseLeave:ke},ae&&b.createElement("div",{className:"".concat(W,"-title")},ae),b.createElement("div",{style:J,className:"".concat(W,"-content")},_e&&b.createElement("span",{className:"".concat(W,"-content-prefix")},_e),ve?ve(se):se,Ie&&b.createElement("span",{className:"".concat(W,"-content-suffix")},Ie)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var l=Object(c.c)({prefixCls:"statistic"})(e),t=l,a=d("lwsE"),s=d.n(a),u=d("W8MJ"),h=d.n(u),p=d("7W2i"),m=d.n(p),v=d("LQ03"),y=d.n(v),E=d("J4zp"),T=d.n(E),w=d("QQZ/"),S=d.n(w),_=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function I(B,j){var W=B,V=/\[[^\]]*]/g,z=(j.match(V)||[]).map(function(ae){return ae.slice(1,-1)}),J=j.replace(V,"[]"),q=_.reduce(function(ae,ve){var _e=T()(ve,2),Ie=_e[0],He=_e[1];if(ae.indexOf(Ie)!==-1){var me=Math.floor(W/He);return W-=me*He,ae.replace(new RegExp("".concat(Ie,"+"),"g"),function(ke){var se=ke.length;return S()(me.toString(),se,"0")})}return ae},J),de=0;return q.replace(V,function(){var ae=z[de];return de+=1,ae})}function L(B,j){var W=j.format,V=W===void 0?"":W,z=new Date(B).getTime(),J=Date.now(),q=Math.max(z-J,0);return I(q,V)}var N=d("0n0R"),R=1e3/30;function D(B){return new Date(B).getTime()}var F=function(B){m()(W,B);var j=y()(W);function W(){var V;return s()(this,W),V=j.apply(this,arguments),V.syncTimer=function(){var z=V.props.value,J=D(z);J>=Date.now()?V.startTimer():V.stopTimer()},V.startTimer=function(){if(V.countdownId)return;V.countdownId=window.setInterval(function(){V.forceUpdate()},R)},V.stopTimer=function(){var z=V.props,J=z.onFinish,q=z.value;if(V.countdownId){clearInterval(V.countdownId),V.countdownId=void 0;var de=D(q);J&&de<Date.now()&&J()}},V.formatCountdown=function(z,J){var q=V.props.format;return L(z,A()(A()({},J),{format:q}))},V.valueRender=function(z){return Object(N.a)(z,{title:void 0})},V}return h()(W,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return b.createElement(t,A()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),W}(b.Component);F.defaultProps={format:"HH:mm:ss"};var M=F;t.Countdown=M;var U=k.a=t},"sK/D":function(H,k,d){var O=d("IwbS"),x=d("OELB"),C=x.round;function A(f,c,o){var r=f.getArea(),i=f.getBaseAxis().isHorizontal(),n=r.x,e=r.y,l=r.width,t=r.height,a=o.get("lineStyle.width")||2;n-=a/2,e-=a/2,l+=a,t+=a,n=Math.floor(n),l=Math.round(l);var s=new O.Rect({shape:{x:n,y:e,width:l,height:t}});return c&&(s.shape[i?"width":"height"]=0,O.initProps(s,{shape:{width:l,height:t}},o)),s}function b(f,c,o){var r=f.getArea(),i=new O.Sector({shape:{cx:C(f.cx,1),cy:C(f.cy,1),r0:C(r.r0,1),r:C(r.r,1),startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return c&&(i.shape.endAngle=r.startAngle,O.initProps(i,{shape:{endAngle:r.endAngle}},o)),i}function g(f,c,o){if(f){if(f.type==="polar")return b(f,c,o);if(f.type==="cartesian2d")return A(f,c,o)}else return null;return null}k.createGridClipPath=A,k.createPolarClipPath=b,k.createClipPath=g},sKgW:function(H,k){var d=9007199254740991,O=Math.floor;function x(C,A){var b="";if(!C||A<1||A>d)return b;do A%2&&(b+=C),A=O(A/2),A&&(C+=C);while(A);return b}H.exports=x},sPJy:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("AOa7"),A=d.n(C),b=d("lUTK"),g=d("qVdP")},sPtV:function(H,k,d){"use strict";d.d(k,"a",function(){return A});var O=d("q1tI"),x=d.n(O),C=d("hkKa");function A(b){var g=O.useRef(b),f=Object(C.a)();return[function(){return g.current},function(c){g.current=c,f()}]}},sRwP:function(H,k,d){d("jsU+"),d("2548"),d("Tp9H"),d("06DH"),d("dnwI"),d("fE02"),d("33Ds")},"sS/r":function(H,k,d){var O=d("4fz+"),x=d("iRjW"),C=d("Yl7c"),A=function(){this.group=new O,this.uid=x.getUID("viewComponent")};A.prototype={constructor:A,init:function(f,c){},render:function(f,c,o,r){},dispose:function(){},filterForExposedEvent:null};var b=A.prototype;b.updateView=b.updateLayout=b.updateVisual=function(f,c,o,r){},C.enableClassExtend(A),C.enableClassManagement(A,{registerWhenExtend:!0});var g=A;H.exports=g},"sW+o":function(H,k,d){var O=d("SrGk"),x=d("bYtY"),C=d("SUKs"),A=d("Qe9p");function b(f,c){O.call(this,f,c,["linearGradient","radialGradient"],"__gradient_in_use__")}x.inherits(b,O),b.prototype.addWithoutUpdate=function(f,c){if(c&&c.style){var o=this;x.each(["fill","stroke"],function(r){if(c.style[r]&&(c.style[r].type==="linear"||c.style[r].type==="radial")){var i=c.style[r],n=o.getDefs(!0),e;i._dom?(e=i._dom,n.contains(i._dom)||o.addDom(e)):e=o.add(i),o.markUsed(c);var l=e.getAttribute("id");f.setAttribute(r,"url(#"+l+")")}})}},b.prototype.add=function(f){var c;if(f.type==="linear")c=this.createElement("linearGradient");else if(f.type==="radial")c=this.createElement("radialGradient");else return C("Illegal gradient type."),null;return f.id=f.id||this.nextId++,c.setAttribute("id","zr"+this._zrId+"-gradient-"+f.id),this.updateDom(f,c),this.addDom(c),c},b.prototype.update=function(f){var c=this;O.prototype.update.call(this,f,function(){var o=f.type,r=f._dom.tagName;o==="linear"&&r==="linearGradient"||o==="radial"&&r==="radialGradient"?c.updateDom(f,f._dom):(c.removeDom(f),c.add(f))})},b.prototype.updateDom=function(f,c){if(f.type==="linear")c.setAttribute("x1",f.x),c.setAttribute("y1",f.y),c.setAttribute("x2",f.x2),c.setAttribute("y2",f.y2);else if(f.type==="radial")c.setAttribute("cx",f.x),c.setAttribute("cy",f.y),c.setAttribute("r",f.r);else{C("Illegal gradient type.");return}f.global?c.setAttribute("gradientUnits","userSpaceOnUse"):c.setAttribute("gradientUnits","objectBoundingBox"),c.innerHTML="";for(var o=f.colorStops,r=0,i=o.length;r<i;++r){var n=this.createElement("stop");n.setAttribute("offset",o[r].offset*100+"%");var e=o[r].color;if(e.indexOf("rgba">-1)){var l=A.parse(e)[3],t=A.toHex(e);n.setAttribute("stop-color","#"+t),n.setAttribute("stop-opacity",l)}else n.setAttribute("stop-color",o[r].color);c.appendChild(n)}f._dom=c},b.prototype.markUsed=function(f){if(f.style){var c=f.style.fill;c&&c._dom&&O.prototype.markUsed.call(this,c._dom),c=f.style.stroke,c&&c._dom&&O.prototype.markUsed.call(this,c._dom)}};var g=b;H.exports=g},sdST:function(H,k,d){var O=d("hi0g");function x(C,A){return A=A||{},O(A.coordDimensions||[],C,{dimsDef:A.dimensionsDefine||C.dimensionsDefine,encodeDef:A.encodeDefine||C.encodeDefine,dimCount:A.dimensionsCount,encodeDefaulter:A.encodeDefaulter,generateCoord:A.generateCoord,generateCoordCount:A.generateCoordCount})}H.exports=x},sjKO:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=C;var O=30,x=12;function C(A,b){var g,f,c,o,r,i,n,e,l,t,a,s,u,h,p,m,v,y,E,T,w,S,_,I,L;g=A.state,f=A.next_in,I=A.input,c=f+(A.avail_in-5),o=A.next_out,L=A.output,r=o-(b-A.avail_out),i=o+(A.avail_out-257),n=g.dmax,e=g.wsize,l=g.whave,t=g.wnext,a=g.window,s=g.hold,u=g.bits,h=g.lencode,p=g.distcode,m=(1<<g.lenbits)-1,v=(1<<g.distbits)-1;e:do{u<15&&(s+=I[f++]<<u,u+=8,s+=I[f++]<<u,u+=8),y=h[s&m];t:for(;;){if(E=y>>>24,s>>>=E,u-=E,E=y>>>16&255,E===0)L[o++]=y&65535;else if(E&16){T=y&65535,E&=15,E&&(u<E&&(s+=I[f++]<<u,u+=8),T+=s&(1<<E)-1,s>>>=E,u-=E),u<15&&(s+=I[f++]<<u,u+=8,s+=I[f++]<<u,u+=8),y=p[s&v];r:for(;;){if(E=y>>>24,s>>>=E,u-=E,E=y>>>16&255,E&16){if(w=y&65535,E&=15,u<E&&(s+=I[f++]<<u,u+=8,u<E&&(s+=I[f++]<<u,u+=8)),w+=s&(1<<E)-1,w>n){A.msg="invalid distance too far back",g.mode=O;break e}if(s>>>=E,u-=E,E=o-r,w>E){if(E=w-E,E>l&&g.sane){A.msg="invalid distance too far back",g.mode=O;break e}if(S=0,_=a,t===0){if(S+=e-E,E<T){T-=E;do L[o++]=a[S++];while(--E);S=o-w,_=L}}else if(t<E){if(S+=e+t-E,E-=t,E<T){T-=E;do L[o++]=a[S++];while(--E);if(S=0,t<T){E=t,T-=E;do L[o++]=a[S++];while(--E);S=o-w,_=L}}}else if(S+=t-E,E<T){T-=E;do L[o++]=a[S++];while(--E);S=o-w,_=L}for(;T>2;)L[o++]=_[S++],L[o++]=_[S++],L[o++]=_[S++],T-=3;T&&(L[o++]=_[S++],T>1&&(L[o++]=_[S++]))}else{S=o-w;do L[o++]=L[S++],L[o++]=L[S++],L[o++]=L[S++],T-=3;while(T>2);T&&(L[o++]=L[S++],T>1&&(L[o++]=L[S++]))}}else if((E&64)===0){y=p[(y&65535)+(s&(1<<E)-1)];continue r}else{A.msg="invalid distance code",g.mode=O;break e}break}}else if((E&64)===0){y=h[(y&65535)+(s&(1<<E)-1)];continue t}else if(E&32){g.mode=x;break e}else{A.msg="invalid literal/length code",g.mode=O;break e}break}}while(f<c&&o<i);T=u>>3,f-=T,u-=T<<3,s&=(1<<u)-1,A.next_in=f,A.next_out=o,A.avail_in=f<c?5+(c-f):5-(f-c),A.avail_out=o<i?257+(i-o):257-(o-i),g.hold=s,g.bits=u;return}},szbU:function(H,k,d){var O=d("bYtY"),x=O.each;function C(b){var g=b&&b.visualMap;O.isArray(g)||(g=g?[g]:[]),x(g,function(f){if(!f)return;A(f,"splitList")&&!A(f,"pieces")&&(f.pieces=f.splitList,delete f.splitList);var c=f.pieces;c&&O.isArray(c)&&x(c,function(o){O.isObject(o)&&(A(o,"start")&&!A(o,"min")&&(o.min=o.start),A(o,"end")&&!A(o,"max")&&(o.max=o.end))})})}function A(b,g){return b&&b.hasOwnProperty&&b.hasOwnProperty(g)}H.exports=C},t23M:function(H,k,d){"use strict";var O=d("wx14"),x=d("q1tI"),C=d("Zm9Q"),A=d("Kwbf"),b=d("VTBJ"),g=d("c+Xe"),f=d("m+aA"),c=d("bdgK"),o=new Map;function r(S){S.forEach(function(_){var I,L=_.target;(I=o.get(L))===null||I===void 0||I.forEach(function(N){return N(L)})})}var i=new c.default(r),n=null,e=null;function l(S,_){o.has(S)||(o.set(S,new Set),i.observe(S)),o.get(S).add(_)}function t(S,_){o.has(S)&&(o.get(S).delete(_),o.get(S).size||(i.unobserve(S),o.delete(S)))}var a=d("1OyB"),s=d("vuIU"),u=d("Ji7U"),h=d("LK+K"),p=function(S){Object(u.a)(I,S);var _=Object(h.a)(I);function I(){return Object(a.a)(this,I),_.apply(this,arguments)}return Object(s.a)(I,[{key:"render",value:function(){return this.props.children}}]),I}(x.Component),m=x.createContext(null);function v(S){var _=S.children,I=S.onBatchResize,L=x.useRef(0),N=x.useRef([]),R=x.useContext(m),D=x.useCallback(function(F,M,U){L.current+=1;var B=L.current;N.current.push({size:F,element:M,data:U}),Promise.resolve().then(function(){B===L.current&&(I==null||I(N.current),N.current=[])}),R==null||R(F,M,U)},[I,R]);return x.createElement(m.Provider,{value:D},_)}function y(S){var _=S.children,I=S.disabled,L=x.useRef(null),N=x.useRef(null),R=x.useContext(m),D=typeof _=="function",F=D?_(L):_,M=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),U=!D&&x.isValidElement(F)&&Object(g.c)(F),B=U?F.ref:null,j=x.useMemo(function(){return Object(g.a)(B,L)},[B,L]),W=x.useRef(S);W.current=S;var V=x.useCallback(function(z){var J=W.current,q=J.onResize,de=J.data,ae=z.getBoundingClientRect(),ve=ae.width,_e=ae.height,Ie=z.offsetWidth,He=z.offsetHeight,me=Math.floor(ve),ke=Math.floor(_e);if(M.current.width!==me||M.current.height!==ke||M.current.offsetWidth!==Ie||M.current.offsetHeight!==He){var se={width:me,height:ke,offsetWidth:Ie,offsetHeight:He};M.current=se;var te=Ie===Math.round(ve)?ve:Ie,Ge=He===Math.round(_e)?_e:He,oe=Object(b.a)(Object(b.a)({},se),{},{offsetWidth:te,offsetHeight:Ge});R==null||R(oe,z,de),q&&Promise.resolve().then(function(){q(oe,z)})}},[]);return x.useEffect(function(){var z=Object(f.a)(L.current)||Object(f.a)(N.current);return z&&!I&&l(z,V),function(){return t(z,V)}},[L.current,I]),x.createElement(p,{ref:N},U?x.cloneElement(F,{ref:j}):F)}var E="rc-observer-key";function T(S){var _=S.children,I=typeof _=="function"?[_]:Object(C.a)(_);return I.map(function(L,N){var R=(L==null?void 0:L.key)||"".concat(E,"-").concat(N);return x.createElement(y,Object(O.a)({},S,{key:R}),L)})}T.Collection=v;var w=k.a=T},t3Fx:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=Object.assign||function(a){for(var s=1;s<arguments.length;s++){var u=arguments[s];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(a[h]=u[h])}return a},x=function(){function a(s,u){for(var h=0;h<u.length;h++){var p=u[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(s,p.key,p)}}return function(s,u,h){return u&&a(s.prototype,u),h&&a(s,h),s}}(),C=d("q1tI"),A=i(C),b=d("17x9"),g=i(b),f=d("tkwv"),c=i(f),o=d("u3os"),r=d("kzFp");function i(a){return a&&a.__esModule?a:{default:a}}function n(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}function e(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:a}function l(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}var t=function(a){l(s,a);function s(u){n(this,s);var h=e(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,u));return h.getEchartsInstance=function(){return h.echartsLib.getInstanceByDom(h.echartsElement)||h.echartsLib.init(h.echartsElement,h.props.theme,h.props.opts)},h.dispose=function(){if(h.echartsElement){try{(0,o.clear)(h.echartsElement)}catch(p){console.warn(p)}h.echartsLib.dispose(h.echartsElement)}},h.rerender=function(){var p=h.props,m=p.onEvents,v=p.onChartReady,y=h.renderEchartDom();h.bindEvents(y,m||{}),typeof v=="function"&&h.props.onChartReady(y),h.echartsElement&&(0,o.bind)(h.echartsElement,function(){try{y.resize()}catch(E){console.warn(E)}})},h.bindEvents=function(p,m){var v=function(T,w){typeof T=="string"&&typeof w=="function"&&p.on(T,function(S){w(S,p)})};for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&v(y,m[y])},h.renderEchartDom=function(){var p=h.getEchartsInstance();return p.setOption(h.props.option,h.props.notMerge||!1,h.props.lazyUpdate||!1),h.props.showLoading?p.showLoading(h.props.loadingOption||null):p.hideLoading(),p},h.echartsLib=u.echarts,h.echartsElement=null,h}return x(s,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(h){if(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(h,this.props))return;if(!(0,c.default)(h.theme,this.props.theme)||!(0,c.default)(h.opts,this.props.opts)||!(0,c.default)(h.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)(h,p)))return;var m=this.renderEchartDom();if(!(0,c.default)(h.style,this.props.style)||!(0,c.default)(h.className,this.props.className))try{m.resize()}catch(v){console.warn(v)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var h=this,p=this.props,m=p.style,v=p.className,y=O({height:300},m);return A.default.createElement("div",{ref:function(T){h.echartsElement=T},style:y,className:"echarts-for-react "+v})}}]),s}(C.Component);k.default=t,t.propTypes={option:g.default.object.isRequired,echarts:g.default.object,notMerge:g.default.bool,lazyUpdate:g.default.bool,style:g.default.object,className:g.default.string,theme:g.default.oneOfType([g.default.string,g.default.object]),onChartReady:g.default.func,showLoading:g.default.bool,loadingOption:g.default.object,onEvents:g.default.object,opts:g.default.shape({devicePixelRatio:g.default.number,renderer:g.default.oneOf(["canvas","svg"]),width:g.default.oneOfType([g.default.number,g.default.oneOf([null,void 0,"auto"])]),height:g.default.oneOfType([g.default.number,g.default.oneOf([null,void 0,"auto"])])}),shouldSetOption:g.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(H,k,d){var O=d("bYtY"),x=d("IwbS"),C=d("Qxkt"),A=d("Znkb"),b=d("+rIm"),g=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function f(i,n,e){n[1]>n[0]&&(n=n.slice().reverse());var l=i.coordToPoint([n[0],e]),t=i.coordToPoint([n[1],e]);return{x1:l[0],y1:l[1],x2:t[0],y2:t[1]}}function c(i){var n=i.getRadiusAxis();return n.inverse?0:1}function o(i){var n=i[0],e=i[i.length-1];n&&e&&Math.abs(Math.abs(n.coord-e.coord)-360)<1e-4&&i.pop()}var r=A.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(i,n){if(this.group.removeAll(),!i.get("show"))return;var e=i.axis,l=e.polar,t=l.getRadiusAxis().getExtent(),a=e.getTicksCoords(),s=e.getMinorTicksCoords(),u=O.map(e.getViewLabels(),function(h){var h=O.clone(h);return h.coord=e.dataToCoord(h.tickValue),h});o(u),o(a),O.each(g,function(h){i.get(h+".show")&&(!e.scale.isBlank()||h==="axisLine")&&this["_"+h](i,l,a,s,t,u)},this)},_axisLine:function(i,n,e,l,t){var a=i.getModel("axisLine.lineStyle"),s=c(n),u=s?0:1,h;t[u]===0?h=new x.Circle({shape:{cx:n.cx,cy:n.cy,r:t[s]},style:a.getLineStyle(),z2:1,silent:!0}):h=new x.Ring({shape:{cx:n.cx,cy:n.cy,r:t[s],r0:t[u]},style:a.getLineStyle(),z2:1,silent:!0}),h.style.fill=null,this.group.add(h)},_axisTick:function(i,n,e,l,t){var a=i.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),u=t[c(n)],h=O.map(e,function(p){return new x.Line({shape:f(n,[u,u+s],p.coord)})});this.group.add(x.mergePath(h,{style:O.defaults(a.getModel("lineStyle").getLineStyle(),{stroke:i.get("axisLine.lineStyle.color")})}))},_minorTick:function(i,n,e,l,t){if(!l.length)return;for(var a=i.getModel("axisTick"),s=i.getModel("minorTick"),u=(a.get("inside")?-1:1)*s.get("length"),h=t[c(n)],p=[],m=0;m<l.length;m++)for(var v=0;v<l[m].length;v++)p.push(new x.Line({shape:f(n,[h,h+u],l[m][v].coord)}));this.group.add(x.mergePath(p,{style:O.defaults(s.getModel("lineStyle").getLineStyle(),O.defaults(a.getLineStyle(),{stroke:i.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(i,n,e,l,t,a){var s=i.getCategories(!0),u=i.getModel("axisLabel"),h=u.get("margin"),p=i.get("triggerEvent");O.each(a,function(m,v){var y=u,E=m.tickValue,T=t[c(n)],w=n.coordToPoint([T+h,m.coord]),S=n.cx,_=n.cy,I=Math.abs(w[0]-S)/T<.3?"center":w[0]>S?"left":"right",L=Math.abs(w[1]-_)/T<.3?"middle":w[1]>_?"top":"bottom";s&&s[E]&&s[E].textStyle&&(y=new C(s[E].textStyle,u,u.ecModel));var N=new x.Text({silent:b.isLabelSilent(i)});this.group.add(N),x.setTextStyle(N.style,y,{x:w[0],y:w[1],textFill:y.getTextColor()||i.get("axisLine.lineStyle.color"),text:m.formattedLabel,textAlign:I,textVerticalAlign:L}),p&&(N.eventData=b.makeAxisEventDataBase(i),N.eventData.targetType="axisLabel",N.eventData.value=m.rawLabel)},this)},_splitLine:function(i,n,e,l,t){var a=i.getModel("splitLine"),s=a.getModel("lineStyle"),u=s.get("color"),h=0;u=u instanceof Array?u:[u];for(var p=[],m=0;m<e.length;m++){var v=h++%u.length;p[v]=p[v]||[],p[v].push(new x.Line({shape:f(n,t,e[m].coord)}))}for(var m=0;m<p.length;m++)this.group.add(x.mergePath(p[m],{style:O.defaults({stroke:u[m%u.length]},s.getLineStyle()),silent:!0,z:i.get("z")}))},_minorSplitLine:function(i,n,e,l,t){if(!l.length)return;for(var a=i.getModel("minorSplitLine"),s=a.getModel("lineStyle"),u=[],h=0;h<l.length;h++)for(var p=0;p<l[h].length;p++)u.push(new x.Line({shape:f(n,t,l[h][p].coord)}));this.group.add(x.mergePath(u,{style:s.getLineStyle(),silent:!0,z:i.get("z")}))},_splitArea:function(i,n,e,l,t){if(!e.length)return;var a=i.getModel("splitArea"),s=a.getModel("areaStyle"),u=s.get("color"),h=0;u=u instanceof Array?u:[u];for(var p=[],m=Math.PI/180,v=-e[0].coord*m,y=Math.min(t[0],t[1]),E=Math.max(t[0],t[1]),T=i.get("clockwise"),w=1;w<e.length;w++){var S=h++%u.length;p[S]=p[S]||[],p[S].push(new x.Sector({shape:{cx:n.cx,cy:n.cy,r0:y,r:E,startAngle:v,endAngle:-e[w].coord*m,clockwise:T},silent:!0})),v=-e[w].coord*m}for(var w=0;w<p.length;w++)this.group.add(x.mergePath(p[w],{style:O.defaults({fill:u[w%u.length]},s.getAreaStyle()),silent:!0}))}});H.exports=r},tSko:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("SRve")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="PlusOutlined";var c=A.forwardRef(f);k.default=c},tceW:function(H,k,d){var O=d("KCsZ"),x=O([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),C={getBarItemStyle:function(A){var b=x(this,A);if(this.getBorderLineDash){var g=this.getBorderLineDash();g&&(b.lineDash=g)}return b}};H.exports=C},tkwv:function(H,k,d){"use strict";var O=Array.isArray,x=Object.keys,C=Object.prototype.hasOwnProperty;H.exports=function A(b,g){if(b===g)return!0;if(b&&g&&typeof b=="object"&&typeof g=="object"){var f=O(b),c=O(g),o,r,i;if(f&&c){if(r=b.length,r!=g.length)return!1;for(o=r;o--!==0;)if(!A(b[o],g[o]))return!1;return!0}if(f!=c)return!1;var n=b instanceof Date,e=g instanceof Date;if(n!=e)return!1;if(n&&e)return b.getTime()==g.getTime();var l=b instanceof RegExp,t=g instanceof RegExp;if(l!=t)return!1;if(l&&t)return b.toString()==g.toString();var a=x(b);if(r=a.length,r!==x(g).length)return!1;for(o=r;o--!==0;)if(!C.call(g,a[o]))return!1;for(o=r;o--!==0;)if(i=a[o],!A(b[i],g[i]))return!1;return!0}return b!==b&&g!==g}},txkQ:function(H,k,d){var O=d("aX58");k.zrender=O;var x=d("Fofx");k.matrix=x;var C=d("QBsz");k.vector=C;var A=d("bYtY"),b=d("Qe9p");k.color=b;var g=d("IwbS"),f=d("OELB");k.number=f;var c=d("7aKB");k.format=c;var o=d("iLNv"),r=o.throttle;k.throttle=o.throttle;var i=d("FUi9");k.helper=i;var n=d("vafp");k.parseGeoJSON=n;var e=d("YXkt");k.List=e;var l=d("Qxkt");k.Model=l;var t=d("hM6l");k.Axis=t;var a=d("ItGF");k.env=a;var s=n,u={};A.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(p){u[p]=A[p]});var h={};A.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(p){h[p]=g[p]}),k.parseGeoJson=s,k.util=u,k.graphic=h},u3DP:function(H,k,d){var O=d("6GrX"),x=d("OELB"),C=x.parsePercent,A=Math.PI/180;function b(o,r,i,n,e,l,t,a,s,u){o.sort(function(I,L){return I.y-L.y});function h(I,L,N,R){for(var D=I;D<L&&!(o[D].y+N>s+t);D++)if(o[D].y+=N,D>I&&D+1<L&&o[D+1].y>o[D].y+o[D].height){p(D,N/2);return}p(L-1,N/2)}function p(I,L){for(var N=I;N>=0&&!(o[N].y-L<s);N--)if(o[N].y-=L,N>0&&o[N].y>o[N-1].y+o[N-1].height)break}function m(I,L,N,R,D,F){for(var M=(F>0,L?Number.MAX_VALUE:0),U=0,B=I.length;U<B;U++){if(I[U].labelAlignTo!=="none")continue;var j=Math.abs(I[U].y-R),W=I[U].len,V=I[U].len2,z=j<D+W?Math.sqrt((D+W+V)*(D+W+V)-j*j):Math.abs(I[U].x-N);L&&z>=M&&(z=M-10),!L&&z<=M&&(z=M+10),I[U].x=N+z*F,M=z}}for(var v=0,y,E=o.length,T=[],w=[],S=0;S<E;S++){if(o[S].position==="outer"&&o[S].labelAlignTo==="labelLine"){var _=o[S].x-u;o[S].linePoints[1][0]+=_,o[S].x=u}y=o[S].y-v,y<0&&h(S,E,-y,e),v=o[S].y+o[S].height}t-v<0&&p(E-1,v-t);for(var S=0;S<E;S++)o[S].y>=i?w.push(o[S]):T.push(o[S]);m(T,!1,r,i,n,e),m(w,!0,r,i,n,e)}function g(o,r,i,n,e,l,t,a){for(var s=[],u=[],h=Number.MAX_VALUE,p=-Number.MAX_VALUE,m=0;m<o.length;m++){if(f(o[m]))continue;o[m].x<r?(h=Math.min(h,o[m].x),s.push(o[m])):(p=Math.max(p,o[m].x),u.push(o[m]))}b(u,r,i,n,1,e,l,t,a,p),b(s,r,i,n,-1,e,l,t,a,h);for(var m=0;m<o.length;m++){var v=o[m];if(f(v))continue;var y=v.linePoints;if(y){var E=v.labelAlignTo==="edge",T=v.textRect.width,w;E?v.x<r?w=y[2][0]-v.labelDistance-t-v.labelMargin:w=t+e-v.labelMargin-y[2][0]-v.labelDistance:v.x<r?w=v.x-t-v.bleedMargin:w=t+e-v.x-v.bleedMargin,w<v.textRect.width&&(v.text=O.truncateText(v.text,w,v.font),v.labelAlignTo==="edge"&&(T=O.getWidth(v.text,v.font)));var S=y[1][0]-y[2][0];E?v.x<r?y[2][0]=t+v.labelMargin+T+v.labelDistance:y[2][0]=t+e-v.labelMargin-T-v.labelDistance:(v.x<r?y[2][0]=v.x+v.labelDistance:y[2][0]=v.x-v.labelDistance,y[1][0]=y[2][0]+S),y[1][1]=y[2][1]=v.y}}}function f(o){return o.position==="center"}function c(o,r,i,n,e,l){var t=o.getData(),a=[],s,u,h=!1,p=(o.get("minShowLabelAngle")||0)*A;t.each(function(m){var v=t.getItemLayout(m),y=t.getItemModel(m),E=y.getModel("label"),T=E.get("position")||y.get("emphasis.label.position"),w=E.get("distanceToLabelLine"),S=E.get("alignTo"),_=C(E.get("margin"),i),I=E.get("bleedMargin"),L=E.getFont(),N=y.getModel("labelLine"),R=N.get("length");R=C(R,i);var D=N.get("length2");if(D=C(D,i),v.angle<p)return;var F=(v.startAngle+v.endAngle)/2,M=Math.cos(F),U=Math.sin(F),B,j,W,V;s=v.cx,u=v.cy;var z=o.getFormattedLabel(m,"normal")||t.getName(m),J=O.getBoundingRect(z,L,V,"top"),q=T==="inside"||T==="inner";if(T==="center")B=v.cx,j=v.cy,V="center";else{var de=(q?(v.r+v.r0)/2*M:v.r*M)+s,ae=(q?(v.r+v.r0)/2*U:v.r*U)+u;if(B=de+M*3,j=ae+U*3,!q){var ve=de+M*(R+r-v.r),_e=ae+U*(R+r-v.r),Ie=ve+(M<0?-1:1)*D,He=_e;S==="edge"?B=M<0?e+_:e+i-_:B=Ie+(M<0?-w:w),j=He,W=[[de,ae],[ve,_e],[Ie,He]]}V=q?"center":S==="edge"?M>0?"right":"left":M>0?"left":"right"}var me,ke=E.get("rotate");typeof ke=="number"?me=ke*(Math.PI/180):me=ke?M<0?-F+Math.PI:-F:0,h=!!me,v.label={x:B,y:j,position:T,height:J.height,len:R,len2:D,linePoints:W,textAlign:V,verticalAlign:"middle",rotation:me,inside:q,labelDistance:w,labelAlignTo:S,labelMargin:_,bleedMargin:I,textRect:J,text:z,font:L},q||a.push(v.label)}),!h&&o.get("avoidLabelOverlap")&&g(a,s,u,r,i,n,e,l)}H.exports=c},u3os:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.ver=k.clear=k.bind=void 0;var O=d("P4Qj"),x=function(g,f){var c=(0,O.getSensor)(g);return c.bind(f),function(){c.unbind(f)}};k.bind=x;var C=function(g){var f=(0,O.getSensor)(g);(0,O.removeSensor)(f)};k.clear=C;var A="1.0.1";k.ver=A},u4NN:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("Uc92")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="EyeOutlined";var c=A.forwardRef(f);k.default=c},u9fO:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("b80e"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},uAnK:function(H,k,d){var O=d("bYtY"),x=d("Kagy"),C=d("KxfA"),A=C.retrieveRawValue;function b(g,f){var c=f.getModel("aria");if(c.get("show")){if(c.get("description")){g.setAttribute("aria-label",c.get("description"));return}}else return;var o=0;f.eachSeries(function(m,v){++o},this);var r=c.get("data.maxCount")||10,i=c.get("series.maxCount")||10,n=Math.min(o,i),e;if(o<1)return;var l=h();l?e=s(u("general.withTitle"),{title:l}):e=u("general.withoutTitle");var t=[],a=o>1?"series.multiple.prefix":"series.single.prefix";e+=s(u(a),{seriesCount:o}),f.eachSeries(function(m,v){if(v<n){var y,E=m.get("name"),T="series."+(o>1?"multiple":"single")+".";y=u(E?T+"withName":T+"withoutName"),y=s(y,{seriesId:m.seriesIndex,seriesName:m.get("name"),seriesType:p(m.subType)});var w=m.getData();window.data=w,w.count()>r?y+=s(u("data.partialData"),{displayCnt:r}):y+=u("data.allData");for(var S=[],_=0;_<w.count();_++)if(_<r){var I=w.getName(_),L=A(w,_);S.push(s(u(I?"data.withName":"data.withoutName"),{name:I,value:L}))}y+=S.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"),g.setAttribute("aria-label",e);function s(m,v){if(typeof m!="string")return m;var y=m;return O.each(v,function(E,T){y=y.replace(new RegExp("\\{\\s*"+T+"\\s*\\}","g"),E)}),y}function u(m){var v=c.get(m);if(v==null){for(var y=m.split("."),E=x.aria,T=0;T<y.length;++T)E=E[y[T]];return E}else return v}function h(){var m=f.getModel("title").option;return m&&m.length&&(m=m[0]),m&&m.text}function p(m){return x.series.typeNames[m]||"\u81EA\u5B9A\u4E49\u56FE"}}H.exports=b},uGsb:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("MlIO"),d("1uat"))})(this,function(O){return function(){var x=O,C=x.x64,A=C.Word,b=C.WordArray,g=x.algo,f=g.SHA512,c=g.SHA384=f.extend({_doReset:function(){this._hash=new b.init([new A.init(3418070365,3238371032),new A.init(1654270250,914150663),new A.init(2438529370,812702999),new A.init(355462360,4144912697),new A.init(1731405415,4290775857),new A.init(2394180231,1750603025),new A.init(3675008525,1694076839),new A.init(1203062813,3204075428)])},_doFinalize:function(){var r=f._doFinalize.call(this);return r.sigBytes-=16,r}});x.SHA384=f._createHelper(c),x.HmacSHA384=f._createHmacHelper(c)}(),O.SHA384})},uGxW:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("OLod"))})(this,function(O){return O.pad.NoPadding={pad:function(){},unpad:function(){}},O.pad.NoPadding})},uK0f:function(H,k,d){(function(O,x){H.exports=x()})(this,function(){"use strict";function O(x,C,A){A=A||{},A.childrenKeyName=A.childrenKeyName||"children";var b=x||[],g=[],f=0;do{var c=b.filter(function(o){return C(o,f)})[0];if(!c)break;g.push(c),b=c[A.childrenKeyName]||[],f+=1}while(b.length>0);return g}return O})},uOyE:function(H,k,d){var O=d("ProS");O.registerAction({type:"brush",event:"brush"},function(x,C){C.eachComponent({mainType:"brush",query:x},function(A){A.setAreas(x.areas)})}),O.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),O.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(H,k,d){H.exports=O;function O(){return d("gaXo"),{}}},uciX:function(H,k,d){"use strict";var O=d("VTBJ"),x=d("wx14"),C=d("1OyB"),A=d("vuIU"),b=d("JX7q"),g=d("Ji7U"),f=d("LK+K"),c=d("q1tI"),o=d("i8i4"),r=d.n(o),i=d("wgJM"),n=d("l4aY"),e=d("m+aA"),l=d("c+Xe"),t=d("zT1h"),a=d("QC+M"),s=d("TSYQ"),u=d.n(s);function h(se,te,Ge){return Ge?se[0]===te[0]:se[0]===te[0]&&se[1]===te[1]}function p(se,te,Ge){var oe=se[te]||{};return Object(O.a)(Object(O.a)({},oe),Ge)}function m(se,te,Ge,oe){for(var Y=Ge.points,G=Object.keys(se),Q=0;Q<G.length;Q+=1){var ye=G[Q];if(h(se[ye].points,Y,oe))return"".concat(te,"-placement-").concat(ye)}return""}var v=d("ODXe"),y=d("Ff2n"),E=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var se=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(se)||/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(se==null?void 0:se.substr(0,4)))},T=d("8XRh");function w(se){var te=se.prefixCls,Ge=se.motion,oe=se.animation,Y=se.transitionName;return Ge||(oe?{motionName:"".concat(te,"-").concat(oe)}:Y?{motionName:Y}:null)}function S(se){var te=se.prefixCls,Ge=se.visible,oe=se.zIndex,Y=se.mask,G=se.maskMotion,Q=se.maskAnimation,ye=se.maskTransitionName;if(!Y)return null;var ce={};return(G||ye||Q)&&(ce=Object(O.a)({motionAppear:!0},w({motion:G,prefixCls:te,transitionName:ye,animation:Q}))),c.createElement(T.b,Object(x.a)({},ce,{visible:Ge,removeOnLeave:!0}),function(Te){var Se=Te.className;return c.createElement("div",{style:{zIndex:oe},className:u()("".concat(te,"-mask"),Se)})})}var _=d("9mu1"),I=d("TNol"),L=d("U8pU");function N(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */N=function(){return se};var se={},te=Object.prototype,Ge=te.hasOwnProperty,oe=typeof Symbol=="function"?Symbol:{},Y=oe.iterator||"@@iterator",G=oe.asyncIterator||"@@asyncIterator",Q=oe.toStringTag||"@@toStringTag";function ye(ie,X,Be){return Object.defineProperty(ie,X,{value:Be,enumerable:!0,configurable:!0,writable:!0}),ie[X]}try{ye({},"")}catch(ie){ye=function(Be,Ce,Z){return Be[Ce]=Z}}function ce(ie,X,Be,Ce){var Z=X&&X.prototype instanceof le?X:le,nt=Object.create(Z.prototype),ct=new It(Ce||[]);return nt._invoke=function(Qe,dt,Ft){var Lr="suspendedStart";return function(Wt,ar){if(Lr==="executing")throw new Error("Generator is already running");if(Lr==="completed"){if(Wt==="throw")throw ar;return Xe()}for(Ft.method=Wt,Ft.arg=ar;;){var Ut=Ft.delegate;if(Ut){var kt=St(Ut,Ft);if(kt){if(kt===Se)continue;return kt}}if(Ft.method==="next")Ft.sent=Ft._sent=Ft.arg;else if(Ft.method==="throw"){if(Lr==="suspendedStart")throw Lr="completed",Ft.arg;Ft.dispatchException(Ft.arg)}else Ft.method==="return"&&Ft.abrupt("return",Ft.arg);Lr="executing";var st=Te(Qe,dt,Ft);if(st.type==="normal"){if(Lr=Ft.done?"completed":"suspendedYield",st.arg===Se)continue;return{value:st.arg,done:Ft.done}}st.type==="throw"&&(Lr="completed",Ft.method="throw",Ft.arg=st.arg)}}}(ie,Be,ct),nt}function Te(ie,X,Be){try{return{type:"normal",arg:ie.call(X,Be)}}catch(Ce){return{type:"throw",arg:Ce}}}se.wrap=ce;var Se={};function le(){}function fe(){}function Ee(){}var Ve={};ye(Ve,Y,function(){return this});var vt=Object.getPrototypeOf,et=vt&&vt(vt(_t([])));et&&et!==te&&Ge.call(et,Y)&&(Ve=et);var Oe=Ee.prototype=le.prototype=Object.create(Ve);function Tt(ie){["next","throw","return"].forEach(function(X){ye(ie,X,function(Be){return this._invoke(X,Be)})})}function Je(ie,X){function Be(Z,nt,ct,Qe){var dt=Te(ie[Z],ie,nt);if(dt.type!=="throw"){var Ft=dt.arg,Lr=Ft.value;return Lr&&Object(L.a)(Lr)=="object"&&Ge.call(Lr,"__await")?X.resolve(Lr.__await).then(function(Wt){Be("next",Wt,ct,Qe)},function(Wt){Be("throw",Wt,ct,Qe)}):X.resolve(Lr).then(function(Wt){Ft.value=Wt,ct(Ft)},function(Wt){return Be("throw",Wt,ct,Qe)})}Qe(dt.arg)}var Ce;this._invoke=function(Z,nt){function ct(){return new X(function(Qe,dt){Be(Z,nt,Qe,dt)})}return Ce=Ce?Ce.then(ct,ct):ct()}}function St(ie,X){var Be=ie.iterator[X.method];if(Be===void 0){if(X.delegate=null,X.method==="throw"){if(ie.iterator.return&&(X.method="return",X.arg=void 0,St(ie,X),X.method==="throw"))return Se;X.method="throw",X.arg=new TypeError("The iterator does not provide a 'throw' method")}return Se}var Ce=Te(Be,ie.iterator,X.arg);if(Ce.type==="throw")return X.method="throw",X.arg=Ce.arg,X.delegate=null,Se;var Z=Ce.arg;return Z?Z.done?(X[ie.resultName]=Z.value,X.next=ie.nextLoc,X.method!=="return"&&(X.method="next",X.arg=void 0),X.delegate=null,Se):Z:(X.method="throw",X.arg=new TypeError("iterator result is not an object"),X.delegate=null,Se)}function Mt(ie){var X={tryLoc:ie[0]};1 in ie&&(X.catchLoc=ie[1]),2 in ie&&(X.finallyLoc=ie[2],X.afterLoc=ie[3]),this.tryEntries.push(X)}function er(ie){var X=ie.completion||{};X.type="normal",delete X.arg,ie.completion=X}function It(ie){this.tryEntries=[{tryLoc:"root"}],ie.forEach(Mt,this),this.reset(!0)}function _t(ie){if(ie){var X=ie[Y];if(X)return X.call(ie);if(typeof ie.next=="function")return ie;if(!isNaN(ie.length)){var Be=-1,Ce=function Z(){for(;++Be<ie.length;)if(Ge.call(ie,Be))return Z.value=ie[Be],Z.done=!1,Z;return Z.value=void 0,Z.done=!0,Z};return Ce.next=Ce}}return{next:Xe}}function Xe(){return{value:void 0,done:!0}}return fe.prototype=Ee,ye(Oe,"constructor",Ee),ye(Ee,"constructor",fe),fe.displayName=ye(Ee,Q,"GeneratorFunction"),se.isGeneratorFunction=function(ie){var X=typeof ie=="function"&&ie.constructor;return!!X&&(X===fe||(X.displayName||X.name)==="GeneratorFunction")},se.mark=function(ie){return Object.setPrototypeOf?Object.setPrototypeOf(ie,Ee):(ie.__proto__=Ee,ye(ie,Q,"GeneratorFunction")),ie.prototype=Object.create(Oe),ie},se.awrap=function(ie){return{__await:ie}},Tt(Je.prototype),ye(Je.prototype,G,function(){return this}),se.AsyncIterator=Je,se.async=function(ie,X,Be,Ce,Z){Z===void 0&&(Z=Promise);var nt=new Je(ce(ie,X,Be,Ce),Z);return se.isGeneratorFunction(X)?nt:nt.next().then(function(ct){return ct.done?ct.value:nt.next()})},Tt(Oe),ye(Oe,Q,"Generator"),ye(Oe,Y,function(){return this}),ye(Oe,"toString",function(){return"[object Generator]"}),se.keys=function(ie){var X=[];for(var Be in ie)X.push(Be);return X.reverse(),function Ce(){for(;X.length;){var Z=X.pop();if(Z in ie)return Ce.value=Z,Ce.done=!1,Ce}return Ce.done=!0,Ce}},se.values=_t,It.prototype={constructor:It,reset:function(X){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(er),!X)for(var Be in this)Be.charAt(0)==="t"&&Ge.call(this,Be)&&!isNaN(+Be.slice(1))&&(this[Be]=void 0)},stop:function(){this.done=!0;var X=this.tryEntries[0].completion;if(X.type==="throw")throw X.arg;return this.rval},dispatchException:function(X){if(this.done)throw X;var Be=this;function Ce(Ft,Lr){return ct.type="throw",ct.arg=X,Be.next=Ft,Lr&&(Be.method="next",Be.arg=void 0),!!Lr}for(var Z=this.tryEntries.length-1;Z>=0;--Z){var nt=this.tryEntries[Z],ct=nt.completion;if(nt.tryLoc==="root")return Ce("end");if(nt.tryLoc<=this.prev){var Qe=Ge.call(nt,"catchLoc"),dt=Ge.call(nt,"finallyLoc");if(Qe&&dt){if(this.prev<nt.catchLoc)return Ce(nt.catchLoc,!0);if(this.prev<nt.finallyLoc)return Ce(nt.finallyLoc)}else if(Qe){if(this.prev<nt.catchLoc)return Ce(nt.catchLoc,!0)}else{if(!dt)throw new Error("try statement without catch or finally");if(this.prev<nt.finallyLoc)return Ce(nt.finallyLoc)}}}},abrupt:function(X,Be){for(var Ce=this.tryEntries.length-1;Ce>=0;--Ce){var Z=this.tryEntries[Ce];if(Z.tryLoc<=this.prev&&Ge.call(Z,"finallyLoc")&&this.prev<Z.finallyLoc){var nt=Z;break}}nt&&(X==="break"||X==="continue")&&nt.tryLoc<=Be&&Be<=nt.finallyLoc&&(nt=null);var ct=nt?nt.completion:{};return ct.type=X,ct.arg=Be,nt?(this.method="next",this.next=nt.finallyLoc,Se):this.complete(ct)},complete:function(X,Be){if(X.type==="throw")throw X.arg;return X.type==="break"||X.type==="continue"?this.next=X.arg:X.type==="return"?(this.rval=this.arg=X.arg,this.method="return",this.next="end"):X.type==="normal"&&Be&&(this.next=Be),Se},finish:function(X){for(var Be=this.tryEntries.length-1;Be>=0;--Be){var Ce=this.tryEntries[Be];if(Ce.finallyLoc===X)return this.complete(Ce.completion,Ce.afterLoc),er(Ce),Se}},catch:function(X){for(var Be=this.tryEntries.length-1;Be>=0;--Be){var Ce=this.tryEntries[Be];if(Ce.tryLoc===X){var Z=Ce.completion;if(Z.type==="throw"){var nt=Z.arg;er(Ce)}return nt}}throw new Error("illegal catch attempt")},delegateYield:function(X,Be,Ce){return this.delegate={iterator:_t(X),resultName:Be,nextLoc:Ce},this.method==="next"&&(this.arg=void 0),Se}},se}var R=d("HaE+"),D=d("dm2S"),F=["measure","alignPre","align",null,"motion"],M=function(se,te){var Ge=Object(D.a)(null),oe=Object(v.a)(Ge,2),Y=oe[0],G=oe[1],Q=Object(c.useRef)();function ye(Se){G(Se,!0)}function ce(){i.a.cancel(Q.current)}function Te(Se){ce(),Q.current=Object(i.a)(function(){ye(function(le){switch(Y){case"align":return"motion";case"motion":return"stable";default:}return le}),Se==null||Se()})}return Object(c.useEffect)(function(){ye("measure")},[se]),Object(c.useEffect)(function(){switch(Y){case"measure":te();break;default:}Y&&(Q.current=Object(i.a)(Object(R.a)(N().mark(function Se(){var le,fe;return N().wrap(function(Ve){for(;;)switch(Ve.prev=Ve.next){case 0:le=F.indexOf(Y),fe=F[le+1],fe&&le!==-1&&ye(fe);case 3:case"end":return Ve.stop()}},Se)}))))},[Y]),Object(c.useEffect)(function(){return function(){ce()}},[]),[Y,Te]},U=function(se){var te=c.useState({width:0,height:0}),Ge=Object(v.a)(te,2),oe=Ge[0],Y=Ge[1];function G(ye){Y({width:ye.offsetWidth,height:ye.offsetHeight})}var Q=c.useMemo(function(){var ye={};if(se){var ce=oe.width,Te=oe.height;se.indexOf("height")!==-1&&Te?ye.height=Te:se.indexOf("minHeight")!==-1&&Te&&(ye.minHeight=Te),se.indexOf("width")!==-1&&ce?ye.width=ce:se.indexOf("minWidth")!==-1&&ce&&(ye.minWidth=ce)}return ye},[se,oe]);return[Q,G]},B=c.forwardRef(function(se,te){var Ge=se.visible,oe=se.prefixCls,Y=se.className,G=se.style,Q=se.children,ye=se.zIndex,ce=se.stretch,Te=se.destroyPopupOnHide,Se=se.forceRender,le=se.align,fe=se.point,Ee=se.getRootDomNode,Ve=se.getClassNameFromAlign,vt=se.onAlign,et=se.onMouseEnter,Oe=se.onMouseLeave,Tt=se.onMouseDown,Je=se.onTouchStart,St=se.onClick,Mt=Object(c.useRef)(),er=Object(c.useRef)(),It=Object(c.useState)(),_t=Object(v.a)(It,2),Xe=_t[0],ie=_t[1],X=U(ce),Be=Object(v.a)(X,2),Ce=Be[0],Z=Be[1];function nt(){ce&&Z(Ee())}var ct=M(Ge,nt),Qe=Object(v.a)(ct,2),dt=Qe[0],Ft=Qe[1],Lr=Object(c.useState)(0),Wt=Object(v.a)(Lr,2),ar=Wt[0],Ut=Wt[1],kt=Object(c.useRef)();Object(I.a)(function(){dt==="alignPre"&&Ut(0)},[dt]);function st(){return fe||Ee}function Rr(){var jt;(jt=Mt.current)===null||jt===void 0||jt.forceAlign()}function on(jt,At){var Re=Ve(At);Xe!==Re&&ie(Re),Ut(function(Ke){return Ke+1}),dt==="align"&&(vt==null||vt(jt,At))}Object(I.a)(function(){dt==="align"&&(ar<2?Rr():Ft(function(){var jt;(jt=kt.current)===null||jt===void 0||jt.call(kt)}))},[ar]);var Sn=Object(O.a)({},w(se));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(jt){var At=Sn[jt];Sn[jt]=function(Re,Ke){return Ft(),At==null?void 0:At(Re,Ke)}});function zn(){return new Promise(function(jt){kt.current=jt})}c.useEffect(function(){!Sn.motionName&&dt==="motion"&&Ft()},[Sn.motionName,dt]),c.useImperativeHandle(te,function(){return{forceAlign:Rr,getElement:function(){return er.current}}});var Ii=Object(O.a)(Object(O.a)({},Ce),{},{zIndex:ye,opacity:dt==="motion"||dt==="stable"||!Ge?void 0:0,pointerEvents:!Ge&&dt!=="stable"?"none":void 0},G),yn=!0;(le==null?void 0:le.points)&&(dt==="align"||dt==="stable")&&(yn=!1);var Nn=Q;return c.Children.count(Q)>1&&(Nn=c.createElement("div",{className:"".concat(oe,"-content")},Q)),c.createElement(T.b,Object(x.a)({visible:Ge,ref:er,leavedClassName:"".concat(oe,"-hidden")},Sn,{onAppearPrepare:zn,onEnterPrepare:zn,removeOnLeave:Te,forceRender:Se}),function(jt,At){var Re=jt.className,Ke=jt.style,Pe=u()(oe,Y,Xe,Re);return c.createElement(_.a,{target:st(),key:"popup",ref:Mt,monitorWindowResize:!0,disabled:yn,align:le,onAlign:on},c.createElement("div",{ref:At,className:Pe,onMouseEnter:et,onMouseLeave:Oe,onMouseDownCapture:Tt,onTouchStartCapture:Je,onClick:St,style:Object(O.a)(Object(O.a)({},Ke),Ii)},Nn))})});B.displayName="PopupInner";var j=B,W=c.forwardRef(function(se,te){var Ge=se.prefixCls,oe=se.visible,Y=se.zIndex,G=se.children,Q=se.mobile;Q=Q===void 0?{}:Q;var ye=Q.popupClassName,ce=Q.popupStyle,Te=Q.popupMotion,Se=Te===void 0?{}:Te,le=Q.popupRender,fe=se.onClick,Ee=c.useRef();c.useImperativeHandle(te,function(){return{forceAlign:function(){},getElement:function(){return Ee.current}}});var Ve=Object(O.a)({zIndex:Y},ce),vt=G;return c.Children.count(G)>1&&(vt=c.createElement("div",{className:"".concat(Ge,"-content")},G)),le&&(vt=le(vt)),c.createElement(T.b,Object(x.a)({visible:oe,ref:Ee,removeOnLeave:!0},Se),function(et,Oe){var Tt=et.className,Je=et.style,St=u()(Ge,ye,Tt);return c.createElement("div",{ref:Oe,className:St,onClick:fe,style:Object(O.a)(Object(O.a)({},Je),Ve)},vt)})});W.displayName="MobilePopupInner";var V=W,z=["visible","mobile"],J=c.forwardRef(function(se,te){var Ge=se.visible,oe=se.mobile,Y=Object(y.a)(se,z),G=Object(c.useState)(Ge),Q=Object(v.a)(G,2),ye=Q[0],ce=Q[1],Te=Object(c.useState)(!1),Se=Object(v.a)(Te,2),le=Se[0],fe=Se[1],Ee=Object(O.a)(Object(O.a)({},Y),{},{visible:ye});Object(c.useEffect)(function(){ce(Ge),Ge&&oe&&fe(E())},[Ge,oe]);var Ve=le?c.createElement(V,Object(x.a)({},Ee,{mobile:oe,ref:te})):c.createElement(j,Object(x.a)({},Ee,{ref:te}));return c.createElement("div",null,c.createElement(S,Ee),Ve)});J.displayName="Popup";var q=J,de=c.createContext(null),ae=de;function ve(){}function _e(){return""}function Ie(se){return se?se.ownerDocument:window.document}var He=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function me(se){var te=function(Ge){Object(g.a)(Y,Ge);var oe=Object(f.a)(Y);function Y(G){var Q;Object(C.a)(this,Y),Q=oe.call(this,G),Q.popupRef=c.createRef(),Q.triggerRef=c.createRef(),Q.portalContainer=void 0,Q.attachId=void 0,Q.clickOutsideHandler=void 0,Q.touchOutsideHandler=void 0,Q.contextMenuOutsideHandler1=void 0,Q.contextMenuOutsideHandler2=void 0,Q.mouseDownTimeout=void 0,Q.focusTime=void 0,Q.preClickTime=void 0,Q.preTouchTime=void 0,Q.delayTimer=void 0,Q.hasPopupMouseDown=void 0,Q.onMouseEnter=function(ce){var Te=Q.props.mouseEnterDelay;Q.fireEvents("onMouseEnter",ce),Q.delaySetPopupVisible(!0,Te,Te?null:ce)},Q.onMouseMove=function(ce){Q.fireEvents("onMouseMove",ce),Q.setPoint(ce)},Q.onMouseLeave=function(ce){Q.fireEvents("onMouseLeave",ce),Q.delaySetPopupVisible(!1,Q.props.mouseLeaveDelay)},Q.onPopupMouseEnter=function(){Q.clearDelayTimer()},Q.onPopupMouseLeave=function(ce){var Te;if(ce.relatedTarget&&!ce.relatedTarget.setTimeout&&Object(n.a)((Te=Q.popupRef.current)===null||Te===void 0?void 0:Te.getElement(),ce.relatedTarget))return;Q.delaySetPopupVisible(!1,Q.props.mouseLeaveDelay)},Q.onFocus=function(ce){Q.fireEvents("onFocus",ce),Q.clearDelayTimer(),Q.isFocusToShow()&&(Q.focusTime=Date.now(),Q.delaySetPopupVisible(!0,Q.props.focusDelay))},Q.onMouseDown=function(ce){Q.fireEvents("onMouseDown",ce),Q.preClickTime=Date.now()},Q.onTouchStart=function(ce){Q.fireEvents("onTouchStart",ce),Q.preTouchTime=Date.now()},Q.onBlur=function(ce){Q.fireEvents("onBlur",ce),Q.clearDelayTimer(),Q.isBlurToHide()&&Q.delaySetPopupVisible(!1,Q.props.blurDelay)},Q.onContextMenu=function(ce){ce.preventDefault(),Q.fireEvents("onContextMenu",ce),Q.setPopupVisible(!0,ce)},Q.onContextMenuClose=function(){Q.isContextMenuToShow()&&Q.close()},Q.onClick=function(ce){if(Q.fireEvents("onClick",ce),Q.focusTime){var Te;if(Q.preClickTime&&Q.preTouchTime?Te=Math.min(Q.preClickTime,Q.preTouchTime):Q.preClickTime?Te=Q.preClickTime:Q.preTouchTime&&(Te=Q.preTouchTime),Math.abs(Te-Q.focusTime)<20)return;Q.focusTime=0}Q.preClickTime=0,Q.preTouchTime=0,Q.isClickToShow()&&(Q.isClickToHide()||Q.isBlurToHide())&&ce&&ce.preventDefault&&ce.preventDefault();var Se=!Q.state.popupVisible;(Q.isClickToHide()&&!Se||Se&&Q.isClickToShow())&&Q.setPopupVisible(!Q.state.popupVisible,ce)},Q.onPopupMouseDown=function(){if(Q.hasPopupMouseDown=!0,clearTimeout(Q.mouseDownTimeout),Q.mouseDownTimeout=window.setTimeout(function(){Q.hasPopupMouseDown=!1},0),Q.context){var ce;(ce=Q.context).onPopupMouseDown.apply(ce,arguments)}},Q.onDocumentClick=function(ce){if(Q.props.mask&&!Q.props.maskClosable)return;var Te=ce.target,Se=Q.getRootDomNode(),le=Q.getPopupDomNode();(!Object(n.a)(Se,Te)||Q.isContextMenuOnly())&&!Object(n.a)(le,Te)&&!Q.hasPopupMouseDown&&Q.close()},Q.getRootDomNode=function(){var ce=Q.props.getTriggerDOMNode;if(ce)return ce(Q.triggerRef.current);try{var Te=Object(e.a)(Q.triggerRef.current);if(Te)return Te}catch(Se){}return r.a.findDOMNode(Object(b.a)(Q))},Q.getPopupClassNameFromAlign=function(ce){var Te=[],Se=Q.props,le=Se.popupPlacement,fe=Se.builtinPlacements,Ee=Se.prefixCls,Ve=Se.alignPoint,vt=Se.getPopupClassNameFromAlign;return le&&fe&&Te.push(m(fe,Ee,ce,Ve)),vt&&Te.push(vt(ce)),Te.join(" ")},Q.getComponent=function(){var ce=Q.props,Te=ce.prefixCls,Se=ce.destroyPopupOnHide,le=ce.popupClassName,fe=ce.onPopupAlign,Ee=ce.popupMotion,Ve=ce.popupAnimation,vt=ce.popupTransitionName,et=ce.popupStyle,Oe=ce.mask,Tt=ce.maskAnimation,Je=ce.maskTransitionName,St=ce.maskMotion,Mt=ce.zIndex,er=ce.popup,It=ce.stretch,_t=ce.alignPoint,Xe=ce.mobile,ie=ce.forceRender,X=ce.onPopupClick,Be=Q.state,Ce=Be.popupVisible,Z=Be.point,nt=Q.getPopupAlign(),ct={};return Q.isMouseEnterToShow()&&(ct.onMouseEnter=Q.onPopupMouseEnter),Q.isMouseLeaveToHide()&&(ct.onMouseLeave=Q.onPopupMouseLeave),ct.onMouseDown=Q.onPopupMouseDown,ct.onTouchStart=Q.onPopupMouseDown,c.createElement(q,Object(x.a)({prefixCls:Te,destroyPopupOnHide:Se,visible:Ce,point:_t&&Z,className:le,align:nt,onAlign:fe,animation:Ve,getClassNameFromAlign:Q.getPopupClassNameFromAlign},ct,{stretch:It,getRootDomNode:Q.getRootDomNode,style:et,mask:Oe,zIndex:Mt,transitionName:vt,maskAnimation:Tt,maskTransitionName:Je,maskMotion:St,ref:Q.popupRef,motion:Ee,mobile:Xe,forceRender:ie,onClick:X}),typeof er=="function"?er():er)},Q.attachParent=function(ce){i.a.cancel(Q.attachId);var Te=Q.props,Se=Te.getPopupContainer,le=Te.getDocument,fe=Q.getRootDomNode(),Ee;Se?(fe||Se.length===0)&&(Ee=Se(fe)):Ee=le(Q.getRootDomNode()).body,Ee?Ee.appendChild(ce):Q.attachId=Object(i.a)(function(){Q.attachParent(ce)})},Q.getContainer=function(){if(!Q.portalContainer){var ce=Q.props.getDocument,Te=ce(Q.getRootDomNode()).createElement("div");Te.style.position="absolute",Te.style.top="0",Te.style.left="0",Te.style.width="100%",Q.portalContainer=Te}return Q.attachParent(Q.portalContainer),Q.portalContainer},Q.setPoint=function(ce){var Te=Q.props.alignPoint;if(!Te||!ce)return;Q.setState({point:{pageX:ce.pageX,pageY:ce.pageY}})},Q.handlePortalUpdate=function(){Q.state.prevPopupVisible!==Q.state.popupVisible&&Q.props.afterPopupVisibleChange(Q.state.popupVisible)},Q.triggerContextValue={onPopupMouseDown:Q.onPopupMouseDown};var ye;return"popupVisible"in G?ye=!!G.popupVisible:ye=!!G.defaultPopupVisible,Q.state={prevPopupVisible:ye,popupVisible:ye},He.forEach(function(ce){Q["fire".concat(ce)]=function(Te){Q.fireEvents(ce,Te)}}),Q}return Object(A.a)(Y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Q=this.props,ye=this.state;if(ye.popupVisible){var ce;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(ce=Q.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(t.a)(ce,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(ce=ce||Q.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(t.a)(ce,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(ce=ce||Q.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(t.a)(ce,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(t.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),i.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var Q;return((Q=this.popupRef.current)===null||Q===void 0?void 0:Q.getElement())||null}},{key:"getPopupAlign",value:function(){var Q=this.props,ye=Q.popupPlacement,ce=Q.popupAlign,Te=Q.builtinPlacements;return ye&&Te?p(Te,ye,ce):ce}},{key:"setPopupVisible",value:function(Q,ye){var ce=this.props.alignPoint,Te=this.state.popupVisible;this.clearDelayTimer(),Te!==Q&&("popupVisible"in this.props||this.setState({popupVisible:Q,prevPopupVisible:Te}),this.props.onPopupVisibleChange(Q)),ce&&ye&&Q&&this.setPoint(ye)}},{key:"delaySetPopupVisible",value:function(Q,ye,ce){var Te=this,Se=ye*1e3;if(this.clearDelayTimer(),Se){var le=ce?{pageX:ce.pageX,pageY:ce.pageY}:null;this.delayTimer=window.setTimeout(function(){Te.setPopupVisible(Q,le),Te.clearDelayTimer()},Se)}else this.setPopupVisible(Q,ce)}},{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(Q){var ye=this.props.children.props,ce=this.props;return ye[Q]&&ce[Q]?this["fire".concat(Q)]:ye[Q]||ce[Q]}},{key:"isClickToShow",value:function(){var Q=this.props,ye=Q.action,ce=Q.showAction;return ye.indexOf("click")!==-1||ce.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var Q=this.props.action;return Q==="contextMenu"||Q.length===1&&Q[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var Q=this.props,ye=Q.action,ce=Q.showAction;return ye.indexOf("contextMenu")!==-1||ce.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Q=this.props,ye=Q.action,ce=Q.hideAction;return ye.indexOf("click")!==-1||ce.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Q=this.props,ye=Q.action,ce=Q.showAction;return ye.indexOf("hover")!==-1||ce.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Q=this.props,ye=Q.action,ce=Q.hideAction;return ye.indexOf("hover")!==-1||ce.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Q=this.props,ye=Q.action,ce=Q.showAction;return ye.indexOf("focus")!==-1||ce.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Q=this.props,ye=Q.action,ce=Q.hideAction;return ye.indexOf("focus")!==-1||ce.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var Q;(Q=this.popupRef.current)===null||Q===void 0||Q.forceAlign()}}},{key:"fireEvents",value:function(Q,ye){var ce=this.props.children.props[Q];ce&&ce(ye);var Te=this.props[Q];Te&&Te(ye)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Q=this.state.popupVisible,ye=this.props,ce=ye.children,Te=ye.forceRender,Se=ye.alignPoint,le=ye.className,fe=ye.autoDestroy,Ee=c.Children.only(ce),Ve={key:"trigger"};this.isContextMenuToShow()?Ve.onContextMenu=this.onContextMenu:Ve.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Ve.onClick=this.onClick,Ve.onMouseDown=this.onMouseDown,Ve.onTouchStart=this.onTouchStart):(Ve.onClick=this.createTwoChains("onClick"),Ve.onMouseDown=this.createTwoChains("onMouseDown"),Ve.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Ve.onMouseEnter=this.onMouseEnter,Se&&(Ve.onMouseMove=this.onMouseMove)):Ve.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Ve.onMouseLeave=this.onMouseLeave:Ve.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Ve.onFocus=this.onFocus,Ve.onBlur=this.onBlur):(Ve.onFocus=this.createTwoChains("onFocus"),Ve.onBlur=this.createTwoChains("onBlur"));var vt=u()(Ee&&Ee.props&&Ee.props.className,le);vt&&(Ve.className=vt);var et=Object(O.a)({},Ve);Object(l.c)(Ee)&&(et.ref=Object(l.a)(this.triggerRef,Ee.ref));var Oe=c.cloneElement(Ee,et),Tt;return(Q||this.popupRef.current||Te)&&(Tt=c.createElement(se,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Q&&fe&&(Tt=null),c.createElement(ae.Provider,{value:this.triggerContextValue},Oe,Tt)}}],[{key:"getDerivedStateFromProps",value:function(Q,ye){var ce=Q.popupVisible,Te={};return ce!==void 0&&ye.popupVisible!==ce&&(Te.popupVisible=ce,Te.prevPopupVisible=ye.popupVisible),Te}}]),Y}(c.Component);return te.contextType=ae,te.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:_e,getDocument:Ie,onPopupVisibleChange:ve,afterPopupVisibleChange:ve,onPopupAlign:ve,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},te}var ke=k.a=me(a.a)},ugBc:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},ulZh:function(H,k,d){typeof window!="undefined"&&function(x,C){H.exports=C()}(this,function(){return function(O){var x={};function C(A){if(x[A])return x[A].exports;var b=x[A]={i:A,l:!1,exports:{}};return O[A].call(b.exports,b,b.exports,C),b.l=!0,b.exports}return C.m=O,C.c=x,C.d=function(A,b,g){C.o(A,b)||Object.defineProperty(A,b,{enumerable:!0,get:g})},C.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},C.t=function(A,b){if(b&1&&(A=C(A)),b&8)return A;if(b&4&&typeof A=="object"&&A&&A.__esModule)return A;var g=Object.create(null);if(C.r(g),Object.defineProperty(g,"default",{enumerable:!0,value:A}),b&2&&typeof A!="string")for(var f in A)C.d(g,f,function(c){return A[c]}.bind(null,f));return g},C.n=function(A){var b=A&&A.__esModule?function(){return A.default}:function(){return A};return C.d(b,"a",b),b},C.o=function(A,b){return Object.prototype.hasOwnProperty.call(A,b)},C.p="/dist/",C(C.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(x,C,A){"use strict";var b=Object.prototype.hasOwnProperty,g="~";function f(){}Object.create&&(f.prototype=Object.create(null),new f().__proto__||(g=!1));function c(n,e,l){this.fn=n,this.context=e,this.once=l||!1}function o(n,e,l,t,a){if(typeof l!="function")throw new TypeError("The listener must be a function");var s=new c(l,t||n,a),u=g?g+e:e;return n._events[u]?n._events[u].fn?n._events[u]=[n._events[u],s]:n._events[u].push(s):(n._events[u]=s,n._eventsCount++),n}function r(n,e){--n._eventsCount===0?n._events=new f:delete n._events[e]}function i(){this._events=new f,this._eventsCount=0}i.prototype.eventNames=function(){var e=[],l,t;if(this._eventsCount===0)return e;for(t in l=this._events)b.call(l,t)&&e.push(g?t.slice(1):t);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(l)):e},i.prototype.listeners=function(e){var l=g?g+e:e,t=this._events[l];if(!t)return[];if(t.fn)return[t.fn];for(var a=0,s=t.length,u=new Array(s);a<s;a++)u[a]=t[a].fn;return u},i.prototype.listenerCount=function(e){var l=g?g+e:e,t=this._events[l];return t?t.fn?1:t.length:0},i.prototype.emit=function(e,l,t,a,s,u){var h=g?g+e:e;if(!this._events[h])return!1;var p=this._events[h],m=arguments.length,v,y;if(p.fn){p.once&&this.removeListener(e,p.fn,void 0,!0);switch(m){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,l),!0;case 3:return p.fn.call(p.context,l,t),!0;case 4:return p.fn.call(p.context,l,t,a),!0;case 5:return p.fn.call(p.context,l,t,a,s),!0;case 6:return p.fn.call(p.context,l,t,a,s,u),!0}for(y=1,v=new Array(m-1);y<m;y++)v[y-1]=arguments[y];p.fn.apply(p.context,v)}else{var E=p.length,T;for(y=0;y<E;y++){p[y].once&&this.removeListener(e,p[y].fn,void 0,!0);switch(m){case 1:p[y].fn.call(p[y].context);break;case 2:p[y].fn.call(p[y].context,l);break;case 3:p[y].fn.call(p[y].context,l,t);break;case 4:p[y].fn.call(p[y].context,l,t,a);break;default:if(!v)for(T=1,v=new Array(m-1);T<m;T++)v[T-1]=arguments[T];p[y].fn.apply(p[y].context,v)}}}return!0},i.prototype.on=function(e,l,t){return o(this,e,l,t,!1)},i.prototype.once=function(e,l,t){return o(this,e,l,t,!0)},i.prototype.removeListener=function(e,l,t,a){var s=g?g+e:e;if(!this._events[s])return this;if(!l)return r(this,s),this;var u=this._events[s];if(u.fn)u.fn===l&&(!a||u.once)&&(!t||u.context===t)&&r(this,s);else{for(var h=0,p=[],m=u.length;h<m;h++)(u[h].fn!==l||a&&!u[h].once||t&&u[h].context!==t)&&p.push(u[h]);p.length?this._events[s]=p.length===1?p[0]:p:r(this,s)}return this},i.prototype.removeAllListeners=function(e){var l;return e?(l=g?g+e:e,this._events[l]&&r(this,l)):(this._events=new f,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=g,i.EventEmitter=i,x.exports=i},"./node_modules/url-toolkit/src/url-toolkit.js":function(x,C,A){(function(b){var g=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,f=/^([^\/?#]*)([^]*)$/,c=/(?:\/|^)\.(?=\/)/g,o=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,r={buildAbsoluteURL:function(n,e,l){if(l=l||{},n=n.trim(),e=e.trim(),!e){if(!l.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 l.alwaysNormalize?(a.path=r.normalizePath(a.path),r.buildURLFromParts(a)):e;var s=r.parseURL(n);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&s.path[0]!=="/"){var u=f.exec(s.path);s.netLoc=u[1],s.path=u[2]}s.netLoc&&!s.path&&(s.path="/");var h={scheme:s.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(h.netLoc=s.netLoc,a.path[0]!=="/"))if(!a.path)h.path=s.path,a.params||(h.params=s.params,a.query||(h.query=s.query));else{var p=s.path,m=p.substring(0,p.lastIndexOf("/")+1)+a.path;h.path=r.normalizePath(m)}return h.path===null&&(h.path=l.alwaysNormalize?r.normalizePath(a.path):a.path),r.buildURLFromParts(h)},parseURL:function(n){var e=g.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(o,"")).length;);return n.split("").reverse().join("")},buildURLFromParts:function(n){return n.scheme+n.netLoc+n.path+n.params+n.query+n.fragment}};x.exports=r})(this)},"./node_modules/webworkify-webpack/index.js":function(x,C,A){function b(e){var l={};function t(s){if(l[s])return l[s].exports;var u=l[s]={i:s,l:!1,exports:{}};return e[s].call(u.exports,u,u.exports,t),u.l=!0,u.exports}t.m=e,t.c=l,t.i=function(s){return s},t.d=function(s,u,h){t.o(s,u)||Object.defineProperty(s,u,{configurable:!1,enumerable:!0,get:h})},t.r=function(s){Object.defineProperty(s,"__esModule",{value:!0})},t.n=function(s){var u=s&&s.__esModule?function(){return s.default}:function(){return s};return t.d(u,"a",u),u},t.o=function(s,u){return Object.prototype.hasOwnProperty.call(s,u)},t.p="/",t.oe=function(s){throw console.error(s),s};var a=t(t.s=ENTRY_MODULE);return a.default||a}var g="[\\.|\\-|\\+|\\w|/|@]+",f="\\(\\s*(/\\*.*?\\*/)?\\s*.*?("+g+").*?\\)";function c(e){return(e+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function o(e){return!isNaN(1*e)}function r(e,l,t){var a={};a[t]=[];var s=l.toString(),u=s.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!u)return a;for(var h=u[1],p=new RegExp("(\\\\n|\\W)"+c(h)+f,"g"),m;m=p.exec(s);){if(m[3]==="dll-reference")continue;a[t].push(m[3])}for(p=new RegExp("\\("+c(h)+'\\("(dll-reference\\s('+g+'))"\\)\\)'+f,"g");m=p.exec(s);)e[m[2]]||(a[t].push(m[1]),e[m[2]]=A(m[1]).m),a[m[2]]=a[m[2]]||[],a[m[2]].push(m[4]);for(var v=Object.keys(a),y=0;y<v.length;y++)for(var E=0;E<a[v[y]].length;E++)o(a[v[y]][E])&&(a[v[y]][E]=1*a[v[y]][E]);return a}function i(e){var l=Object.keys(e);return l.reduce(function(t,a){return t||e[a].length>0},!1)}function n(e,l){for(var t={main:[l]},a={main:[]},s={main:{}};i(t);)for(var u=Object.keys(t),h=0;h<u.length;h++){var p=u[h],m=t[p],v=m.pop();if(s[p]=s[p]||{},s[p][v]||!e[p][v])continue;s[p][v]=!0,a[p]=a[p]||[],a[p].push(v);for(var y=r(e,e[p][v],p),E=Object.keys(y),T=0;T<E.length;T++)t[E[T]]=t[E[T]]||[],t[E[T]]=t[E[T]].concat(y[E[T]])}return a}x.exports=function(e,l){l=l||{};var t={main:A.m},a=l.all?{main:Object.keys(t.main)}:n(t,e),s="";Object.keys(a).filter(function(v){return v!=="main"}).forEach(function(v){for(var y=0;a[v][y];)y++;a[v].push(y),t[v][y]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",s=s+"var "+v+" = ("+b.toString().replace("ENTRY_MODULE",JSON.stringify(y))+")({"+a[v].map(function(E){return""+JSON.stringify(E)+": "+t[v][E].toString()}).join(",")+`});
`}),s=s+"new (("+b.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+a.main.map(function(v){return""+JSON.stringify(v)+": "+t.main[v].toString()}).join(",")+"}))(self);";var u=new window.Blob([s],{type:"text/javascript"});if(l.bare)return u;var h=window.URL||window.webkitURL||window.mozURL||window.msURL,p=h.createObjectURL(u),m=new window.Worker(p);return m.objectURL=p,m}},"./src/config.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"hlsDefaultConfig",function(){return T}),A.d(C,"mergeConfig",function(){return S}),A.d(C,"enableStreamingMode",function(){return _});var b=A("./src/controller/abr-controller.ts"),g=A("./src/controller/audio-stream-controller.ts"),f=A("./src/controller/audio-track-controller.ts"),c=A("./src/controller/subtitle-stream-controller.ts"),o=A("./src/controller/subtitle-track-controller.ts"),r=A("./src/controller/buffer-controller.ts"),i=A("./src/controller/timeline-controller.ts"),n=A("./src/controller/cap-level-controller.ts"),e=A("./src/controller/fps-controller.ts"),l=A("./src/controller/eme-controller.ts"),t=A("./src/controller/cmcd-controller.ts"),a=A("./src/utils/xhr-loader.ts"),s=A("./src/utils/fetch-loader.ts"),u=A("./src/utils/cues.ts"),h=A("./src/utils/mediakeys-helper.ts"),p=A("./src/utils/logger.ts");function m(){return m=Object.assign||function(I){for(var L=1;L<arguments.length;L++){var N=arguments[L];for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&(I[R]=N[R])}return I},m.apply(this,arguments)}function v(I,L){var N=Object.keys(I);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(I);L&&(R=R.filter(function(D){return Object.getOwnPropertyDescriptor(I,D).enumerable})),N.push.apply(N,R)}return N}function y(I){for(var L=1;L<arguments.length;L++){var N=arguments[L]!=null?arguments[L]:{};L%2?v(Object(N),!0).forEach(function(R){E(I,R,N[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(N)):v(Object(N)).forEach(function(R){Object.defineProperty(I,R,Object.getOwnPropertyDescriptor(N,R))})}return I}function E(I,L,N){return L in I?Object.defineProperty(I,L,{value:N,enumerable:!0,configurable:!0,writable:!0}):I[L]=N,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:b.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:h.requestMediaKeySystemAccess,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0},w()),{},{subtitleStreamController:c.SubtitleStreamController,subtitleTrackController:o.default,timelineController:i.TimelineController,audioStreamController:g.default,audioTrackController:f.default,emeController:l.default,cmcdController:t.default});function w(){return{cueHandler:u.default,enableCEA708Captions:!0,enableWebVTT:!0,enableIMSC1:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function S(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 m({},I,L)}function _(I){var L=I.loader;if(L!==s.default&&L!==a.default)p.logger.log("[config]: Custom loader detected, cannot enable progressive streaming"),I.progressive=!1;else{var N=Object(s.fetchSupported)();N&&(I.loader=s.default,I.progressive=!0,I.enableSoftwareAES=!0,p.logger.log("[config]: Progressive streaming enabled, using FetchLoader"))}}},"./src/controller/abr-controller.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/polyfills/number.ts"),g=A("./src/utils/ewma-bandwidth-estimator.ts"),f=A("./src/events.ts"),c=A("./src/utils/buffer-helper.ts"),o=A("./src/errors.ts"),r=A("./src/types/loader.ts"),i=A("./src/utils/logger.ts");function n(t,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function e(t,a,s){return a&&n(t.prototype,a),s&&n(t,s),t}var l=function(){function t(s){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=s;var u=s.config;this.bwEstimator=new g.default(u.abrEwmaSlowVoD,u.abrEwmaFastVoD,u.abrEwmaDefaultEstimate),this.registerListeners()}var a=t.prototype;return a.registerListeners=function(){var u=this.hls;u.on(f.Events.FRAG_LOADING,this.onFragLoading,this),u.on(f.Events.FRAG_LOADED,this.onFragLoaded,this),u.on(f.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.on(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.on(f.Events.ERROR,this.onError,this)},a.unregisterListeners=function(){var u=this.hls;u.off(f.Events.FRAG_LOADING,this.onFragLoading,this),u.off(f.Events.FRAG_LOADED,this.onFragLoaded,this),u.off(f.Events.FRAG_BUFFERED,this.onFragBuffered,this),u.off(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),u.off(f.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,h){var p=h.frag;if(p.type===r.PlaylistLevelType.MAIN&&!this.timer){var m;this.fragCurrent=p,this.partCurrent=(m=h.part)!=null?m:null,this.timer=self.setInterval(this.onCheck,100)}},a.onLevelLoaded=function(u,h){var p=this.hls.config;h.details.live?this.bwEstimator.update(p.abrEwmaSlowLive,p.abrEwmaFastLive):this.bwEstimator.update(p.abrEwmaSlowVoD,p.abrEwmaFastVoD)},a._abandonRulesCheck=function(){var u=this.fragCurrent,h=this.partCurrent,p=this.hls,m=p.autoLevelEnabled,v=p.config,y=p.media;if(!u||!y)return;var E=h?h.stats:u.stats,T=h?h.duration:u.duration;if(E.aborted){i.logger.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),this._nextAutoLevel=-1;return}if(!m||y.paused||!y.playbackRate||!y.readyState)return;var w=performance.now()-E.loading.start,S=Math.abs(y.playbackRate);if(w<=500*T/S)return;var _=p.levels,I=p.minAutoLevel,L=_[u.level],N=E.total||Math.max(E.loaded,Math.round(T*L.maxBitrate/8)),R=Math.max(1,E.bwEstimate?E.bwEstimate/8:E.loaded*1e3/w),D=(N-E.loaded)/R,F=y.currentTime,M=(c.BufferHelper.bufferInfo(y,F,v.maxBufferHole).end-F)/S;if(M>=2*T/S||D<=M)return;var U=Number.POSITIVE_INFINITY,B;for(B=u.level-1;B>I;B--){var j=_[B].maxBitrate;if(U=T*j/(8*.8*R),U<M)break}if(U>=D)return;var W=this.bwEstimator.getEstimate();i.logger.warn("Fragment "+u.sn+(h?" part "+h.index:"")+" of level "+u.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+B+`
Current BW estimate: `+(Object(b.isFiniteNumber)(W)?(W/1024).toFixed(3):"Unknown")+` Kb/s
Estimated load time for current fragment: `+D.toFixed(3)+` s
Estimated load time for the next fragment: `+U.toFixed(3)+` s
Time to underbuffer: `+M.toFixed(3)+" s"),p.nextLoadLevel=B,this.bwEstimator.sample(w,E.loaded),this.clearTimer(),u.loader&&(this.fragCurrent=this.partCurrent=null,u.loader.abort()),p.trigger(f.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:u,part:h,stats:E})},a.onFragLoaded=function(u,h){var p=h.frag,m=h.part;if(p.type===r.PlaylistLevelType.MAIN&&Object(b.isFiniteNumber)(p.sn)){var v=m?m.stats:p.stats,y=m?m.duration:p.duration;if(this.clearTimer(),this.lastLoadedFragLevel=p.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var E=this.hls.levels[p.level],T=(E.loaded?E.loaded.bytes:0)+v.loaded,w=(E.loaded?E.loaded.duration:0)+y;E.loaded={bytes:T,duration:w},E.realBitrate=Math.round(8*T/w)}if(p.bitrateTest){var S={stats:v,frag:p,part:m,id:p.type};this.onFragBuffered(f.Events.FRAG_BUFFERED,S),p.bitrateTest=!1}}},a.onFragBuffered=function(u,h){var p=h.frag,m=h.part,v=m?m.stats:p.stats;if(v.aborted)return;if(p.type!==r.PlaylistLevelType.MAIN||p.sn==="initSegment")return;var y=v.parsing.end-v.loading.start;this.bwEstimator.sample(y,v.loaded),v.bwEstimate=this.bwEstimator.getEstimate(),p.bitrateTest?this.bitrateTestDelay=y/1e3:this.bitrateTestDelay=0},a.onError=function(u,h){switch(h.details){case o.ErrorDetails.FRAG_LOAD_ERROR:case o.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,h=this.partCurrent,p=this.hls,m=p.maxAutoLevel,v=p.config,y=p.minAutoLevel,E=p.media,T=h?h.duration:u?u.duration:0,w=E?E.currentTime:0,S=E&&E.playbackRate!==0?Math.abs(E.playbackRate):1,_=this.bwEstimator?this.bwEstimator.getEstimate():v.abrEwmaDefaultEstimate,I=(c.BufferHelper.bufferInfo(E,w,v.maxBufferHole).end-w)/S,L=this.findBestLevel(_,y,m,I,v.abrBandWidthFactor,v.abrBandWidthUpFactor);if(L>=0)return L;i.logger.trace((I?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var N=T?Math.min(T,v.maxStarvationDelay):v.maxStarvationDelay,R=v.abrBandWidthFactor,D=v.abrBandWidthUpFactor;if(!I){var F=this.bitrateTestDelay;if(F){var M=T?Math.min(T,v.maxLoadingDelay):v.maxLoadingDelay;N=M-F,i.logger.trace("bitrate test took "+Math.round(1e3*F)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*N)+" ms"),R=D=1}}return L=this.findBestLevel(_,y,m,I+N,R,D),Math.max(L,0)},a.findBestLevel=function(u,h,p,m,v,y){for(var E,T=this.fragCurrent,w=this.partCurrent,S=this.lastLoadedFragLevel,_=this.hls.levels,I=_[S],L=!!(I!=null&&(E=I.details)!==null&&E!==void 0&&E.live),N=I==null?void 0:I.codecSet,R=w?w.duration:T?T.duration:0,D=p;D>=h;D--){var F=_[D];if(!F||N&&F.codecSet!==N)continue;var M=F.details,U=(w?M==null?void 0:M.partTarget:M==null?void 0:M.averagetargetduration)||R,B=void 0;D<=S?B=v*u:B=y*u;var j=_[D].maxBitrate,W=j*U/B;if(i.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+D+"/"+Math.round(B)+"/"+j+"/"+U+"/"+m+"/"+W),B>j&&(!W||L&&!this.bitrateTestDelay||W<m))return D}return-1},e(t,[{key:"nextAutoLevel",get:function(){var u=this._nextAutoLevel,h=this.bwEstimator;if(u!==-1&&(!h||!h.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=l},"./src/controller/audio-stream-controller.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/polyfills/number.ts"),g=A("./src/controller/base-stream-controller.ts"),f=A("./src/events.ts"),c=A("./src/utils/buffer-helper.ts"),o=A("./src/controller/fragment-tracker.ts"),r=A("./src/types/level.ts"),i=A("./src/types/loader.ts"),n=A("./src/loader/fragment.ts"),e=A("./src/demux/chunk-cache.ts"),l=A("./src/demux/transmuxer-interface.ts"),t=A("./src/types/transmuxer.ts"),a=A("./src/controller/fragment-finders.ts"),s=A("./src/utils/discontinuities.ts"),u=A("./src/errors.ts"),h=A("./src/utils/logger.ts");function p(){return p=Object.assign||function(T){for(var w=1;w<arguments.length;w++){var S=arguments[w];for(var _ in S)Object.prototype.hasOwnProperty.call(S,_)&&(T[_]=S[_])}return T},p.apply(this,arguments)}function m(T,w){T.prototype=Object.create(w.prototype),T.prototype.constructor=T,v(T,w)}function v(T,w){return v=Object.setPrototypeOf||function(_,I){return _.__proto__=I,_},v(T,w)}var y=100,E=function(T){m(w,T);function w(_,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 S=w.prototype;return S.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},S._registerListeners=function(){var I=this.hls;I.on(f.Events.MEDIA_ATTACHED,this.onMediaAttached,this),I.on(f.Events.MEDIA_DETACHING,this.onMediaDetaching,this),I.on(f.Events.MANIFEST_LOADING,this.onManifestLoading,this),I.on(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),I.on(f.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),I.on(f.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),I.on(f.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),I.on(f.Events.ERROR,this.onError,this),I.on(f.Events.BUFFER_RESET,this.onBufferReset,this),I.on(f.Events.BUFFER_CREATED,this.onBufferCreated,this),I.on(f.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),I.on(f.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),I.on(f.Events.FRAG_BUFFERED,this.onFragBuffered,this)},S._unregisterListeners=function(){var I=this.hls;I.off(f.Events.MEDIA_ATTACHED,this.onMediaAttached,this),I.off(f.Events.MEDIA_DETACHING,this.onMediaDetaching,this),I.off(f.Events.MANIFEST_LOADING,this.onManifestLoading,this),I.off(f.Events.LEVEL_LOADED,this.onLevelLoaded,this),I.off(f.Events.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),I.off(f.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),I.off(f.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),I.off(f.Events.ERROR,this.onError,this),I.off(f.Events.BUFFER_RESET,this.onBufferReset,this),I.off(f.Events.BUFFER_CREATED,this.onBufferCreated,this),I.off(f.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),I.off(f.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),I.off(f.Events.FRAG_BUFFERED,this.onFragBuffered,this)},S.onInitPtsFound=function(I,L){var N=L.frag,R=L.id,D=L.initPTS;if(R==="main"){var F=N.cc;this.initPTS[N.cc]=D,this.log("InitPTS for cc: "+F+" found from main: "+D),this.videoTrackCC=F,this.state===g.State.WAITING_INIT_PTS&&this.tick()}},S.startLoad=function(I){if(!this.levels){this.startPosition=I,this.state=g.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=g.State.IDLE):(this.loadedmetadata=!1,this.state=g.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=I,this.tick()},S.doTick=function(){switch(this.state){case g.State.IDLE:this.doTickIdle();break;case g.State.WAITING_TRACK:{var I,L=this.levels,N=this.trackId,R=L==null||((I=L[N])===null||I===void 0)?void 0:I.details;if(R){if(this.waitForCdnTuneIn(R))break;this.state=g.State.WAITING_INIT_PTS}break}case g.State.FRAG_LOADING_WAITING_RETRY:{var D,F=performance.now(),M=this.retryDate;(!M||F>=M||(D=this.media)!==null&&D!==void 0&&D.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=g.State.IDLE);break}case g.State.WAITING_INIT_PTS:{var U=this.waitingData;if(U){var B=U.frag,j=U.part,W=U.cache,V=U.complete;if(this.initPTS[B.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=g.State.FRAG_LOADING;var z=W.flush(),J={frag:B,part:j,payload:z,networkDetails:null};this._handleFragmentLoadProgress(J),V&&T.prototype._handleFragmentLoadComplete.call(this,J)}else if(this.videoTrackCC!==this.waitingVideoCC)h.logger.log("Waiting fragment cc ("+B.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var q=this.getLoadPosition(),de=c.BufferHelper.bufferInfo(this.mediaBuffer,q,this.config.maxBufferHole),ae=Object(a.fragmentWithinToleranceTest)(de.end,this.config.maxFragLookUpTolerance,B);ae<0&&(h.logger.log("Waiting fragment cc ("+B.cc+") @ "+B.start+" cancelled because another fragment at "+de.end+" is needed"),this.clearWaitingFragment())}}else this.state=g.State.IDLE}}this.onTickEnd()},S.clearWaitingFragment=function(){var I=this.waitingData;I&&(this.fragmentTracker.removeFragment(I.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=g.State.IDLE)},S.onTickEnd=function(){var I=this.media;if(!I||!I.readyState)return;var L=this.mediaBuffer?this.mediaBuffer:I,N=L.buffered;!this.loadedmetadata&&N.length&&(this.loadedmetadata=!0),this.lastCurrentTime=I.currentTime},S.doTickIdle=function(){var I,L,N=this.hls,R=this.levels,D=this.media,F=this.trackId,M=N.config;if(!R||!R[F])return;if(!D&&(this.startFragRequested||!M.startFragPrefetch))return;var U=R[F],B=U.details;if(!B||B.live&&this.levelLastLoaded!==F||this.waitForCdnTuneIn(B)){this.state=g.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,n.ElementaryStreamTypes.AUDIO,i.PlaylistLevelType.AUDIO));var j=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,i.PlaylistLevelType.AUDIO);if(j===null)return;var W=j.len,V=this.getMaxBufferLength(),z=this.audioSwitch;if(W>=V&&!z)return;if(!z&&this._streamEnded(j,B)){N.trigger(f.Events.BUFFER_EOS,{type:"audio"}),this.state=g.State.ENDED;return}var J=B.fragments,q=J[0].start,de=j.end;if(z){var ae=this.getLoadPosition();de=ae,B.PTSKnown&&ae<q&&((j.end>q||j.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),D.currentTime=q+.05))}var ve=this.getNextFragment(de,B);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,B):this.loadFragment(ve,B,de)},S.getMaxBufferLength=function(){var I=T.prototype.getMaxBufferLength.call(this),L=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,i.PlaylistLevelType.MAIN);return L===null?I:Math.max(I,L.len)},S.onMediaDetaching=function(){this.videoBuffer=null,T.prototype.onMediaDetaching.call(this)},S.onAudioTracksUpdated=function(I,L){var N=L.audioTracks;this.resetTransmuxer(),this.levels=N.map(function(R){return new r.Level(R)})},S.onAudioTrackSwitching=function(I,L){var N=!!L.url;this.trackId=L.id;var R=this.fragCurrent;R!=null&&R.loader&&R.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),N?this.setInterval(y):this.resetTransmuxer(),N?(this.audioSwitch=!0,this.state=g.State.IDLE):this.state=g.State.STOPPED,this.tick()},S.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},S.onLevelLoaded=function(I,L){this.mainDetails=L.details},S.onAudioTrackLoaded=function(I,L){var N,R=this.levels,D=L.details,F=L.id;if(!R){this.warn("Audio tracks were reset while loading level "+F);return}this.log("Track "+F+" loaded ["+D.startSN+","+D.endSN+"],duration:"+D.totalduration);var M=R[F],U=0;if(D.live||(N=M.details)!==null&&N!==void 0&&N.live){var B=this.mainDetails;if(D.fragments[0]||(D.deltaUpdateFailed=!0),D.deltaUpdateFailed||!B)return;!M.details&&D.hasProgramDateTime&&B.hasProgramDateTime?(Object(s.alignMediaPlaylistByPDT)(D,B),U=D.fragments[0].start):U=this.alignPlaylists(D,M.details)}M.details=D,this.levelLastLoaded=F,!this.startFragRequested&&(this.mainDetails||!D.live)&&this.setStartPosition(M.details,U),this.state===g.State.WAITING_TRACK&&!this.waitForCdnTuneIn(D)&&(this.state=g.State.IDLE),this.tick()},S._handleFragmentLoadProgress=function(I){var L,N=I.frag,R=I.part,D=I.payload,F=this.config,M=this.trackId,U=this.levels;if(!U){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+N.sn+" of level "+N.level+" will not be buffered");return}var B=U[M];console.assert(B,"Audio track is defined on fragment load progress");var j=B.details;console.assert(j,"Audio track details are defined on fragment load progress");var W=F.defaultAudioCodec||B.audioCodec||"mp4a.40.2",V=this.transmuxer;V||(V=this.transmuxer=new l.default(this.hls,i.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var z=this.initPTS[N.cc],J=(L=N.initSegment)===null||L===void 0?void 0:L.data;if(z!==void 0){var q=!1,de=R?R.index:-1,ae=de!==-1,ve=new t.ChunkMetadata(N.level,N.sn,N.stats.chunkCount,D.byteLength,de,ae);V.push(D,J,W,"",N,R,j.totalduration,q,ve,z)}else{h.logger.log("Unknown video PTS for cc "+N.cc+", waiting for video PTS before demuxing audio frag "+N.sn+" of ["+j.startSN+" ,"+j.endSN+"],track "+M);var _e=this.waitingData=this.waitingData||{frag:N,part:R,cache:new e.default,complete:!1},Ie=_e.cache;Ie.push(new Uint8Array(D)),this.waitingVideoCC=this.videoTrackCC,this.state=g.State.WAITING_INIT_PTS}},S._handleFragmentLoadComplete=function(I){if(this.waitingData){this.waitingData.complete=!0;return}T.prototype._handleFragmentLoadComplete.call(this,I)},S.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},S.onBufferCreated=function(I,L){var N=L.tracks.audio;N&&(this.mediaBuffer=N.buffer),L.tracks.video&&(this.videoBuffer=L.tracks.video.buffer)},S.onFragBuffered=function(I,L){var N=L.frag,R=L.part;if(N.type!==i.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(N)){this.warn("Fragment "+N.sn+(R?" p: "+R.index:"")+" of level "+N.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}N.sn!=="initSegment"&&(this.fragPrevious=N,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(f.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(N,R)},S.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(i.PlaylistLevelType.AUDIO,L);break;case u.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case u.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==g.State.ERROR&&this.state!==g.State.STOPPED&&(this.state=L.fatal?g.State.ERROR:g.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===g.State.PARSING||this.state===g.State.PARSED)){var N=!0,R=this.getFwdBufferInfo(this.mediaBuffer,i.PlaylistLevelType.AUDIO);R&&R.len>.5&&(N=!this.reduceMaxBufferLength(R.len)),N&&(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}},S.onBufferFlushed=function(I,L){var N=L.type;N===n.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},S._handleTransmuxComplete=function(I){var L,N="audio",R=this.hls,D=I.remuxResult,F=I.chunkMeta,M=this.getCurrentContext(F);if(!M){this.warn("The loading context changed while buffering fragment "+F.sn+" of level "+F.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(F.level);return}var U=M.frag,B=M.part,j=D.audio,W=D.text,V=D.id3,z=D.initSegment;if(this.fragContextChanged(U))return;if(this.state=g.State.PARSING,this.audioSwitch&&j&&this.completeAudioSwitch(),z!=null&&z.tracks&&(this._bufferInitSegment(z.tracks,U,F),R.trigger(f.Events.FRAG_PARSING_INIT_SEGMENT,{frag:U,id:N,tracks:z.tracks})),j){var J=j.startPTS,q=j.endPTS,de=j.startDTS,ae=j.endDTS;B&&(B.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:J,endPTS:q,startDTS:de,endDTS:ae}),U.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,J,q,de,ae),this.bufferFragmentData(j,U,B,F)}if(V!=null&&(L=V.samples)!==null&&L!==void 0&&L.length){var ve=p({frag:U,id:N},V);R.trigger(f.Events.FRAG_PARSING_METADATA,ve)}if(W){var _e=p({frag:U,id:N},W);R.trigger(f.Events.FRAG_PARSING_USERDATA,_e)}},S._bufferInitSegment=function(I,L,N){if(this.state!==g.State.PARSING)return;I.video&&delete I.video;var R=I.audio;if(!R)return;R.levelCodec=R.codec,R.id="audio",this.log("Init audio buffer, container:"+R.container+", codecs[parsed]=["+R.codec+"]"),this.hls.trigger(f.Events.BUFFER_CODECS,I);var D=R.initSegment;if(D!=null&&D.byteLength){var F={type:"audio",frag:L,part:null,chunkMeta:N,parent:L.type,data:D};this.hls.trigger(f.Events.BUFFER_APPENDING,F)}this.tick()},S.loadFragment=function(I,L,N){var R=this.fragmentTracker.getState(I);this.fragCurrent=I,(this.audioSwitch||R===o.FragmentState.NOT_LOADED||R===o.FragmentState.PARTIAL)&&(I.sn==="initSegment"?this._loadInitSegment(I):L.live&&!Object(b.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=g.State.WAITING_INIT_PTS):(this.startFragRequested=!0,T.prototype.loadFragment.call(this,I,L,N)))},S.completeAudioSwitch=function(){var I=this.hls,L=this.media,N=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(f.Events.AUDIO_TRACK_SWITCHED,{id:N})},w}(g.default);C.default=E},"./src/controller/audio-track-controller.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/events.ts"),g=A("./src/errors.ts"),f=A("./src/controller/base-playlist-controller.ts"),c=A("./src/types/loader.ts");function o(l,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(l,s.key,s)}}function r(l,t,a){return t&&o(l.prototype,t),a&&o(l,a),l}function i(l,t){l.prototype=Object.create(t.prototype),l.prototype.constructor=l,n(l,t)}function n(l,t){return n=Object.setPrototypeOf||function(s,u){return s.__proto__=u,s},n(l,t)}var e=function(l){i(t,l);function t(s){var u;return u=l.call(this,s,"[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(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),u.on(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),u.on(b.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.on(b.Events.ERROR,this.onError,this)},a.unregisterListeners=function(){var u=this.hls;u.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),u.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),u.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),u.off(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),u.off(b.Events.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),u.off(b.Events.ERROR,this.onError,this)},a.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,l.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,h){this.tracks=h.audioTracks||[]},a.onAudioTrackLoaded=function(u,h){var p=h.id,m=h.details,v=this.tracksInGroup[p];if(!v){this.warn("Invalid audio track id "+p);return}var y=v.details;v.details=h.details,this.log("audioTrack "+p+" loaded ["+m.startSN+"-"+m.endSN+"]"),p===this.trackId&&(this.retryCount=0,this.playlistLoaded(p,h,y))},a.onLevelLoading=function(u,h){this.switchLevel(h.level)},a.onLevelSwitching=function(u,h){this.switchLevel(h.level)},a.switchLevel=function(u){var h=this.hls.levels[u];if(!(h!=null&&h.audioGroupIds))return;var p=h.audioGroupIds[h.urlId];if(this.groupId!==p){this.groupId=p;var m=this.tracks.filter(function(y){return!p||y.groupId===p});this.selectDefaultTrack&&!m.some(function(y){return y.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=m;var v={audioTracks:m};this.log("Updating audio tracks, "+m.length+' track(s) found in "'+p+'" group-id'),this.hls.trigger(b.Events.AUDIO_TRACKS_UPDATED,v),this.selectInitialTrack()}},a.onError=function(u,h){if(l.prototype.onError.call(this,u,h),h.fatal||!h.context)return;h.context.type===c.PlaylistContextType.AUDIO_TRACK&&h.context.id===this.trackId&&h.context.groupId===this.groupId&&this.retryLoadingOrFail(h)},a.setAudioTrack=function(u){var h=this.tracksInGroup;if(u<0||u>=h.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var p=h[this.trackId];this.log("Now switching to audio-track index "+u);var m=h[u],v=m.id,y=m.groupId,E=y===void 0?"":y,T=m.name,w=m.type,S=m.url;if(this.trackId=u,this.trackName=T,this.selectDefaultTrack=!1,this.hls.trigger(b.Events.AUDIO_TRACK_SWITCHING,{id:v,groupId:E,name:T,type:w,url:S}),m.details&&!m.details.live)return;var _=this.switchParams(m.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 h=this.trackName,p=this.findTrackId(h)||this.findTrackId();p!==-1?this.setAudioTrack(p):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},a.findTrackId=function(u){for(var h=this.tracksInGroup,p=0;p<h.length;p++){var m=h[p];if((!this.selectDefaultTrack||m.default)&&(!u||u===m.name))return m.id}return-1},a.loadPlaylist=function(u){var h=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(h)){var p=h.id,m=h.groupId,v=h.url;if(u)try{v=u.addDirectives(v)}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(b.Events.AUDIO_TRACK_LOADING,{url:v,id:p,groupId:m,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}(f.default);C.default=e},"./src/controller/base-playlist-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return r});var b=A("./src/polyfills/number.ts"),g=A("./src/types/level.ts"),f=A("./src/controller/level-helper.ts"),c=A("./src/utils/logger.ts"),o=A("./src/errors.ts"),r=function(){function i(e,l){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,l+":"),this.warn=c.logger.warn.bind(c.logger,l+":"),this.hls=e}var n=i.prototype;return n.destroy=function(){this.clearTimer(),this.hls=this.log=this.warn=null},n.onError=function(l,t){t.fatal&&t.type===o.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(l,t){var a=t==null?void 0:t.renditionReports;if(a)for(var s=0;s<a.length;s++){var u=a[s],h=""+u.URI;if(h===l.substr(-h.length)){var p=parseInt(u["LAST-MSN"]),m=parseInt(u["LAST-PART"]);if(t&&this.hls.config.lowLatencyMode){var v=Math.min(t.age-t.partTarget,t.targetduration);m!==void 0&&v>t.partTarget&&(m+=1)}if(Object(b.isFiniteNumber)(p))return new g.HlsUrlParameters(p,Object(b.isFiniteNumber)(m)?m:void 0,g.HlsSkip.No)}}},n.loadPlaylist=function(l){},n.shouldLoadTrack=function(l){return this.canLoad&&l&&!!l.url&&(!l.details||l.details.live)},n.playlistLoaded=function(l,t,a){var s=this,u=t.details,h=t.stats,p=h.loading.end?Math.max(0,self.performance.now()-h.loading.end):0;if(u.advancedDateTime=Date.now()-p,u.live||a!=null&&a.live){if(u.reloaded(a),a&&this.log("live playlist "+l+" "+(u.advanced?"REFRESHED "+u.lastPartSn+"-"+u.lastPartIndex:"MISSED")),a&&u.fragments.length>0&&Object(f.mergeDetails)(a,u),!this.canLoad||!u.live)return;var m,v=void 0,y=void 0;if(u.canBlockReload&&u.endSN&&u.advanced){var E=this.hls.config.lowLatencyMode,T=u.lastPartSn,w=u.endSN,S=u.lastPartIndex,_=S!==-1,I=T===w,L=E?0:S;_?(v=I?w+1:T,y=I?L:S+1):v=w+1;var N=u.age,R=N+u.ageHeader,D=Math.min(R-u.partTarget,u.targetduration*1.5);if(D>0){if(a&&D>a.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+a.tuneInGoal+" to: "+D+" with playlist age: "+u.age),D=0;else{var F=Math.floor(D/u.targetduration);if(v+=F,y!==void 0){var M=Math.round(D%u.targetduration/u.partTarget);y+=M}this.log("CDN Tune-in age: "+u.ageHeader+"s last advanced "+N.toFixed(2)+"s goal: "+D+" skip sn "+F+" to part "+y)}u.tuneInGoal=D}if(m=this.getDeliveryDirectives(u,t.deliveryDirectives,v,y),E||!I){this.loadPlaylist(m);return}}else m=this.getDeliveryDirectives(u,t.deliveryDirectives,v,y);var U=Object(f.computeReloadInterval)(u,h);v!==void 0&&u.canBlockReload&&(U-=u.partTarget||1),this.log("reload live playlist "+l+" in "+Math.round(U)+" ms"),this.timer=self.setTimeout(function(){return s.loadPlaylist(m)},U)}else this.clearTimer()},n.getDeliveryDirectives=function(l,t,a,s){var u=Object(g.getSkipValue)(l,a);return t!=null&&t.skip&&l.deltaUpdateFailed&&(a=t.msn,s=t.part,u=g.HlsSkip.No),new g.HlsUrlParameters(a,s,u)},n.retryLoadingOrFail=function(l){var t=this,a=this.hls.config,s=this.retryCount<a.levelLoadingMaxRetry;if(s){var u;if(this.retryCount++,l.details.indexOf("LoadTimeOut")>-1&&(u=l.context)!==null&&u!==void 0&&u.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+l.details+'"'),this.loadPlaylist();else{var h=Math.min(Math.pow(2,this.retryCount)*a.levelLoadingRetryDelay,a.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return t.loadPlaylist()},h),this.warn("retry playlist loading #"+this.retryCount+" in "+h+' ms after "'+l.details+'"')}}else this.warn('cannot recover from error "'+l.details+'"'),this.clearTimer(),l.fatal=!0;return s},i}()},"./src/controller/base-stream-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"State",function(){return w}),A.d(C,"default",function(){return S});var b=A("./src/polyfills/number.ts"),g=A("./src/task-loop.ts"),f=A("./src/controller/fragment-tracker.ts"),c=A("./src/utils/buffer-helper.ts"),o=A("./src/utils/logger.ts"),r=A("./src/events.ts"),i=A("./src/errors.ts"),n=A("./src/types/transmuxer.ts"),e=A("./src/utils/mp4-tools.ts"),l=A("./src/utils/discontinuities.ts"),t=A("./src/controller/fragment-finders.ts"),a=A("./src/controller/level-helper.ts"),s=A("./src/loader/fragment-loader.ts"),u=A("./src/crypt/decrypter.ts"),h=A("./src/utils/time-ranges.ts"),p=A("./src/types/loader.ts");function m(_,I){for(var L=0;L<I.length;L++){var N=I[L];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(_,N.key,N)}}function v(_,I,L){return I&&m(_.prototype,I),L&&m(_,L),_}function y(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function E(_,I){_.prototype=Object.create(I.prototype),_.prototype.constructor=_,T(_,I)}function T(_,I){return T=Object.setPrototypeOf||function(N,R){return N.__proto__=R,N},T(_,I)}var w={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",BACKTRACKING:"BACKTRACKING",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"},S=function(_){E(I,_);function I(N,R,D){var F;return F=_.call(this)||this,F.hls=void 0,F.fragPrevious=null,F.fragCurrent=null,F.fragmentTracker=void 0,F.transmuxer=null,F._state=w.STOPPED,F.media=void 0,F.mediaBuffer=void 0,F.config=void 0,F.bitrateTest=!1,F.lastCurrentTime=0,F.nextLoadPosition=0,F.startPosition=0,F.loadedmetadata=!1,F.fragLoadError=0,F.retryDate=0,F.levels=null,F.fragmentLoader=void 0,F.levelLastLoaded=null,F.startFragRequested=!1,F.decrypter=void 0,F.initPTS=[],F.onvseeking=null,F.onvended=null,F.logPrefix="",F.log=void 0,F.warn=void 0,F.logPrefix=D,F.log=o.logger.log.bind(o.logger,D+":"),F.warn=o.logger.warn.bind(o.logger,D+":"),F.hls=N,F.fragmentLoader=new s.default(N.config),F.fragmentTracker=R,F.config=N.config,F.decrypter=new u.default(N,N.config),N.on(r.Events.KEY_LOADED,F.onKeyLoaded,y(F)),F}var L=I.prototype;return L.doTick=function(){this.onTickEnd()},L.onTickEnd=function(){},L.startLoad=function(R){},L.stopLoad=function(){this.fragmentLoader.abort();var R=this.fragCurrent;R&&this.fragmentTracker.removeFragment(R),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=w.STOPPED},L._streamEnded=function(R,D){var F=this.fragCurrent,M=this.fragmentTracker;if(!D.live&&F&&F.sn>=D.endSN&&!R.nextStart){var U=D.partList;if(U!=null&&U.length){var B=U[U.length-1],j=c.BufferHelper.isBuffered(this.media,B.start+B.duration/2);return j}var W=M.getState(F);return W===f.FragmentState.PARTIAL||W===f.FragmentState.OK}return!1},L.onMediaAttached=function(R,D){var F=this.media=this.mediaBuffer=D.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),F.addEventListener("seeking",this.onvseeking),F.addEventListener("ended",this.onvended);var M=this.config;this.levels&&M.autoStartLoad&&this.state===w.STOPPED&&this.startLoad(M.startPosition)},L.onMediaDetaching=function(){var R=this.media;R!=null&&R.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),R&&(R.removeEventListener("seeking",this.onvseeking),R.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 R=this.config,D=this.fragCurrent,F=this.media,M=this.mediaBuffer,U=this.state,B=F?F.currentTime:0,j=c.BufferHelper.bufferInfo(M||F,B,R.maxBufferHole);if(this.log("media seeking to "+(Object(b.isFiniteNumber)(B)?B.toFixed(3):B)+", state: "+U),U===w.ENDED)this.resetLoadingState();else if(D&&!j.len){var W=R.maxFragLookUpTolerance,V=D.start-W,z=D.start+D.duration+W,J=B>z;(B<V||J)&&(J&&D.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),D.loader.abort()),this.resetLoadingState())}F&&(this.lastCurrentTime=B),!this.loadedmetadata&&!j.len&&(this.nextLoadPosition=this.startPosition=B),this.tickImmediate()},L.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},L.onKeyLoaded=function(R,D){if(this.state!==w.KEY_LOADING||D.frag!==this.fragCurrent||!this.levels)return;this.state=w.IDLE;var F=this.levels[D.frag.level].details;F&&this.loadFragment(D.frag,F,D.frag.start)},L.onHandlerDestroying=function(){this.stopLoad(),_.prototype.onHandlerDestroying.call(this)},L.onHandlerDestroyed=function(){this.state=w.STOPPED,this.hls.off(r.Events.KEY_LOADED,this.onKeyLoaded,this),this.fragmentLoader&&this.fragmentLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.fragmentLoader=this.fragmentTracker=null,_.prototype.onHandlerDestroyed.call(this)},L.loadKey=function(R,D){this.log("Loading key for "+R.sn+" of ["+D.startSN+"-"+D.endSN+"], "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+R.level),this.state=w.KEY_LOADING,this.fragCurrent=R,this.hls.trigger(r.Events.KEY_LOADING,{frag:R})},L.loadFragment=function(R,D,F){this._loadFragForPlayback(R,D,F)},L._loadFragForPlayback=function(R,D,F){var M=this,U=function(j){if(M.fragContextChanged(R)){M.warn("Fragment "+R.sn+(j.part?" p: "+j.part.index:"")+" of level "+R.level+" was dropped during download."),M.fragmentTracker.removeFragment(R);return}R.stats.chunkCount++,M._handleFragmentLoadProgress(j)};this._doFragLoad(R,D,F,U).then(function(B){if(!B)return;M.fragLoadError=0;var j=M.state;if(M.fragContextChanged(R)){(j===w.FRAG_LOADING||j===w.BACKTRACKING||!M.fragCurrent&&j===w.PARSING)&&(M.fragmentTracker.removeFragment(R),M.state=w.IDLE);return}if("payload"in B&&(M.log("Loaded fragment "+R.sn+" of level "+R.level),M.hls.trigger(r.Events.FRAG_LOADED,B),M.state===w.BACKTRACKING)){M.fragmentTracker.backtrack(R,B),M.resetFragmentLoading(R);return}M._handleFragmentLoadComplete(B)}).catch(function(B){M.warn(B),M.resetFragmentLoading(R)})},L.flushMainBuffer=function(R,D,F){if(F===void 0&&(F=null),!(R-D))return;var M={startOffset:R,endOffset:D,type:F};this.fragLoadError=0,this.hls.trigger(r.Events.BUFFER_FLUSHING,M)},L._loadInitSegment=function(R){var D=this;this._doFragLoad(R).then(function(F){if(!F||D.fragContextChanged(R)||!D.levels)throw new Error("init load aborted");return F}).then(function(F){var M=D.hls,U=F.payload,B=R.decryptdata;if(U&&U.byteLength>0&&B&&B.key&&B.iv&&B.method==="AES-128"){var j=self.performance.now();return D.decrypter.webCryptoDecrypt(new Uint8Array(U),B.key.buffer,B.iv.buffer).then(function(W){var V=self.performance.now();return M.trigger(r.Events.FRAG_DECRYPTED,{frag:R,payload:W,stats:{tstart:j,tdecrypt:V}}),F.payload=W,F})}return F}).then(function(F){var M=D.fragCurrent,U=D.hls,B=D.levels;if(!B)throw new Error("init load aborted, missing levels");var j=B[R.level].details;console.assert(j,"Level details are defined when init segment is loaded");var W=R.stats;D.state=w.IDLE,D.fragLoadError=0,R.data=new Uint8Array(F.payload),W.parsing.start=W.buffering.start=self.performance.now(),W.parsing.end=W.buffering.end=self.performance.now(),F.frag===M&&U.trigger(r.Events.FRAG_BUFFERED,{stats:W,frag:M,part:null,id:R.type}),D.tick()}).catch(function(F){D.warn(F),D.resetFragmentLoading(R)})},L.fragContextChanged=function(R){var D=this.fragCurrent;return!R||!D||R.level!==D.level||R.sn!==D.sn||R.urlId!==D.urlId},L.fragBufferedComplete=function(R,D){var F=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+R.type+" sn: "+R.sn+(D?" part: "+D.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+R.level+" "+h.default.toString(c.BufferHelper.getBuffered(F))),this.state=w.IDLE,this.tick()},L._handleFragmentLoadComplete=function(R){var D=this.transmuxer;if(!D)return;var F=R.frag,M=R.part,U=R.partsLoaded,B=!U||U.length===0||U.some(function(W){return!W}),j=new n.ChunkMetadata(F.level,F.sn,F.stats.chunkCount+1,0,M?M.index:-1,!B);D.flush(j)},L._handleFragmentLoadProgress=function(R){},L._doFragLoad=function(R,D,F,M){var U=this;if(F===void 0&&(F=null),!this.levels)throw new Error("frag load aborted, missing levels");if(F=Math.max(R.start,F||0),this.config.lowLatencyMode&&D){var B=D.partList;if(B&&M){F>R.end&&D.fragmentHint&&(R=D.fragmentHint);var j=this.getNextPart(B,R,F);if(j>-1){var W=B[j];return this.log("Loading part sn: "+R.sn+" p: "+W.index+" cc: "+R.cc+" of playlist ["+D.startSN+"-"+D.endSN+"] parts [0-"+j+"-"+(B.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+R.level+", target: "+parseFloat(F.toFixed(3))),this.nextLoadPosition=W.start+W.duration,this.state=w.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:R,part:B[j],targetBufferTime:F}),this.doFragPartsLoad(R,B,j,M).catch(function(V){return U.handleFragLoadError(V)})}else if(!R.url||this.loadedEndOfParts(B,F))return Promise.resolve(null)}}return this.log("Loading fragment "+R.sn+" cc: "+R.cc+" "+(D?"of ["+D.startSN+"-"+D.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+R.level+", target: "+parseFloat(F.toFixed(3))),Object(b.isFiniteNumber)(R.sn)&&!this.bitrateTest&&(this.nextLoadPosition=R.start+R.duration),this.state=w.FRAG_LOADING,this.hls.trigger(r.Events.FRAG_LOADING,{frag:R,targetBufferTime:F}),this.fragmentLoader.load(R,M).catch(function(V){return U.handleFragLoadError(V)})},L.doFragPartsLoad=function(R,D,F,M){var U=this;return new Promise(function(B,j){var W=[],V=function z(J){var q=D[J];U.fragmentLoader.loadPart(R,q,M).then(function(de){W[q.index]=de;var ae=de.part;U.hls.trigger(r.Events.FRAG_LOADED,de);var ve=D[J+1];if(ve&&ve.fragment===R)z(J+1);else return B({frag:R,part:ae,partsLoaded:W})}).catch(j)};V(F)})},L.handleFragLoadError=function(R){var D=R.data;return D&&D.details===i.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(D.frag,D.part):this.hls.trigger(r.Events.ERROR,D),null},L._handleTransmuxerFlush=function(R){var D=this.getCurrentContext(R);if(!D||this.state!==w.PARSING){this.fragCurrent||(this.state=w.IDLE);return}var F=D.frag,M=D.part,U=D.level,B=self.performance.now();F.stats.parsing.end=B,M&&(M.stats.parsing.end=B),this.updateLevelTiming(F,M,U,R.partial)},L.getCurrentContext=function(R){var D=this.levels,F=R.level,M=R.sn,U=R.part;if(!D||!D[F])return this.warn("Levels object was unset while buffering fragment "+M+" of level "+F+". The current chunk will not be buffered."),null;var B=D[F],j=U>-1?Object(a.getPartWith)(B,M,U):null,W=j?j.fragment:Object(a.getFragmentWithSN)(B,M,this.fragCurrent);return W?{frag:W,part:j,level:B}:null},L.bufferFragmentData=function(R,D,F,M){if(!R||this.state!==w.PARSING)return;var U=R.data1,B=R.data2,j=U;if(U&&B&&(j=Object(e.appendUint8Array)(U,B)),!j||!j.length)return;var W={type:R.type,frag:D,part:F,chunkMeta:M,parent:D.type,data:j};this.hls.trigger(r.Events.BUFFER_APPENDING,W),R.dropped&&R.independent&&!F&&this.flushBufferGap(D)},L.flushBufferGap=function(R){var D=this.media;if(!D)return;if(!c.BufferHelper.isBuffered(D,D.currentTime)){this.flushMainBuffer(0,R.start);return}var F=D.currentTime,M=c.BufferHelper.bufferInfo(D,F,0),U=R.duration,B=Math.min(this.config.maxFragLookUpTolerance*2,U*.25),j=Math.max(Math.min(R.start-B,M.end-B),F+B);R.start-j>B&&this.flushMainBuffer(j,R.start)},L.getFwdBufferInfo=function(R,D){var F=this.config,M=this.getLoadPosition();if(!Object(b.isFiniteNumber)(M))return null;var U=c.BufferHelper.bufferInfo(R,M,F.maxBufferHole);if(U.len===0&&U.nextStart!==void 0){var B=this.fragmentTracker.getBufferedFrag(M,D);if(B&&U.nextStart<B.end)return c.BufferHelper.bufferInfo(R,M,Math.max(U.nextStart,F.maxBufferHole))}return U},L.getMaxBufferLength=function(R){var D=this.config,F;return R?F=Math.max(8*D.maxBufferSize/R,D.maxBufferLength):F=D.maxBufferLength,Math.min(F,D.maxMaxBufferLength)},L.reduceMaxBufferLength=function(R){var D=this.config,F=R||D.maxBufferLength;return D.maxMaxBufferLength>=F?(D.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+D.maxMaxBufferLength+"s"),!0):!1},L.getNextFragment=function(R,D){var F,M,U=D.fragments,B=U.length;if(!B)return null;var j=this.config,W=U[0].start,V;if(D.live){var z=j.initialLiveManifestSize;if(B<z)return this.warn("Not enough fragments to start playback (have: "+B+", need: "+z+")"),null;!D.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(V=this.getInitialLiveFragment(D,U),this.startPosition=V?this.hls.liveSyncPosition||V.start:R)}else R<=W&&(V=U[0]);if(!V){var J=j.lowLatencyMode?D.partEnd:D.fragmentEnd;V=this.getFragmentAtPosition(R,J,D)}return(F=V)!==null&&F!==void 0&&F.initSegment&&!((M=V)!==null&&M!==void 0&&M.initSegment.data)&&!this.bitrateTest&&(V=V.initSegment),V},L.getNextPart=function(R,D,F){for(var M=-1,U=!1,B=!0,j=0,W=R.length;j<W;j++){var V=R[j];if(B=B&&!V.independent,M>-1&&F<V.start)break;var z=V.loaded;!z&&(U||V.independent||B)&&V.fragment===D&&(M=j),U=z}return M},L.loadedEndOfParts=function(R,D){var F=R[R.length-1];return F&&D>F.start&&F.loaded},L.getInitialLiveFragment=function(R,D){var F=this.fragPrevious,M=null;if(F){if(R.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+F.programDateTime),M=Object(t.findFragmentByPDT)(D,F.endProgramDateTime,this.config.maxFragLookUpTolerance)),!M){var U=F.sn+1;if(U>=R.startSN&&U<=R.endSN){var B=D[U-R.startSN];F.cc===B.cc&&(M=B,this.log("Live playlist, switching playlist, load frag with next SN: "+M.sn))}M||(M=Object(t.findFragWithCC)(D,F.cc),M&&this.log("Live playlist, switching playlist, load frag with same CC: "+M.sn))}}else{var j=this.hls.liveSyncPosition;j!==null&&(M=this.getFragmentAtPosition(j,this.bitrateTest?R.fragmentEnd:R.edge,R))}return M},L.getFragmentAtPosition=function(R,D,F){var M=this.config,U=this.fragPrevious,B=F.fragments,j=F.endSN,W=F.fragmentHint,V=M.maxFragLookUpTolerance,z=!!(M.lowLatencyMode&&F.partList&&W);z&&W&&!this.bitrateTest&&(B=B.concat(W),j=W.sn);var J;if(R<D){var q=R>D-V?0:V;J=Object(t.findFragmentByPTS)(U,B,R,q)}else J=B[B.length-1];if(J){var de=J.sn-F.startSN,ae=U&&J.level===U.level,ve=B[de+1],_e=this.fragmentTracker.getState(J);if(_e===f.FragmentState.BACKTRACKED){J=null;for(var Ie=de;B[Ie]&&this.fragmentTracker.getState(B[Ie])===f.FragmentState.BACKTRACKED;)U?J=B[Ie--]:J=B[--Ie];J||(J=ve)}else U&&J.sn===U.sn&&!z&&(ae&&(J.sn<j&&this.fragmentTracker.getState(ve)!==f.FragmentState.OK?(this.log("SN "+J.sn+" just loaded, load next one: "+ve.sn),J=ve):J=null))}return J},L.synchronizeToLiveEdge=function(R){var D=this.config,F=this.media;if(!F)return;var M=this.hls.liveSyncPosition,U=F.currentTime,B=R.fragments[0].start,j=R.edge,W=U>=B-D.maxFragLookUpTolerance&&U<=j;if(M!==null&&F.duration>M&&(U<M||!W)){var V=D.liveMaxLatencyDuration!==void 0?D.liveMaxLatencyDuration:D.liveMaxLatencyDurationCount*R.targetduration;(!W&&F.readyState<4||U<j-V)&&(this.loadedmetadata||(this.nextLoadPosition=M),F.readyState&&(this.warn("Playback: "+U.toFixed(3)+" is located too far from the end of live sliding playlist: "+j+", reset currentTime to : "+M.toFixed(3)),F.currentTime=M))}},L.alignPlaylists=function(R,D){var F=this.levels,M=this.levelLastLoaded,U=this.fragPrevious,B=M!==null?F[M]:null,j=R.fragments.length;if(!j)return this.warn("No fragments in live playlist"),0;var W=R.fragments[0].start,V=!D,z=R.alignedSliding&&Object(b.isFiniteNumber)(W);if(V||!z&&!W){Object(l.alignStream)(U,B,R);var J=R.fragments[0].start;return this.log("Live playlist sliding: "+J.toFixed(2)+" start-sn: "+(D?D.startSN:"na")+"->"+R.startSN+" prev-sn: "+(U?U.sn:"na")+" fragments: "+j),J}return W},L.waitForCdnTuneIn=function(R){var D=3;return R.live&&R.canBlockReload&&R.tuneInGoal>Math.max(R.partHoldBack,R.partTarget*D)},L.setStartPosition=function(R,D){var F=this.startPosition;if(F<D&&(F=-1),F===-1||this.lastCurrentTime===-1){var M=R.startTimeOffset;Object(b.isFiniteNumber)(M)?(F=D+M,M<0&&(F+=R.totalduration),F=Math.min(Math.max(D,F),D+R.totalduration),this.log("Start time offset "+M+" found in playlist, adjust startPosition to "+F),this.startPosition=F):R.live?F=this.hls.liveSyncPosition||D:this.startPosition=F=0,this.lastCurrentTime=F}this.nextLoadPosition=F},L.getLoadPosition=function(){var R=this.media,D=0;return this.loadedmetadata&&R?D=R.currentTime:this.nextLoadPosition&&(D=this.nextLoadPosition),D},L.handleFragLoadAborted=function(R,D){this.transmuxer&&R.sn!=="initSegment"&&R.stats.aborted&&(this.warn("Fragment "+R.sn+(D?" part"+D.index:"")+" of level "+R.level+" was aborted"),this.resetFragmentLoading(R))},L.resetFragmentLoading=function(R){(!this.fragCurrent||!this.fragContextChanged(R))&&(this.state=w.IDLE)},L.onFragmentOrKeyLoadError=function(R,D){if(D.fatal)return;var F=D.frag;if(!F||F.type!==R)return;var M=this.fragCurrent;console.assert(M&&F.sn===M.sn&&F.level===M.level&&F.urlId===M.urlId,"Frag load error must match current frag to retry");var U=this.config;if(this.fragLoadError+1<=U.fragLoadingMaxRetry){if(this.resetLiveStartWhenNotLoaded(F.level))return;var B=Math.min(Math.pow(2,this.fragLoadError)*U.fragLoadingRetryDelay,U.fragLoadingMaxRetryTimeout);this.warn("Fragment "+F.sn+" of "+R+" "+F.level+" failed to load, retrying in "+B+"ms"),this.retryDate=self.performance.now()+B,this.fragLoadError++,this.state=w.FRAG_LOADING_WAITING_RETRY}else D.levelRetry?(R===p.PlaylistLevelType.AUDIO&&(this.fragCurrent=null),this.fragLoadError=0,this.state=w.IDLE):(o.logger.error(D.details+" reaches max retry, redispatch as fatal ..."),D.fatal=!0,this.hls.stopLoad(),this.state=w.ERROR)},L.afterBufferFlushed=function(R,D,F){if(!R)return;var M=c.BufferHelper.getBuffered(R);this.fragmentTracker.detectEvictedFragments(D,M,F),this.state===w.ENDED&&this.resetLoadingState()},L.resetLoadingState=function(){this.fragCurrent=null,this.fragPrevious=null,this.state=w.IDLE},L.resetLiveStartWhenNotLoaded=function(R){if(!this.loadedmetadata){this.startFragRequested=!1;var D=this.levels?this.levels[R].details:null;if(D!=null&&D.live)return this.startPosition=-1,this.setStartPosition(D,0),this.resetLoadingState(),!0;this.nextLoadPosition=this.startPosition}return!1},L.updateLevelTiming=function(R,D,F,M){var U=this,B=F.details;console.assert(!!B,"level.details must be defined");var j=Object.keys(R.elementaryStreams).reduce(function(W,V){var z=R.elementaryStreams[V];if(z){var J=z.endPTS-z.startPTS;if(J<=0)return U.warn("Could not parse fragment "+R.sn+" "+V+" duration reliably ("+J+") resetting transmuxer to fallback to playlist timing"),U.resetTransmuxer(),W||!1;var q=M?0:Object(a.updateFragPTSDTS)(B,R,z.startPTS,z.endPTS,z.startDTS,z.endDTS);return U.hls.trigger(r.Events.LEVEL_PTS_UPDATED,{details:B,level:F,drift:q,type:V,frag:R,start:z.startPTS,end:z.endPTS}),!0}return W},!1);j?(this.state=w.PARSED,this.hls.trigger(r.Events.FRAG_PARSED,{frag:R,part:D})):this.resetLoadingState()},L.resetTransmuxer=function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)},v(I,[{key:"state",get:function(){return this._state},set:function(R){var D=this._state;D!==R&&(this._state=R,this.log(D+"->"+R))}}]),I}(g.default)},"./src/controller/buffer-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return t});var b=A("./src/polyfills/number.ts"),g=A("./src/events.ts"),f=A("./src/utils/logger.ts"),c=A("./src/errors.ts"),o=A("./src/utils/buffer-helper.ts"),r=A("./src/utils/mediasource-helper.ts"),i=A("./src/loader/fragment.ts"),n=A("./src/controller/buffer-operation-queue.ts"),e=Object(r.getMediaSource)(),l=/([ha]vc.)(?:\.[^.,]+)+/,t=function(){function a(u){var h=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=h.hls,m=h.media,v=h.mediaSource;f.logger.log("[buffer-controller]: Media source opened"),m&&(h.updateMediaElementDuration(),p.trigger(g.Events.MEDIA_ATTACHED,{media:m})),v&&v.removeEventListener("sourceopen",h._onMediaSourceOpen),h.checkPendingTracks()},this._onMediaSourceClose=function(){f.logger.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){f.logger.log("[buffer-controller]: Media source ended")},this.hls=u,this._initSourceBuffer(),this.registerListeners()}var s=a.prototype;return s.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},s.destroy=function(){this.unregisterListeners(),this.details=null},s.registerListeners=function(){var h=this.hls;h.on(g.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.on(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(g.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(g.Events.BUFFER_RESET,this.onBufferReset,this),h.on(g.Events.BUFFER_APPENDING,this.onBufferAppending,this),h.on(g.Events.BUFFER_CODECS,this.onBufferCodecs,this),h.on(g.Events.BUFFER_EOS,this.onBufferEos,this),h.on(g.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.on(g.Events.LEVEL_UPDATED,this.onLevelUpdated,this),h.on(g.Events.FRAG_PARSED,this.onFragParsed,this),h.on(g.Events.FRAG_CHANGED,this.onFragChanged,this)},s.unregisterListeners=function(){var h=this.hls;h.off(g.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),h.off(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(g.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(g.Events.BUFFER_RESET,this.onBufferReset,this),h.off(g.Events.BUFFER_APPENDING,this.onBufferAppending,this),h.off(g.Events.BUFFER_CODECS,this.onBufferCodecs,this),h.off(g.Events.BUFFER_EOS,this.onBufferEos,this),h.off(g.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),h.off(g.Events.LEVEL_UPDATED,this.onLevelUpdated,this),h.off(g.Events.FRAG_PARSED,this.onFragParsed,this),h.off(g.Events.FRAG_CHANGED,this.onFragChanged,this)},s._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new n.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},s.onManifestParsed=function(h,p){var m=2;(p.audio&&!p.video||!p.altAudio)&&(m=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=m,this.details=null,f.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},s.onMediaAttaching=function(h,p){var m=this.media=p.media;if(m&&e){var v=this.mediaSource=new e;v.addEventListener("sourceopen",this._onMediaSourceOpen),v.addEventListener("sourceended",this._onMediaSourceEnded),v.addEventListener("sourceclose",this._onMediaSourceClose),m.src=self.URL.createObjectURL(v),this._objectUrl=m.src}},s.onMediaDetaching=function(){var h=this.media,p=this.mediaSource,m=this._objectUrl;if(p){if(f.logger.log("[buffer-controller]: media source detaching"),p.readyState==="open")try{p.endOfStream()}catch(v){f.logger.warn("[buffer-controller]: onMediaDetaching: "+v.message+" while calling endOfStream")}this.onBufferReset(),p.removeEventListener("sourceopen",this._onMediaSourceOpen),p.removeEventListener("sourceended",this._onMediaSourceEnded),p.removeEventListener("sourceclose",this._onMediaSourceClose),h&&(m&&self.URL.revokeObjectURL(m),h.src===m?(h.removeAttribute("src"),h.load()):f.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(g.Events.MEDIA_DETACHED,void 0)},s.onBufferReset=function(){var h=this;this.getSourceBufferTypes().forEach(function(p){var m=h.sourceBuffer[p];try{m&&(h.removeBufferListeners(p),h.mediaSource&&h.mediaSource.removeSourceBuffer(m),h.sourceBuffer[p]=void 0)}catch(v){f.logger.warn("[buffer-controller]: Failed to reset the "+p+" buffer",v)}}),this._initSourceBuffer()},s.onBufferCodecs=function(h,p){var m=this,v=this.getSourceBufferTypes().length;if(Object.keys(p).forEach(function(y){if(v){var E=m.tracks[y];if(E&&typeof E.buffer.changeType=="function"){var T=p[y],w=T.codec,S=T.levelCodec,_=T.container,I=(E.levelCodec||E.codec).replace(l,"$1"),L=(S||w).replace(l,"$1");if(I!==L){var N=_+";codecs="+(S||w);m.appendChangeType(y,N)}}}else m.pendingTracks[y]=p[y]}),v)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},s.appendChangeType=function(h,p){var m=this,v=this.operationQueue,y={execute:function(){var T=m.sourceBuffer[h];T&&(f.logger.log("[buffer-controller]: changing "+h+" sourceBuffer type to "+p),T.changeType(p)),v.shiftAndExecuteNext(h)},onStart:function(){},onComplete:function(){},onError:function(T){f.logger.warn("[buffer-controller]: Failed to change "+h+" SourceBuffer type",T)}};v.append(y,h)},s.onBufferAppending=function(h,p){var m=this,v=this.hls,y=this.operationQueue,E=this.tracks,T=p.data,w=p.type,S=p.frag,_=p.part,I=p.chunkMeta,L=I.buffering[w],N=self.performance.now();L.start=N;var R=S.stats.buffering,D=_?_.stats.buffering:null;R.start===0&&(R.start=N),D&&D.start===0&&(D.start=N);var F=E.audio,M=w==="audio"&&I.id===1&&(F==null?void 0:F.container)==="audio/mpeg",U={execute:function(){if(L.executeStart=self.performance.now(),M){var j=m.sourceBuffer[w];if(j){var W=S.start-j.timestampOffset;Math.abs(W)>=.1&&(f.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+S.start+" (delta: "+W+") sn: "+S.sn+")"),j.timestampOffset=S.start)}}m.appendExecutor(T,w)},onStart:function(){},onComplete:function(){var j=self.performance.now();L.executeEnd=L.end=j,R.first===0&&(R.first=j),D&&D.first===0&&(D.first=j);var W=m.sourceBuffer,V={};for(var z in W)V[z]=o.BufferHelper.getBuffered(W[z]);m.appendError=0,m.hls.trigger(g.Events.BUFFER_APPENDED,{type:w,frag:S,part:_,chunkMeta:I,parent:S.type,timeRanges:V})},onError:function(j){f.logger.error("[buffer-controller]: Error encountered while trying to append to the "+w+" SourceBuffer",j);var W={type:c.ErrorTypes.MEDIA_ERROR,parent:S.type,details:c.ErrorDetails.BUFFER_APPEND_ERROR,err:j,fatal:!1};j.code===DOMException.QUOTA_EXCEEDED_ERR?W.details=c.ErrorDetails.BUFFER_FULL_ERROR:(m.appendError++,W.details=c.ErrorDetails.BUFFER_APPEND_ERROR,m.appendError>v.config.appendErrorMaxRetry&&(f.logger.error("[buffer-controller]: Failed "+v.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),W.fatal=!0)),v.trigger(g.Events.ERROR,W)}};y.append(U,w)},s.onBufferFlushing=function(h,p){var m=this,v=this.operationQueue,y=function(T){return{execute:m.removeExecutor.bind(m,T,p.startOffset,p.endOffset),onStart:function(){},onComplete:function(){m.hls.trigger(g.Events.BUFFER_FLUSHED,{type:T})},onError:function(S){f.logger.warn("[buffer-controller]: Failed to remove from "+T+" SourceBuffer",S)}}};p.type?v.append(y(p.type),p.type):this.getSourceBufferTypes().forEach(function(E){v.append(y(E),E)})},s.onFragParsed=function(h,p){var m=this,v=p.frag,y=p.part,E=[],T=y?y.elementaryStreams:v.elementaryStreams;T[i.ElementaryStreamTypes.AUDIOVIDEO]?E.push("audiovideo"):(T[i.ElementaryStreamTypes.AUDIO]&&E.push("audio"),T[i.ElementaryStreamTypes.VIDEO]&&E.push("video"));var w=function(){var _=self.performance.now();v.stats.buffering.end=_,y&&(y.stats.buffering.end=_);var I=y?y.stats:v.stats;m.hls.trigger(g.Events.FRAG_BUFFERED,{frag:v,part:y,stats:I,id:v.type})};E.length===0&&f.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+v.type+" level: "+v.level+" sn: "+v.sn),this.blockBuffers(w,E)},s.onFragChanged=function(h,p){this.flushBackBuffer()},s.onBufferEos=function(h,p){var m=this,v=this.getSourceBufferTypes().reduce(function(y,E){var T=m.sourceBuffer[E];return(!p.type||p.type===E)&&(T&&!T.ended&&(T.ended=!0,f.logger.log("[buffer-controller]: "+E+" sourceBuffer now EOS"))),y&&!!(!T||T.ended)},!0);v&&this.blockBuffers(function(){var y=m.mediaSource;if(!y||y.readyState!=="open")return;y.endOfStream()})},s.onLevelUpdated=function(h,p){var m=p.details;if(!m.fragments.length)return;this.details=m,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},s.flushBackBuffer=function(){var h=this.hls,p=this.details,m=this.media,v=this.sourceBuffer;if(!m||p===null)return;var y=this.getSourceBufferTypes();if(!y.length)return;var E=p.live&&h.config.liveBackBufferLength!==null?h.config.liveBackBufferLength:h.config.backBufferLength;if(!Object(b.isFiniteNumber)(E)||E<0)return;var T=m.currentTime,w=p.levelTargetDuration,S=Math.max(E,w),_=Math.floor(T/w)*w-S;y.forEach(function(I){var L=v[I];if(L){var N=o.BufferHelper.getBuffered(L);N.length>0&&_>N.start(0)&&(h.trigger(g.Events.BACK_BUFFER_REACHED,{bufferEnd:_}),p.live&&h.trigger(g.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:_}),h.trigger(g.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:_,type:I}))}})},s.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var h=this.details,p=this.hls,m=this.media,v=this.mediaSource,y=h.fragments[0].start+h.totalduration,E=m.duration,T=Object(b.isFiniteNumber)(v.duration)?v.duration:0;h.live&&p.config.liveDurationInfinity?(f.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),v.duration=Infinity,this.updateSeekableRange(h)):(y>T&&y>E||!Object(b.isFiniteNumber)(E))&&(f.logger.log("[buffer-controller]: Updating Media Source duration to "+y.toFixed(3)),v.duration=y)},s.updateSeekableRange=function(h){var p=this.mediaSource,m=h.fragments,v=m.length;if(v&&h.live&&p!==null&&p!==void 0&&p.setLiveSeekableRange){var y=Math.max(0,m[0].start),E=Math.max(y,y+h.totalduration);p.setLiveSeekableRange(y,E)}},s.checkPendingTracks=function(){var h=this.bufferCodecEventsExpected,p=this.operationQueue,m=this.pendingTracks,v=Object.keys(m).length;if(v&&!h||v===2){this.createSourceBuffers(m),this.pendingTracks={};var y=this.getSourceBufferTypes();if(y.length===0){this.hls.trigger(g.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(E){p.executeNext(E)})}},s.createSourceBuffers=function(h){var p=this.sourceBuffer,m=this.mediaSource;if(!m)throw Error("createSourceBuffers called when mediaSource was null");var v=0;for(var y in h)if(!p[y]){var E=h[y];if(!E)throw Error("source buffer exists for track "+y+", however track does not");var T=E.levelCodec||E.codec,w=E.container+";codecs="+T;f.logger.log("[buffer-controller]: creating sourceBuffer("+w+")");try{var S=p[y]=m.addSourceBuffer(w),_=y;this.addBufferListener(_,"updatestart",this._onSBUpdateStart),this.addBufferListener(_,"updateend",this._onSBUpdateEnd),this.addBufferListener(_,"error",this._onSBUpdateError),this.tracks[y]={buffer:S,codec:T,container:E.container,levelCodec:E.levelCodec,id:E.id},v++}catch(I){f.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+I.message),this.hls.trigger(g.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:I,mimeType:w})}}v&&this.hls.trigger(g.Events.BUFFER_CREATED,{tracks:this.tracks})},s._onSBUpdateStart=function(h){var p=this.operationQueue,m=p.current(h);m.onStart()},s._onSBUpdateEnd=function(h){var p=this.operationQueue,m=p.current(h);m.onComplete(),p.shiftAndExecuteNext(h)},s._onSBUpdateError=function(h,p){f.logger.error("[buffer-controller]: "+h+" SourceBuffer error",p),this.hls.trigger(g.Events.ERROR,{type:c.ErrorTypes.MEDIA_ERROR,details:c.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var m=this.operationQueue.current(h);m&&m.onError(p)},s.removeExecutor=function(h,p,m){var v=this.media,y=this.mediaSource,E=this.operationQueue,T=this.sourceBuffer,w=T[h];if(!v||!y||!w){f.logger.warn("[buffer-controller]: Attempting to remove from the "+h+" SourceBuffer, but it does not exist"),E.shiftAndExecuteNext(h);return}var S=Object(b.isFiniteNumber)(v.duration)?v.duration:Infinity,_=Object(b.isFiniteNumber)(y.duration)?y.duration:Infinity,I=Math.max(0,p),L=Math.min(m,S,_);L>I?(f.logger.log("[buffer-controller]: Removing ["+I+","+L+"] from the "+h+" SourceBuffer"),console.assert(!w.updating,h+" sourceBuffer must not be updating"),w.remove(I,L)):E.shiftAndExecuteNext(h)},s.appendExecutor=function(h,p){var m=this.operationQueue,v=this.sourceBuffer,y=v[p];if(!y){f.logger.warn("[buffer-controller]: Attempting to append to the "+p+" SourceBuffer, but it does not exist"),m.shiftAndExecuteNext(p);return}y.ended=!1,console.assert(!y.updating,p+" sourceBuffer must not be updating"),y.appendBuffer(h)},s.blockBuffers=function(h,p){var m=this;if(p===void 0&&(p=this.getSourceBufferTypes()),!p.length){f.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(h);return}var v=this.operationQueue,y=p.map(function(E){return v.appendBlocker(E)});Promise.all(y).then(function(){h(),p.forEach(function(E){var T=m.sourceBuffer[E];(!T||!T.updating)&&v.shiftAndExecuteNext(E)})})},s.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},s.addBufferListener=function(h,p,m){var v=this.sourceBuffer[h];if(!v)return;var y=m.bind(this,h);this.listeners[h].push({event:p,listener:y}),v.addEventListener(p,y)},s.removeBufferListeners=function(h){var p=this.sourceBuffer[h];if(!p)return;this.listeners[h].forEach(function(m){p.removeEventListener(m.event,m.listener)})},a}()},"./src/controller/buffer-operation-queue.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return g});var b=A("./src/utils/logger.ts"),g=function(){function f(o){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=o}var c=f.prototype;return c.append=function(r,i){var n=this.queues[i];n.push(r),n.length===1&&this.buffers[i]&&this.executeNext(i)},c.insertAbort=function(r,i){var n=this.queues[i];n.unshift(r),this.executeNext(i)},c.appendBlocker=function(r){var i,n=new Promise(function(l){i=l}),e={execute:i,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(e,r),n},c.executeNext=function(r){var i=this.buffers,n=this.queues,e=i[r],l=n[r];if(l.length){var t=l[0];try{t.execute()}catch(a){b.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),t.onError(a),(!e||!e.updating)&&(l.shift(),this.executeNext(r))}}},c.shiftAndExecuteNext=function(r){this.queues[r].shift(),this.executeNext(r)},c.current=function(r){return this.queues[r][0]},f}()},"./src/controller/cap-level-controller.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/events.ts");function g(o,r){for(var i=0;i<r.length;i++){var n=r[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}function f(o,r,i){return r&&g(o.prototype,r),i&&g(o,i),o}var c=function(){function o(i){this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.hls=void 0,this.streamController=void 0,this.clientRect=void 0,this.hls=i,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}var r=o.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(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.on(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.unregisterListener=function(){var n=this.hls;n.off(b.Events.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),n.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),n.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),n.off(b.Events.BUFFER_CODECS,this.onBufferCodecs,this),n.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this)},r.onFpsDropLevelCapping=function(n,e){o.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 l=this.hls;this.restrictedLevels=[],this.firstLevel=e.firstLevel,l.config.capLevelToPlayerSize&&e.video&&this.startCapping()},r.onBufferCodecs=function(n,e){var l=this.hls;l.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,l=this.hls.levels;if(!l.length)return-1;var t=l.filter(function(a,s){return o.isLevelAllowed(s,e.restrictedLevels)&&s<=n});return this.clientRect=null,o.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 l=n.getBoundingClientRect();e.width=l.width,e.height=l.height,!e.width&&!e.height&&(e.width=l.right-l.left||n.width||0,e.height=l.bottom-l.top||n.height||0)}return this.clientRect=e,e},o.isLevelAllowed=function(n,e){return e===void 0&&(e=[]),e.indexOf(n)===-1},o.getMaxLevelByMediaSize=function(n,e,l){if(!n||!n.length)return-1;for(var t=function(p,m){return m?p.width!==m.width||p.height!==m.height:!0},a=n.length-1,s=0;s<n.length;s+=1){var u=n[s];if((u.width>=e||u.height>=l)&&t(u,n[s+1])){a=s;break}}return a},f(o,[{key:"mediaWidth",get:function(){return this.getDimensions().width*o.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*o.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var n=1;try{n=self.devicePixelRatio}catch(e){}return n}}]),o}();C.default=c},"./src/controller/cmcd-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return t});var b=A("./src/events.ts"),g=A("./src/types/cmcd.ts"),f=A("./src/utils/buffer-helper.ts"),c=A("./src/utils/logger.ts");function o(a,s){for(var u=0;u<s.length;u++){var h=s[u];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(a,h.key,h)}}function r(a,s,u){return s&&o(a.prototype,s),u&&o(a,u),a}function i(a,s){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))||s&&a&&typeof a.length=="number"){u&&(a=u);var h=0;return function(){return h>=a.length?{done:!0}:{done:!1,value:a[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.`)}function n(a,s){if(!a)return;if(typeof a=="string")return e(a,s);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,s)}function e(a,s){(s==null||s>a.length)&&(s=a.length);for(var u=0,h=new Array(s);u<s;u++)h[u]=a[u];return h}function l(){return l=Object.assign||function(a){for(var s=1;s<arguments.length;s++){var u=arguments[s];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(a[h]=u[h])}return a},l.apply(this,arguments)}var t=function(){function a(u){var h=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(){h.initialized&&(h.starved=!0),h.buffering=!0},this.onPlaying=function(){h.initialized||(h.initialized=!0),h.buffering=!1},this.applyPlaylistData=function(v){try{h.apply(v,{ot:g.CMCDObjectType.MANIFEST,su:!h.initialized})}catch(y){c.logger.warn("Could not generate manifest CMCD data.",y)}},this.applyFragmentData=function(v){try{var y=v.frag,E=h.hls.levels[y.level],T=h.getObjectType(y),w={d:y.duration*1e3,ot:T};(T===g.CMCDObjectType.VIDEO||T===g.CMCDObjectType.AUDIO||T==g.CMCDObjectType.MUXED)&&(w.br=E.bitrate/1e3,w.tb=h.getTopBandwidth(T)/1e3,w.bl=h.getBufferLength(T)),h.apply(v,w)}catch(S){c.logger.warn("Could not generate segment CMCD data.",S)}},this.hls=u;var p=this.config=u.config,m=p.cmcd;m!=null&&(p.pLoader=this.createPlaylistLoader(),p.fLoader=this.createFragmentLoader(),this.sid=m.sessionId||a.uuid(),this.cid=m.contentId,this.useHeaders=m.useHeaders===!0,this.registerListeners())}var s=a.prototype;return s.registerListeners=function(){var h=this.hls;h.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),h.on(b.Events.BUFFER_CREATED,this.onBufferCreated,this)},s.unregisterListeners=function(){var h=this.hls;h.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),h.off(b.Events.BUFFER_CREATED,this.onBufferCreated,this),this.onMediaDetached()},s.destroy=function(){this.unregisterListeners(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null},s.onMediaAttached=function(h,p){this.media=p.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)},s.onMediaDetached=function(){if(!this.media)return;this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null},s.onBufferCreated=function(h,p){var m,v;this.audioBuffer=(m=p.tracks.audio)===null||m===void 0?void 0:m.buffer,this.videoBuffer=(v=p.tracks.video)===null||v===void 0?void 0:v.buffer},s.createData=function(){var h;return{v:g.CMCDVersion,sf:g.CMCDStreamingFormat.HLS,sid:this.sid,cid:this.cid,pr:(h=this.media)===null||h===void 0?void 0:h.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}},s.apply=function(h,p){p===void 0&&(p={}),l(p,this.createData());var m=p.ot===g.CMCDObjectType.INIT||p.ot===g.CMCDObjectType.VIDEO||p.ot===g.CMCDObjectType.MUXED;if(this.starved&&m&&(p.bs=!0,p.su=!0,this.starved=!1),p.su==null&&(p.su=this.buffering),this.useHeaders){var v=a.toHeaders(p);if(!Object.keys(v).length)return;h.headers||(h.headers={}),l(h.headers,v)}else{var y=a.toQuery(p);if(!y)return;h.url=a.appendQueryToUri(h.url,y)}},s.getObjectType=function(h){var p=h.type;return p==="subtitle"?g.CMCDObjectType.TIMED_TEXT:h.sn==="initSegment"?g.CMCDObjectType.INIT:p==="audio"?g.CMCDObjectType.AUDIO:p==="main"?this.hls.audioTracks.length?g.CMCDObjectType.VIDEO:g.CMCDObjectType.MUXED:void 0},s.getTopBandwidth=function(h){var p=0,m,v=this.hls;if(h===g.CMCDObjectType.AUDIO)m=v.audioTracks;else{var y=v.maxAutoLevel,E=y>-1?y+1:v.levels.length;m=v.levels.slice(0,E)}for(var T=i(m),w;!(w=T()).done;){var S=w.value;S.bitrate>p&&(p=S.bitrate)}return p>0?p:NaN},s.getBufferLength=function(h){var p=this.hls.media,m=h===g.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!m||!p)return NaN;var v=f.BufferHelper.bufferInfo(m,p.currentTime,this.config.maxBufferHole);return v.len*1e3},s.createPlaylistLoader=function(){var h=this.config.pLoader,p=this.applyPlaylistData,m=h||this.config.loader;return function(){function v(E){this.loader=void 0,this.loader=new m(E)}var y=v.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(T,w,S){p(T),this.loader.load(T,w,S)},r(v,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),v}()},s.createFragmentLoader=function(){var h=this.config.fLoader,p=this.applyFragmentData,m=h||this.config.loader;return function(){function v(E){this.loader=void 0,this.loader=new m(E)}var y=v.prototype;return y.destroy=function(){this.loader.destroy()},y.abort=function(){this.loader.abort()},y.load=function(T,w,S){p(T),this.loader.load(T,w,S)},r(v,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),v}()},a.uuid=function(){var h=URL.createObjectURL(new Blob),p=h.toString();return URL.revokeObjectURL(h),p.substr(p.lastIndexOf("/")+1)},a.serialize=function(h){for(var p=[],m=function(M){return!Number.isNaN(M)&&M!=null&&M!==""&&M!==!1},v=function(M){return Math.round(M)},y=function(M){return v(M/100)*100},E=function(M){return encodeURIComponent(M)},T={br:v,d:v,bl:y,dl:y,mtp:y,nor:E,rtp:y,tb:v},w=Object.keys(h||{}).sort(),S=i(w),_;!(_=S()).done;){var I=_.value,L=h[I];if(!m(L))continue;if(I==="v"&&L===1)continue;if(I=="pr"&&L===1)continue;var N=T[I];N&&(L=N(L));var R=typeof L,D=void 0;I==="ot"||I==="sf"||I==="st"?D=I+"="+L:R==="boolean"?D=I:R==="number"?D=I+"="+L:D=I+"="+JSON.stringify(L),p.push(D)}return p.join(",")},a.toHeaders=function(h){for(var p=Object.keys(h),m={},v=["Object","Request","Session","Status"],y=[{},{},{},{}],E={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,w=p;T<w.length;T++){var S=w[T],_=E[S]!=null?E[S]:1;y[_][S]=h[S]}for(var I=0;I<y.length;I++){var L=a.serialize(y[I]);L&&(m["CMCD-"+v[I]]=L)}return m},a.toQuery=function(h){return"CMCD="+encodeURIComponent(a.serialize(h))},a.appendQueryToUri=function(h,p){if(!p)return h;var m=h.includes("?")?"&":"?";return""+h+m+p},a}()},"./src/controller/eme-controller.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/events.ts"),g=A("./src/errors.ts"),f=A("./src/utils/logger.ts"),c=A("./src/utils/mediakeys-helper.ts");function o(t,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function r(t,a,s){return a&&o(t.prototype,a),s&&o(t,s),t}var i=3,n=function(a,s,u){var h={audioCapabilities:[],videoCapabilities:[]};return a.forEach(function(p){h.audioCapabilities.push({contentType:'audio/mp4; codecs="'+p+'"',robustness:u.audioRobustness||""})}),s.forEach(function(p){h.videoCapabilities.push({contentType:'video/mp4; codecs="'+p+'"',robustness:u.videoRobustness||""})}),[h]},e=function(a,s,u,h){switch(a){case c.KeySystems.WIDEVINE:return n(s,u,h);default:throw new Error("Unknown key-system: "+a)}},l=function(){function t(s){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=s,this._config=s.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(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this)},a._unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(b.Events.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(b.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,h,p){var m=this,v=e(u,h,p,this._drmSystemOptions);f.logger.log("Requesting encrypted media key-system access");var y=this.requestMediaKeySystemAccess(u,v);this.mediaKeysPromise=y.then(function(E){return m._onMediaKeySystemAccessObtained(u,E)}),y.catch(function(E){f.logger.error('Failed to obtain key-system "'+u+'" access:',E)})},a._onMediaKeySystemAccessObtained=function(u,h){var p=this;f.logger.log('Access for key-system "'+u+'" obtained');var m={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:h,mediaKeySystemDomain:u};this._mediaKeysList.push(m);var v=Promise.resolve().then(function(){return h.createMediaKeys()}).then(function(y){return m.mediaKeys=y,f.logger.log('Media-keys created for key-system "'+u+'"'),p._onMediaKeysCreated(),y});return v.catch(function(y){f.logger.error("Failed to create media-keys:",y)}),v},a._onMediaKeysCreated=function(){var u=this;this._mediaKeysList.forEach(function(h){h.mediaKeysSession||(h.mediaKeysSession=h.mediaKeys.createSession(),u._onNewMediaKeySession(h.mediaKeysSession))})},a._onNewMediaKeySession=function(u){var h=this;f.logger.log("New key-system session "+u.sessionId),u.addEventListener("message",function(p){h._onKeySessionMessage(u,p.message)},!1)},a._onKeySessionMessage=function(u,h){f.logger.log("Got EME message event, creating license request"),this._requestLicense(h,function(p){f.logger.log("Received license data (length: "+(p&&p.byteLength)+"), updating key-session"),u.update(p)})},a.onMediaEncrypted=function(u){var h=this;if(f.logger.log('Media is encrypted using "'+u.initDataType+'" init data type'),!this.mediaKeysPromise){f.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}var p=function(v){if(!h._media)return;h._attemptSetMediaKeys(v),h._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 h=this._mediaKeysList[0];if(!h||!h.mediaKeys){f.logger.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_KEYS,fatal:!0});return}f.logger.log("Setting keys for encrypted media"),this._media.setMediaKeys(h.mediaKeys),this._hasSetMediaKeys=!0}},a._generateRequestWithPreferredKeySession=function(u,h){var p=this,m=this._mediaKeysList[0];if(!m){f.logger.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}if(m.mediaKeysSessionInitialized){f.logger.warn("Key-Session already initialized but requested again");return}var v=m.mediaKeysSession;if(!v){f.logger.error("Fatal: Media is encrypted but no key-session existing"),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!0});return}if(!h){f.logger.warn("Fatal: initData required for generating a key session is null"),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});return}f.logger.log('Generating key-session request for "'+u+'" init data type'),m.mediaKeysSessionInitialized=!0,v.generateRequest(u,h).then(function(){f.logger.debug("Key-session generation succeeded")}).catch(function(y){f.logger.error("Error generating key-session request:",y),p.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_SESSION,fatal:!1})})},a._createLicenseXhr=function(u,h,p){var m=new XMLHttpRequest;m.responseType="arraybuffer",m.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,m,u,h,p);var v=this._licenseXhrSetup;if(v)try{v.call(this.hls,m,u),v=void 0}catch(y){f.logger.error(y)}try{m.readyState||m.open("POST",u,!0),v&&v.call(this.hls,m,u)}catch(y){throw new Error("issue setting up KeySystem license XHR "+y)}return m},a._onLicenseRequestReadyStageChange=function(u,h,p,m){switch(u.readyState){case 4:if(u.status===200){this._requestLicenseFailureCount=0,f.logger.log("License request succeeded");var v=u.response,y=this._licenseResponseCallback;if(y)try{v=y.call(this.hls,u,h)}catch(T){f.logger.error(T)}m(v)}else{if(f.logger.error("License Request XHR failed ("+h+"). Status: "+u.status+" ("+u.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>i){this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var E=i-this._requestLicenseFailureCount+1;f.logger.warn("Retrying license request, "+E+" attempts left"),this._requestLicense(p,m)}break}},a._generateLicenseRequestChallenge=function(u,h){switch(u.mediaKeySystemDomain){case c.KeySystems.WIDEVINE:return h}throw new Error("unsupported key-system: "+u.mediaKeySystemDomain)},a._requestLicense=function(u,h){f.logger.log("Requesting content license for key-system");var p=this._mediaKeysList[0];if(!p){f.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var m=this.getLicenseServerUrl(p.mediaKeySystemDomain),v=this._createLicenseXhr(m,u,h);f.logger.log("Sending license request to URL: "+m);var y=this._generateLicenseRequestChallenge(p,u);v.send(y)}catch(E){f.logger.error("Failure requesting DRM license: "+E),this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.KEY_SYSTEM_ERROR,details:g.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},a.onMediaAttached=function(u,h){if(!this._emeEnabled)return;var p=h.media;this._media=p,p.addEventListener("encrypted",this._onMediaEncrypted)},a.onMediaDetached=function(){var u=this._media,h=this._mediaKeysList;if(!u)return;u.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(h.map(function(p){if(p.mediaKeysSession)return p.mediaKeysSession.close().catch(function(){})})).then(function(){return u.setMediaKeys(null)}).catch(function(){})},a.onManifestParsed=function(u,h){if(!this._emeEnabled)return;var p=h.levels.map(function(v){return v.audioCodec}).filter(function(v){return!!v}),m=h.levels.map(function(v){return v.videoCodec}).filter(function(v){return!!v});this._attemptKeySystemAccess(c.KeySystems.WIDEVINE,p,m)},r(t,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),t}();C.default=l},"./src/controller/fps-controller.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/events.ts"),g=A("./src/utils/logger.ts"),f=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 o=c.prototype;return o.setStreamController=function(i){this.streamController=i},o.registerListeners=function(){this.hls.on(b.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},o.unregisterListeners=function(){this.hls.off(b.Events.MEDIA_ATTACHING,this.onMediaAttaching)},o.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},o.onMediaAttaching=function(i,n){var e=this.hls.config;if(e.capLevelOnFPSDrop){var l=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=l,l&&typeof l.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),e.fpsDroppedMonitoringPeriod)}},o.checkFPS=function(i,n,e){var l=performance.now();if(n){if(this.lastTime){var t=l-this.lastTime,a=e-this.lastDroppedFrames,s=n-this.lastDecodedFrames,u=1e3*a/t,h=this.hls;if(h.trigger(b.Events.FPS_DROP,{currentDropped:a,currentDecoded:s,totalDroppedFrames:e}),u>0&&a>h.config.fpsDroppedMonitoringThreshold*s){var p=h.currentLevel;g.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+p),p>0&&(h.autoLevelCapping===-1||h.autoLevelCapping>=p)&&(p=p-1,h.trigger(b.Events.FPS_DROP_LEVEL_CAPPING,{level:p,droppedLevel:h.currentLevel}),h.autoLevelCapping=p,this.streamController.nextLevelSwitch())}}this.lastTime=l,this.lastDroppedFrames=e,this.lastDecodedFrames=n}},o.checkFPSInterval=function(){var i=this.media;if(i)if(this.isVideoPlaybackQualityAvailable){var n=i.getVideoPlaybackQuality();this.checkFPS(i,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(i,i.webkitDecodedFrameCount,i.webkitDroppedFrameCount)},c}();C.default=f},"./src/controller/fragment-finders.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"findFragmentByPDT",function(){return f}),A.d(C,"findFragmentByPTS",function(){return c}),A.d(C,"fragmentWithinToleranceTest",function(){return o}),A.d(C,"pdtWithinToleranceTest",function(){return r}),A.d(C,"findFragWithCC",function(){return i});var b=A("./src/polyfills/number.ts"),g=A("./src/utils/binary-search.ts");function f(n,e,l){if(e===null||!Array.isArray(n)||!n.length||!Object(b.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;l=l||0;for(var s=0;s<n.length;++s){var u=n[s];if(r(e,l,u))return u}return null}function c(n,e,l,t){l===void 0&&(l=0),t===void 0&&(t=0);var a=null;if(n?a=e[n.sn-e[0].sn+1]||null:l===0&&e[0].start===0&&(a=e[0]),a&&o(l,t,a)===0)return a;var s=g.default.search(e,o.bind(null,l,t));return s||a}function o(n,e,l){n===void 0&&(n=0),e===void 0&&(e=0);var t=Math.min(e,l.duration+(l.deltaPTS?l.deltaPTS:0));return l.start+l.duration-t<=n?1:l.start-t>n&&l.start?-1:0}function r(n,e,l){var t=Math.min(e,l.duration+(l.deltaPTS?l.deltaPTS:0))*1e3,a=l.endProgramDateTime||0;return a-t>n}function i(n,e){return g.default.search(n,function(l){return l.cc<e?1:l.cc>e?-1:0})}},"./src/controller/fragment-tracker.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"FragmentState",function(){return f}),A.d(C,"FragmentTracker",function(){return c});var b=A("./src/events.ts"),g=A("./src/types/loader.ts"),f;(function(i){i.NOT_LOADED="NOT_LOADED",i.BACKTRACKED="BACKTRACKED",i.APPENDING="APPENDING",i.PARTIAL="PARTIAL",i.OK="OK"})(f||(f={}));var c=function(){function i(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=i.prototype;return n._registerListeners=function(){var l=this.hls;l.on(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),l.on(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),l.on(b.Events.FRAG_LOADED,this.onFragLoaded,this)},n._unregisterListeners=function(){var l=this.hls;l.off(b.Events.BUFFER_APPENDED,this.onBufferAppended,this),l.off(b.Events.FRAG_BUFFERED,this.onFragBuffered,this),l.off(b.Events.FRAG_LOADED,this.onFragLoaded,this)},n.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},n.getAppendedFrag=function(l,t){if(t===g.PlaylistLevelType.MAIN){var a=this.activeFragment,s=this.activeParts;if(!a)return null;if(s)for(var u=s.length;u--;){var h=s[u],p=h?h.end:a.appendedPTS;if(h.start<=l&&p!==void 0&&l<=p)return u>9&&(this.activeParts=s.slice(u-9)),h}else if(a.start<=l&&a.appendedPTS!==void 0&&l<=a.appendedPTS)return a}return this.getBufferedFrag(l,t)},n.getBufferedFrag=function(l,t){for(var a=this.fragments,s=Object.keys(a),u=s.length;u--;){var h=a[s[u]];if((h==null?void 0:h.body.type)===t&&h.buffered){var p=h.body;if(p.start<=l&&l<=p.end)return p}}return null},n.detectEvictedFragments=function(l,t,a){var s=this;Object.keys(this.fragments).forEach(function(u){var h=s.fragments[u];if(!h)return;if(!h.buffered){h.body.type===a&&s.removeFragment(h.body);return}var p=h.range[l];if(!p)return;p.time.some(function(m){var v=!s.isTimeBuffered(m.startPTS,m.endPTS,t);return v&&s.removeFragment(h.body),v})})},n.detectPartialFragments=function(l){var t=this,a=this.timeRanges,s=l.frag,u=l.part;if(!a||s.sn==="initSegment")return;var h=r(s),p=this.fragments[h];if(!p)return;Object.keys(a).forEach(function(m){var v=s.elementaryStreams[m];if(!v)return;var y=a[m],E=u!==null||v.partial===!0;p.range[m]=t.getBufferedTimes(s,u,E,y)}),p.backtrack=p.loaded=null,Object.keys(p.range).length?p.buffered=!0:this.removeFragment(p.body)},n.fragBuffered=function(l){var t=r(l),a=this.fragments[t];a&&(a.backtrack=a.loaded=null,a.buffered=!0)},n.getBufferedTimes=function(l,t,a,s){for(var u={time:[],partial:a},h=t?t.start:l.start,p=t?t.end:l.end,m=l.minEndPTS||p,v=l.maxStartPTS||h,y=0;y<s.length;y++){var E=s.start(y)-this.bufferPadding,T=s.end(y)+this.bufferPadding;if(v>=E&&m<=T){u.time.push({startPTS:Math.max(h,s.start(y)),endPTS:Math.min(p,s.end(y))});break}else if(h<T&&p>E)u.partial=!0,u.time.push({startPTS:Math.max(h,s.start(y)),endPTS:Math.min(p,s.end(y))});else if(p<=E)break}return u},n.getPartialFragment=function(l){var t=null,a,s,u,h=0,p=this.bufferPadding,m=this.fragments;return Object.keys(m).forEach(function(v){var y=m[v];if(!y)return;o(y)&&(s=y.body.start-p,u=y.body.end+p,l>=s&&l<=u&&(a=Math.min(l-s,u-l),h<=a&&(t=y.body,h=a)))}),t},n.getState=function(l){var t=r(l),a=this.fragments[t];return a?a.buffered?o(a)?f.PARTIAL:f.OK:a.backtrack?f.BACKTRACKED:f.APPENDING:f.NOT_LOADED},n.backtrack=function(l,t){var a=r(l),s=this.fragments[a];if(!s||s.backtrack)return null;var u=s.backtrack=t||s.loaded;return s.loaded=null,u},n.getBacktrackData=function(l){var t=r(l),a=this.fragments[t];if(a){var s,u=a.backtrack;if(u!=null&&(s=u.payload)!==null&&s!==void 0&&s.byteLength)return u;this.removeFragment(l)}return null},n.isTimeBuffered=function(l,t,a){for(var s,u,h=0;h<a.length;h++){if(s=a.start(h)-this.bufferPadding,u=a.end(h)+this.bufferPadding,l>=s&&t<=u)return!0;if(t<=s)return!1}return!1},n.onFragLoaded=function(l,t){var a=t.frag,s=t.part;if(a.sn==="initSegment"||a.bitrateTest||s)return;var u=r(a);this.fragments[u]={body:a,loaded:t,backtrack:null,buffered:!1,range:Object.create(null)}},n.onBufferAppended=function(l,t){var a=this,s=t.frag,u=t.part,h=t.timeRanges;if(s.type===g.PlaylistLevelType.MAIN)if(this.activeFragment=s,u){var p=this.activeParts;p||(this.activeParts=p=[]),p.push(u)}else this.activeParts=null;this.timeRanges=h,Object.keys(h).forEach(function(m){var v=h[m];if(a.detectEvictedFragments(m,v),!u)for(var y=0;y<v.length;y++)s.appendedPTS=Math.max(v.end(y),s.appendedPTS||0)})},n.onFragBuffered=function(l,t){this.detectPartialFragments(t)},n.hasFragment=function(l){var t=r(l);return!!this.fragments[t]},n.removeFragmentsInRange=function(l,t,a){var s=this;Object.keys(this.fragments).forEach(function(u){var h=s.fragments[u];if(!h)return;if(h.buffered){var p=h.body;p.type===a&&p.start<t&&p.end>l&&s.removeFragment(p)}})},n.removeFragment=function(l){var t=r(l);l.stats.loaded=0,l.clearElementaryStreamInfo(),delete this.fragments[t]},n.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},i}();function o(i){var n,e;return i.buffered&&(((n=i.range.video)===null||n===void 0?void 0:n.partial)||((e=i.range.audio)===null||e===void 0?void 0:e.partial))}function r(i){return i.type+"_"+i.level+"_"+i.urlId+"_"+i.sn}},"./src/controller/gap-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"STALL_MINIMUM_DURATION_MS",function(){return o}),A.d(C,"MAX_START_GAP_JUMP",function(){return r}),A.d(C,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return i}),A.d(C,"SKIP_BUFFER_RANGE_START",function(){return n}),A.d(C,"default",function(){return e});var b=A("./src/utils/buffer-helper.ts"),g=A("./src/errors.ts"),f=A("./src/events.ts"),c=A("./src/utils/logger.ts"),o=250,r=2,i=.1,n=.05,e=function(){function l(a,s,u,h){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=s,this.fragmentTracker=u,this.hls=h}var t=l.prototype;return t.destroy=function(){this.hls=this.fragmentTracker=this.media=null},t.poll=function(s){var u=this.config,h=this.media,p=this.stalled,m=h.currentTime,v=h.seeking,y=this.seeking&&!v,E=!this.seeking&&v;if(this.seeking=v,m!==s){if(this.moved=!0,p!==null){if(this.stallReported){var T=self.performance.now()-p;c.logger.warn("playback not stuck anymore @"+m+", after "+Math.round(T)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((E||y)&&(this.stalled=null),h.paused||h.ended||h.playbackRate===0||!b.BufferHelper.getBuffered(h).length)return;var w=b.BufferHelper.bufferInfo(h,m,0),S=w.len>0,_=w.nextStart||0;if(!S&&!_)return;if(v){var I=w.len>r,L=!_||_-m>r&&!this.fragmentTracker.getPartialFragment(m);if(I||L)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var N,R=Math.max(_,w.start||0)-m,D=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,F=D==null||((N=D.details)===null||N===void 0)?void 0:N.live,M=F?D.details.targetduration*2:r;if(R>0&&R<=M){this._trySkipBufferHole(null);return}}var U=self.performance.now();if(p===null){this.stalled=U;return}var B=U-p;!v&&B>=o&&this._reportStall(w.len);var j=b.BufferHelper.bufferInfo(h,m,u.maxBufferHole);this._tryFixBufferStall(j,B)},t._tryFixBufferStall=function(s,u){var h=this.config,p=this.fragmentTracker,m=this.media,v=m.currentTime,y=p.getPartialFragment(v);if(y){var E=this._trySkipBufferHole(y);if(E)return}s.len>h.maxBufferHole&&u>h.highBufferWatchdogPeriod*1e3&&(c.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},t._reportStall=function(s){var u=this.hls,h=this.media,p=this.stallReported;p||(this.stallReported=!0,c.logger.warn("Playback stalling at @"+h.currentTime+" due to low buffer (buffer="+s+")"),u.trigger(f.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:s}))},t._trySkipBufferHole=function(s){for(var u=this.config,h=this.hls,p=this.media,m=p.currentTime,v=0,y=b.BufferHelper.getBuffered(p),E=0;E<y.length;E++){var T=y.start(E);if(m+u.maxBufferHole>=v&&m<T){var w=Math.max(T+n,p.currentTime+i);return c.logger.warn("skipping hole, adjusting currentTime from "+m+" to "+w),this.moved=!0,this.stalled=null,p.currentTime=w,s&&h.trigger(f.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+m+" to "+w,frag:s}),w}v=y.end(E)}return 0},t._tryNudgeBuffer=function(){var s=this.config,u=this.hls,h=this.media,p=h.currentTime,m=(this.nudgeRetry||0)+1;if(this.nudgeRetry=m,m<s.nudgeMaxRetry){var v=p+m*s.nudgeOffset;c.logger.warn("Nudging 'currentTime' from "+p+" to "+v),h.currentTime=v,u.trigger(f.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.BUFFER_NUDGE_ON_STALL,fatal:!1})}else c.logger.error("Playhead still not moving while enough data buffered @"+p+" after "+s.nudgeMaxRetry+" nudges"),u.trigger(f.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!0})},l}()},"./src/controller/id3-track-controller.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/events.ts"),g=A("./src/utils/texttrack-utils.ts"),f=A("./src/demux/id3.ts"),c=.25,o=function(){function r(n){this.hls=void 0,this.id3Track=null,this.media=null,this.hls=n,this._registerListeners()}var i=r.prototype;return i.destroy=function(){this._unregisterListeners()},i._registerListeners=function(){var e=this.hls;e.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},i._unregisterListeners=function(){var e=this.hls;e.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(b.Events.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},i.onMediaAttached=function(e,l){this.media=l.media},i.onMediaDetaching=function(){if(!this.id3Track)return;Object(g.clearCurrentCues)(this.id3Track),this.id3Track=null,this.media=null},i.getID3Track=function(e){if(!this.media)return;for(var l=0;l<e.length;l++){var t=e[l];if(t.kind==="metadata"&&t.label==="id3")return Object(g.sendAddTrackEvent)(t,this.media),t}return this.media.addTextTrack("metadata","id3")},i.onFragParsingMetadata=function(e,l){if(!this.media)return;var t=l.frag,a=l.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var s=self.WebKitDataCue||self.VTTCue||self.TextTrackCue,u=0;u<a.length;u++){var h=f.getID3Frames(a[u].data);if(h){var p=a[u].pts,m=u<a.length-1?a[u+1].pts:t.end,v=m-p;v<=0&&(m=p+c);for(var y=0;y<h.length;y++){var E=h[y];if(!f.isTimeStampFrame(E)){var T=new s(p,m,"");T.value=E,this.id3Track.addCue(T)}}}}},i.onBufferFlushing=function(e,l){var t=l.startOffset,a=l.endOffset,s=l.type;if(!s||s==="audio"){var u=this.id3Track;u&&Object(g.removeCuesInRange)(u,t,a)}},r}();C.default=o},"./src/controller/latency-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return r});var b=A("./src/errors.ts"),g=A("./src/events.ts"),f=A("./src/utils/logger.ts");function c(i,n){for(var e=0;e<n.length;e++){var l=n[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}function o(i,n,e){return n&&c(i.prototype,n),e&&c(i,e),i}var r=function(){function i(e){var l=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 l.timeupdate()},this.hls=e,this.config=e.config,this.registerListeners()}var n=i.prototype;return n.destroy=function(){this.unregisterListeners(),this.onMediaDetaching(),this.levelDetails=null,this.hls=this.timeupdateHandler=null},n.registerListeners=function(){this.hls.on(g.Events.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(g.Events.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(g.Events.ERROR,this.onError,this)},n.unregisterListeners=function(){this.hls.off(g.Events.MEDIA_ATTACHED,this.onMediaAttached),this.hls.off(g.Events.MEDIA_DETACHING,this.onMediaDetaching),this.hls.off(g.Events.MANIFEST_LOADING,this.onManifestLoading),this.hls.off(g.Events.LEVEL_UPDATED,this.onLevelUpdated),this.hls.off(g.Events.ERROR,this.onError)},n.onMediaAttached=function(l,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(l,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(l,t){if(t.details!==b.ErrorDetails.BUFFER_STALLED_ERROR)return;this.stallCount++,f.logger.warn("[playback-rate-controller]: Stall detected, adjusting target latency")},n.timeupdate=function(){var l=this.media,t=this.levelDetails;if(!l||!t)return;this.currentTime=l.currentTime;var a=this.computeLatency();if(a===null)return;this._latency=a;var s=this.config,u=s.lowLatencyMode,h=s.maxLiveSyncPlaybackRate;if(!u||h===1)return;var p=this.targetLatency;if(p===null)return;var m=a-p,v=Math.min(this.maxLatency,p+t.targetduration),y=m<v;if(t.live&&y&&m>.05&&this.forwardBufferLength>1){var E=Math.min(2,Math.max(1,h)),T=Math.round(2/(1+Math.exp(-.75*m-this.edgeStalled))*20)/20;l.playbackRate=Math.min(E,Math.max(1,T))}else l.playbackRate!==1&&l.playbackRate!==0&&(l.playbackRate=1)},n.estimateLiveEdge=function(){var l=this.levelDetails;return l===null?null:l.edge+l.age},n.computeLatency=function(){var l=this.estimateLiveEdge();return l===null?null:l-this.currentTime},o(i,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var l=this.config,t=this.levelDetails;return l.liveMaxLatencyDuration!==void 0?l.liveMaxLatencyDuration:t?l.liveMaxLatencyDurationCount*t.targetduration:0}},{key:"targetLatency",get:function(){var l=this.levelDetails;if(l===null)return null;var t=l.holdBack,a=l.partHoldBack,s=l.targetduration,u=this.config,h=u.liveSyncDuration,p=u.liveSyncDurationCount,m=u.lowLatencyMode,v=this.hls.userConfig,y=m&&a||t;(v.liveSyncDuration||v.liveSyncDurationCount||y===0)&&(y=h!==void 0?h:p*s);var E=s,T=1;return y+Math.min(this.stallCount*T,E)}},{key:"liveSyncPosition",get:function(){var l=this.estimateLiveEdge(),t=this.targetLatency,a=this.levelDetails;if(l===null||t===null||a===null)return null;var s=a.edge,u=l-t-this.edgeStalled,h=s-a.totalduration,p=s-(this.config.lowLatencyMode&&a.partTarget||a.targetduration);return Math.min(Math.max(h,u),p)}},{key:"drift",get:function(){var l=this.levelDetails;return l===null?1:l.drift}},{key:"edgeStalled",get:function(){var l=this.levelDetails;if(l===null)return 0;var t=(this.config.lowLatencyMode&&l.partTarget||l.targetduration)*3;return Math.max(l.age-t,0)}},{key:"forwardBufferLength",get:function(){var l=this.media,t=this.levelDetails;if(!l||!t)return 0;var a=l.buffered.length;return a?l.buffered.end(a-1):t.edge-this.currentTime}}]),i}()},"./src/controller/level-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return u});var b=A("./src/types/level.ts"),g=A("./src/events.ts"),f=A("./src/errors.ts"),c=A("./src/utils/codecs.ts"),o=A("./src/controller/level-helper.ts"),r=A("./src/controller/base-playlist-controller.ts"),i=A("./src/types/loader.ts");function n(){return n=Object.assign||function(h){for(var p=1;p<arguments.length;p++){var m=arguments[p];for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&(h[v]=m[v])}return h},n.apply(this,arguments)}function e(h,p){for(var m=0;m<p.length;m++){var v=p[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,v.key,v)}}function l(h,p,m){return p&&e(h.prototype,p),m&&e(h,m),h}function t(h,p){h.prototype=Object.create(p.prototype),h.prototype.constructor=h,a(h,p)}function a(h,p){return a=Object.setPrototypeOf||function(v,y){return v.__proto__=y,v},a(h,p)}var s=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),u=function(h){t(p,h);function p(v){var y;return y=h.call(this,v,"[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 m=p.prototype;return m._registerListeners=function(){var y=this.hls;y.on(g.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.on(g.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.on(g.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.on(g.Events.FRAG_LOADED,this.onFragLoaded,this),y.on(g.Events.ERROR,this.onError,this)},m._unregisterListeners=function(){var y=this.hls;y.off(g.Events.MANIFEST_LOADED,this.onManifestLoaded,this),y.off(g.Events.LEVEL_LOADED,this.onLevelLoaded,this),y.off(g.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),y.off(g.Events.FRAG_LOADED,this.onFragLoaded,this),y.off(g.Events.ERROR,this.onError,this)},m.destroy=function(){this._unregisterListeners(),this.manualLevelIndex=-1,this._levels.length=0,h.prototype.destroy.call(this)},m.startLoad=function(){var y=this._levels;y.forEach(function(E){E.loadError=0}),h.prototype.startLoad.call(this)},m.onManifestLoaded=function(y,E){var T=[],w=[],S=[],_,I={},L,N=!1,R=!1,D=!1;if(E.levels.forEach(function(B){var j=B.attrs;N=N||!!(B.width&&B.height),R=R||!!B.videoCodec,D=D||!!B.audioCodec,s&&B.audioCodec&&B.audioCodec.indexOf("mp4a.40.34")!==-1&&(B.audioCodec=void 0);var W=B.bitrate+"-"+B.attrs.RESOLUTION+"-"+B.attrs.CODECS;L=I[W],L?L.url.push(B.url):(L=new b.Level(B),I[W]=L,T.push(L)),j&&(j.AUDIO&&Object(o.addGroupId)(L,"audio",j.AUDIO),j.SUBTITLES&&Object(o.addGroupId)(L,"text",j.SUBTITLES))}),(N||R)&&D&&(T=T.filter(function(B){var j=B.videoCodec,W=B.width,V=B.height;return!!j||!!(W&&V)})),T=T.filter(function(B){var j=B.audioCodec,W=B.videoCodec;return(!j||Object(c.isCodecSupportedInMp4)(j,"audio"))&&(!W||Object(c.isCodecSupportedInMp4)(W,"video"))}),E.audioTracks&&(w=E.audioTracks.filter(function(B){return!B.audioCodec||Object(c.isCodecSupportedInMp4)(B.audioCodec,"audio")}),Object(o.assignTrackIdsByGroup)(w)),E.subtitles&&(S=E.subtitles,Object(o.assignTrackIdsByGroup)(S)),T.length>0){_=T[0].bitrate,T.sort(function(B,j){return B.bitrate-j.bitrate}),this._levels=T;for(var F=0;F<T.length;F++)if(T[F].bitrate===_){this._firstLevel=F,this.log("manifest loaded, "+T.length+" level(s) found, first bitrate: "+_);break}var M=D&&!R,U={levels:T,audioTracks:w,subtitleTracks:S,firstLevel:this._firstLevel,stats:E.stats,audio:D,video:R,altAudio:!M&&w.some(function(B){return!!B.url})};this.hls.trigger(g.Events.MANIFEST_PARSED,U),(this.hls.config.autoStartLoad||this.hls.forceStartLoad)&&this.hls.startLoad(this.hls.config.startPosition)}else this.hls.trigger(g.Events.ERROR,{type:f.ErrorTypes.MEDIA_ERROR,details:f.ErrorDetails.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:E.url,reason:"no level with compatible codecs found in manifest"})},m.onError=function(y,E){if(h.prototype.onError.call(this,y,E),E.fatal)return;var T=E.context,w=this._levels[this.currentLevelIndex];if(T&&(T.type===i.PlaylistContextType.AUDIO_TRACK&&w.audioGroupIds&&T.groupId===w.audioGroupIds[w.urlId]||T.type===i.PlaylistContextType.SUBTITLE_TRACK&&w.textGroupIds&&T.groupId===w.textGroupIds[w.urlId])){this.redundantFailover(this.currentLevelIndex);return}var S=!1,_=!0,I;switch(E.details){case f.ErrorDetails.FRAG_LOAD_ERROR:case f.ErrorDetails.FRAG_LOAD_TIMEOUT:case f.ErrorDetails.KEY_LOAD_ERROR:case f.ErrorDetails.KEY_LOAD_TIMEOUT:if(E.frag){var L=this._levels[E.frag.level];L?(L.fragmentError++,L.fragmentError>this.hls.config.fragLoadingMaxRetry&&(I=E.frag.level)):I=E.frag.level}break;case f.ErrorDetails.LEVEL_LOAD_ERROR:case f.ErrorDetails.LEVEL_LOAD_TIMEOUT:T&&(T.deliveryDirectives&&(_=!1),I=T.level),S=!0;break;case f.ErrorDetails.REMUX_ALLOC_ERROR:I=E.level,S=!0;break}I!==void 0&&this.recoverLevel(E,I,S,_)},m.recoverLevel=function(y,E,T,w){var S=y.details,_=this._levels[E];if(_.loadError++,T){var I=this.retryLoadingOrFail(y);if(I)y.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(w){var L=_.url.length;if(L>1&&_.loadError<L)y.levelRetry=!0,this.redundantFailover(E);else if(this.manualLevelIndex===-1){var N=E===0?this._levels.length-1:E-1;this.currentLevelIndex!==N&&this._levels[N].loadError===0&&(this.warn(S+": switch to "+N),y.levelRetry=!0,this.hls.nextAutoLevel=N)}}},m.redundantFailover=function(y){var E=this._levels[y],T=E.url.length;if(T>1){var w=(E.urlId+1)%T;this.warn("Switching to redundant URL-id "+w),this._levels.forEach(function(S){S.urlId=w}),this.level=y}},m.onFragLoaded=function(y,E){var T=E.frag;if(T!==void 0&&T.type===i.PlaylistLevelType.MAIN){var w=this._levels[T.level];w!==void 0&&(w.fragmentError=0,w.loadError=0)}},m.onLevelLoaded=function(y,E){var T,w=E.level,S=E.details,_=this._levels[w];if(!_){var I;this.warn("Invalid level index "+w),(I=E.deliveryDirectives)!==null&&I!==void 0&&I.skip&&(S.deltaUpdateFailed=!0);return}w===this.currentLevelIndex?(_.fragmentError===0&&(_.loadError=0,this.retryCount=0),this.playlistLoaded(w,E,_.details)):(T=E.deliveryDirectives)!==null&&T!==void 0&&T.skip&&(S.deltaUpdateFailed=!0)},m.onAudioTrackSwitched=function(y,E){var T=this.hls.levels[this.currentLevelIndex];if(!T)return;if(T.audioGroupIds){for(var w=-1,S=this.hls.audioTracks[E.id].groupId,_=0;_<T.audioGroupIds.length;_++)if(T.audioGroupIds[_]===S){w=_;break}w!==T.urlId&&(T.urlId=w,this.startLoad())}},m.loadPlaylist=function(y){var E=this.currentLevelIndex,T=this._levels[E];if(this.canLoad&&T&&T.url.length>0){var w=T.urlId,S=T.url[w];if(y)try{S=y.addDirectives(S)}catch(_){this.warn("Could not construct new URL with HLS Delivery Directives: "+_)}this.log("Attempt loading level index "+E+(y?" at sn "+y.msn+" part "+y.part:"")+" with URL-id "+w+" "+S),this.clearTimer(),this.hls.trigger(g.Events.LEVEL_LOADING,{url:S,level:E,id:w,deliveryDirectives:y||null})}},m.removeLevel=function(y,E){var T=function(_,I){return I!==E},w=this._levels.filter(function(S,_){return _!==y?!0:S.url.length>1&&E!==void 0?(S.url=S.url.filter(T),S.audioGroupIds&&(S.audioGroupIds=S.audioGroupIds.filter(T)),S.textGroupIds&&(S.textGroupIds=S.textGroupIds.filter(T)),S.urlId=0,!0):!1}).map(function(S,_){var I=S.details;return I!=null&&I.fragments&&I.fragments.forEach(function(L){L.level=_}),S});this._levels=w,this.hls.trigger(g.Events.LEVELS_UPDATED,{levels:w})},l(p,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(y){var E,T=this._levels;if(T.length===0)return;if(this.currentLevelIndex===y&&(E=T[y])!==null&&E!==void 0&&E.details)return;if(y<0||y>=T.length){var w=y<0;if(this.hls.trigger(g.Events.ERROR,{type:f.ErrorTypes.OTHER_ERROR,details:f.ErrorDetails.LEVEL_SWITCH_ERROR,level:y,fatal:w,reason:"invalid level idx"}),w)return;y=Math.min(y,T.length-1)}this.clearTimer();var S=this.currentLevelIndex,_=T[S],I=T[y];this.log("switching to level "+y+" from "+S),this.currentLevelIndex=y;var L=n({},I,{level:y,maxBitrate:I.maxBitrate,uri:I.uri,urlId:I.urlId});delete L._urlId,this.hls.trigger(g.Events.LEVEL_SWITCHING,L);var N=I.details;if(!N||N.live){var R=this.switchParams(I.uri,_==null?void 0:_.details);this.loadPlaylist(R)}}},{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(x,C,A){"use strict";A.r(C),A.d(C,"addGroupId",function(){return f}),A.d(C,"assignTrackIdsByGroup",function(){return c}),A.d(C,"updatePTS",function(){return o}),A.d(C,"updateFragPTSDTS",function(){return i}),A.d(C,"mergeDetails",function(){return n}),A.d(C,"mapPartIntersection",function(){return e}),A.d(C,"mapFragmentIntersection",function(){return l}),A.d(C,"adjustSliding",function(){return t}),A.d(C,"addSliding",function(){return a}),A.d(C,"computeReloadInterval",function(){return s}),A.d(C,"getFragmentWithSN",function(){return u}),A.d(C,"getPartWith",function(){return h});var b=A("./src/polyfills/number.ts"),g=A("./src/utils/logger.ts");function f(p,m,v){switch(m){case"audio":p.audioGroupIds||(p.audioGroupIds=[]),p.audioGroupIds.push(v);break;case"text":p.textGroupIds||(p.textGroupIds=[]),p.textGroupIds.push(v);break}}function c(p){var m={};p.forEach(function(v){var y=v.groupId||"";v.id=m[y]=m[y]||0,m[y]++})}function o(p,m,v){var y=p[m],E=p[v];r(y,E)}function r(p,m){var v=m.startPTS;if(Object(b.isFiniteNumber)(v)){var y=0,E;m.sn>p.sn?(y=v-p.start,E=p):(y=p.start-v,E=m),E.duration!==y&&(E.duration=y)}else if(m.sn>p.sn){var T=p.cc===m.cc;T&&p.minEndPTS?m.start=p.start+(p.minEndPTS-p.start):m.start=p.start+p.duration}else m.start=Math.max(p.start-m.duration,0)}function i(p,m,v,y,E,T){var w=y-v;w<=0&&(g.logger.warn("Fragment should have a positive duration",m),y=v+m.duration,T=E+m.duration);var S=v,_=y,I=m.startPTS,L=m.endPTS;if(Object(b.isFiniteNumber)(I)){var N=Math.abs(I-v);Object(b.isFiniteNumber)(m.deltaPTS)?m.deltaPTS=Math.max(N,m.deltaPTS):m.deltaPTS=N,S=Math.max(v,I),v=Math.min(v,I),E=Math.min(E,m.startDTS),_=Math.min(y,L),y=Math.max(y,L),T=Math.max(T,m.endDTS)}m.duration=y-v;var R=v-m.start;m.appendedPTS=y,m.start=m.startPTS=v,m.maxStartPTS=S,m.startDTS=E,m.endPTS=y,m.minEndPTS=_,m.endDTS=T;var D=m.sn;if(!p||D<p.startSN||D>p.endSN)return 0;var F,M=D-p.startSN,U=p.fragments;for(U[M]=m,F=M;F>0;F--)r(U[F],U[F-1]);for(F=M;F<U.length-1;F++)r(U[F],U[F+1]);return p.fragmentHint&&r(U[U.length-1],p.fragmentHint),p.PTSKnown=p.alignedSliding=!0,R}function n(p,m){for(var v=null,y=p.fragments,E=y.length-1;E>=0;E--){var T=y[E].initSegment;if(T){v=T;break}}p.fragmentHint&&delete p.fragmentHint.endPTS;var w=0,S;if(l(p,m,function(F,M){F.relurl&&(w=F.cc-M.cc),Object(b.isFiniteNumber)(F.startPTS)&&Object(b.isFiniteNumber)(F.endPTS)&&(M.start=M.startPTS=F.startPTS,M.startDTS=F.startDTS,M.appendedPTS=F.appendedPTS,M.maxStartPTS=F.maxStartPTS,M.endPTS=F.endPTS,M.endDTS=F.endDTS,M.minEndPTS=F.minEndPTS,M.duration=F.endPTS-F.startPTS,M.duration&&(S=M),m.PTSKnown=m.alignedSliding=!0),M.elementaryStreams=F.elementaryStreams,M.loader=F.loader,M.stats=F.stats,M.urlId=F.urlId,F.initSegment&&(M.initSegment=F.initSegment,v=F.initSegment)}),v){var _=m.fragmentHint?m.fragments.concat(m.fragmentHint):m.fragments;_.forEach(function(F){var M;(!F.initSegment||F.initSegment.relurl===((M=v)===null||M===void 0?void 0:M.relurl))&&(F.initSegment=v)})}if(m.skippedSegments&&(m.deltaUpdateFailed=m.fragments.some(function(F){return!F}),m.deltaUpdateFailed)){g.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var I=m.skippedSegments;I--;)m.fragments.shift();m.startSN=m.fragments[0].sn,m.startCC=m.fragments[0].cc}var L=m.fragments;if(w){g.logger.warn("discontinuity sliding from playlist, take drift into account");for(var N=0;N<L.length;N++)L[N].cc+=w}m.skippedSegments&&(m.startCC=m.fragments[0].cc),e(p.partList,m.partList,function(F,M){M.elementaryStreams=F.elementaryStreams,M.stats=F.stats}),S?i(m,S,S.startPTS,S.endPTS,S.startDTS,S.endDTS):t(p,m),L.length&&(m.totalduration=m.edge-L[0].start),m.driftStartTime=p.driftStartTime,m.driftStart=p.driftStart;var R=m.advancedDateTime;if(m.advanced&&R){var D=m.edge;m.driftStart||(m.driftStartTime=R,m.driftStart=D),m.driftEndTime=R,m.driftEnd=D}else m.driftEndTime=p.driftEndTime,m.driftEnd=p.driftEnd,m.advancedDateTime=p.advancedDateTime}function e(p,m,v){if(p&&m)for(var y=0,E=0,T=p.length;E<=T;E++){var w=p[E],S=m[E+y];w&&S&&w.index===S.index&&w.fragment.sn===S.fragment.sn?v(w,S):y--}}function l(p,m,v){for(var y=m.skippedSegments,E=Math.max(p.startSN,m.startSN)-m.startSN,T=(p.fragmentHint?1:0)+(y?m.endSN:Math.min(p.endSN,m.endSN))-m.startSN,w=m.startSN-p.startSN,S=m.fragmentHint?m.fragments.concat(m.fragmentHint):m.fragments,_=p.fragmentHint?p.fragments.concat(p.fragmentHint):p.fragments,I=E;I<=T;I++){var L=_[w+I],N=S[I];y&&!N&&I<y&&(N=m.fragments[I]=L),L&&N&&v(L,N)}}function t(p,m){var v=m.startSN+m.skippedSegments-p.startSN,y=p.fragments;if(v<0||v>=y.length)return;a(m,y[v].start)}function a(p,m){if(m){for(var v=p.fragments,y=p.skippedSegments;y<v.length;y++)v[y].start+=m;p.fragmentHint&&(p.fragmentHint.start+=m)}}function s(p,m){var v=1e3*p.levelTargetDuration,y=v/2,E=p.age,T=E>0&&E<v*3,w=m.loading.end-m.loading.start,S,_=p.availabilityDelay;if(p.updated===!1)if(T){var I=333*p.misses;S=Math.max(Math.min(y,w*2),I),p.availabilityDelay=(p.availabilityDelay||0)+S}else S=y;else T?(_=Math.min(_||v/2,E),p.availabilityDelay=_,S=_+v-E):S=v-w;return Math.round(S)}function u(p,m,v){if(!p||!p.details)return null;var y=p.details,E=y.fragments[m-y.startSN];return E||(E=y.fragmentHint,E&&E.sn===m?E:m<y.startSN&&v&&v.sn===m?v:null)}function h(p,m,v){if(!p||!p.details)return null;var y=p.details.partList;if(y)for(var E=y.length;E--;){var T=y[E];if(T.index===v&&T.fragment.sn===m)return T}return null}},"./src/controller/stream-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return y});var b=A("./src/polyfills/number.ts"),g=A("./src/controller/base-stream-controller.ts"),f=A("./src/is-supported.ts"),c=A("./src/events.ts"),o=A("./src/utils/buffer-helper.ts"),r=A("./src/controller/fragment-tracker.ts"),i=A("./src/types/loader.ts"),n=A("./src/loader/fragment.ts"),e=A("./src/demux/transmuxer-interface.ts"),l=A("./src/types/transmuxer.ts"),t=A("./src/controller/gap-controller.ts"),a=A("./src/errors.ts"),s=A("./src/utils/logger.ts");function u(E,T){for(var w=0;w<T.length;w++){var S=T[w];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(E,S.key,S)}}function h(E,T,w){return T&&u(E.prototype,T),w&&u(E,w),E}function p(E,T){E.prototype=Object.create(T.prototype),E.prototype.constructor=E,m(E,T)}function m(E,T){return m=Object.setPrototypeOf||function(S,_){return S.__proto__=_,S},m(E,T)}var v=100,y=function(E){p(T,E);function T(S,_){var I;return I=E.call(this,S,_,"[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 w=T.prototype;return w._registerListeners=function(){var _=this.hls;_.on(c.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.on(c.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.on(c.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.on(c.Events.MANIFEST_PARSED,this.onManifestParsed,this),_.on(c.Events.LEVEL_LOADING,this.onLevelLoading,this),_.on(c.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.on(c.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),_.on(c.Events.ERROR,this.onError,this),_.on(c.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.on(c.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),_.on(c.Events.BUFFER_CREATED,this.onBufferCreated,this),_.on(c.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.on(c.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),_.on(c.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w._unregisterListeners=function(){var _=this.hls;_.off(c.Events.MEDIA_ATTACHED,this.onMediaAttached,this),_.off(c.Events.MEDIA_DETACHING,this.onMediaDetaching,this),_.off(c.Events.MANIFEST_LOADING,this.onManifestLoading,this),_.off(c.Events.MANIFEST_PARSED,this.onManifestParsed,this),_.off(c.Events.LEVEL_LOADED,this.onLevelLoaded,this),_.off(c.Events.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),_.off(c.Events.ERROR,this.onError,this),_.off(c.Events.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),_.off(c.Events.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),_.off(c.Events.BUFFER_CREATED,this.onBufferCreated,this),_.off(c.Events.BUFFER_FLUSHED,this.onBufferFlushed,this),_.off(c.Events.LEVELS_UPDATED,this.onLevelsUpdated,this),_.off(c.Events.FRAG_BUFFERED,this.onFragBuffered,this)},w.onHandlerDestroying=function(){this._unregisterListeners(),this.onMediaDetaching()},w.startLoad=function(_){if(this.levels){var I=this.lastCurrentTime,L=this.hls;if(this.stopLoad(),this.setInterval(v),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var N=L.startLevel;N===-1&&(L.config.testBandwidth?(N=0,this.bitrateTest=!0):N=L.nextAutoLevel),this.level=L.nextLoadLevel=N,this.loadedmetadata=!1}I>0&&_===-1&&(this.log("Override startPosition with lastCurrentTime @"+I.toFixed(3)),_=I),this.state=g.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=_,this.tick()}else this._forceStartLoad=!0,this.state=g.State.STOPPED},w.stopLoad=function(){this._forceStartLoad=!1,E.prototype.stopLoad.call(this)},w.doTick=function(){switch(this.state){case g.State.IDLE:this.doTickIdle();break;case g.State.WAITING_LEVEL:{var _,I=this.levels,L=this.level,N=I==null||((_=I[L])===null||_===void 0)?void 0:_.details;if(N&&(!N.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(N))break;this.state=g.State.IDLE;break}break}case g.State.FRAG_LOADING_WAITING_RETRY:{var R,D=self.performance.now(),F=this.retryDate;(!F||D>=F||(R=this.media)!==null&&R!==void 0&&R.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=g.State.IDLE)}break;default:break}this.onTickEnd()},w.onTickEnd=function(){E.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},w.doTickIdle=function(){var _,I,L=this.hls,N=this.levelLastLoaded,R=this.levels,D=this.media,F=L.config,M=L.nextLoadLevel;if(N===null||!D&&(this.startFragRequested||!F.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!R||!R[M])return;var U=R[M];this.level=L.nextLoadLevel=M;var B=U.details;if(!B||this.state===g.State.WAITING_LEVEL||B.live&&this.levelLastLoaded!==M){this.state=g.State.WAITING_LEVEL;return}var j=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:D,i.PlaylistLevelType.MAIN);if(j===null)return;var W=j.len,V=this.getMaxBufferLength(U.maxBitrate);if(W>=V)return;if(this._streamEnded(j,B)){var z={};this.altAudio&&(z.type="video"),this.hls.trigger(c.Events.BUFFER_EOS,z),this.state=g.State.ENDED;return}var J=j.end,q=this.getNextFragment(J,B);if(this.couldBacktrack&&!this.fragPrevious&&q&&q.sn!=="initSegment"){var de=q.sn-B.startSN;de>1&&(q=B.fragments[de-1],this.fragmentTracker.removeFragment(q))}if(q&&this.fragmentTracker.getState(q)===r.FragmentState.OK&&this.nextLoadPosition>J){var ae=this.audioOnly&&!this.altAudio?n.ElementaryStreamTypes.AUDIO:n.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(D,ae,i.PlaylistLevelType.MAIN),q=this.getNextFragment(this.nextLoadPosition,B)}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,B):this.loadFragment(q,B,J)},w.loadFragment=function(_,I,L){var N,R=this.fragmentTracker.getState(_);if(this.fragCurrent=_,R===r.FragmentState.BACKTRACKED){var D=this.fragmentTracker.getBacktrackData(_);if(D){this._handleFragmentLoadProgress(D),this._handleFragmentLoadComplete(D);return}else R=r.FragmentState.NOT_LOADED}R===r.FragmentState.NOT_LOADED||R===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,E.prototype.loadFragment.call(this,_,I,L)):R===r.FragmentState.APPENDING?this.reduceMaxBufferLength(_.duration)&&this.fragmentTracker.removeFragment(_):((N=this.media)===null||N===void 0?void 0:N.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},w.getAppendedFrag=function(_){var I=this.fragmentTracker.getAppendedFrag(_,i.PlaylistLevelType.MAIN);return I&&"fragment"in I?I.fragment:I},w.getBufferedFrag=function(_){return this.fragmentTracker.getBufferedFrag(_,i.PlaylistLevelType.MAIN)},w.followingBufferedFrag=function(_){return _?this.getBufferedFrag(_.end+.5):null},w.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},w.nextLevelSwitch=function(){var _=this.levels,I=this.media;if(I!=null&&I.readyState){var L,N=this.getAppendedFrag(I.currentTime);if(N&&N.start>1&&this.flushMainBuffer(0,N.start-1),!I.paused&&_){var R=this.hls.nextLoadLevel,D=_[R],F=this.fragLastKbps;F&&this.fragCurrent?L=this.fragCurrent.duration*D.maxBitrate/(1e3*F)+1:L=0}else L=0;var M=this.getBufferedFrag(I.currentTime+L);if(M){var U=this.followingBufferedFrag(M);if(U){this.abortCurrentFrag();var B=U.maxStartPTS?U.maxStartPTS:U.start,j=U.duration,W=Math.max(M.end,B+Math.min(Math.max(j-this.config.maxFragLookUpTolerance,j*.5),j*.75));this.flushMainBuffer(W,Number.POSITIVE_INFINITY)}}}},w.abortCurrentFrag=function(){var _=this.fragCurrent;this.fragCurrent=null,_!=null&&_.loader&&_.loader.abort(),this.state===g.State.KEY_LOADING&&(this.state=g.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},w.flushMainBuffer=function(_,I){E.prototype.flushMainBuffer.call(this,_,I,this.altAudio?"video":null)},w.onMediaAttached=function(_,I){E.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)},w.onMediaDetaching=function(){var _=this.media;_&&(_.removeEventListener("playing",this.onvplaying),_.removeEventListener("seeked",this.onvseeked),this.onvplaying=this.onvseeked=null,this.videoBuffer=null),this.fragPlaying=null,this.gapController&&(this.gapController.destroy(),this.gapController=null),E.prototype.onMediaDetaching.call(this)},w.onMediaPlaying=function(){this.tick()},w.onMediaSeeked=function(){var _=this.media,I=_?_.currentTime:null;Object(b.isFiniteNumber)(I)&&this.log("Media seeked to "+I.toFixed(3)),this.tick()},w.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(c.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},w.onManifestParsed=function(_,I){var L=!1,N=!1,R;I.levels.forEach(function(D){R=D.audioCodec,R&&(R.indexOf("mp4a.40.2")!==-1&&(L=!0),R.indexOf("mp4a.40.5")!==-1&&(N=!0))}),this.audioCodecSwitch=L&&N&&!Object(f.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},w.onLevelLoading=function(_,I){var L=this.levels;if(!L||this.state!==g.State.IDLE)return;var N=L[I.level];(!N.details||N.details.live&&this.levelLastLoaded!==I.level||this.waitForCdnTuneIn(N.details))&&(this.state=g.State.WAITING_LEVEL)},w.onLevelLoaded=function(_,I){var L,N=this.levels,R=I.level,D=I.details,F=D.totalduration;if(!N){this.warn("Levels were reset while loading level "+R);return}this.log("Level "+R+" loaded ["+D.startSN+","+D.endSN+"], cc ["+D.startCC+", "+D.endCC+"] duration:"+F);var M=this.fragCurrent;M&&(this.state===g.State.FRAG_LOADING||this.state===g.State.FRAG_LOADING_WAITING_RETRY)&&(M.level!==I.level&&M.loader&&(this.state=g.State.IDLE,M.loader.abort()));var U=N[R],B=0;if(D.live||(L=U.details)!==null&&L!==void 0&&L.live){if(D.fragments[0]||(D.deltaUpdateFailed=!0),D.deltaUpdateFailed)return;B=this.alignPlaylists(D,U.details)}if(U.details=D,this.levelLastLoaded=R,this.hls.trigger(c.Events.LEVEL_UPDATED,{details:D,level:R}),this.state===g.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(D))return;this.state=g.State.IDLE}this.startFragRequested?D.live&&this.synchronizeToLiveEdge(D):this.setStartPosition(D,B),this.tick()},w._handleFragmentLoadProgress=function(_){var I,L=_.frag,N=_.part,R=_.payload,D=this.levels;if(!D){this.warn("Levels were reset while fragment load was in progress. Fragment "+L.sn+" of level "+L.level+" will not be buffered");return}var F=D[L.level],M=F.details;if(!M){this.warn("Dropping fragment "+L.sn+" of level "+L.level+" after level details were reset");return}var U=F.videoCodec,B=M.PTSKnown||!M.live,j=(I=L.initSegment)===null||I===void 0?void 0:I.data,W=this._getAudioCodec(F),V=this.transmuxer=this.transmuxer||new e.default(this.hls,i.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),z=N?N.index:-1,J=z!==-1,q=new l.ChunkMetadata(L.level,L.sn,L.stats.chunkCount,R.byteLength,z,J),de=this.initPTS[L.cc];V.push(R,j,W,U,L,N,M.totalduration,B,q,de)},w.onAudioTrackSwitching=function(_,I){var L=this.altAudio,N=!!I.url,R=I.id;if(!N){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var D=this.fragCurrent;D!=null&&D.loader&&(this.log("Switching to main audio track, cancel main fragment load"),D.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var F=this.hls;L&&F.trigger(c.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),F.trigger(c.Events.AUDIO_TRACK_SWITCHED,{id:R})}},w.onAudioTrackSwitched=function(_,I){var L=I.id,N=!!this.hls.audioTracks[L].url;if(N){var R=this.videoBuffer;R&&this.mediaBuffer!==R&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=R)}this.altAudio=N,this.tick()},w.onBufferCreated=function(_,I){var L=I.tracks,N,R,D=!1;for(var F in L){var M=L[F];if(M.id==="main"){if(R=F,N=M,F==="video"){var U=L[F];U&&(this.videoBuffer=U.buffer)}}else D=!0}D&&N?(this.log("Alternate track found, use "+R+".buffered to schedule main fragment loading"),this.mediaBuffer=N.buffer):this.mediaBuffer=this.media},w.onFragBuffered=function(_,I){var L=I.frag,N=I.part;if(L&&L.type!==i.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(L)){this.warn("Fragment "+L.sn+(N?" p: "+N.index:"")+" of level "+L.level+" finished buffering, but was aborted. state: "+this.state),this.state===g.State.PARSED&&(this.state=g.State.IDLE);return}var R=N?N.stats:L.stats;this.fragLastKbps=Math.round(8*R.total/(R.buffering.end-R.loading.first)),L.sn!=="initSegment"&&(this.fragPrevious=L),this.fragBufferedComplete(L,N)},w.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(i.PlaylistLevelType.MAIN,I);break;case a.ErrorDetails.LEVEL_LOAD_ERROR:case a.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==g.State.ERROR&&(I.fatal?(this.warn(""+I.details),this.state=g.State.ERROR):!I.levelRetry&&this.state===g.State.WAITING_LEVEL&&(this.state=g.State.IDLE));break;case a.ErrorDetails.BUFFER_FULL_ERROR:if(I.parent==="main"&&(this.state===g.State.PARSING||this.state===g.State.PARSED)){var L=!0,N=this.getFwdBufferInfo(this.media,i.PlaylistLevelType.MAIN);N&&N.len>.5&&(L=!this.reduceMaxBufferLength(N.len)),L&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},w.checkBuffer=function(){var _=this.media,I=this.gapController;if(!_||!I||!_.readyState)return;var L=o.BufferHelper.getBuffered(_);!this.loadedmetadata&&L.length?(this.loadedmetadata=!0,this.seekToStartPos()):I.poll(this.lastCurrentTime),this.lastCurrentTime=_.currentTime},w.onFragLoadEmergencyAborted=function(){this.state=g.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},w.onBufferFlushed=function(_,I){var L=I.type;if(L!==n.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var N=(L===n.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(N,L,i.PlaylistLevelType.MAIN)}},w.onLevelsUpdated=function(_,I){this.levels=I.levels},w.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},w.seekToStartPos=function(){var _=this.media,I=_.currentTime,L=this.startPosition;if(L>=0&&I<L){if(_.seeking){s.logger.log("could not seek to "+L+", already seeking at "+I);return}var N=o.BufferHelper.getBuffered(_),R=N.length?N.start(0):0,D=R-L;D>0&&(D<this.config.maxBufferHole||D<this.config.maxFragLookUpTolerance)&&(s.logger.log("adjusting start position by "+D+" to match buffer start"),L+=D,this.startPosition=L),this.log("seek to target start position "+L+" from current time "+I),_.currentTime=L}},w._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},w._loadBitrateTestFrag=function(_){var I=this;this._doFragLoad(_).then(function(L){var N=I.hls;if(!L||N.nextLoadLevel||I.fragContextChanged(_))return;I.fragLoadError=0,I.state=g.State.IDLE,I.startFragRequested=!1,I.bitrateTest=!1;var R=_.stats;R.parsing.start=R.parsing.end=R.buffering.start=R.buffering.end=self.performance.now(),N.trigger(c.Events.FRAG_LOADED,L)})},w._handleTransmuxComplete=function(_){var I,L="main",N=this.hls,R=_.remuxResult,D=_.chunkMeta,F=this.getCurrentContext(D);if(!F){this.warn("The loading context changed while buffering fragment "+D.sn+" of level "+D.level+". This chunk will not be buffered."),this.resetLiveStartWhenNotLoaded(D.level);return}var M=F.frag,U=F.part,B=F.level,j=R.video,W=R.text,V=R.id3,z=R.initSegment,J=this.altAudio?void 0:R.audio;if(this.fragContextChanged(M))return;if(this.state=g.State.PARSING,z){z.tracks&&(this._bufferInitSegment(B,z.tracks,M,D),N.trigger(c.Events.FRAG_PARSING_INIT_SEGMENT,{frag:M,id:L,tracks:z.tracks}));var q=z.initPTS,de=z.timescale;Object(b.isFiniteNumber)(q)&&(this.initPTS[M.cc]=q,N.trigger(c.Events.INIT_PTS_FOUND,{frag:M,id:L,initPTS:q,timescale:de}))}if(j&&R.independent!==!1){if(B.details){var ae=j.startPTS,ve=j.endPTS,_e=j.startDTS,Ie=j.endDTS;if(U)U.elementaryStreams[j.type]={startPTS:ae,endPTS:ve,startDTS:_e,endDTS:Ie};else if(j.firstKeyFrame&&j.independent&&(this.couldBacktrack=!0),j.dropped&&j.independent){var He=this.getLoadPosition()+this.config.maxBufferHole;if(He<ae){this.backtrack(M);return}M.setElementaryStreamInfo(j.type,M.start,ve,M.start,Ie,!0)}M.setElementaryStreamInfo(j.type,ae,ve,_e,Ie),this.bufferFragmentData(j,M,U,D)}}else if(R.independent===!1){this.backtrack(M);return}if(J){var me=J.startPTS,ke=J.endPTS,se=J.startDTS,te=J.endDTS;U&&(U.elementaryStreams[n.ElementaryStreamTypes.AUDIO]={startPTS:me,endPTS:ke,startDTS:se,endDTS:te}),M.setElementaryStreamInfo(n.ElementaryStreamTypes.AUDIO,me,ke,se,te),this.bufferFragmentData(J,M,U,D)}if(V!=null&&(I=V.samples)!==null&&I!==void 0&&I.length){var Ge={frag:M,id:L,samples:V.samples};N.trigger(c.Events.FRAG_PARSING_METADATA,Ge)}if(W){var oe={frag:M,id:L,samples:W.samples};N.trigger(c.Events.FRAG_PARSING_USERDATA,oe)}},w._bufferInitSegment=function(_,I,L,N){var R=this;if(this.state!==g.State.PARSING)return;this.audioOnly=!!I.audio&&!I.video,this.altAudio&&!this.audioOnly&&delete I.audio;var D=I.audio,F=I.video,M=I.audiovideo;if(D){var U=_.audioCodec,B=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(U&&(U.indexOf("mp4a.40.5")!==-1?U="mp4a.40.2":U="mp4a.40.5"),D.metadata.channelCount!==1&&B.indexOf("firefox")===-1&&(U="mp4a.40.5")),B.indexOf("android")!==-1&&D.container!=="audio/mpeg"&&(U="mp4a.40.2",this.log("Android: force audio codec to "+U)),_.audioCodec&&_.audioCodec!==U&&this.log('Swapping manifest audio codec "'+_.audioCodec+'" for "'+U+'"'),D.levelCodec=U,D.id="main",this.log("Init audio buffer, container:"+D.container+", codecs[selected/level/parsed]=["+(U||"")+"/"+(_.audioCodec||"")+"/"+D.codec+"]")}F&&(F.levelCodec=_.videoCodec,F.id="main",this.log("Init video buffer, container:"+F.container+", codecs[level/parsed]=["+(_.videoCodec||"")+"/"+F.codec+"]")),M&&this.log("Init audiovideo buffer, container:"+M.container+", codecs[level/parsed]=["+(_.attrs.CODECS||"")+"/"+M.codec+"]"),this.hls.trigger(c.Events.BUFFER_CODECS,I),Object.keys(I).forEach(function(j){var W=I[j],V=W.initSegment;V!=null&&V.byteLength&&R.hls.trigger(c.Events.BUFFER_APPENDING,{type:j,data:V,frag:L,part:null,chunkMeta:N,parent:L.type})}),this.tick()},w.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=g.State.BACKTRACKING},w.checkFragmentChanged=function(){var _=this.media,I=null;if(_&&_.readyState>1&&_.seeking===!1){var L=_.currentTime;if(o.BufferHelper.isBuffered(_,L)?I=this.getAppendedFrag(L):o.BufferHelper.isBuffered(_,L+.1)&&(I=this.getAppendedFrag(L+.1)),I){var N=this.fragPlaying,R=I.level;(!N||I.sn!==N.sn||N.level!==R||I.urlId!==N.urlId)&&(this.hls.trigger(c.Events.FRAG_CHANGED,{frag:I}),(!N||N.level!==R)&&this.hls.trigger(c.Events.LEVEL_SWITCHED,{level:R}),this.fragPlaying=I)}}},h(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}(g.default)},"./src/controller/subtitle-stream-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"SubtitleStreamController",function(){return h});var b=A("./src/events.ts"),g=A("./src/utils/buffer-helper.ts"),f=A("./src/controller/fragment-finders.ts"),c=A("./src/utils/discontinuities.ts"),o=A("./src/controller/level-helper.ts"),r=A("./src/controller/fragment-tracker.ts"),i=A("./src/controller/base-stream-controller.ts"),n=A("./src/types/loader.ts"),e=A("./src/types/level.ts");function l(p,m){for(var v=0;v<m.length;v++){var y=m[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}function t(p,m,v){return m&&l(p.prototype,m),v&&l(p,v),p}function a(p,m){p.prototype=Object.create(m.prototype),p.prototype.constructor=p,s(p,m)}function s(p,m){return s=Object.setPrototypeOf||function(y,E){return y.__proto__=E,y},s(p,m)}var u=500,h=function(p){a(m,p);function m(y,E){var T;return T=p.call(this,y,E,"[subtitle-stream-controller]")||this,T.levels=[],T.currentTrackId=-1,T.tracksBuffered=[],T.mainDetails=null,T._registerListeners(),T}var v=m.prototype;return v.onHandlerDestroying=function(){this._unregisterListeners(),this.mainDetails=null},v._registerListeners=function(){var E=this.hls;E.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),E.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),E.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),E.on(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.on(b.Events.ERROR,this.onError,this),E.on(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),E.on(b.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),E.on(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),E.on(b.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),E.on(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},v._unregisterListeners=function(){var E=this.hls;E.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),E.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),E.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),E.off(b.Events.LEVEL_LOADED,this.onLevelLoaded,this),E.off(b.Events.ERROR,this.onError,this),E.off(b.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),E.off(b.Events.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),E.off(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),E.off(b.Events.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),E.off(b.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)},v.startLoad=function(){this.stopLoad(),this.state=i.State.IDLE,this.setInterval(u),this.tick()},v.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments()},v.onLevelLoaded=function(E,T){this.mainDetails=T.details},v.onSubtitleFragProcessed=function(E,T){var w=T.frag,S=T.success;if(this.fragPrevious=w,this.state=i.State.IDLE,!S)return;var _=this.tracksBuffered[this.currentTrackId];if(!_)return;for(var I,L=w.start,N=0;N<_.length;N++)if(L>=_[N].start&&L<=_[N].end){I=_[N];break}var R=w.start+w.duration;I?I.end=R:(I={start:L,end:R},_.push(I)),this.fragmentTracker.fragBuffered(w)},v.onBufferFlushing=function(E,T){var w=T.startOffset,S=T.endOffset;if(w===0&&S!==Number.POSITIVE_INFINITY){var _=this.currentTrackId,I=this.levels;if(!I.length||!I[_]||!I[_].details)return;var L=I[_].details,N=L.targetduration,R=S-N;if(R<=0)return;T.endOffsetSubtitles=Math.max(0,R),this.tracksBuffered.forEach(function(D){for(var F=0;F<D.length;){if(D[F].end<=R){D.shift();continue}else if(D[F].start<R)D[F].start=R;else break;F++}}),this.fragmentTracker.removeFragmentsInRange(w,R,n.PlaylistLevelType.SUBTITLE)}},v.onError=function(E,T){var w,S=T.frag;if(!S||S.type!==n.PlaylistLevelType.SUBTITLE)return;(w=this.fragCurrent)!==null&&w!==void 0&&w.loader&&this.fragCurrent.loader.abort(),this.state=i.State.IDLE},v.onSubtitleTracksUpdated=function(E,T){var w=this,S=T.subtitleTracks;this.tracksBuffered=[],this.levels=S.map(function(_){return new e.Level(_)}),this.fragmentTracker.removeAllFragments(),this.fragPrevious=null,this.levels.forEach(function(_){w.tracksBuffered[_.id]=[]}),this.mediaBuffer=null},v.onSubtitleTrackSwitch=function(E,T){if(this.currentTrackId=T.id,!this.levels.length||this.currentTrackId===-1){this.clearInterval();return}var w=this.levels[this.currentTrackId];w!=null&&w.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,w&&this.setInterval(u)},v.onSubtitleTrackLoaded=function(E,T){var w,S=T.details,_=T.id,I=this.currentTrackId,L=this.levels;if(!L.length)return;var N=L[I];if(_>=L.length||_!==I||!N)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,S.live||(w=N.details)!==null&&w!==void 0&&w.live){var R=this.mainDetails;if(S.deltaUpdateFailed||!R)return;var D=R.fragments[0];if(!N.details)S.hasProgramDateTime&&R.hasProgramDateTime?Object(c.alignMediaPlaylistByPDT)(S,R):D&&Object(o.addSliding)(S,D.start);else{var F=this.alignPlaylists(S,N.details);F===0&&D&&Object(o.addSliding)(S,D.start)}}if(N.details=S,this.levelLastLoaded=_,this.tick(),S.live&&!this.fragCurrent&&this.media&&this.state===i.State.IDLE){var M=Object(f.findFragmentByPTS)(null,S.fragments,this.media.currentTime,0);M||(this.warn("Subtitle playlist not aligned with playback"),N.details=void 0)}},v._handleFragmentLoadComplete=function(E){var T=E.frag,w=E.payload,S=T.decryptdata,_=this.hls;if(this.fragContextChanged(T))return;if(w&&w.byteLength>0&&S&&S.key&&S.iv&&S.method==="AES-128"){var I=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(w),S.key.buffer,S.iv.buffer).then(function(L){var N=performance.now();_.trigger(b.Events.FRAG_DECRYPTED,{frag:T,payload:L,stats:{tstart:I,tdecrypt:N}})})}},v.doTick=function(){if(!this.media){this.state=i.State.IDLE;return}if(this.state===i.State.IDLE){var E,T=this.currentTrackId,w=this.levels;if(!w.length||!w[T]||!w[T].details)return;var S=w[T].details,_=S.targetduration,I=this.config,L=this.media,N=g.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,L.currentTime-_,I.maxBufferHole),R=N.end,D=N.len,F=this.getMaxBufferLength()+_;if(D>F)return;console.assert(S,"Subtitle track details are defined on idle subtitle stream controller tick");var M=S.fragments,U=M.length,B=S.edge,j,W=this.fragPrevious;if(R<B){var V=I.maxFragLookUpTolerance;j=Object(f.findFragmentByPTS)(W,M,R,V),!j&&W&&W.start<M[0].start&&(j=M[0])}else j=M[U-1];(E=j)!==null&&E!==void 0&&E.encrypted?this.loadKey(j,S):j&&this.fragmentTracker.getState(j)===r.FragmentState.NOT_LOADED&&this.loadFragment(j,S,R)}},v.loadFragment=function(E,T,w){this.fragCurrent=E,p.prototype.loadFragment.call(this,E,T,w)},t(m,[{key:"mediaBufferTimeRanges",get:function(){return this.tracksBuffered[this.currentTrackId]||[]}}]),m}(i.default)},"./src/controller/subtitle-track-controller.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/events.ts"),g=A("./src/utils/texttrack-utils.ts"),f=A("./src/controller/base-playlist-controller.ts"),c=A("./src/types/loader.ts");function o(t,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function r(t,a,s){return a&&o(t.prototype,a),s&&o(t,s),t}function i(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,h){return u.__proto__=h,u},n(t,a)}var e=function(t){i(a,t);function a(u){var h;return h=t.call(this,u,"[subtitle-track-controller]")||this,h.media=null,h.tracks=[],h.groupId=null,h.tracksInGroup=[],h.trackId=-1,h.selectDefaultTrack=!0,h.queuedDefaultTrack=-1,h.trackChangeListener=function(){return h.onTextTracksChanged()},h.asyncPollTrackChange=function(){return h.pollTrackChange(0)},h.useTextTrackPolling=!1,h.subtitlePollingInterval=-1,h.subtitleDisplay=!0,h.registerListeners(),h}var s=a.prototype;return s.destroy=function(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.trackChangeListener=this.asyncPollTrackChange=null,t.prototype.destroy.call(this)},s.registerListeners=function(){var h=this.hls;h.on(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.on(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.on(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.on(b.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.on(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),h.on(b.Events.ERROR,this.onError,this)},s.unregisterListeners=function(){var h=this.hls;h.off(b.Events.MEDIA_ATTACHED,this.onMediaAttached,this),h.off(b.Events.MEDIA_DETACHING,this.onMediaDetaching,this),h.off(b.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(b.Events.MANIFEST_PARSED,this.onManifestParsed,this),h.off(b.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(b.Events.LEVEL_SWITCHING,this.onLevelSwitching,this),h.off(b.Events.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),h.off(b.Events.ERROR,this.onError,this)},s.onMediaAttached=function(h,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)},s.pollTrackChange=function(h){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,h)},s.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 h=l(this.media.textTracks);h.forEach(function(p){Object(g.clearCurrentCues)(p)}),this.subtitleTrack=-1,this.media=null},s.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},s.onManifestParsed=function(h,p){this.tracks=p.subtitleTracks},s.onSubtitleTrackLoaded=function(h,p){var m=p.id,v=p.details,y=this.trackId,E=this.tracksInGroup[y];if(!E){this.warn("Invalid subtitle track id "+m);return}var T=E.details;E.details=p.details,this.log("subtitle track "+m+" loaded ["+v.startSN+"-"+v.endSN+"]"),m===this.trackId&&(this.retryCount=0,this.playlistLoaded(m,p,T))},s.onLevelLoading=function(h,p){this.switchLevel(p.level)},s.onLevelSwitching=function(h,p){this.switchLevel(p.level)},s.switchLevel=function(h){var p=this.hls.levels[h];if(!(p!=null&&p.textGroupIds))return;var m=p.textGroupIds[p.urlId];if(this.groupId!==m){var v=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,y=this.tracks.filter(function(w){return!m||w.groupId===m});this.tracksInGroup=y;var E=this.findTrackId(v==null?void 0:v.name)||this.findTrackId();this.groupId=m;var T={subtitleTracks:y};this.log("Updating subtitle tracks, "+y.length+' track(s) found in "'+m+'" group-id'),this.hls.trigger(b.Events.SUBTITLE_TRACKS_UPDATED,T),E!==-1&&this.setSubtitleTrack(E,v)}},s.findTrackId=function(h){for(var p=this.tracksInGroup,m=0;m<p.length;m++){var v=p[m];if((!this.selectDefaultTrack||v.default)&&(!h||h===v.name))return v.id}return-1},s.onError=function(h,p){if(t.prototype.onError.call(this,h,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)},s.loadPlaylist=function(h){var p=this.tracksInGroup[this.trackId];if(this.shouldLoadTrack(p)){var m=p.id,v=p.groupId,y=p.url;if(h)try{y=h.addDirectives(y)}catch(E){this.warn("Could not construct new URL with HLS Delivery Directives: "+E)}this.log("Loading subtitle playlist for id "+m),this.hls.trigger(b.Events.SUBTITLE_TRACK_LOADING,{url:y,id:m,groupId:v,deliveryDirectives:h||null})}},s.toggleTrackModes=function(h){var p=this,m=this.media,v=this.subtitleDisplay,y=this.trackId;if(!m)return;var E=l(m.textTracks),T=E.filter(function(_){return _.groupId===p.groupId});if(h===-1)[].slice.call(E).forEach(function(_){_.mode="disabled"});else{var w=T[y];w&&(w.mode="disabled")}var S=T[h];S&&(S.mode=v?"showing":"hidden")},s.setSubtitleTrack=function(h,p){var m,v=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=h;return}if(this.trackId!==h&&this.toggleTrackModes(h),this.trackId===h&&(h===-1||(m=v[h])!==null&&m!==void 0&&m.details)||h<-1||h>=v.length)return;this.clearTimer();var y=v[h];if(this.log("Switching to subtitle track "+h),this.trackId=h,y){var E=y.id,T=y.groupId,w=T===void 0?"":T,S=y.name,_=y.type,I=y.url;this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:E,groupId:w,name:S,type:_,url:I});var L=this.switchParams(y.url,p==null?void 0:p.details);this.loadPlaylist(L)}else this.hls.trigger(b.Events.SUBTITLE_TRACK_SWITCH,{id:h})},s.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var h=-1,p=l(this.media.textTracks),m=0;m<p.length;m++)if(p[m].mode==="hidden")h=m;else if(p[m].mode==="showing"){h=m;break}this.subtitleTrack!==h&&(this.subtitleTrack=h)},r(a,[{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(h){this.selectDefaultTrack=!1;var p=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(h,p)}}]),a}(f.default);function l(t){for(var a=[],s=0;s<t.length;s++){var u=t[s];u.kind==="subtitles"&&u.label&&a.push(t[s])}return a}C.default=e},"./src/controller/timeline-controller.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"TimelineController",function(){return l});var b=A("./src/polyfills/number.ts"),g=A("./src/events.ts"),f=A("./src/utils/cea-608-parser.ts"),c=A("./src/utils/output-filter.ts"),o=A("./src/utils/webvtt-parser.ts"),r=A("./src/utils/texttrack-utils.ts"),i=A("./src/utils/imsc1-ttml-parser.ts"),n=A("./src/types/loader.ts"),e=A("./src/utils/logger.ts"),l=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=s(),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 m=new c.default(this,"textTrack1"),v=new c.default(this,"textTrack2"),y=new c.default(this,"textTrack3"),E=new c.default(this,"textTrack4");this.cea608Parser1=new f.default(1,m,v),this.cea608Parser2=new f.default(3,y,E)}p.on(g.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),p.on(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),p.on(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),p.on(g.Events.MANIFEST_LOADED,this.onManifestLoaded,this),p.on(g.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),p.on(g.Events.FRAG_LOADING,this.onFragLoading,this),p.on(g.Events.FRAG_LOADED,this.onFragLoaded,this),p.on(g.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),p.on(g.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),p.on(g.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),p.on(g.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),p.on(g.Events.BUFFER_FLUSHING,this.onBufferFlushing,this)}var h=u.prototype;return h.destroy=function(){var m=this.hls;m.off(g.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),m.off(g.Events.MEDIA_DETACHING,this.onMediaDetaching,this),m.off(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),m.off(g.Events.MANIFEST_LOADED,this.onManifestLoaded,this),m.off(g.Events.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),m.off(g.Events.FRAG_LOADING,this.onFragLoading,this),m.off(g.Events.FRAG_LOADED,this.onFragLoaded,this),m.off(g.Events.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),m.off(g.Events.FRAG_DECRYPTED,this.onFragDecrypted,this),m.off(g.Events.INIT_PTS_FOUND,this.onInitPtsFound,this),m.off(g.Events.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),m.off(g.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null},h.addCues=function(m,v,y,E,T){for(var w=!1,S=T.length;S--;){var _=T[S],I=a(_[0],_[1],v,y);if(I>=0&&(_[0]=Math.min(_[0],v),_[1]=Math.max(_[1],y),w=!0,I/(y-v)>.5))return}if(w||T.push([v,y]),this.config.renderTextTracksNatively){var L=this.captionsTracks[m];this.Cues.newCue(L,v,y,E)}else{var N=this.Cues.newCue(null,v,y,E);this.hls.trigger(g.Events.CUES_PARSED,{type:"captions",cues:N,track:m})}},h.onInitPtsFound=function(m,v){var y=this,E=v.frag,T=v.id,w=v.initPTS,S=v.timescale,_=this.unparsedVttFrags;T==="main"&&(this.initPTS[E.cc]=w,this.timescale[E.cc]=S),_.length&&(this.unparsedVttFrags=[],_.forEach(function(I){y.onFragLoaded(g.Events.FRAG_LOADED,I)}))},h.getExistingTrack=function(m){var v=this.media;if(v)for(var y=0;y<v.textTracks.length;y++){var E=v.textTracks[y];if(E[m])return E}return null},h.createCaptionsTrack=function(m){this.config.renderTextTracksNatively?this.createNativeTrack(m):this.createNonNativeTrack(m)},h.createNativeTrack=function(m){if(this.captionsTracks[m])return;var v=this.captionsProperties,y=this.captionsTracks,E=this.media,T=v[m],w=T.label,S=T.languageCode,_=this.getExistingTrack(m);if(_)y[m]=_,Object(r.clearCurrentCues)(y[m]),Object(r.sendAddTrackEvent)(y[m],E);else{var I=this.createTextTrack("captions",w,S);I&&(I[m]=!0,y[m]=I)}},h.createNonNativeTrack=function(m){if(this.nonNativeCaptionsTracks[m])return;var v=this.captionsProperties[m];if(!v)return;var y=v.label,E={_id:m,label:y,kind:"captions",default:v.media?!!v.media.default:!1,closedCaptions:v.media};this.nonNativeCaptionsTracks[m]=E,this.hls.trigger(g.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[E]})},h.createTextTrack=function(m,v,y){var E=this.media;return E?E.addTextTrack(m,v,y):void 0},h.onMediaAttaching=function(m,v){this.media=v.media,this._cleanTracks()},h.onMediaDetaching=function(){var m=this.captionsTracks;Object.keys(m).forEach(function(v){Object(r.clearCurrentCues)(m[v]),delete m[v]}),this.nonNativeCaptionsTracks={}},h.onManifestLoading=function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=s(),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())},h._cleanTracks=function(){var m=this.media;if(!m)return;var v=m.textTracks;if(v)for(var y=0;y<v.length;y++)Object(r.clearCurrentCues)(v[y])},h.onSubtitleTracksUpdated=function(m,v){var y=this;this.textTracks=[];var E=v.subtitleTracks||[],T=E.some(function(I){return I.textCodec===i.IMSC1_CODEC});if(this.config.enableWebVTT||T&&this.config.enableIMSC1){var w=this.tracks&&E&&this.tracks.length===E.length;if(this.tracks=E||[],this.config.renderTextTracksNatively){var S=this.media?this.media.textTracks:[];this.tracks.forEach(function(I,L){var N;if(L<S.length){for(var R=null,D=0;D<S.length;D++)if(t(S[D],I)){R=S[D];break}R&&(N=R)}N?Object(r.clearCurrentCues)(N):(N=y.createTextTrack("subtitles",I.name,I.lang),N&&(N.mode="disabled")),N&&(N.groupId=I.groupId,y.textTracks.push(N))})}else if(!w&&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(g.Events.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:_})}}},h.onManifestLoaded=function(m,v){var y=this;this.config.enableCEA708Captions&&v.captions&&v.captions.forEach(function(E){var T=/(?:CC|SERVICE)([1-4])/.exec(E.instreamId);if(!T)return;var w="textTrack"+T[1],S=y.captionsProperties[w];if(!S)return;S.label=E.name,E.lang&&(S.languageCode=E.lang),S.media=E})},h.onFragLoading=function(m,v){var y=this.cea608Parser1,E=this.cea608Parser2,T=this.lastSn,w=this.lastPartIndex;if(!this.enabled||!(y&&E))return;if(v.frag.type===n.PlaylistLevelType.MAIN){var S,_,I=v.frag.sn,L=(S=v==null||((_=v.part)===null||_===void 0)?void 0:_.index)!=null?S:-1;I===T+1||I===T&&L===w+1||(y.reset(),E.reset()),this.lastSn=I,this.lastPartIndex=L}},h.onFragLoaded=function(m,v){var y=v.frag,E=v.payload,T=this.initPTS,w=this.unparsedVttFrags;if(y.type===n.PlaylistLevelType.SUBTITLE)if(E.byteLength){if(!Object(b.isFiniteNumber)(T[y.cc])){w.push(v),T.length&&this.hls.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:new Error("Missing initial subtitle PTS")});return}var S=y.decryptdata,_="stats"in v;if(S==null||S.key==null||S.method!=="AES-128"||_){var I=this.tracks[y.level],L=this.vttCCs;L[y.cc]||(L[y.cc]={start:y.start,prevCC:this.prevCC,new:!0},this.prevCC=y.cc),I&&I.textCodec===i.IMSC1_CODEC?this._parseIMSC1(y,E):this._parseVTTs(y,E,L)}}else this.hls.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:y,error:new Error("Empty subtitle payload")})},h._parseIMSC1=function(m,v){var y=this,E=this.hls;Object(i.parseIMSC1)(v,this.initPTS[m.cc],this.timescale[m.cc],function(T){y._appendCues(T,m.level),E.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:m})},function(T){e.logger.log("Failed to parse IMSC1: "+T),E.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:m,error:T})})},h._parseVTTs=function(m,v,y){var E=this,T=this.hls;Object(o.parseWebVTT)(v,this.initPTS[m.cc],this.timescale[m.cc],y,m.cc,m.start,function(w){E._appendCues(w,m.level),T.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:m})},function(w){E._fallbackToIMSC1(m,v),e.logger.log("Failed to parse VTT cue: "+w),T.trigger(g.Events.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:m,error:w})})},h._fallbackToIMSC1=function(m,v){var y=this,E=this.tracks[m.level];E.textCodec||Object(i.parseIMSC1)(v,this.initPTS[m.cc],this.timescale[m.cc],function(){E.textCodec=i.IMSC1_CODEC,y._parseIMSC1(m,v)},function(){E.textCodec="wvtt"})},h._appendCues=function(m,v){var y=this.hls;if(this.config.renderTextTracksNatively){var E=this.textTracks[v];if(E.mode==="disabled")return;m.forEach(function(S){return Object(r.addCueToTrack)(E,S)})}else{var T=this.tracks[v],w=T.default?"default":"subtitles"+v;y.trigger(g.Events.CUES_PARSED,{type:"subtitles",cues:m,track:w})}},h.onFragDecrypted=function(m,v){var y=v.frag;if(y.type===n.PlaylistLevelType.SUBTITLE){if(!Object(b.isFiniteNumber)(this.initPTS[y.cc])){this.unparsedVttFrags.push(v);return}this.onFragLoaded(g.Events.FRAG_LOADED,v)}},h.onSubtitleTracksCleared=function(){this.tracks=[],this.captionsTracks={}},h.onFragParsingUserdata=function(m,v){var y=this.cea608Parser1,E=this.cea608Parser2;if(!this.enabled||!(y&&E))return;for(var T=0;T<v.samples.length;T++){var w=v.samples[T].bytes;if(w){var S=this.extractCea608Data(w);y.addData(v.samples[T].pts,S[0]),E.addData(v.samples[T].pts,S[1])}}},h.onBufferFlushing=function(m,v){var y=v.startOffset,E=v.endOffset,T=v.endOffsetSubtitles,w=v.type,S=this.media;if(!S||S.currentTime<E)return;if(!w||w==="video"){var _=this.captionsTracks;Object.keys(_).forEach(function(L){return Object(r.removeCuesInRange)(_[L],y,E)})}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)})}},h.extractCea608Data=function(m){for(var v=m[0]&31,y=2,E=[[],[]],T=0;T<v;T++){var w=m[y++],S=127&m[y++],_=127&m[y++],I=(4&w)!==0,L=3&w;if(S===0&&_===0)continue;I&&((L===0||L===1)&&(E[L].push(S),E[L].push(_)))}return E},u}();function t(u,h){return u&&u.label===h.name&&!(u.textTrack1||u.textTrack2)}function a(u,h,p,m){return Math.min(h,m)-Math.max(u,p)}function s(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}}}},"./src/crypt/aes-crypto.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return b});var b=function(){function g(c,o){this.subtle=void 0,this.aesIV=void 0,this.subtle=c,this.aesIV=o}var f=g.prototype;return f.decrypt=function(o,r){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},r,o)},g}()},"./src/crypt/aes-decryptor.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"removePadding",function(){return g}),A.d(C,"default",function(){return f});var b=A("./src/utils/typed-array.ts");function g(c){var o=c.byteLength,r=o&&new DataView(c.buffer).getUint8(o-1);return r?Object(b.sliceUint8)(c,0,o-r):c}var f=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 o=c.prototype;return o.uint8ArrayToUint32Array_=function(i){for(var n=new DataView(i),e=new Uint32Array(4),l=0;l<4;l++)e[l]=n.getUint32(l*4);return e},o.initTable=function(){var i=this.sBox,n=this.invSBox,e=this.subMix,l=e[0],t=e[1],a=e[2],s=e[3],u=this.invSubMix,h=u[0],p=u[1],m=u[2],v=u[3],y=new Uint32Array(256),E=0,T=0,w=0;for(w=0;w<256;w++)w<128?y[w]=w<<1:y[w]=w<<1^283;for(w=0;w<256;w++){var S=T^T<<1^T<<2^T<<3^T<<4;S=S>>>8^S&255^99,i[E]=S,n[S]=E;var _=y[E],I=y[_],L=y[I],N=y[S]*257^S*16843008;l[E]=N<<24|N>>>8,t[E]=N<<16|N>>>16,a[E]=N<<8|N>>>24,s[E]=N,N=L*16843009^I*65537^_*257^E*16843008,h[S]=N<<24|N>>>8,p[S]=N<<16|N>>>16,m[S]=N<<8|N>>>24,v[S]=N,E?(E=_^y[y[y[L^_]]],T^=y[y[T]]):E=T=1}},o.expandKey=function(i){for(var n=this.uint8ArrayToUint32Array_(i),e=!0,l=0;l<n.length&&e;)e=n[l]===this.key[l],l++;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,s,u,h=this.keySchedule=new Uint32Array(a),p=this.invKeySchedule=new Uint32Array(a),m=this.sBox,v=this.rcon,y=this.invSubMix,E=y[0],T=y[1],w=y[2],S=y[3],_,I;for(s=0;s<a;s++){if(s<t){_=h[s]=n[s];continue}I=_,s%t===0?(I=I<<8|I>>>24,I=m[I>>>24]<<24|m[I>>>16&255]<<16|m[I>>>8&255]<<8|m[I&255],I^=v[s/t|0]<<24):t>6&&s%t===4&&(I=m[I>>>24]<<24|m[I>>>16&255]<<16|m[I>>>8&255]<<8|m[I&255]),h[s]=_=(h[s-t]^I)>>>0}for(u=0;u<a;u++)s=a-u,u&3?I=h[s]:I=h[s-4],u<4||s<=4?p[u]=I:p[u]=E[m[I>>>24]]^T[m[I>>>16&255]]^w[m[I>>>8&255]]^S[m[I&255]],p[u]=p[u]>>>0},o.networkToHostOrderSwap=function(i){return i<<24|(i&65280)<<8|(i&16711680)>>8|i>>>24},o.decrypt=function(i,n,e){for(var l=this.keySize+6,t=this.invKeySchedule,a=this.invSBox,s=this.invSubMix,u=s[0],h=s[1],p=s[2],m=s[3],v=this.uint8ArrayToUint32Array_(e),y=v[0],E=v[1],T=v[2],w=v[3],S=new Int32Array(i),_=new Int32Array(S.length),I,L,N,R,D,F,M,U,B,j,W,V,z,J,q=this.networkToHostOrderSwap;n<S.length;){for(B=q(S[n]),j=q(S[n+1]),W=q(S[n+2]),V=q(S[n+3]),D=B^t[0],F=V^t[1],M=W^t[2],U=j^t[3],z=4,J=1;J<l;J++)I=u[D>>>24]^h[F>>16&255]^p[M>>8&255]^m[U&255]^t[z],L=u[F>>>24]^h[M>>16&255]^p[U>>8&255]^m[D&255]^t[z+1],N=u[M>>>24]^h[U>>16&255]^p[D>>8&255]^m[F&255]^t[z+2],R=u[U>>>24]^h[D>>16&255]^p[F>>8&255]^m[M&255]^t[z+3],D=I,F=L,M=N,U=R,z=z+4;I=a[D>>>24]<<24^a[F>>16&255]<<16^a[M>>8&255]<<8^a[U&255]^t[z],L=a[F>>>24]<<24^a[M>>16&255]<<16^a[U>>8&255]<<8^a[D&255]^t[z+1],N=a[M>>>24]<<24^a[U>>16&255]<<16^a[D>>8&255]<<8^a[F&255]^t[z+2],R=a[U>>>24]<<24^a[D>>16&255]<<16^a[F>>8&255]<<8^a[M&255]^t[z+3],_[n]=q(I^y),_[n+1]=q(R^E),_[n+2]=q(N^T),_[n+3]=q(L^w),y=B,E=j,T=W,w=V,n=n+4}return _.buffer},c}()},"./src/crypt/decrypter.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return n});var b=A("./src/crypt/aes-crypto.ts"),g=A("./src/crypt/fast-aes-key.ts"),f=A("./src/crypt/aes-decryptor.ts"),c=A("./src/utils/logger.ts"),o=A("./src/utils/mp4-tools.ts"),r=A("./src/utils/typed-array.ts"),i=16,n=function(){function e(t,a,s){var u=s===void 0?{}:s,h=u.removePKCS7Padding,p=h===void 0?!0:h;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 m=self.crypto;m&&(this.subtle=m.subtle||m.webkitSubtle)}catch(v){}this.subtle===null&&(this.config.enableSoftwareAES=!0)}var l=e.prototype;return l.destroy=function(){this.observer=null},l.isSync=function(){return this.config.enableSoftwareAES},l.flush=function(){var a=this.currentResult;if(!a){this.reset();return}var s=new Uint8Array(a);return this.reset(),this.removePKCS7Padding?Object(f.removePadding)(s):s},l.reset=function(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)},l.decrypt=function(a,s,u,h){if(this.config.enableSoftwareAES){this.softwareDecrypt(new Uint8Array(a),s,u);var p=this.flush();p&&h(p.buffer)}else this.webCryptoDecrypt(new Uint8Array(a),s,u).then(h)},l.softwareDecrypt=function(a,s,u){var h=this.currentIV,p=this.currentResult,m=this.remainderData;this.logOnce("JS AES decrypt"),m&&(a=Object(o.appendUint8Array)(m,a),this.remainderData=null);var v=this.getValidChunk(a);if(!v.length)return null;h&&(u=h);var y=this.softwareDecrypter;y||(y=this.softwareDecrypter=new f.default),y.expandKey(s);var E=p;return this.currentResult=y.decrypt(v.buffer,0,u),this.currentIV=Object(r.sliceUint8)(v,-16).buffer,E||null},l.webCryptoDecrypt=function(a,s,u){var h=this,p=this.subtle;return(this.key!==s||!this.fastAesKey)&&(this.key=s,this.fastAesKey=new g.default(p,s)),this.fastAesKey.expandKey().then(function(m){if(!p)return Promise.reject(new Error("web crypto not initialized"));var v=new b.default(p,u);return v.decrypt(a.buffer,m)}).catch(function(m){return h.onWebCryptoError(m,a,s,u)})},l.onWebCryptoError=function(a,s,u,h){return c.logger.warn("[decrypter.ts]: WebCrypto Error, disable WebCrypto API:",a),this.config.enableSoftwareAES=!0,this.logEnabled=!0,this.softwareDecrypt(s,u,h)},l.getValidChunk=function(a){var s=a,u=a.length-a.length%i;return u!==a.length&&(s=Object(r.sliceUint8)(a,0,u),this.remainderData=Object(r.sliceUint8)(a,u)),s},l.logOnce=function(a){if(!this.logEnabled)return;c.logger.log("[decrypter.ts]: "+a),this.logEnabled=!1},e}()},"./src/crypt/fast-aes-key.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return b});var b=function(){function g(c,o){this.subtle=void 0,this.key=void 0,this.subtle=c,this.key=o}var f=g.prototype;return f.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},g}()},"./src/demux/aacdemuxer.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/demux/base-audio-demuxer.ts"),g=A("./src/demux/adts.ts"),f=A("./src/utils/logger.ts"),c=A("./src/demux/id3.ts");function o(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 i=function(n){o(e,n);function e(t,a){var s;return s=n.call(this)||this,s.observer=void 0,s.config=void 0,s.observer=t,s.config=a,s}var l=e.prototype;return l.resetInitSegment=function(a,s,u){n.prototype.resetInitSegment.call(this,a,s,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 s=c.getID3Data(a,0)||[],u=s.length,h=a.length;u<h;u++)if(g.probe(a,u))return f.logger.log("ADTS sync word found !"),!0;return!1},l.canParse=function(a,s){return g.canParse(a,s)},l.appendFrame=function(a,s,u){g.initTrackConfig(a,this.observer,s,u,a.manifestCodec);var h=g.appendFrame(a,s,u,this.initPTS,this.frameIndex);if(h&&h.missing===0)return h},e}(b.default);i.minProbeByteLength=9,C.default=i},"./src/demux/adts.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"getAudioConfig",function(){return c}),A.d(C,"isHeaderPattern",function(){return o}),A.d(C,"getHeaderLength",function(){return r}),A.d(C,"getFullFrameLength",function(){return i}),A.d(C,"canGetFrameLength",function(){return n}),A.d(C,"isHeader",function(){return e}),A.d(C,"canParse",function(){return l}),A.d(C,"probe",function(){return t}),A.d(C,"initTrackConfig",function(){return a}),A.d(C,"getFrameDuration",function(){return s}),A.d(C,"parseFrameHeader",function(){return u}),A.d(C,"appendFrame",function(){return h});var b=A("./src/utils/logger.ts"),g=A("./src/errors.ts"),f=A("./src/events.ts");function c(p,m,v,y){var E,T,w,S,_=navigator.userAgent.toLowerCase(),I=y,L=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];E=((m[v+2]&192)>>>6)+1;var N=(m[v+2]&60)>>>2;if(N>L.length-1){p.trigger(f.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+N});return}return w=(m[v+2]&1)<<2,w|=(m[v+3]&192)>>>6,b.logger.log("manifest codec:"+y+", ADTS type:"+E+", samplingIndex:"+N),/firefox/i.test(_)?N>=6?(E=5,S=new Array(4),T=N-3):(E=2,S=new Array(2),T=N):_.indexOf("android")!==-1?(E=2,S=new Array(2),T=N):(E=5,S=new Array(4),y&&(y.indexOf("mp4a.40.29")!==-1||y.indexOf("mp4a.40.5")!==-1)||!y&&N>=6?T=N-3:((y&&y.indexOf("mp4a.40.2")!==-1&&(N>=6&&w===1||/vivaldi/i.test(_))||!y&&w===1)&&(E=2,S=new Array(2)),T=N)),S[0]=E<<3,S[0]|=(N&14)>>1,S[1]|=(N&1)<<7,S[1]|=w<<3,E===5&&(S[1]|=(T&14)>>1,S[2]=(T&1)<<7,S[2]|=2<<2,S[3]=0),{config:S,samplerate:L[N],channelCount:w,codec:"mp4a.40."+E,manifestCodec:I}}function o(p,m){return p[m]===255&&(p[m+1]&246)===240}function r(p,m){return p[m+1]&1?7:9}function i(p,m){return(p[m+3]&3)<<11|p[m+4]<<3|(p[m+5]&224)>>>5}function n(p,m){return m+5<p.length}function e(p,m){return m+1<p.length&&o(p,m)}function l(p,m){return n(p,m)&&o(p,m)&&i(p,m)<=p.length-m}function t(p,m){if(e(p,m)){var v=r(p,m);if(m+v>=p.length)return!1;var y=i(p,m);if(y<=v)return!1;var E=m+y;return E===p.length||e(p,E)}return!1}function a(p,m,v,y,E){if(!p.samplerate){var T=c(m,v,y,E);if(!T)return;p.config=T.config,p.samplerate=T.samplerate,p.channelCount=T.channelCount,p.codec=T.codec,p.manifestCodec=T.manifestCodec,b.logger.log("parsed codec:"+p.codec+", rate:"+T.samplerate+", channels:"+T.channelCount)}}function s(p){return 1024*9e4/p}function u(p,m,v,y,E){var T=r(p,m),w=i(p,m);if(w-=T,w>0){var S=v+y*E;return{headerLength:T,frameLength:w,stamp:S}}}function h(p,m,v,y,E){var T=s(p.samplerate),w=u(m,v,y,E,T);if(w){var S=w.frameLength,_=w.headerLength,I=w.stamp,L=_+S,N=Math.max(0,v+L-m.length),R;N?(R=new Uint8Array(L-_),R.set(m.subarray(v+_,m.length),0)):R=m.subarray(v+_,v+L);var D={unit:R,pts:I};return N||p.samples.push(D),{sample:D,length:L,missing:N}}}},"./src/demux/base-audio-demuxer.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"initPTSFn",function(){return i});var b=A("./src/polyfills/number.ts"),g=A("./src/demux/id3.ts"),f=A("./src/demux/dummy-demuxed-track.ts"),c=A("./src/utils/mp4-tools.ts"),o=A("./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,s){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,s){},e.demux=function(t,a){this.cachedData&&(t=Object(c.appendUint8Array)(this.cachedData,t),this.cachedData=null);var s=g.getID3Data(t,0),u=s?s.length:0,h,p,m=this._audioTrack,v=this._id3Track,y=s?g.getTimeStamp(s):void 0,E=t.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=i(y,a)),s&&s.length>0&&v.samples.push({pts:this.initPTS,dts:this.initPTS,data:s}),p=this.initPTS;u<E;){if(this.canParse(t,u)){var T=this.appendFrame(m,t,u);T?(this.frameIndex++,p=T.sample.pts,u+=T.length,h=u):u=E}else g.canParse(t,u)?(s=g.getID3Data(t,u),v.samples.push({pts:p,dts:p,data:s}),u+=s.length,h=u):u++;if(u===E&&h!==E){var w=Object(o.sliceUint8)(t,h);this.cachedData?this.cachedData=Object(c.appendUint8Array)(this.cachedData,w):this.cachedData=w}}return{audioTrack:m,avcTrack:Object(f.dummyTrack)(),id3Track:v,textTrack:Object(f.dummyTrack)()}},e.demuxSampleAes=function(t,a,s){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(f.dummyTrack)(),id3Track:this._id3Track,textTrack:Object(f.dummyTrack)()}},e.destroy=function(){},n}(),i=function(e,l){return Object(b.isFiniteNumber)(e)?e*90:l*9e4};C.default=r},"./src/demux/chunk-cache.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return b});var b=function(){function f(){this.chunks=[],this.dataLength=0}var c=f.prototype;return c.push=function(r){this.chunks.push(r),this.dataLength+=r.length},c.flush=function(){var r=this.chunks,i=this.dataLength,n;if(r.length)r.length===1?n=r[0]:n=g(r,i);else return new Uint8Array(0);return this.reset(),n},c.reset=function(){this.chunks.length=0,this.dataLength=0},f}();function g(f,c){for(var o=new Uint8Array(c),r=0,i=0;i<f.length;i++){var n=f[i];o.set(n,r),r+=n.length}return o}},"./src/demux/dummy-demuxed-track.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"dummyTrack",function(){return b});function b(){return{type:"",id:-1,pid:-1,inputTimeScale:9e4,sequenceNumber:-1,samples:[],dropped:0}}},"./src/demux/exp-golomb.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/utils/logger.ts"),g=function(){function f(o){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=o,this.bytesAvailable=o.byteLength,this.word=0,this.bitsAvailable=0}var c=f.prototype;return c.loadWord=function(){var r=this.data,i=this.bytesAvailable,n=r.byteLength-i,e=new Uint8Array(4),l=Math.min(4,i);if(l===0)throw new Error("no bytes available");e.set(r.subarray(n,n+l)),this.word=new DataView(e.buffer).getUint32(0),this.bitsAvailable=l*8,this.bytesAvailable-=l},c.skipBits=function(r){var i;this.bitsAvailable>r?(this.word<<=r,this.bitsAvailable-=r):(r-=this.bitsAvailable,i=r>>3,r-=i>>3,this.bytesAvailable-=i,this.loadWord(),this.word<<=r,this.bitsAvailable-=r)},c.readBits=function(r){var i=Math.min(this.bitsAvailable,r),n=this.word>>>32-i;return r>32&&b.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=i,this.bitsAvailable>0?this.word<<=i:this.bytesAvailable>0&&this.loadWord(),i=r-i,i>0&&this.bitsAvailable?n<<i|this.readBits(i):n},c.skipLZ=function(){var r;for(r=0;r<this.bitsAvailable;++r)if((this.word&2147483648>>>r)!==0)return this.word<<=r,this.bitsAvailable-=r,r;return this.loadWord(),r+this.skipLZ()},c.skipUEG=function(){this.skipBits(1+this.skipLZ())},c.skipEG=function(){this.skipBits(1+this.skipLZ())},c.readUEG=function(){var r=this.skipLZ();return this.readBits(r+1)-1},c.readEG=function(){var r=this.readUEG();return 1&r?1+r>>>1:-1*(r>>>1)},c.readBoolean=function(){return this.readBits(1)===1},c.readUByte=function(){return this.readBits(8)},c.readUShort=function(){return this.readBits(16)},c.readUInt=function(){return this.readBits(32)},c.skipScalingList=function(r){for(var i=8,n=8,e,l=0;l<r;l++)n!==0&&(e=this.readEG(),n=(i+e+256)%256),i=n===0?i:n},c.readSPS=function(){var r=0,i=0,n=0,e=0,l,t,a,s=this.readUByte.bind(this),u=this.readBits.bind(this),h=this.readUEG.bind(this),p=this.readBoolean.bind(this),m=this.skipBits.bind(this),v=this.skipEG.bind(this),y=this.skipUEG.bind(this),E=this.skipScalingList.bind(this);s();var T=s();if(u(5),m(3),s(),y(),T===100||T===110||T===122||T===244||T===44||T===83||T===86||T===118||T===128){var w=h();if(w===3&&m(1),y(),y(),m(1),p())for(t=w!==3?8:12,a=0;a<t;a++)p()&&(a<6?E(16):E(64))}y();var S=h();if(S===0)h();else if(S===1)for(m(1),v(),v(),l=h(),a=0;a<l;a++)v();y(),m(1);var _=h(),I=h(),L=u(1);L===0&&m(1),m(1),p()&&(r=h(),i=h(),n=h(),e=h());var N=[1,1];if(p()&&p()){var R=s();switch(R){case 1:N=[1,1];break;case 2:N=[12,11];break;case 3:N=[10,11];break;case 4:N=[16,11];break;case 5:N=[40,33];break;case 6:N=[24,11];break;case 7:N=[20,11];break;case 8:N=[32,11];break;case 9:N=[80,33];break;case 10:N=[18,11];break;case 11:N=[15,11];break;case 12:N=[64,33];break;case 13:N=[160,99];break;case 14:N=[4,3];break;case 15:N=[3,2];break;case 16:N=[2,1];break;case 255:{N=[s()<<8|s(),s()<<8|s()];break}}}return{width:Math.ceil((_+1)*16-r*2-i*2),height:(2-L)*(I+1)*16-(L?2:4)*(n+e),pixelRatio:N}},c.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},f}();C.default=g},"./src/demux/id3.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"isHeader",function(){return b}),A.d(C,"isFooter",function(){return g}),A.d(C,"getID3Data",function(){return f}),A.d(C,"canParse",function(){return o}),A.d(C,"getTimeStamp",function(){return r}),A.d(C,"isTimeStampFrame",function(){return i}),A.d(C,"getID3Frames",function(){return e}),A.d(C,"decodeFrame",function(){return l}),A.d(C,"utf8ArrayToStr",function(){return h}),A.d(C,"testables",function(){return p});var b=function(E,T){return T+10<=E.length&&(E[T]===73&&E[T+1]===68&&E[T+2]===51&&(E[T+3]<255&&E[T+4]<255&&(E[T+6]<128&&E[T+7]<128&&E[T+8]<128&&E[T+9]<128)))},g=function(E,T){return T+10<=E.length&&(E[T]===51&&E[T+1]===68&&E[T+2]===73&&(E[T+3]<255&&E[T+4]<255&&(E[T+6]<128&&E[T+7]<128&&E[T+8]<128&&E[T+9]<128)))},f=function(E,T){for(var w=T,S=0;b(E,T);){S+=10;var _=c(E,T+6);S+=_,g(E,T+10)&&(S+=10),T+=S}return S>0?E.subarray(w,w+S):void 0},c=function(E,T){var w=0;return w=(E[T]&127)<<21,w|=(E[T+1]&127)<<14,w|=(E[T+2]&127)<<7,w|=E[T+3]&127,w},o=function(E,T){return b(E,T)&&c(E,T+6)+10<=E.length-T},r=function(E){for(var T=e(E),w=0;w<T.length;w++){var S=T[w];if(i(S))return u(S)}return},i=function(E){return E&&E.key==="PRIV"&&E.info==="com.apple.streaming.transportStreamTimestamp"},n=function(E){var T=String.fromCharCode(E[0],E[1],E[2],E[3]),w=c(E,4),S=10;return{type:T,size:w,data:E.subarray(S,S+w)}},e=function(E){for(var T=0,w=[];b(E,T);){var S=c(E,T+6);T+=10;for(var _=T+S;T+8<_;){var I=n(E.subarray(T)),L=l(I);L&&w.push(L),T+=I.size+10}g(E,T)&&(T+=10)}return w},l=function(E){return E.type==="PRIV"?t(E):E.type[0]==="W"?s(E):a(E)},t=function(E){if(E.size<2)return;var T=h(E.data,!0),w=new Uint8Array(E.data.subarray(T.length+1));return{key:E.type,info:T,data:w.buffer}},a=function(E){if(E.size<2)return;if(E.type==="TXXX"){var T=1,w=h(E.data.subarray(T),!0);T+=w.length+1;var S=h(E.data.subarray(T));return{key:E.type,info:w,data:S}}var _=h(E.data.subarray(1));return{key:E.type,data:_}},s=function(E){if(E.type==="WXXX"){if(E.size<2)return;var T=1,w=h(E.data.subarray(T),!0);T+=w.length+1;var S=h(E.data.subarray(T));return{key:E.type,info:w,data:S}}var _=h(E.data);return{key:E.type,data:_}},u=function(E){if(E.data.byteLength===8){var T=new Uint8Array(E.data),w=T[3]&1,S=(T[4]<<23)+(T[5]<<15)+(T[6]<<7)+T[7];return S/=45,w&&(S+=4772185884e-2),Math.round(S)}return},h=function(E,T){T===void 0&&(T=!1);var w=v();if(w){var S=w.decode(E);if(T){var _=S.indexOf("\0");return _!==-1?S.substring(0,_):S}return S.replace(/\0/g,"")}for(var I=E.length,L,N,R,D="",F=0;F<I;){if(L=E[F++],L===0&&T)return D;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:D+=String.fromCharCode(L);break;case 12:case 13:N=E[F++],D+=String.fromCharCode((L&31)<<6|N&63);break;case 14:N=E[F++],R=E[F++],D+=String.fromCharCode((L&15)<<12|(N&63)<<6|(R&63)<<0);break;default:}}return D},p={decodeTextFrame:a},m;function v(){return!m&&typeof self.TextDecoder!="undefined"&&(m=new self.TextDecoder("utf-8")),m}},"./src/demux/mp3demuxer.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/demux/base-audio-demuxer.ts"),g=A("./src/demux/id3.ts"),f=A("./src/utils/logger.ts"),c=A("./src/demux/mpegaudio.ts");function o(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 i=function(n){o(e,n);function e(){return n.apply(this,arguments)||this}var l=e.prototype;return l.resetInitSegment=function(a,s,u){n.prototype.resetInitSegment.call(this,a,s,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 s=g.getID3Data(a,0)||[],u=s.length,h=a.length;u<h;u++)if(c.probe(a,u))return f.logger.log("MPEG Audio sync word found !"),!0;return!1},l.canParse=function(a,s){return c.canParse(a,s)},l.appendFrame=function(a,s,u){return this.initPTS===null?void 0:c.appendFrame(a,s,u,this.initPTS,this.frameIndex)},e}(b.default);i.minProbeByteLength=4,C.default=i},"./src/demux/mp4demuxer.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/utils/mp4-tools.ts"),g=A("./src/demux/dummy-demuxed-track.ts"),f=function(){function c(r,i){this.remainderData=null,this.config=void 0,this.config=i}var o=c.prototype;return o.resetTimeStamp=function(){},o.resetInitSegment=function(){},o.resetContiguity=function(){},c.probe=function(i){return Object(b.findBox)({data:i,start:0,end:Math.min(i.length,16384)},["moof"]).length>0},o.demux=function(i){var n=i,e=Object(g.dummyTrack)();if(this.config.progressive){this.remainderData&&(n=Object(b.appendUint8Array)(this.remainderData,i));var l=Object(b.segmentValidRange)(n);this.remainderData=l.remainder,e.samples=l.valid||new Uint8Array}else e.samples=n;return{audioTrack:Object(g.dummyTrack)(),avcTrack:e,id3Track:Object(g.dummyTrack)(),textTrack:Object(g.dummyTrack)()}},o.flush=function(){var i=Object(g.dummyTrack)();return i.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(g.dummyTrack)(),avcTrack:i,id3Track:Object(g.dummyTrack)(),textTrack:Object(g.dummyTrack)()}},o.demuxSampleAes=function(i,n,e){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},o.destroy=function(){},c}();f.minProbeByteLength=1024,C.default=f},"./src/demux/mpegaudio.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"appendFrame",function(){return r}),A.d(C,"parseHeader",function(){return i}),A.d(C,"isHeaderPattern",function(){return n}),A.d(C,"isHeader",function(){return e}),A.d(C,"canParse",function(){return l}),A.d(C,"probe",function(){return t});var b=null,g=[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],f=[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]],o=[0,1,1,4];function r(a,s,u,h,p){if(u+24>s.length)return;var m=i(s,u);if(m&&u+m.frameLength<=s.length){var v=m.samplesPerFrame*9e4/m.sampleRate,y=h+p*v,E={unit:s.subarray(u,u+m.frameLength),pts:y,dts:y};return a.config=[],a.channelCount=m.channelCount,a.samplerate=m.sampleRate,a.samples.push(E),{sample:E,length:m.frameLength,missing:0}}}function i(a,s){var u=a[s+1]>>3&3,h=a[s+1]>>1&3,p=a[s+2]>>4&15,m=a[s+2]>>2&3;if(u!==1&&p!==0&&p!==15&&m!==3){var v=a[s+2]>>1&1,y=a[s+3]>>6,E=u===3?3-h:h===3?3:4,T=g[E*14+p-1]*1e3,w=u===3?0:u===2?1:2,S=f[w*3+m],_=y===3?1:2,I=c[u][h],L=o[h],N=I*8*L,R=Math.floor(I*T/S+v)*L;if(b===null){var D=navigator.userAgent||"",F=D.match(/Chrome\/(\d+)/i);b=F?parseInt(F[1]):0}var M=!!b&&b<=87;return M&&h===2&&T>=224e3&&y===0&&(a[s+3]=a[s+3]|128),{sampleRate:S,channelCount:_,frameLength:R,samplesPerFrame:N}}}function n(a,s){return a[s]===255&&(a[s+1]&224)===224&&(a[s+1]&6)!==0}function e(a,s){return s+1<a.length&&n(a,s)}function l(a,s){var u=4;return n(a,s)&&u<=a.length-s}function t(a,s){if(s+1<a.length&&n(a,s)){var u=4,h=i(a,s),p=u;h!=null&&h.frameLength&&(p=h.frameLength);var m=s+p;return m===a.length||e(a,m)}return!1}},"./src/demux/sample-aes.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/crypt/decrypter.ts"),g=A("./src/demux/tsdemuxer.ts"),f=function(){function c(r,i,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new b.default(r,i,{removePKCS7Padding:!1})}var o=c.prototype;return o.decryptBuffer=function(i,n){this.decrypter.decrypt(i,this.keyData.key.buffer,this.keyData.iv.buffer,n)},o.decryptAacSample=function(i,n,e,l){var t=i[n].unit,a=t.subarray(16,t.length-t.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length),u=this;this.decryptBuffer(s,function(h){var p=new Uint8Array(h);t.set(p,16),l||u.decryptAacSamples(i,n+1,e)})},o.decryptAacSamples=function(i,n,e){for(;;n++){if(n>=i.length){e();return}if(i[n].unit.length<32)continue;var l=this.decrypter.isSync();if(this.decryptAacSample(i,n,e,l),!l)return}},o.getAvcEncryptedData=function(i){for(var n=Math.floor((i.length-48)/160)*16+16,e=new Int8Array(n),l=0,t=32;t<i.length-16;t+=160,l+=16)e.set(i.subarray(t,t+16),l);return e},o.getAvcDecryptedUnit=function(i,n){for(var e=new Uint8Array(n),l=0,t=32;t<i.length-16;t+=160,l+=16)i.set(e.subarray(l,l+16),t);return i},o.decryptAvcSample=function(i,n,e,l,t,a){var s=Object(g.discardEPB)(t.data),u=this.getAvcEncryptedData(s),h=this;this.decryptBuffer(u.buffer,function(p){t.data=h.getAvcDecryptedUnit(s,p),a||h.decryptAvcSamples(i,n,e+1,l)})},o.decryptAvcSamples=function(i,n,e,l){if(i instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,e=0){if(n>=i.length){l();return}for(var t=i[n].units;!(e>=t.length);e++){var a=t[e];if(a.data.length<=48||a.type!==1&&a.type!==5)continue;var s=this.decrypter.isSync();if(this.decryptAvcSample(i,n,e,l,a,s),!s)return}}},c}();C.default=f},"./src/demux/transmuxer-interface.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return t});var b=A("./node_modules/webworkify-webpack/index.js"),g=A.n(b),f=A("./src/events.ts"),c=A("./src/demux/transmuxer.ts"),o=A("./src/utils/logger.ts"),r=A("./src/errors.ts"),i=A("./src/utils/mediasource-helper.ts"),n=A("./node_modules/eventemitter3/index.js"),e=A.n(n),l=Object(i.getMediaSource)()||{isTypeSupported:function(){return!1}},t=function(){function a(u,h,p,m){var v=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=h,this.onTransmuxComplete=p,this.onFlush=m;var y=u.config,E=function(I,L){L=L||{},L.frag=v.frag,L.id=v.id,u.trigger(I,L)};this.observer=new n.EventEmitter,this.observer.on(f.Events.FRAG_DECRYPTED,E),this.observer.on(f.Events.ERROR,E);var T={mp4:l.isTypeSupported("video/mp4"),mpeg:l.isTypeSupported("audio/mpeg"),mp3:l.isTypeSupported('audio/mp4; codecs="mp3"')},w=navigator.vendor;if(y.enableWorker&&typeof Worker!="undefined"){o.logger.log("demuxing in webworker");var S;try{S=this.worker=b("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),S.addEventListener("message",this.onwmsg),S.onerror=function(_){u.trigger(f.Events.ERROR,{type:r.ErrorTypes.OTHER_ERROR,details:r.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(_.message+" ("+_.filename+":"+_.lineno+")")})},S.postMessage({cmd:"init",typeSupported:T,vendor:w,id:h,config:JSON.stringify(y)})}catch(_){o.logger.warn("Error in worker:",_),o.logger.error("Error while initializing DemuxerWorker, fallback to inline"),S&&self.URL.revokeObjectURL(S.objectURL),this.transmuxer=new c.default(this.observer,T,y,w,h),this.worker=null}}else this.transmuxer=new c.default(this.observer,T,y,w,h)}var s=a.prototype;return s.destroy=function(){var h=this.worker;if(h)h.removeEventListener("message",this.onwmsg),h.terminate(),this.worker=null;else{var p=this.transmuxer;p&&(p.destroy(),this.transmuxer=null)}var m=this.observer;m&&m.removeAllListeners(),this.observer=null},s.push=function(h,p,m,v,y,E,T,w,S,_){var I,L,N=this;S.transmuxing.start=self.performance.now();var R=this.transmuxer,D=this.worker,F=E?E.start:y.start,M=y.decryptdata,U=this.frag,B=!(U&&y.cc===U.cc),j=!(U&&S.level===U.level),W=U?S.sn-U.sn:-1,V=this.part?S.part-this.part.index:1,z=!j&&(W===1||W===0&&V===1),J=self.performance.now();(j||W||y.stats.parsing.start===0)&&(y.stats.parsing.start=J),E&&(V||!z)&&(E.stats.parsing.start=J);var q=!(U&&((I=y.initSegment)===null||I===void 0?void 0:I.url)===((L=U.initSegment)===null||L===void 0?void 0:L.url)),de=new c.TransmuxState(B,z,w,j,F,q);if(!z||B||q){o.logger.log("[transmuxer-interface, "+y.type+"]: Starting new transmux session for sn: "+S.sn+" p: "+S.part+" level: "+S.level+" id: "+S.id+`
discontinuity: `+B+`
trackSwitch: `+j+`
contiguous: `+z+`
accurateTimeOffset: `+w+`
timeOffset: `+F+`
initSegmentChange: `+q);var ae=new c.TransmuxConfig(m,v,p,T,_);this.configureTransmuxer(ae)}if(this.frag=y,this.part=E,D)D.postMessage({cmd:"demux",data:h,decryptdata:M,chunkMeta:S,state:de},h instanceof ArrayBuffer?[h]:[]);else if(R){var ve=R.push(h,M,S,de);Object(c.isPromise)(ve)?ve.then(function(_e){N.handleTransmuxComplete(_e)}):this.handleTransmuxComplete(ve)}},s.flush=function(h){var p=this;h.transmuxing.start=self.performance.now();var m=this.transmuxer,v=this.worker;if(v)v.postMessage({cmd:"flush",chunkMeta:h});else if(m){var y=m.flush(h);Object(c.isPromise)(y)?y.then(function(E){p.handleFlushResult(E,h)}):this.handleFlushResult(y,h)}},s.handleFlushResult=function(h,p){var m=this;h.forEach(function(v){m.handleTransmuxComplete(v)}),this.onFlush(p)},s.onWorkerMessage=function(h){var p=h.data,m=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,m.trigger(p.event,p.data);break}}},s.configureTransmuxer=function(h){var p=this.worker,m=this.transmuxer;p?p.postMessage({cmd:"configure",config:h}):m&&m.configure(h)},s.handleTransmuxComplete=function(h){h.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(h)},a}()},"./src/demux/transmuxer-worker.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return r});var b=A("./src/demux/transmuxer.ts"),g=A("./src/events.ts"),f=A("./src/utils/logger.ts"),c=A("./node_modules/eventemitter3/index.js"),o=A.n(c);function r(t){var a=new c.EventEmitter,s=function(h,p){t.postMessage({event:h,data:p})};a.on(g.Events.FRAG_DECRYPTED,s),a.on(g.Events.ERROR,s),t.addEventListener("message",function(u){var h=u.data;switch(h.cmd){case"init":{var p=JSON.parse(h.config);t.transmuxer=new b.default(a,h.typeSupported,p,h.vendor,h.id),Object(f.enableLogs)(p.debug),s("init",null);break}case"configure":{t.transmuxer.configure(h.config);break}case"demux":{var m=t.transmuxer.push(h.data,h.decryptdata,h.chunkMeta,h.state);Object(b.isPromise)(m)?m.then(function(E){i(t,E)}):i(t,m);break}case"flush":{var v=h.chunkMeta,y=t.transmuxer.flush(v);Object(b.isPromise)(y)?y.then(function(E){e(t,E,v)}):e(t,y,v);break}default:break}})}function i(t,a){if(l(a.remuxResult))return;var s=[],u=a.remuxResult,h=u.audio,p=u.video;h&&n(s,h),p&&n(s,p),t.postMessage({event:"transmuxComplete",data:a},s)}function n(t,a){a.data1&&t.push(a.data1.buffer),a.data2&&t.push(a.data2.buffer)}function e(t,a,s){a.forEach(function(u){i(t,u)}),t.postMessage({event:"flush",data:s})}function l(t){return!t.audio&&!t.video&&!t.text&&!t.id3&&!t.initSegment}},"./src/demux/transmuxer.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return p}),A.d(C,"isPromise",function(){return y}),A.d(C,"TransmuxConfig",function(){return E}),A.d(C,"TransmuxState",function(){return T});var b=A("./src/events.ts"),g=A("./src/errors.ts"),f=A("./src/crypt/decrypter.ts"),c=A("./src/demux/aacdemuxer.ts"),o=A("./src/demux/mp4demuxer.ts"),r=A("./src/demux/tsdemuxer.ts"),i=A("./src/demux/mp3demuxer.ts"),n=A("./src/remux/mp4-remuxer.ts"),e=A("./src/remux/passthrough-remuxer.ts"),l=A("./src/demux/chunk-cache.ts"),t=A("./src/utils/mp4-tools.ts"),a=A("./src/utils/logger.ts"),s;try{s=self.performance.now.bind(self.performance)}catch(w){a.logger.debug("Unable to use Performance API on this environment"),s=self.Date.now}var u=[{demux:r.default,remux:n.default},{demux:o.default,remux:e.default},{demux:c.default,remux:n.default},{demux:i.default,remux:n.default}],h=1024;u.forEach(function(w){var S=w.demux;h=Math.max(h,S.minProbeByteLength)});var p=function(){function w(_,I,L,N,R){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 l.default,this.observer=_,this.typeSupported=I,this.config=L,this.vendor=N,this.id=R}var S=w.prototype;return S.configure=function(I){this.transmuxConfig=I,this.decrypter&&this.decrypter.reset()},S.push=function(I,L,N,R){var D=this,F=N.transmuxing;F.executeStart=s();var M=new Uint8Array(I),U=this.cache,B=this.config,j=this.currentTransmuxState,W=this.transmuxConfig;R&&(this.currentTransmuxState=R);var V=m(M,L);if(V&&V.method==="AES-128"){var z=this.getDecrypter();if(B.enableSoftwareAES){var J=z.softwareDecrypt(M,V.key.buffer,V.iv.buffer);if(!J)return F.executeEnd=s(),v(N);M=new Uint8Array(J)}else return this.decryptionPromise=z.webCryptoDecrypt(M,V.key.buffer,V.iv.buffer).then(function(Q){var ye=D.push(Q,null,N);return D.decryptionPromise=null,ye}),this.decryptionPromise}var q=R||j,de=q.contiguous,ae=q.discontinuity,ve=q.trackSwitch,_e=q.accurateTimeOffset,Ie=q.timeOffset,He=q.initSegmentChange,me=W.audioCodec,ke=W.videoCodec,se=W.defaultInitPts,te=W.duration,Ge=W.initSegmentData;if((ae||ve||He)&&this.resetInitSegment(Ge,me,ke,te),(ae||He)&&this.resetInitialTimestamp(se),de||this.resetContiguity(),this.needsProbing(M,ae,ve)){if(U.dataLength){var oe=U.flush();M=Object(t.appendUint8Array)(oe,M)}this.configureTransmuxer(M,W)}var Y=this.transmux(M,V,Ie,_e,N),G=this.currentTransmuxState;return G.contiguous=!0,G.discontinuity=!1,G.trackSwitch=!1,F.executeEnd=s(),Y},S.flush=function(I){var L=this,N=I.transmuxing;N.executeStart=s();var R=this.decrypter,D=this.cache,F=this.currentTransmuxState,M=this.decryptionPromise;if(M)return M.then(function(){return L.flush(I)});var U=[],B=F.timeOffset;if(R){var j=R.flush();j&&U.push(this.push(j,null,I))}var W=D.dataLength;D.reset();var V=this.demuxer,z=this.remuxer;if(!V||!z)return W>=h&&this.observer.emit(b.Events.ERROR,b.Events.ERROR,{type:g.ErrorTypes.MEDIA_ERROR,details:g.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),N.executeEnd=s(),[v(I)];var J=V.flush(B);return y(J)?J.then(function(q){return L.flushRemux(U,q,I),U}):(this.flushRemux(U,J,I),U)},S.flushRemux=function(I,L,N){var R=L.audioTrack,D=L.avcTrack,F=L.id3Track,M=L.textTrack,U=this.currentTransmuxState,B=U.accurateTimeOffset,j=U.timeOffset;a.logger.log("[transmuxer.ts]: Flushed fragment "+N.sn+(N.part>-1?" p: "+N.part:"")+" of level "+N.level);var W=this.remuxer.remux(R,D,F,M,j,B,!0,this.id);I.push({remuxResult:W,chunkMeta:N}),N.transmuxing.executeEnd=s()},S.resetInitialTimestamp=function(I){var L=this.demuxer,N=this.remuxer;if(!L||!N)return;L.resetTimeStamp(I),N.resetTimeStamp(I)},S.resetContiguity=function(){var I=this.demuxer,L=this.remuxer;if(!I||!L)return;I.resetContiguity(),L.resetNextTimestamp()},S.resetInitSegment=function(I,L,N,R){var D=this.demuxer,F=this.remuxer;if(!D||!F)return;D.resetInitSegment(L,N,R),F.resetInitSegment(I,L,N)},S.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},S.transmux=function(I,L,N,R,D){var F;return L&&L.method==="SAMPLE-AES"?F=this.transmuxSampleAes(I,L,N,R,D):F=this.transmuxUnencrypted(I,N,R,D),F},S.transmuxUnencrypted=function(I,L,N,R){var D=this.demuxer.demux(I,L,!1,!this.config.progressive),F=D.audioTrack,M=D.avcTrack,U=D.id3Track,B=D.textTrack,j=this.remuxer.remux(F,M,U,B,L,N,!1,this.id);return{remuxResult:j,chunkMeta:R}},S.transmuxSampleAes=function(I,L,N,R,D){var F=this;return this.demuxer.demuxSampleAes(I,L,N).then(function(M){var U=F.remuxer.remux(M.audioTrack,M.avcTrack,M.id3Track,M.textTrack,N,R,!1,F.id);return{remuxResult:U,chunkMeta:D}})},S.configureTransmuxer=function(I,L){for(var N=this.config,R=this.observer,D=this.typeSupported,F=this.vendor,M=L.audioCodec,U=L.defaultInitPts,B=L.duration,j=L.initSegmentData,W=L.videoCodec,V,z=0,J=u.length;z<J;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:o.default,remux:e.default});var q=this.demuxer,de=this.remuxer,ae=V.remux,ve=V.demux;(!de||!(de instanceof ae))&&(this.remuxer=new ae(R,N,D,F)),(!q||!(q instanceof ve))&&(this.demuxer=new ve(R,N,D),this.probe=ve.probe),this.resetInitSegment(j,M,W,B),this.resetInitialTimestamp(U)},S.needsProbing=function(I,L,N){return!this.demuxer||!this.remuxer||L||N},S.getDecrypter=function(){var I=this.decrypter;return I||(I=this.decrypter=new f.default(this.observer,this.config)),I},w}();function m(w,S){var _=null;return w.byteLength>0&&S!=null&&S.key!=null&&S.iv!==null&&S.method!=null&&(_=S),_}var v=function(S){return{remuxResult:{},chunkMeta:S}};function y(w){return"then"in w&&w.then instanceof Function}var E=function(S,_,I,L,N){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=S,this.videoCodec=_,this.initSegmentData=I,this.duration=L,this.defaultInitPts=N},T=function(S,_,I,L,N,R){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=S,this.contiguous=_,this.accurateTimeOffset=I,this.trackSwitch=L,this.timeOffset=N,this.initSegmentChange=R}},"./src/demux/tsdemuxer.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"discardEPB",function(){return v});var b=A("./src/demux/adts.ts"),g=A("./src/demux/mpegaudio.ts"),f=A("./src/demux/exp-golomb.ts"),c=A("./src/demux/id3.ts"),o=A("./src/demux/sample-aes.ts"),r=A("./src/events.ts"),i=A("./src/utils/mp4-tools.ts"),n=A("./src/utils/logger.ts"),e=A("./src/errors.ts"),l={video:1,audio:2,id3:3,text:4},t=function(){function y(T,w,S){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=w,this.typeSupported=S}y.probe=function(w){var S=y.syncOffset(w);return S<0?!1:(S&&n.logger.warn("MPEG2-TS detected but first sync word found @ offset "+S+", junk ahead ?"),!0)},y.syncOffset=function(w){for(var S=Math.min(1e3,w.length-3*188),_=0;_<S;){if(w[_]===71&&w[_+188]===71&&w[_+2*188]===71)return _;_++}return-1},y.createTrack=function(w,S){return{container:w==="video"||w==="audio"?"video/mp2t":void 0,type:w,id:l[w],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:w==="audio"?S:void 0}};var E=y.prototype;return E.resetInitSegment=function(w,S,_){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=y.createTrack("video",_),this._audioTrack=y.createTrack("audio",_),this._id3Track=y.createTrack("id3",_),this._txtTrack=y.createTrack("text",_),this._audioTrack.isAAC=!0,this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=w,this.videoCodec=S,this._duration=_},E.resetTimeStamp=function(){},E.resetContiguity=function(){var w=this._audioTrack,S=this._avcTrack,_=this._id3Track;w&&(w.pesData=null),S&&(S.pesData=null),_&&(_.pesData=null),this.aacOverFlow=null,this.aacLastPTS=null},E.demux=function(w,S,_,I){_===void 0&&(_=!1),I===void 0&&(I=!1),_||(this.sampleAes=null);var L,N=this._avcTrack,R=this._audioTrack,D=this._id3Track,F=N.pid,M=N.pesData,U=R.pid,B=D.pid,j=R.pesData,W=D.pesData,V=!1,z=this.pmtParsed,J=this._pmtId,q=w.length;if(this.remainderData&&(w=Object(i.appendUint8Array)(this.remainderData,w),q=w.length,this.remainderData=null),q<188&&!I)return this.remainderData=w,{audioTrack:R,avcTrack:N,id3Track:D,textTrack:this._txtTrack};var de=Math.max(0,y.syncOffset(w));q-=(q+de)%188,q<w.byteLength&&!I&&(this.remainderData=new Uint8Array(w.buffer,q,w.buffer.byteLength-q));for(var ae=0,ve=de;ve<q;ve+=188)if(w[ve]===71){var _e=!!(w[ve+1]&64),Ie=((w[ve+1]&31)<<8)+w[ve+2],He=(w[ve+3]&48)>>4,me=void 0;if(He>1){if(me=ve+5+w[ve+4],me===ve+188)continue}else me=ve+4;switch(Ie){case F:_e&&(M&&(L=h(M))&&this.parseAVCPES(L,!1),M={data:[],size:0}),M&&(M.data.push(w.subarray(me,ve+188)),M.size+=ve+188-me);break;case U:_e&&(j&&(L=h(j))&&(R.isAAC?this.parseAACPES(L):this.parseMPEGPES(L)),j={data:[],size:0}),j&&(j.data.push(w.subarray(me,ve+188)),j.size+=ve+188-me);break;case B:_e&&(W&&(L=h(W))&&this.parseID3PES(L),W={data:[],size:0}),W&&(W.data.push(w.subarray(me,ve+188)),W.size+=ve+188-me);break;case 0:_e&&(me+=w[me]+1),J=this._pmtId=s(w,me);break;case J:{_e&&(me+=w[me]+1);var ke=u(w,me,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,_);F=ke.avc,F>0&&(N.pid=F),U=ke.audio,U>0&&(R.pid=U,R.isAAC=ke.isAAC),B=ke.id3,B>0&&(D.pid=B),V&&!z&&(n.logger.log("reparse from beginning"),V=!1,ve=de-188),z=this.pmtParsed=!0;break}case 17:case 8191:break;default:V=!0;break}}else ae++;ae>0&&this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"Found "+ae+" TS packet/s that do not start with 0x47"}),N.pesData=M,R.pesData=j,D.pesData=W;var se={audioTrack:R,avcTrack:N,id3Track:D,textTrack:this._txtTrack};return I&&this.extractRemainingSamples(se),se},E.flush=function(){var w=this.remainderData;this.remainderData=null;var S;return w?S=this.demux(w,-1,!1,!0):S={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(S),this.sampleAes?this.decrypt(S,this.sampleAes):S},E.extractRemainingSamples=function(w){var S=w.audioTrack,_=w.avcTrack,I=w.id3Track,L=_.pesData,N=S.pesData,R=I.pesData,D;L&&(D=h(L))?(this.parseAVCPES(D,!0),_.pesData=null):_.pesData=L,N&&(D=h(N))?(S.isAAC?this.parseAACPES(D):this.parseMPEGPES(D),S.pesData=null):(N!=null&&N.size&&n.logger.log("last AAC PES packet truncated,might overlap between fragments"),S.pesData=N),R&&(D=h(R))?(this.parseID3PES(D),I.pesData=null):I.pesData=R},E.demuxSampleAes=function(w,S,_){var I=this.demux(w,_,!0,!this.config.progressive),L=this.sampleAes=new o.default(this.observer,this.config,S);return this.decrypt(I,L)},E.decrypt=function(w,S){return new Promise(function(_){var I=w.audioTrack,L=w.avcTrack;I.samples&&I.isAAC?S.decryptAacSamples(I.samples,0,function(){L.samples?S.decryptAvcSamples(L.samples,0,0,function(){_(w)}):_(w)}):L.samples&&S.decryptAvcSamples(L.samples,0,0,function(){_(w)})})},E.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},E.parseAVCPES=function(w,S){var _=this,I=this._avcTrack,L=this.parseAVCNALu(w.data),N=!1,R=this.avcSample,D,F=!1;w.data=null,R&&L.length&&!I.audFound&&(p(R,I),R=this.avcSample=a(!1,w.pts,w.dts,"")),L.forEach(function(M){switch(M.type){case 1:{D=!0,R||(R=_.avcSample=a(!0,w.pts,w.dts,"")),N&&(R.debug+="NDR "),R.frame=!0;var U=M.data;if(F&&U.length>4){var B=new f.default(U).readSliceType();(B===2||B===4||B===7||B===9)&&(R.key=!0)}break}case 5:D=!0,R||(R=_.avcSample=a(!0,w.pts,w.dts,"")),N&&(R.debug+="IDR "),R.key=!0,R.frame=!0;break;case 6:{D=!0,N&&R&&(R.debug+="SEI ");var j=new f.default(v(M.data));j.readUByte();for(var W=0,V=0,z=!1,J=0;!z&&j.bytesAvailable>1;){W=0;do J=j.readUByte(),W+=J;while(J===255);V=0;do J=j.readUByte(),V+=J;while(J===255);if(W===4&&j.bytesAvailable!==0){z=!0;var q=j.readUByte();if(q===181){var de=j.readUShort();if(de===49){var ae=j.readUInt();if(ae===1195456820){var ve=j.readUByte();if(ve===3){for(var _e=j.readUByte(),Ie=j.readUByte(),He=31&_e,me=[_e,Ie],ke=0;ke<He;ke++)me.push(j.readUByte()),me.push(j.readUByte()),me.push(j.readUByte());m(_._txtTrack.samples,{type:3,pts:w.pts,bytes:me})}}}}}else if(W===5&&j.bytesAvailable!==0){if(z=!0,V>16){for(var se=[],te=0;te<16;te++)se.push(j.readUByte().toString(16)),(te===3||te===5||te===7||te===9)&&se.push("-");for(var Ge=V-16,oe=new Uint8Array(Ge),Y=0;Y<Ge;Y++)oe[Y]=j.readUByte();m(_._txtTrack.samples,{pts:w.pts,payloadType:W,uuid:se.join(""),userData:Object(c.utf8ArrayToStr)(oe),userDataBytes:oe})}}else if(V<j.bytesAvailable)for(var G=0;G<V;G++)j.readUByte()}break}case 7:if(D=!0,F=!0,N&&R&&(R.debug+="SPS "),!I.sps){var Q=new f.default(M.data),ye=Q.readSPS();I.width=ye.width,I.height=ye.height,I.pixelRatio=ye.pixelRatio,I.sps=[M.data],I.duration=_._duration;for(var ce=M.data.subarray(1,4),Te="avc1.",Se=0;Se<3;Se++){var le=ce[Se].toString(16);le.length<2&&(le="0"+le),Te+=le}I.codec=Te}break;case 8:D=!0,N&&R&&(R.debug+="PPS "),I.pps||(I.pps=[M.data]);break;case 9:D=!1,I.audFound=!0,R&&p(R,I),R=_.avcSample=a(!1,w.pts,w.dts,N?"AUD ":"");break;case 12:D=!1;break;default:D=!1,R&&(R.debug+="unknown NAL "+M.type+" ");break}if(R&&D){var fe=R.units;fe.push(M)}}),S&&R&&(p(R,I),this.avcSample=null)},E.getLastNalUnit=function(){var w,S=this.avcSample,_;if(!S||S.units.length===0){var I=this._avcTrack.samples;S=I[I.length-1]}if((w=S)!==null&&w!==void 0&&w.units){var L=S.units;_=L[L.length-1]}return _},E.parseAVCNALu=function(w){var S=w.byteLength,_=this._avcTrack,I=_.naluState||0,L=I,N=[],R=0,D,F,M,U=-1,B=0;for(I===-1&&(U=0,B=w[0]&31,I=0,R=1);R<S;){if(D=w[R++],!I){I=D?0:1;continue}if(I===1){I=D?0:2;continue}if(!D)I=3;else if(D===1){if(U>=0){var j={data:w.subarray(U,R-I-1),type:B};N.push(j)}else{var W=this.getLastNalUnit();if(W&&(L&&R<=4-L&&(W.state&&(W.data=W.data.subarray(0,W.data.byteLength-L))),F=R-I-1,F>0)){var V=new Uint8Array(W.data.byteLength+F);V.set(W.data,0),V.set(w.subarray(0,F),W.data.byteLength),W.data=V,W.state=0}}R<S?(M=w[R]&31,U=R,B=M,I=0):I=-1}else I=0}if(U>=0&&I>=0){var z={data:w.subarray(U,S),type:B,state:I};N.push(z)}if(N.length===0){var J=this.getLastNalUnit();if(J){var q=new Uint8Array(J.data.byteLength+w.byteLength);q.set(J.data,0),q.set(w,J.data.byteLength),J.data=q}}return _.naluState=I,N},E.parseAACPES=function(w){var S=0,_=this._audioTrack,I=this.aacOverFlow,L=w.data;if(I){this.aacOverFlow=null;var N=I.sample.unit.byteLength,R=Math.min(I.missing,N),D=N-R;I.sample.unit.set(L.subarray(0,R),D),_.samples.push(I.sample),S=I.missing}var F,M;for(F=S,M=L.length;F<M-1&&!b.isHeader(L,F);F++);if(F!==S){var U,B;if(F<M-1?(U="AAC PES did not start with ADTS header,offset:"+F,B=!1):(U="no ADTS header found in AAC PES",B=!0),n.logger.warn("parsing error:"+U),this.observer.emit(r.Events.ERROR,r.Events.ERROR,{type:e.ErrorTypes.MEDIA_ERROR,details:e.ErrorDetails.FRAG_PARSING_ERROR,fatal:B,reason:U}),B)return}b.initTrackConfig(_,this.observer,L,F,this.audioCodec);var j;if(w.pts!==void 0)j=w.pts;else if(I){var W=b.getFrameDuration(_.samplerate);j=I.sample.pts+W}else{n.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var V=0;F<M;)if(b.isHeader(L,F)){if(F+5<M){var z=b.appendFrame(_,L,F,j,V);if(z)if(z.missing)this.aacOverFlow=z;else{F+=z.length,V++;continue}}break}else F++},E.parseMPEGPES=function(w){var S=w.data,_=S.length,I=0,L=0,N=w.pts;if(N===void 0){n.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;L<_;)if(g.isHeader(S,L)){var R=g.appendFrame(this._audioTrack,S,L,N,I);if(R)L+=R.length,I++;else break}else L++},E.parseID3PES=function(w){if(w.pts===void 0){n.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}this._id3Track.samples.push(w)},y}();t.minProbeByteLength=188;function a(y,E,T,w){return{key:y,frame:!1,pts:E,dts:T,units:[],debug:w,length:0}}function s(y,E){return(y[E+10]&31)<<8|y[E+11]}function u(y,E,T,w){var S={audio:-1,avc:-1,id3:-1,isAAC:!0},_=(y[E+1]&15)<<8|y[E+2],I=E+3+_-4,L=(y[E+10]&15)<<8|y[E+11];for(E+=12+L;E<I;){var N=(y[E+1]&31)<<8|y[E+2];switch(y[E]){case 207:if(!w){n.logger.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:S.audio===-1&&(S.audio=N);break;case 21:S.id3===-1&&(S.id3=N);break;case 219:if(!w){n.logger.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:S.avc===-1&&(S.avc=N);break;case 3:case 4:T?S.audio===-1&&(S.audio=N,S.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}E+=((y[E+3]&15)<<8|y[E+4])+5}return S}function h(y){var E=0,T,w,S,_,I,L=y.data;if(!y||y.size===0)return null;for(;L[0].length<19&&L.length>1;){var N=new Uint8Array(L[0].length+L[1].length);N.set(L[0]),N.set(L[1],L[0].length),L[0]=N,L.splice(1,1)}T=L[0];var R=(T[0]<<16)+(T[1]<<8)+T[2];if(R===1){if(w=(T[4]<<8)+T[5],w&&w>y.size-6)return null;var D=T[7];D&192&&(_=(T[9]&14)*536870912+(T[10]&255)*4194304+(T[11]&254)*16384+(T[12]&255)*128+(T[13]&254)/2,D&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=_),S=T[8];var F=S+9;if(y.size<=F)return null;y.size-=F;for(var M=new Uint8Array(y.size),U=0,B=L.length;U<B;U++){T=L[U];var j=T.byteLength;if(F)if(F>j){F-=j;continue}else T=T.subarray(F),j-=F,F=0;M.set(T,E),E+=j}return w&&(w-=S+3),{data:M,pts:_,dts:I,len:w}}return null}function p(y,E){if(y.units.length&&y.frame){if(y.pts===void 0){var T=E.samples,w=T.length;if(w){var S=T[w-1];y.pts=S.pts,y.dts=S.dts}else{E.dropped++;return}}E.samples.push(y)}y.debug.length&&n.logger.log(y.pts+"/"+y.dts+":"+y.debug)}function m(y,E){var T=y.length;if(T>0){if(E.pts>=y[T-1].pts)y.push(E);else for(var w=T-1;w>=0;w--)if(E.pts<y[w].pts){y.splice(w,0,E);break}}else y.push(E)}function v(y){for(var E=y.byteLength,T=[],w=1;w<E-2;)y[w]===0&&y[w+1]===0&&y[w+2]===3?(T.push(w+2),w+=2):w++;if(T.length===0)return y;var S=E-T.length,_=new Uint8Array(S),I=0;for(w=0;w<S;I++,w++)I===T[0]&&(I++,T.shift()),_[w]=y[I];return _}C.default=t},"./src/errors.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"ErrorTypes",function(){return b}),A.d(C,"ErrorDetails",function(){return g});var b;(function(f){f.NETWORK_ERROR="networkError",f.MEDIA_ERROR="mediaError",f.KEY_SYSTEM_ERROR="keySystemError",f.MUX_ERROR="muxError",f.OTHER_ERROR="otherError"})(b||(b={}));var g;(function(f){f.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",f.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",f.KEY_SYSTEM_NO_SESSION="keySystemNoSession",f.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",f.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",f.MANIFEST_LOAD_ERROR="manifestLoadError",f.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",f.MANIFEST_PARSING_ERROR="manifestParsingError",f.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",f.LEVEL_EMPTY_ERROR="levelEmptyError",f.LEVEL_LOAD_ERROR="levelLoadError",f.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",f.LEVEL_SWITCH_ERROR="levelSwitchError",f.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",f.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",f.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",f.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",f.FRAG_LOAD_ERROR="fragLoadError",f.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",f.FRAG_DECRYPT_ERROR="fragDecryptError",f.FRAG_PARSING_ERROR="fragParsingError",f.REMUX_ALLOC_ERROR="remuxAllocError",f.KEY_LOAD_ERROR="keyLoadError",f.KEY_LOAD_TIMEOUT="keyLoadTimeOut",f.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",f.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",f.BUFFER_APPEND_ERROR="bufferAppendError",f.BUFFER_APPENDING_ERROR="bufferAppendingError",f.BUFFER_STALLED_ERROR="bufferStalledError",f.BUFFER_FULL_ERROR="bufferFullError",f.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",f.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",f.INTERNAL_EXCEPTION="internalException",f.INTERNAL_ABORTED="aborted",f.UNKNOWN="unknown"})(g||(g={}))},"./src/events.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"Events",function(){return b});var b;(function(g){g.MEDIA_ATTACHING="hlsMediaAttaching",g.MEDIA_ATTACHED="hlsMediaAttached",g.MEDIA_DETACHING="hlsMediaDetaching",g.MEDIA_DETACHED="hlsMediaDetached",g.BUFFER_RESET="hlsBufferReset",g.BUFFER_CODECS="hlsBufferCodecs",g.BUFFER_CREATED="hlsBufferCreated",g.BUFFER_APPENDING="hlsBufferAppending",g.BUFFER_APPENDED="hlsBufferAppended",g.BUFFER_EOS="hlsBufferEos",g.BUFFER_FLUSHING="hlsBufferFlushing",g.BUFFER_FLUSHED="hlsBufferFlushed",g.MANIFEST_LOADING="hlsManifestLoading",g.MANIFEST_LOADED="hlsManifestLoaded",g.MANIFEST_PARSED="hlsManifestParsed",g.LEVEL_SWITCHING="hlsLevelSwitching",g.LEVEL_SWITCHED="hlsLevelSwitched",g.LEVEL_LOADING="hlsLevelLoading",g.LEVEL_LOADED="hlsLevelLoaded",g.LEVEL_UPDATED="hlsLevelUpdated",g.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",g.LEVELS_UPDATED="hlsLevelsUpdated",g.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",g.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",g.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",g.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",g.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",g.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",g.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",g.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",g.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",g.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",g.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",g.CUES_PARSED="hlsCuesParsed",g.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",g.INIT_PTS_FOUND="hlsInitPtsFound",g.FRAG_LOADING="hlsFragLoading",g.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",g.FRAG_LOADED="hlsFragLoaded",g.FRAG_DECRYPTED="hlsFragDecrypted",g.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",g.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",g.FRAG_PARSING_METADATA="hlsFragParsingMetadata",g.FRAG_PARSED="hlsFragParsed",g.FRAG_BUFFERED="hlsFragBuffered",g.FRAG_CHANGED="hlsFragChanged",g.FPS_DROP="hlsFpsDrop",g.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",g.ERROR="hlsError",g.DESTROYING="hlsDestroying",g.KEY_LOADING="hlsKeyLoading",g.KEY_LOADED="hlsKeyLoaded",g.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",g.BACK_BUFFER_REACHED="hlsBackBufferReached"})(b||(b={}))},"./src/hls.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return y});var b=A("./node_modules/url-toolkit/src/url-toolkit.js"),g=A.n(b),f=A("./src/loader/playlist-loader.ts"),c=A("./src/loader/key-loader.ts"),o=A("./src/controller/id3-track-controller.ts"),r=A("./src/controller/latency-controller.ts"),i=A("./src/controller/level-controller.ts"),n=A("./src/controller/fragment-tracker.ts"),e=A("./src/controller/stream-controller.ts"),l=A("./src/is-supported.ts"),t=A("./src/utils/logger.ts"),a=A("./src/config.ts"),s=A("./node_modules/eventemitter3/index.js"),u=A.n(s),h=A("./src/events.ts"),p=A("./src/errors.ts");function m(E,T){for(var w=0;w<T.length;w++){var S=T[w];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(E,S.key,S)}}function v(E,T,w){return T&&m(E.prototype,T),w&&m(E,w),E}var y=function(){E.isSupported=function(){return Object(l.isSupported)()};function E(w){w===void 0&&(w={}),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new s.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 S=this.config=Object(a.mergeConfig)(E.DefaultConfig,w);this.userConfig=w,Object(t.enableLogs)(S.debug),this._autoLevelCapping=-1,S.progressive&&Object(a.enableStreamingMode)(S);var _=S.abrController,I=S.bufferController,L=S.capLevelController,N=S.fpsController,R=this.abrController=new _(this),D=this.bufferController=new I(this),F=this.capLevelController=new L(this),M=new N(this),U=new f.default(this),B=new c.default(this),j=new o.default(this),W=this.levelController=new i.default(this),V=new n.FragmentTracker(this),z=this.streamController=new e.default(this,V);F.setStreamController(z),M.setStreamController(z);var J=[W,z];this.networkControllers=J;var q=[U,B,R,D,F,M,j,V];this.audioTrackController=this.createController(S.audioTrackController,null,J),this.createController(S.audioStreamController,V,J),this.subtitleTrackController=this.createController(S.subtitleTrackController,null,J),this.createController(S.subtitleStreamController,V,J),this.createController(S.timelineController,null,q),this.emeController=this.createController(S.emeController,null,q),this.cmcdController=this.createController(S.cmcdController,null,q),this.latencyController=this.createController(r.default,null,q),this.coreComponents=q}var T=E.prototype;return T.createController=function(S,_,I){if(S){var L=_?new S(this,_):new S(this);return I&&I.push(L),L}return null},T.on=function(S,_,I){I===void 0&&(I=this),this._emitter.on(S,_,I)},T.once=function(S,_,I){I===void 0&&(I=this),this._emitter.once(S,_,I)},T.removeAllListeners=function(S){this._emitter.removeAllListeners(S)},T.off=function(S,_,I,L){I===void 0&&(I=this),this._emitter.off(S,_,I,L)},T.listeners=function(S){return this._emitter.listeners(S)},T.emit=function(S,_,I){return this._emitter.emit(S,_,I)},T.trigger=function(S,_){if(this.config.debug)return this.emit(S,S,_);try{return this.emit(S,S,_)}catch(I){t.logger.error("An internal error happened while handling event "+S+'. Error message: "'+I.message+'". Here is a stacktrace:',I),this.trigger(h.Events.ERROR,{type:p.ErrorTypes.OTHER_ERROR,details:p.ErrorDetails.INTERNAL_EXCEPTION,fatal:!1,event:S,error:I})}return!1},T.listenerCount=function(S){return this._emitter.listenerCount(S)},T.destroy=function(){t.logger.log("destroy"),this.trigger(h.Events.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(S){return S.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(S){return S.destroy()}),this.coreComponents.length=0},T.attachMedia=function(S){t.logger.log("attachMedia"),this._media=S,this.trigger(h.Events.MEDIA_ATTACHING,{media:S})},T.detachMedia=function(){t.logger.log("detachMedia"),this.trigger(h.Events.MEDIA_DETACHING,void 0),this._media=null},T.loadSource=function(S){this.stopLoad();var _=this.media,I=this.url,L=this.url=b.buildAbsoluteURL(self.location.href,S,{alwaysNormalize:!0});t.logger.log("loadSource:"+L),_&&I&&I!==L&&this.bufferController.hasSourceTypes()&&(this.detachMedia(),this.attachMedia(_)),this.trigger(h.Events.MANIFEST_LOADING,{url:S})},T.startLoad=function(S){S===void 0&&(S=-1),t.logger.log("startLoad("+S+")"),this.networkControllers.forEach(function(_){_.startLoad(S)})},T.stopLoad=function(){t.logger.log("stopLoad"),this.networkControllers.forEach(function(S){S.stopLoad()})},T.swapAudioCodec=function(){t.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()},T.recoverMediaError=function(){t.logger.log("recoverMediaError");var S=this._media;this.detachMedia(),S&&this.attachMedia(S)},T.removeLevel=function(S,_){_===void 0&&(_=0),this.levelController.removeLevel(S,_)},v(E,[{key:"levels",get:function(){var S=this.levelController.levels;return S||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(S){t.logger.log("set currentLevel:"+S),this.loadLevel=S,this.abrController.clearTimer(),this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(S){t.logger.log("set nextLevel:"+S),this.levelController.manualLevel=S,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(S){t.logger.log("set loadLevel:"+S),this.levelController.manualLevel=S}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(S){this.levelController.nextLoadLevel=S}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(S){t.logger.log("set firstLevel:"+S),this.levelController.firstLevel=S}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(S){t.logger.log("set startLevel:"+S),S!==-1&&(S=Math.max(S,this.minAutoLevel)),this.levelController.startLevel=S}},{key:"capLevelToPlayerSize",get:function(){return this.config.capLevelToPlayerSize},set:function(S){var _=!!S;_!==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(S){this._autoLevelCapping!==S&&(t.logger.log("set autoLevelCapping:"+S),this._autoLevelCapping=S)}},{key:"bandwidthEstimate",get:function(){var S=this.abrController.bwEstimator;return S?S.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return this.levelController.manualLevel===-1}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){var S=this.levels,_=this.config.minAutoBitrate;if(!S)return 0;for(var I=S.length,L=0;L<I;L++)if(S[L].maxBitrate>_)return L;return 0}},{key:"maxAutoLevel",get:function(){var S=this.levels,_=this.autoLevelCapping,I;return _===-1&&S&&S.length?I=S.length-1:I=_,I}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(S){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,S)}},{key:"audioTracks",get:function(){var S=this.audioTrackController;return S?S.audioTracks:[]}},{key:"audioTrack",get:function(){var S=this.audioTrackController;return S?S.audioTrack:-1},set:function(S){var _=this.audioTrackController;_&&(_.audioTrack=S)}},{key:"subtitleTracks",get:function(){var S=this.subtitleTrackController;return S?S.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var S=this.subtitleTrackController;return S?S.subtitleTrack:-1},set:function(S){var _=this.subtitleTrackController;_&&(_.subtitleTrack=S)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var S=this.subtitleTrackController;return S?S.subtitleDisplay:!1},set:function(S){var _=this.subtitleTrackController;_&&(_.subtitleDisplay=S)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(S){this.config.lowLatencyMode=S}},{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.5"}},{key:"Events",get:function(){return h.Events}},{key:"ErrorTypes",get:function(){return p.ErrorTypes}},{key:"ErrorDetails",get:function(){return p.ErrorDetails}},{key:"DefaultConfig",get:function(){return E.defaultConfig?E.defaultConfig:a.hlsDefaultConfig},set:function(S){E.defaultConfig=S}}]),E}();y.defaultConfig=void 0},"./src/is-supported.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"isSupported",function(){return f}),A.d(C,"changeTypeSupported",function(){return c});var b=A("./src/utils/mediasource-helper.ts");function g(){return self.SourceBuffer||self.WebKitSourceBuffer}function f(){var o=Object(b.getMediaSource)();if(!o)return!1;var r=g(),i=o&&typeof o.isTypeSupported=="function"&&o.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),n=!r||r.prototype&&typeof r.prototype.appendBuffer=="function"&&typeof r.prototype.remove=="function";return!!i&&!!n}function c(){var o,r=g();return typeof(r==null||((o=r.prototype)===null||o===void 0)?void 0:o.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return t}),A.d(C,"LoadError",function(){return s});var b=A("./src/polyfills/number.ts"),g=A("./src/errors.ts");function f(u,h){u.prototype=Object.create(h.prototype),u.prototype.constructor=u,n(u,h)}function c(u){var h=typeof Map=="function"?new Map:void 0;return c=function(m){if(m===null||!i(m))return m;if(typeof m!="function")throw new TypeError("Super expression must either be null or a function");if(typeof h!="undefined"){if(h.has(m))return h.get(m);h.set(m,v)}function v(){return o(m,arguments,e(this).constructor)}return v.prototype=Object.create(m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),n(v,m)},c(u)}function o(u,h,p){return r()?o=Reflect.construct:o=function(v,y,E){var T=[null];T.push.apply(T,y);var w=Function.bind.apply(v,T),S=new w;return E&&n(S,E.prototype),S},o.apply(null,arguments)}function r(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(u){return!1}}function i(u){return Function.toString.call(u).indexOf("[native code]")!==-1}function n(u,h){return n=Object.setPrototypeOf||function(m,v){return m.__proto__=v,m},n(u,h)}function e(u){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},e(u)}var l=Math.pow(2,17),t=function(){function u(p){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=p}var h=u.prototype;return h.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},h.abort=function(){this.loader&&this.loader.abort()},h.load=function(m,v){var y=this,E=m.url;if(!E)return Promise.reject(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:m,networkDetails:null},"Fragment does not have a "+(E?"part list":"url")));this.abort();var T=this.config,w=T.fLoader,S=T.loader;return new Promise(function(_,I){y.loader&&y.loader.destroy();var L=y.loader=m.loader=w?new w(T):new S(T),N=a(m),R={timeout:T.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:T.fragLoadingMaxRetryTimeout,highWaterMark:l};m.stats=L.stats,L.load(N,R,{onSuccess:function(F,M,U,B){y.resetLoader(m,L),_({frag:m,part:null,payload:F.data,networkDetails:B})},onError:function(F,M,U){y.resetLoader(m,L),I(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:m,response:F,networkDetails:U}))},onAbort:function(F,M,U){y.resetLoader(m,L),I(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:m,networkDetails:U}))},onTimeout:function(F,M,U){y.resetLoader(m,L),I(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:m,networkDetails:U}))},onProgress:function(F,M,U,B){v&&v({frag:m,part:null,payload:U,networkDetails:B})}})})},h.loadPart=function(m,v,y){var E=this;this.abort();var T=this.config,w=T.fLoader,S=T.loader;return new Promise(function(_,I){E.loader&&E.loader.destroy();var L=E.loader=m.loader=w?new w(T):new S(T),N=a(m,v),R={timeout:T.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:T.fragLoadingMaxRetryTimeout,highWaterMark:l};v.stats=L.stats,L.load(N,R,{onSuccess:function(F,M,U,B){E.resetLoader(m,L),E.updateStatsFromPart(m,v);var j={frag:m,part:v,payload:F.data,networkDetails:B};y(j),_(j)},onError:function(F,M,U){E.resetLoader(m,L),I(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:m,part:v,response:F,networkDetails:U}))},onAbort:function(F,M,U){m.stats.aborted=v.stats.aborted,E.resetLoader(m,L),I(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:m,part:v,networkDetails:U}))},onTimeout:function(F,M,U){E.resetLoader(m,L),I(new s({type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:m,part:v,networkDetails:U}))}})})},h.updateStatsFromPart=function(m,v){var y=m.stats,E=v.stats,T=E.total;if(y.loaded+=E.loaded,T){var w=Math.round(m.duration/v.duration),S=Math.min(Math.round(y.loaded/T),w),_=w-S,I=_*Math.round(y.loaded/S);y.total=y.loaded+I}else y.total=Math.max(y.loaded,y.total);var L=y.loading,N=E.loading;L.start?L.first+=N.first-N.start:(L.start=N.start,L.first=N.first),L.end=N.end},h.resetLoader=function(m,v){m.loader=null,this.loader===v&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),v.destroy()},u}();function a(u,h){h===void 0&&(h=null);var p=h||u,m={frag:u,part:h,responseType:"arraybuffer",url:p.url,headers:{},rangeStart:0,rangeEnd:0},v=p.byteRangeStartOffset,y=p.byteRangeEndOffset;return Object(b.isFiniteNumber)(v)&&Object(b.isFiniteNumber)(y)&&(m.rangeStart=v,m.rangeEnd=y),m}var s=function(u){f(h,u);function h(p){for(var m,v=arguments.length,y=new Array(v>1?v-1:0),E=1;E<v;E++)y[E-1]=arguments[E];return m=u.call.apply(u,[this].concat(y))||this,m.data=void 0,m.data=p,m}return h}(c(Error))},"./src/loader/fragment.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"ElementaryStreamTypes",function(){return t}),A.d(C,"BaseSegment",function(){return a}),A.d(C,"Fragment",function(){return s}),A.d(C,"Part",function(){return u});var b=A("./src/polyfills/number.ts"),g=A("./node_modules/url-toolkit/src/url-toolkit.js"),f=A.n(g),c=A("./src/utils/logger.ts"),o=A("./src/loader/level-key.ts"),r=A("./src/loader/load-stats.ts");function i(h,p){h.prototype=Object.create(p.prototype),h.prototype.constructor=h,n(h,p)}function n(h,p){return n=Object.setPrototypeOf||function(v,y){return v.__proto__=y,v},n(h,p)}function e(h,p){for(var m=0;m<p.length;m++){var v=p[m];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(h,v.key,v)}}function l(h,p,m){return p&&e(h.prototype,p),m&&e(h,m),h}var t;(function(h){h.AUDIO="audio",h.VIDEO="video",h.AUDIOVIDEO="audiovideo"})(t||(t={}));var a=function(){function h(m){var v;this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=(v={},v[t.AUDIO]=null,v[t.VIDEO]=null,v[t.AUDIOVIDEO]=null,v),this.baseurl=m}var p=h.prototype;return p.setByteRange=function(v,y){var E=v.split("@",2),T=[];E.length===1?T[0]=y?y.byteRangeEndOffset:0:T[0]=parseInt(E[1]),T[1]=parseInt(E[0])+T[0],this._byteRange=T},l(h,[{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(g.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(v){this._url=v}}]),h}(),s=function(h){i(p,h);function p(v,y){var E;return E=h.call(this,y)||this,E._decryptdata=null,E.rawProgramDateTime=null,E.programDateTime=null,E.tagList=[],E.duration=0,E.sn=0,E.levelkey=void 0,E.type=void 0,E.loader=null,E.level=-1,E.cc=0,E.startPTS=void 0,E.endPTS=void 0,E.appendedPTS=void 0,E.startDTS=void 0,E.endDTS=void 0,E.start=0,E.deltaPTS=void 0,E.maxStartPTS=void 0,E.minEndPTS=void 0,E.stats=new r.LoadStats,E.urlId=0,E.data=void 0,E.bitrateTest=!1,E.title=null,E.initSegment=null,E.type=v,E}var m=p.prototype;return m.createInitializationVector=function(y){for(var E=new Uint8Array(16),T=12;T<16;T++)E[T]=y>>8*(15-T)&255;return E},m.setDecryptDataFromLevelKey=function(y,E){var T=y;return(y==null?void 0:y.method)==="AES-128"&&y.uri&&!y.iv&&(T=o.LevelKey.fromURI(y.uri),T.method=y.method,T.iv=this.createInitializationVector(E),T.keyFormat="identity"),T},m.setElementaryStreamInfo=function(y,E,T,w,S,_){_===void 0&&(_=!1);var I=this.elementaryStreams,L=I[y];if(!L){I[y]={startPTS:E,endPTS:T,startDTS:w,endDTS:S,partial:_};return}L.startPTS=Math.min(L.startPTS,E),L.endPTS=Math.max(L.endPTS,T),L.startDTS=Math.min(L.startDTS,w),L.endDTS=Math.max(L.endDTS,S)},m.clearElementaryStreamInfo=function(){var y=this.elementaryStreams;y[t.AUDIO]=null,y[t.VIDEO]=null,y[t.AUDIOVIDEO]=null},l(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(b.isFiniteNumber)(this.programDateTime))return null;var y=Object(b.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(h){i(p,h);function p(m,v,y,E,T){var w;w=h.call(this,y)||this,w.fragOffset=0,w.duration=0,w.gap=!1,w.independent=!1,w.relurl=void 0,w.fragment=void 0,w.index=void 0,w.stats=new r.LoadStats,w.duration=m.decimalFloatingPoint("DURATION"),w.gap=m.bool("GAP"),w.independent=m.bool("INDEPENDENT"),w.relurl=m.enumeratedString("URI"),w.fragment=v,w.index=E;var S=m.enumeratedString("BYTERANGE");return S&&w.setByteRange(S,T),T&&(w.fragOffset=T.fragOffset+T.duration),w}return l(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 v=this.elementaryStreams;return!!(v.audio||v.video||v.audiovideo)}}]),p}(a)},"./src/loader/key-loader.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return c});var b=A("./src/events.ts"),g=A("./src/errors.ts"),f=A("./src/utils/logger.ts"),c=function(){function o(i){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=i,this._registerListeners()}var r=o.prototype;return r._registerListeners=function(){this.hls.on(b.Events.KEY_LOADING,this.onKeyLoading,this)},r._unregisterListeners=function(){this.hls.off(b.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 l=e.frag,t=l.type,a=this.loaders[t];if(!l.decryptdata){f.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var s=l.decryptdata.uri;if(s!==this.decrypturl||this.decryptkey===null){var u=this.hls.config;if(a&&(f.logger.warn("abort previous key loader for type:"+t),a.abort()),!s){f.logger.warn("key uri is falsy");return}var h=u.loader,p=l.loader=this.loaders[t]=new h(u);this.decrypturl=s,this.decryptkey=null;var m={url:s,frag:l,responseType:"arraybuffer"},v={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(m,v,y)}else this.decryptkey&&(l.decryptdata.key=this.decryptkey,this.hls.trigger(b.Events.KEY_LOADED,{frag:l}))},r.loadsuccess=function(n,e,l){var t=l.frag;if(!t.decryptdata){f.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(b.Events.KEY_LOADED,{frag:t})},r.loaderror=function(n,e){var l=e.frag,t=l.loader;t&&t.abort(),delete this.loaders[l.type],this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:l,response:n})},r.loadtimeout=function(n,e){var l=e.frag,t=l.loader;t&&t.abort(),delete this.loaders[l.type],this.hls.trigger(b.Events.ERROR,{type:g.ErrorTypes.NETWORK_ERROR,details:g.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:l})},o}()},"./src/loader/level-details.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"LevelDetails",function(){return o});var b=A("./src/polyfills/number.ts");function g(r,i){for(var n=0;n<i.length;n++){var e=i[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}function f(r,i,n){return i&&g(r.prototype,i),n&&g(r,n),r}var c=10,o=function(){function r(n){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.live=!0,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.availabilityDelay=void 0,this.misses=0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.fragments=[],this.url=n}var i=r.prototype;return i.reloaded=function(e){if(!e){this.advanced=!0,this.updated=!0;return}var l=this.lastPartSn-e.lastPartSn,t=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!t||!!l,this.advanced=this.endSN>e.endSN||l>0||l===0&&t>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1,this.availabilityDelay=e.availabilityDelay},f(r,[{key:"hasProgramDateTime",get:function(){return this.fragments.length?Object(b.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 l=this.driftEnd-this.driftStart;return l*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(x,C,A){"use strict";A.r(C),A.d(C,"LevelKey",function(){return o});var b=A("./node_modules/url-toolkit/src/url-toolkit.js"),g=A.n(b);function f(r,i){for(var n=0;n<i.length;n++){var e=i[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(r,e.key,e)}}function c(r,i,n){return i&&f(r.prototype,i),n&&f(r,n),r}var o=function(){r.fromURL=function(n,e){return new r(n,e)},r.fromURI=function(n){return new r(n)};function r(i,n){this._uri=null,this.method=null,this.keyFormat=null,this.keyFormatVersions=null,this.keyID=null,this.key=null,this.iv=null,n?this._uri=Object(b.buildAbsoluteURL)(i,n,{alwaysNormalize:!0}):this._uri=i}return c(r,[{key:"uri",get:function(){return this._uri}}]),r}()},"./src/loader/load-stats.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"LoadStats",function(){return b});var b=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(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return p});var b=A("./src/polyfills/number.ts"),g=A("./node_modules/url-toolkit/src/url-toolkit.js"),f=A.n(g),c=A("./src/loader/fragment.ts"),o=A("./src/loader/level-details.ts"),r=A("./src/loader/level-key.ts"),i=A("./src/utils/attr-list.ts"),n=A("./src/utils/logger.ts"),e=A("./src/utils/codecs.ts"),l=/#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"),s=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 h(T){var w,S;return u.test((w=(S=g.parseURL(T))===null||S===void 0?void 0:S.path)!=null?w:"")}var p=function(){function T(){}return T.findGroup=function(S,_){for(var I=0;I<S.length;I++){var L=S[I];if(L.id===_)return L}},T.convertAVC1ToAVCOTI=function(S){var _=S.split(".");if(_.length>2){var I=_.shift()+".";return I+=parseInt(_.shift()).toString(16),I+=("000"+parseInt(_.shift()).toString(16)).substr(-4),I}return S},T.resolve=function(S,_){return g.buildAbsoluteURL(_,S,{alwaysNormalize:!0})},T.parseMasterPlaylist=function(S,_){var I=[],L={},N=!1;l.lastIndex=0;for(var R;(R=l.exec(S))!=null;)if(R[1]){var D=new i.AttrList(R[1]),F={attrs:D,bitrate:D.decimalInteger("AVERAGE-BANDWIDTH")||D.decimalInteger("BANDWIDTH"),name:D.NAME,url:T.resolve(R[2],_)},M=D.decimalResolution("RESOLUTION");M&&(F.width=M.width,F.height=M.height),m((D.CODECS||"").split(/[ ,]+/).filter(function(B){return B}),F),F.videoCodec&&F.videoCodec.indexOf("avc1")!==-1&&(F.videoCodec=T.convertAVC1ToAVCOTI(F.videoCodec)),I.push(F)}else if(R[3]){var U=new i.AttrList(R[3]);U["DATA-ID"]&&(N=!0,L[U["DATA-ID"]]=U)}return{levels:I,sessionData:N?L:null}},T.parseMasterPlaylistMedia=function(S,_,I,L){L===void 0&&(L=[]);var N,R=[],D=0;for(t.lastIndex=0;(N=t.exec(S))!==null;){var F=new i.AttrList(N[1]);if(F.TYPE===I){var M={attrs:F,bitrate:0,id:D++,groupId:F["GROUP-ID"],instreamId:F["INSTREAM-ID"],name:F.NAME||F.LANGUAGE||"",type:I,default:F.bool("DEFAULT"),autoselect:F.bool("AUTOSELECT"),forced:F.bool("FORCED"),lang:F.LANGUAGE,url:F.URI?T.resolve(F.URI,_):""};if(L.length){var U=T.findGroup(L,M.groupId)||L[0];v(M,U,"audioCodec"),v(M,U,"textCodec")}R.push(M)}}return R},T.parseLevelPlaylist=function(S,_,I,L,N){var R=new o.LevelDetails(_),D=R.fragments,F=null,M=0,U=0,B=0,j=0,W=null,V=new c.Fragment(L,_),z,J,q,de=-1,ae=!1;for(a.lastIndex=0,R.m3u8=S;(z=a.exec(S))!==null;){ae&&(ae=!1,V=new c.Fragment(L,_),V.start=B,V.sn=M,V.cc=j,V.level=I,F&&(V.initSegment=F,V.rawProgramDateTime=F.rawProgramDateTime));var ve=z[1];if(ve){V.duration=parseFloat(ve);var _e=(" "+z[2]).slice(1);V.title=_e||null,V.tagList.push(_e?["INF",ve,_e]:["INF",ve])}else if(z[3])Object(b.isFiniteNumber)(V.duration)&&(V.start=B,q&&(V.levelkey=q),V.sn=M,V.level=I,V.cc=j,V.urlId=N,D.push(V),V.relurl=(" "+z[3]).slice(1),E(V,W),W=V,B+=V.duration,M++,U=0,ae=!0);else if(z[4]){var Ie=(" "+z[4]).slice(1);W?V.setByteRange(Ie,W):V.setByteRange(Ie)}else if(z[5])V.rawProgramDateTime=(" "+z[5]).slice(1),V.tagList.push(["PROGRAM-DATE-TIME",V.rawProgramDateTime]),de===-1&&(de=D.length);else{if(z=z[0].match(s),!z){n.logger.warn("No matches on slow regex match for level playlist!");continue}for(J=1;J<z.length&&!(typeof z[J]!="undefined");J++);var He=(" "+z[J]).slice(1),me=(" "+z[J+1]).slice(1),ke=z[J+2]?(" "+z[J+2]).slice(1):"";switch(He){case"PLAYLIST-TYPE":R.type=me.toUpperCase();break;case"MEDIA-SEQUENCE":M=R.startSN=parseInt(me);break;case"SKIP":{var se=new i.AttrList(me),te=se.decimalInteger("SKIPPED-SEGMENTS");if(Object(b.isFiniteNumber)(te)){R.skippedSegments=te;for(var Ge=te;Ge--;)D.unshift(null);M+=te}var oe=se.enumeratedString("RECENTLY-REMOVED-DATERANGES");oe&&(R.recentlyRemovedDateranges=oe.split(" "));break}case"TARGETDURATION":R.targetduration=parseFloat(me);break;case"VERSION":R.version=parseInt(me);break;case"EXTM3U":break;case"ENDLIST":R.live=!1;break;case"#":(me||ke)&&V.tagList.push(ke?[me,ke]:[me]);break;case"DIS":j++;case"GAP":V.tagList.push([He]);break;case"BITRATE":V.tagList.push([He,me]);break;case"DISCONTINUITY-SEQ":j=parseInt(me);break;case"KEY":{var Y,G=new i.AttrList(me),Q=G.enumeratedString("METHOD"),ye=G.URI,ce=G.hexadecimalInteger("IV"),Te=G.enumeratedString("KEYFORMATVERSIONS"),Se=G.enumeratedString("KEYID"),le=(Y=G.enumeratedString("KEYFORMAT"))!=null?Y:"identity",fe=["com.apple.streamingkeydelivery","com.microsoft.playready","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed","com.widevine"];if(fe.indexOf(le)>-1){n.logger.warn("Keyformat "+le+" is not supported from the manifest");continue}else if(le!=="identity")continue;Q&&(q=r.LevelKey.fromURL(_,ye),ye&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Q)>=0&&(q.method=Q,q.keyFormat=le,Se&&(q.keyID=Se),Te&&(q.keyFormatVersions=Te),q.iv=ce));break}case"START":{var Ee=new i.AttrList(me),Ve=Ee.decimalFloatingPoint("TIME-OFFSET");Object(b.isFiniteNumber)(Ve)&&(R.startTimeOffset=Ve);break}case"MAP":{var vt=new i.AttrList(me);V.relurl=vt.URI,vt.BYTERANGE&&V.setByteRange(vt.BYTERANGE),V.level=I,V.sn="initSegment",q&&(V.levelkey=q),V.initSegment=null,F=V,ae=!0;break}case"SERVER-CONTROL":{var et=new i.AttrList(me);R.canBlockReload=et.bool("CAN-BLOCK-RELOAD"),R.canSkipUntil=et.optionalFloat("CAN-SKIP-UNTIL",0),R.canSkipDateRanges=R.canSkipUntil>0&&et.bool("CAN-SKIP-DATERANGES"),R.partHoldBack=et.optionalFloat("PART-HOLD-BACK",0),R.holdBack=et.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Oe=new i.AttrList(me);R.partTarget=Oe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Tt=R.partList;Tt||(Tt=R.partList=[]);var Je=U>0?Tt[Tt.length-1]:void 0,St=U++,Mt=new c.Part(new i.AttrList(me),V,_,St,Je);Tt.push(Mt),V.duration+=Mt.duration;break}case"PRELOAD-HINT":{var er=new i.AttrList(me);R.preloadHint=er;break}case"RENDITION-REPORT":{var It=new i.AttrList(me);R.renditionReports=R.renditionReports||[],R.renditionReports.push(It);break}default:n.logger.warn("line parsed but not handled: "+z);break}}}W&&!W.relurl?(D.pop(),B-=W.duration,R.partList&&(R.fragmentHint=W)):R.partList&&(E(V,W),V.cc=j,R.fragmentHint=V);var _t=D.length,Xe=D[0],ie=D[_t-1];if(B+=R.skippedSegments*R.targetduration,B>0&&_t&&ie){R.averagetargetduration=B/_t;var X=ie.sn;R.endSN=X!=="initSegment"?X:0,Xe&&(R.startCC=Xe.cc,Xe.initSegment||R.fragments.every(function(Be){return Be.relurl&&h(Be.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=ie.relurl,V.level=I,V.sn="initSegment",Xe.initSegment=V,R.needSidxRanges=!0))}else R.endSN=0,R.startCC=0;return R.fragmentHint&&(B+=R.fragmentHint.duration),R.totalduration=B,R.endCC=j,de>0&&y(D,de),R},T}();function m(T,w){["video","audio","text"].forEach(function(S){var _=T.filter(function(L){return Object(e.isCodecType)(L,S)});if(_.length){var I=_.filter(function(L){return L.lastIndexOf("avc1",0)===0||L.lastIndexOf("mp4a",0)===0});w[S+"Codec"]=I.length>0?I[0]:_[0],T=T.filter(function(L){return _.indexOf(L)===-1})}}),w.unknownCodecs=T}function v(T,w,S){var _=w[S];_&&(T[S]=_)}function y(T,w){for(var S=T[w],_=w;_--;){var I=T[_];if(!I)return;I.programDateTime=S.programDateTime-I.duration*1e3,S=I}}function E(T,w){T.rawProgramDateTime?T.programDateTime=Date.parse(T.rawProgramDateTime):w!=null&&w.programDateTime&&(T.programDateTime=w.endProgramDateTime),Object(b.isFiniteNumber)(T.programDateTime)||(T.programDateTime=null,T.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/polyfills/number.ts"),g=A("./src/events.ts"),f=A("./src/errors.ts"),c=A("./src/utils/logger.ts"),o=A("./src/utils/mp4-tools.ts"),r=A("./src/loader/m3u8-parser.ts"),i=A("./src/types/loader.ts"),n=A("./src/utils/attr-list.ts");function e(a){var s=a.type;switch(s){case i.PlaylistContextType.AUDIO_TRACK:return i.PlaylistLevelType.AUDIO;case i.PlaylistContextType.SUBTITLE_TRACK:return i.PlaylistLevelType.SUBTITLE;default:return i.PlaylistLevelType.MAIN}}function l(a,s){var u=a.url;return(u===void 0||u.indexOf("data:")===0)&&(u=s.url),u}var t=function(){function a(u){this.hls=void 0,this.loaders=Object.create(null),this.hls=u,this.registerListeners()}var s=a.prototype;return s.registerListeners=function(){var h=this.hls;h.on(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.on(g.Events.LEVEL_LOADING,this.onLevelLoading,this),h.on(g.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.on(g.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},s.unregisterListeners=function(){var h=this.hls;h.off(g.Events.MANIFEST_LOADING,this.onManifestLoading,this),h.off(g.Events.LEVEL_LOADING,this.onLevelLoading,this),h.off(g.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),h.off(g.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},s.createInternalLoader=function(h){var p=this.hls.config,m=p.pLoader,v=p.loader,y=m||v,E=new y(p);return h.loader=E,this.loaders[h.type]=E,E},s.getInternalLoader=function(h){return this.loaders[h.type]},s.resetInternalLoader=function(h){this.loaders[h]&&delete this.loaders[h]},s.destroyInternalLoaders=function(){for(var h in this.loaders){var p=this.loaders[h];p&&p.destroy(),this.resetInternalLoader(h)}},s.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},s.onManifestLoading=function(h,p){var m=p.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:i.PlaylistContextType.MANIFEST,url:m,deliveryDirectives:null})},s.onLevelLoading=function(h,p){var m=p.id,v=p.level,y=p.url,E=p.deliveryDirectives;this.load({id:m,groupId:null,level:v,responseType:"text",type:i.PlaylistContextType.LEVEL,url:y,deliveryDirectives:E})},s.onAudioTrackLoading=function(h,p){var m=p.id,v=p.groupId,y=p.url,E=p.deliveryDirectives;this.load({id:m,groupId:v,level:null,responseType:"text",type:i.PlaylistContextType.AUDIO_TRACK,url:y,deliveryDirectives:E})},s.onSubtitleTrackLoading=function(h,p){var m=p.id,v=p.groupId,y=p.url,E=p.deliveryDirectives;this.load({id:m,groupId:v,level:null,responseType:"text",type:i.PlaylistContextType.SUBTITLE_TRACK,url:y,deliveryDirectives:E})},s.load=function(h){var p,m=this.hls.config,v=this.getInternalLoader(h);if(v){var y=v.context;if(y&&y.url===h.url){c.logger.trace("[playlist-loader]: playlist request ongoing");return}c.logger.log("[playlist-loader]: aborting previous loader for type: "+h.type),v.abort()}var E,T,w,S;switch(h.type){case i.PlaylistContextType.MANIFEST:E=m.manifestLoadingMaxRetry,T=m.manifestLoadingTimeOut,w=m.manifestLoadingRetryDelay,S=m.manifestLoadingMaxRetryTimeout;break;case i.PlaylistContextType.LEVEL:case i.PlaylistContextType.AUDIO_TRACK:case i.PlaylistContextType.SUBTITLE_TRACK:E=0,T=m.levelLoadingTimeOut;break;default:E=m.levelLoadingMaxRetry,T=m.levelLoadingTimeOut,w=m.levelLoadingRetryDelay,S=m.levelLoadingMaxRetryTimeout;break}if(v=this.createInternalLoader(h),(p=h.deliveryDirectives)!==null&&p!==void 0&&p.part){var _;if(h.type===i.PlaylistContextType.LEVEL&&h.level!==null?_=this.hls.levels[h.level].details:h.type===i.PlaylistContextType.AUDIO_TRACK&&h.id!==null?_=this.hls.audioTracks[h.id].details:h.type===i.PlaylistContextType.SUBTITLE_TRACK&&h.id!==null&&(_=this.hls.subtitleTracks[h.id].details),_){var I=_.partTarget,L=_.targetduration;I&&L&&(T=Math.min(Math.max(I*3,L*.8)*1e3,T))}}var N={timeout:T,maxRetry:E,retryDelay:w,maxRetryDelay:S,highWaterMark:0},R={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};v.load(h,N,R)},s.loadsuccess=function(h,p,m,v){if(v===void 0&&(v=null),m.isSidxRequest){this.handleSidxRequest(h,m),this.handlePlaylistLoaded(h,p,m,v);return}this.resetInternalLoader(m.type);var y=h.data;if(y.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(h,m,"no EXTM3U delimiter",v);return}p.parsing.start=performance.now(),y.indexOf("#EXTINF:")>0||y.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(h,p,m,v):this.handleMasterPlaylist(h,p,m,v)},s.loaderror=function(h,p,m){m===void 0&&(m=null),this.handleNetworkError(p,m,!1,h)},s.loadtimeout=function(h,p,m){m===void 0&&(m=null),this.handleNetworkError(p,m,!0)},s.handleMasterPlaylist=function(h,p,m,v){var y=this.hls,E=h.data,T=l(h,m),w=r.default.parseMasterPlaylist(E,T),S=w.levels,_=w.sessionData;if(!S.length){this.handleManifestParsingError(h,m,"no level found in manifest",v);return}var I=S.map(function(M){return{id:M.attrs.AUDIO,audioCodec:M.audioCodec}}),L=S.map(function(M){return{id:M.attrs.SUBTITLES,textCodec:M.textCodec}}),N=r.default.parseMasterPlaylistMedia(E,T,"AUDIO",I),R=r.default.parseMasterPlaylistMedia(E,T,"SUBTITLES",L),D=r.default.parseMasterPlaylistMedia(E,T,"CLOSED-CAPTIONS");if(N.length){var F=N.some(function(M){return!M.url});!F&&S[0].audioCodec&&!S[0].attrs.AUDIO&&(c.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),N.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new n.AttrList({}),bitrate:0,url:""}))}y.trigger(g.Events.MANIFEST_LOADED,{levels:S,audioTracks:N,subtitles:R,captions:D,url:T,stats:p,networkDetails:v,sessionData:_})},s.handleTrackOrLevelPlaylist=function(h,p,m,v){var y=this.hls,E=m.id,T=m.level,w=m.type,S=l(h,m),_=Object(b.isFiniteNumber)(E)?E:0,I=Object(b.isFiniteNumber)(T)?T:_,L=e(m),N=r.default.parseLevelPlaylist(h.data,S,I,L,_);if(!N.fragments.length){y.trigger(g.Events.ERROR,{type:f.ErrorTypes.NETWORK_ERROR,details:f.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:S,reason:"no fragments found in level",level:typeof m.level=="number"?m.level:void 0});return}if(w===i.PlaylistContextType.MANIFEST){var R={attrs:new n.AttrList({}),bitrate:0,details:N,name:"",url:S};y.trigger(g.Events.MANIFEST_LOADED,{levels:[R],audioTracks:[],url:S,stats:p,networkDetails:v,sessionData:null})}if(p.parsing.end=performance.now(),N.needSidxRanges){var D,F=(D=N.fragments[0].initSegment)===null||D===void 0?void 0:D.url;this.load({url:F,isSidxRequest:!0,type:w,level:T,levelDetails:N,id:E,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}m.levelDetails=N,this.handlePlaylistLoaded(h,p,m,v)},s.handleSidxRequest=function(h,p){var m=Object(o.parseSegmentIndex)(new Uint8Array(h.data));if(!m)return;var v=m.references,y=p.levelDetails;v.forEach(function(E,T){var w=E.info,S=y.fragments[T];S.byteRange.length===0&&S.setByteRange(String(1+w.end-w.start)+"@"+String(w.start)),S.initSegment&&S.initSegment.setByteRange(String(m.moovEndOffset)+"@0")})},s.handleManifestParsingError=function(h,p,m,v){this.hls.trigger(g.Events.ERROR,{type:f.ErrorTypes.NETWORK_ERROR,details:f.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:p.type===i.PlaylistContextType.MANIFEST,url:h.url,reason:m,response:h,context:p,networkDetails:v})},s.handleNetworkError=function(h,p,m,v){m===void 0&&(m=!1),c.logger.warn("[playlist-loader]: A network "+(m?"timeout":"error")+" occurred while loading "+h.type+" level: "+h.level+" id: "+h.id+' group-id: "'+h.groupId+'"');var y=f.ErrorDetails.UNKNOWN,E=!1,T=this.getInternalLoader(h);switch(h.type){case i.PlaylistContextType.MANIFEST:y=m?f.ErrorDetails.MANIFEST_LOAD_TIMEOUT:f.ErrorDetails.MANIFEST_LOAD_ERROR,E=!0;break;case i.PlaylistContextType.LEVEL:y=m?f.ErrorDetails.LEVEL_LOAD_TIMEOUT:f.ErrorDetails.LEVEL_LOAD_ERROR,E=!1;break;case i.PlaylistContextType.AUDIO_TRACK:y=m?f.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:f.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,E=!1;break;case i.PlaylistContextType.SUBTITLE_TRACK:y=m?f.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:f.ErrorDetails.SUBTITLE_LOAD_ERROR,E=!1;break}T&&this.resetInternalLoader(h.type);var w={type:f.ErrorTypes.NETWORK_ERROR,details:y,fatal:E,url:h.url,loader:T,context:h,networkDetails:p};v&&(w.response=v),this.hls.trigger(g.Events.ERROR,w)},s.handlePlaylistLoaded=function(h,p,m,v){var y=m.type,E=m.level,T=m.id,w=m.groupId,S=m.loader,_=m.levelDetails,I=m.deliveryDirectives;if(!(_!=null&&_.targetduration)){this.handleManifestParsingError(h,m,"invalid target duration",v);return}if(!S)return;_.live&&(S.getCacheAge&&(_.ageHeader=S.getCacheAge()||0),(!S.getCacheAge||isNaN(_.ageHeader))&&(_.ageHeader=0));switch(y){case i.PlaylistContextType.MANIFEST:case i.PlaylistContextType.LEVEL:this.hls.trigger(g.Events.LEVEL_LOADED,{details:_,level:E||0,id:T||0,stats:p,networkDetails:v,deliveryDirectives:I});break;case i.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(g.Events.AUDIO_TRACK_LOADED,{details:_,id:T||0,groupId:w||"",stats:p,networkDetails:v,deliveryDirectives:I});break;case i.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(g.Events.SUBTITLE_TRACK_LOADED,{details:_,id:T||0,groupId:w||"",stats:p,networkDetails:v,deliveryDirectives:I});break}},a}();C.default=t},"./src/polyfills/number.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"isFiniteNumber",function(){return b}),A.d(C,"MAX_SAFE_INTEGER",function(){return g});var b=Number.isFinite||function(f){return typeof f=="number"&&isFinite(f)},g=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(x,C,A){"use strict";A.r(C);var b=function(){function g(){}return g.getSilentFrame=function(c,o){switch(c){case"mp4a.40.2":if(o===1)return new Uint8Array([0,200,0,128,35,128]);if(o===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(o===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(o===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(o===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(o===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(o===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(o===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(o===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},g}();C.default=b},"./src/remux/mp4-generator.ts":function(x,C,A){"use strict";A.r(C);var b=Math.pow(2,32)-1,g=function(){function f(){}return f.init=function(){f.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 o;for(o in f.types)f.types.hasOwnProperty(o)&&(f.types[o]=[o.charCodeAt(0),o.charCodeAt(1),o.charCodeAt(2),o.charCodeAt(3)]);var r=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),i=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);f.HDLR_TYPES={video:r,audio:i};var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e=new Uint8Array([0,0,0,0,0,0,0,0]);f.STTS=f.STSC=f.STCO=e,f.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),f.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),f.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),f.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var l=new Uint8Array([105,115,111,109]),t=new Uint8Array([97,118,99,49]),a=new Uint8Array([0,0,0,1]);f.FTYP=f.box(f.types.ftyp,l,a,l,t),f.DINF=f.box(f.types.dinf,f.box(f.types.dref,n))},f.box=function(o){for(var r=8,i=arguments.length,n=new Array(i>1?i-1:0),e=1;e<i;e++)n[e-1]=arguments[e];for(var l=n.length,t=l;l--;)r+=n[l].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(o,4),l=0,r=8;l<t;l++)a.set(n[l],r),r+=n[l].byteLength;return a},f.hdlr=function(o){return f.box(f.types.hdlr,f.HDLR_TYPES[o])},f.mdat=function(o){return f.box(f.types.mdat,o)},f.mdhd=function(o,r){r*=o;var i=Math.floor(r/(b+1)),n=Math.floor(r%(b+1));return f.box(f.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,o>>24&255,o>>16&255,o>>8&255,o&255,i>>24,i>>16&255,i>>8&255,i&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))},f.mdia=function(o){return f.box(f.types.mdia,f.mdhd(o.timescale,o.duration),f.hdlr(o.type),f.minf(o))},f.mfhd=function(o){return f.box(f.types.mfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255]))},f.minf=function(o){return o.type==="audio"?f.box(f.types.minf,f.box(f.types.smhd,f.SMHD),f.DINF,f.stbl(o)):f.box(f.types.minf,f.box(f.types.vmhd,f.VMHD),f.DINF,f.stbl(o))},f.moof=function(o,r,i){return f.box(f.types.moof,f.mfhd(o),f.traf(i,r))},f.moov=function(o){for(var r=o.length,i=[];r--;)i[r]=f.trak(o[r]);return f.box.apply(null,[f.types.moov,f.mvhd(o[0].timescale,o[0].duration)].concat(i).concat(f.mvex(o)))},f.mvex=function(o){for(var r=o.length,i=[];r--;)i[r]=f.trex(o[r]);return f.box.apply(null,[f.types.mvex].concat(i))},f.mvhd=function(o,r){r*=o;var i=Math.floor(r/(b+1)),n=Math.floor(r%(b+1)),e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,o>>24&255,o>>16&255,o>>8&255,o&255,i>>24,i>>16&255,i>>8&255,i&255,n>>24,n>>16&255,n>>8&255,n&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return f.box(f.types.mvhd,e)},f.sdtp=function(o){var r=o.samples||[],i=new Uint8Array(4+r.length),n,e;for(n=0;n<r.length;n++)e=r[n].flags,i[n+4]=e.dependsOn<<4|e.isDependedOn<<2|e.hasRedundancy;return f.box(f.types.sdtp,i)},f.stbl=function(o){return f.box(f.types.stbl,f.stsd(o),f.box(f.types.stts,f.STTS),f.box(f.types.stsc,f.STSC),f.box(f.types.stsz,f.STSZ),f.box(f.types.stco,f.STCO))},f.avc1=function(o){var r=[],i=[],n,e,l;for(n=0;n<o.sps.length;n++)e=o.sps[n],l=e.byteLength,r.push(l>>>8&255),r.push(l&255),r=r.concat(Array.prototype.slice.call(e));for(n=0;n<o.pps.length;n++)e=o.pps[n],l=e.byteLength,i.push(l>>>8&255),i.push(l&255),i=i.concat(Array.prototype.slice.call(e));var t=f.box(f.types.avcC,new Uint8Array([1,r[3],r[4],r[5],252|3,224|o.sps.length].concat(r).concat([o.pps.length]).concat(i))),a=o.width,s=o.height,u=o.pixelRatio[0],h=o.pixelRatio[1];return f.box(f.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,s>>8&255,s&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,f.box(f.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),f.box(f.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,u&255,h>>24,h>>16&255,h>>8&255,h&255])))},f.esds=function(o){var r=o.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(o.config).concat([6,1,2]))},f.mp4a=function(o){var r=o.samplerate;return f.box(f.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,o.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]),f.box(f.types.esds,f.esds(o)))},f.mp3=function(o){var r=o.samplerate;return f.box(f.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,o.channelCount,0,16,0,0,0,0,r>>8&255,r&255,0,0]))},f.stsd=function(o){return o.type==="audio"?!o.isAAC&&o.codec==="mp3"?f.box(f.types.stsd,f.STSD,f.mp3(o)):f.box(f.types.stsd,f.STSD,f.mp4a(o)):f.box(f.types.stsd,f.STSD,f.avc1(o))},f.tkhd=function(o){var r=o.id,i=o.duration*o.timescale,n=o.width,e=o.height,l=Math.floor(i/(b+1)),t=Math.floor(i%(b+1));return f.box(f.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,l>>24,l>>16&255,l>>8&255,l&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]))},f.traf=function(o,r){var i=f.sdtp(o),n=o.id,e=Math.floor(r/(b+1)),l=Math.floor(r%(b+1));return f.box(f.types.traf,f.box(f.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),f.box(f.types.tfdt,new Uint8Array([1,0,0,0,e>>24,e>>16&255,e>>8&255,e&255,l>>24,l>>16&255,l>>8&255,l&255])),f.trun(o,i.length+16+20+8+16+8+8),i)},f.trak=function(o){return o.duration=o.duration||4294967295,f.box(f.types.trak,f.tkhd(o),f.mdia(o))},f.trex=function(o){var r=o.id;return f.box(f.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]))},f.trun=function(o,r){var i=o.samples||[],n=i.length,e=12+16*n,l=new Uint8Array(e),t,a,s,u,h,p;for(r+=8+e,l.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=i[t],s=a.duration,u=a.size,h=a.flags,p=a.cts,l.set([s>>>24&255,s>>>16&255,s>>>8&255,s&255,u>>>24&255,u>>>16&255,u>>>8&255,u&255,h.isLeading<<2|h.dependsOn,h.isDependedOn<<6|h.hasRedundancy<<4|h.paddingValue<<1|h.isNonSync,h.degradPrio&240<<8,h.degradPrio&15,p>>>24&255,p>>>16&255,p>>>8&255,p&255],12+16*t);return f.box(f.types.trun,l)},f.initSegment=function(o){f.types||f.init();var r=f.moov(o),i=new Uint8Array(f.FTYP.byteLength+r.byteLength);return i.set(f.FTYP),i.set(r,f.FTYP.byteLength),i},f}();g.types=void 0,g.HDLR_TYPES=void 0,g.STTS=void 0,g.STSC=void 0,g.STCO=void 0,g.STSZ=void 0,g.VMHD=void 0,g.SMHD=void 0,g.STSD=void 0,g.FTYP=void 0,g.DINF=void 0,C.default=g},"./src/remux/mp4-remuxer.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return p}),A.d(C,"normalizePts",function(){return m});var b=A("./src/polyfills/number.ts"),g=A("./src/remux/aac-helper.ts"),f=A("./src/remux/mp4-generator.ts"),c=A("./src/events.ts"),o=A("./src/errors.ts"),r=A("./src/utils/logger.ts"),i=A("./src/types/loader.ts"),n=A("./src/utils/timescale-conversion.ts");function e(){return e=Object.assign||function(T){for(var w=1;w<arguments.length;w++){var S=arguments[w];for(var _ in S)Object.prototype.hasOwnProperty.call(S,_)&&(T[_]=S[_])}return T},e.apply(this,arguments)}var l=10*1e3,t=1024,a=1152,s=null,u=null,h=!1,p=function(){function T(S,_,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=S,this.config=_,this.typeSupported=I,this.ISGenerated=!1,s===null){var N=navigator.userAgent||"",R=N.match(/Chrome\/(\d+)/i);s=R?parseInt(R[1]):0}if(u===null){var D=navigator.userAgent.match(/Safari\/(\d+)/i);u=D?parseInt(D[1]):0}h=!!s&&s<75||!!u&&u<600}var w=T.prototype;return w.destroy=function(){},w.resetTimeStamp=function(_){r.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=_},w.resetNextTimestamp=function(){r.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1},w.resetInitSegment=function(){r.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1},w.getVideoStartPts=function(_){var I=!1,L=_.reduce(function(N,R){var D=R.pts-N;return D<-4294967296?(I=!0,m(N,R.pts)):D>0?N:R.pts},_[0].pts);return I&&r.logger.debug("PTS rollover detected"),L},w.remux=function(_,I,L,N,R,D,F,M){var U,B,j,W,V,z,J=R,q=R,de=_.pid>-1,ae=I.pid>-1,ve=I.samples.length,_e=_.samples.length>0,Ie=ve>1,He=(!de||_e)&&(!ae||Ie)||this.ISGenerated||F;if(He){this.ISGenerated||(j=this.generateIS(_,I,R));var me=this.isVideoContiguous,ke=-1;if(Ie&&(ke=v(I.samples),!me&&this.config.forceKeyFrameOnDiscontinuity))if(z=!0,ke>0){r.logger.warn("[mp4-remuxer]: Dropped "+ke+" out of "+ve+" video samples due to a missing keyframe");var se=this.getVideoStartPts(I.samples);I.samples=I.samples.slice(ke),I.dropped+=ke,q+=(I.samples[0].pts-se)/(I.timescale||9e4)}else ke===-1&&(r.logger.warn("[mp4-remuxer]: No keyframe found out of "+ve+" video samples"),z=!1);if(this.ISGenerated){if(_e&&Ie){var te=this.getVideoStartPts(I.samples),Ge=m(_.samples[0].pts,te)-te,oe=Ge/I.inputTimeScale;J+=Math.max(0,oe),q+=Math.max(0,-oe)}if(_e){if(_.samplerate||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),j=this.generateIS(_,I,R)),B=this.remuxAudio(_,J,this.isAudioContiguous,D,ae||Ie||M===i.PlaylistLevelType.AUDIO?q:void 0),Ie){var Y=B?B.endPTS-B.startPTS:0;I.inputTimeScale||(r.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),j=this.generateIS(_,I,R)),U=this.remuxVideo(I,q,me,Y)}}else Ie&&(U=this.remuxVideo(I,q,me,0));U&&(U.firstKeyFrame=ke,U.independent=ke!==-1)}}return this.ISGenerated&&(L.samples.length&&(V=this.remuxID3(L,R)),N.samples.length&&(W=this.remuxText(N,R))),{audio:B,video:U,initSegment:j,independent:z,text:W,id3:V}},w.generateIS=function(_,I,L){var N=_.samples,R=I.samples,D=this.typeSupported,F={},M=!Object(b.isFiniteNumber)(this._initPTS),U="audio/mp4",B,j,W;if(M&&(B=j=Infinity),_.config&&N.length&&(_.timescale=_.samplerate,_.isAAC||(D.mpeg?(U="audio/mpeg",_.codec=""):D.mp3&&(_.codec="mp3")),F.audio={id:"audio",container:U,codec:_.codec,initSegment:!_.isAAC&&D.mpeg?new Uint8Array(0):f.default.initSegment([_]),metadata:{channelCount:_.channelCount}},M&&(W=_.inputTimeScale,B=j=N[0].pts-Math.round(W*L))),I.sps&&I.pps&&R.length&&(I.timescale=I.inputTimeScale,F.video={id:"main",container:"video/mp4",codec:I.codec,initSegment:f.default.initSegment([I]),metadata:{width:I.width,height:I.height}},M)){W=I.inputTimeScale;var V=this.getVideoStartPts(R),z=Math.round(W*L);j=Math.min(j,m(R[0].dts,V)-z),B=Math.min(B,V-z)}if(Object.keys(F).length)return this.ISGenerated=!0,M&&(this._initPTS=B,this._initDTS=j),{tracks:F,initPTS:B,timescale:W}},w.remuxVideo=function(_,I,L,N){var R=_.inputTimeScale,D=_.samples,F=[],M=D.length,U=this._initPTS,B=this.nextAvcDts,j=8,W,V,z,J=Number.POSITIVE_INFINITY,q=Number.NEGATIVE_INFINITY,de=0,ae=!1;if(!L||B===null){var ve=I*R,_e=D[0].pts-m(D[0].dts,D[0].pts);B=ve-_e}for(var Ie=0;Ie<M;Ie++){var He=D[Ie];if(He.pts=m(He.pts-U,B),He.dts=m(He.dts-U,B),He.dts>He.pts){var me=9e4*.2;de=Math.max(Math.min(de,He.pts-He.dts),-1*me)}He.dts<D[Ie>0?Ie-1:Ie].dts&&(ae=!0)}ae&&D.sort(function(Lr,Wt){var ar=Lr.dts-Wt.dts,Ut=Lr.pts-Wt.pts;return ar||Ut}),V=D[0].dts,z=D[D.length-1].dts;var ke=Math.round((z-V)/(M-1));if(de<0){if(de<ke*-2){r.logger.warn("PTS < DTS detected in video samples, offsetting DTS from PTS by "+Object(n.toMsFromMpegTsClock)(-ke,!0)+" ms");for(var se=de,te=0;te<M;te++)D[te].dts=se=Math.max(se,D[te].pts-ke),D[te].pts=Math.max(se,D[te].pts)}else{r.logger.warn("PTS < DTS detected in video samples, shifting DTS by "+Object(n.toMsFromMpegTsClock)(de,!0)+" ms to overcome this issue");for(var Ge=0;Ge<M;Ge++)D[Ge].dts=D[Ge].dts+de}V=D[0].dts}if(L){var oe=V-B,Y=oe>ke,G=oe<-1;if(Y||G){Y?r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(oe,!0)+" ms ("+oe+"dts) hole between fragments detected, filling it"):r.logger.warn("AVC: "+Object(n.toMsFromMpegTsClock)(-oe,!0)+" ms ("+oe+"dts) overlapping between fragments detected"),V=B;var Q=D[0].pts-oe;D[0].dts=V,D[0].pts=Q,r.logger.log("Video: First PTS/DTS adjusted: "+Object(n.toMsFromMpegTsClock)(Q,!0)+"/"+Object(n.toMsFromMpegTsClock)(V,!0)+", delta: "+Object(n.toMsFromMpegTsClock)(oe,!0)+" ms")}}h&&(V=Math.max(0,V));for(var ye=0,ce=0,Te=0;Te<M;Te++){for(var Se=D[Te],le=Se.units,fe=le.length,Ee=0,Ve=0;Ve<fe;Ve++)Ee+=le[Ve].data.length;ce+=Ee,ye+=fe,Se.length=Ee,Se.dts=Math.max(Se.dts,V),Se.pts=Math.max(Se.pts,Se.dts,0),J=Math.min(Se.pts,J),q=Math.max(Se.pts,q)}z=D[M-1].dts;var vt=ce+4*ye+8,et;try{et=new Uint8Array(vt)}catch(Lr){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:vt,reason:"fail allocating video mdat "+vt});return}var Oe=new DataView(et.buffer);Oe.setUint32(0,vt),et.set(f.default.types.mdat,4);for(var Tt=0;Tt<M;Tt++){for(var Je=D[Tt],St=Je.units,Mt=0,er=0,It=St.length;er<It;er++){var _t=St[er],Xe=_t.data,ie=_t.data.byteLength;Oe.setUint32(j,ie),j+=4,et.set(Xe,j),j+=ie,Mt+=4+ie}if(Tt<M-1)W=D[Tt+1].dts-Je.dts;else{var X=this.config,Be=Je.dts-D[Tt>0?Tt-1:Tt].dts;if(X.stretchShortVideoTrack&&this.nextAudioPts!==null){var Ce=Math.floor(X.maxBufferHole*R),Z=(N?J+N*R:this.nextAudioPts)-Je.pts;Z>Ce?(W=Z-Be,W<0&&(W=Be),r.logger.log("[mp4-remuxer]: It is approximately "+Z/90+" ms to the next segment; using duration "+W/90+" ms for the last video frame.")):W=Be}else W=Be}var nt=Math.round(Je.pts-Je.dts);F.push(new y(Je.key,W,Mt,nt))}if(F.length&&s&&s<70){var ct=F[0].flags;ct.dependsOn=2,ct.isNonSync=0}console.assert(W!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=B=z+W,this.isVideoContiguous=!0;var Qe=f.default.moof(_.sequenceNumber++,V,e({},_,{samples:F})),dt="video",Ft={data1:Qe,data2:et,startPTS:J/R,endPTS:(q+W)/R,startDTS:V/R,endDTS:B/R,type:dt,hasAudio:!1,hasVideo:!0,nb:F.length,dropped:_.dropped};return _.samples=[],_.dropped=0,console.assert(et.length,"MDAT length must not be zero"),Ft},w.remuxAudio=function(_,I,L,N,R){var D=_.inputTimeScale,F=_.samplerate?_.samplerate:D,M=D/F,U=_.isAAC?t:a,B=U*M,j=this._initPTS,W=!_.isAAC&&this.typeSupported.mpeg,V=[],z=_.samples,J=W?0:8,q=this.nextAudioPts||-1,de=I*D;if(this.isAudioContiguous=L=L||z.length&&q>0&&(N&&Math.abs(de-q)<9e3||Math.abs(m(z[0].pts-j,de)-q)<20*B),z.forEach(function(Xe){Xe.pts=m(Xe.pts-j,de)}),!L||q<0){if(z=z.filter(function(Xe){return Xe.pts>=0}),!z.length)return;R===0?q=0:N?q=Math.max(0,de):q=z[0].pts}if(_.isAAC)for(var ae=R!==void 0,ve=this.config.maxAudioFramesDrift,_e=0,Ie=q;_e<z.length;_e++){var He=z[_e],me=He.pts,ke=me-Ie,se=Math.abs(1e3*ke/D);if(ke<=-ve*B&&ae)_e===0&&(r.logger.warn("Audio frame @ "+(me/D).toFixed(3)+"s overlaps nextAudioPts by "+Math.round(1e3*ke/D)+" ms."),this.nextAudioPts=q=Ie=me);else if(ke>=ve*B&&se<l&&ae){var te=Math.round(ke/B);Ie=me-te*B,Ie<0&&(te--,Ie+=B),_e===0&&(this.nextAudioPts=q=Ie),r.logger.warn("[mp4-remuxer]: Injecting "+te+" audio frame @ "+(Ie/D).toFixed(3)+"s due to "+Math.round(1e3*ke/D)+" ms gap.");for(var Ge=0;Ge<te;Ge++){var oe=Math.max(Ie,0),Y=g.default.getSilentFrame(_.manifestCodec||_.codec,_.channelCount);Y||(r.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),Y=He.unit.subarray()),z.splice(_e,0,{unit:Y,pts:oe}),Ie+=B,_e++}}He.pts=Ie,Ie+=B}for(var G=null,Q=null,ye,ce=0,Te=z.length;Te--;)ce+=z[Te].unit.byteLength;for(var Se=0,le=z.length;Se<le;Se++){var fe=z[Se],Ee=fe.unit,Ve=fe.pts;if(Q!==null){var vt=V[Se-1];vt.duration=Math.round((Ve-Q)/M)}else if(L&&_.isAAC&&(Ve=q),G=Ve,ce>0){ce+=J;try{ye=new Uint8Array(ce)}catch(Xe){this.observer.emit(c.Events.ERROR,c.Events.ERROR,{type:o.ErrorTypes.MUX_ERROR,details:o.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:ce,reason:"fail allocating audio mdat "+ce});return}if(!W){var et=new DataView(ye.buffer);et.setUint32(0,ce),ye.set(f.default.types.mdat,4)}}else return;ye.set(Ee,J);var Oe=Ee.byteLength;J+=Oe,V.push(new y(!0,U,Oe,0)),Q=Ve}var Tt=V.length;if(!Tt)return;var Je=V[V.length-1];this.nextAudioPts=q=Q+M*Je.duration;var St=W?new Uint8Array(0):f.default.moof(_.sequenceNumber++,G/M,e({},_,{samples:V}));_.samples=[];var Mt=G/D,er=q/D,It="audio",_t={data1:St,data2:ye,startPTS:Mt,endPTS:er,startDTS:Mt,endDTS:er,type:It,hasAudio:!0,hasVideo:!1,nb:Tt};return this.isAudioContiguous=!0,console.assert(ye.length,"MDAT length must not be zero"),_t},w.remuxEmptyAudio=function(_,I,L,N){var R=_.inputTimeScale,D=_.samplerate?_.samplerate:R,F=R/D,M=this.nextAudioPts,U=(M!==null?M:N.startDTS*R)+this._initDTS,B=N.endDTS*R+this._initDTS,j=F*t,W=Math.ceil((B-U)/j),V=g.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=[],J=0;J<W;J++){var q=U+J*j;z.push({unit:V,pts:q,dts:q})}return _.samples=z,this.remuxAudio(_,I,L,!1)},w.remuxID3=function(_,I){var L=_.samples.length;if(!L)return;for(var N=_.inputTimeScale,R=this._initPTS,D=this._initDTS,F=0;F<L;F++){var M=_.samples[F];M.pts=m(M.pts-R,I*N)/N,M.dts=m(M.dts-D,I*N)/N}var U=_.samples;return _.samples=[],{samples:U}},w.remuxText=function(_,I){var L=_.samples.length;if(!L)return;for(var N=_.inputTimeScale,R=this._initPTS,D=0;D<L;D++){var F=_.samples[D];F.pts=m(F.pts-R,I*N)/N}_.samples.sort(function(U,B){return U.pts-B.pts});var M=_.samples;return _.samples=[],{samples:M}},T}();function m(T,w){var S;if(w===null)return T;for(w<T?S=-8589934592:S=8589934592;Math.abs(T-w)>4294967296;)T+=S;return T}function v(T){for(var w=0;w<T.length;w++)if(T[w].key)return w;return-1}var y=function(w,S,_,I){this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=S,this.size=_,this.cts=I,this.flags=new E(w)},E=function(w){this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=w?2:1,this.isNonSync=w?0:1}},"./src/remux/passthrough-remuxer.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/polyfills/number.ts"),g=A("./src/utils/mp4-tools.ts"),f=A("./src/loader/fragment.ts"),c=A("./src/utils/logger.ts"),o=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,s){this.audioCodec=a,this.videoCodec=s,this.generateInitSegment(t),this.emitInitSegment=!0},e.generateInitSegment=function(t){var a=this.audioCodec,s=this.videoCodec;if(!t||!t.byteLength){this.initTracks=void 0,this.initData=void 0;return}var u=this.initData=Object(g.parseInitSegment)(t);a||(a=i(u.audio,f.ElementaryStreamTypes.AUDIO)),s||(s=i(u.video,f.ElementaryStreamTypes.VIDEO));var h={};u.audio&&u.video?h.audiovideo={container:"video/mp4",codec:a+","+s,initSegment:t,id:"main"}:u.audio?h.audio={container:"audio/mp4",codec:a,initSegment:t,id:"audio"}:u.video?h.video={container:"video/mp4",codec:s,initSegment:t,id:"main"}:c.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=h},e.remux=function(t,a,s,u,h){var p=this.initPTS,m=this.lastEndDTS,v={audio:void 0,video:void 0,text:u,id3:s,initSegment:void 0};Object(b.isFiniteNumber)(m)||(m=this.lastEndDTS=h||0);var y=a.samples;if(!y||!y.length)return v;var E={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."),v;this.emitInitSegment&&(E.tracks=this.initTracks,this.emitInitSegment=!1),Object(b.isFiniteNumber)(p)||(this.initPTS=E.initPTS=p=r(T,y,m));var w=Object(g.getDuration)(y,T),S=m,_=w+S;Object(g.offsetStartDTS)(T,y,p),w>0?this.lastEndDTS=_:(c.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var I=!!T.audio,L=!!T.video,N="";I&&(N+="audio"),L&&(N+="video");var R={data1:y,startPTS:S,startDTS:S,endPTS:_,endDTS:_,type:N,hasAudio:I,hasVideo:L,nb:1,dropped:0};return v.audio=R.type==="audio"?R:void 0,v.video=R.type!=="audio"?R:void 0,v.text=u,v.id3=s,v.initSegment=E,v},n}(),r=function(e,l,t){return Object(g.getStartDTS)(e,l)-t};function i(n,e){var l=n==null?void 0:n.codec;return l&&l.length>4?l:l==="hvc1"?"hvc1.1.c.L120.90":l==="av01"?"av01.0.04M.08":l==="avc1"||e===f.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}C.default=o},"./src/task-loop.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return b});var b=function(){function g(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var f=g.prototype;return f.destroy=function(){this.onHandlerDestroying(),this.onHandlerDestroyed()},f.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},f.onHandlerDestroyed=function(){},f.hasInterval=function(){return!!this._tickInterval},f.hasNextTick=function(){return!!this._tickTimer},f.setInterval=function(o){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,o),!0)},f.clearInterval=function(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1},f.clearNextTick=function(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1},f.tick=function(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)},f.tickImmediate=function(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)},f.doTick=function(){},g}()},"./src/types/cmcd.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"CMCDVersion",function(){return b}),A.d(C,"CMCDObjectType",function(){return g}),A.d(C,"CMCDStreamingFormat",function(){return f}),A.d(C,"CMCDStreamType",function(){return c});var b=1,g;(function(o){o.MANIFEST="m",o.AUDIO="a",o.VIDEO="v",o.MUXED="av",o.INIT="i",o.CAPTION="c",o.TIMED_TEXT="tt",o.KEY="k",o.OTHER="o"})(g||(g={}));var f;(function(o){o.DASH="d",o.HLS="h",o.SMOOTH="s",o.OTHER="o"})(f||(f={}));var c;(function(o){o.VOD="v",o.LIVE="l"})(c||(c={}))},"./src/types/level.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"HlsSkip",function(){return f}),A.d(C,"getSkipValue",function(){return c}),A.d(C,"HlsUrlParameters",function(){return o}),A.d(C,"Level",function(){return r});function b(i,n){for(var e=0;e<n.length;e++){var l=n[e];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(i,l.key,l)}}function g(i,n,e){return n&&b(i.prototype,n),e&&b(i,e),i}var f;(function(i){i.No="",i.Yes="YES",i.v2="v2"})(f||(f={}));function c(i,n){var e=i.canSkipUntil,l=i.canSkipDateRanges,t=i.endSN,a=n!==void 0?n-t:0;return e&&a<e?l?f.v2:f.Yes:f.No}var o=function(){function i(e,l,t){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=l,this.skip=t}var n=i.prototype;return n.addDirectives=function(l){var t=new self.URL(l);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()},i}(),r=function(){function i(n){this.attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.videoCodec=void 0,this.width=void 0,this.unknownCodecs=void 0,this.audioGroupIds=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.textGroupIds=void 0,this.url=void 0,this._urlId=0,this.url=[n.url],this.attrs=n.attrs,this.bitrate=n.bitrate,n.details&&(this.details=n.details),this.id=n.id||0,this.name=n.name,this.width=n.width||0,this.height=n.height||0,this.audioCodec=n.audioCodec,this.videoCodec=n.videoCodec,this.unknownCodecs=n.unknownCodecs,this.codecSet=[n.videoCodec,n.audioCodec].filter(function(e){return e}).join(",").replace(/\.[^.,]+/g,"")}return g(i,[{key:"maxBitrate",get:function(){return Math.max(this.realBitrate,this.bitrate)}},{key:"uri",get:function(){return this.url[this._urlId]||""}},{key:"urlId",get:function(){return this._urlId},set:function(e){var l=e%this.url.length;this._urlId!==l&&(this.details=void 0,this._urlId=l)}}]),i}()},"./src/types/loader.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"PlaylistContextType",function(){return b}),A.d(C,"PlaylistLevelType",function(){return g});var b;(function(f){f.MANIFEST="manifest",f.LEVEL="level",f.AUDIO_TRACK="audioTrack",f.SUBTITLE_TRACK="subtitleTrack"})(b||(b={}));var g;(function(f){f.MAIN="main",f.AUDIO="audio",f.SUBTITLE="subtitle"})(g||(g={}))},"./src/types/transmuxer.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"ChunkMetadata",function(){return b});var b=function(c,o,r,i,n,e){i===void 0&&(i=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=g(),this.buffering={audio:g(),video:g(),audiovideo:g()},this.level=c,this.sn=o,this.id=r,this.size=i,this.part=n,this.partial=e};function g(){return{start:0,executeStart:0,executeEnd:0,end:0}}},"./src/utils/attr-list.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"AttrList",function(){return f});var b=/^(\d+)x(\d+)$/,g=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,f=function(){function c(r){typeof r=="string"&&(r=c.parseAttrList(r));for(var i in r)r.hasOwnProperty(i)&&(this[i]=r[i])}var o=c.prototype;return o.decimalInteger=function(i){var n=parseInt(this[i],10);return n>Number.MAX_SAFE_INTEGER?Infinity:n},o.hexadecimalInteger=function(i){if(this[i]){var n=(this[i]||"0x").slice(2);n=(n.length&1?"0":"")+n;for(var e=new Uint8Array(n.length/2),l=0;l<n.length/2;l++)e[l]=parseInt(n.slice(l*2,l*2+2),16);return e}else return null},o.hexadecimalIntegerAsNumber=function(i){var n=parseInt(this[i],16);return n>Number.MAX_SAFE_INTEGER?Infinity:n},o.decimalFloatingPoint=function(i){return parseFloat(this[i])},o.optionalFloat=function(i,n){var e=this[i];return e?parseFloat(e):n},o.enumeratedString=function(i){return this[i]},o.bool=function(i){return this[i]==="YES"},o.decimalResolution=function(i){var n=b.exec(this[i]);return n===null?void 0:{width:parseInt(n[1],10),height:parseInt(n[2],10)}},c.parseAttrList=function(i){var n,e={},l='"';for(g.lastIndex=0;(n=g.exec(i))!==null;){var t=n[2];t.indexOf(l)===0&&t.lastIndexOf(l)===t.length-1&&(t=t.slice(1,-1)),e[n[1]]=t}return e},c}()},"./src/utils/binary-search.ts":function(x,C,A){"use strict";A.r(C);var b={search:function(f,c){for(var o=0,r=f.length-1,i=null,n=null;o<=r;){i=(o+r)/2|0,n=f[i];var e=c(n);if(e>0)o=i+1;else if(e<0)r=i-1;else return n}return null}};C.default=b},"./src/utils/buffer-helper.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"BufferHelper",function(){return f});var b=A("./src/utils/logger.ts"),g={length:0,start:function(){return 0},end:function(){return 0}},f=function(){function c(){}return c.isBuffered=function(r,i){try{if(r){for(var n=c.getBuffered(r),e=0;e<n.length;e++)if(i>=n.start(e)&&i<=n.end(e))return!0}}catch(l){}return!1},c.bufferInfo=function(r,i,n){try{if(r){var e=c.getBuffered(r),l=[],t;for(t=0;t<e.length;t++)l.push({start:e.start(t),end:e.end(t)});return this.bufferedInfo(l,i,n)}}catch(a){}return{len:0,start:i,end:i,nextStart:void 0}},c.bufferedInfo=function(r,i,n){i=Math.max(0,i),r.sort(function(E,T){var w=E.start-T.start;return w||T.end-E.end});var e=[];if(n)for(var l=0;l<r.length;l++){var t=e.length;if(t){var a=e[t-1].end;r[l].start-a<n?r[l].end>a&&(e[t-1].end=r[l].end):e.push(r[l])}else e.push(r[l])}else e=r;for(var s=0,u,h=i,p=i,m=0;m<e.length;m++){var v=e[m].start,y=e[m].end;if(i+n>=v&&i<y)h=v,p=y,s=p-i;else if(i+n<v){u=v;break}}return{len:s,start:h||0,end:p||0,nextStart:u}},c.getBuffered=function(r){try{return r.buffered}catch(i){return b.logger.log("failed to get media.buffered",i),g}},c}()},"./src/utils/cea-608-parser.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"Row",function(){return p}),A.d(C,"CaptionScreen",function(){return m});var b=A("./src/utils/logger.ts"),g={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},f=function(_){var I=_;return g.hasOwnProperty(_)&&(I=g[_]),String.fromCharCode(I)},c=15,o=100,r={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},i={17:2,18:4,21:6,22:8,23:10,19:13,20:15},n={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},e={25:2,26:4,29:6,30:8,31:10,27:13,28:15},l=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],t;(function(S){S[S.ERROR=0]="ERROR",S[S.TEXT=1]="TEXT",S[S.WARNING=2]="WARNING",S[S.INFO=2]="INFO",S[S.DEBUG=3]="DEBUG",S[S.DATA=3]="DATA"})(t||(t={}));var a=function(){function S(){this.time=null,this.verboseLevel=t.ERROR}var _=S.prototype;return _.log=function(L,N){this.verboseLevel>=L&&b.logger.log(this.time+" ["+L+"] "+N)},S}(),s=function(_){for(var I=[],L=0;L<_.length;L++)I.push(_[L].toString(16));return I},u=function(){function S(I,L,N,R,D){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=N||!1,this.background=R||"black",this.flash=D||!1}var _=S.prototype;return _.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},_.setStyles=function(L){for(var N=["foreground","underline","italics","background","flash"],R=0;R<N.length;R++){var D=N[R];L.hasOwnProperty(D)&&(this[D]=L[D])}},_.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},S}(),h=function(){function S(I,L,N,R,D,F){this.uchar=void 0,this.penState=void 0,this.uchar=I||" ",this.penState=new u(L,N,R,D,F)}var _=S.prototype;return _.reset=function(){this.uchar=" ",this.penState.reset()},_.setChar=function(L,N){this.uchar=L,this.penState.copy(N)},_.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()},S}(),p=function(){function S(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<o;L++)this.chars.push(new h);this.logger=I,this.pos=0,this.currPenState=new u}var _=S.prototype;return _.equals=function(L){for(var N=!0,R=0;R<o;R++)if(!this.chars[R].equals(L.chars[R])){N=!1;break}return N},_.copy=function(L){for(var N=0;N<o;N++)this.chars[N].copy(L.chars[N])},_.isEmpty=function(){for(var L=!0,N=0;N<o;N++)if(!this.chars[N].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>o&&(this.logger.log(t.DEBUG,"Too large cursor position "+this.pos),this.pos=o)},_.moveCursor=function(L){var N=this.pos+L;if(L>1)for(var R=this.pos+1;R<N+1;R++)this.chars[R].setPenState(this.currPenState);this.setCursor(N)},_.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},_.insertChar=function(L){L>=144&&this.backSpace();var N=f(L);if(this.pos>=o){this.logger.log(t.ERROR,"Cannot insert "+L.toString(16)+" ("+N+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(N,this.currPenState),this.moveCursor(1)},_.clearFromPos=function(L){var N;for(N=L;N<o;N++)this.chars[N].reset()},_.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},_.clearToEndOfRow=function(){this.clearFromPos(this.pos)},_.getTextString=function(){for(var L=[],N=!0,R=0;R<o;R++){var D=this.chars[R].uchar;D!==" "&&(N=!1),L.push(D)}return N?"":L.join("")},_.setPenStyles=function(L){this.currPenState.setStyles(L);var N=this.chars[this.pos];N.setPenState(this.currPenState)},S}(),m=function(){function S(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 _=S.prototype;return _.reset=function(){for(var L=0;L<c;L++)this.rows[L].clear();this.currRow=c-1},_.equals=function(L){for(var N=!0,R=0;R<c;R++)if(!this.rows[R].equals(L.rows[R])){N=!1;break}return N},_.copy=function(L){for(var N=0;N<c;N++)this.rows[N].copy(L.rows[N])},_.isEmpty=function(){for(var L=!0,N=0;N<c;N++)if(!this.rows[N].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 N=this.rows[this.currRow];N.insertChar(L)},_.setPen=function(L){var N=this.rows[this.currRow];N.setPenStyles(L)},_.moveCursor=function(L){var N=this.rows[this.currRow];N.moveCursor(L)},_.setCursor=function(L){this.logger.log(t.INFO,"setCursor: "+L);var N=this.rows[this.currRow];N.setCursor(L)},_.setPAC=function(L){this.logger.log(t.INFO,"pacData = "+JSON.stringify(L));var N=L.row-1;if(this.nrRollUpRows&&N<this.nrRollUpRows-1&&(N=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==N){for(var R=0;R<c;R++)this.rows[R].clear();var D=this.currRow+1-this.nrRollUpRows,F=this.lastOutputScreen;if(F){var M=F.rows[D].cueStartTime,U=this.logger.time;if(M&&U!==null&&M<U)for(var B=0;B<this.nrRollUpRows;B++)this.rows[N-this.nrRollUpRows+B+1].copy(F.rows[D+B])}}this.currRow=N;var j=this.rows[this.currRow];if(L.indent!==null){var W=L.indent,V=Math.max(W-1,0);j.setCursor(L.indent),L.color=j.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,N=this.rows.splice(L,1)[0];N.clear(),this.rows.splice(this.currRow,0,N),this.logger.log(t.INFO,"Rolling up")},_.getDisplayText=function(L){L=L||!1;for(var N=[],R="",D=-1,F=0;F<c;F++){var M=this.rows[F].getTextString();M&&(D=F+1,L?N.push("Row "+D+": '"+M+"'"):N.push(M.trim()))}return N.length>0&&(L?R="["+N.join(" | ")+"]":R=N.join(`
`)),R},_.getTextAndFormat=function(){return this.rows},S}(),v=function(){function S(I,L,N){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 m(N),this.nonDisplayedMemory=new m(N),this.lastOutputScreen=new m(N),this.currRollUpRow=this.displayedMemory.rows[c-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=N}var _=S.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 N=0;N<L.length;N++)this.writeScreen.insertChar(L[N]);var R=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(t.INFO,R+": "+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 N={flash:!1};if(N.underline=L%2===1,N.italics=L>=46,N.italics)N.foreground="white";else{var R=Math.floor(L/2)-16,D=["white","green","blue","cyan","red","yellow","magenta"];N.foreground=D[R]}this.logger.log(t.INFO,"MIDROW: "+JSON.stringify(N)),this.writeScreen.setPen(N)},_.outputDataUpdate=function(L){L===void 0&&(L=!1);var N=this.logger.time;if(N===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=N:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,N,this.lastOutputScreen),L&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:N),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))},S}(),y=function(){function S(I,L,N){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var R=new a;this.channels=[null,new v(I,L,R),new v(I+1,N,R)],this.cmdHistory=w(),this.logger=R}var _=S.prototype;return _.getHandler=function(L){return this.channels[L].getHandler()},_.setHandler=function(L,N){this.channels[L].setHandler(N)},_.addData=function(L,N){var R,D,F,M=!1;this.logger.time=L;for(var U=0;U<N.length;U+=2){if(D=N[U]&127,F=N[U+1]&127,D===0&&F===0)continue;if(this.logger.log(t.DATA,"["+s([N[U],N[U+1]])+"] -> ("+s([D,F])+")"),R=this.parseCmd(D,F),R||(R=this.parseMidrow(D,F)),R||(R=this.parsePAC(D,F)),R||(R=this.parseBackgroundAttributes(D,F)),!R&&(M=this.parseChars(D,F),M)){var B=this.currentChannel;if(B&&B>0){var j=this.channels[B];j.insertChars(M)}else this.logger.log(t.WARNING,"No channel found yet. TEXT-MODE?")}!R&&!M&&this.logger.log(t.WARNING,"Couldn't parse cleaned data "+s([D,F])+" orig: "+s([N[U],N[U+1]]))}},_.parseCmd=function(L,N){var R=this.cmdHistory,D=(L===20||L===28||L===21||L===29)&&N>=32&&N<=47,F=(L===23||L===31)&&N>=33&&N<=35;if(!(D||F))return!1;if(T(L,N,R))return E(null,null,R),this.logger.log(t.DEBUG,"Repeated command ("+s([L,N])+") is dropped"),!0;var M=L===20||L===21||L===23?1:2,U=this.channels[M];return L===20||L===21||L===28||L===29?N===32?U.ccRCL():N===33?U.ccBS():N===34?U.ccAOF():N===35?U.ccAON():N===36?U.ccDER():N===37?U.ccRU(2):N===38?U.ccRU(3):N===39?U.ccRU(4):N===40?U.ccFON():N===41?U.ccRDC():N===42?U.ccTR():N===43?U.ccRTD():N===44?U.ccEDM():N===45?U.ccCR():N===46?U.ccENM():N===47&&U.ccEOC():U.ccTO(N-32),E(L,N,R),this.currentChannel=M,!0},_.parseMidrow=function(L,N){var R=0;if((L===17||L===25)&&N>=32&&N<=47){if(L===17?R=1:R=2,R!==this.currentChannel)return this.logger.log(t.ERROR,"Mismatch channel in midrow parsing"),!1;var D=this.channels[R];return D?(D.ccMIDROW(N),this.logger.log(t.DEBUG,"MIDROW ("+s([L,N])+")"),!0):!1}return!1},_.parsePAC=function(L,N){var R,D=this.cmdHistory,F=(L>=17&&L<=23||L>=25&&L<=31)&&N>=64&&N<=127,M=(L===16||L===24)&&N>=64&&N<=95;if(!(F||M))return!1;if(T(L,N,D))return E(null,null,D),!0;var U=L<=23?1:2;N>=64&&N<=95?R=U===1?r[L]:n[L]:R=U===1?i[L]:e[L];var B=this.channels[U];return B?(B.setPAC(this.interpretPAC(R,N)),E(L,N,D),this.currentChannel=U,!0):!1},_.interpretPAC=function(L,N){var R,D={color:null,italics:!1,indent:null,underline:!1,row:L};return N>95?R=N-96:R=N-64,D.underline=(R&1)===1,R<=13?D.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(R/2)]:R<=15?(D.italics=!0,D.color="white"):D.indent=Math.floor((R-16)/2)*4,D},_.parseChars=function(L,N){var R,D=null,F=null;if(L>=25?(R=2,F=L-8):(R=1,F=L),F>=17&&F<=19){var M;F===17?M=N+80:F===18?M=N+112:M=N+144,this.logger.log(t.INFO,"Special char '"+f(M)+"' in channel "+R),D=[M]}else L>=32&&L<=127&&(D=N===0?[L]:[L,N]);if(D){var U=s(D);this.logger.log(t.DEBUG,"Char codes = "+U.join(",")),E(L,N,this.cmdHistory)}return D},_.parseBackgroundAttributes=function(L,N){var R=(L===16||L===24)&&N>=32&&N<=47,D=(L===23||L===31)&&N>=45&&N<=47;if(!(R||D))return!1;var F,M={};L===16||L===24?(F=Math.floor((N-32)/2),M.background=l[F],N%2===1&&(M.background=M.background+"_semi")):N===45?M.background="transparent":(M.foreground="black",N===47&&(M.underline=!0));var U=L<=23?1:2,B=this.channels[U];return B.setBkgData(M),E(L,N,this.cmdHistory),!0},_.reset=function(){for(var L=0;L<Object.keys(this.channels).length;L++){var N=this.channels[L];N&&N.reset()}this.cmdHistory=w()},_.cueSplitAtTime=function(L){for(var N=0;N<this.channels.length;N++){var R=this.channels[N];R&&R.cueSplitAtTime(L)}},S}();function E(S,_,I){I.a=S,I.b=_}function T(S,_,I){return I.a===S&&I.b===_}function w(){return{a:null,b:null}}C.default=y},"./src/utils/codecs.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"isCodecType",function(){return g}),A.d(C,"isCodecSupportedInMp4",function(){return f});var b={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 g(c,o){var r=b[o];return!!r&&r[c.slice(0,4)]===!0}function f(c,o){return MediaSource.isTypeSupported((o||"video")+'/mp4;codecs="'+c+'"')}},"./src/utils/cues.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/utils/vttparser.ts"),g=A("./src/utils/webvtt-parser.ts"),f=A("./src/utils/texttrack-utils.ts"),c=/\s/,o={newCue:function(i,n,e,l){for(var t=[],a,s,u,h,p,m=self.VTTCue||self.TextTrackCue,v=0;v<l.rows.length;v++)if(a=l.rows[v],u=!0,h=0,p="",!a.isEmpty()){for(var y=0;y<a.chars.length;y++)c.test(a.chars[y].uchar)&&u?h++:(p+=a.chars[y].uchar,u=!1);a.cueStartTime=n,n===e&&(e+=1e-4),h>=16?h--:h++;var E=Object(b.fixLineBreaks)(p.trim()),T=Object(g.generateCueId)(n,e,E);(!i||!i.cues||!i.cues.getCueById(T))&&(s=new m(n,e,E),s.id=T,s.line=v+1,s.align="left",s.position=10+Math.min(80,Math.floor(h*8/32)*10),t.push(s))}return i&&t.length&&(t.sort(function(w,S){return w.line==="auto"||S.line==="auto"?0:w.line>8&&S.line>8?S.line-w.line:w.line-S.line}),t.forEach(function(w){return Object(f.addCueToTrack)(i,w)})),t}};C.default=o},"./src/utils/discontinuities.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"findFirstFragWithCC",function(){return c}),A.d(C,"shouldAlignOnDiscontinuities",function(){return o}),A.d(C,"findDiscontinuousReferenceFrag",function(){return r}),A.d(C,"adjustSlidingStart",function(){return n}),A.d(C,"alignStream",function(){return e}),A.d(C,"alignPDT",function(){return t}),A.d(C,"alignFragmentByPDTDelta",function(){return a}),A.d(C,"alignMediaPlaylistByPDT",function(){return s});var b=A("./src/polyfills/number.ts"),g=A("./src/utils/logger.ts"),f=A("./src/controller/level-helper.ts");function c(u,h){for(var p=null,m=0,v=u.length;m<v;m++){var y=u[m];if(y&&y.cc===h){p=y;break}}return p}function o(u,h,p){return!!(h.details&&(p.endCC>p.startCC||u&&u.cc<p.startCC))}function r(u,h){var p=u.fragments,m=h.fragments;if(!m.length||!p.length){g.logger.log("No fragments to align");return}var v=c(p,m[0].cc);if(!v||v&&!v.startPTS){g.logger.log("No frag in previous level to align on");return}return v}function i(u,h){if(u){var p=u.start+h;u.start=u.startPTS=p,u.endPTS=p+u.duration}}function n(u,h){for(var p=h.fragments,m=0,v=p.length;m<v;m++)i(p[m],u);h.fragmentHint&&i(h.fragmentHint,u),h.alignedSliding=!0}function e(u,h,p){if(!h)return;l(u,p,h),!p.alignedSliding&&h.details&&t(p,h.details),!p.alignedSliding&&h.details&&!p.skippedSegments&&Object(f.adjustSliding)(h.details,p)}function l(u,h,p){if(o(u,p,h)){var m=r(p.details,h);m&&Object(b.isFiniteNumber)(m.start)&&(g.logger.log("Adjusting PTS using last level due to CC increase within current level "+h.url),n(m.start,h))}}function t(u,h){if(!h.fragments.length||!u.hasProgramDateTime||!h.hasProgramDateTime)return;var p=h.fragments[0].programDateTime,m=u.fragments[0].programDateTime,v=(m-p)/1e3+h.fragments[0].start;v&&Object(b.isFiniteNumber)(v)&&(g.logger.log("Adjusting PTS using programDateTime delta "+(m-p)+"ms, sliding:"+v.toFixed(3)+" "+u.url+" "),n(v,u))}function a(u,h){var p=u.programDateTime;if(!p)return;var m=(p-h)/1e3;u.start=u.startPTS=m,u.endPTS=m+u.duration}function s(u,h){if(!h.fragments.length||!u.hasProgramDateTime||!h.hasProgramDateTime)return;var p=h.fragments[0].programDateTime,m=h.fragments[0].start,v=p-m*1e3;u.fragments.forEach(function(y){a(y,v)}),u.fragmentHint&&a(u.fragmentHint,v),u.alignedSliding=!0}},"./src/utils/ewma-bandwidth-estimator.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/utils/ewma.ts"),g=function(){function f(o,r,i){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultEstimate_=i,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new b.default(o),this.fast_=new b.default(r)}var c=f.prototype;return c.update=function(r,i){var n=this.slow_,e=this.fast_;this.slow_.halfLife!==r&&(this.slow_=new b.default(r,n.getEstimate(),n.getTotalWeight())),this.fast_.halfLife!==i&&(this.fast_=new b.default(i,e.getEstimate(),e.getTotalWeight()))},c.sample=function(r,i){r=Math.max(r,this.minDelayMs_);var n=8*i,e=r/1e3,l=n/e;this.fast_.sample(e,l),this.slow_.sample(e,l)},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(){},f}();C.default=g},"./src/utils/ewma.ts":function(x,C,A){"use strict";A.r(C);var b=function(){function g(c,o,r){o===void 0&&(o=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_=o,this.totalWeight_=r}var f=g.prototype;return f.sample=function(o,r){var i=Math.pow(this.alpha_,o);this.estimate_=r*(1-i)+i*this.estimate_,this.totalWeight_+=o},f.getTotalWeight=function(){return this.totalWeight_},f.getEstimate=function(){if(this.alpha_){var o=1-Math.pow(this.alpha_,this.totalWeight_);if(o)return this.estimate_/o}return this.estimate_},g}();C.default=b},"./src/utils/fetch-loader.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"fetchSupported",function(){return a});var b=A("./src/polyfills/number.ts"),g=A("./src/loader/load-stats.ts"),f=A("./src/demux/chunk-cache.ts");function c(m,v){m.prototype=Object.create(v.prototype),m.prototype.constructor=m,e(m,v)}function o(m){var v=typeof Map=="function"?new Map:void 0;return o=function(E){if(E===null||!n(E))return E;if(typeof E!="function")throw new TypeError("Super expression must either be null or a function");if(typeof v!="undefined"){if(v.has(E))return v.get(E);v.set(E,T)}function T(){return r(E,arguments,l(this).constructor)}return T.prototype=Object.create(E.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),e(T,E)},o(m)}function r(m,v,y){return i()?r=Reflect.construct:r=function(T,w,S){var _=[null];_.push.apply(_,w);var I=Function.bind.apply(T,_),L=new I;return S&&e(L,S.prototype),L},r.apply(null,arguments)}function i(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(m){return!1}}function n(m){return Function.toString.call(m).indexOf("[native code]")!==-1}function e(m,v){return e=Object.setPrototypeOf||function(E,T){return E.__proto__=T,E},e(m,v)}function l(m){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},l(m)}function t(){return t=Object.assign||function(m){for(var v=1;v<arguments.length;v++){var y=arguments[v];for(var E in y)Object.prototype.hasOwnProperty.call(y,E)&&(m[E]=y[E])}return m},t.apply(this,arguments)}function a(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(m){}return!1}var s=function(){function m(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||h,this.controller=new self.AbortController,this.stats=new g.LoadStats}var v=m.prototype;return v.destroy=function(){this.loader=this.callbacks=null,this.abortInternal()},v.abortInternal=function(){var E=this.response;(!E||!E.ok)&&(this.stats.aborted=!0,this.controller.abort())},v.abort=function(){var E;this.abortInternal(),(E=this.callbacks)!==null&&E!==void 0&&E.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)},v.load=function(E,T,w){var S=this,_=this.stats;if(_.loading.start)throw new Error("Loader can only be used once.");_.loading.start=self.performance.now();var I=u(E,this.controller.signal),L=w.onProgress,N=E.responseType==="arraybuffer",R=N?"byteLength":"length";this.context=E,this.config=T,this.callbacks=w,this.request=this.fetchSetup(E,I),self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(function(){S.abortInternal(),w.onTimeout(_,E,S.response)},T.timeout),self.fetch(this.request).then(function(D){if(S.response=S.loader=D,!D.ok){var F=D.status,M=D.statusText;throw new p(M||"fetch, bad network response",F,D)}return _.loading.first=Math.max(self.performance.now(),_.loading.start),_.total=parseInt(D.headers.get("Content-Length")||"0"),L&&Object(b.isFiniteNumber)(T.highWaterMark)?S.loadProgressively(D,_,E,T.highWaterMark,L):N?D.arrayBuffer():D.text()}).then(function(D){var F=S.response;self.clearTimeout(S.requestTimeout),_.loading.end=Math.max(self.performance.now(),_.loading.first),_.loaded=_.total=D[R];var M={url:F.url,data:D};L&&!Object(b.isFiniteNumber)(T.highWaterMark)&&L(_,E,D,F),w.onSuccess(M,_,E,F)}).catch(function(D){if(self.clearTimeout(S.requestTimeout),_.aborted)return;var F=D.code||0;w.onError({code:F,text:D.message},E,D.details)})},v.getCacheAge=function(){var E=null;if(this.response){var T=this.response.headers.get("age");E=T?parseFloat(T):null}return E},v.loadProgressively=function(E,T,w,S,_){S===void 0&&(S=0);var I=new f.default,L=E.body.getReader(),N=function R(){return L.read().then(function(D){if(D.done)return I.dataLength&&_(T,w,I.flush(),E),Promise.resolve(new ArrayBuffer(0));var F=D.value,M=F.length;return T.loaded+=M,M<S||I.dataLength?(I.push(F),I.dataLength>=S&&_(T,w,I.flush(),E)):_(T,w,F,E),R()}).catch(function(){return Promise.reject()})};return N()},m}();function u(m,v){var y={method:"GET",mode:"cors",credentials:"same-origin",signal:v,headers:new self.Headers(t({},m.headers))};return m.rangeEnd&&y.headers.set("Range","bytes="+m.rangeStart+"-"+String(m.rangeEnd-1)),y}function h(m,v){return new self.Request(m.url,v)}var p=function(m){c(v,m);function v(y,E,T){var w;return w=m.call(this,y)||this,w.code=void 0,w.details=void 0,w.code=E,w.details=T,w}return v}(o(Error));C.default=s},"./src/utils/imsc1-ttml-parser.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"IMSC1_CODEC",function(){return n}),A.d(C,"parseIMSC1",function(){return a});var b=A("./src/utils/mp4-tools.ts"),g=A("./src/utils/vttparser.ts"),f=A("./src/utils/vttcue.ts"),c=A("./src/demux/id3.ts"),o=A("./src/utils/timescale-conversion.ts"),r=A("./src/utils/webvtt-parser.ts");function i(){return i=Object.assign||function(S){for(var _=1;_<arguments.length;_++){var I=arguments[_];for(var L in I)Object.prototype.hasOwnProperty.call(I,L)&&(S[L]=I[L])}return S},i.apply(this,arguments)}var n="stpp.ttml.im1t",e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,l=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,t={left:"start",center:"center",right:"end",start:"start",end:"end"};function a(S,_,I,L,N){var R=Object(b.findBox)(new Uint8Array(S),["mdat"]);if(R.length===0){N(new Error("Could not parse IMSC1 mdat"));return}var D=R[0],F=Object(c.utf8ArrayToStr)(new Uint8Array(S,D.start,D.end-D.start)),M=Object(o.toTimescaleFromScale)(_,1,I);try{L(s(F,M))}catch(U){N(U)}}function s(S,_){var I=new DOMParser,L=I.parseFromString(S,"text/xml"),N=L.getElementsByTagName("tt")[0];if(!N)throw new Error("Invalid ttml");var R={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},D=Object.keys(R).reduce(function(j,W){return j[W]=N.getAttribute("ttp:"+W)||R[W],j},{}),F=N.getAttribute("xml:space")!=="preserve",M=h(u(N,"styling","style")),U=h(u(N,"layout","region")),B=u(N,"body","[begin]");return[].map.call(B,function(j){var W=p(j,F);if(!W||!j.hasAttribute("begin"))return null;var V=E(j.getAttribute("begin"),D),z=E(j.getAttribute("dur"),D),J=E(j.getAttribute("end"),D);if(V===null)throw y(j);if(J===null){if(z===null)throw y(j);J=V+z}var q=new f.default(V-_,J-_,W);q.id=Object(r.generateCueId)(q.startTime,q.endTime,q.text);var de=U[j.getAttribute("region")],ae=M[j.getAttribute("style")];q.position=10,q.size=80;var ve=m(de,ae),_e=ve.textAlign;if(_e){var Ie=t[_e];Ie&&(q.lineAlign=Ie),q.align=_e}return i(q,ve),q}).filter(function(j){return j!==null})}function u(S,_,I){var L=S.getElementsByTagName(_)[0];return L?[].slice.call(L.querySelectorAll(I)):[]}function h(S){return S.reduce(function(_,I){var L=I.getAttribute("xml:id");return L&&(_[L]=I),_},{})}function p(S,_){return[].slice.call(S.childNodes).reduce(function(I,L,N){var R;return L.nodeName==="br"&&N?I+`
`:(R=L.childNodes)!==null&&R!==void 0&&R.length?p(L,_):_?I+L.textContent.trim().replace(/\s+/g," "):I+L.textContent},"")}function m(S,_){var I="http://www.w3.org/ns/ttml#styling",L=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"];return L.reduce(function(N,R){var D=v(_,I,R)||v(S,I,R);return D&&(N[R]=D),N},{})}function v(S,_,I){return S.hasAttributeNS(_,I)?S.getAttributeNS(_,I):null}function y(S){return new Error("Could not parse ttml timestamp "+S)}function E(S,_){if(!S)return null;var I=Object(g.parseTimeStamp)(S);return I===null&&(e.test(S)?I=T(S,_):l.test(S)&&(I=w(S,_))),I}function T(S,_){var I=e.exec(S),L=(I[4]|0)+(I[5]|0)/_.subFrameRate;return(I[1]|0)*3600+(I[2]|0)*60+(I[3]|0)+L/_.frameRate}function w(S,_){var I=l.exec(S),L=Number(I[1]),N=I[2];switch(N){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(x,C,A){"use strict";A.r(C),A.d(C,"enableLogs",function(){return r}),A.d(C,"logger",function(){return i});var b=function(){},g={trace:b,debug:b,log:b,warn:b,info:b,error:b},f=g;function c(n){var e=self.console[n];return e?e.bind(self.console,"["+n+"] >"):b}function o(n){for(var e=arguments.length,l=new Array(e>1?e-1:0),t=1;t<e;t++)l[t-1]=arguments[t];l.forEach(function(a){f[a]=n[a]?n[a].bind(n):c(a)})}function r(n){if(self.console&&n===!0||typeof n=="object"){o(n,"debug","log","info","warn","error");try{f.log()}catch(e){f=g}}else f=g}var i=f},"./src/utils/mediakeys-helper.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"KeySystems",function(){return b}),A.d(C,"requestMediaKeySystemAccess",function(){return g});var b;(function(f){f.WIDEVINE="com.widevine.alpha",f.PLAYREADY="com.microsoft.playready"})(b||(b={}));var g=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}()},"./src/utils/mediasource-helper.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"getMediaSource",function(){return b});function b(){return self.MediaSource||self.WebKitMediaSource}},"./src/utils/mp4-tools.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"bin2str",function(){return o}),A.d(C,"readUint16",function(){return r}),A.d(C,"readUint32",function(){return i}),A.d(C,"writeUint32",function(){return n}),A.d(C,"findBox",function(){return e}),A.d(C,"parseSegmentIndex",function(){return l}),A.d(C,"parseInitSegment",function(){return t}),A.d(C,"getStartDTS",function(){return a}),A.d(C,"getDuration",function(){return s}),A.d(C,"computeRawDurationFromSamples",function(){return u}),A.d(C,"offsetStartDTS",function(){return h}),A.d(C,"segmentValidRange",function(){return p}),A.d(C,"appendUint8Array",function(){return m});var b=A("./src/utils/typed-array.ts"),g=A("./src/loader/fragment.ts"),f=Math.pow(2,32)-1,c=[].push;function o(v){return String.fromCharCode.apply(null,v)}function r(v,y){"data"in v&&(y+=v.start,v=v.data);var E=v[y]<<8|v[y+1];return E<0?65536+E:E}function i(v,y){"data"in v&&(y+=v.start,v=v.data);var E=v[y]<<24|v[y+1]<<16|v[y+2]<<8|v[y+3];return E<0?4294967296+E:E}function n(v,y,E){"data"in v&&(y+=v.start,v=v.data),v[y]=E>>24,v[y+1]=E>>16&255,v[y+2]=E>>8&255,v[y+3]=E&255}function e(v,y){var E=[];if(!y.length)return E;var T,w,S;"data"in v?(T=v.data,w=v.start,S=v.end):(T=v,w=0,S=T.byteLength);for(var _=w;_<S;){var I=i(T,_),L=o(T.subarray(_+4,_+8)),N=I>1?_+I:S;if(L===y[0])if(y.length===1)E.push({data:T,start:_+8,end:N});else{var R=e({data:T,start:_+8,end:N},y.slice(1));R.length&&c.apply(E,R)}_=N}return E}function l(v){var y=e(v,["moov"]),E=y[0],T=E?E.end:null,w=e(v,["sidx"]);if(!w||!w[0])return null;var S=[],_=w[0],I=_.data[0],L=I===0?8:16,N=i(_,L);L+=4;var R=0,D=0;I===0?L+=8:L+=16,L+=2;var F=_.end+D,M=r(_,L);L+=2;for(var U=0;U<M;U++){var B=L,j=i(_,B);B+=4;var W=j&2147483647,V=(j&2147483648)>>>31;if(V===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var z=i(_,B);B+=4,S.push({referenceSize:W,subsegmentDuration:z,info:{duration:z/N,start:F,end:F+W-1}}),F+=W,B+=4,L=B}return{earliestPresentationTime:R,timescale:N,version:I,referencesCount:M,references:S,moovEndOffset:T}}function t(v){for(var y=[],E=e(v,["moov","trak"]),T=0;T<E.length;T++){var w=E[T],S=e(w,["tkhd"])[0];if(S){var _=S.data[S.start],I=_===0?12:20,L=i(S,I),N=e(w,["mdia","mdhd"])[0];if(N){_=N.data[N.start],I=_===0?12:20;var R=i(N,I),D=e(w,["mdia","hdlr"])[0];if(D){var F=o(D.data.subarray(D.start+8,D.start+12)),M={soun:g.ElementaryStreamTypes.AUDIO,vide:g.ElementaryStreamTypes.VIDEO}[F];if(M){var U=e(w,["mdia","minf","stbl","stsd"])[0],B=void 0;U&&(B=o(U.data.subarray(U.start+12,U.start+16))),y[L]={timescale:R,type:M},y[M]={timescale:R,id:L,codec:B}}}}}}var j=e(v,["moov","mvex","trex"]);return j.forEach(function(W){var V=i(W,4),z=y[V];z&&(z.default={duration:i(W,12),flags:i(W,20)})}),y}function a(v,y){return e(y,["moof","traf"]).reduce(function(E,T){var w=e(T,["tfdt"])[0],S=w.data[w.start],_=e(T,["tfhd"]).reduce(function(I,L){var N=i(L,4),R=v[N];if(R){var D=i(w,4);S===1&&(D*=Math.pow(2,32),D+=i(w,8));var F=R.timescale||9e4,M=D/F;if(isFinite(M)&&(I===null||M<I))return M}return I},null);return _!==null&&isFinite(_)&&(E===null||_<E)?_:E},null)||0}function s(v,y){for(var E=0,T=0,w=0,S=e(v,["moof","traf"]),_=0;_<S.length;_++){var I=S[_],L=e(I,["tfhd"])[0],N=i(L,4),R=y[N];if(!R)continue;var D=R.default,F=i(L,0)|(D==null?void 0:D.flags),M=D==null?void 0:D.duration;F&8&&(F&2?M=i(L,12):M=i(L,8));for(var U=R.timescale||9e4,B=e(I,["trun"]),j=0;j<B.length;j++){if(E=u(B[j]),!E&&M){var W=i(B[j],4);E=M*W}R.type===g.ElementaryStreamTypes.VIDEO?T+=E/U:R.type===g.ElementaryStreamTypes.AUDIO&&(w+=E/U)}}if(T===0&&w===0){var V=l(v);if(V!=null&&V.references)return V.references.reduce(function(z,J){return z+J.info.duration||0},0)}return T||w}function u(v){var y=i(v,0),E=8;y&1&&(E+=4),y&4&&(E+=4);for(var T=0,w=i(v,4),S=0;S<w;S++){if(y&256){var _=i(v,E);T+=_,E+=4}y&512&&(E+=4),y&1024&&(E+=4),y&2048&&(E+=4)}return T}function h(v,y,E){e(y,["moof","traf"]).forEach(function(T){e(T,["tfhd"]).forEach(function(w){var S=i(w,4),_=v[S];if(!_)return;var I=_.timescale||9e4;e(T,["tfdt"]).forEach(function(L){var N=L.data[L.start],R=i(L,4);if(N===0)n(L,4,R-E*I);else{R*=Math.pow(2,32),R+=i(L,8),R-=E*I,R=Math.max(R,0);var D=Math.floor(R/(f+1)),F=Math.floor(R%(f+1));n(L,4,D),n(L,8,F)}})})})}function p(v){var y={valid:null,remainder:null},E=e(v,["moof"]);if(E){if(E.length<2)return y.remainder=v,y}else return y;var T=E[E.length-1];return y.valid=Object(b.sliceUint8)(v,0,T.start-8),y.remainder=Object(b.sliceUint8)(v,T.start-8),y}function m(v,y){var E=new Uint8Array(v.length+y.length);return E.set(v),E.set(y,v.length),E}},"./src/utils/output-filter.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"default",function(){return b});var b=function(){function g(c,o){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=c,this.trackName=o}var f=g.prototype;return f.dispatchCue=function(){if(this.startTime===null)return;this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null},f.newCue=function(o,r,i){(this.startTime===null||this.startTime>o)&&(this.startTime=o),this.endTime=r,this.screen=i,this.timelineController.createCaptionsTrack(this.trackName)},f.reset=function(){this.cueRanges=[],this.startTime=null},g}()},"./src/utils/texttrack-utils.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"sendAddTrackEvent",function(){return g}),A.d(C,"addCueToTrack",function(){return f}),A.d(C,"clearCurrentCues",function(){return c}),A.d(C,"removeCuesInRange",function(){return o}),A.d(C,"getCuesInRange",function(){return i});var b=A("./src/utils/logger.ts");function g(n,e){var l;try{l=new Event("addtrack")}catch(t){l=document.createEvent("Event"),l.initEvent("addtrack",!1,!1)}l.track=n,e.dispatchEvent(l)}function f(n,e){var l=n.mode;if(l==="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){b.logger.debug("[texttrack-utils]: "+a);var t=new self.TextTrackCue(e.startTime,e.endTime,e.text);t.id=e.id,n.addCue(t)}l==="disabled"&&(n.mode=l)}function c(n){var e=n.mode;if(e==="disabled"&&(n.mode="hidden"),n.cues)for(var l=n.cues.length;l--;)n.removeCue(n.cues[l]);e==="disabled"&&(n.mode=e)}function o(n,e,l){var t=n.mode;if(t==="disabled"&&(n.mode="hidden"),n.cues&&n.cues.length>0)for(var a=i(n.cues,e,l),s=0;s<a.length;s++)n.removeCue(a[s]);t==="disabled"&&(n.mode=t)}function r(n,e){if(e<n[0].startTime)return 0;var l=n.length-1;if(e>n[l].endTime)return-1;for(var t=0,a=l;t<=a;){var s=Math.floor((a+t)/2);if(e<n[s].startTime)a=s-1;else if(e>n[s].startTime&&t<l)t=s+1;else return s}return n[t].startTime-e<e-n[a].startTime?t:a}function i(n,e,l){var t=[],a=r(n,e);if(a>-1)for(var s=a,u=n.length;s<u;s++){var h=n[s];if(h.startTime>=e&&h.endTime<=l)t.push(h);else if(h.startTime>l)return t}return t}},"./src/utils/time-ranges.ts":function(x,C,A){"use strict";A.r(C);var b={toString:function(f){for(var c="",o=f.length,r=0;r<o;r++)c+="["+f.start(r).toFixed(3)+","+f.end(r).toFixed(3)+"]";return c}};C.default=b},"./src/utils/timescale-conversion.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"toTimescaleFromBase",function(){return g}),A.d(C,"toTimescaleFromScale",function(){return f}),A.d(C,"toMsFromMpegTsClock",function(){return c}),A.d(C,"toMpegTsClockFromTimescale",function(){return o});var b=9e4;function g(r,i,n,e){n===void 0&&(n=1),e===void 0&&(e=!1);var l=r*i*n;return e?Math.round(l):l}function f(r,i,n,e){return n===void 0&&(n=1),e===void 0&&(e=!1),g(r,i,1/n,e)}function c(r,i){return i===void 0&&(i=!1),g(r,1e3,1/b,i)}function o(r,i){return i===void 0&&(i=1),g(r,b,1/i)}},"./src/utils/typed-array.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"sliceUint8",function(){return b});function b(g,f,c){return Uint8Array.prototype.slice?g.slice(f,c):new Uint8Array(Array.prototype.slice.call(g,f,c))}},"./src/utils/vttcue.ts":function(x,C,A){"use strict";A.r(C),C.default=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var b=["","lr","rl"],g=["start","middle","end","left","right"];function f(n,e){if(typeof e!="string")return!1;if(!Array.isArray(n))return!1;var l=e.toLowerCase();return~n.indexOf(l)?l:!1}function c(n){return f(b,n)}function o(n){return f(g,n)}function r(n){for(var e=arguments.length,l=new Array(e>1?e-1:0),t=1;t<e;t++)l[t-1]=arguments[t];for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var u in s)n[u]=s[u]}return n}function i(n,e,l){var t=this,a={enumerable:!0};t.hasBeenReset=!1;var s="",u=!1,h=n,p=e,m=l,v=null,y="",E=!0,T="auto",w="start",S=50,_="middle",I=50,L="middle";Object.defineProperty(t,"id",r({},a,{get:function(){return s},set:function(R){s=""+R}})),Object.defineProperty(t,"pauseOnExit",r({},a,{get:function(){return u},set:function(R){u=!!R}})),Object.defineProperty(t,"startTime",r({},a,{get:function(){return h},set:function(R){if(typeof R!="number")throw new TypeError("Start time must be set to a number.");h=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"endTime",r({},a,{get:function(){return p},set:function(R){if(typeof R!="number")throw new TypeError("End time must be set to a number.");p=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"text",r({},a,{get:function(){return m},set:function(R){m=""+R,this.hasBeenReset=!0}})),Object.defineProperty(t,"region",r({},a,{get:function(){return v},set:function(R){v=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"vertical",r({},a,{get:function(){return y},set:function(R){var D=c(R);if(D===!1)throw new SyntaxError("An invalid or illegal string was specified.");y=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"snapToLines",r({},a,{get:function(){return E},set:function(R){E=!!R,this.hasBeenReset=!0}})),Object.defineProperty(t,"line",r({},a,{get:function(){return T},set:function(R){if(typeof R!="number"&&R!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");T=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"lineAlign",r({},a,{get:function(){return w},set:function(R){var D=o(R);if(!D)throw new SyntaxError("An invalid or illegal string was specified.");w=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"position",r({},a,{get:function(){return S},set:function(R){if(R<0||R>100)throw new Error("Position must be between 0 and 100.");S=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"positionAlign",r({},a,{get:function(){return _},set:function(R){var D=o(R);if(!D)throw new SyntaxError("An invalid or illegal string was specified.");_=D,this.hasBeenReset=!0}})),Object.defineProperty(t,"size",r({},a,{get:function(){return I},set:function(R){if(R<0||R>100)throw new Error("Size must be between 0 and 100.");I=R,this.hasBeenReset=!0}})),Object.defineProperty(t,"align",r({},a,{get:function(){return L},set:function(R){var D=o(R);if(!D)throw new SyntaxError("An invalid or illegal string was specified.");L=D,this.hasBeenReset=!0}})),t.displayState=void 0}return i.prototype.getCueAsHTML=function(){var n=self.WebVTT;return n.convertCueToDOMTree(self,this.text)},i}()},"./src/utils/vttparser.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"parseTimeStamp",function(){return f}),A.d(C,"fixLineBreaks",function(){return e}),A.d(C,"VTTParser",function(){return l});var b=A("./src/utils/vttcue.ts"),g=function(){function t(){}var a=t.prototype;return a.decode=function(u,h){if(!u)return"";if(typeof u!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(u))},t}();function f(t){function a(u,h,p,m){return(u|0)*3600+(h|0)*60+(p|0)+parseFloat(m||0)}var s=t.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return s?parseFloat(s[2])>59?a(s[2],s[3],0,s[4]):a(s[1],s[2],s[3],s[4]):null}var c=function(){function t(){this.values=Object.create(null)}var a=t.prototype;return a.set=function(u,h){!this.get(u)&&h!==""&&(this.values[u]=h)},a.get=function(u,h,p){return p?this.has(u)?this.values[u]:h[p]:this.has(u)?this.values[u]:h},a.has=function(u){return u in this.values},a.alt=function(u,h,p){for(var m=0;m<p.length;++m)if(h===p[m]){this.set(u,h);break}},a.integer=function(u,h){/^-?\d+$/.test(h)&&this.set(u,parseInt(h,10))},a.percent=function(u,h){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(h)){var p=parseFloat(h);if(p>=0&&p<=100)return this.set(u,p),!0}return!1},t}();function o(t,a,s,u){var h=u?t.split(u):[t];for(var p in h){if(typeof h[p]!="string")continue;var m=h[p].split(s);if(m.length!==2)continue;var v=m[0],y=m[1];a(v,y)}}var r=new b.default(0,0,""),i=r.align==="middle"?"middle":"center";function n(t,a,s){var u=t;function h(){var v=f(t);if(v===null)throw new Error("Malformed timestamp: "+u);return t=t.replace(/^[^\sa-zA-Z-]+/,""),v}function p(v,y){var E=new c;o(v,function(S,_){var I;switch(S){case"region":for(var L=s.length-1;L>=0;L--)if(s[L].id===_){E.set(S,s[L].region);break}break;case"vertical":E.alt(S,_,["rl","lr"]);break;case"line":I=_.split(","),E.integer(S,I[0]),E.percent(S,I[0])&&E.set("snapToLines",!1),E.alt(S,I[0],["auto"]),I.length===2&&E.alt("lineAlign",I[1],["start",i,"end"]);break;case"position":I=_.split(","),E.percent(S,I[0]),I.length===2&&E.alt("positionAlign",I[1],["start",i,"end","line-left","line-right","auto"]);break;case"size":E.percent(S,_);break;case"align":E.alt(S,_,["start",i,"end","left","right"]);break}},/:/,/\s/),y.region=E.get("region",null),y.vertical=E.get("vertical","");var T=E.get("line","auto");T==="auto"&&r.line===-1&&(T=-1),y.line=T,y.lineAlign=E.get("lineAlign","start"),y.snapToLines=E.get("snapToLines",!0),y.size=E.get("size",100),y.align=E.get("align",i);var w=E.get("position","auto");w==="auto"&&r.position===50&&(w=y.align==="start"||y.align==="left"?0:y.align==="end"||y.align==="right"?100:50),y.position=w}function m(){t=t.replace(/^\s+/,"")}if(m(),a.startTime=h(),m(),t.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+u);t=t.substr(3),m(),a.endTime=h(),m(),p(t,a)}function e(t){return t.replace(/<br(?: \/)?>/gi,`
`)}var l=function(){function t(){this.state="INITIAL",this.buffer="",this.decoder=new g,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 h=this;u&&(h.buffer+=h.decoder.decode(u,{stream:!0}));function p(){var w=h.buffer,S=0;for(w=e(w);S<w.length&&w[S]!=="\r"&&w[S]!==`
`;)++S;var _=w.substr(0,S);return w[S]==="\r"&&++S,w[S]===`
`&&++S,h.buffer=w.substr(S),_}function m(w){o(w,function(S,_){},/:/)}try{var v="";if(h.state==="INITIAL"){if(!/\r\n|\n/.test(h.buffer))return this;v=p();var y=v.match(/^()?WEBVTT([ \t].*)?$/);if(!y||!y[0])throw new Error("Malformed WebVTT signature.");h.state="HEADER"}for(var E=!1;h.buffer;){if(!/\r\n|\n/.test(h.buffer))return this;E?E=!1:v=p();switch(h.state){case"HEADER":/:/.test(v)?m(v):v||(h.state="ID");continue;case"NOTE":v||(h.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(v)){h.state="NOTE";break}if(!v)continue;if(h.cue=new b.default(0,0,""),h.state="CUE",v.indexOf("-->")===-1){h.cue.id=v;continue}case"CUE":if(!h.cue){h.state="BADCUE";continue}try{n(v,h.cue,h.regionList)}catch(w){h.cue=null,h.state="BADCUE";continue}h.state="CUETEXT";continue;case"CUETEXT":{var T=v.indexOf("-->")!==-1;if(!v||T&&(E=!0)){h.oncue&&h.cue&&h.oncue(h.cue),h.cue=null,h.state="ID";continue}if(h.cue===null)continue;h.cue.text&&(h.cue.text+=`
`),h.cue.text+=v}continue;case"BADCUE":v||(h.state="ID")}}}catch(w){h.state==="CUETEXT"&&h.cue&&h.oncue&&h.oncue(h.cue),h.cue=null,h.state=h.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(h){u.onparsingerror&&u.onparsingerror(h)}return u.onflush&&u.onflush(),this},t}()},"./src/utils/webvtt-parser.ts":function(x,C,A){"use strict";A.r(C),A.d(C,"generateCueId",function(){return l}),A.d(C,"parseWebVTT",function(){return a});var b=A("./src/polyfills/number.ts"),g=A("./src/utils/vttparser.ts"),f=A("./src/demux/id3.ts"),c=A("./src/utils/timescale-conversion.ts"),o=A("./src/remux/mp4-remuxer.ts"),r=/\r\n|\n\r|\n|\r/g,i=function(u,h,p){return p===void 0&&(p=0),u.substr(p,h.length)===h},n=function(u){var h=parseInt(u.substr(-3)),p=parseInt(u.substr(-6,2)),m=parseInt(u.substr(-9,2)),v=u.length>9?parseInt(u.substr(0,u.indexOf(":"))):0;if(!Object(b.isFiniteNumber)(h)||!Object(b.isFiniteNumber)(p)||!Object(b.isFiniteNumber)(m)||!Object(b.isFiniteNumber)(v))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+u);return h+=1e3*p,h+=60*1e3*m,h+=60*60*1e3*v,h},e=function(u){for(var h=5381,p=u.length;p;)h=h*33^u.charCodeAt(--p);return(h>>>0).toString()};function l(s,u,h){return e(s.toString())+e(u.toString())+e(h)}var t=function(u,h,p){var m=u[h],v=u[m.prevCC];if(!v||!v.new&&m.new){u.ccOffset=u.presentationOffset=m.start,m.new=!1;return}for(;(y=v)!==null&&y!==void 0&&y.new;){var y;u.ccOffset+=m.start-v.start,m.new=!1,m=v,v=u[m.prevCC]}u.presentationOffset=p};function a(s,u,h,p,m,v,y,E){var T=new g.VTTParser,w=Object(f.utf8ArrayToStr)(new Uint8Array(s)).trim().replace(r,`
`).split(`
`),S=[],_=Object(c.toMpegTsClockFromTimescale)(u,h),I="00:00.000",L=0,N=0,R,D=!0,F=!1;T.oncue=function(M){var U=p[m],B=p.ccOffset,j=(L-_)/9e4;if(U!=null&&U.new&&(N!==void 0?B=p.ccOffset=U.start:t(p,m,j)),j&&(B=j-p.presentationOffset),F){var W=M.endTime-M.startTime,V=Object(o.normalizePts)((M.startTime+B-N)*9e4,v*9e4)/9e4;M.startTime=V,M.endTime=V+W}var z=M.text.trim();M.text=decodeURIComponent(encodeURIComponent(z)),M.id||(M.id=l(M.startTime,M.endTime,z)),M.endTime>0&&S.push(M)},T.onparsingerror=function(M){R=M},T.onflush=function(){if(R){E(R);return}y(S)},w.forEach(function(M){if(D)if(i(M,"X-TIMESTAMP-MAP=")){D=!1,F=!0,M.substr(16).split(",").forEach(function(U){i(U,"LOCAL:")?I=U.substr(6):i(U,"MPEGTS:")&&(L=parseInt(U.substr(7)))});try{N=n(I)/1e3}catch(U){F=!1,R=U}return}else M===""&&(D=!1);T.parse(M+`
`)}),T.flush()}},"./src/utils/xhr-loader.ts":function(x,C,A){"use strict";A.r(C);var b=A("./src/utils/logger.ts"),g=A("./src/loader/load-stats.ts"),f=/^age:\s*[\d.]+\s*$/m,c=function(){function o(i){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=void 0,this.loader=null,this.stats=void 0,this.xhrSetup=i?i.xhrSetup:null,this.stats=new g.LoadStats,this.retryDelay=0}var r=o.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,l){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=l,this.retryDelay=e.retryDelay,this.loadInternal()},r.loadInternal=function(){var n=this.config,e=this.context;if(!n)return;var l=this.loader=new self.XMLHttpRequest,t=this.stats;t.loading.first=0,t.loaded=0;var a=this.xhrSetup;try{if(a)try{a(l,e.url)}catch(h){l.open("GET",e.url,!0),a(l,e.url)}l.readyState||l.open("GET",e.url,!0);var s=this.context.headers;if(s)for(var u in s)l.setRequestHeader(u,s[u])}catch(h){this.callbacks.onError({code:l.status,text:h.message},e,l);return}e.rangeEnd&&l.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),l.onreadystatechange=this.readystatechange.bind(this),l.onprogress=this.loadprogress.bind(this),l.responseType=e.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),l.send()},r.readystatechange=function(){var n=this.context,e=this.loader,l=this.stats;if(!n||!e)return;var t=e.readyState,a=this.config;if(l.aborted)return;if(t>=2)if(self.clearTimeout(this.requestTimeout),l.loading.first===0&&(l.loading.first=Math.max(self.performance.now(),l.loading.start)),t===4){e.onreadystatechange=null,e.onprogress=null;var s=e.status;if(s>=200&&s<300){l.loading.end=Math.max(self.performance.now(),l.loading.first);var u,h;if(n.responseType==="arraybuffer"?(u=e.response,h=u.byteLength):(u=e.responseText,h=u.length),l.loaded=l.total=h,!this.callbacks)return;var p=this.callbacks.onProgress;if(p&&p(l,n,u,e),!this.callbacks)return;var m={url:e.responseURL,data:u};this.callbacks.onSuccess(m,l,n,e)}else l.retry>=a.maxRetry||s>=400&&s<499?(b.logger.error(s+" while loading "+n.url),this.callbacks.onError({code:s,text:e.statusText},n,e)):(b.logger.warn(s+" 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),l.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.timeout)},r.loadtimeout=function(){b.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&&f.test(this.loader.getAllResponseHeaders())){var e=this.loader.getResponseHeader("age");n=e?parseFloat(e):null}return n},o}();C.default=c}}).default})},v56E:function(H,k,d){},v5uJ:function(H,k,d){var O=d("ProS"),x=d("2B6p"),C=x.updateCenterAndZoom;O.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(A,b){b.eachComponent({mainType:"series",subType:"tree",query:A},function(g){var f=A.dataIndex,c=g.getData().tree,o=c.getNodeByDataIndex(f);o.isExpand=!o.isExpand})}),O.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(A,b){b.eachComponent({mainType:"series",subType:"tree",query:A},function(g){var f=g.coordinateSystem,c=C(f,A);g.setCenter&&g.setCenter(c.center),g.setZoom&&g.setZoom(c.zoom)})})},"vF/C":function(H,k,d){var O=d("bLfw");O.registerSubTypeDefaulter("visualMap",function(x){return!x.categories&&(!(x.pieces?x.pieces.length>0:x.splitNumber>0)||x.calculable)?"continuous":"piecewise"})},vKoX:function(H,k,d){var O=d("SrGk"),x=d("bYtY");function C(g,f){O.call(this,g,f,["filter"],"__filter_in_use__","_shadowDom")}x.inherits(C,O),C.prototype.addWithoutUpdate=function(g,f){if(f&&A(f.style)){var c;if(f._shadowDom){c=f._shadowDom;var o=this.getDefs(!0);o.contains(f._shadowDom)||this.addDom(c)}else c=this.add(f);this.markUsed(f);var r=c.getAttribute("id");g.style.filter="url(#"+r+")"}},C.prototype.add=function(g){var f=this.createElement("filter");return g._shadowDomId=g._shadowDomId||this.nextId++,f.setAttribute("id","zr"+this._zrId+"-shadow-"+g._shadowDomId),this.updateDom(g,f),this.addDom(f),f},C.prototype.update=function(g,f){var c=f.style;if(A(c)){var o=this;O.prototype.update.call(this,f,function(){o.updateDom(f,f._shadowDom)})}else this.remove(g,f)},C.prototype.remove=function(g,f){f._shadowDomId!=null&&(this.removeDom(g),g.style.filter="")},C.prototype.updateDom=function(g,f){var c=f.getElementsByTagName("feDropShadow");c.length===0?c=this.createElement("feDropShadow"):c=c[0];var o=g.style,r=g.scale&&g.scale[0]||1,i=g.scale&&g.scale[1]||1,n,e,l,t;if(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY)n=o.shadowOffsetX||0,e=o.shadowOffsetY||0,l=o.shadowBlur,t=o.shadowColor;else if(o.textShadowBlur)n=o.textShadowOffsetX||0,e=o.textShadowOffsetY||0,l=o.textShadowBlur,t=o.textShadowColor;else{this.removeDom(f,o);return}c.setAttribute("dx",n/r),c.setAttribute("dy",e/i),c.setAttribute("flood-color",t);var a=l/2/r,s=l/2/i,u=a+" "+s;c.setAttribute("stdDeviation",u),f.setAttribute("x","-100%"),f.setAttribute("y","-100%"),f.setAttribute("width",Math.ceil(l/2*200)+"%"),f.setAttribute("height",Math.ceil(l/2*200)+"%"),f.appendChild(c),g._shadowDom=f},C.prototype.markUsed=function(g){g._shadowDom&&O.prototype.markUsed.call(this,g._shadowDom)};function A(g){return g&&(g.shadowBlur||g.shadowOffsetX||g.shadowOffsetY||g.textShadowBlur||g.textShadowOffsetX||g.textShadowOffsetY)}var b=C;H.exports=b},vL6D:function(H,k,d){var O=d("bYtY"),x=d("+rIm"),C=d("IwbS"),A=d("7bkD"),b=d("Znkb"),g=d("WN+l"),f=g.rectCoordAxisBuildSplitArea,c=g.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],r=["splitArea","splitLine"],i=b.extend({type:"singleAxis",axisPointerClass:"SingleAxisPointer",render:function(e,l,t,a){var s=this.group;s.removeAll();var u=this._axisGroup;this._axisGroup=new C.Group;var h=A.layout(e),p=new x(e,h);O.each(o,p.add,p),s.add(this._axisGroup),s.add(p.getGroup()),O.each(r,function(m){e.get(m+".show")&&this["_"+m](e)},this),C.groupTransition(u,this._axisGroup,e),i.superCall(this,"render",e,l,t,a)},remove:function(){c(this)},_splitLine:function(e){var l=e.axis;if(l.scale.isBlank())return;var t=e.getModel("splitLine"),a=t.getModel("lineStyle"),s=a.get("width"),u=a.get("color");u=u instanceof Array?u:[u];for(var h=e.coordinateSystem.getRect(),p=l.isHorizontal(),m=[],v=0,y=l.getTicksCoords({tickModel:t}),E=[],T=[],w=0;w<y.length;++w){var S=l.toGlobalCoord(y[w].coord);p?(E[0]=S,E[1]=h.y,T[0]=S,T[1]=h.y+h.height):(E[0]=h.x,E[1]=S,T[0]=h.x+h.width,T[1]=S);var _=v++%u.length;m[_]=m[_]||[],m[_].push(new C.Line({subPixelOptimize:!0,shape:{x1:E[0],y1:E[1],x2:T[0],y2:T[1]},style:{lineWidth:s},silent:!0}))}for(var w=0;w<m.length;++w)this.group.add(C.mergePath(m[w],{style:{stroke:u[w%u.length],lineDash:a.getLineDash(s),lineWidth:s},silent:!0}))},_splitArea:function(e){f(this,this._axisGroup,e,e)}}),n=i;H.exports=n},vWvF:function(H,k,d){var O=d("Bq2U"),x=d("SUKs"),C=d("bYtY"),A=C.isString,b=C.isFunction,g=C.isObject,f=C.isArrayLike,c=C.indexOf,o=function(){this.animators=[]};o.prototype={constructor:o,animate:function(t,a){var s,u=!1,h=this,p=this.__zr;if(t){var m=t.split("."),v=h;u=m[0]==="shape";for(var y=0,E=m.length;y<E;y++){if(!v)continue;v=v[m[y]]}v&&(s=v)}else s=h;if(!s){x('Property "'+t+'" is not existed in element '+h.id);return}var T=h.animators,w=new O(s,a);return w.during(function(S){h.dirty(u)}).done(function(){T.splice(c(T,w),1)}),T.push(w),p&&p.animation.addAnimator(w),w},stopAnimation:function(t){for(var a=this.animators,s=a.length,u=0;u<s;u++)a[u].stop(t);return a.length=0,this},animateTo:function(t,a,s,u,h,p){r(this,t,a,s,u,h,p)},animateFrom:function(t,a,s,u,h,p){r(this,t,a,s,u,h,p,!0)}};function r(l,t,a,s,u,h,p,m){A(s)?(h=u,u=s,s=0):b(u)?(h=u,u="linear",s=0):b(s)?(h=s,s=0):b(a)?(h=a,a=500):a||(a=500),l.stopAnimation(),i(l,"",l,t,a,s,m);var v=l.animators.slice(),y=v.length;function E(){y--,y||h&&h()}y||h&&h();for(var T=0;T<v.length;T++)v[T].done(E).start(u,p)}function i(l,t,a,s,u,h,p){var m={},v=0;for(var y in s){if(!s.hasOwnProperty(y))continue;a[y]!=null?g(s[y])&&!f(s[y])?i(l,t?t+"."+y:y,a[y],s[y],u,h,p):(p?(m[y]=a[y],n(l,t,y,s[y])):m[y]=s[y],v++):s[y]!=null&&!p&&n(l,t,y,s[y])}v>0&&l.animate(t,!1).when(u==null?500:u,m).delay(h||0)}function n(l,t,a,s){if(!t)l.attr(a,s);else{var u={};u[t]={},u[t][a]=s,l.attr(u)}}var e=o;H.exports=e},vZ6x:function(H,k,d){var O=d("Tghj"),x=O.__DEV__,C=d("bYtY"),A=d("IwbS"),b=d("4NO4"),g=d("9KIM"),f=C.each,c=C.indexOf,o=C.curry,r=["dataToPoint","pointToData"],i=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function n(w,S,_){var I=this._targetInfoList=[],L={},N=t(S,w);f(a,function(R,D){(!_||!_.include||c(_.include,D)>=0)&&R(N,I,L)})}var e=n.prototype;e.setOutputRanges=function(w,S){this.matchOutputRanges(w,S,function(_,I,L){if((_.coordRanges||(_.coordRanges=[])).push(I),!_.coordRange){_.coordRange=I;var N=h[_.brushType](0,L,I);_.__rangeOffset={offset:m[_.brushType](N.values,_.range,[1,1]),xyMinMax:N.xyMinMax}}})},e.matchOutputRanges=function(w,S,_){f(w,function(I){var L=this.findTargetInfo(I,S);L&&L!==!0&&C.each(L.coordSyses,function(N){var R=h[I.brushType](1,N,I.range);_(I,R.values,N,S)})},this)},e.setInputRanges=function(w,S){f(w,function(_){var I=this.findTargetInfo(_,S);if(_.range=_.range||[],I&&I!==!0){_.panelId=I.panelId;var L=h[_.brushType](0,I.coordSys,_.coordRange),N=_.__rangeOffset;_.range=N?m[_.brushType](L.values,N.offset,y(L.xyMinMax,N.xyMinMax)):L.values}},this)},e.makePanelOpts=function(w,S){return C.map(this._targetInfoList,function(_){var I=_.getPanelRect();return{panelId:_.panelId,defaultBrushType:S&&S(_),clipPath:g.makeRectPanelClipPath(I),isTargetByCursor:g.makeRectIsTargetByCursor(I,w,_.coordSysModel),getLinearBrushOtherExtent:g.makeLinearBrushOtherExtent(I)}})},e.controlSeries=function(w,S,_){var I=this.findTargetInfo(w,_);return I===!0||I&&c(I.coordSyses,S.coordinateSystem)>=0},e.findTargetInfo=function(w,S){for(var _=this._targetInfoList,I=t(S,w),L=0;L<_.length;L++){var N=_[L],R=w.panelId;if(R){if(N.panelId===R)return N}else for(var L=0;L<s.length;L++)if(s[L](I,N))return N}return!0};function l(w){return w[0]>w[1]&&w.reverse(),w}function t(w,S){return b.parseFinder(w,S,{includeMainTypes:i})}var a={grid:function(w,S){var _=w.xAxisModels,I=w.yAxisModels,L=w.gridModels,N=C.createHashMap(),R={},D={};if(!_&&!I&&!L)return;f(_,function(F){var M=F.axis.grid.model;N.set(M.id,M),R[M.id]=!0}),f(I,function(F){var M=F.axis.grid.model;N.set(M.id,M),D[M.id]=!0}),f(L,function(F){N.set(F.id,F),R[F.id]=!0,D[F.id]=!0}),N.each(function(F){var M=F.coordinateSystem,U=[];f(M.getCartesians(),function(B,j){(c(_,B.getAxis("x").model)>=0||c(I,B.getAxis("y").model)>=0)&&U.push(B)}),S.push({panelId:"grid--"+F.id,gridModel:F,coordSysModel:F,coordSys:U[0],coordSyses:U,getPanelRect:u.grid,xAxisDeclared:R[F.id],yAxisDeclared:D[F.id]})})},geo:function(w,S){f(w.geoModels,function(_){var I=_.coordinateSystem;S.push({panelId:"geo--"+_.id,geoModel:_,coordSysModel:_,coordSys:I,coordSyses:[I],getPanelRect:u.geo})})}},s=[function(w,S){var _=w.xAxisModel,I=w.yAxisModel,L=w.gridModel;return!L&&_&&(L=_.axis.grid.model),!L&&I&&(L=I.axis.grid.model),L&&L===S.gridModel},function(w,S){var _=w.geoModel;return _&&_===S.geoModel}],u={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var w=this.coordSys,S=w.getBoundingRect().clone();return S.applyTransform(A.getTransform(w)),S}},h={lineX:o(p,0),lineY:o(p,1),rect:function(w,S,_){var I=S[r[w]]([_[0][0],_[1][0]]),L=S[r[w]]([_[0][1],_[1][1]]),N=[l([I[0],L[0]]),l([I[1],L[1]])];return{values:N,xyMinMax:N}},polygon:function(w,S,_){var I=[[Infinity,-Infinity],[Infinity,-Infinity]],L=C.map(_,function(N){var R=S[r[w]](N);return I[0][0]=Math.min(I[0][0],R[0]),I[1][0]=Math.min(I[1][0],R[1]),I[0][1]=Math.max(I[0][1],R[0]),I[1][1]=Math.max(I[1][1],R[1]),R});return{values:L,xyMinMax:I}}};function p(w,S,_,I){var L=_.getAxis(["x","y"][w]),N=l(C.map([0,1],function(D){return S?L.coordToData(L.toLocalCoord(I[D])):L.toGlobalCoord(L.dataToCoord(I[D]))})),R=[];return R[w]=N,R[1-w]=[NaN,NaN],{values:N,xyMinMax:R}}var m={lineX:o(v,0),lineY:o(v,1),rect:function(w,S,_){return[[w[0][0]-_[0]*S[0][0],w[0][1]-_[0]*S[0][1]],[w[1][0]-_[1]*S[1][0],w[1][1]-_[1]*S[1][1]]]},polygon:function(w,S,_){return C.map(w,function(I,L){return[I[0]-_[0]*S[L][0],I[1]-_[1]*S[L][1]]})}};function v(w,S,_,I){return[S[0]-I[w]*_[0],S[1]-I[w]*_[1]]}function y(w,S){var _=E(w),I=E(S),L=[_[0]/I[0],_[1]/I[1]];return isNaN(L[0])&&(L[0]=1),isNaN(L[1])&&(L[1]=1),L}function E(w){return w?[w[0][1]-w[0][0],w[1][1]-w[1][0]]:[NaN,NaN]}var T=n;H.exports=T},vZI5:function(H,k,d){var O=d("bYtY"),x=d("T4UG"),C=d("5GhG"),A=C.seriesModelMixin,b=x.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(f,c,o){var r=c.getItemLayout(f);return r&&o.rect(r.brushRect)}});O.mixin(b,A,!0);var g=b;H.exports=g},vafp:function(H,k,d){var O=d("bYtY"),x=d("8nly");function C(g){if(!g.UTF8Encoding)return g;var f=g.UTF8Scale;f==null&&(f=1024);for(var c=g.features,o=0;o<c.length;o++)for(var r=c[o],i=r.geometry,n=i.coordinates,e=i.encodeOffsets,l=0;l<n.length;l++){var t=n[l];if(i.type==="Polygon")n[l]=A(t,e[l],f);else if(i.type==="MultiPolygon")for(var a=0;a<t.length;a++){var s=t[a];t[a]=A(s,e[l][a],f)}}return g.UTF8Encoding=!1,g}function A(g,f,c){for(var o=[],r=f[0],i=f[1],n=0;n<g.length;n+=2){var e=g.charCodeAt(n)-64,l=g.charCodeAt(n+1)-64;e=e>>1^-(e&1),l=l>>1^-(l&1),e+=r,l+=i,r=e,i=l,o.push([e/c,l/c])}return o}function b(g,f){return C(g),O.map(O.filter(g.features,function(c){return c.geometry&&c.properties&&c.geometry.coordinates.length>0}),function(c){var o=c.properties,r=c.geometry,i=r.coordinates,n=[];r.type==="Polygon"&&n.push({type:"polygon",exterior:i[0],interiors:i.slice(1)}),r.type==="MultiPolygon"&&O.each(i,function(l){l[0]&&n.push({type:"polygon",exterior:l[0],interiors:l.slice(1)})});var e=new x(o[f||"name"],n,o.cp);return e.properties=o,e})}H.exports=b},vcCh:function(H,k,d){var O=d("ProS");d("0qV/"),O.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(x,C){C.eachComponent({mainType:"series",subType:"sankey",query:x},function(A){A.setNodePosition(x.dataIndex,[x.localX,x.localY])})})},vewr:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.getPointerEvent=O,k.stopEvent=x,k.setCapture=c,k.releaseCapture=o;function O(r){return r.changedTouches?r.changedTouches[0]:r.touches?r.touches[0]:r}function x(r){r.stopPropagation(),r.preventDefault()}var C=!1,A=null;document.captureElement=null;function b(r){if(C)return;var i=new r.constructor(r.type,r);C=!0,document.captureElement?document.captureElement.dispatchEvent(i):A.dispatchEvent(i),C=!1,r.stopPropagation(),i.defaultPrevented&&r.preventDefault(),r.type==="mouseup"&&o()}function g(){var r=document.getElementById("noVNC_mouse_capture_elem");r.style.cursor=window.getComputedStyle(document.captureElement).cursor}var f=new MutationObserver(g);function c(r){if(r.setCapture)r.setCapture(),document.captureElement=r,r.addEventListener("mouseup",o);else{o();var i=document.getElementById("noVNC_mouse_capture_elem");i===null&&(i=document.createElement("div"),i.id="noVNC_mouse_capture_elem",i.style.position="fixed",i.style.top="0px",i.style.left="0px",i.style.width="100%",i.style.height="100%",i.style.zIndex=1e4,i.style.display="none",document.body.appendChild(i),i.addEventListener("contextmenu",b),i.addEventListener("mousemove",b),i.addEventListener("mouseup",b)),document.captureElement=r,f.observe(r,{attributes:!0}),g(),i.style.display="",window.addEventListener("mousemove",b),window.addEventListener("mouseup",b)}}function o(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;A=document.captureElement,document.captureElement=null,f.disconnect();var r=document.getElementById("noVNC_mouse_capture_elem");r.style.display="none",window.removeEventListener("mousemove",b),window.removeEventListener("mouseup",b)}}},vg9a:function(H,k,d){},"vk+C":function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("RZPm"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},w4Tj:function(H,k,d){"use strict";d.d(k,"a",function(){return C});var O=d("oZsa");function x(A,b){for(;!Object.prototype.hasOwnProperty.call(A,b)&&!(A=Object(O.a)(A),A===null););return A}function C(A,b,g){return typeof Reflect!="undefined"&&Reflect.get?C=Reflect.get:C=function(c,o,r){var i=x(c,o);if(!i)return;var n=Object.getOwnPropertyDescriptor(i,o);return n.get?n.get.call(r):n.value},C(A,b,g||A)}},w5pM:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="PlusCircleOutlined";var f=k.a=x.forwardRef(g)},w6Tc:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("apAg"));function x(A){return A&&A.__esModule?A:{default:A}}var C=O;k.default=C,H.exports=C},w7YG:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.StreamCipher,b=x.algo,g=b.RC4=A.extend({_doReset:function(){for(var r=this._key,i=r.words,n=r.sigBytes,e=this._S=[],l=0;l<256;l++)e[l]=l;for(var l=0,t=0;l<256;l++){var a=l%n,s=i[a>>>2]>>>24-a%4*8&255;t=(t+e[l]+s)%256;var u=e[l];e[l]=e[t],e[t]=u}this._i=this._j=0},_doProcessBlock:function(r,i){r[i]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var o=this._S,r=this._i,i=this._j,n=0,e=0;e<4;e++){r=(r+1)%256,i=(i+o[r])%256;var l=o[r];o[r]=o[i],o[i]=l,n|=o[(o[r]+o[i])%256]<<24-e*8}return this._i=r,this._j=i,n}x.RC4=A._createHelper(g);var c=b.RC4Drop=g.extend({cfg:g.cfg.extend({drop:192}),_doReset:function(){g._doReset.call(this);for(var r=this.cfg.drop;r>0;r--)f.call(this)}});x.RC4Drop=A._createHelper(c)}(),O.RC4})},wCAj:function(H,k,d){"use strict";var O=d("cDf5"),x=d.n(O),C=d("lSNA"),A=d.n(C),b=d("J4zp"),g=d.n(b),f=d("pVnL"),c=d.n(f),o=d("q1tI"),r=d.n(o),i=d("TSYQ"),n=d.n(i),e=d("BGR+"),l=d("rePB"),t=d("VTBJ"),a=d("KQm4"),s=d("U8pU"),u=d("ODXe"),h=d("Gytx"),p=d.n(h),m={};function v(Qt,Vr){}function y(Qt,Vr){}function E(){m={}}function T(Qt,Vr,cn){!Vr&&!m[cn]&&(Qt(!1,cn),m[cn]=!0)}function w(Qt,Vr){T(v,Qt,Vr)}function S(Qt,Vr){T(y,Qt,Vr)}var _=w,I=d("1OyB"),L=d("vuIU"),N=d("Ji7U"),R=d("LK+K"),D=d("i8i4"),F=d.n(D);function M(Qt){return Qt instanceof HTMLElement?Qt:F.a.findDOMNode(Qt)}var U=d("TOwV");function B(Qt){var Vr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},cn=[];return r.a.Children.forEach(Qt,function(vn){if(vn==null&&!Vr.keepEmpty)return;Array.isArray(vn)?cn=cn.concat(B(vn)):Object(U.isFragment)(vn)&&vn.props?cn=cn.concat(B(vn.props.children,Vr)):cn.push(vn)}),cn}function j(Qt,Vr,cn){var vn=o.useRef({});return(!("value"in vn.current)||cn(vn.current.condition,Vr))&&(vn.current.value=Qt(),vn.current.condition=Vr),vn.current.value}function W(Qt,Vr){typeof Qt=="function"?Qt(Vr):Object(s.a)(Qt)==="object"&&Qt&&"current"in Qt&&(Qt.current=Vr)}function V(){for(var Qt=arguments.length,Vr=new Array(Qt),cn=0;cn<Qt;cn++)Vr[cn]=arguments[cn];var vn=Vr.filter(function(ni){return ni});return vn.length<=1?vn[0]:function(ni){Vr.forEach(function(li){W(li,ni)})}}function z(){for(var Qt=arguments.length,Vr=new Array(Qt),cn=0;cn<Qt;cn++)Vr[cn]=arguments[cn];return j(function(){return V.apply(void 0,Vr)},Vr,function(vn,ni){return vn.length===ni.length&&vn.every(function(li,fi){return li===ni[fi]})})}function J(Qt){var Vr,cn,vn=Object(U.isMemo)(Qt)?Qt.type.type:Qt.type;return typeof vn=="function"&&!((Vr=vn.prototype)===null||Vr===void 0?void 0:Vr.render)?!1:!(typeof Qt=="function"&&!((cn=Qt.prototype)===null||cn===void 0?void 0:cn.render))}var q=d("bdgK"),de="rc-observer-key",ae=function(Qt){Object(N.a)(cn,Qt);var Vr=Object(R.a)(cn);function cn(){var vn;return Object(I.a)(this,cn),vn=Vr.apply(this,arguments),vn.resizeObserver=null,vn.childNode=null,vn.currentElement=null,vn.state={width:0,height:0,offsetHeight:0,offsetWidth:0},vn.onResize=function(ni){var li=vn.props.onResize,fi=ni[0].target,di=fi.getBoundingClientRect(),Jt=di.width,Ot=di.height,yr=fi.offsetWidth,ft=fi.offsetHeight,qt=Math.floor(Jt),dr=Math.floor(Ot);if(vn.state.width!==qt||vn.state.height!==dr||vn.state.offsetWidth!==yr||vn.state.offsetHeight!==ft){var Nr={width:qt,height:dr,offsetWidth:yr,offsetHeight:ft};vn.setState(Nr),li&&Promise.resolve().then(function(){li(Object(t.a)(Object(t.a)({},Nr),{},{offsetWidth:yr,offsetHeight:ft}))})}},vn.setChildNode=function(ni){vn.childNode=ni},vn}return Object(L.a)(cn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var ni=this.props.disabled;if(ni){this.destroyObserver();return}var li=M(this.childNode||this),fi=li!==this.currentElement;fi&&(this.destroyObserver(),this.currentElement=li),!this.resizeObserver&&li&&(this.resizeObserver=new q.default(this.onResize),this.resizeObserver.observe(li))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var ni=this.props.children,li=B(ni);if(li.length>1)_(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(li.length===0)return _(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var fi=li[0];if(o.isValidElement(fi)&&J(fi)){var di=fi.ref;li[0]=o.cloneElement(fi,{ref:V(di,this.setChildNode)})}return li.length===1?li[0]:li.map(function(Jt,Ot){return!o.isValidElement(Jt)||"key"in Jt&&Jt.key!==null?Jt:o.cloneElement(Jt,{key:"".concat(de,"-").concat(Ot)})})}}]),cn}(o.Component);ae.displayName="ResizeObserver";var ve=ae,_e;function Ie(Qt){if(typeof document=="undefined")return 0;if(Qt||_e===void 0){var Vr=document.createElement("div");Vr.style.width="100%",Vr.style.height="200px";var cn=document.createElement("div"),vn=cn.style;vn.position="absolute",vn.top="0",vn.left="0",vn.pointerEvents="none",vn.visibility="hidden",vn.width="200px",vn.height="150px",vn.overflow="hidden",cn.appendChild(Vr),document.body.appendChild(cn);var ni=Vr.offsetWidth;cn.style.overflow="scroll";var li=Vr.offsetWidth;ni===li&&(li=cn.clientWidth),document.body.removeChild(cn),_e=ni-li}return _e}function He(Qt){var Vr=Qt.match(/^(.*)px$/),cn=Number(Vr==null?void 0:Vr[1]);return Number.isNaN(cn)?Ie():cn}function me(Qt){if(typeof document=="undefined"||!Qt||!(Qt instanceof Element))return{width:0,height:0};var Vr=getComputedStyle(Qt,"::-webkit-scrollbar"),cn=Vr.width,vn=Vr.height;return{width:He(cn),height:He(vn)}}function ke(Qt){return null}var se=ke;function te(Qt){return null}var Ge=te,oe=d("Ff2n"),Y="RC_TABLE_KEY";function G(Qt){return Qt==null?[]:Array.isArray(Qt)?Qt:[Qt]}function Q(Qt,Vr){if(!Vr&&typeof Vr!="number")return Qt;for(var cn=G(Vr),vn=Qt,ni=0;ni<cn.length;ni+=1){if(!vn)return null;var li=cn[ni];vn=vn[li]}return vn}function ye(Qt){var Vr=[],cn={};return Qt.forEach(function(vn){for(var ni=vn||{},li=ni.key,fi=ni.dataIndex,di=li||G(fi).join("-")||Y;cn[di];)di="".concat(di,"_next");cn[di]=!0,Vr.push(di)}),Vr}function ce(){var Qt={};function Vr(li,fi){fi&&Object.keys(fi).forEach(function(di){var Jt=fi[di];Jt&&Object(s.a)(Jt)==="object"?(li[di]=li[di]||{},Vr(li[di],Jt)):li[di]=Jt})}for(var cn=arguments.length,vn=new Array(cn),ni=0;ni<cn;ni++)vn[ni]=arguments[ni];return vn.forEach(function(li){Vr(Qt,li)}),Qt}function Te(Qt){return Qt!=null}function Se(Qt){return Qt&&Object(s.a)(Qt)==="object"&&!Array.isArray(Qt)&&!o.isValidElement(Qt)}function le(Qt){return typeof Qt=="string"?!0:J(Qt)}function fe(Qt,Vr){var cn,vn=Qt.prefixCls,ni=Qt.className,li=Qt.record,fi=Qt.index,di=Qt.dataIndex,Jt=Qt.render,Ot=Qt.children,yr=Qt.component,ft=yr===void 0?"td":yr,qt=Qt.colSpan,dr=Qt.rowSpan,Nr=Qt.fixLeft,Zr=Qt.fixRight,pn=Qt.firstFixLeft,_n=Qt.lastFixLeft,Dn=Qt.firstFixRight,Zn=Qt.lastFixRight,ii=Qt.appendNode,pi=Qt.additionalProps,ri=pi===void 0?{}:pi,ji=Qt.ellipsis,ei=Qt.align,$e=Qt.rowType,Yt=Qt.isSticky,vr="".concat(vn,"-cell"),fr,Xr;if(Ot)Xr=Ot;else{var Fr=Q(li,di);if(Xr=Fr,Jt){var hr=Jt(Fr,li,fi);Se(hr)?(Xr=hr.children,fr=hr.props):Xr=hr}}Object(s.a)(Xr)==="object"&&!Array.isArray(Xr)&&!o.isValidElement(Xr)&&(Xr=null),ji&&(_n||Dn)&&(Xr=o.createElement("span",{className:"".concat(vr,"-content")},Xr));var An=fr||{},br=An.colSpan,mn=An.rowSpan,Kn=An.style,Wn=An.className,Ln=Object(oe.a)(An,["colSpan","rowSpan","style","className"]),$n=br!==void 0?br:qt,Un=mn!==void 0?mn:dr;if($n===0||Un===0)return null;var ti={},Xn=typeof Nr=="number",wi=typeof Zr=="number";Xn&&(ti.position="sticky",ti.left=Nr),wi&&(ti.position="sticky",ti.right=Zr);var Ei={};ei&&(Ei.textAlign=ei);var Zi,ua=ji===!0?{showTitle:!0}:ji;ua&&(ua.showTitle||$e==="header")&&(typeof Xr=="string"||typeof Xr=="number"?Zi=Xr.toString():o.isValidElement(Xr)&&typeof Xr.props.children=="string"&&(Zi=Xr.props.children));var Xi=Object(t.a)(Object(t.a)(Object(t.a)({title:Zi},Ln),ri),{},{colSpan:$n&&$n!==1?$n:null,rowSpan:Un&&Un!==1?Un:null,className:n()(vr,ni,(cn={},Object(l.a)(cn,"".concat(vr,"-fix-left"),Xn),Object(l.a)(cn,"".concat(vr,"-fix-left-first"),pn),Object(l.a)(cn,"".concat(vr,"-fix-left-last"),_n),Object(l.a)(cn,"".concat(vr,"-fix-right"),wi),Object(l.a)(cn,"".concat(vr,"-fix-right-first"),Dn),Object(l.a)(cn,"".concat(vr,"-fix-right-last"),Zn),Object(l.a)(cn,"".concat(vr,"-ellipsis"),ji),Object(l.a)(cn,"".concat(vr,"-with-append"),ii),Object(l.a)(cn,"".concat(vr,"-fix-sticky"),(Xn||wi)&&Yt),cn),ri.className,Wn),style:Object(t.a)(Object(t.a)(Object(t.a)(Object(t.a)({},ri.style),Ei),ti),Kn),ref:le(ft)?Vr:null});return o.createElement(ft,Object.assign({},Xi),ii,Xr)}var Ee=o.forwardRef(fe);Ee.displayName="Cell";var Ve=o.memo(Ee,function(Qt,Vr){return Vr.shouldCellUpdate?!Vr.shouldCellUpdate(Vr.record,Qt.record):!1}),vt=Ve,et=o.createContext(null),Oe=et;function Tt(Qt,Vr,cn,vn,ni){var li=cn[Qt]||{},fi=cn[Vr]||{},di,Jt;li.fixed==="left"?di=vn.left[Qt]:fi.fixed==="right"&&(Jt=vn.right[Vr]);var Ot=!1,yr=!1,ft=!1,qt=!1,dr=cn[Vr+1],Nr=cn[Qt-1];if(ni==="rtl"){if(di!==void 0){var Zr=Nr&&Nr.fixed==="left";qt=!Zr}else if(Jt!==void 0){var pn=dr&&dr.fixed==="right";ft=!pn}}else if(di!==void 0){var _n=dr&&dr.fixed==="left";Ot=!_n}else if(Jt!==void 0){var Dn=Nr&&Nr.fixed==="right";yr=!Dn}return{fixLeft:di,fixRight:Jt,lastFixLeft:Ot,firstFixRight:yr,lastFixRight:ft,firstFixLeft:qt,isSticky:vn.isSticky}}function Je(Qt){var Vr=Qt.cells,cn=Qt.stickyOffsets,vn=Qt.flattenColumns,ni=Qt.rowComponent,li=Qt.cellComponent,fi=Qt.onHeaderRow,di=Qt.index,Jt=o.useContext(Oe),Ot=Jt.prefixCls,yr=Jt.direction,ft;fi&&(ft=fi(Vr.map(function(dr){return dr.column}),di));var qt=ye(Vr.map(function(dr){return dr.column}));return o.createElement(ni,Object.assign({},ft),Vr.map(function(dr,Nr){var Zr=dr.column,pn=Tt(dr.colStart,dr.colEnd,vn,cn,yr),_n;return Zr&&Zr.onHeaderCell&&(_n=dr.column.onHeaderCell(Zr)),o.createElement(vt,Object.assign({},dr,{ellipsis:Zr.ellipsis,align:Zr.align,component:li,prefixCls:Ot,key:qt[Nr]},pn,{additionalProps:_n,rowType:"header"}))}))}Je.displayName="HeaderRow";var St=Je;function Mt(Qt){var Vr=[];function cn(fi,di){var Jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Vr[Jt]=Vr[Jt]||[];var Ot=di,yr=fi.filter(Boolean).map(function(ft){var qt={key:ft.key,className:ft.className||"",children:ft.title,column:ft,colStart:Ot},dr=1,Nr=ft.children;return Nr&&Nr.length>0&&(dr=cn(Nr,Ot,Jt+1).reduce(function(Zr,pn){return Zr+pn},0),qt.hasSubColumns=!0),"colSpan"in ft&&(dr=ft.colSpan),"rowSpan"in ft&&(qt.rowSpan=ft.rowSpan),qt.colSpan=dr,qt.colEnd=qt.colStart+dr-1,Vr[Jt].push(qt),Ot+=dr,dr});return yr}cn(Qt,0);for(var vn=Vr.length,ni=function(di){Vr[di].forEach(function(Jt){!("rowSpan"in Jt)&&!Jt.hasSubColumns&&(Jt.rowSpan=vn-di)})},li=0;li<vn;li+=1)ni(li);return Vr}function er(Qt){var Vr=Qt.stickyOffsets,cn=Qt.columns,vn=Qt.flattenColumns,ni=Qt.onHeaderRow,li=o.useContext(Oe),fi=li.prefixCls,di=li.getComponent,Jt=o.useMemo(function(){return Mt(cn)},[cn]),Ot=di(["header","wrapper"],"thead"),yr=di(["header","row"],"tr"),ft=di(["header","cell"],"th");return o.createElement(Ot,{className:"".concat(fi,"-thead")},Jt.map(function(qt,dr){var Nr=o.createElement(St,{key:dr,flattenColumns:vn,cells:qt,stickyOffsets:Vr,rowComponent:yr,cellComponent:ft,onHeaderRow:ni,index:dr});return Nr}))}var It=er,_t="RC_TABLE_INTERNAL_COL_DEFINE";function Xe(Qt){var Vr=Qt.expandable,cn=Object(oe.a)(Qt,["expandable"]);return"expandable"in Qt?Object(t.a)(Object(t.a)({},cn),Vr):cn}function ie(Qt){return Object.keys(Qt).reduce(function(Vr,cn){return(cn.substr(0,5)==="data-"||cn.substr(0,5)==="aria-")&&(Vr[cn]=Qt[cn]),Vr},{})}function X(Qt){for(var Vr=Qt.colWidths,cn=Qt.columns,vn=Qt.columCount,ni=[],li=vn||cn.length,fi=!1,di=li-1;di>=0;di-=1){var Jt=Vr[di],Ot=cn&&cn[di],yr=Ot&&Ot[_t];(Jt||yr||fi)&&(ni.unshift(o.createElement("col",Object.assign({key:di,style:{width:Jt,minWidth:Jt}},yr))),fi=!0)}return o.createElement("colgroup",null,ni)}var Be=X;function Ce(Qt,Vr){return Object(o.useMemo)(function(){for(var cn=[],vn=0;vn<Vr;vn+=1){var ni=Qt[vn];if(ni!==void 0)cn[vn]=ni;else return null}return cn},[Qt.join("_"),Vr])}var Z=o.forwardRef(function(Qt,Vr){var cn=Qt.noData,vn=Qt.columns,ni=Qt.flattenColumns,li=Qt.colWidths,fi=Qt.columCount,di=Qt.stickyOffsets,Jt=Qt.direction,Ot=Qt.fixHeader,yr=Qt.offsetHeader,ft=Qt.stickyClassName,qt=Qt.onScroll,dr=Object(oe.a)(Qt,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),Nr=o.useContext(Oe),Zr=Nr.prefixCls,pn=Nr.scrollbarSize,_n=Nr.isSticky,Dn=_n&&!Ot?0:pn,Zn=o.useRef(null),ii=o.useCallback(function(vr){W(Vr,vr),W(Zn,vr)},[]);o.useEffect(function(){var vr;function fr(Xr){var Fr=Xr.currentTarget,hr=Xr.deltaX;hr&&(qt({currentTarget:Fr,scrollLeft:Fr.scrollLeft+hr}),Xr.preventDefault())}return(vr=Zn.current)===null||vr===void 0||vr.addEventListener("wheel",fr),function(){var Xr;(Xr=Zn.current)===null||Xr===void 0||Xr.removeEventListener("wheel",fr)}},[]);var pi=ni[ni.length-1],ri={fixed:pi?pi.fixed:null,onHeaderCell:function(){return{className:"".concat(Zr,"-cell-scrollbar")}}},ji=Object(o.useMemo)(function(){return Dn?[].concat(Object(a.a)(vn),[ri]):vn},[Dn,vn]),ei=Object(o.useMemo)(function(){return Dn?[].concat(Object(a.a)(ni),[ri]):ni},[Dn,ni]),$e=Object(o.useMemo)(function(){var vr=di.right,fr=di.left;return Object(t.a)(Object(t.a)({},di),{},{left:Jt==="rtl"?[].concat(Object(a.a)(fr.map(function(Xr){return Xr+Dn})),[0]):fr,right:Jt==="rtl"?vr:[].concat(Object(a.a)(vr.map(function(Xr){return Xr+Dn})),[0]),isSticky:_n})},[Dn,di,_n]),Yt=Ce(li,fi);return o.createElement("div",{style:Object(t.a)({overflow:"hidden"},_n?{top:yr}:{}),ref:ii,className:n()("".concat(Zr,"-header"),Object(l.a)({},ft,!!ft))},o.createElement("table",{style:{tableLayout:"fixed",visibility:cn||Yt?null:"hidden"}},o.createElement(Be,{colWidths:Yt?[].concat(Object(a.a)(Yt),[Dn]):[],columCount:fi+1,columns:ei}),o.createElement(It,Object.assign({},dr,{stickyOffsets:$e,columns:ji,flattenColumns:ei}))))});Z.displayName="FixedHeader";var nt=Z,ct=o.createContext(null),Qe=ct;function dt(Qt){var Vr=Qt.prefixCls,cn=Qt.children,vn=Qt.component,ni=Qt.cellComponent,li=Qt.fixHeader,fi=Qt.fixColumn,di=Qt.horizonScroll,Jt=Qt.className,Ot=Qt.expanded,yr=Qt.componentWidth,ft=Qt.colSpan,qt=o.useContext(Oe),dr=qt.scrollbarSize;return o.useMemo(function(){var Nr=cn;return fi&&(Nr=o.createElement("div",{style:{width:yr-(li?dr:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Vr,"-expanded-row-fixed")},Nr)),o.createElement(vn,{className:Jt,style:{display:Ot?null:"none"}},o.createElement(vt,{component:ni,prefixCls:Vr,colSpan:ft},Nr))},[cn,vn,li,di,Jt,Ot,yr,ft,dr])}var Ft=dt;function Lr(Qt){var Vr=Qt.className,cn=Qt.style,vn=Qt.record,ni=Qt.index,li=Qt.rowKey,fi=Qt.getRowKey,di=Qt.rowExpandable,Jt=Qt.expandedKeys,Ot=Qt.onRow,yr=Qt.indent,ft=yr===void 0?0:yr,qt=Qt.rowComponent,dr=Qt.cellComponent,Nr=Qt.childrenColumnName,Zr=o.useContext(Oe),pn=Zr.prefixCls,_n=Zr.fixedInfoList,Dn=o.useContext(Qe),Zn=Dn.fixHeader,ii=Dn.fixColumn,pi=Dn.horizonScroll,ri=Dn.componentWidth,ji=Dn.flattenColumns,ei=Dn.expandableType,$e=Dn.expandRowByClick,Yt=Dn.onTriggerExpand,vr=Dn.rowClassName,fr=Dn.expandedRowClassName,Xr=Dn.indentSize,Fr=Dn.expandIcon,hr=Dn.expandedRowRender,An=Dn.expandIconColumnIndex,br=o.useState(!1),mn=Object(u.a)(br,2),Kn=mn[0],Wn=mn[1],Ln=Jt&&Jt.has(Qt.recordKey);o.useEffect(function(){Ln&&Wn(!0)},[Ln]);var $n=ei==="row"&&(!di||di(vn)),Un=ei==="nest",ti=Nr&&vn&&vn[Nr],Xn=$n||Un,wi;Ot&&(wi=Ot(vn,ni));var Ei=function(qi){if($e&&Xn&&Yt(vn,qi),wi&&wi.onClick){for(var aa,$i=arguments.length,Aa=new Array($i>1?$i-1:0),ya=1;ya<$i;ya++)Aa[ya-1]=arguments[ya];(aa=wi).onClick.apply(aa,[qi].concat(Aa))}},Zi;typeof vr=="string"?Zi=vr:typeof vr=="function"&&(Zi=vr(vn,ni,ft));var ua=ye(ji),Xi=o.createElement(qt,Object.assign({},wi,{"data-row-key":li,className:n()(Vr,"".concat(pn,"-row"),"".concat(pn,"-row-level-").concat(ft),Zi,wi&&wi.className),style:Object(t.a)(Object(t.a)({},cn),wi?wi.style:null),onClick:Ei}),ji.map(function(Ca,qi){var aa=Ca.render,$i=Ca.dataIndex,Aa=Ca.className,ya=ua[qi],Ha=_n[qi],ta;qi===(An||0)&&Un&&(ta=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(Xr*ft,"px")},className:"".concat(pn,"-row-indent indent-level-").concat(ft)}),Fr({prefixCls:pn,expanded:Ln,expandable:ti,record:vn,onExpand:Yt})));var ra;return Ca.onCell&&(ra=Ca.onCell(vn,ni)),o.createElement(vt,Object.assign({className:Aa,ellipsis:Ca.ellipsis,align:Ca.align,component:dr,prefixCls:pn,key:ya,record:vn,index:ni,dataIndex:$i,render:aa,shouldCellUpdate:Ca.shouldCellUpdate},Ha,{appendNode:ta,additionalProps:ra}))})),Gi;if($n&&(Kn||Ln)){var wa=hr(vn,ni,ft+1,Ln),na=fr&&fr(vn,ni,ft);Gi=o.createElement(Ft,{expanded:Ln,className:n()("".concat(pn,"-expanded-row"),"".concat(pn,"-expanded-row-level-").concat(ft+1),na),prefixCls:pn,fixHeader:Zn,fixColumn:ii,horizonScroll:pi,component:qt,componentWidth:ri,cellComponent:dr,colSpan:ji.length},wa)}var mo;return ti&&Ln&&(mo=(vn[Nr]||[]).map(function(Ca,qi){var aa=fi(Ca,qi);return o.createElement(Lr,Object.assign({},Qt,{key:aa,rowKey:aa,record:Ca,recordKey:aa,index:qi,indent:ft+1}))})),o.createElement(o.Fragment,null,Xi,Gi,mo)}Lr.displayName="BodyRow";var Wt=Lr,ar=o.createContext(null),Ut=ar;function kt(Qt){var Vr=Qt.columnKey,cn=Qt.onColumnResize,vn=o.useRef();return o.useEffect(function(){vn.current&&cn(Vr,vn.current.offsetWidth)},[]),o.createElement(ve,{onResize:function(li){var fi=li.offsetWidth;cn(Vr,fi)}},o.createElement("td",{ref:vn,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function st(Qt){var Vr=Qt.data,cn=Qt.getRowKey,vn=Qt.measureColumnWidth,ni=Qt.expandedKeys,li=Qt.onRow,fi=Qt.rowExpandable,di=Qt.emptyNode,Jt=Qt.childrenColumnName,Ot=o.useContext(Ut),yr=Ot.onColumnResize,ft=o.useContext(Oe),qt=ft.prefixCls,dr=ft.getComponent,Nr=o.useContext(Qe),Zr=Nr.fixHeader,pn=Nr.horizonScroll,_n=Nr.flattenColumns,Dn=Nr.componentWidth;return o.useMemo(function(){var Zn=dr(["body","wrapper"],"tbody"),ii=dr(["body","row"],"tr"),pi=dr(["body","cell"],"td"),ri;Vr.length?ri=Vr.map(function(ei,$e){var Yt=cn(ei,$e);return o.createElement(Wt,{key:Yt,rowKey:Yt,record:ei,recordKey:Yt,index:$e,rowComponent:ii,cellComponent:pi,expandedKeys:ni,onRow:li,getRowKey:cn,rowExpandable:fi,childrenColumnName:Jt})}):ri=o.createElement(Ft,{expanded:!0,className:"".concat(qt,"-placeholder"),prefixCls:qt,fixHeader:Zr,fixColumn:pn,horizonScroll:pn,component:ii,componentWidth:Dn,cellComponent:pi,colSpan:_n.length},di);var ji=ye(_n);return o.createElement(Zn,{className:"".concat(qt,"-tbody")},vn&&o.createElement("tr",{"aria-hidden":"true",className:"".concat(qt,"-measure-row"),style:{height:0}},ji.map(function(ei){return o.createElement(kt,{key:ei,columnKey:ei,onColumnResize:yr})})),ri)},[Vr,qt,li,vn,ni,cn,dr,Dn,di,_n])}var Rr=o.memo(st);Rr.displayName="Body";var on=Rr;function Sn(Qt){return B(Qt).filter(function(Vr){return o.isValidElement(Vr)}).map(function(Vr){var cn=Vr.key,vn=Vr.props,ni=vn.children,li=Object(oe.a)(vn,["children"]),fi=Object(t.a)({key:cn},li);return ni&&(fi.children=Sn(ni)),fi})}function zn(Qt){return Qt.reduce(function(Vr,cn){var vn=cn.fixed,ni=vn===!0?"left":vn,li=cn.children;return li&&li.length>0?[].concat(Object(a.a)(Vr),Object(a.a)(zn(li).map(function(fi){return Object(t.a)({fixed:ni},fi)}))):[].concat(Object(a.a)(Vr),[Object(t.a)(Object(t.a)({},cn),{},{fixed:ni})])},[])}function Ii(Qt){for(var Vr=!0,cn=0;cn<Qt.length;cn+=1){var vn=Qt[cn];if(Vr&&vn.fixed!=="left")Vr=!1;else if(!Vr&&vn.fixed==="left"){_(!1,"Index ".concat(cn-1," of `columns` missing `fixed='left'` prop."));break}}for(var ni=!0,li=Qt.length-1;li>=0;li-=1){var fi=Qt[li];if(ni&&fi.fixed!=="right")ni=!1;else if(!ni&&fi.fixed==="right"){_(!1,"Index ".concat(li+1," of `columns` missing `fixed='right'` prop."));break}}}function yn(Qt){return Qt.map(function(Vr){var cn=Vr.fixed,vn=Object(oe.a)(Vr,["fixed"]),ni=cn;return cn==="left"?ni="right":cn==="right"&&(ni="left"),Object(t.a)({fixed:ni},vn)})}function Nn(Qt,Vr){var cn=Qt.prefixCls,vn=Qt.columns,ni=Qt.children,li=Qt.expandable,fi=Qt.expandedKeys,di=Qt.getRowKey,Jt=Qt.onTriggerExpand,Ot=Qt.expandIcon,yr=Qt.rowExpandable,ft=Qt.expandIconColumnIndex,qt=Qt.direction,dr=Qt.expandRowByClick,Nr=o.useMemo(function(){return vn||Sn(ni)},[vn,ni]),Zr=o.useMemo(function(){if(li){var Dn,Zn=ft||0,ii=Nr[Zn],pi=(Dn={},Object(l.a)(Dn,_t,{className:"".concat(cn,"-expand-icon-col")}),Object(l.a)(Dn,"title",""),Object(l.a)(Dn,"fixed",ii?ii.fixed:null),Object(l.a)(Dn,"className","".concat(cn,"-row-expand-icon-cell")),Object(l.a)(Dn,"render",function(ei,$e,Yt){var vr=di($e,Yt),fr=fi.has(vr),Xr=yr?yr($e):!0,Fr=Ot({prefixCls:cn,expanded:fr,expandable:Xr,record:$e,onExpand:Jt});return dr?o.createElement("span",{onClick:function(An){return An.stopPropagation()}},Fr):Fr}),Dn),ri=Nr.slice();return Zn>=0&&ri.splice(Zn,0,pi),ri}return Nr},[li,Nr,di,fi,Ot,qt]),pn=o.useMemo(function(){var Dn=Zr;return Vr&&(Dn=Vr(Dn)),Dn.length||(Dn=[{render:function(){return null}}]),Dn},[Vr,Zr,qt]),_n=o.useMemo(function(){return qt==="rtl"?yn(zn(pn)):zn(pn)},[pn,qt]);return[pn,_n]}var jt=Nn,At=d("xEkU"),Re=d.n(At);function Ke(Qt){var Vr=Object(o.useRef)(Qt),cn=Object(o.useState)({}),vn=Object(u.a)(cn,2),ni=vn[1],li=Object(o.useRef)(null),fi=Object(o.useRef)([]);function di(Jt){li.current===null&&(fi.current=[],li.current=Re()(function(){fi.current.forEach(function(Ot){Vr.current=Ot(Vr.current)}),li.current=null,ni({})})),fi.current.push(Jt)}return Object(o.useEffect)(function(){return function(){Re.a.cancel(li.current)}},[]),[Vr.current,di]}function Pe(Qt){var Vr=Object(o.useRef)(Qt),cn=Object(o.useRef)(null);function vn(){window.clearTimeout(cn.current)}function ni(fi){Vr.current=fi,vn(),cn.current=window.setTimeout(function(){Vr.current=null,cn.current=null},100)}function li(){return Vr.current}return Object(o.useEffect)(function(){return vn},[]),[ni,li]}function at(Qt,Vr,cn){var vn=Object(o.useMemo)(function(){for(var ni=[],li=[],fi=0,di=0,Jt=0;Jt<Vr;Jt+=1)if(cn==="rtl"){li[Jt]=di,di+=Qt[Jt]||0;var Ot=Vr-Jt-1;ni[Ot]=fi,fi+=Qt[Ot]||0}else{ni[Jt]=fi,fi+=Qt[Jt]||0;var yr=Vr-Jt-1;li[yr]=di,di+=Qt[yr]||0}return{left:ni,right:li}},[Qt,Vr,cn]);return vn}var wt=at;function Rt(Qt){var Vr=Qt.className,cn=Qt.children;return o.createElement("div",{className:Vr},cn)}var xt=Rt;function Lt(Qt){var Vr=Qt.className,cn=Qt.index,vn=Qt.children,ni=Qt.colSpan,li=Qt.rowSpan,fi=o.useContext(Oe),di=fi.prefixCls,Jt=fi.fixedInfoList,Ot=Jt[cn];return o.createElement(vt,Object.assign({className:Vr,index:cn,component:"td",prefixCls:di,record:null,dataIndex:null,render:function(){return{children:vn,props:{colSpan:ni,rowSpan:li}}}},Ot))}function gr(Qt){return o.createElement("tr",Object.assign({},Qt))}function Br(Qt){var Vr=Qt.children,cn=o.useContext(Oe),vn=cn.prefixCls;return o.createElement("tfoot",{className:"".concat(vn,"-summary")},Vr)}var Et=Br,it={Cell:Lt,Row:gr};function rt(Qt){var Vr,cn=Qt.prefixCls,vn=Qt.record,ni=Qt.onExpand,li=Qt.expanded,fi=Qt.expandable,di="".concat(cn,"-row-expand-icon");if(!fi)return o.createElement("span",{className:n()(di,"".concat(cn,"-row-spaced"))});var Jt=function(yr){ni(vn,yr),yr.stopPropagation()};return o.createElement("span",{className:n()(di,(Vr={},Object(l.a)(Vr,"".concat(cn,"-row-expanded"),li),Object(l.a)(Vr,"".concat(cn,"-row-collapsed"),!li),Vr)),onClick:Jt})}function Pt(Qt,Vr,cn){var vn=[];function ni(li){(li||[]).forEach(function(fi,di){vn.push(Vr(fi,di)),ni(fi[cn])})}return ni(Qt),vn}function Ht(Qt,Vr,cn,vn){var ni=F.a.unstable_batchedUpdates?function(fi){F.a.unstable_batchedUpdates(cn,fi)}:cn;return Qt.addEventListener&&Qt.addEventListener(Vr,ni,vn),{remove:function(){Qt.removeEventListener&&Qt.removeEventListener(Vr,ni,vn)}}}var bt=/margin|padding|width|height|max|min|offset/,Gt={left:!0,top:!0},ut={cssFloat:1,styleFloat:1,float:1};function Kt(Qt){return Qt.nodeType===1?Qt.ownerDocument.defaultView.getComputedStyle(Qt,null):{}}function Ar(Qt,Vr,cn){if(Vr=Vr.toLowerCase(),cn==="auto"){if(Vr==="height")return Qt.offsetHeight;if(Vr==="width")return Qt.offsetWidth}return Vr in Gt||(Gt[Vr]=bt.test(Vr)),Gt[Vr]?parseFloat(cn)||0:cn}function ir(Qt,Vr){var cn=arguments.length,vn=Kt(Qt);return Vr=ut[Vr]?"cssFloat"in Qt.style?"cssFloat":"styleFloat":Vr,cn===1?vn:Ar(Qt,Vr,vn[Vr]||Qt.style[Vr])}function pr(Qt,Vr,cn){var vn=arguments.length;if(Vr=ut[Vr]?"cssFloat"in Qt.style?"cssFloat":"styleFloat":Vr,vn===3)return typeof cn=="number"&&bt.test(Vr)&&(cn="".concat(cn,"px")),Qt.style[Vr]=cn,cn;for(var ni in Vr)Vr.hasOwnProperty(ni)&&pr(Qt,ni,Vr[ni]);return Kt(Qt)}function tn(Qt){return Qt===document.body?document.documentElement.clientWidth:Qt.offsetWidth}function fn(Qt){return Qt===document.body?window.innerHeight||document.documentElement.clientHeight:Qt.offsetHeight}function Mn(){var Qt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Vr=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Qt,height:Vr}}function Yn(){var Qt=document.documentElement.clientWidth,Vr=window.innerHeight||document.documentElement.clientHeight;return{width:Qt,height:Vr}}function si(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function vi(Qt){var Vr=Qt.getBoundingClientRect(),cn=document.documentElement;return{left:Vr.left+(window.pageXOffset||cn.scrollLeft)-(cn.clientLeft||document.body.clientLeft||0),top:Vr.top+(window.pageYOffset||cn.scrollTop)-(cn.clientTop||document.body.clientTop||0)}}var xi=function(Vr,cn){var vn,ni,li=Vr.scrollBodyRef,fi=Vr.onScroll,di=Vr.offsetScroll,Jt=o.useContext(Oe),Ot=Jt.prefixCls,yr=((vn=li.current)===null||vn===void 0?void 0:vn.scrollWidth)||0,ft=((ni=li.current)===null||ni===void 0?void 0:ni.clientWidth)||0,qt=yr&&ft*(ft/yr),dr=o.useRef(),Nr=Ke({scrollLeft:0,isHiddenScrollBar:!1}),Zr=Object(u.a)(Nr,2),pn=Zr[0],_n=Zr[1],Dn=o.useRef({delta:0,x:0}),Zn=o.useState(!1),ii=Object(u.a)(Zn,2),pi=ii[0],ri=ii[1],ji=function(){ri(!1)},ei=function(Xr){Xr.persist(),Dn.current.delta=Xr.pageX-pn.scrollLeft,Dn.current.x=0,ri(!0),Xr.preventDefault()},$e=function(Xr){var Fr,hr=Xr||((Fr=window)===null||Fr===void 0?void 0:Fr.event),An=hr.buttons;if(!pi||An===0){pi&&ri(!1);return}var br=Dn.current.x+Xr.pageX-Dn.current.x-Dn.current.delta;br<=0&&(br=0),br+qt>=ft&&(br=ft-qt),fi({scrollLeft:br/ft*(yr+2)}),Dn.current.x=Xr.pageX},Yt=function(){var Xr=vi(li.current).top,Fr=Xr+li.current.offsetHeight,hr=document.documentElement.scrollTop+window.innerHeight;Fr-Ie()<=hr||Xr>=hr-di?_n(function(An){return Object(t.a)(Object(t.a)({},An),{},{isHiddenScrollBar:!0})}):_n(function(An){return Object(t.a)(Object(t.a)({},An),{},{isHiddenScrollBar:!1})})},vr=function(Xr){_n(function(Fr){return Object(t.a)(Object(t.a)({},Fr),{},{scrollLeft:Xr/yr*ft||0})})};return o.useImperativeHandle(cn,function(){return{setScrollLeft:vr}}),o.useEffect(function(){var fr=Ht(document.body,"mouseup",ji,!1),Xr=Ht(document.body,"mousemove",$e,!1);return Yt(),function(){fr.remove(),Xr.remove()}},[qt,pi]),o.useEffect(function(){var fr=Ht(window,"scroll",Yt,!1),Xr=Ht(window,"resize",Yt,!1);return function(){fr.remove(),Xr.remove()}},[]),o.useEffect(function(){pn.isHiddenScrollBar||_n(function(fr){var Xr,Fr;return Object(t.a)(Object(t.a)({},fr),{},{scrollLeft:li.current.scrollLeft/((Xr=li.current)===null||Xr===void 0?void 0:Xr.scrollWidth)*((Fr=li.current)===null||Fr===void 0?void 0:Fr.clientWidth)})})},[pn.isHiddenScrollBar]),yr<=ft||!qt||pn.isHiddenScrollBar?null:o.createElement("div",{style:{height:Ie(),width:ft,bottom:di},className:"".concat(Ot,"-sticky-scroll")},o.createElement("div",{onMouseDown:ei,ref:dr,className:n()("".concat(Ot,"-sticky-scroll-bar"),Object(l.a)({},"".concat(Ot,"-sticky-scroll-bar-active"),pi)),style:{width:"".concat(qt,"px"),transform:"translate3d(".concat(pn.scrollLeft,"px, 0, 0)")}}))},_i=o.forwardRef(xi);function Ze(Qt,Vr){return o.useMemo(function(){var cn=!!Qt;return{isSticky:cn,stickyClassName:cn?"".concat(Vr,"-sticky-header"):"",offsetHeader:Object(s.a)(Qt)==="object"&&Qt.offsetHeader||0,offsetScroll:Object(s.a)(Qt)==="object"&&Qt.offsetScroll||0}},[Qt,Vr])}var we=[],Ne={},Fe="rc-table-internal-hook",Ye=o.memo(function(Qt){var Vr=Qt.children;return Vr},function(Qt,Vr){return p()(Qt.props,Vr.props)?Qt.pingLeft!==Vr.pingLeft||Qt.pingRight!==Vr.pingRight:!1});function We(Qt){var Vr,cn=Qt.prefixCls,vn=Qt.className,ni=Qt.rowClassName,li=Qt.style,fi=Qt.data,di=Qt.rowKey,Jt=Qt.scroll,Ot=Qt.tableLayout,yr=Qt.direction,ft=Qt.title,qt=Qt.footer,dr=Qt.summary,Nr=Qt.id,Zr=Qt.showHeader,pn=Qt.components,_n=Qt.emptyText,Dn=Qt.onRow,Zn=Qt.onHeaderRow,ii=Qt.internalHooks,pi=Qt.transformColumns,ri=Qt.internalRefs,ji=Qt.sticky,ei=fi||we,$e=!!ei.length,Yt=o.useState(0),vr=Object(u.a)(Yt,2),fr=vr[0],Xr=vr[1];o.useEffect(function(){Xr(Ie())});var Fr=o.useMemo(function(){return ce(pn,{})},[pn]),hr=o.useCallback(function(io,Xa){return Q(Fr,io)||Xa},[Fr]),An=o.useMemo(function(){return typeof di=="function"?di:function(io){var Xa=io&&io[di];return Xa}},[di]),br=Xe(Qt),mn=br.expandIcon,Kn=br.expandedRowKeys,Wn=br.defaultExpandedRowKeys,Ln=br.defaultExpandAllRows,$n=br.expandedRowRender,Un=br.onExpand,ti=br.onExpandedRowsChange,Xn=br.expandRowByClick,wi=br.rowExpandable,Ei=br.expandIconColumnIndex,Zi=br.expandedRowClassName,ua=br.childrenColumnName,Xi=br.indentSize,Gi=mn||rt,wa=ua||"children",na=o.useMemo(function(){return $n?"row":Qt.expandable&&ii===Fe&&Qt.expandable.__PARENT_RENDER_ICON__||ei.some(function(io){return io&&Object(s.a)(io)==="object"&&io[wa]})?"nest":!1},[!!$n,ei]),mo=o.useState(function(){return Wn||(Ln?Pt(ei,An,wa):[])}),Ca=Object(u.a)(mo,2),qi=Ca[0],aa=Ca[1],$i=o.useMemo(function(){return new Set(Kn||qi||[])},[Kn,qi]),Aa=o.useCallback(function(io){var Xa=An(io,ei.indexOf(io)),Ya,ka=$i.has(Xa);ka?($i.delete(Xa),Ya=Object(a.a)($i)):Ya=[].concat(Object(a.a)($i),[Xa]),aa(Ya),Un&&Un(!ka,io),ti&&ti(Ya)},[An,$i,ei,Un,ti]),ya=o.useState(0),Ha=Object(u.a)(ya,2),ta=Ha[0],ra=Ha[1],_a=jt(Object(t.a)(Object(t.a)(Object(t.a)({},Qt),br),{},{expandable:!!$n,expandedKeys:$i,getRowKey:An,onTriggerExpand:Aa,expandIcon:Gi,expandIconColumnIndex:Ei,direction:yr}),ii===Fe?pi:null),Ka=Object(u.a)(_a,2),bo=Ka[0],ga=Ka[1],go=o.useMemo(function(){return{columns:bo,flattenColumns:ga}},[bo,ga]),Sa=o.useRef(),Va=o.useRef(),uo=o.useRef(),No=o.useState(!1),Po=Object(u.a)(No,2),to=Po[0],Uo=Po[1],co=o.useState(!1),fa=Object(u.a)(co,2),ro=fa[0],Wa=fa[1],Ea=Ke(new Map),Jr=Object(u.a)(Ea,2),za=Jr[0],rs=Jr[1],Vo=ye(ga),Go=Vo.map(function(io){return za.get(io)}),Qo=o.useMemo(function(){return Go},[Go.join("_")]),Yo=wt(Qo,ga.length,yr),vo=Jt&&Te(Jt.y),Io=Jt&&Te(Jt.x),zo=Io&&ga.some(function(io){var Xa=io.fixed;return Xa}),Fa=o.useRef(),Ja=Ze(ji,cn),ho=Ja.isSticky,Ao=Ja.offsetHeader,$o=Ja.offsetScroll,ps=Ja.stickyClassName,is,Za,Ct;vo&&(Za={overflowY:"scroll",maxHeight:Jt.y}),Io&&(is={overflowX:"auto"},vo||(Za={overflowY:"hidden"}),Ct={width:Jt.x===!0?"auto":Jt.x,minWidth:"100%"});var Bt=o.useCallback(function(io,Xa){rs(function(Ya){var ka=new Map(Ya);return ka.set(io,Xa),ka})},[]),Wr=Pe(null),Pn=Object(u.a)(Wr,2),ht=Pn[0],ne=Pn[1];function pe(io,Xa){if(!Xa)return;typeof Xa=="function"?Xa(io):Xa.scrollLeft!==io&&(Xa.scrollLeft=io)}var be=function(Xa){var Ya=Xa.currentTarget,ka=Xa.scrollLeft,os=typeof ka=="number"?ka:Ya.scrollLeft,Es=Ya||Ne;if(!ne()||ne()===Es){var qo;ht(Es),pe(os,Va.current),pe(os,uo.current),pe(os,(qo=Fa.current)===null||qo===void 0?void 0:qo.setScrollLeft)}if(Ya){var pa=Ya.scrollWidth,ls=Ya.clientWidth;Uo(os>0),Wa(os<pa-ls)}},Ue=function(){uo.current&&be({currentTarget:uo.current})},pt=function(Xa){var Ya=Xa.width;Ue(),ra(Sa.current?Sa.current.offsetWidth:Ya)};o.useEffect(function(){return Ue},[]),o.useEffect(function(){Io&&Ue()},[Io]),o.useEffect(function(){ii===Fe&&ri&&(ri.body.current=uo.current)});var Xt=hr(["table"],"table"),Or=o.useMemo(function(){return Ot||(zo?Jt.x==="max-content"?"auto":"fixed":vo||ga.some(function(io){var Xa=io.ellipsis;return Xa})?"fixed":"auto")},[vo,zo,ga,Ot]),Qr,dn={colWidths:Qo,columCount:ga.length,stickyOffsets:Yo,onHeaderRow:Zn,fixHeader:vo},jn=o.useMemo(function(){return $e?null:typeof _n=="function"?_n():_n},[$e,_n]),ai=o.createElement(on,{data:ei,measureColumnWidth:vo||Io||ho,expandedKeys:$i,rowExpandable:wi,getRowKey:An,onRow:Dn,emptyNode:jn,childrenColumnName:wa}),Qn=o.createElement(Be,{colWidths:ga.map(function(io){var Xa=io.width;return Xa}),columns:ga}),Di=dr&&o.createElement(Et,null,dr(ei)),Vi=hr(["body"]);if(vo||ho){var Ta;typeof Vi=="function"?(Ta=Vi(ei,{scrollbarSize:fr,ref:uo,onScroll:be}),dn.colWidths=ga.map(function(io,Xa){var Ya=io.width,ka=Xa===bo.length-1?Ya-fr:Ya;return typeof ka=="number"&&!Number.isNaN(ka)?ka:(_(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Ta=o.createElement("div",{style:Object(t.a)(Object(t.a)({},is),Za),onScroll:be,ref:uo,className:n()("".concat(cn,"-body"))},o.createElement(Xt,{style:Object(t.a)(Object(t.a)({},Ct),{},{tableLayout:Or})},Qn,ai,Di),ho&&o.createElement(_i,{ref:Fa,offsetScroll:$o,scrollBodyRef:uo,onScroll:be})),Qr=o.createElement(o.Fragment,null,Zr!==!1&&o.createElement(nt,Object.assign({noData:!ei.length},dn,go,{direction:yr,offsetHeader:Ao,stickyClassName:ps,ref:Va,onScroll:be})),Ta)}else Qr=o.createElement("div",{style:Object(t.a)(Object(t.a)({},is),Za),className:n()("".concat(cn,"-content")),onScroll:be,ref:uo},o.createElement(Xt,{style:Object(t.a)(Object(t.a)({},Ct),{},{tableLayout:Or})},Qn,Zr!==!1&&o.createElement(It,Object.assign({},dn,go)),ai,Di));var Ga=ie(Qt),ao=o.createElement("div",Object.assign({className:n()(cn,vn,(Vr={},Object(l.a)(Vr,"".concat(cn,"-rtl"),yr==="rtl"),Object(l.a)(Vr,"".concat(cn,"-ping-left"),to),Object(l.a)(Vr,"".concat(cn,"-ping-right"),ro),Object(l.a)(Vr,"".concat(cn,"-layout-fixed"),Ot==="fixed"),Object(l.a)(Vr,"".concat(cn,"-fixed-header"),vo),Object(l.a)(Vr,"".concat(cn,"-fixed-column"),zo),Object(l.a)(Vr,"".concat(cn,"-scroll-horizontal"),Io),Object(l.a)(Vr,"".concat(cn,"-has-fix-left"),ga[0]&&ga[0].fixed),Object(l.a)(Vr,"".concat(cn,"-has-fix-right"),ga[ga.length-1]&&ga[ga.length-1].fixed==="right"),Vr)),style:li,id:Nr,ref:Sa},Ga),o.createElement(Ye,{pingLeft:to,pingRight:ro,props:Object(t.a)(Object(t.a)({},Qt),{},{stickyOffsets:Yo,mergedExpandedKeys:$i})},ft&&o.createElement(xt,{className:"".concat(cn,"-title")},ft(ei)),o.createElement("div",{className:"".concat(cn,"-container")},Qr),qt&&o.createElement(xt,{className:"".concat(cn,"-footer")},qt(ei))));Io&&(ao=o.createElement(ve,{onResize:pt},ao));var Do=o.useMemo(function(){return{prefixCls:cn,getComponent:hr,scrollbarSize:fr,direction:yr,fixedInfoList:ga.map(function(io,Xa){return Tt(Xa,Xa,ga,Yo,yr)}),isSticky:ho}},[cn,hr,fr,yr,ga,Yo,yr,ho]),fo=o.useMemo(function(){return Object(t.a)(Object(t.a)({},go),{},{tableLayout:Or,rowClassName:ni,expandedRowClassName:Zi,componentWidth:ta,fixHeader:vo,fixColumn:zo,horizonScroll:Io,expandIcon:Gi,expandableType:na,expandRowByClick:Xn,expandedRowRender:$n,onTriggerExpand:Aa,expandIconColumnIndex:Ei,indentSize:Xi})},[go,Or,ni,Zi,ta,vo,zo,Io,Gi,na,Xn,$n,Aa,Ei,Xi]),as=o.useMemo(function(){return{onColumnResize:Bt}},[Bt]);return o.createElement(Oe.Provider,{value:Do},o.createElement(Qe.Provider,{value:fo},o.createElement(Ut.Provider,{value:as},ao)))}We.Column=Ge,We.ColumnGroup=se,We.Summary=it,We.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var qe=We,yt=qe,ot=d("W9HT"),$t=d("NUBc"),Mr=d("H84U"),Sr=function(Qt,Vr){var cn={};for(var vn in Qt)Object.prototype.hasOwnProperty.call(Qt,vn)&&Vr.indexOf(vn)<0&&(cn[vn]=Qt[vn]);if(Qt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ni=0,vn=Object.getOwnPropertySymbols(Qt);ni<vn.length;ni++)Vr.indexOf(vn[ni])<0&&Object.prototype.propertyIsEnumerable.call(Qt,vn[ni])&&(cn[vn[ni]]=Qt[vn[ni]]);return cn},jr=10;function tr(Qt,Vr){var cn={current:Vr.current,pageSize:Vr.pageSize},vn=Qt&&x()(Qt)==="object"?Qt:{};return Object.keys(vn).forEach(function(ni){var li=Vr[ni];typeof li!="function"&&(cn[ni]=li)}),cn}function gn(){for(var Qt={},Vr=arguments.length,cn=new Array(Vr),vn=0;vn<Vr;vn++)cn[vn]=arguments[vn];return cn.forEach(function(ni){ni&&Object.keys(ni).forEach(function(li){var fi=ni[li];fi!==void 0&&(Qt[li]=fi)})}),Qt}function sr(Qt,Vr,cn){var vn=Vr&&x()(Vr)==="object"?Vr:{},ni=vn.total,li=ni===void 0?0:ni,fi=Sr(vn,["total"]),di=Object(o.useState)(function(){return{current:"defaultCurrent"in fi?fi.defaultCurrent:1,pageSize:"defaultPageSize"in fi?fi.defaultPageSize:jr}}),Jt=g()(di,2),Ot=Jt[0],yr=Jt[1],ft=gn(Ot,fi,{total:li>0?li:Qt});if(!li){var qt=Math.ceil(Qt/ft.pageSize);qt<ft.current&&(ft.current=1)}var dr=function(){var pn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,_n=arguments.length>1?arguments[1]:void 0;yr(c()(c()({},ft),{current:pn,pageSize:_n||ft.pageSize}))},Nr=function(pn,_n){var Dn=ft==null?void 0:ft.pageSize;_n&&_n!==Dn&&(pn=1,Vr&&Vr.onShowSizeChange&&Vr.onShowSizeChange(pn,_n)),Vr&&Vr.onChange&&Vr.onChange(pn,_n),dr(pn,_n),cn(pn,_n||Dn)};return Vr===!1?[{},function(){}]:[c()(c()({},ft),{onChange:Nr}),dr]}function un(Qt,Vr,cn){var vn=o.useRef({});function ni(li){if(!vn.current||vn.current.data!==Qt||vn.current.childrenColumnName!==Vr||vn.current.getRowKey!==cn){var fi=function Jt(Ot){Ot.forEach(function(yr,ft){var qt=cn(yr,ft);di.set(qt,yr),yr&&x()(yr)==="object"&&Vr in yr&&Jt(yr[Vr]||[])})},di=new Map;fi(Qt),vn.current={data:Qt,childrenColumnName:Vr,kvMap:di,getRowKey:cn}}return vn.current.kvMap.get(li)}return[ni]}var an=d("SA+Z"),Pr=d.n(an),In=d("RIqP"),ci=d.n(In),Ui=d("HQEm"),ki=d.n(Ui),Ri=d("c3jg"),Ki=d("qOx5"),Hr=d("wPhX"),Cn=d("6cGi"),kr=d("kaz8"),mr=d("jsC+"),Cr=d("BvKs"),Nt=d("9yH6"),wr=d("uaoM"),Gr="SELECT_ALL",Kr="SELECT_INVERT";function qr(Qt){return Qt&&Qt.fixed}function oi(Qt,Vr){var cn=[];return(Qt||[]).forEach(function(vn){cn.push(vn),vn&&x()(vn)==="object"&&Vr in vn&&(cn=[].concat(ci()(cn),ci()(oi(vn[Vr],Vr))))}),cn}function Gn(Qt,Vr){var cn=Qt||{},vn=cn.preserveSelectedRowKeys,ni=cn.selectedRowKeys,li=cn.getCheckboxProps,fi=cn.onChange,di=cn.onSelect,Jt=cn.onSelectAll,Ot=cn.onSelectInvert,yr=cn.onSelectMultiple,ft=cn.columnWidth,qt=cn.type,dr=cn.selections,Nr=cn.fixed,Zr=cn.renderCell,pn=cn.hideSelectAll,_n=cn.checkStrictly,Dn=_n===void 0?!0:_n,Zn=Vr.prefixCls,ii=Vr.data,pi=Vr.pageData,ri=Vr.getRecordByKey,ji=Vr.getRowKey,ei=Vr.expandType,$e=Vr.childrenColumnName,Yt=Vr.locale,vr=Vr.expandIconColumnIndex,fr=Vr.getPopupContainer,Xr=o.useRef(new Map),Fr=Object(Cn.a)(ni||[],{value:ni}),hr=g()(Fr,2),An=hr[0],br=hr[1],mn=Object(o.useMemo)(function(){return Dn?{keyEntities:null}:Object(Ri.a)(ii,void 0,ji)},[ii,ji,Dn]),Kn=mn.keyEntities,Wn=Object(o.useMemo)(function(){return oi(pi,$e)},[pi,$e]),Ln=Object(o.useMemo)(function(){var aa=new Map;return Wn.forEach(function($i,Aa){var ya=ji($i,Aa),Ha=(li?li($i):null)||{};aa.set(ya,Ha)}),aa},[Wn,ji,li]),$n=Object(o.useCallback)(function(aa){var $i;return!!(($i=Ln.get(ji(aa)))===null||$i===void 0?void 0:$i.disabled)},[Ln,ji]),Un=Object(o.useMemo)(function(){if(Dn)return[An,[]];var aa=Object(Ki.a)(An,!0,Kn,$n),$i=aa.checkedKeys,Aa=aa.halfCheckedKeys;return[$i,Aa]},[An,Dn,Kn,$n]),ti=g()(Un,2),Xn=ti[0],wi=ti[1],Ei=Object(o.useMemo)(function(){var aa=qt==="radio"?Xn.slice(0,1):Xn;return new Set(aa)},[Xn,qt]),Zi=Object(o.useMemo)(function(){return qt==="radio"?new Set:new Set(wi)},[wi,qt]),ua=Object(o.useState)(null),Xi=g()(ua,2),Gi=Xi[0],wa=Xi[1];o.useEffect(function(){Qt||br([])},[!!Qt]);var na=Object(o.useCallback)(function(aa){var $i,Aa;if(vn){var ya=new Map;$i=aa,Aa=aa.map(function(Ha){var ta=ri(Ha);return!ta&&Xr.current.has(Ha)&&(ta=Xr.current.get(Ha)),ya.set(Ha,ta),ta}),Xr.current=ya}else $i=[],Aa=[],aa.forEach(function(Ha){var ta=ri(Ha);ta!==void 0&&($i.push(Ha),Aa.push(ta))});br($i),fi&&fi($i,Aa)},[br,ri,fi,vn]),mo=Object(o.useCallback)(function(aa,$i,Aa,ya){if(di){var Ha=Aa.map(function(ta){return ri(ta)});di(ri(aa),$i,Ha,ya)}na(Aa)},[di,ri,na]),Ca=Object(o.useMemo)(function(){if(!dr||pn)return null;var aa=dr===!0?[Gr,Kr]:dr;return aa.map(function($i){return $i===Gr?{key:"all",text:Yt.selectionAll,onSelect:function(){na(ii.map(function(ya,Ha){return ji(ya,Ha)}))}}:$i===Kr?{key:"invert",text:Yt.selectInvert,onSelect:function(){var ya=new Set(Ei);pi.forEach(function(ta,ra){var _a=ji(ta,ra);ya.has(_a)?ya.delete(_a):ya.add(_a)});var Ha=Array.from(ya);na(Ha),Ot&&(Object(wr.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),Ot(Ha))}}:$i})},[dr,Ei,pi,ji,Ot,na]),qi=Object(o.useCallback)(function(aa){if(!Qt)return aa;var $i=new Set(Ei),Aa=Wn.map(ji).filter(function(to){return!Ln.get(to).disabled}),ya=Aa.every(function(to){return $i.has(to)}),Ha=Aa.some(function(to){return $i.has(to)}),ta=function(){var Uo=[];ya?Aa.forEach(function(fa){$i.delete(fa),Uo.push(fa)}):Aa.forEach(function(fa){$i.has(fa)||($i.add(fa),Uo.push(fa))});var co=Array.from($i);na(co),Jt&&Jt(!ya,co.map(function(fa){return ri(fa)}),Uo.map(function(fa){return ri(fa)}))},ra;if(qt!=="radio"){var _a;if(Ca){var Ka=o.createElement(Cr.a,{getPopupContainer:fr},Ca.map(function(to,Uo){var co=to.key,fa=to.text,ro=to.onSelect;return o.createElement(Cr.a.Item,{key:co||Uo,onClick:function(){ro&&ro(Aa)}},fa)}));_a=o.createElement("div",{className:"".concat(Zn,"-selection-extra")},o.createElement(mr.a,{overlay:Ka,getPopupContainer:fr},o.createElement("span",null,o.createElement(ki.a,null))))}var bo=Wn.every(function(to,Uo){var co=ji(to,Uo),fa=Ln.get(co)||{};return fa.disabled});ra=!pn&&o.createElement("div",{className:"".concat(Zn,"-selection")},o.createElement(kr.a,{checked:!bo&&!!Wn.length&&ya,indeterminate:!ya&&Ha,onChange:ta,disabled:Wn.length===0||bo}),_a)}var ga;qt==="radio"?ga=function(Uo,co,fa){var ro=ji(co,fa),Wa=$i.has(ro);return{node:o.createElement(Nt.a,c()({},Ln.get(ro),{checked:Wa,onClick:function(Jr){return Jr.stopPropagation()},onChange:function(Jr){$i.has(ro)||mo(ro,!0,[ro],Jr.nativeEvent)}})),checked:Wa}}:ga=function(Uo,co,fa){var ro,Wa=ji(co,fa),Ea=$i.has(Wa),Jr=Zi.has(Wa),za=Ln.get(Wa),rs;return ei==="nest"?(rs=Jr,Object(wr.a)(!(typeof(za==null?void 0:za.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):rs=(ro=za==null?void 0:za.indeterminate)!==null&&ro!==void 0?ro:Jr,{node:o.createElement(kr.a,c()({},za,{indeterminate:rs,checked:Ea,onClick:function(Go){return Go.stopPropagation()},onChange:function(Go){var Qo=Go.nativeEvent,Yo=Qo.shiftKey,vo=-1,Io=-1;if(Yo&&Dn){var zo=new Set([Gi,Wa]);Aa.some(function(Wr,Pn){if(zo.has(Wr))if(vo===-1)vo=Pn;else return Io=Pn,!0;return!1})}if(Io!==-1&&vo!==Io&&Dn){var Fa=Aa.slice(vo,Io+1),Ja=[];Ea?Fa.forEach(function(Wr){$i.has(Wr)&&(Ja.push(Wr),$i.delete(Wr))}):Fa.forEach(function(Wr){$i.has(Wr)||(Ja.push(Wr),$i.add(Wr))});var ho=Array.from($i);na(ho),yr&&yr(!Ea,ho.map(function(Wr){return ri(Wr)}),Ja.map(function(Wr){return ri(Wr)}))}else{var Ao=Xn;if(Dn){var $o=Ea?Object(Hr.b)(Ao,Wa):Object(Hr.a)(Ao,Wa);mo(Wa,!Ea,$o,Qo)}else{var ps=Object(Ki.a)([].concat(ci()(Ao),[Wa]),!0,Kn,$n),is=ps.checkedKeys,Za=ps.halfCheckedKeys,Ct=is;if(Ea){var Bt=new Set(is);Bt.delete(Wa),Ct=Object(Ki.a)(Array.from(Bt),{checked:!1,halfCheckedKeys:Za},Kn,$n).checkedKeys}mo(Wa,!Ea,Ct,Qo)}}wa(Wa)}})),checked:Ea}};var go=function(Uo,co,fa){var ro=ga(Uo,co,fa),Wa=ro.node,Ea=ro.checked;return Zr?Zr(Ea,co,fa,Wa):Wa},Sa=A()({width:ft,className:"".concat(Zn,"-selection-column"),title:Qt.columnTitle||ra,render:go},_t,{className:"".concat(Zn,"-selection-col")});if(ei==="row"&&aa.length&&!vr){var Va=Pr()(aa),uo=Va[0],No=Va.slice(1),Po=Nr||qr(No[0]);return Po&&(uo.fixed=Po),[uo,c()(c()({},Sa),{fixed:Po})].concat(ci()(No))}return[c()(c()({},Sa),{fixed:Nr||qr(aa[0])})].concat(ci()(aa))},[ji,Wn,Qt,Xn,Ei,Zi,ft,Ca,ei,Gi,Ln,yr,mo,$n]);return[qi,Ei]}var Ti=d("6SEX"),hn=d.n(Ti),_r=d("i8CU"),En=d.n(_r),Fn=d("3S7+");function Vn(Qt,Vr){return"key"in Qt&&Qt.key!==void 0&&Qt.key!==null?Qt.key:Qt.dataIndex?Array.isArray(Qt.dataIndex)?Qt.dataIndex.join("."):Qt.dataIndex:Vr}function qn(Qt,Vr){return Vr?"".concat(Vr,"-").concat(Qt):"".concat(Qt)}function Oi(Qt,Vr){return typeof Qt=="function"?Qt(Vr):Qt}var Ni="ascend",Mi="descend";function Ji(Qt){return x()(Qt.sorter)==="object"&&typeof Qt.sorter.multiple=="number"?Qt.sorter.multiple:!1}function ma(Qt){return typeof Qt=="function"?Qt:Qt&&x()(Qt)==="object"&&Qt.compare?Qt.compare:!1}function la(Qt,Vr){return Vr?Qt[Qt.indexOf(Vr)+1]:Qt[0]}function qa(Qt,Vr,cn){var vn=[];function ni(li,fi){vn.push({column:li,key:Vn(li,fi),multiplePriority:Ji(li),sortOrder:li.sortOrder})}return(Qt||[]).forEach(function(li,fi){var di=qn(fi,cn);li.children?("sortOrder"in li&&ni(li,di),vn=[].concat(ci()(vn),ci()(qa(li.children,Vr,di)))):li.sorter&&("sortOrder"in li?ni(li,di):Vr&&li.defaultSortOrder&&vn.push({column:li,key:Vn(li,di),multiplePriority:Ji(li),sortOrder:li.defaultSortOrder}))}),vn}function bi(Qt,Vr,cn,vn,ni,li,fi,di){return(Vr||[]).map(function(Jt,Ot){var yr=qn(Ot,di),ft=Jt;if(ft.sorter){var qt=ft.sortDirections||ni,dr=ft.showSorterTooltip===void 0?fi:ft.showSorterTooltip,Nr=Vn(ft,yr),Zr=cn.find(function($e){var Yt=$e.key;return Yt===Nr}),pn=Zr?Zr.sortOrder:null,_n=la(qt,pn),Dn=qt.includes(Ni)&&o.createElement(En.a,{className:n()("".concat(Qt,"-column-sorter-up"),{active:pn===Ni})}),Zn=qt.includes(Mi)&&o.createElement(hn.a,{className:n()("".concat(Qt,"-column-sorter-down"),{active:pn===Mi})}),ii=li||{},pi=ii.cancelSort,ri=ii.triggerAsc,ji=ii.triggerDesc,ei=pi;_n===Mi?ei=ji:_n===Ni&&(ei=ri),ft=c()(c()({},ft),{className:n()(ft.className,A()({},"".concat(Qt,"-column-sort"),pn)),title:function(Yt){var vr=o.createElement("div",{className:"".concat(Qt,"-column-sorters")},o.createElement("span",null,Oi(Jt.title,Yt)),o.createElement("span",{className:n()("".concat(Qt,"-column-sorter"),A()({},"".concat(Qt,"-column-sorter-full"),Dn&&Zn))},o.createElement("span",{className:"".concat(Qt,"-column-sorter-inner")},Dn,Zn)));return dr?o.createElement(Fn.a,{title:ei},o.createElement("div",{className:"".concat(Qt,"-column-sorters-with-tooltip")},vr)):vr},onHeaderCell:function(Yt){var vr=Jt.onHeaderCell&&Jt.onHeaderCell(Yt)||{},fr=vr.onClick;return vr.onClick=function(Xr){vn({column:Jt,key:Nr,sortOrder:_n,multiplePriority:Ji(Jt)}),fr&&fr(Xr)},vr.className=n()(vr.className,"".concat(Qt,"-column-has-sorters")),vr}})}return"children"in ft&&(ft=c()(c()({},ft),{children:bi(Qt,ft.children,cn,vn,ni,li,fi,yr)})),ft})}function xn(Qt){var Vr=Qt.column,cn=Qt.sortOrder;return{column:Vr,order:cn,field:Vr.dataIndex,columnKey:Vr.key}}function zi(Qt){var Vr=Qt.filter(function(cn){var vn=cn.sortOrder;return vn}).map(xn);return Vr.length===0&&Qt.length?c()(c()({},xn(Qt[Qt.length-1])),{column:void 0}):Vr.length<=1?Vr[0]||{}:Vr}function oa(Qt,Vr,cn){var vn=Vr.slice().sort(function(fi,di){return di.multiplePriority-fi.multiplePriority}),ni=Qt.slice(),li=vn.filter(function(fi){var di=fi.column.sorter,Jt=fi.sortOrder;return ma(di)&&Jt});return li.length?ni.sort(function(fi,di){for(var Jt=0;Jt<li.length;Jt+=1){var Ot=li[Jt],yr=Ot.column.sorter,ft=Ot.sortOrder,qt=ma(yr);if(qt&&ft){var dr=qt(fi,di,ft);if(dr!==0)return ft===Ni?dr:-dr}}return 0}).map(function(fi){var di=fi[cn];return di?c()(c()({},fi),A()({},cn,oa(di,Vr,cn))):fi}):ni}function Yi(Qt){var Vr=Qt.prefixCls,cn=Qt.mergedColumns,vn=Qt.onSorterChange,ni=Qt.sortDirections,li=Qt.tableLocale,fi=Qt.showSorterTooltip,di=o.useState(qa(cn,!0)),Jt=g()(di,2),Ot=Jt[0],yr=Jt[1],ft=o.useMemo(function(){var pn=!0,_n=qa(cn,!1);if(!_n.length)return Ot;var Dn=[];function Zn(pi){pn?Dn.push(pi):Dn.push(c()(c()({},pi),{sortOrder:null}))}var ii=null;return _n.forEach(function(pi){ii===null?(Zn(pi),pi.sortOrder&&(pi.multiplePriority===!1?pn=!1:ii=!0)):(ii&&pi.multiplePriority!==!1||(pn=!1),Zn(pi))}),Dn},[cn,Ot]),qt=o.useMemo(function(){var pn=ft.map(function(_n){var Dn=_n.column,Zn=_n.sortOrder;return{column:Dn,order:Zn}});return{sortColumns:pn,sortColumn:pn[0]&&pn[0].column,sortOrder:pn[0]&&pn[0].order}},[ft]);function dr(pn){var _n;pn.multiplePriority===!1||!ft.length||ft[0].multiplePriority===!1?_n=[pn]:_n=[].concat(ci()(ft.filter(function(Dn){var Zn=Dn.key;return Zn!==pn.key})),[pn]),yr(_n),vn(zi(_n),_n)}var Nr=function(_n){return bi(Vr,_n,ft,dr,ni,li,fi)},Zr=function(){return zi(ft)};return[Nr,ft,qt,Zr]}var ca=d("Y+p1"),Hi=d.n(ca),Ia=d("5Uyt"),Da=d.n(Ia),Qa=d("2/Rp"),Wo=d("ECub"),po=function(Vr){return o.createElement("div",{className:Vr.className,onClick:function(vn){return vn.stopPropagation()}},Vr.children)},Mo=po,Fo=d("sPtV"),yo=Cr.a.SubMenu,Oo=Cr.a.Item;function sa(Qt){return Qt.some(function(Vr){var cn=Vr.children;return cn})}function hs(Qt){var Vr=Qt.filters,cn=Qt.prefixCls,vn=Qt.filteredKeys,ni=Qt.filterMultiple,li=Qt.locale;return Vr.length===0?o.createElement(o.Fragment,null,o.createElement(Wo.a,{image:Wo.a.PRESENTED_IMAGE_SIMPLE,description:li.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):Vr.map(function(fi,di){var Jt=String(fi.value);if(fi.children)return o.createElement(yo,{key:Jt||di,title:fi.text,popupClassName:"".concat(cn,"-dropdown-submenu")},hs({filters:fi.children,prefixCls:cn,filteredKeys:vn,filterMultiple:ni,locale:li}));var Ot=ni?kr.a:Nt.a;return o.createElement(Oo,{key:fi.value!==void 0?Jt:di},o.createElement(Ot,{checked:vn.includes(Jt)}),o.createElement("span",null,fi.text))})}function Jo(Qt){var Vr,cn=Qt.prefixCls,vn=Qt.column,ni=Qt.dropdownPrefixCls,li=Qt.columnKey,fi=Qt.filterMultiple,di=Qt.filterState,Jt=Qt.triggerFilter,Ot=Qt.locale,yr=Qt.children,ft=Qt.getPopupContainer,qt=vn.filterDropdownVisible,dr=vn.onFilterDropdownVisibleChange,Nr=o.useState(!1),Zr=g()(Nr,2),pn=Zr[0],_n=Zr[1],Dn=!!(di&&(((Vr=di.filteredKeys)===null||Vr===void 0?void 0:Vr.length)||di.forceFiltered)),Zn=function(Xi){_n(Xi),dr&&dr(Xi)},ii=typeof qt=="boolean"?qt:pn,pi=di&&di.filteredKeys,ri=Object(Fo.a)(pi||[]),ji=g()(ri,2),ei=ji[0],$e=ji[1],Yt=function(Xi){var Gi=Xi.selectedKeys;$e(Gi)};o.useEffect(function(){Yt({selectedKeys:pi||[]})},[pi]);var vr=o.useState([]),fr=g()(vr,2),Xr=fr[0],Fr=fr[1],hr=o.useRef(),An=function(Xi){hr.current=window.setTimeout(function(){Fr(Xi)})},br=function(){window.clearTimeout(hr.current)};o.useEffect(function(){return function(){window.clearTimeout(hr.current)}},[]);var mn=function(Xi){Zn(!1);var Gi=Xi&&Xi.length?Xi:null;if(Gi===null&&(!di||!di.filteredKeys))return null;if(Hi()(Gi,di==null?void 0:di.filteredKeys))return null;Jt({column:vn,key:li,filteredKeys:Gi})},Kn=function(){mn(ei())},Wn=function(){$e([]),mn([])},Ln=function(Xi){Xi&&pi!==void 0&&$e(pi||[]),Zn(Xi),!Xi&&!vn.filterDropdown&&Kn()},$n=n()(A()({},"".concat(ni,"-menu-without-submenu"),!sa(vn.filters||[]))),Un;if(typeof vn.filterDropdown=="function")Un=vn.filterDropdown({prefixCls:"".concat(ni,"-custom"),setSelectedKeys:function(Xi){return Yt({selectedKeys:Xi})},selectedKeys:ei(),confirm:Kn,clearFilters:Wn,filters:vn.filters,visible:ii});else if(vn.filterDropdown)Un=vn.filterDropdown;else{var ti=ei()||[];Un=o.createElement(o.Fragment,null,o.createElement(Cr.a,{multiple:fi,prefixCls:"".concat(ni,"-menu"),className:$n,onClick:br,onSelect:Yt,onDeselect:Yt,selectedKeys:ti,getPopupContainer:ft,openKeys:Xr,onOpenChange:An},hs({filters:vn.filters||[],prefixCls:cn,filteredKeys:ei(),filterMultiple:fi,locale:Ot})),o.createElement("div",{className:"".concat(cn,"-dropdown-btns")},o.createElement(Qa.a,{type:"link",size:"small",disabled:ti.length===0,onClick:Wn},Ot.filterReset),o.createElement(Qa.a,{type:"primary",size:"small",onClick:Kn},Ot.filterConfirm)))}var Xn=o.createElement(Mo,{className:"".concat(cn,"-dropdown")},Un),wi;typeof vn.filterIcon=="function"?wi=vn.filterIcon(Dn):vn.filterIcon?wi=vn.filterIcon:wi=o.createElement(Da.a,null);var Ei=o.useContext(Mr.b),Zi=Ei.direction;return o.createElement("div",{className:n()("".concat(cn,"-column"))},o.createElement("span",{className:"".concat(cn,"-column-title")},yr),o.createElement("span",{className:n()("".concat(cn,"-trigger-container"),A()({},"".concat(cn,"-trigger-container-open"),ii)),onClick:function(Xi){Xi.stopPropagation()}},o.createElement(mr.a,{overlay:Xn,trigger:["click"],visible:ii,onVisibleChange:Ln,getPopupContainer:ft,placement:Zi==="rtl"?"bottomLeft":"bottomRight"},o.createElement("span",{role:"button",tabIndex:-1,className:n()("".concat(cn,"-trigger"),{active:Dn})},wi))))}var wo=Jo;function _o(Qt,Vr,cn){var vn=[];return(Qt||[]).forEach(function(ni,li){var fi=qn(li,cn);"children"in ni?vn=[].concat(ci()(vn),ci()(_o(ni.children,Vr,fi))):(ni.filters||"filterDropdown"in ni||"onFilter"in ni)&&("filteredValue"in ni?vn.push({column:ni,key:Vn(ni,fi),filteredKeys:ni.filteredValue,forceFiltered:ni.filtered}):vn.push({column:ni,key:Vn(ni,fi),filteredKeys:Vr&&ni.defaultFilteredValue?ni.defaultFilteredValue:void 0,forceFiltered:ni.filtered}))}),vn}function Bo(Qt,Vr,cn,vn,ni,li,fi,di){return cn.map(function(Jt,Ot){var yr=qn(Ot,di),ft=Jt.filterMultiple,qt=ft===void 0?!0:ft;if(Jt.filters||"filterDropdown"in Jt){var dr=Vn(Jt,yr),Nr=vn.find(function(Zr){var pn=Zr.key;return dr===pn});return c()(c()({},Jt),{title:function(pn){return o.createElement(wo,{prefixCls:"".concat(Qt,"-filter"),dropdownPrefixCls:Vr,column:Jt,columnKey:dr,filterState:Nr,filterMultiple:qt,triggerFilter:ni,locale:fi,getPopupContainer:li},Oi(Jt.title,pn))}})}return"children"in Jt?c()(c()({},Jt),{children:Bo(Qt,Vr,Jt.children,vn,ni,li,fi,yr)}):Jt})}function Ds(Qt){var Vr={};return Qt.forEach(function(cn){var vn=cn.key,ni=cn.filteredKeys;Vr[vn]=ni||null}),Vr}function Dr(Qt){var Vr=[];return(Qt||[]).forEach(function(cn){var vn=cn.value,ni=cn.children;Vr.push(vn),ni&&(Vr=[].concat(ci()(Vr),ci()(Dr(ni))))}),Vr}function rn(Qt,Vr){return Vr.reduce(function(cn,vn){var ni=vn.column,li=ni.onFilter,fi=ni.filters,di=vn.filteredKeys;return li&&di&&di.length?cn.filter(function(Jt){return di.some(function(Ot){var yr=Dr(fi),ft=yr.findIndex(function(dr){return String(dr)===String(Ot)}),qt=ft!==-1?yr[ft]:Ot;return li(qt,Jt)})}):cn},Qt)}function Tn(Qt){var Vr=Qt.prefixCls,cn=Qt.dropdownPrefixCls,vn=Qt.mergedColumns,ni=Qt.onFilterChange,li=Qt.getPopupContainer,fi=Qt.locale,di=o.useState(_o(vn,!0)),Jt=g()(di,2),Ot=Jt[0],yr=Jt[1],ft=o.useMemo(function(){var Zr=_o(vn,!1);return Zr.every(function(pn){var _n=pn.filteredKeys;return _n===void 0})?Ot:Zr},[vn,Ot]),qt=o.useCallback(function(){return Ds(ft)},[ft]),dr=function(pn){var _n=ft.filter(function(Dn){var Zn=Dn.key;return Zn!==pn.key});_n.push(pn),yr(_n),ni(Ds(_n),_n)},Nr=function(pn){return Bo(Vr,cn,pn,ft,dr,li,fi)};return[Nr,ft,qt]}var en=Tn;function ur(Qt,Vr){return Qt.map(function(cn){var vn=c()({},cn);return vn.title=Oi(cn.title,Vr),"children"in vn&&(vn.children=ur(vn.children,Vr)),vn})}function sn(Qt){var Vr=o.useCallback(function(cn){return ur(cn,Qt)},[Qt]);return[Vr]}function Bn(Qt){return function(cn){var vn,ni=cn.prefixCls,li=cn.onExpand,fi=cn.record,di=cn.expanded,Jt=cn.expandable,Ot="".concat(ni,"-row-expand-icon");return o.createElement("button",{type:"button",onClick:function(ft){li(fi,ft),ft.stopPropagation()},className:n()(Ot,(vn={},A()(vn,"".concat(Ot,"-spaced"),!Jt),A()(vn,"".concat(Ot,"-expanded"),Jt&&di),A()(vn,"".concat(Ot,"-collapsed"),Jt&&!di),vn)),"aria-label":di?Qt.collapse:Qt.expand})}}var Hn=Bn,Li=d("zAh6"),Ci=d("ZvpZ"),Jn=Ci.a,mi=d("3Nzz");function yi(Qt){return null}var da=yi;function ha(Qt){return null}var Pa=ha,Ra=d("5OYt"),so=[];function La(Qt){var Vr,cn=Qt.prefixCls,vn=Qt.className,ni=Qt.style,li=Qt.size,fi=Qt.bordered,di=Qt.dropdownPrefixCls,Jt=Qt.dataSource,Ot=Qt.pagination,yr=Qt.rowSelection,ft=Qt.rowKey,qt=Qt.rowClassName,dr=Qt.columns,Nr=Qt.children,Zr=Qt.childrenColumnName,pn=Qt.onChange,_n=Qt.getPopupContainer,Dn=Qt.loading,Zn=Qt.expandIcon,ii=Qt.expandable,pi=Qt.expandedRowRender,ri=Qt.expandIconColumnIndex,ji=Qt.indentSize,ei=Qt.scroll,$e=Qt.sortDirections,Yt=Qt.locale,vr=Qt.showSorterTooltip,fr=vr===void 0?!0:vr;Object(wr.a)(!(typeof ft=="function"&&ft.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var Xr=Object(Ra.a)(),Fr=o.useMemo(function(){var Bt=new Set(Object.keys(Xr).filter(function(Wr){return Xr[Wr]}));return(dr||Sn(Nr)).filter(function(Wr){return!Wr.responsive||Wr.responsive.some(function(Pn){return Bt.has(Pn)})})},[Nr,dr,Xr]),hr=Object(e.default)(Qt,["className","style","columns"]),An=o.useContext(mi.b),br=o.useContext(Mr.b),mn=br.locale,Kn=mn===void 0?Jn:mn,Wn=br.renderEmpty,Ln=br.direction,$n=li||An,Un=c()(c()({},Kn.Table),Yt),ti=Jt||so,Xn=o.useContext(Mr.b),wi=Xn.getPrefixCls,Ei=wi("table",cn),Zi=wi("dropdown",di),ua=c()({childrenColumnName:Zr,expandIconColumnIndex:ri},ii),Xi=ua.childrenColumnName,Gi=Xi===void 0?"children":Xi,wa=o.useMemo(function(){return ti.some(function(Bt){var Wr;return(Wr=Bt)===null||Wr===void 0?void 0:Wr[Gi]})?"nest":pi||ii&&ii.expandedRowRender?"row":null},[ti]),na={body:o.useRef()},mo=o.useMemo(function(){return typeof ft=="function"?ft:function(Bt){var Wr;return(Wr=Bt)===null||Wr===void 0?void 0:Wr[ft]}},[ft]),Ca=un(ti,Gi,mo),qi=g()(Ca,1),aa=qi[0],$i={},Aa=function(Wr,Pn){var ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ne=c()(c()({},$i),Wr);ht&&($i.resetPagination(),ne.pagination.current&&(ne.pagination.current=1),Ot&&Ot.onChange&&Ot.onChange(1,ne.pagination.pageSize)),ei&&ei.scrollToFirstRowOnChange!==!1&&na.body.current&&Object(Li.a)(0,{getContainer:function(){return na.body.current}}),pn&&pn(ne.pagination,ne.filters,ne.sorter,{currentDataSource:rn(oa(ti,ne.sorterStates,Gi),ne.filterStates),action:Pn})},ya=function(Wr,Pn){Aa({sorter:Wr,sorterStates:Pn},"sort",!1)},Ha=Yi({prefixCls:Ei,mergedColumns:Fr,onSorterChange:ya,sortDirections:$e||["ascend","descend"],tableLocale:Un,showSorterTooltip:fr}),ta=g()(Ha,4),ra=ta[0],_a=ta[1],Ka=ta[2],bo=ta[3],ga=o.useMemo(function(){return oa(ti,_a,Gi)},[ti,_a]);$i.sorter=bo(),$i.sorterStates=_a;var go=function(Wr,Pn){Aa({filters:Wr,filterStates:Pn},"filter",!0)},Sa=en({prefixCls:Ei,locale:Un,dropdownPrefixCls:Zi,mergedColumns:Fr,onFilterChange:go,getPopupContainer:_n}),Va=g()(Sa,3),uo=Va[0],No=Va[1],Po=Va[2],to=rn(ga,No);$i.filters=Po(),$i.filterStates=No;var Uo=o.useMemo(function(){return c()({},Ka)},[Ka]),co=sn(Uo),fa=g()(co,1),ro=fa[0],Wa=function(Wr,Pn){Aa({pagination:c()(c()({},$i.pagination),{current:Wr,pageSize:Pn})},"paginate")},Ea=sr(to.length,Ot,Wa),Jr=g()(Ea,2),za=Jr[0],rs=Jr[1];$i.pagination=Ot===!1?{}:tr(Ot,za),$i.resetPagination=rs;var Vo=o.useMemo(function(){if(Ot===!1||!za.pageSize)return to;var Bt=za.current,Wr=Bt===void 0?1:Bt,Pn=za.total,ht=za.pageSize,ne=ht===void 0?jr:ht;return to.length<Pn?to.length>ne?(Object(wr.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."),to.slice((Wr-1)*ne,Wr*ne)):to:to.slice((Wr-1)*ne,Wr*ne)},[!!Ot,to,za&&za.current,za&&za.pageSize,za&&za.total]),Go=Gn(yr,{prefixCls:Ei,data:to,pageData:Vo,getRowKey:mo,getRecordByKey:aa,expandType:wa,childrenColumnName:Gi,locale:Un,expandIconColumnIndex:ua.expandIconColumnIndex,getPopupContainer:_n}),Qo=g()(Go,2),Yo=Qo[0],vo=Qo[1],Io=function(Wr,Pn,ht){var ne;return typeof qt=="function"?ne=n()(qt(Wr,Pn,ht)):ne=n()(qt),n()(A()({},"".concat(Ei,"-row-selected"),vo.has(mo(Wr,Pn))),ne)};ua.__PARENT_RENDER_ICON__=ua.expandIcon,ua.expandIcon=ua.expandIcon||Zn||Hn(Un),wa==="nest"&&ua.expandIconColumnIndex===void 0?ua.expandIconColumnIndex=yr?1:0:ua.expandIconColumnIndex>0&&yr&&(ua.expandIconColumnIndex-=1),typeof ua.indentSize!="number"&&(ua.indentSize=typeof ji=="number"?ji:15);var zo=o.useCallback(function(Bt){return ro(Yo(uo(ra(Bt))))},[ra,uo,Yo]),Fa,Ja;if(Ot!==!1){var ho;za.size?ho=za.size:ho=$n==="small"||$n==="middle"?"small":void 0;var Ao=function(Wr){return o.createElement($t.a,c()({className:"".concat(Ei,"-pagination ").concat(Ei,"-pagination-").concat(Wr)},za,{size:ho}))},$o=Ln==="rtl"?"left":"right";if(za.position!==null&&Array.isArray(za.position)){var ps=za.position.find(function(Bt){return Bt.indexOf("top")!==-1}),is=za.position.find(function(Bt){return Bt.indexOf("bottom")!==-1});!ps&&!is?Ja=Ao($o):(ps&&(Fa=Ao(ps.toLowerCase().replace("top",""))),is&&(Ja=Ao(is.toLowerCase().replace("bottom",""))))}else Ja=Ao($o)}var Za;typeof Dn=="boolean"?Za={spinning:Dn}:x()(Dn)==="object"&&(Za=c()({spinning:!0},Dn));var Ct=n()("".concat(Ei,"-wrapper"),vn,A()({},"".concat(Ei,"-wrapper-rtl"),Ln==="rtl"));return o.createElement("div",{className:Ct,style:ni},o.createElement(ot.a,c()({spinning:!1},Za),Fa,o.createElement(yt,c()({},hr,{columns:Fr,direction:Ln,expandable:ua,prefixCls:Ei,className:n()((Vr={},A()(Vr,"".concat(Ei,"-middle"),$n==="middle"),A()(Vr,"".concat(Ei,"-small"),$n==="small"),A()(Vr,"".concat(Ei,"-bordered"),fi),A()(Vr,"".concat(Ei,"-empty"),ti.length===0),Vr)),data:Vo,rowKey:mo,rowClassName:Io,emptyText:Yt&&Yt.emptyText||Wn("Table"),internalHooks:Fe,internalRefs:na,transformColumns:zo})),to&&to.length>0&&Ja))}La.defaultProps={rowKey:"key"},La.SELECTION_ALL=Gr,La.SELECTION_INVERT=Kr,La.Column=da,La.ColumnGroup=Pa,La.Summary=it;var lo=La,So=k.a=lo},wDdD:function(H,k,d){var O=d("ProS"),x=d("bYtY");d("98bh"),d("GrNh");var C=d("d4KN"),A=d("mOdp"),b=d("KS52"),g=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(A("pie")),O.registerLayout(x.curry(b,"pie")),O.registerProcessor(g("pie"))},wOnQ:function(H,k,d){/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/(function(O,x){H.exports=x()})(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(he,xe){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,tt){De.__proto__=tt}||function(De,tt){for(var rr in tt)Object.prototype.hasOwnProperty.call(tt,rr)&&(De[rr]=tt[rr])},O(he,xe)};function x(lr,he){if(typeof he!="function"&&he!==null)throw new TypeError("Class extends value "+String(he)+" is not a constructor or null");O(lr,he);function xe(){this.constructor=lr}lr.prototype=he===null?Object.create(he):(xe.prototype=he.prototype,new xe)}var C=function(){return C=Object.assign||function(xe){for(var De,tt=1,rr=arguments.length;tt<rr;tt++){De=arguments[tt];for(var Ur in De)Object.prototype.hasOwnProperty.call(De,Ur)&&(xe[Ur]=De[Ur])}return xe},C.apply(this,arguments)};function A(lr,he,xe,De){function tt(rr){return rr instanceof xe?rr:new xe(function(Ur){Ur(rr)})}return new(xe||(xe=Promise))(function(rr,Ur){function ln(Pi){try{kn(De.next(Pi))}catch(Si){Ur(Si)}}function bn(Pi){try{kn(De.throw(Pi))}catch(Si){Ur(Si)}}function kn(Pi){Pi.done?rr(Pi.value):tt(Pi.value).then(ln,bn)}kn((De=De.apply(lr,he||[])).next())})}function b(lr,he){var xe={label:0,sent:function(){if(rr[0]&1)throw rr[1];return rr[1]},trys:[],ops:[]},De,tt,rr,Ur;return Ur={next:ln(0),throw:ln(1),return:ln(2)},typeof Symbol=="function"&&(Ur[Symbol.iterator]=function(){return this}),Ur;function ln(kn){return function(Pi){return bn([kn,Pi])}}function bn(kn){if(De)throw new TypeError("Generator is already executing.");for(;xe;)try{if(De=1,tt&&(rr=kn[0]&2?tt.return:kn[0]?tt.throw||((rr=tt.return)&&rr.call(tt),0):tt.next)&&!(rr=rr.call(tt,kn[1])).done)return rr;(tt=0,rr)&&(kn=[kn[0]&2,rr.value]);switch(kn[0]){case 0:case 1:rr=kn;break;case 4:return xe.label++,{value:kn[1],done:!1};case 5:xe.label++,tt=kn[1],kn=[0];continue;case 7:kn=xe.ops.pop(),xe.trys.pop();continue;default:if(!(rr=xe.trys,rr=rr.length>0&&rr[rr.length-1])&&(kn[0]===6||kn[0]===2)){xe=0;continue}if(kn[0]===3&&(!rr||kn[1]>rr[0]&&kn[1]<rr[3])){xe.label=kn[1];break}if(kn[0]===6&&xe.label<rr[1]){xe.label=rr[1],rr=kn;break}if(rr&&xe.label<rr[2]){xe.label=rr[2],xe.ops.push(kn);break}rr[2]&&xe.ops.pop(),xe.trys.pop();continue}kn=he.call(lr,xe)}catch(Pi){kn=[6,Pi],tt=0}finally{De=rr=0}if(kn[0]&5)throw kn[1];return{value:kn[0]?kn[1]:void 0,done:!0}}}function g(lr,he,xe){if(xe||arguments.length===2)for(var De=0,tt=he.length,rr;De<tt;De++)(rr||!(De in he))&&(rr||(rr=Array.prototype.slice.call(he,0,De)),rr[De]=he[De]);return lr.concat(rr||he)}for(var f=function(){function lr(he,xe,De,tt){this.left=he,this.top=xe,this.width=De,this.height=tt}return lr.prototype.add=function(he,xe,De,tt){return new lr(this.left+he,this.top+xe,this.width+De,this.height+tt)},lr.fromClientRect=function(he,xe){return new lr(xe.left+he.windowBounds.left,xe.top+he.windowBounds.top,xe.width,xe.height)},lr.fromDOMRectList=function(he,xe){var De=Array.from(xe).find(function(tt){return tt.width!==0});return De?new lr(De.left+he.windowBounds.left,De.top+he.windowBounds.top,De.width,De.height):lr.EMPTY},lr.EMPTY=new lr(0,0,0,0),lr}(),c=function(he,xe){return f.fromClientRect(he,xe.getBoundingClientRect())},o=function(he){var xe=he.body,De=he.documentElement;if(!xe||!De)throw new Error("Unable to get document size");var tt=Math.max(Math.max(xe.scrollWidth,De.scrollWidth),Math.max(xe.offsetWidth,De.offsetWidth),Math.max(xe.clientWidth,De.clientWidth)),rr=Math.max(Math.max(xe.scrollHeight,De.scrollHeight),Math.max(xe.offsetHeight,De.offsetHeight),Math.max(xe.clientHeight,De.clientHeight));return new f(0,0,tt,rr)},r=function(he){for(var xe=[],De=0,tt=he.length;De<tt;){var rr=he.charCodeAt(De++);if(rr>=55296&&rr<=56319&&De<tt){var Ur=he.charCodeAt(De++);(Ur&64512)===56320?xe.push(((rr&1023)<<10)+(Ur&1023)+65536):(xe.push(rr),De--)}else xe.push(rr)}return xe},i=function(){for(var he=[],xe=0;xe<arguments.length;xe++)he[xe]=arguments[xe];if(String.fromCodePoint)return String.fromCodePoint.apply(String,he);var De=he.length;if(!De)return"";for(var tt=[],rr=-1,Ur="";++rr<De;){var ln=he[rr];ln<=65535?tt.push(ln):(ln-=65536,tt.push((ln>>10)+55296,ln%1024+56320)),(rr+1===De||tt.length>16384)&&(Ur+=String.fromCharCode.apply(String,tt),tt.length=0)}return Ur},n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),l=0;l<n.length;l++)e[n.charCodeAt(l)]=l;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),s=0;s<t.length;s++)a[t.charCodeAt(s)]=s;for(var u=function(he){var xe=he.length*.75,De=he.length,tt,rr=0,Ur,ln,bn,kn;he[he.length-1]==="="&&(xe--,he[he.length-2]==="="&&xe--);var Pi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(xe):new Array(xe),Si=Array.isArray(Pi)?Pi:new Uint8Array(Pi);for(tt=0;tt<De;tt+=4)Ur=a[he.charCodeAt(tt)],ln=a[he.charCodeAt(tt+1)],bn=a[he.charCodeAt(tt+2)],kn=a[he.charCodeAt(tt+3)],Si[rr++]=Ur<<2|ln>>4,Si[rr++]=(ln&15)<<4|bn>>2,Si[rr++]=(bn&3)<<6|kn&63;return Pi},h=function(he){for(var xe=he.length,De=[],tt=0;tt<xe;tt+=2)De.push(he[tt+1]<<8|he[tt]);return De},p=function(he){for(var xe=he.length,De=[],tt=0;tt<xe;tt+=4)De.push(he[tt+3]<<24|he[tt+2]<<16|he[tt+1]<<8|he[tt]);return De},m=5,v=6+5,y=2,E=v-m,T=65536>>m,w=1<<m,S=w-1,_=1024>>m,I=T+_,L=I,N=2048>>6,R=L+N,D=65536>>v,F=1<<E,M=F-1,U=function(he,xe,De){return he.slice?he.slice(xe,De):new Uint16Array(Array.prototype.slice.call(he,xe,De))},B=function(he,xe,De){return he.slice?he.slice(xe,De):new Uint32Array(Array.prototype.slice.call(he,xe,De))},j=function(he,xe){var De=u(he),tt=Array.isArray(De)?p(De):new Uint32Array(De),rr=Array.isArray(De)?h(De):new Uint16Array(De),Ur=24,ln=U(rr,Ur/2,tt[4]/2),bn=tt[5]===2?U(rr,(Ur+tt[4])/2):B(tt,Math.ceil((Ur+tt[4])/4));return new W(tt[0],tt[1],tt[2],tt[3],ln,bn)},W=function(){function lr(he,xe,De,tt,rr,Ur){this.initialValue=he,this.errorValue=xe,this.highStart=De,this.highValueIndex=tt,this.index=rr,this.data=Ur}return lr.prototype.get=function(he){var xe;if(he>=0){if(he<55296||he>56319&&he<=65535)return xe=this.index[he>>m],xe=(xe<<y)+(he&S),this.data[xe];if(he<=65535)return xe=this.index[T+(he-55296>>m)],xe=(xe<<y)+(he&S),this.data[xe];if(he<this.highStart)return xe=R-D+(he>>v),xe=this.index[xe],xe+=he>>m&M,xe=this.index[xe],xe=(xe<<y)+(he&S),this.data[xe];if(he<=1114111)return this.data[this.highValueIndex]}return this.errorValue},lr}(),V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),J=0;J<V.length;J++)z[V.charCodeAt(J)]=J;var q="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==",de=50,ae=1,ve=2,_e=3,Ie=4,He=5,me=7,ke=8,se=9,te=10,Ge=11,oe=12,Y=13,G=14,Q=15,ye=16,ce=17,Te=18,Se=19,le=20,fe=21,Ee=22,Ve=23,vt=24,et=25,Oe=26,Tt=27,Je=28,St=29,Mt=30,er=31,It=32,_t=33,Xe=34,ie=35,X=36,Be=37,Ce=38,Z=39,nt=40,ct=41,Qe=42,dt=43,Ft=[9001,65288],Lr="!",Wt="\xD7",ar="\xF7",Ut=j(q),kt=[Mt,X],st=[ae,ve,_e,He],Rr=[te,ke],on=[Tt,Oe],Sn=st.concat(Rr),zn=[Ce,Z,nt,Xe,ie],Ii=[Q,Y],yn=function(he,xe){xe===void 0&&(xe="strict");var De=[],tt=[],rr=[];return he.forEach(function(Ur,ln){var bn=Ut.get(Ur);if(bn>de?(rr.push(!0),bn-=de):rr.push(!1),["normal","auto","loose"].indexOf(xe)!==-1&&[8208,8211,12316,12448].indexOf(Ur)!==-1)return tt.push(ln),De.push(ye);if(bn===Ie||bn===Ge){if(ln===0)return tt.push(ln),De.push(Mt);var kn=De[ln-1];return Sn.indexOf(kn)===-1?(tt.push(tt[ln-1]),De.push(kn)):(tt.push(ln),De.push(Mt))}if(tt.push(ln),bn===er)return De.push(xe==="strict"?fe:Be);if(bn===Qe)return De.push(Mt);if(bn===St)return De.push(Mt);if(bn===dt)return Ur>=131072&&Ur<=196605||Ur>=196608&&Ur<=262141?De.push(Be):De.push(Mt);De.push(bn)}),[tt,De,rr]},Nn=function(he,xe,De,tt){var rr=tt[De];if(Array.isArray(he)?he.indexOf(rr)!==-1:he===rr)for(var Ur=De;Ur<=tt.length;){Ur++;var ln=tt[Ur];if(ln===xe)return!0;if(ln!==te)break}if(rr===te)for(var Ur=De;Ur>0;){Ur--;var bn=tt[Ur];if(Array.isArray(he)?he.indexOf(bn)!==-1:he===bn)for(var kn=De;kn<=tt.length;){kn++;var ln=tt[kn];if(ln===xe)return!0;if(ln!==te)break}if(bn!==te)break}return!1},jt=function(he,xe){for(var De=he;De>=0;){var tt=xe[De];if(tt===te)De--;else return tt}return 0},At=function(he,xe,De,tt,rr){if(De[tt]===0)return Wt;var Ur=tt-1;if(Array.isArray(rr)&&rr[Ur]===!0)return Wt;var ln=Ur-1,bn=Ur+1,kn=xe[Ur],Pi=ln>=0?xe[ln]:0,Si=xe[bn];if(kn===ve&&Si===_e)return Wt;if(st.indexOf(kn)!==-1)return Lr;if(st.indexOf(Si)!==-1)return Wt;if(Rr.indexOf(Si)!==-1)return Wt;if(jt(Ur,xe)===ke)return ar;if(Ut.get(he[Ur])===Ge)return Wt;if((kn===It||kn===_t)&&Ut.get(he[bn])===Ge)return Wt;if(kn===me||Si===me)return Wt;if(kn===se)return Wt;if([te,Y,Q].indexOf(kn)===-1&&Si===se)return Wt;if([ce,Te,Se,vt,Je].indexOf(Si)!==-1)return Wt;if(jt(Ur,xe)===Ee)return Wt;if(Nn(Ve,Ee,Ur,xe))return Wt;if(Nn([ce,Te],fe,Ur,xe))return Wt;if(Nn(oe,oe,Ur,xe))return Wt;if(kn===te)return ar;if(kn===Ve||Si===Ve)return Wt;if(Si===ye||kn===ye)return ar;if([Y,Q,fe].indexOf(Si)!==-1||kn===G)return Wt;if(Pi===X&&Ii.indexOf(kn)!==-1)return Wt;if(kn===Je&&Si===X)return Wt;if(Si===le)return Wt;if(kt.indexOf(Si)!==-1&&kn===et||kt.indexOf(kn)!==-1&&Si===et)return Wt;if(kn===Tt&&[Be,It,_t].indexOf(Si)!==-1||[Be,It,_t].indexOf(kn)!==-1&&Si===Oe)return Wt;if(kt.indexOf(kn)!==-1&&on.indexOf(Si)!==-1||on.indexOf(kn)!==-1&&kt.indexOf(Si)!==-1)return Wt;if([Tt,Oe].indexOf(kn)!==-1&&(Si===et||[Ee,Q].indexOf(Si)!==-1&&xe[bn+1]===et)||[Ee,Q].indexOf(kn)!==-1&&Si===et||kn===et&&[et,Je,vt].indexOf(Si)!==-1)return Wt;if([et,Je,vt,ce,Te].indexOf(Si)!==-1)for(var Fi=Ur;Fi>=0;){var Na=xe[Fi];if(Na===et)return Wt;if([Je,vt].indexOf(Na)!==-1)Fi--;else break}if([Tt,Oe].indexOf(Si)!==-1)for(var Fi=[ce,Te].indexOf(kn)!==-1?ln:Ur;Fi>=0;){var Na=xe[Fi];if(Na===et)return Wt;if([Je,vt].indexOf(Na)!==-1)Fi--;else break}if(Ce===kn&&[Ce,Z,Xe,ie].indexOf(Si)!==-1||[Z,Xe].indexOf(kn)!==-1&&[Z,nt].indexOf(Si)!==-1||[nt,ie].indexOf(kn)!==-1&&Si===nt)return Wt;if(zn.indexOf(kn)!==-1&&[le,Oe].indexOf(Si)!==-1||zn.indexOf(Si)!==-1&&kn===Tt)return Wt;if(kt.indexOf(kn)!==-1&&kt.indexOf(Si)!==-1)return Wt;if(kn===vt&&kt.indexOf(Si)!==-1)return Wt;if(kt.concat(et).indexOf(kn)!==-1&&Si===Ee&&Ft.indexOf(he[bn])===-1||kt.concat(et).indexOf(Si)!==-1&&kn===Te)return Wt;if(kn===ct&&Si===ct){for(var ja=De[Ur],no=1;ja>0&&(ja--,xe[ja]===ct);)no++;if(no%2!==0)return Wt}return kn===It&&Si===_t?Wt:ar},Re=function(he,xe){xe||(xe={lineBreak:"normal",wordBreak:"normal"});var De=yn(he,xe.lineBreak),tt=De[0],rr=De[1],Ur=De[2];(xe.wordBreak==="break-all"||xe.wordBreak==="break-word")&&(rr=rr.map(function(bn){return[et,Mt,Qe].indexOf(bn)!==-1?Be:bn}));var ln=xe.wordBreak==="keep-all"?Ur.map(function(bn,kn){return bn&&he[kn]>=19968&&he[kn]<=40959}):void 0;return[tt,rr,ln]},Ke=function(){function lr(he,xe,De,tt){this.codePoints=he,this.required=xe===Lr,this.start=De,this.end=tt}return lr.prototype.slice=function(){return i.apply(void 0,this.codePoints.slice(this.start,this.end))},lr}(),Pe=function(he,xe){var De=r(he),tt=Re(De,xe),rr=tt[0],Ur=tt[1],ln=tt[2],bn=De.length,kn=0,Pi=0;return{next:function(){if(Pi>=bn)return{done:!0,value:null};for(var Fi=Wt;Pi<bn&&(Fi=At(De,Ur,rr,++Pi,ln))===Wt;);if(Fi!==Wt||Pi===bn){var Na=new Ke(De,Fi,kn,Pi);return kn=Pi,{value:Na,done:!1}}return{done:!0,value:null}}}},at=1<<0,wt=1<<1,Rt=1<<2,xt=1<<3,Lt=10,gr=47,Br=92,Et=9,it=32,rt=34,Pt=61,Ht=35,bt=36,Gt=37,ut=39,Kt=40,Ar=41,ir=95,pr=45,tn=33,fn=60,Mn=62,Yn=64,si=91,vi=93,xi=61,_i=123,Ze=63,we=125,Ne=124,Fe=126,Ye=128,We=65533,qe=42,yt=43,ot=44,$t=58,Mr=59,Sr=46,jr=0,tr=8,gn=11,sr=14,un=31,an=127,Pr=-1,In=48,ci=97,Ui=101,ki=102,Ri=117,Ki=122,Hr=65,Cn=69,kr=70,mr=85,Cr=90,Nt=function(he){return he>=In&&he<=57},wr=function(he){return he>=55296&&he<=57343},Gr=function(he){return Nt(he)||he>=Hr&&he<=kr||he>=ci&&he<=ki},Kr=function(he){return he>=ci&&he<=Ki},qr=function(he){return he>=Hr&&he<=Cr},oi=function(he){return Kr(he)||qr(he)},Gn=function(he){return he>=Ye},Ti=function(he){return he===Lt||he===Et||he===it},hn=function(he){return oi(he)||Gn(he)||he===ir},_r=function(he){return hn(he)||Nt(he)||he===pr},En=function(he){return he>=jr&&he<=tr||he===gn||he>=sr&&he<=un||he===an},Fn=function(he,xe){return he!==Br?!1:xe!==Lt},Vn=function(he,xe,De){return he===pr?hn(xe)||Fn(xe,De):hn(he)?!0:!!(he===Br&&Fn(he,xe))},qn=function(he,xe,De){return he===yt||he===pr?Nt(xe)?!0:xe===Sr&&Nt(De):he===Sr?Nt(xe):Nt(he)},Oi=function(he){var xe=0,De=1;(he[xe]===yt||he[xe]===pr)&&(he[xe]===pr&&(De=-1),xe++);for(var tt=[];Nt(he[xe]);)tt.push(he[xe++]);var rr=tt.length?parseInt(i.apply(void 0,tt),10):0;he[xe]===Sr&&xe++;for(var Ur=[];Nt(he[xe]);)Ur.push(he[xe++]);var ln=Ur.length,bn=ln?parseInt(i.apply(void 0,Ur),10):0;(he[xe]===Cn||he[xe]===Ui)&&xe++;var kn=1;(he[xe]===yt||he[xe]===pr)&&(he[xe]===pr&&(kn=-1),xe++);for(var Pi=[];Nt(he[xe]);)Pi.push(he[xe++]);var Si=Pi.length?parseInt(i.apply(void 0,Pi),10):0;return De*(rr+bn*Math.pow(10,-ln))*Math.pow(10,kn*Si)},Ni={type:2},Mi={type:3},Ji={type:4},ma={type:13},la={type:8},qa={type:21},bi={type:9},xn={type:10},zi={type:11},oa={type:12},Yi={type:14},ca={type:23},Hi={type:1},Ia={type:25},Da={type:24},Qa={type:26},Wo={type:27},po={type:28},Mo={type:29},Fo={type:31},yo={type:32},Oo=function(){function lr(){this._value=[]}return lr.prototype.write=function(he){this._value=this._value.concat(r(he))},lr.prototype.read=function(){for(var he=[],xe=this.consumeToken();xe!==yo;)he.push(xe),xe=this.consumeToken();return he},lr.prototype.consumeToken=function(){var he=this.consumeCodePoint();switch(he){case rt:return this.consumeStringToken(rt);case Ht:var xe=this.peekCodePoint(0),De=this.peekCodePoint(1),tt=this.peekCodePoint(2);if(_r(xe)||Fn(De,tt)){var rr=Vn(xe,De,tt)?wt:at,Ur=this.consumeName();return{type:5,value:Ur,flags:rr}}break;case bt:if(this.peekCodePoint(0)===Pt)return this.consumeCodePoint(),ma;break;case ut:return this.consumeStringToken(ut);case Kt:return Ni;case Ar:return Mi;case qe:if(this.peekCodePoint(0)===Pt)return this.consumeCodePoint(),Yi;break;case yt:if(qn(he,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(he),this.consumeNumericToken();break;case ot:return Ji;case pr:var ln=he,bn=this.peekCodePoint(0),kn=this.peekCodePoint(1);if(qn(ln,bn,kn))return this.reconsumeCodePoint(he),this.consumeNumericToken();if(Vn(ln,bn,kn))return this.reconsumeCodePoint(he),this.consumeIdentLikeToken();if(bn===pr&&kn===Mn)return this.consumeCodePoint(),this.consumeCodePoint(),Da;break;case Sr:if(qn(he,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(he),this.consumeNumericToken();break;case gr:if(this.peekCodePoint(0)===qe)for(this.consumeCodePoint();;){var Pi=this.consumeCodePoint();if(Pi===qe&&(Pi=this.consumeCodePoint(),Pi===gr))return this.consumeToken();if(Pi===Pr)return this.consumeToken()}break;case $t:return Qa;case Mr:return Wo;case fn:if(this.peekCodePoint(0)===tn&&this.peekCodePoint(1)===pr&&this.peekCodePoint(2)===pr)return this.consumeCodePoint(),this.consumeCodePoint(),Ia;break;case Yn:var Si=this.peekCodePoint(0),Fi=this.peekCodePoint(1),Na=this.peekCodePoint(2);if(Vn(Si,Fi,Na)){var Ur=this.consumeName();return{type:7,value:Ur}}break;case si:return po;case Br:if(Fn(he,this.peekCodePoint(0)))return this.reconsumeCodePoint(he),this.consumeIdentLikeToken();break;case vi:return Mo;case xi:if(this.peekCodePoint(0)===Pt)return this.consumeCodePoint(),la;break;case _i:return zi;case we:return oa;case Ri:case mr:var ja=this.peekCodePoint(0),no=this.peekCodePoint(1);return ja===yt&&(Gr(no)||no===Ze)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(he),this.consumeIdentLikeToken();case Ne:if(this.peekCodePoint(0)===Pt)return this.consumeCodePoint(),bi;if(this.peekCodePoint(0)===Ne)return this.consumeCodePoint(),qa;break;case Fe:if(this.peekCodePoint(0)===Pt)return this.consumeCodePoint(),xn;break;case Pr:return yo}return Ti(he)?(this.consumeWhiteSpace(),Fo):Nt(he)?(this.reconsumeCodePoint(he),this.consumeNumericToken()):hn(he)?(this.reconsumeCodePoint(he),this.consumeIdentLikeToken()):{type:6,value:i(he)}},lr.prototype.consumeCodePoint=function(){var he=this._value.shift();return typeof he=="undefined"?-1:he},lr.prototype.reconsumeCodePoint=function(he){this._value.unshift(he)},lr.prototype.peekCodePoint=function(he){return he>=this._value.length?-1:this._value[he]},lr.prototype.consumeUnicodeRangeToken=function(){for(var he=[],xe=this.consumeCodePoint();Gr(xe)&&he.length<6;)he.push(xe),xe=this.consumeCodePoint();for(var De=!1;xe===Ze&&he.length<6;)he.push(xe),xe=this.consumeCodePoint(),De=!0;if(De){var tt=parseInt(i.apply(void 0,he.map(function(bn){return bn===Ze?In:bn})),16),rr=parseInt(i.apply(void 0,he.map(function(bn){return bn===Ze?kr:bn})),16);return{type:30,start:tt,end:rr}}var Ur=parseInt(i.apply(void 0,he),16);if(this.peekCodePoint(0)===pr&&Gr(this.peekCodePoint(1))){this.consumeCodePoint(),xe=this.consumeCodePoint();for(var ln=[];Gr(xe)&&ln.length<6;)ln.push(xe),xe=this.consumeCodePoint();var rr=parseInt(i.apply(void 0,ln),16);return{type:30,start:Ur,end:rr}}else return{type:30,start:Ur,end:Ur}},lr.prototype.consumeIdentLikeToken=function(){var he=this.consumeName();return he.toLowerCase()==="url"&&this.peekCodePoint(0)===Kt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Kt?(this.consumeCodePoint(),{type:19,value:he}):{type:20,value:he}},lr.prototype.consumeUrlToken=function(){var he=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pr)return{type:22,value:""};var xe=this.peekCodePoint(0);if(xe===ut||xe===rt){var De=this.consumeStringToken(this.consumeCodePoint());return De.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Pr||this.peekCodePoint(0)===Ar)?(this.consumeCodePoint(),{type:22,value:De.value}):(this.consumeBadUrlRemnants(),ca)}for(;;){var tt=this.consumeCodePoint();if(tt===Pr||tt===Ar)return{type:22,value:i.apply(void 0,he)};if(Ti(tt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Pr||this.peekCodePoint(0)===Ar?(this.consumeCodePoint(),{type:22,value:i.apply(void 0,he)}):(this.consumeBadUrlRemnants(),ca);if(tt===rt||tt===ut||tt===Kt||En(tt))return this.consumeBadUrlRemnants(),ca;if(tt===Br)if(Fn(tt,this.peekCodePoint(0)))he.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ca;else he.push(tt)}},lr.prototype.consumeWhiteSpace=function(){for(;Ti(this.peekCodePoint(0));)this.consumeCodePoint()},lr.prototype.consumeBadUrlRemnants=function(){for(;;){var he=this.consumeCodePoint();if(he===Ar||he===Pr)return;Fn(he,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},lr.prototype.consumeStringSlice=function(he){for(var xe=5e4,De="";he>0;){var tt=Math.min(xe,he);De+=i.apply(void 0,this._value.splice(0,tt)),he-=tt}return this._value.shift(),De},lr.prototype.consumeStringToken=function(he){var xe="",De=0;do{var tt=this._value[De];if(tt===Pr||tt===void 0||tt===he)return xe+=this.consumeStringSlice(De),{type:0,value:xe};if(tt===Lt)return this._value.splice(0,De),Hi;if(tt===Br){var rr=this._value[De+1];rr!==Pr&&rr!==void 0&&(rr===Lt?(xe+=this.consumeStringSlice(De),De=-1,this._value.shift()):Fn(tt,rr)&&(xe+=this.consumeStringSlice(De),xe+=i(this.consumeEscapedCodePoint()),De=-1))}De++}while(!0)},lr.prototype.consumeNumber=function(){var he=[],xe=Rt,De=this.peekCodePoint(0);for((De===yt||De===pr)&&he.push(this.consumeCodePoint());Nt(this.peekCodePoint(0));)he.push(this.consumeCodePoint());De=this.peekCodePoint(0);var tt=this.peekCodePoint(1);if(De===Sr&&Nt(tt))for(he.push(this.consumeCodePoint(),this.consumeCodePoint()),xe=xt;Nt(this.peekCodePoint(0));)he.push(this.consumeCodePoint());De=this.peekCodePoint(0),tt=this.peekCodePoint(1);var rr=this.peekCodePoint(2);if((De===Cn||De===Ui)&&((tt===yt||tt===pr)&&Nt(rr)||Nt(tt)))for(he.push(this.consumeCodePoint(),this.consumeCodePoint()),xe=xt;Nt(this.peekCodePoint(0));)he.push(this.consumeCodePoint());return[Oi(he),xe]},lr.prototype.consumeNumericToken=function(){var he=this.consumeNumber(),xe=he[0],De=he[1],tt=this.peekCodePoint(0),rr=this.peekCodePoint(1),Ur=this.peekCodePoint(2);if(Vn(tt,rr,Ur)){var ln=this.consumeName();return{type:15,number:xe,flags:De,unit:ln}}return tt===Gt?(this.consumeCodePoint(),{type:16,number:xe,flags:De}):{type:17,number:xe,flags:De}},lr.prototype.consumeEscapedCodePoint=function(){var he=this.consumeCodePoint();if(Gr(he)){for(var xe=i(he);Gr(this.peekCodePoint(0))&&xe.length<6;)xe+=i(this.consumeCodePoint());Ti(this.peekCodePoint(0))&&this.consumeCodePoint();var De=parseInt(xe,16);return De===0||wr(De)||De>1114111?We:De}return he===Pr?We:he},lr.prototype.consumeName=function(){for(var he="";;){var xe=this.consumeCodePoint();if(_r(xe))he+=i(xe);else if(Fn(xe,this.peekCodePoint(0)))he+=i(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(xe),he}},lr}(),sa=function(){function lr(he){this._tokens=he}return lr.create=function(he){var xe=new Oo;return xe.write(he),new lr(xe.read())},lr.parseValue=function(he){return lr.create(he).parseComponentValue()},lr.parseValues=function(he){return lr.create(he).parseComponentValues()},lr.prototype.parseComponentValue=function(){for(var he=this.consumeToken();he.type===31;)he=this.consumeToken();if(he.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(he);var xe=this.consumeComponentValue();do he=this.consumeToken();while(he.type===31);if(he.type===32)return xe;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},lr.prototype.parseComponentValues=function(){for(var he=[];;){var xe=this.consumeComponentValue();if(xe.type===32)return he;he.push(xe),he.push()}},lr.prototype.consumeComponentValue=function(){var he=this.consumeToken();switch(he.type){case 11:case 28:case 2:return this.consumeSimpleBlock(he.type);case 19:return this.consumeFunction(he)}return he},lr.prototype.consumeSimpleBlock=function(he){for(var xe={type:he,values:[]},De=this.consumeToken();;){if(De.type===32||Tn(De,he))return xe;this.reconsumeToken(De),xe.values.push(this.consumeComponentValue()),De=this.consumeToken()}},lr.prototype.consumeFunction=function(he){for(var xe={name:he.value,values:[],type:18};;){var De=this.consumeToken();if(De.type===32||De.type===3)return xe;this.reconsumeToken(De),xe.values.push(this.consumeComponentValue())}},lr.prototype.consumeToken=function(){var he=this._tokens.shift();return typeof he=="undefined"?yo:he},lr.prototype.reconsumeToken=function(he){this._tokens.unshift(he)},lr}(),hs=function(he){return he.type===15},Jo=function(he){return he.type===17},wo=function(he){return he.type===20},_o=function(he){return he.type===0},Bo=function(he,xe){return wo(he)&&he.value===xe},Ds=function(he){return he.type!==31},Dr=function(he){return he.type!==31&&he.type!==4},rn=function(he){var xe=[],De=[];return he.forEach(function(tt){if(tt.type===4){if(De.length===0)throw new Error("Error parsing function args, zero tokens for arg");xe.push(De),De=[];return}tt.type!==31&&De.push(tt)}),De.length&&xe.push(De),xe},Tn=function(he,xe){return xe===11&&he.type===12||xe===28&&he.type===29?!0:xe===2&&he.type===3},en=function(he){return he.type===17||he.type===15},ur=function(he){return he.type===16||en(he)},sn=function(he){return he.length>1?[he[0],he[1]]:[he[0]]},Bn={type:17,number:0,flags:Rt},Hn={type:16,number:50,flags:Rt},Li={type:16,number:100,flags:Rt},Ci=function(he,xe,De){var tt=he[0],rr=he[1];return[Jn(tt,xe),Jn(typeof rr!="undefined"?rr:tt,De)]},Jn=function(he,xe){if(he.type===16)return he.number/100*xe;if(hs(he))switch(he.unit){case"rem":case"em":return 16*he.number;case"px":default:return he.number}return he.number},mi="deg",yi="grad",da="rad",ha="turn",Pa={name:"angle",parse:function(he,xe){if(xe.type===15)switch(xe.unit){case mi:return Math.PI*xe.number/180;case yi:return Math.PI/200*xe.number;case da:return xe.number;case ha:return Math.PI*2*xe.number}throw new Error("Unsupported angle type")}},Ra=function(he){return he.type===15&&(he.unit===mi||he.unit===yi||he.unit===da||he.unit===ha)},so=function(he){var xe=he.filter(wo).map(function(De){return De.value}).join(" ");switch(xe){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Bn,Bn];case"to top":case"bottom":return La(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Bn,Li];case"to right":case"left":return La(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Li,Li];case"to bottom":case"top":return La(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Li,Bn];case"to left":case"right":return La(270)}return 0},La=function(he){return Math.PI*he/180},lo={name:"color",parse:function(he,xe){if(xe.type===18){var De=fi[xe.name];if(typeof De=="undefined")throw new Error('Attempting to parse an unsupported color function "'+xe.name+'"');return De(he,xe.values)}if(xe.type===5){if(xe.value.length===3){var tt=xe.value.substring(0,1),rr=xe.value.substring(1,2),Ur=xe.value.substring(2,3);return Vr(parseInt(tt+tt,16),parseInt(rr+rr,16),parseInt(Ur+Ur,16),1)}if(xe.value.length===4){var tt=xe.value.substring(0,1),rr=xe.value.substring(1,2),Ur=xe.value.substring(2,3),ln=xe.value.substring(3,4);return Vr(parseInt(tt+tt,16),parseInt(rr+rr,16),parseInt(Ur+Ur,16),parseInt(ln+ln,16)/255)}if(xe.value.length===6){var tt=xe.value.substring(0,2),rr=xe.value.substring(2,4),Ur=xe.value.substring(4,6);return Vr(parseInt(tt,16),parseInt(rr,16),parseInt(Ur,16),1)}if(xe.value.length===8){var tt=xe.value.substring(0,2),rr=xe.value.substring(2,4),Ur=xe.value.substring(4,6),ln=xe.value.substring(6,8);return Vr(parseInt(tt,16),parseInt(rr,16),parseInt(Ur,16),parseInt(ln,16)/255)}}if(xe.type===20){var bn=Jt[xe.value.toUpperCase()];if(typeof bn!="undefined")return bn}return Jt.TRANSPARENT}},So=function(he){return(255&he)===0},Qt=function(he){var xe=255&he,De=255&he>>8,tt=255&he>>16,rr=255&he>>24;return xe<255?"rgba("+rr+","+tt+","+De+","+xe/255+")":"rgb("+rr+","+tt+","+De+")"},Vr=function(he,xe,De,tt){return(he<<24|xe<<16|De<<8|Math.round(tt*255)<<0)>>>0},cn=function(he,xe){if(he.type===17)return he.number;if(he.type===16){var De=xe===3?1:255;return xe===3?he.number/100*De:Math.round(he.number/100*De)}return 0},vn=function(he,xe){var De=xe.filter(Dr);if(De.length===3){var tt=De.map(cn),rr=tt[0],Ur=tt[1],ln=tt[2];return Vr(rr,Ur,ln,1)}if(De.length===4){var bn=De.map(cn),rr=bn[0],Ur=bn[1],ln=bn[2],kn=bn[3];return Vr(rr,Ur,ln,kn)}return 0};function ni(lr,he,xe){return xe<0&&(xe+=1),xe>=1&&(xe-=1),xe<1/6?(he-lr)*xe*6+lr:xe<1/2?he:xe<2/3?(he-lr)*6*(2/3-xe)+lr:lr}var li=function(he,xe){var De=xe.filter(Dr),tt=De[0],rr=De[1],Ur=De[2],ln=De[3],bn=(tt.type===17?La(tt.number):Pa.parse(he,tt))/(Math.PI*2),kn=ur(rr)?rr.number/100:0,Pi=ur(Ur)?Ur.number/100:0,Si=typeof ln!="undefined"&&ur(ln)?Jn(ln,1):1;if(kn===0)return Vr(Pi*255,Pi*255,Pi*255,1);var Fi=Pi<=.5?Pi*(kn+1):Pi+kn-Pi*kn,Na=Pi*2-Fi,ja=ni(Na,Fi,bn+1/3),no=ni(Na,Fi,bn),Xo=ni(Na,Fi,bn-1/3);return Vr(ja*255,no*255,Xo*255,Si)},fi={hsl:li,hsla:li,rgb:vn,rgba:vn},di=function(he,xe){return lo.parse(he,sa.create(xe).parseComponentValue())},Jt={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},Ot={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(he,xe){return xe.map(function(De){if(wo(De))switch(De.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},yr={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ft=function(he,xe){var De=lo.parse(he,xe[0]),tt=xe[1];return tt&&ur(tt)?{color:De,stop:tt}:{color:De,stop:null}},qt=function(he,xe){var De=he[0],tt=he[he.length-1];De.stop===null&&(De.stop=Bn),tt.stop===null&&(tt.stop=Li);for(var rr=[],Ur=0,ln=0;ln<he.length;ln++){var bn=he[ln].stop;if(bn!==null){var kn=Jn(bn,xe);kn>Ur?rr.push(kn):rr.push(Ur),Ur=kn}else rr.push(null)}for(var Pi=null,ln=0;ln<rr.length;ln++){var Si=rr[ln];if(Si===null)Pi===null&&(Pi=ln);else if(Pi!==null){for(var Fi=ln-Pi,Na=rr[Pi-1],ja=(Si-Na)/(Fi+1),no=1;no<=Fi;no++)rr[Pi+no-1]=ja*no;Pi=null}}return he.map(function(Xo,Lo){var Co=Xo.color;return{color:Co,stop:Math.max(Math.min(1,rr[Lo]/xe),0)}})},dr=function(he,xe,De){var tt=xe/2,rr=De/2,Ur=Jn(he[0],xe)-tt,ln=rr-Jn(he[1],De);return(Math.atan2(ln,Ur)+Math.PI*2)%(Math.PI*2)},Nr=function(he,xe,De){var tt=typeof he=="number"?he:dr(he,xe,De),rr=Math.abs(xe*Math.sin(tt))+Math.abs(De*Math.cos(tt)),Ur=xe/2,ln=De/2,bn=rr/2,kn=Math.sin(tt-Math.PI/2)*bn,Pi=Math.cos(tt-Math.PI/2)*bn;return[rr,Ur-Pi,Ur+Pi,ln-kn,ln+kn]},Zr=function(he,xe){return Math.sqrt(he*he+xe*xe)},pn=function(he,xe,De,tt,rr){var Ur=[[0,0],[0,xe],[he,0],[he,xe]];return Ur.reduce(function(ln,bn){var kn=bn[0],Pi=bn[1],Si=Zr(De-kn,tt-Pi);return(rr?Si<ln.optimumDistance:Si>ln.optimumDistance)?{optimumCorner:bn,optimumDistance:Si}:ln},{optimumDistance:rr?Infinity:-Infinity,optimumCorner:null}).optimumCorner},_n=function(he,xe,De,tt,rr){var Ur=0,ln=0;switch(he.size){case 0:he.shape===0?Ur=ln=Math.min(Math.abs(xe),Math.abs(xe-tt),Math.abs(De),Math.abs(De-rr)):he.shape===1&&(Ur=Math.min(Math.abs(xe),Math.abs(xe-tt)),ln=Math.min(Math.abs(De),Math.abs(De-rr)));break;case 2:if(he.shape===0)Ur=ln=Math.min(Zr(xe,De),Zr(xe,De-rr),Zr(xe-tt,De),Zr(xe-tt,De-rr));else if(he.shape===1){var bn=Math.min(Math.abs(De),Math.abs(De-rr))/Math.min(Math.abs(xe),Math.abs(xe-tt)),kn=pn(tt,rr,xe,De,!0),Pi=kn[0],Si=kn[1];Ur=Zr(Pi-xe,(Si-De)/bn),ln=bn*Ur}break;case 1:he.shape===0?Ur=ln=Math.max(Math.abs(xe),Math.abs(xe-tt),Math.abs(De),Math.abs(De-rr)):he.shape===1&&(Ur=Math.max(Math.abs(xe),Math.abs(xe-tt)),ln=Math.max(Math.abs(De),Math.abs(De-rr)));break;case 3:if(he.shape===0)Ur=ln=Math.max(Zr(xe,De),Zr(xe,De-rr),Zr(xe-tt,De),Zr(xe-tt,De-rr));else if(he.shape===1){var bn=Math.max(Math.abs(De),Math.abs(De-rr))/Math.max(Math.abs(xe),Math.abs(xe-tt)),Fi=pn(tt,rr,xe,De,!1),Pi=Fi[0],Si=Fi[1];Ur=Zr(Pi-xe,(Si-De)/bn),ln=bn*Ur}break}return Array.isArray(he.size)&&(Ur=Jn(he.size[0],tt),ln=he.size.length===2?Jn(he.size[1],rr):Ur),[Ur,ln]},Dn=function(he,xe){var De=La(180),tt=[];return rn(xe).forEach(function(rr,Ur){if(Ur===0){var ln=rr[0];if(ln.type===20&&ln.value==="to"){De=so(rr);return}else if(Ra(ln)){De=Pa.parse(he,ln);return}}var bn=ft(he,rr);tt.push(bn)}),{angle:De,stops:tt,type:1}},Zn=function(he,xe){var De=La(180),tt=[];return rn(xe).forEach(function(rr,Ur){if(Ur===0){var ln=rr[0];if(ln.type===20&&["top","left","right","bottom"].indexOf(ln.value)!==-1){De=so(rr);return}else if(Ra(ln)){De=(Pa.parse(he,ln)+La(270))%La(360);return}}var bn=ft(he,rr);tt.push(bn)}),{angle:De,stops:tt,type:1}},ii=function(he,xe){var De=La(180),tt=[],rr=1,Ur=0,ln=3,bn=[];return rn(xe).forEach(function(kn,Pi){var Si=kn[0];if(Pi===0){if(wo(Si)&&Si.value==="linear"){rr=1;return}else if(wo(Si)&&Si.value==="radial"){rr=2;return}}if(Si.type===18){if(Si.name==="from"){var Fi=lo.parse(he,Si.values[0]);tt.push({stop:Bn,color:Fi})}else if(Si.name==="to"){var Fi=lo.parse(he,Si.values[0]);tt.push({stop:Li,color:Fi})}else if(Si.name==="color-stop"){var Na=Si.values.filter(Dr);if(Na.length===2){var Fi=lo.parse(he,Na[1]),ja=Na[0];Jo(ja)&&tt.push({stop:{type:16,number:ja.number*100,flags:ja.flags},color:Fi})}}}}),rr===1?{angle:(De+La(180))%La(360),stops:tt,type:rr}:{size:ln,shape:Ur,stops:tt,position:bn,type:rr}},pi="closest-side",ri="farthest-side",ji="closest-corner",ei="farthest-corner",$e="circle",Yt="ellipse",vr="cover",fr="contain",Xr=function(he,xe){var De=0,tt=3,rr=[],Ur=[];return rn(xe).forEach(function(ln,bn){var kn=!0;if(bn===0){var Pi=!1;kn=ln.reduce(function(Fi,Na){if(Pi)if(wo(Na))switch(Na.value){case"center":return Ur.push(Hn),Fi;case"top":case"left":return Ur.push(Bn),Fi;case"right":case"bottom":return Ur.push(Li),Fi}else(ur(Na)||en(Na))&&Ur.push(Na);else if(wo(Na))switch(Na.value){case $e:return De=0,!1;case Yt:return De=1,!1;case"at":return Pi=!0,!1;case pi:return tt=0,!1;case vr:case ri:return tt=1,!1;case fr:case ji:return tt=2,!1;case ei:return tt=3,!1}else if(en(Na)||ur(Na))return Array.isArray(tt)||(tt=[]),tt.push(Na),!1;return Fi},kn)}if(kn){var Si=ft(he,ln);rr.push(Si)}}),{size:tt,shape:De,stops:rr,position:Ur,type:2}},Fr=function(he,xe){var De=0,tt=3,rr=[],Ur=[];return rn(xe).forEach(function(ln,bn){var kn=!0;if(bn===0?kn=ln.reduce(function(Si,Fi){if(wo(Fi))switch(Fi.value){case"center":return Ur.push(Hn),!1;case"top":case"left":return Ur.push(Bn),!1;case"right":case"bottom":return Ur.push(Li),!1}else if(ur(Fi)||en(Fi))return Ur.push(Fi),!1;return Si},kn):bn===1&&(kn=ln.reduce(function(Si,Fi){if(wo(Fi))switch(Fi.value){case $e:return De=0,!1;case Yt:return De=1,!1;case fr:case pi:return tt=0,!1;case ri:return tt=1,!1;case ji:return tt=2,!1;case vr:case ei:return tt=3,!1}else if(en(Fi)||ur(Fi))return Array.isArray(tt)||(tt=[]),tt.push(Fi),!1;return Si},kn)),kn){var Pi=ft(he,ln);rr.push(Pi)}}),{size:tt,shape:De,stops:rr,position:Ur,type:2}},hr=function(he){return he.type===1},An=function(he){return he.type===2},br={name:"image",parse:function(he,xe){if(xe.type===22){var De={url:xe.value,type:0};return he.cache.addImage(xe.value),De}if(xe.type===18){var tt=Kn[xe.name];if(typeof tt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+xe.name+'"');return tt(he,xe.values)}throw new Error("Unsupported image type "+xe.type)}};function mn(lr){return!(lr.type===20&&lr.value==="none")&&(lr.type!==18||!!Kn[lr.name])}var Kn={"linear-gradient":Dn,"-moz-linear-gradient":Zn,"-ms-linear-gradient":Zn,"-o-linear-gradient":Zn,"-webkit-linear-gradient":Zn,"radial-gradient":Xr,"-moz-radial-gradient":Fr,"-ms-radial-gradient":Fr,"-o-radial-gradient":Fr,"-webkit-radial-gradient":Fr,"-webkit-gradient":ii},Wn={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(he,xe){if(xe.length===0)return[];var De=xe[0];return De.type===20&&De.value==="none"?[]:xe.filter(function(tt){return Dr(tt)&&mn(tt)}).map(function(tt){return br.parse(he,tt)})}},Ln={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(he,xe){return xe.map(function(De){if(wo(De))switch(De.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$n={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(he,xe){return rn(xe).map(function(De){return De.filter(ur)}).map(sn)}},Un={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(he,xe){return rn(xe).map(function(De){return De.filter(wo).map(function(tt){return tt.value}).join(" ")}).map(ti)}},ti=function(he){switch(he){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}},Xn;(function(lr){lr.AUTO="auto",lr.CONTAIN="contain",lr.COVER="cover"})(Xn||(Xn={}));var wi={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(he,xe){return rn(xe).map(function(De){return De.filter(Ei)})}},Ei=function(he){return wo(he)||ur(he)},Zi=function(he){return{name:"border-"+he+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},ua=Zi("top"),Xi=Zi("right"),Gi=Zi("bottom"),wa=Zi("left"),na=function(he){return{name:"border-radius-"+he,initialValue:"0 0",prefix:!1,type:1,parse:function(De,tt){return sn(tt.filter(ur))}}},mo=na("top-left"),Ca=na("top-right"),qi=na("bottom-right"),aa=na("bottom-left"),$i=function(he){return{name:"border-"+he+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(De,tt){switch(tt){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Aa=$i("top"),ya=$i("right"),Ha=$i("bottom"),ta=$i("left"),ra=function(he){return{name:"border-"+he+"-width",initialValue:"0",type:0,prefix:!1,parse:function(De,tt){return hs(tt)?tt.number:0}}},_a=ra("top"),Ka=ra("right"),bo=ra("bottom"),ga=ra("left"),go={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Sa={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(he,xe){switch(xe){case"rtl":return 1;case"ltr":default:return 0}}},Va={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(he,xe){return xe.filter(wo).reduce(function(De,tt){return De|uo(tt.value)},0)}},uo=function(he){switch(he){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},No={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(he,xe){switch(xe){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Po={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(he,xe){return xe.type===20&&xe.value==="normal"?0:xe.type===17||xe.type===15?xe.number:0}},to;(function(lr){lr.NORMAL="normal",lr.STRICT="strict"})(to||(to={}));var Uo={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(he,xe){switch(xe){case"strict":return to.STRICT;case"normal":default:return to.NORMAL}}},co={name:"line-height",initialValue:"normal",prefix:!1,type:4},fa=function(he,xe){return wo(he)&&he.value==="normal"?1.2*xe:he.type===17?xe*he.number:ur(he)?Jn(he,xe):xe},ro={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(he,xe){return xe.type===20&&xe.value==="none"?null:br.parse(he,xe)}},Wa={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(he,xe){switch(xe){case"inside":return 0;case"outside":default:return 1}}},Ea={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(he,xe){switch(xe){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}}},Jr=function(he){return{name:"margin-"+he,initialValue:"0",prefix:!1,type:4}},za=Jr("top"),rs=Jr("right"),Vo=Jr("bottom"),Go=Jr("left"),Qo={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(he,xe){return xe.filter(wo).map(function(De){switch(De.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Yo={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(he,xe){switch(xe){case"break-word":return"break-word";case"normal":default:return"normal"}}},vo=function(he){return{name:"padding-"+he,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Io=vo("top"),zo=vo("right"),Fa=vo("bottom"),Ja=vo("left"),ho={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(he,xe){switch(xe){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Ao={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(he,xe){switch(xe){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(he,xe){return xe.length===1&&Bo(xe[0],"none")?[]:rn(xe).map(function(De){for(var tt={color:Jt.TRANSPARENT,offsetX:Bn,offsetY:Bn,blur:Bn},rr=0,Ur=0;Ur<De.length;Ur++){var ln=De[Ur];en(ln)?(rr===0?tt.offsetX=ln:rr===1?tt.offsetY=ln:tt.blur=ln,rr++):tt.color=lo.parse(he,ln)}return tt})}},ps={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(he,xe){switch(xe){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},is={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(he,xe){if(xe.type===20&&xe.value==="none")return null;if(xe.type===18){var De=Bt[xe.name];if(typeof De=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+xe.name+'"');return De(xe.values)}return null}},Za=function(he){var xe=he.filter(function(De){return De.type===17}).map(function(De){return De.number});return xe.length===6?xe:null},Ct=function(he){var xe=he.filter(function(kn){return kn.type===17}).map(function(kn){return kn.number}),De=xe[0],tt=xe[1];xe[2],xe[3];var rr=xe[4],Ur=xe[5];xe[6],xe[7],xe[8],xe[9],xe[10],xe[11];var ln=xe[12],bn=xe[13];return xe[14],xe[15],xe.length===16?[De,tt,rr,Ur,ln,bn]:null},Bt={matrix:Za,matrix3d:Ct},Wr={type:16,number:50,flags:Rt},Pn=[Wr,Wr],ht={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(he,xe){var De=xe.filter(ur);return De.length!==2?Pn:[De[0],De[1]]}},ne={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(he,xe){switch(xe){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},pe;(function(lr){lr.NORMAL="normal",lr.BREAK_ALL="break-all",lr.KEEP_ALL="keep-all"})(pe||(pe={}));for(var be={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(he,xe){switch(xe){case"break-all":return pe.BREAK_ALL;case"keep-all":return pe.KEEP_ALL;case"normal":default:return pe.NORMAL}}},Ue={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(he,xe){if(xe.type===20)return{auto:!0,order:0};if(Jo(xe))return{auto:!1,order:xe.number};throw new Error("Invalid z-index number parsed")}},pt={name:"time",parse:function(he,xe){if(xe.type===15)switch(xe.unit.toLowerCase()){case"s":return 1e3*xe.number;case"ms":return xe.number}throw new Error("Unsupported time type")}},Xt={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(he,xe){return Jo(xe)?xe.number:1}},Or={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Qr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(he,xe){return xe.filter(wo).map(function(De){switch(De.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(De){return De!==0})}},dn={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(he,xe){var De=[],tt=[];return xe.forEach(function(rr){switch(rr.type){case 20:case 0:De.push(rr.value);break;case 17:De.push(rr.number.toString());break;case 4:tt.push(De.join(" ")),De.length=0;break}}),De.length&&tt.push(De.join(" ")),tt.map(function(rr){return rr.indexOf(" ")===-1?rr:"'"+rr+"'"})}},jn={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ai={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(he,xe){if(Jo(xe))return xe.number;if(wo(xe))switch(xe.value){case"bold":return 700;case"normal":default:return 400}return 400}},Qn={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(he,xe){return xe.filter(wo).map(function(De){return De.value})}},Di={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(he,xe){switch(xe){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Vi=function(he,xe){return(he&xe)!==0},Ta={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(he,xe){if(xe.length===0)return[];var De=xe[0];return De.type===20&&De.value==="none"?[]:xe}},Ga={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(he,xe){if(xe.length===0)return null;var De=xe[0];if(De.type===20&&De.value==="none")return null;for(var tt=[],rr=xe.filter(Ds),Ur=0;Ur<rr.length;Ur++){var ln=rr[Ur],bn=rr[Ur+1];if(ln.type===20){var kn=bn&&Jo(bn)?bn.number:1;tt.push({counter:ln.value,increment:kn})}}return tt}},ao={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(he,xe){if(xe.length===0)return[];for(var De=[],tt=xe.filter(Ds),rr=0;rr<tt.length;rr++){var Ur=tt[rr],ln=tt[rr+1];if(wo(Ur)&&Ur.value!=="none"){var bn=ln&&Jo(ln)?ln.number:0;De.push({counter:Ur.value,reset:bn})}}return De}},Do={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(he,xe){return xe.filter(hs).map(function(De){return pt.parse(he,De)})}},fo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(he,xe){if(xe.length===0)return null;var De=xe[0];if(De.type===20&&De.value==="none")return null;var tt=[],rr=xe.filter(_o);if(rr.length%2!==0)return null;for(var Ur=0;Ur<rr.length;Ur+=2){var ln=rr[Ur].value,bn=rr[Ur+1].value;tt.push({open:ln,close:bn})}return tt}},as=function(he,xe,De){if(!he)return"";var tt=he[Math.min(xe,he.length-1)];return tt?De?tt.open:tt.close:""},io={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(he,xe){return xe.length===1&&Bo(xe[0],"none")?[]:rn(xe).map(function(De){for(var tt={color:255,offsetX:Bn,offsetY:Bn,blur:Bn,spread:Bn,inset:!1},rr=0,Ur=0;Ur<De.length;Ur++){var ln=De[Ur];Bo(ln,"inset")?tt.inset=!0:en(ln)?(rr===0?tt.offsetX=ln:rr===1?tt.offsetY=ln:rr===2?tt.blur=ln:tt.spread=ln,rr++):tt.color=lo.parse(he,ln)}return tt})}},Xa={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(he,xe){var De=[0,1,2],tt=[];return xe.filter(wo).forEach(function(rr){switch(rr.value){case"stroke":tt.push(1);break;case"fill":tt.push(0);break;case"markers":tt.push(2);break}}),De.forEach(function(rr){tt.indexOf(rr)===-1&&tt.push(rr)}),tt}},Ya={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},ka={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(he,xe){return hs(xe)?xe.number:0}},os=function(){function lr(he,xe){var De,tt;this.animationDuration=pa(he,Do,xe.animationDuration),this.backgroundClip=pa(he,Ot,xe.backgroundClip),this.backgroundColor=pa(he,yr,xe.backgroundColor),this.backgroundImage=pa(he,Wn,xe.backgroundImage),this.backgroundOrigin=pa(he,Ln,xe.backgroundOrigin),this.backgroundPosition=pa(he,$n,xe.backgroundPosition),this.backgroundRepeat=pa(he,Un,xe.backgroundRepeat),this.backgroundSize=pa(he,wi,xe.backgroundSize),this.borderTopColor=pa(he,ua,xe.borderTopColor),this.borderRightColor=pa(he,Xi,xe.borderRightColor),this.borderBottomColor=pa(he,Gi,xe.borderBottomColor),this.borderLeftColor=pa(he,wa,xe.borderLeftColor),this.borderTopLeftRadius=pa(he,mo,xe.borderTopLeftRadius),this.borderTopRightRadius=pa(he,Ca,xe.borderTopRightRadius),this.borderBottomRightRadius=pa(he,qi,xe.borderBottomRightRadius),this.borderBottomLeftRadius=pa(he,aa,xe.borderBottomLeftRadius),this.borderTopStyle=pa(he,Aa,xe.borderTopStyle),this.borderRightStyle=pa(he,ya,xe.borderRightStyle),this.borderBottomStyle=pa(he,Ha,xe.borderBottomStyle),this.borderLeftStyle=pa(he,ta,xe.borderLeftStyle),this.borderTopWidth=pa(he,_a,xe.borderTopWidth),this.borderRightWidth=pa(he,Ka,xe.borderRightWidth),this.borderBottomWidth=pa(he,bo,xe.borderBottomWidth),this.borderLeftWidth=pa(he,ga,xe.borderLeftWidth),this.boxShadow=pa(he,io,xe.boxShadow),this.color=pa(he,go,xe.color),this.direction=pa(he,Sa,xe.direction),this.display=pa(he,Va,xe.display),this.float=pa(he,No,xe.cssFloat),this.fontFamily=pa(he,dn,xe.fontFamily),this.fontSize=pa(he,jn,xe.fontSize),this.fontStyle=pa(he,Di,xe.fontStyle),this.fontVariant=pa(he,Qn,xe.fontVariant),this.fontWeight=pa(he,ai,xe.fontWeight),this.letterSpacing=pa(he,Po,xe.letterSpacing),this.lineBreak=pa(he,Uo,xe.lineBreak),this.lineHeight=pa(he,co,xe.lineHeight),this.listStyleImage=pa(he,ro,xe.listStyleImage),this.listStylePosition=pa(he,Wa,xe.listStylePosition),this.listStyleType=pa(he,Ea,xe.listStyleType),this.marginTop=pa(he,za,xe.marginTop),this.marginRight=pa(he,rs,xe.marginRight),this.marginBottom=pa(he,Vo,xe.marginBottom),this.marginLeft=pa(he,Go,xe.marginLeft),this.opacity=pa(he,Xt,xe.opacity);var rr=pa(he,Qo,xe.overflow);this.overflowX=rr[0],this.overflowY=rr[rr.length>1?1:0],this.overflowWrap=pa(he,Yo,xe.overflowWrap),this.paddingTop=pa(he,Io,xe.paddingTop),this.paddingRight=pa(he,zo,xe.paddingRight),this.paddingBottom=pa(he,Fa,xe.paddingBottom),this.paddingLeft=pa(he,Ja,xe.paddingLeft),this.paintOrder=pa(he,Xa,xe.paintOrder),this.position=pa(he,Ao,xe.position),this.textAlign=pa(he,ho,xe.textAlign),this.textDecorationColor=pa(he,Or,(De=xe.textDecorationColor)!==null&&De!==void 0?De:xe.color),this.textDecorationLine=pa(he,Qr,(tt=xe.textDecorationLine)!==null&&tt!==void 0?tt:xe.textDecoration),this.textShadow=pa(he,$o,xe.textShadow),this.textTransform=pa(he,ps,xe.textTransform),this.transform=pa(he,is,xe.transform),this.transformOrigin=pa(he,ht,xe.transformOrigin),this.visibility=pa(he,ne,xe.visibility),this.webkitTextStrokeColor=pa(he,Ya,xe.webkitTextStrokeColor),this.webkitTextStrokeWidth=pa(he,ka,xe.webkitTextStrokeWidth),this.wordBreak=pa(he,be,xe.wordBreak),this.zIndex=pa(he,Ue,xe.zIndex)}return lr.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},lr.prototype.isTransparent=function(){return So(this.backgroundColor)},lr.prototype.isTransformed=function(){return this.transform!==null},lr.prototype.isPositioned=function(){return this.position!==0},lr.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},lr.prototype.isFloating=function(){return this.float!==0},lr.prototype.isInlineLevel=function(){return Vi(this.display,4)||Vi(this.display,33554432)||Vi(this.display,268435456)||Vi(this.display,536870912)||Vi(this.display,67108864)||Vi(this.display,134217728)},lr}(),Es=function(){function lr(he,xe){this.content=pa(he,Ta,xe.content),this.quotes=pa(he,fo,xe.quotes)}return lr}(),qo=function(){function lr(he,xe){this.counterIncrement=pa(he,Ga,xe.counterIncrement),this.counterReset=pa(he,ao,xe.counterReset)}return lr}(),pa=function(he,xe,De){var tt=new Oo,rr=De!==null&&typeof De!="undefined"?De.toString():xe.initialValue;tt.write(rr);var Ur=new sa(tt.read());switch(xe.type){case 2:var ln=Ur.parseComponentValue();return xe.parse(he,wo(ln)?ln.value:xe.initialValue);case 0:return xe.parse(he,Ur.parseComponentValue());case 1:return xe.parse(he,Ur.parseComponentValues());case 4:return Ur.parseComponentValue();case 3:switch(xe.format){case"angle":return Pa.parse(he,Ur.parseComponentValue());case"color":return lo.parse(he,Ur.parseComponentValue());case"image":return br.parse(he,Ur.parseComponentValue());case"length":var bn=Ur.parseComponentValue();return en(bn)?bn:Bn;case"length-percentage":var kn=Ur.parseComponentValue();return ur(kn)?kn:Bn;case"time":return pt.parse(he,Ur.parseComponentValue())}break}},ls="data-html2canvas-debug",Os=function(he){var xe=he.getAttribute(ls);switch(xe){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},ys=function(he,xe){var De=Os(he);return De===1||xe===De},ms=function(){function lr(he,xe){if(this.context=he,this.textNodes=[],this.elements=[],this.flags=0,ys(xe,3))debugger;this.styles=new os(he,window.getComputedStyle(xe,null)),Iu(xe)&&(this.styles.animationDuration.some(function(De){return De>0})&&(xe.style.animationDuration="0s"),this.styles.transform!==null&&(xe.style.transform="none")),this.bounds=c(this.context,xe),ys(xe,4)&&(this.flags|=16)}return lr}(),ws="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Pl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ml=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Ws=0;Ws<Pl.length;Ws++)ml[Pl.charCodeAt(Ws)]=Ws;for(var fs=function(he){var xe=he.length*.75,De=he.length,tt,rr=0,Ur,ln,bn,kn;he[he.length-1]==="="&&(xe--,he[he.length-2]==="="&&xe--);var Pi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(xe):new Array(xe),Si=Array.isArray(Pi)?Pi:new Uint8Array(Pi);for(tt=0;tt<De;tt+=4)Ur=ml[he.charCodeAt(tt)],ln=ml[he.charCodeAt(tt+1)],bn=ml[he.charCodeAt(tt+2)],kn=ml[he.charCodeAt(tt+3)],Si[rr++]=Ur<<2|ln>>4,Si[rr++]=(ln&15)<<4|bn>>2,Si[rr++]=(bn&3)<<6|kn&63;return Pi},_s=function(he){for(var xe=he.length,De=[],tt=0;tt<xe;tt+=2)De.push(he[tt+1]<<8|he[tt]);return De},gl=function(he){for(var xe=he.length,De=[],tt=0;tt<xe;tt+=4)De.push(he[tt+3]<<24|he[tt+2]<<16|he[tt+1]<<8|he[tt]);return De},Bs=5,Us=6+5,Qs=2,al=Us-Bs,El=65536>>Bs,bl=1<<Bs,ol=bl-1,Gs=1024>>Bs,zs=El+Gs,vl=zs,Xs=2048>>6,sl=vl+Xs,dl=65536>>Us,rl=1<<al,nl=rl-1,Tl=function(he,xe,De){return he.slice?he.slice(xe,De):new Uint16Array(Array.prototype.slice.call(he,xe,De))},Rs=function(he,xe,De){return he.slice?he.slice(xe,De):new Uint32Array(Array.prototype.slice.call(he,xe,De))},bs=function(he,xe){var De=fs(he),tt=Array.isArray(De)?gl(De):new Uint32Array(De),rr=Array.isArray(De)?_s(De):new Uint16Array(De),Ur=24,ln=Tl(rr,Ur/2,tt[4]/2),bn=tt[5]===2?Tl(rr,(Ur+tt[4])/2):Rs(tt,Math.ceil((Ur+tt[4])/4));return new Ms(tt[0],tt[1],tt[2],tt[3],ln,bn)},Ms=function(){function lr(he,xe,De,tt,rr,Ur){this.initialValue=he,this.errorValue=xe,this.highStart=De,this.highValueIndex=tt,this.index=rr,this.data=Ur}return lr.prototype.get=function(he){var xe;if(he>=0){if(he<55296||he>56319&&he<=65535)return xe=this.index[he>>Bs],xe=(xe<<Qs)+(he&ol),this.data[xe];if(he<=65535)return xe=this.index[El+(he-55296>>Bs)],xe=(xe<<Qs)+(he&ol),this.data[xe];if(he<this.highStart)return xe=sl-dl+(he>>Us),xe=this.index[xe],xe+=he>>Bs&nl,xe=this.index[xe],xe=(xe<<Qs)+(he&ol),this.data[xe];if(he<=1114111)return this.data[this.highValueIndex]}return this.errorValue},lr}(),Ts="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zs=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),hl=0;hl<Ts.length;hl++)Zs[Ts.charCodeAt(hl)]=hl;var wl=1,Kl=2,il=3,fl=4,kl=5,gu=7,Jl=8,Zl=9,$l=10,Gl=11,$s=12,ll=13,pl=14,Nl=15,ou=function(he){for(var xe=[],De=0,tt=he.length;De<tt;){var rr=he.charCodeAt(De++);if(rr>=55296&&rr<=56319&&De<tt){var Ur=he.charCodeAt(De++);(Ur&64512)===56320?xe.push(((rr&1023)<<10)+(Ur&1023)+65536):(xe.push(rr),De--)}else xe.push(rr)}return xe},ql=function(){for(var he=[],xe=0;xe<arguments.length;xe++)he[xe]=arguments[xe];if(String.fromCodePoint)return String.fromCodePoint.apply(String,he);var De=he.length;if(!De)return"";for(var tt=[],rr=-1,Ur="";++rr<De;){var ln=he[rr];ln<=65535?tt.push(ln):(ln-=65536,tt.push((ln>>10)+55296,ln%1024+56320)),(rr+1===De||tt.length>16384)&&(Ur+=String.fromCharCode.apply(String,tt),tt.length=0)}return Ur},eu=bs(ws),el="\xD7",tu="\xF7",ru=function(he){return eu.get(he)},su=function(he,xe,De){var tt=De-2,rr=xe[tt],Ur=xe[De-1],ln=xe[De];if(Ur===Kl&&ln===il)return el;if(Ur===Kl||Ur===il||Ur===fl)return tu;if(ln===Kl||ln===il||ln===fl)return tu;if(Ur===Jl&&[Jl,Zl,Gl,$s].indexOf(ln)!==-1)return el;if((Ur===Gl||Ur===Zl)&&(ln===Zl||ln===$l))return el;if((Ur===$s||Ur===$l)&&ln===$l)return el;if(ln===ll||ln===kl)return el;if(ln===gu)return el;if(Ur===wl)return el;if(Ur===ll&&ln===pl){for(;rr===kl;)rr=xe[--tt];if(rr===pl)return el}if(Ur===Nl&&ln===Nl){for(var bn=0;rr===Nl;)bn++,rr=xe[--tt];if(bn%2===0)return el}return tu},Cl=function(he){var xe=ou(he),De=xe.length,tt=0,rr=0,Ur=xe.map(ru);return{next:function(){if(tt>=De)return{done:!0,value:null};for(var bn=el;tt<De&&(bn=su(xe,Ur,++tt))===el;);if(bn!==el||tt===De){var kn=ql.apply(null,xe.slice(rr,tt));return rr=tt,{value:kn,done:!1}}return{done:!0,value:null}}}},Dl=function(he){for(var xe=Cl(he),De=[],tt;!(tt=xe.next()).done;)tt.value&&De.push(tt.value.slice());return De},Fl=function(he){var xe=123;if(he.createRange){var De=he.createRange();if(De.getBoundingClientRect){var tt=he.createElement("boundtest");tt.style.height=xe+"px",tt.style.display="block",he.body.appendChild(tt),De.selectNode(tt);var rr=De.getBoundingClientRect(),Ur=Math.round(rr.height);if(he.body.removeChild(tt),Ur===xe)return!0}}return!1},Xl=function(he){var xe=he.createElement("boundtest");xe.style.width="50px",xe.style.display="block",xe.style.fontSize="12px",xe.style.letterSpacing="0px",xe.style.wordSpacing="0px",he.body.appendChild(xe);var De=he.createRange();xe.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var tt=xe.firstChild,rr=r(tt.data).map(function(kn){return i(kn)}),Ur=0,ln={},bn=rr.every(function(kn,Pi){De.setStart(tt,Ur),De.setEnd(tt,Ur+kn.length);var Si=De.getBoundingClientRect();Ur+=kn.length;var Fi=Si.x>ln.x||Si.y>ln.y;return ln=Si,Pi===0?!0:Fi});return he.body.removeChild(xe),bn},jo=function(){return typeof new Image().crossOrigin!="undefined"},Ho=function(){return typeof new XMLHttpRequest().responseType=="string"},us=function(he){var xe=new Image,De=he.createElement("canvas"),tt=De.getContext("2d");if(!tt)return!1;xe.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{tt.drawImage(xe,0,0),De.toDataURL()}catch(rr){return!1}return!0},cs=function(he){return he[0]===0&&he[1]===255&&he[2]===0&&he[3]===255},Cs=function(he){var xe=he.createElement("canvas"),De=100;xe.width=De,xe.height=De;var tt=xe.getContext("2d");if(!tt)return Promise.reject(!1);tt.fillStyle="rgb(0, 255, 0)",tt.fillRect(0,0,De,De);var rr=new Image,Ur=xe.toDataURL();rr.src=Ur;var ln=ds(De,De,0,0,rr);return tt.fillStyle="red",tt.fillRect(0,0,De,De),Js(ln).then(function(bn){tt.drawImage(bn,0,0);var kn=tt.getImageData(0,0,De,De).data;tt.fillStyle="red",tt.fillRect(0,0,De,De);var Pi=he.createElement("div");return Pi.style.backgroundImage="url("+Ur+")",Pi.style.height=De+"px",cs(kn)?Js(ds(De,De,0,0,Pi)):Promise.reject(!1)}).then(function(bn){return tt.drawImage(bn,0,0),cs(tt.getImageData(0,0,De,De).data)}).catch(function(){return!1})},ds=function(he,xe,De,tt,rr){var Ur="http://www.w3.org/2000/svg",ln=document.createElementNS(Ur,"svg"),bn=document.createElementNS(Ur,"foreignObject");return ln.setAttributeNS(null,"width",he.toString()),ln.setAttributeNS(null,"height",xe.toString()),bn.setAttributeNS(null,"width","100%"),bn.setAttributeNS(null,"height","100%"),bn.setAttributeNS(null,"x",De.toString()),bn.setAttributeNS(null,"y",tt.toString()),bn.setAttributeNS(null,"externalResourcesRequired","true"),ln.appendChild(bn),bn.appendChild(rr),ln},Js=function(he){return new Promise(function(xe,De){var tt=new Image;tt.onload=function(){return xe(tt)},tt.onerror=De,tt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(he))})},ss={get SUPPORT_RANGE_BOUNDS(){var lr=Fl(document);return Object.defineProperty(ss,"SUPPORT_RANGE_BOUNDS",{value:lr}),lr},get SUPPORT_WORD_BREAKING(){var lr=ss.SUPPORT_RANGE_BOUNDS&&Xl(document);return Object.defineProperty(ss,"SUPPORT_WORD_BREAKING",{value:lr}),lr},get SUPPORT_SVG_DRAWING(){var lr=us(document);return Object.defineProperty(ss,"SUPPORT_SVG_DRAWING",{value:lr}),lr},get SUPPORT_FOREIGNOBJECT_DRAWING(){var lr=typeof Array.from=="function"&&typeof window.fetch=="function"?Cs(document):Promise.resolve(!1);return Object.defineProperty(ss,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:lr}),lr},get SUPPORT_CORS_IMAGES(){var lr=jo();return Object.defineProperty(ss,"SUPPORT_CORS_IMAGES",{value:lr}),lr},get SUPPORT_RESPONSE_TYPE(){var lr=Ho();return Object.defineProperty(ss,"SUPPORT_RESPONSE_TYPE",{value:lr}),lr},get SUPPORT_CORS_XHR(){var lr="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ss,"SUPPORT_CORS_XHR",{value:lr}),lr},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var lr=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(ss,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:lr}),lr}},Is=function(){function lr(he,xe){this.text=he,this.bounds=xe}return lr}(),Al=function(he,xe,De,tt){var rr=vu(xe,De),Ur=[],ln=0;return rr.forEach(function(bn){if(De.textDecorationLine.length||bn.trim().length>0)if(ss.SUPPORT_RANGE_BOUNDS){var kn=uu(tt,ln,bn.length).getClientRects();if(kn.length>1){var Pi=Yl(bn),Si=0;Pi.forEach(function(Na){Ur.push(new Is(Na,f.fromDOMRectList(he,uu(tt,Si+ln,Na.length).getClientRects()))),Si+=Na.length})}else Ur.push(new Is(bn,f.fromDOMRectList(he,kn)))}else{var Fi=tt.splitText(bn.length);Ur.push(new Is(bn,lu(he,tt))),tt=Fi}else ss.SUPPORT_RANGE_BOUNDS||(tt=tt.splitText(bn.length));ln+=bn.length}),Ur},lu=function(he,xe){var De=xe.ownerDocument;if(De){var tt=De.createElement("html2canvaswrapper");tt.appendChild(xe.cloneNode(!0));var rr=xe.parentNode;if(rr){rr.replaceChild(tt,xe);var Ur=c(he,tt);return tt.firstChild&&rr.replaceChild(tt.firstChild,tt),Ur}}return f.EMPTY},uu=function(he,xe,De){var tt=he.ownerDocument;if(!tt)throw new Error("Node has no owner document");var rr=tt.createRange();return rr.setStart(he,xe),rr.setEnd(he,xe+De),rr},Yl=function(he){if(ss.SUPPORT_NATIVE_TEXT_SEGMENTATION){var xe=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(xe.segment(he)).map(function(De){return De.segment})}return Dl(he)},nu=function(he,xe){if(ss.SUPPORT_NATIVE_TEXT_SEGMENTATION){var De=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(De.segment(he)).map(function(tt){return tt.segment})}return bu(he,xe)},vu=function(he,xe){return xe.letterSpacing!==0?Yl(he):nu(he,xe)},yu=[32,160,4961,65792,65793,4153,4241],bu=function(he,xe){for(var De=Pe(he,{lineBreak:xe.lineBreak,wordBreak:xe.overflowWrap==="break-word"?"break-word":xe.wordBreak}),tt=[],rr,Ur=function(){if(rr.value){var bn=rr.value.slice(),kn=r(bn),Pi="";kn.forEach(function(Si){yu.indexOf(Si)===-1?Pi+=i(Si):(Pi.length&&tt.push(Pi),tt.push(i(Si)),Pi="")}),Pi.length&&tt.push(Pi)}};!(rr=De.next()).done;)Ur();return tt},_l=function(){function lr(he,xe,De){this.text=Rl(xe.data,De.textTransform),this.textBounds=Al(he,this.text,De,xe)}return lr}(),Rl=function(he,xe){switch(xe){case 1:return he.toLowerCase();case 3:return he.replace(Wl,es);case 2:return he.toUpperCase();default:return he}},Wl=/(^|\s|:|-|\(|\))([a-z])/g,es=function(he,xe,De){return he.length>0?xe+De.toUpperCase():he},$a=function(lr){x(he,lr);function he(xe,De){var tt=lr.call(this,xe,De)||this;return tt.src=De.currentSrc||De.src,tt.intrinsicWidth=De.naturalWidth,tt.intrinsicHeight=De.naturalHeight,tt.context.cache.addImage(tt.src),tt}return he}(ms),Eo=function(lr){x(he,lr);function he(xe,De){var tt=lr.call(this,xe,De)||this;return tt.canvas=De,tt.intrinsicWidth=De.width,tt.intrinsicHeight=De.height,tt}return he}(ms),Ko=function(lr){x(he,lr);function he(xe,De){var tt=lr.call(this,xe,De)||this,rr=new XMLSerializer,Ur=c(xe,De);return De.setAttribute("width",Ur.width+"px"),De.setAttribute("height",Ur.height+"px"),tt.svg="data:image/svg+xml,"+encodeURIComponent(rr.serializeToString(De)),tt.intrinsicWidth=De.width.baseVal.value,tt.intrinsicHeight=De.height.baseVal.value,tt.context.cache.addImage(tt.svg),tt}return he}(ms),js=function(lr){x(he,lr);function he(xe,De){var tt=lr.call(this,xe,De)||this;return tt.value=De.value,tt}return he}(ms),Bl=function(lr){x(he,lr);function he(xe,De){var tt=lr.call(this,xe,De)||this;return tt.start=De.start,tt.reversed=typeof De.reversed=="boolean"&&De.reversed===!0,tt}return he}(ms),Ul=[{type:15,flags:0,unit:"px",number:3}],Ol=[{type:16,flags:0,number:50}],Ll=function(he){return he.width>he.height?new f(he.left+(he.width-he.height)/2,he.top,he.height,he.height):he.width<he.height?new f(he.left,he.top+(he.height-he.width)/2,he.width,he.width):he},jl=function(he){var xe=he.type===cu?new Array(he.value.length+1).join("\u2022"):he.value;return xe.length===0?he.placeholder||"":xe},Hl="checkbox",Vs="radio",cu="password",wu=707406591,Au=function(lr){x(he,lr);function he(xe,De){var tt=lr.call(this,xe,De)||this;tt.type=De.type.toLowerCase(),tt.checked=De.checked,tt.value=jl(De),(tt.type===Hl||tt.type===Vs)&&(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=Ll(tt.bounds));switch(tt.type){case Hl:tt.styles.borderTopRightRadius=tt.styles.borderTopLeftRadius=tt.styles.borderBottomRightRadius=tt.styles.borderBottomLeftRadius=Ul;break;case Vs:tt.styles.borderTopRightRadius=tt.styles.borderTopLeftRadius=tt.styles.borderBottomRightRadius=tt.styles.borderBottomLeftRadius=Ol;break}return tt}return he}(ms),_u=function(lr){x(he,lr);function he(xe,De){var tt=lr.call(this,xe,De)||this,rr=De.options[De.selectedIndex||0];return tt.value=rr&&rr.text||"",tt}return he}(ms),Vu=function(lr){x(he,lr);function he(xe,De){var tt=lr.call(this,xe,De)||this;return tt.value=De.value,tt}return he}(ms),Fu=function(lr){x(he,lr);function he(xe,De){var tt=lr.call(this,xe,De)||this;tt.src=De.src,tt.width=parseInt(De.width,10)||0,tt.height=parseInt(De.height,10)||0,tt.backgroundColor=tt.styles.backgroundColor;try{if(De.contentWindow&&De.contentWindow.document&&De.contentWindow.document.documentElement){tt.tree=Xu(xe,De.contentWindow.document.documentElement);var rr=De.contentWindow.document.documentElement?di(xe,getComputedStyle(De.contentWindow.document.documentElement).backgroundColor):Jt.TRANSPARENT,Ur=De.contentWindow.document.body?di(xe,getComputedStyle(De.contentWindow.document.body).backgroundColor):Jt.TRANSPARENT;tt.backgroundColor=So(rr)?So(Ur)?tt.styles.backgroundColor:Ur:rr}}catch(ln){}return tt}return he}(ms),ec=["OL","UL","MENU"],Bu=function lr(he,xe,De,tt){for(var rr=xe.firstChild,Ur=void 0;rr;rr=Ur)if(Ur=rr.nextSibling,Ou(rr)&&rr.data.trim().length>0)De.textNodes.push(new _l(he,rr,De.styles));else if(Ql(rr))if(Zt(rr)&&rr.assignedNodes)rr.assignedNodes().forEach(function(bn){return lr(he,bn,De,tt)});else{var ln=Gu(he,rr);ln.styles.isVisible()&&(Yu(rr,ln,tt)?ln.flags|=4:Uu(ln.styles)&&(ln.flags|=2),ec.indexOf(rr.tagName)!==-1&&(ln.flags|=8),De.elements.push(ln),rr.slot,rr.shadowRoot?lr(he,rr.shadowRoot,ln,tt):!Dt(rr)&&!nr(rr)&&!Vt(rr)&&lr(he,rr,ln,tt))}},Gu=function(he,xe){return ee(xe)?new $a(he,xe):Yr(xe)?new Eo(he,xe):nr(xe)?new Ko(he,xe):Eu(xe)?new js(he,xe):ge(xe)?new Bl(he,xe):je(xe)?new Au(he,xe):Vt(xe)?new _u(he,xe):Dt(xe)?new Vu(he,xe):Ae(xe)?new Fu(he,xe):new ms(he,xe)},Xu=function(he,xe){var De=Gu(he,xe);return De.flags|=4,Bu(he,xe,De,De),De},Yu=function(he,xe,De){return xe.styles.isPositionedWithZIndex()||xe.styles.opacity<1||xe.styles.isTransformed()||Er(he)&&De.styles.isTransparent()},Uu=function(he){return he.isPositioned()||he.isFloating()},Ou=function(he){return he.nodeType===Node.TEXT_NODE},Ql=function(he){return he.nodeType===Node.ELEMENT_NODE},Iu=function(he){return Ql(he)&&typeof he.style!="undefined"&&!iu(he)},iu=function(he){return typeof he.className=="object"},Eu=function(he){return he.tagName==="LI"},ge=function(he){return he.tagName==="OL"},je=function(he){return he.tagName==="INPUT"},mt=function(he){return he.tagName==="HTML"},nr=function(he){return he.tagName==="svg"},Er=function(he){return he.tagName==="BODY"},Yr=function(he){return he.tagName==="CANVAS"},Le=function(he){return he.tagName==="VIDEO"},ee=function(he){return he.tagName==="IMG"},Ae=function(he){return he.tagName==="IFRAME"},ze=function(he){return he.tagName==="STYLE"},lt=function(he){return he.tagName==="SCRIPT"},Dt=function(he){return he.tagName==="TEXTAREA"},Vt=function(he){return he.tagName==="SELECT"},Zt=function(he){return he.tagName==="SLOT"},Ir=function(he){return he.tagName.indexOf("-")>0},$r=function(){function lr(){this.counters={}}return lr.prototype.getCounterValue=function(he){var xe=this.counters[he];return xe&&xe.length?xe[xe.length-1]:1},lr.prototype.getCounterValues=function(he){var xe=this.counters[he];return xe||[]},lr.prototype.pop=function(he){var xe=this;he.forEach(function(De){return xe.counters[De].pop()})},lr.prototype.parse=function(he){var xe=this,De=he.counterIncrement,tt=he.counterReset,rr=!0;De!==null&&De.forEach(function(ln){var bn=xe.counters[ln.counter];bn&&ln.increment!==0&&(rr=!1,bn.length||bn.push(1),bn[Math.max(0,bn.length-1)]+=ln.increment)});var Ur=[];return rr&&tt.forEach(function(ln){var bn=xe.counters[ln.counter];Ur.push(ln.counter),bn||(bn=xe.counters[ln.counter]=[]),bn.push(ln.reset)}),Ur},lr}(),Tr={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"]},xr={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"]},zr={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"]},nn={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"]},On=function(he,xe,De,tt,rr,Ur){return he<xe||he>De?$(he,rr,Ur.length>0):tt.integers.reduce(function(ln,bn,kn){for(;he>=bn;)he-=bn,ln+=tt.values[kn];return ln},"")+Ur},gi=function(he,xe,De,tt){var rr="";do De||he--,rr=tt(he)+rr,he/=xe;while(he*xe>=xe);return rr},Ai=function(he,xe,De,tt,rr){var Ur=De-xe+1;return(he<0?"-":"")+(gi(Math.abs(he),Ur,tt,function(ln){return i(Math.floor(ln%Ur)+xe)})+rr)},Qi=function(he,xe,De){De===void 0&&(De=". ");var tt=xe.length;return gi(Math.abs(he),tt,!1,function(rr){return xe[Math.floor(rr%tt)]})+De},Bi=1<<0,Ma=1<<1,ea=1<<2,oo=1<<3,Ba=function(he,xe,De,tt,rr,Ur){if(he<-9999||he>9999)return $(he,4,rr.length>0);var ln=Math.abs(he),bn=rr;if(ln===0)return xe[0]+bn;for(var kn=0;ln>0&&kn<=4;kn++){var Pi=ln%10;Pi===0&&Vi(Ur,Bi)&&bn!==""?bn=xe[Pi]+bn:Pi>1||Pi===1&&kn===0||Pi===1&&kn===1&&Vi(Ur,Ma)||Pi===1&&kn===1&&Vi(Ur,ea)&&he>100||Pi===1&&kn>1&&Vi(Ur,oo)?bn=xe[Pi]+(kn>0?De[kn-1]:"")+bn:Pi===1&&kn>0&&(bn=De[kn-1]+bn),ln=Math.floor(ln/10)}return(he<0?tt:"")+bn},Ro="\u5341\u767E\u5343\u842C",Zo="\u62FE\u4F70\u4EDF\u842C",P="\u30DE\u30A4\u30CA\u30B9",K="\uB9C8\uC774\uB108\uC2A4",$=function(he,xe,De){var tt=De?". ":"",rr=De?"\u3001":"",Ur=De?", ":"",ln=De?" ":"";switch(xe){case 0:return"\u2022"+ln;case 1:return"\u25E6"+ln;case 2:return"\u25FE"+ln;case 5:var bn=Ai(he,48,57,!0,tt);return bn.length<4?"0"+bn:bn;case 4:return Qi(he,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",rr);case 6:return On(he,1,3999,Tr,3,tt).toLowerCase();case 7:return On(he,1,3999,Tr,3,tt);case 8:return Ai(he,945,969,!1,tt);case 9:return Ai(he,97,122,!1,tt);case 10:return Ai(he,65,90,!1,tt);case 11:return Ai(he,1632,1641,!0,tt);case 12:case 49:return On(he,1,9999,xr,3,tt);case 35:return On(he,1,9999,xr,3,tt).toLowerCase();case 13:return Ai(he,2534,2543,!0,tt);case 14:case 30:return Ai(he,6112,6121,!0,tt);case 15:return Qi(he,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",rr);case 16:return Qi(he,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",rr);case 17:case 48:return Ba(he,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ro,"\u8CA0",rr,Ma|ea|oo);case 47:return Ba(he,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Zo,"\u8CA0",rr,Bi|Ma|ea|oo);case 42:return Ba(he,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ro,"\u8D1F",rr,Ma|ea|oo);case 41:return Ba(he,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Zo,"\u8D1F",rr,Bi|Ma|ea|oo);case 26:return Ba(he,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",P,rr,0);case 25:return Ba(he,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",P,rr,Bi|Ma|ea);case 31:return Ba(he,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",K,Ur,Bi|Ma|ea);case 33:return Ba(he,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",K,Ur,0);case 32:return Ba(he,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",K,Ur,Bi|Ma|ea);case 18:return Ai(he,2406,2415,!0,tt);case 20:return On(he,1,19999,nn,3,tt);case 21:return Ai(he,2790,2799,!0,tt);case 22:return Ai(he,2662,2671,!0,tt);case 22:return On(he,1,10999,zr,3,tt);case 23:return Qi(he,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Qi(he,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Ai(he,3302,3311,!0,tt);case 28:return Qi(he,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",rr);case 29:return Qi(he,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",rr);case 34:return Ai(he,3792,3801,!0,tt);case 37:return Ai(he,6160,6169,!0,tt);case 38:return Ai(he,4160,4169,!0,tt);case 39:return Ai(he,2918,2927,!0,tt);case 40:return Ai(he,1776,1785,!0,tt);case 43:return Ai(he,3046,3055,!0,tt);case 44:return Ai(he,3174,3183,!0,tt);case 45:return Ai(he,3664,3673,!0,tt);case 46:return Ai(he,3872,3881,!0,tt);case 3:default:return Ai(he,48,57,!0,tt)}},re="data-html2canvas-ignore",ue=function(){function lr(he,xe,De){if(this.context=he,this.options=De,this.scrolledElements=[],this.referenceElement=xe,this.counters=new $r,this.quoteDepth=0,!xe.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(xe.ownerDocument.documentElement,!1)}return lr.prototype.toIFrame=function(he,xe){var De=this,tt=gt(he,xe);if(!tt.contentWindow)return Promise.reject("Unable to find iframe window");var rr=he.defaultView.pageXOffset,Ur=he.defaultView.pageYOffset,ln=tt.contentWindow,bn=ln.document,kn=cr(tt).then(function(){return A(De,void 0,void 0,function(){var Pi,Si;return b(this,function(Fi){switch(Fi.label){case 0:return this.scrolledElements.forEach(Wi),ln&&(ln.scrollTo(xe.left,xe.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(ln.scrollY!==xe.top||ln.scrollX!==xe.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(ln.scrollX-xe.left,ln.scrollY-xe.top,0,0))),Pi=this.options.onclone,Si=this.clonedReferenceElement,typeof Si=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:bn.fonts&&bn.fonts.ready?[4,bn.fonts.ready]:[3,2];case 1:Fi.sent(),Fi.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,or(bn)]:[3,4];case 3:Fi.sent(),Fi.label=4;case 4:return typeof Pi=="function"?[2,Promise.resolve().then(function(){return Pi(bn,Si)}).then(function(){return tt})]:[2,tt]}})})});return bn.open(),bn.write(ui(document.doctype)+"<html></html>"),hi(this.referenceElement.ownerDocument,rr,Ur),bn.replaceChild(bn.adoptNode(this.documentElement),bn.documentElement),bn.close(),kn},lr.prototype.createElementClone=function(he){if(ys(he,2))debugger;if(Yr(he))return this.createCanvasClone(he);if(Le(he))return this.createVideoClone(he);if(ze(he))return this.createStyleClone(he);var xe=he.cloneNode(!1);return ee(xe)&&(ee(he)&&he.currentSrc&&he.currentSrc!==he.src&&(xe.src=he.currentSrc,xe.srcset=""),xe.loading==="lazy"&&(xe.loading="eager")),Ir(xe)?this.createCustomElementClone(xe):xe},lr.prototype.createCustomElementClone=function(he){var xe=document.createElement("html2canvascustomelement");return Rn(he.style,xe),xe},lr.prototype.createStyleClone=function(he){try{var xe=he.sheet;if(xe&&xe.cssRules){var De=[].slice.call(xe.cssRules,0).reduce(function(rr,Ur){return Ur&&typeof Ur.cssText=="string"?rr+Ur.cssText:rr},""),tt=he.cloneNode(!1);return tt.textContent=De,tt}}catch(rr){if(this.context.logger.error("Unable to access cssRules property",rr),rr.name!=="SecurityError")throw rr}return he.cloneNode(!1)},lr.prototype.createCanvasClone=function(he){var xe;if(this.options.inlineImages&&he.ownerDocument){var De=he.ownerDocument.createElement("img");try{return De.src=he.toDataURL(),De}catch(kn){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",he)}}var tt=he.cloneNode(!1);try{tt.width=he.width,tt.height=he.height;var rr=he.getContext("2d"),Ur=tt.getContext("2d");if(Ur)if(!this.options.allowTaint&&rr)Ur.putImageData(rr.getImageData(0,0,he.width,he.height),0,0);else{var ln=(xe=he.getContext("webgl2"))!==null&&xe!==void 0?xe:he.getContext("webgl");if(ln){var bn=ln.getContextAttributes();(bn==null?void 0:bn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",he)}Ur.drawImage(he,0,0)}return tt}catch(kn){this.context.logger.info("Unable to clone canvas as it is tainted",he)}return tt},lr.prototype.createVideoClone=function(he){var xe=he.ownerDocument.createElement("canvas");xe.width=he.offsetWidth,xe.height=he.offsetHeight;var De=xe.getContext("2d");try{return De&&(De.drawImage(he,0,0,xe.width,xe.height),this.options.allowTaint||De.getImageData(0,0,xe.width,xe.height)),xe}catch(rr){this.context.logger.info("Unable to clone video as it is tainted",he)}var tt=he.ownerDocument.createElement("canvas");return tt.width=he.offsetWidth,tt.height=he.offsetHeight,tt},lr.prototype.appendChildNode=function(he,xe,De){(!Ql(xe)||!lt(xe)&&!xe.hasAttribute(re)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(xe)))&&((!this.options.copyStyles||!Ql(xe)||!ze(xe))&&he.appendChild(this.cloneNode(xe,De)))},lr.prototype.cloneChildNodes=function(he,xe,De){for(var tt=this,rr=he.shadowRoot?he.shadowRoot.firstChild:he.firstChild;rr;rr=rr.nextSibling)if(Ql(rr)&&Zt(rr)&&typeof rr.assignedNodes=="function"){var Ur=rr.assignedNodes();Ur.length&&Ur.forEach(function(ln){return tt.appendChildNode(xe,ln,De)})}else this.appendChildNode(xe,rr,De)},lr.prototype.cloneNode=function(he,xe){if(Ou(he))return document.createTextNode(he.data);if(!he.ownerDocument)return he.cloneNode(!1);var De=he.ownerDocument.defaultView;if(De&&Ql(he)&&(Iu(he)||iu(he))){var tt=this.createElementClone(he);tt.style.transitionProperty="none";var rr=De.getComputedStyle(he),Ur=De.getComputedStyle(he,":before"),ln=De.getComputedStyle(he,":after");this.referenceElement===he&&Iu(tt)&&(this.clonedReferenceElement=tt),Er(tt)&&eo(tt);var bn=this.counters.parse(new qo(this.context,rr)),kn=this.resolvePseudoContent(he,tt,Ur,Me.BEFORE);Ir(he)&&(xe=!0),Le(he)||this.cloneChildNodes(he,tt,xe),kn&&tt.insertBefore(kn,tt.firstChild);var Pi=this.resolvePseudoContent(he,tt,ln,Me.AFTER);return Pi&&tt.appendChild(Pi),this.counters.pop(bn),(rr&&(this.options.copyStyles||iu(he))&&!Ae(he)||xe)&&Rn(rr,tt),(he.scrollTop!==0||he.scrollLeft!==0)&&this.scrolledElements.push([tt,he.scrollLeft,he.scrollTop]),(Dt(he)||Vt(he))&&(Dt(tt)||Vt(tt))&&(tt.value=he.value),tt}return he.cloneNode(!1)},lr.prototype.resolvePseudoContent=function(he,xe,De,tt){var rr=this;if(!De)return;var Ur=De.content,ln=xe.ownerDocument;if(!ln||!Ur||Ur==="none"||Ur==="-moz-alt-content"||De.display==="none")return;this.counters.parse(new qo(this.context,De));var bn=new Es(this.context,De),kn=ln.createElement("html2canvaspseudoelement");Rn(De,kn),bn.content.forEach(function(Si){if(Si.type===0)kn.appendChild(ln.createTextNode(Si.value));else if(Si.type===22){var Fi=ln.createElement("img");Fi.src=Si.value,Fi.style.opacity="1",kn.appendChild(Fi)}else if(Si.type===18){if(Si.name==="attr"){var Na=Si.values.filter(wo);Na.length&&kn.appendChild(ln.createTextNode(he.getAttribute(Na[0].value)||""))}else if(Si.name==="counter"){var ja=Si.values.filter(Dr),no=ja[0],Xo=ja[1];if(no&&wo(no)){var Lo=rr.counters.getCounterValue(no.value),Co=Xo&&wo(Xo)?Ea.parse(rr.context,Xo.value):3;kn.appendChild(ln.createTextNode($(Lo,Co,!1)))}}else if(Si.name==="counters"){var xs=Si.values.filter(Dr),no=xs[0],Ns=xs[1],Xo=xs[2];if(no&&wo(no)){var vs=rr.counters.getCounterValues(no.value),xo=Xo&&wo(Xo)?Ea.parse(rr.context,Xo.value):3,Fs=Ns&&Ns.type===0?Ns.value:"",Ks=vs.map(function(xu){return $(xu,xo,!1)}).join(Fs);kn.appendChild(ln.createTextNode(Ks))}}}else if(Si.type===20)switch(Si.value){case"open-quote":kn.appendChild(ln.createTextNode(as(bn.quotes,rr.quoteDepth++,!0)));break;case"close-quote":kn.appendChild(ln.createTextNode(as(bn.quotes,--rr.quoteDepth,!1)));break;default:kn.appendChild(ln.createTextNode(Si.value))}}),kn.className=ba+" "+va;var Pi=tt===Me.BEFORE?" "+ba:" "+va;return iu(xe)?xe.className.baseValue+=Pi:xe.className+=Pi,kn},lr.destroy=function(he){return he.parentNode?(he.parentNode.removeChild(he),!0):!1},lr}(),Me;(function(lr){lr[lr.BEFORE=0]="BEFORE",lr[lr.AFTER=1]="AFTER"})(Me||(Me={}));var gt=function(he,xe){var De=he.createElement("iframe");return De.className="html2canvas-container",De.style.visibility="hidden",De.style.position="fixed",De.style.left="-10000px",De.style.top="0px",De.style.border="0",De.width=xe.width.toString(),De.height=xe.height.toString(),De.scrolling="no",De.setAttribute(re,"true"),he.body.appendChild(De),De},zt=function(he){return new Promise(function(xe){if(he.complete){xe();return}if(!he.src){xe();return}he.onload=xe,he.onerror=xe})},or=function(he){return Promise.all([].slice.call(he.images,0).map(zt))},cr=function(he){return new Promise(function(xe,De){var tt=he.contentWindow;if(!tt)return De("No window assigned for iframe");var rr=tt.document;tt.onload=he.onload=function(){tt.onload=he.onload=null;var Ur=setInterval(function(){rr.body.childNodes.length>0&&rr.readyState==="complete"&&(clearInterval(Ur),xe(he))},50)}})},wn=["all","d","content"],Rn=function(he,xe){for(var De=he.length-1;De>=0;De--){var tt=he.item(De);wn.indexOf(tt)===-1&&xe.style.setProperty(tt,he.getPropertyValue(tt))}return xe},ui=function(he){var xe="";return he&&(xe+="<!DOCTYPE ",he.name&&(xe+=he.name),he.internalSubset&&(xe+=he.internalSubset),he.publicId&&(xe+='"'+he.publicId+'"'),he.systemId&&(xe+='"'+he.systemId+'"'),xe+=">"),xe},hi=function(he,xe,De){he&&he.defaultView&&(xe!==he.defaultView.pageXOffset||De!==he.defaultView.pageYOffset)&&he.defaultView.scrollTo(xe,De)},Wi=function(he){var xe=he[0],De=he[1],tt=he[2];xe.scrollLeft=De,xe.scrollTop=tt},ia=":before",xa=":after",ba="___html2canvas___pseudoelement_before",va="___html2canvas___pseudoelement_after",Ua=`{
content: "" !important;
display: none !important;
}`,eo=function(he){ko(he,"."+ba+ia+Ua+`
.`+va+xa+Ua)},ko=function(he,xe){var De=he.ownerDocument;if(De){var tt=De.createElement("style");tt.textContent=xe,he.appendChild(tt)}},To=function(){function lr(){}return lr.getOrigin=function(he){var xe=lr._link;return xe?(xe.href=he,xe.href=xe.href,xe.protocol+xe.hostname+xe.port):"about:blank"},lr.isSameOrigin=function(he){return lr.getOrigin(he)===lr._origin},lr.setContext=function(he){lr._link=he.document.createElement("a"),lr._origin=lr.getOrigin(he.location.href)},lr._origin="about:blank",lr}(),ns=function(){function lr(he,xe){this.context=he,this._options=xe,this._cache={}}return lr.prototype.addImage=function(he){var xe=Promise.resolve();return this.has(he)||(xl(he)||ul(he))&&(this._cache[he]=this.loadImage(he)).catch(function(){}),xe},lr.prototype.match=function(he){return this._cache[he]},lr.prototype.loadImage=function(he){return A(this,void 0,void 0,function(){var xe,De,tt,rr,Ur=this;return b(this,function(ln){switch(ln.label){case 0:return xe=To.isSameOrigin(he),De=!Sl(he)&&this._options.useCORS===!0&&ss.SUPPORT_CORS_IMAGES&&!xe,tt=!Sl(he)&&!xe&&!xl(he)&&typeof this._options.proxy=="string"&&ss.SUPPORT_CORS_XHR&&!De,!xe&&this._options.allowTaint===!1&&!Sl(he)&&!xl(he)&&!tt&&!De?[2]:(rr=he,tt?[4,this.proxy(rr)]:[3,2]);case 1:rr=ln.sent(),ln.label=2;case 2:return this.context.logger.debug("Added image "+he.substring(0,256)),[4,new Promise(function(bn,kn){var Pi=new Image;Pi.onload=function(){return bn(Pi)},Pi.onerror=kn,(tl(rr)||De)&&(Pi.crossOrigin="anonymous"),Pi.src=rr,Pi.complete===!0&&setTimeout(function(){return bn(Pi)},500),Ur._options.imageTimeout>0&&setTimeout(function(){return kn("Timed out ("+Ur._options.imageTimeout+"ms) loading image")},Ur._options.imageTimeout)})];case 3:return[2,ln.sent()]}})})},lr.prototype.has=function(he){return typeof this._cache[he]!="undefined"},lr.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},lr.prototype.proxy=function(he){var xe=this,De=this._options.proxy;if(!De)throw new Error("No proxy defined");var tt=he.substring(0,256);return new Promise(function(rr,Ur){var ln=ss.SUPPORT_RESPONSE_TYPE?"blob":"text",bn=new XMLHttpRequest;bn.onload=function(){if(bn.status===200)if(ln==="text")rr(bn.response);else{var Si=new FileReader;Si.addEventListener("load",function(){return rr(Si.result)},!1),Si.addEventListener("error",function(Fi){return Ur(Fi)},!1),Si.readAsDataURL(bn.response)}else Ur("Failed to proxy resource "+tt+" with status code "+bn.status)},bn.onerror=Ur;var kn=De.indexOf("?")>-1?"&":"?";if(bn.open("GET",""+De+kn+"url="+encodeURIComponent(he)+"&responseType="+ln),ln!=="text"&&bn instanceof XMLHttpRequest&&(bn.responseType=ln),xe._options.imageTimeout){var Pi=xe._options.imageTimeout;bn.timeout=Pi,bn.ontimeout=function(){return Ur("Timed out ("+Pi+"ms) proxying "+tt)}}bn.send()})},lr}(),Ss=/^data:image\/svg\+xml/i,Hs=/^data:image\/.*;base64,/i,Ls=/^data:image\/.*/i,ul=function(he){return ss.SUPPORT_SVG_DRAWING||!cl(he)},Sl=function(he){return Ls.test(he)},tl=function(he){return Hs.test(he)},xl=function(he){return he.substr(0,4)==="blob"},cl=function(he){return he.substr(-3).toLowerCase()==="svg"||Ss.test(he)},Oa=function(){function lr(he,xe){this.type=0,this.x=he,this.y=xe}return lr.prototype.add=function(he,xe){return new lr(this.x+he,this.y+xe)},lr}(),ks=function(he,xe,De){return new Oa(he.x+(xe.x-he.x)*De,he.y+(xe.y-he.y)*De)},Ps=function(){function lr(he,xe,De,tt){this.type=1,this.start=he,this.startControl=xe,this.endControl=De,this.end=tt}return lr.prototype.subdivide=function(he,xe){var De=ks(this.start,this.startControl,he),tt=ks(this.startControl,this.endControl,he),rr=ks(this.endControl,this.end,he),Ur=ks(De,tt,he),ln=ks(tt,rr,he),bn=ks(Ur,ln,he);return xe?new lr(this.start,De,Ur,bn):new lr(bn,ln,rr,this.end)},lr.prototype.add=function(he,xe){return new lr(this.start.add(he,xe),this.startControl.add(he,xe),this.endControl.add(he,xe),this.end.add(he,xe))},lr.prototype.reverse=function(){return new lr(this.end,this.endControl,this.startControl,this.start)},lr}(),Ys=function(he){return he.type===1},Lu=function(){function lr(he){var xe=he.styles,De=he.bounds,tt=Ci(xe.borderTopLeftRadius,De.width,De.height),rr=tt[0],Ur=tt[1],ln=Ci(xe.borderTopRightRadius,De.width,De.height),bn=ln[0],kn=ln[1],Pi=Ci(xe.borderBottomRightRadius,De.width,De.height),Si=Pi[0],Fi=Pi[1],Na=Ci(xe.borderBottomLeftRadius,De.width,De.height),ja=Na[0],no=Na[1],Xo=[];Xo.push((rr+bn)/De.width),Xo.push((ja+Si)/De.width),Xo.push((Ur+no)/De.height),Xo.push((kn+Fi)/De.height);var Lo=Math.max.apply(Math,Xo);Lo>1&&(rr/=Lo,Ur/=Lo,bn/=Lo,kn/=Lo,Si/=Lo,Fi/=Lo,ja/=Lo,no/=Lo);var Co=De.width-bn,xs=De.height-Fi,Ns=De.width-Si,vs=De.height-no,xo=xe.borderTopWidth,Fs=xe.borderRightWidth,Ks=xe.borderBottomWidth,As=xe.borderLeftWidth,pu=Jn(xe.paddingTop,he.bounds.width),xu=Jn(xe.paddingRight,he.bounds.width),mu=Jn(xe.paddingBottom,he.bounds.width),Ml=Jn(xe.paddingLeft,he.bounds.width);this.topLeftBorderDoubleOuterBox=rr>0||Ur>0?ts(De.left+As/3,De.top+xo/3,rr-As/3,Ur-xo/3,gs.TOP_LEFT):new Oa(De.left+As/3,De.top+xo/3),this.topRightBorderDoubleOuterBox=rr>0||Ur>0?ts(De.left+Co,De.top+xo/3,bn-Fs/3,kn-xo/3,gs.TOP_RIGHT):new Oa(De.left+De.width-Fs/3,De.top+xo/3),this.bottomRightBorderDoubleOuterBox=Si>0||Fi>0?ts(De.left+Ns,De.top+xs,Si-Fs/3,Fi-Ks/3,gs.BOTTOM_RIGHT):new Oa(De.left+De.width-Fs/3,De.top+De.height-Ks/3),this.bottomLeftBorderDoubleOuterBox=ja>0||no>0?ts(De.left+As/3,De.top+vs,ja-As/3,no-Ks/3,gs.BOTTOM_LEFT):new Oa(De.left+As/3,De.top+De.height-Ks/3),this.topLeftBorderDoubleInnerBox=rr>0||Ur>0?ts(De.left+As*2/3,De.top+xo*2/3,rr-As*2/3,Ur-xo*2/3,gs.TOP_LEFT):new Oa(De.left+As*2/3,De.top+xo*2/3),this.topRightBorderDoubleInnerBox=rr>0||Ur>0?ts(De.left+Co,De.top+xo*2/3,bn-Fs*2/3,kn-xo*2/3,gs.TOP_RIGHT):new Oa(De.left+De.width-Fs*2/3,De.top+xo*2/3),this.bottomRightBorderDoubleInnerBox=Si>0||Fi>0?ts(De.left+Ns,De.top+xs,Si-Fs*2/3,Fi-Ks*2/3,gs.BOTTOM_RIGHT):new Oa(De.left+De.width-Fs*2/3,De.top+De.height-Ks*2/3),this.bottomLeftBorderDoubleInnerBox=ja>0||no>0?ts(De.left+As*2/3,De.top+vs,ja-As*2/3,no-Ks*2/3,gs.BOTTOM_LEFT):new Oa(De.left+As*2/3,De.top+De.height-Ks*2/3),this.topLeftBorderStroke=rr>0||Ur>0?ts(De.left+As/2,De.top+xo/2,rr-As/2,Ur-xo/2,gs.TOP_LEFT):new Oa(De.left+As/2,De.top+xo/2),this.topRightBorderStroke=rr>0||Ur>0?ts(De.left+Co,De.top+xo/2,bn-Fs/2,kn-xo/2,gs.TOP_RIGHT):new Oa(De.left+De.width-Fs/2,De.top+xo/2),this.bottomRightBorderStroke=Si>0||Fi>0?ts(De.left+Ns,De.top+xs,Si-Fs/2,Fi-Ks/2,gs.BOTTOM_RIGHT):new Oa(De.left+De.width-Fs/2,De.top+De.height-Ks/2),this.bottomLeftBorderStroke=ja>0||no>0?ts(De.left+As/2,De.top+vs,ja-As/2,no-Ks/2,gs.BOTTOM_LEFT):new Oa(De.left+As/2,De.top+De.height-Ks/2),this.topLeftBorderBox=rr>0||Ur>0?ts(De.left,De.top,rr,Ur,gs.TOP_LEFT):new Oa(De.left,De.top),this.topRightBorderBox=bn>0||kn>0?ts(De.left+Co,De.top,bn,kn,gs.TOP_RIGHT):new Oa(De.left+De.width,De.top),this.bottomRightBorderBox=Si>0||Fi>0?ts(De.left+Ns,De.top+xs,Si,Fi,gs.BOTTOM_RIGHT):new Oa(De.left+De.width,De.top+De.height),this.bottomLeftBorderBox=ja>0||no>0?ts(De.left,De.top+vs,ja,no,gs.BOTTOM_LEFT):new Oa(De.left,De.top+De.height),this.topLeftPaddingBox=rr>0||Ur>0?ts(De.left+As,De.top+xo,Math.max(0,rr-As),Math.max(0,Ur-xo),gs.TOP_LEFT):new Oa(De.left+As,De.top+xo),this.topRightPaddingBox=bn>0||kn>0?ts(De.left+Math.min(Co,De.width-Fs),De.top+xo,Co>De.width+Fs?0:Math.max(0,bn-Fs),Math.max(0,kn-xo),gs.TOP_RIGHT):new Oa(De.left+De.width-Fs,De.top+xo),this.bottomRightPaddingBox=Si>0||Fi>0?ts(De.left+Math.min(Ns,De.width-As),De.top+Math.min(xs,De.height-Ks),Math.max(0,Si-Fs),Math.max(0,Fi-Ks),gs.BOTTOM_RIGHT):new Oa(De.left+De.width-Fs,De.top+De.height-Ks),this.bottomLeftPaddingBox=ja>0||no>0?ts(De.left+As,De.top+Math.min(vs,De.height-Ks),Math.max(0,ja-As),Math.max(0,no-Ks),gs.BOTTOM_LEFT):new Oa(De.left+As,De.top+De.height-Ks),this.topLeftContentBox=rr>0||Ur>0?ts(De.left+As+Ml,De.top+xo+pu,Math.max(0,rr-(As+Ml)),Math.max(0,Ur-(xo+pu)),gs.TOP_LEFT):new Oa(De.left+As+Ml,De.top+xo+pu),this.topRightContentBox=bn>0||kn>0?ts(De.left+Math.min(Co,De.width+As+Ml),De.top+xo+pu,Co>De.width+As+Ml?0:bn-As+Ml,kn-(xo+pu),gs.TOP_RIGHT):new Oa(De.left+De.width-(Fs+xu),De.top+xo+pu),this.bottomRightContentBox=Si>0||Fi>0?ts(De.left+Math.min(Ns,De.width-(As+Ml)),De.top+Math.min(xs,De.height+xo+pu),Math.max(0,Si-(Fs+xu)),Fi-(Ks+mu),gs.BOTTOM_RIGHT):new Oa(De.left+De.width-(Fs+xu),De.top+De.height-(Ks+mu)),this.bottomLeftContentBox=ja>0||no>0?ts(De.left+As+Ml,De.top+vs,Math.max(0,ja-(As+Ml)),no-(Ks+mu),gs.BOTTOM_LEFT):new Oa(De.left+As+Ml,De.top+De.height-(Ks+mu))}return lr}(),gs;(function(lr){lr[lr.TOP_LEFT=0]="TOP_LEFT",lr[lr.TOP_RIGHT=1]="TOP_RIGHT",lr[lr.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",lr[lr.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(gs||(gs={}));var ts=function(he,xe,De,tt,rr){var Ur=4*((Math.sqrt(2)-1)/3),ln=De*Ur,bn=tt*Ur,kn=he+De,Pi=xe+tt;switch(rr){case gs.TOP_LEFT:return new Ps(new Oa(he,Pi),new Oa(he,Pi-bn),new Oa(kn-ln,xe),new Oa(kn,xe));case gs.TOP_RIGHT:return new Ps(new Oa(he,xe),new Oa(he+ln,xe),new Oa(kn,Pi-bn),new Oa(kn,Pi));case gs.BOTTOM_RIGHT:return new Ps(new Oa(kn,xe),new Oa(kn,xe+bn),new Oa(he+ln,Pi),new Oa(he,Pi));case gs.BOTTOM_LEFT:default:return new Ps(new Oa(kn,Pi),new Oa(kn-ln,Pi),new Oa(he,xe+bn),new Oa(he,xe))}},zl=function(he){return[he.topLeftBorderBox,he.topRightBorderBox,he.bottomRightBorderBox,he.bottomLeftBorderBox]},yl=function(he){return[he.topLeftContentBox,he.topRightContentBox,he.bottomRightContentBox,he.bottomLeftContentBox]},Nu=function(he){return[he.topLeftPaddingBox,he.topRightPaddingBox,he.bottomRightPaddingBox,he.bottomLeftPaddingBox]},du=function(){function lr(he,xe,De){this.offsetX=he,this.offsetY=xe,this.matrix=De,this.type=0,this.target=2|4}return lr}(),Vl=function(){function lr(he,xe){this.path=he,this.target=xe,this.type=1}return lr}(),Su=function(){function lr(he){this.opacity=he,this.type=2,this.target=2|4}return lr}(),Il=function(he){return he.type===0},hu=function(he){return he.type===1},ju=function(he){return he.type===2},Qu=function(he,xe){return he.length===xe.length?he.some(function(De,tt){return De===xe[tt]}):!1},vc=function(he,xe,De,tt,rr){return he.map(function(Ur,ln){switch(ln){case 0:return Ur.add(xe,De);case 1:return Ur.add(xe+tt,De);case 2:return Ur.add(xe+tt,De+rr);case 3:return Ur.add(xe,De+rr)}return Ur})},Ac=function(){function lr(he){this.element=he,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return lr}(),tc=function(){function lr(he,xe){if(this.container=he,this.parent=xe,this.effects=[],this.curves=new Lu(this.container),this.container.styles.opacity<1&&this.effects.push(new Su(this.container.styles.opacity)),this.container.styles.transform!==null){var De=this.container.bounds.left+this.container.styles.transformOrigin[0].number,tt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,rr=this.container.styles.transform;this.effects.push(new du(De,tt,rr))}if(this.container.styles.overflowX!==0){var Ur=zl(this.curves),ln=Nu(this.curves);Qu(Ur,ln)?this.effects.push(new Vl(Ur,2|4)):(this.effects.push(new Vl(Ur,2)),this.effects.push(new Vl(ln,4)))}}return lr.prototype.getEffects=function(he){for(var xe=[2,3].indexOf(this.container.styles.position)===-1,De=this.parent,tt=this.effects.slice(0);De;){var rr=De.effects.filter(function(bn){return!hu(bn)});if(xe||De.container.styles.position!==0||!De.parent){if(tt.unshift.apply(tt,rr),xe=[2,3].indexOf(De.container.styles.position)===-1,De.container.styles.overflowX!==0){var Ur=zl(De.curves),ln=Nu(De.curves);Qu(Ur,ln)||tt.unshift(new Vl(ln,2|4))}}else tt.unshift.apply(tt,rr);De=De.parent}return tt.filter(function(bn){return Vi(bn.target,he)})},lr}(),yc=function lr(he,xe,De,tt){he.container.elements.forEach(function(rr){var Ur=Vi(rr.flags,4),ln=Vi(rr.flags,2),bn=new tc(rr,he);Vi(rr.styles.display,2048)&&tt.push(bn);var kn=Vi(rr.flags,8)?[]:tt;if(Ur||ln){var Pi=Ur||rr.styles.isPositioned()?De:xe,Si=new Ac(bn);if(rr.styles.isPositioned()||rr.styles.opacity<1||rr.styles.isTransformed()){var Fi=rr.styles.zIndex.order;if(Fi<0){var Na=0;Pi.negativeZIndex.some(function(no,Xo){return Fi>no.element.container.styles.zIndex.order?(Na=Xo,!1):Na>0}),Pi.negativeZIndex.splice(Na,0,Si)}else if(Fi>0){var ja=0;Pi.positiveZIndex.some(function(no,Xo){return Fi>=no.element.container.styles.zIndex.order?(ja=Xo+1,!1):ja>0}),Pi.positiveZIndex.splice(ja,0,Si)}else Pi.zeroOrAutoZIndexOrTransformedOrOpacity.push(Si)}else rr.styles.isFloating()?Pi.nonPositionedFloats.push(Si):Pi.nonPositionedInlineLevel.push(Si);lr(bn,Si,Ur?Si:De,kn)}else rr.styles.isInlineLevel()?xe.inlineLevel.push(bn):xe.nonInlineLevel.push(bn),lr(bn,xe,De,kn);Vi(rr.flags,8)&&sc(rr,kn)})},sc=function(he,xe){for(var De=he instanceof Bl?he.start:1,tt=he instanceof Bl?he.reversed:!1,rr=0;rr<xe.length;rr++){var Ur=xe[rr];Ur.container instanceof js&&typeof Ur.container.value=="number"&&Ur.container.value!==0&&(De=Ur.container.value),Ur.listValue=$(De,Ur.container.styles.listStyleType,!0),De+=tt?-1:1}},Du=function(he){var xe=new tc(he,null),De=new Ac(xe),tt=[];return yc(xe,De,De,tt),sc(xe.container,tt),De},hc=function(he,xe){switch(xe){case 0:return fu(he.topLeftBorderBox,he.topLeftPaddingBox,he.topRightBorderBox,he.topRightPaddingBox);case 1:return fu(he.topRightBorderBox,he.topRightPaddingBox,he.bottomRightBorderBox,he.bottomRightPaddingBox);case 2:return fu(he.bottomRightBorderBox,he.bottomRightPaddingBox,he.bottomLeftBorderBox,he.bottomLeftPaddingBox);case 3:default:return fu(he.bottomLeftBorderBox,he.bottomLeftPaddingBox,he.topLeftBorderBox,he.topLeftPaddingBox)}},bc=function(he,xe){switch(xe){case 0:return fu(he.topLeftBorderBox,he.topLeftBorderDoubleOuterBox,he.topRightBorderBox,he.topRightBorderDoubleOuterBox);case 1:return fu(he.topRightBorderBox,he.topRightBorderDoubleOuterBox,he.bottomRightBorderBox,he.bottomRightBorderDoubleOuterBox);case 2:return fu(he.bottomRightBorderBox,he.bottomRightBorderDoubleOuterBox,he.bottomLeftBorderBox,he.bottomLeftBorderDoubleOuterBox);case 3:default:return fu(he.bottomLeftBorderBox,he.bottomLeftBorderDoubleOuterBox,he.topLeftBorderBox,he.topLeftBorderDoubleOuterBox)}},Tc=function(he,xe){switch(xe){case 0:return fu(he.topLeftBorderDoubleInnerBox,he.topLeftPaddingBox,he.topRightBorderDoubleInnerBox,he.topRightPaddingBox);case 1:return fu(he.topRightBorderDoubleInnerBox,he.topRightPaddingBox,he.bottomRightBorderDoubleInnerBox,he.bottomRightPaddingBox);case 2:return fu(he.bottomRightBorderDoubleInnerBox,he.bottomRightPaddingBox,he.bottomLeftBorderDoubleInnerBox,he.bottomLeftPaddingBox);case 3:default:return fu(he.bottomLeftBorderDoubleInnerBox,he.bottomLeftPaddingBox,he.topLeftBorderDoubleInnerBox,he.topLeftPaddingBox)}},wc=function(he,xe){switch(xe){case 0:return Tu(he.topLeftBorderStroke,he.topRightBorderStroke);case 1:return Tu(he.topRightBorderStroke,he.bottomRightBorderStroke);case 2:return Tu(he.bottomRightBorderStroke,he.bottomLeftBorderStroke);case 3:default:return Tu(he.bottomLeftBorderStroke,he.topLeftBorderStroke)}},Tu=function(he,xe){var De=[];return Ys(he)?De.push(he.subdivide(.5,!1)):De.push(he),Ys(xe)?De.push(xe.subdivide(.5,!0)):De.push(xe),De},fu=function(he,xe,De,tt){var rr=[];return Ys(he)?rr.push(he.subdivide(.5,!1)):rr.push(he),Ys(De)?rr.push(De.subdivide(.5,!0)):rr.push(De),Ys(tt)?rr.push(tt.subdivide(.5,!0).reverse()):rr.push(tt),Ys(xe)?rr.push(xe.subdivide(.5,!1).reverse()):rr.push(xe),rr},fc=function(he){var xe=he.bounds,De=he.styles;return xe.add(De.borderLeftWidth,De.borderTopWidth,-(De.borderRightWidth+De.borderLeftWidth),-(De.borderTopWidth+De.borderBottomWidth))},lc=function(he){var xe=he.styles,De=he.bounds,tt=Jn(xe.paddingLeft,De.width),rr=Jn(xe.paddingRight,De.width),Ur=Jn(xe.paddingTop,De.width),ln=Jn(xe.paddingBottom,De.width);return De.add(tt+xe.borderLeftWidth,Ur+xe.borderTopWidth,-(xe.borderRightWidth+xe.borderLeftWidth+tt+rr),-(xe.borderTopWidth+xe.borderBottomWidth+Ur+ln))},Sc=function(he,xe){return he===0?xe.bounds:he===2?lc(xe):fc(xe)},Cc=function(he,xe){return he===0?xe.bounds:he===2?lc(xe):fc(xe)},Hu=function(he,xe,De){var tt=Sc(au(he.styles.backgroundOrigin,xe),he),rr=Cc(au(he.styles.backgroundClip,xe),he),Ur=Cu(au(he.styles.backgroundSize,xe),De,tt),ln=Ur[0],bn=Ur[1],kn=Ci(au(he.styles.backgroundPosition,xe),tt.width-ln,tt.height-bn),Pi=Mu(au(he.styles.backgroundRepeat,xe),kn,Ur,tt,rr),Si=Math.round(tt.left+kn[0]),Fi=Math.round(tt.top+kn[1]);return[Pi,Si,Fi,ln,bn]},Ru=function(he){return wo(he)&&he.value===Xn.AUTO},Ku=function(he){return typeof he=="number"},Cu=function(he,xe,De){var tt=xe[0],rr=xe[1],Ur=xe[2],ln=he[0],bn=he[1];if(!ln)return[0,0];if(ur(ln)&&bn&&ur(bn))return[Jn(ln,De.width),Jn(bn,De.height)];var kn=Ku(Ur);if(wo(ln)&&(ln.value===Xn.CONTAIN||ln.value===Xn.COVER)){if(Ku(Ur)){var Pi=De.width/De.height;return Pi<Ur!==(ln.value===Xn.COVER)?[De.width,De.width/Ur]:[De.height*Ur,De.height]}return[De.width,De.height]}var Si=Ku(tt),Fi=Ku(rr),Na=Si||Fi;if(Ru(ln)&&(!bn||Ru(bn))){if(Si&&Fi)return[tt,rr];if(!kn&&!Na)return[De.width,De.height];if(Na&&kn){var ja=Si?tt:rr*Ur,no=Fi?rr:tt/Ur;return[ja,no]}var Xo=Si?tt:De.width,Lo=Fi?rr:De.height;return[Xo,Lo]}if(kn){var Co=0,xs=0;return ur(ln)?Co=Jn(ln,De.width):ur(bn)&&(xs=Jn(bn,De.height)),Ru(ln)?Co=xs*Ur:(!bn||Ru(bn))&&(xs=Co/Ur),[Co,xs]}var Ns=null,vs=null;if(ur(ln)?Ns=Jn(ln,De.width):bn&&ur(bn)&&(vs=Jn(bn,De.height)),Ns!==null&&(!bn||Ru(bn))&&(vs=Si&&Fi?Ns/tt*rr:De.height),vs!==null&&Ru(ln)&&(Ns=Si&&Fi?vs/rr*tt:De.width),Ns!==null&&vs!==null)return[Ns,vs];throw new Error("Unable to calculate background-size for element")},au=function(he,xe){var De=he[xe];return typeof De=="undefined"?he[0]:De},Mu=function(he,xe,De,tt,rr){var Ur=xe[0],ln=xe[1],bn=De[0],kn=De[1];switch(he){case 2:return[new Oa(Math.round(tt.left),Math.round(tt.top+ln)),new Oa(Math.round(tt.left+tt.width),Math.round(tt.top+ln)),new Oa(Math.round(tt.left+tt.width),Math.round(kn+tt.top+ln)),new Oa(Math.round(tt.left),Math.round(kn+tt.top+ln))];case 3:return[new Oa(Math.round(tt.left+Ur),Math.round(tt.top)),new Oa(Math.round(tt.left+Ur+bn),Math.round(tt.top)),new Oa(Math.round(tt.left+Ur+bn),Math.round(tt.height+tt.top)),new Oa(Math.round(tt.left+Ur),Math.round(tt.height+tt.top))];case 1:return[new Oa(Math.round(tt.left+Ur),Math.round(tt.top+ln)),new Oa(Math.round(tt.left+Ur+bn),Math.round(tt.top+ln)),new Oa(Math.round(tt.left+Ur+bn),Math.round(tt.top+ln+kn)),new Oa(Math.round(tt.left+Ur),Math.round(tt.top+ln+kn))];default:return[new Oa(Math.round(rr.left),Math.round(rr.top)),new Oa(Math.round(rr.left+rr.width),Math.round(rr.top)),new Oa(Math.round(rr.left+rr.width),Math.round(rr.height+rr.top)),new Oa(Math.round(rr.left),Math.round(rr.height+rr.top))]}},uc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",xc=function(){function lr(he){this._data={},this._document=he}return lr.prototype.parseMetrics=function(he,xe){var De=this._document.createElement("div"),tt=this._document.createElement("img"),rr=this._document.createElement("span"),Ur=this._document.body;De.style.visibility="hidden",De.style.fontFamily=he,De.style.fontSize=xe,De.style.margin="0",De.style.padding="0",De.style.whiteSpace="nowrap",Ur.appendChild(De),tt.src=uc,tt.width=1,tt.height=1,tt.style.margin="0",tt.style.padding="0",tt.style.verticalAlign="baseline",rr.style.fontFamily=he,rr.style.fontSize=xe,rr.style.margin="0",rr.style.padding="0",rr.appendChild(this._document.createTextNode(cc)),De.appendChild(rr),De.appendChild(tt);var ln=tt.offsetTop-rr.offsetTop+2;De.removeChild(rr),De.appendChild(this._document.createTextNode(cc)),De.style.lineHeight="normal",tt.style.verticalAlign="super";var bn=tt.offsetTop-De.offsetTop+2;return Ur.removeChild(De),{baseline:ln,middle:bn}},lr.prototype.getMetrics=function(he,xe){var De=he+" "+xe;return typeof this._data[De]=="undefined"&&(this._data[De]=this.parseMetrics(he,xe)),this._data[De]},lr}(),Ec=function(){function lr(he,xe){this.context=he,this.options=xe}return lr}(),pc=1e4,mc=function(lr){x(he,lr);function he(xe,De){var tt=lr.call(this,xe,De)||this;return tt._activeEffects=[],tt.canvas=De.canvas?De.canvas:document.createElement("canvas"),tt.ctx=tt.canvas.getContext("2d"),De.canvas||(tt.canvas.width=Math.floor(De.width*De.scale),tt.canvas.height=Math.floor(De.height*De.scale),tt.canvas.style.width=De.width+"px",tt.canvas.style.height=De.height+"px"),tt.fontMetrics=new xc(document),tt.ctx.scale(tt.options.scale,tt.options.scale),tt.ctx.translate(-De.x,-De.y),tt.ctx.textBaseline="bottom",tt._activeEffects=[],tt.context.logger.debug("Canvas renderer initialized ("+De.width+"x"+De.height+") with scale "+De.scale),tt}return he.prototype.applyEffects=function(xe){for(var De=this;this._activeEffects.length;)this.popEffect();xe.forEach(function(tt){return De.applyEffect(tt)})},he.prototype.applyEffect=function(xe){this.ctx.save(),ju(xe)&&(this.ctx.globalAlpha=xe.opacity),Il(xe)&&(this.ctx.translate(xe.offsetX,xe.offsetY),this.ctx.transform(xe.matrix[0],xe.matrix[1],xe.matrix[2],xe.matrix[3],xe.matrix[4],xe.matrix[5]),this.ctx.translate(-xe.offsetX,-xe.offsetY)),hu(xe)&&(this.path(xe.path),this.ctx.clip()),this._activeEffects.push(xe)},he.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},he.prototype.renderStack=function(xe){return A(this,void 0,void 0,function(){var De;return b(this,function(tt){switch(tt.label){case 0:return De=xe.element.container.styles,De.isVisible()?[4,this.renderStackContent(xe)]:[3,2];case 1:tt.sent(),tt.label=2;case 2:return[2]}})})},he.prototype.renderNode=function(xe){return A(this,void 0,void 0,function(){return b(this,function(De){switch(De.label){case 0:if(Vi(xe.container.flags,16))debugger;return xe.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(xe)]:[3,3];case 1:return De.sent(),[4,this.renderNodeContent(xe)];case 2:De.sent(),De.label=3;case 3:return[2]}})})},he.prototype.renderTextWithLetterSpacing=function(xe,De,tt){var rr=this;if(De===0)this.ctx.fillText(xe.text,xe.bounds.left,xe.bounds.top+tt);else{var Ur=Yl(xe.text);Ur.reduce(function(ln,bn){return rr.ctx.fillText(bn,ln,xe.bounds.top+tt),ln+rr.ctx.measureText(bn).width},xe.bounds.left)}},he.prototype.createFontStyle=function(xe){var De=xe.fontVariant.filter(function(Ur){return Ur==="normal"||Ur==="small-caps"}).join(""),tt=Nc(xe.fontFamily).join(", "),rr=hs(xe.fontSize)?""+xe.fontSize.number+xe.fontSize.unit:xe.fontSize.number+"px";return[[xe.fontStyle,De,xe.fontWeight,rr,tt].join(" "),tt,rr]},he.prototype.renderTextNode=function(xe,De){return A(this,void 0,void 0,function(){var tt,rr,Ur,ln,bn,kn,Pi,Si,Fi=this;return b(this,function(Na){return tt=this.createFontStyle(De),rr=tt[0],Ur=tt[1],ln=tt[2],this.ctx.font=rr,this.ctx.direction=De.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",bn=this.fontMetrics.getMetrics(Ur,ln),kn=bn.baseline,Pi=bn.middle,Si=De.paintOrder,xe.textBounds.forEach(function(ja){Si.forEach(function(no){switch(no){case 0:Fi.ctx.fillStyle=Qt(De.color),Fi.renderTextWithLetterSpacing(ja,De.letterSpacing,kn);var Xo=De.textShadow;Xo.length&&ja.text.trim().length&&(Xo.slice(0).reverse().forEach(function(Lo){Fi.ctx.shadowColor=Qt(Lo.color),Fi.ctx.shadowOffsetX=Lo.offsetX.number*Fi.options.scale,Fi.ctx.shadowOffsetY=Lo.offsetY.number*Fi.options.scale,Fi.ctx.shadowBlur=Lo.blur.number,Fi.renderTextWithLetterSpacing(ja,De.letterSpacing,kn)}),Fi.ctx.shadowColor="",Fi.ctx.shadowOffsetX=0,Fi.ctx.shadowOffsetY=0,Fi.ctx.shadowBlur=0),De.textDecorationLine.length&&(Fi.ctx.fillStyle=Qt(De.textDecorationColor||De.color),De.textDecorationLine.forEach(function(Lo){switch(Lo){case 1:Fi.ctx.fillRect(ja.bounds.left,Math.round(ja.bounds.top+kn),ja.bounds.width,1);break;case 2:Fi.ctx.fillRect(ja.bounds.left,Math.round(ja.bounds.top),ja.bounds.width,1);break;case 3:Fi.ctx.fillRect(ja.bounds.left,Math.ceil(ja.bounds.top+Pi),ja.bounds.width,1);break}}));break;case 1:De.webkitTextStrokeWidth&&ja.text.trim().length&&(Fi.ctx.strokeStyle=Qt(De.webkitTextStrokeColor),Fi.ctx.lineWidth=De.webkitTextStrokeWidth,Fi.ctx.lineJoin=window.chrome?"miter":"round",Fi.ctx.strokeText(ja.text,ja.bounds.left,ja.bounds.top+kn)),Fi.ctx.strokeStyle="",Fi.ctx.lineWidth=0,Fi.ctx.lineJoin="miter";break}})}),[2]})})},he.prototype.renderReplacedElement=function(xe,De,tt){if(tt&&xe.intrinsicWidth>0&&xe.intrinsicHeight>0){var rr=lc(xe),Ur=Nu(De);this.path(Ur),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(tt,0,0,xe.intrinsicWidth,xe.intrinsicHeight,rr.left,rr.top,rr.width,rr.height),this.ctx.restore()}},he.prototype.renderNodeContent=function(xe){return A(this,void 0,void 0,function(){var De,tt,rr,Ur,ln,bn,kn,kn,Pi,Si,Fi,Na,ja,no,Xo,Lo,Co,xs,Ns,kn,vs,ja,Lo;return b(this,function(xo){switch(xo.label){case 0:this.applyEffects(xe.getEffects(4)),De=xe.container,tt=xe.curves,rr=De.styles,Ur=0,ln=De.textNodes,xo.label=1;case 1:return Ur<ln.length?(bn=ln[Ur],[4,this.renderTextNode(bn,rr)]):[3,4];case 2:xo.sent(),xo.label=3;case 3:return Ur++,[3,1];case 4:if(!(De instanceof $a))return[3,8];xo.label=5;case 5:return xo.trys.push([5,7,,8]),[4,this.context.cache.match(De.src)];case 6:return kn=xo.sent(),this.renderReplacedElement(De,tt,kn),[3,8];case 7:return xo.sent(),this.context.logger.error("Error loading image "+De.src),[3,8];case 8:if(De instanceof Eo&&this.renderReplacedElement(De,tt,De.canvas),!(De instanceof Ko))return[3,12];xo.label=9;case 9:return xo.trys.push([9,11,,12]),[4,this.context.cache.match(De.svg)];case 10:return kn=xo.sent(),this.renderReplacedElement(De,tt,kn),[3,12];case 11:return xo.sent(),this.context.logger.error("Error loading svg "+De.svg.substring(0,255)),[3,12];case 12:return De instanceof Fu&&De.tree?(Pi=new he(this.context,{scale:this.options.scale,backgroundColor:De.backgroundColor,x:0,y:0,width:De.width,height:De.height}),[4,Pi.render(De.tree)]):[3,14];case 13:Si=xo.sent(),De.width&&De.height&&this.ctx.drawImage(Si,0,0,De.width,De.height,De.bounds.left,De.bounds.top,De.bounds.width,De.bounds.height),xo.label=14;case 14:if(De instanceof Au&&(Fi=Math.min(De.bounds.width,De.bounds.height),De.type===Hl?De.checked&&(this.ctx.save(),this.path([new Oa(De.bounds.left+Fi*.39363,De.bounds.top+Fi*.79),new Oa(De.bounds.left+Fi*.16,De.bounds.top+Fi*.5549),new Oa(De.bounds.left+Fi*.27347,De.bounds.top+Fi*.44071),new Oa(De.bounds.left+Fi*.39694,De.bounds.top+Fi*.5649),new Oa(De.bounds.left+Fi*.72983,De.bounds.top+Fi*.23),new Oa(De.bounds.left+Fi*.84,De.bounds.top+Fi*.34085),new Oa(De.bounds.left+Fi*.39363,De.bounds.top+Fi*.79)]),this.ctx.fillStyle=Qt(wu),this.ctx.fill(),this.ctx.restore()):De.type===Vs&&(De.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(De.bounds.left+Fi/2,De.bounds.top+Fi/2,Fi/4,0,Math.PI*2,!0),this.ctx.fillStyle=Qt(wu),this.ctx.fill(),this.ctx.restore()))),_c(De)&&De.value.length){Na=this.createFontStyle(rr),ja=Na[0],no=Na[1],Xo=this.fontMetrics.getMetrics(ja,no).baseline,this.ctx.font=ja,this.ctx.fillStyle=Qt(rr.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ic(De.styles.textAlign),Lo=lc(De),Co=0;switch(De.styles.textAlign){case 1:Co+=Lo.width/2;break;case 2:Co+=Lo.width;break}xs=Lo.add(Co,0,0,-Lo.height/2+1),this.ctx.save(),this.path([new Oa(Lo.left,Lo.top),new Oa(Lo.left+Lo.width,Lo.top),new Oa(Lo.left+Lo.width,Lo.top+Lo.height),new Oa(Lo.left,Lo.top+Lo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Is(De.value,xs),rr.letterSpacing,Xo),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Vi(De.styles.display,2048))return[3,20];if(!(De.styles.listStyleImage!==null))return[3,19];if(Ns=De.styles.listStyleImage,!(Ns.type===0))return[3,18];kn=void 0,vs=Ns.url,xo.label=15;case 15:return xo.trys.push([15,17,,18]),[4,this.context.cache.match(vs)];case 16:return kn=xo.sent(),this.ctx.drawImage(kn,De.bounds.left-(kn.width+10),De.bounds.top),[3,18];case 17:return xo.sent(),this.context.logger.error("Error loading list-style-image "+vs),[3,18];case 18:return[3,20];case 19:xe.listValue&&De.styles.listStyleType!==-1&&(ja=this.createFontStyle(rr)[0],this.ctx.font=ja,this.ctx.fillStyle=Qt(rr.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Lo=new f(De.bounds.left,De.bounds.top+Jn(De.styles.paddingTop,De.bounds.width),De.bounds.width,fa(rr.lineHeight,rr.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Is(xe.listValue,Lo),rr.letterSpacing,fa(rr.lineHeight,rr.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),xo.label=20;case 20:return[2]}})})},he.prototype.renderStackContent=function(xe){return A(this,void 0,void 0,function(){var De,tt,rr,Ur,ln,rr,bn,kn,rr,Pi,Si,rr,Fi,Na,rr,ja,no,rr,Xo,Lo,rr;return b(this,function(Co){switch(Co.label){case 0:if(Vi(xe.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(xe.element)];case 1:Co.sent(),De=0,tt=xe.negativeZIndex,Co.label=2;case 2:return De<tt.length?(rr=tt[De],[4,this.renderStack(rr)]):[3,5];case 3:Co.sent(),Co.label=4;case 4:return De++,[3,2];case 5:return[4,this.renderNodeContent(xe.element)];case 6:Co.sent(),Ur=0,ln=xe.nonInlineLevel,Co.label=7;case 7:return Ur<ln.length?(rr=ln[Ur],[4,this.renderNode(rr)]):[3,10];case 8:Co.sent(),Co.label=9;case 9:return Ur++,[3,7];case 10:bn=0,kn=xe.nonPositionedFloats,Co.label=11;case 11:return bn<kn.length?(rr=kn[bn],[4,this.renderStack(rr)]):[3,14];case 12:Co.sent(),Co.label=13;case 13:return bn++,[3,11];case 14:Pi=0,Si=xe.nonPositionedInlineLevel,Co.label=15;case 15:return Pi<Si.length?(rr=Si[Pi],[4,this.renderStack(rr)]):[3,18];case 16:Co.sent(),Co.label=17;case 17:return Pi++,[3,15];case 18:Fi=0,Na=xe.inlineLevel,Co.label=19;case 19:return Fi<Na.length?(rr=Na[Fi],[4,this.renderNode(rr)]):[3,22];case 20:Co.sent(),Co.label=21;case 21:return Fi++,[3,19];case 22:ja=0,no=xe.zeroOrAutoZIndexOrTransformedOrOpacity,Co.label=23;case 23:return ja<no.length?(rr=no[ja],[4,this.renderStack(rr)]):[3,26];case 24:Co.sent(),Co.label=25;case 25:return ja++,[3,23];case 26:Xo=0,Lo=xe.positiveZIndex,Co.label=27;case 27:return Xo<Lo.length?(rr=Lo[Xo],[4,this.renderStack(rr)]):[3,30];case 28:Co.sent(),Co.label=29;case 29:return Xo++,[3,27];case 30:return[2]}})})},he.prototype.mask=function(xe){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(xe.slice(0).reverse()),this.ctx.closePath()},he.prototype.path=function(xe){this.ctx.beginPath(),this.formatPath(xe),this.ctx.closePath()},he.prototype.formatPath=function(xe){var De=this;xe.forEach(function(tt,rr){var Ur=Ys(tt)?tt.start:tt;rr===0?De.ctx.moveTo(Ur.x,Ur.y):De.ctx.lineTo(Ur.x,Ur.y),Ys(tt)&&De.ctx.bezierCurveTo(tt.startControl.x,tt.startControl.y,tt.endControl.x,tt.endControl.y,tt.end.x,tt.end.y)})},he.prototype.renderRepeat=function(xe,De,tt,rr){this.path(xe),this.ctx.fillStyle=De,this.ctx.translate(tt,rr),this.ctx.fill(),this.ctx.translate(-tt,-rr)},he.prototype.resizeImage=function(xe,De,tt){var rr;if(xe.width===De&&xe.height===tt)return xe;var Ur=(rr=this.canvas.ownerDocument)!==null&&rr!==void 0?rr:document,ln=Ur.createElement("canvas");ln.width=Math.max(1,De),ln.height=Math.max(1,tt);var bn=ln.getContext("2d");return bn.drawImage(xe,0,0,xe.width,xe.height,0,0,De,tt),ln},he.prototype.renderBackgroundImage=function(xe){return A(this,void 0,void 0,function(){var De,tt,rr,Ur,ln,bn;return b(this,function(kn){switch(kn.label){case 0:De=xe.styles.backgroundImage.length-1,tt=function(Si){var Fi,Na,ja,no,Xo,Lo,Co,xs,Ns,vs,no,Xo,Lo,Co,xs,xo,Fs,Ks,As,pu,xu,mu,Ml,rc,Ns,Pu,no,Ju,Zu,Co,xs,$u,Xo,Lo,nc,ku,qu,ic,ac,Wu,oc,zu;return b(this,function(dc){switch(dc.label){case 0:if(!(Si.type===0))return[3,5];Fi=void 0,Na=Si.url,dc.label=1;case 1:return dc.trys.push([1,3,,4]),[4,rr.context.cache.match(Na)];case 2:return Fi=dc.sent(),[3,4];case 3:return dc.sent(),rr.context.logger.error("Error loading background-image "+Na),[3,4];case 4:return Fi&&(ja=Hu(xe,De,[Fi.width,Fi.height,Fi.width/Fi.height]),no=ja[0],Xo=ja[1],Lo=ja[2],Co=ja[3],xs=ja[4],Ns=rr.ctx.createPattern(rr.resizeImage(Fi,Co,xs),"repeat"),rr.renderRepeat(no,Ns,Xo,Lo)),[3,6];case 5:hr(Si)?(vs=Hu(xe,De,[null,null,null]),no=vs[0],Xo=vs[1],Lo=vs[2],Co=vs[3],xs=vs[4],xo=Nr(Si.angle,Co,xs),Fs=xo[0],Ks=xo[1],As=xo[2],pu=xo[3],xu=xo[4],mu=document.createElement("canvas"),mu.width=Co,mu.height=xs,Ml=mu.getContext("2d"),rc=Ml.createLinearGradient(Ks,pu,As,xu),qt(Si.stops,Fs).forEach(function(gc){return rc.addColorStop(gc.stop,Qt(gc.color))}),Ml.fillStyle=rc,Ml.fillRect(0,0,Co,xs),Co>0&&xs>0&&(Ns=rr.ctx.createPattern(mu,"repeat"),rr.renderRepeat(no,Ns,Xo,Lo))):An(Si)&&(Pu=Hu(xe,De,[null,null,null]),no=Pu[0],Ju=Pu[1],Zu=Pu[2],Co=Pu[3],xs=Pu[4],$u=Si.position.length===0?[Hn]:Si.position,Xo=Jn($u[0],Co),Lo=Jn($u[$u.length-1],xs),nc=_n(Si,Xo,Lo,Co,xs),ku=nc[0],qu=nc[1],ku>0&&qu>0&&(ic=rr.ctx.createRadialGradient(Ju+Xo,Zu+Lo,0,Ju+Xo,Zu+Lo,ku),qt(Si.stops,ku*2).forEach(function(gc){return ic.addColorStop(gc.stop,Qt(gc.color))}),rr.path(no),rr.ctx.fillStyle=ic,ku!==qu?(ac=xe.bounds.left+.5*xe.bounds.width,Wu=xe.bounds.top+.5*xe.bounds.height,oc=qu/ku,zu=1/oc,rr.ctx.save(),rr.ctx.translate(ac,Wu),rr.ctx.transform(1,0,0,oc,0,0),rr.ctx.translate(-ac,-Wu),rr.ctx.fillRect(Ju,zu*(Zu-Wu)+Wu,Co,xs*zu),rr.ctx.restore()):rr.ctx.fill())),dc.label=6;case 6:return De--,[2]}})},rr=this,Ur=0,ln=xe.styles.backgroundImage.slice(0).reverse(),kn.label=1;case 1:return Ur<ln.length?(bn=ln[Ur],[5,tt(bn)]):[3,4];case 2:kn.sent(),kn.label=3;case 3:return Ur++,[3,1];case 4:return[2]}})})},he.prototype.renderSolidBorder=function(xe,De,tt){return A(this,void 0,void 0,function(){return b(this,function(rr){return this.path(hc(tt,De)),this.ctx.fillStyle=Qt(xe),this.ctx.fill(),[2]})})},he.prototype.renderDoubleBorder=function(xe,De,tt,rr){return A(this,void 0,void 0,function(){var Ur,ln;return b(this,function(bn){switch(bn.label){case 0:return De<3?[4,this.renderSolidBorder(xe,tt,rr)]:[3,2];case 1:return bn.sent(),[2];case 2:return Ur=bc(rr,tt),this.path(Ur),this.ctx.fillStyle=Qt(xe),this.ctx.fill(),ln=Tc(rr,tt),this.path(ln),this.ctx.fill(),[2]}})})},he.prototype.renderNodeBackgroundAndBorders=function(xe){return A(this,void 0,void 0,function(){var De,tt,rr,Ur,ln,bn,kn,Pi,Si=this;return b(this,function(Fi){switch(Fi.label){case 0:return this.applyEffects(xe.getEffects(2)),De=xe.container.styles,tt=!So(De.backgroundColor)||De.backgroundImage.length,rr=[{style:De.borderTopStyle,color:De.borderTopColor,width:De.borderTopWidth},{style:De.borderRightStyle,color:De.borderRightColor,width:De.borderRightWidth},{style:De.borderBottomStyle,color:De.borderBottomColor,width:De.borderBottomWidth},{style:De.borderLeftStyle,color:De.borderLeftColor,width:De.borderLeftWidth}],Ur=Oc(au(De.backgroundClip,0),xe.curves),tt||De.boxShadow.length?(this.ctx.save(),this.path(Ur),this.ctx.clip(),So(De.backgroundColor)||(this.ctx.fillStyle=Qt(De.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(xe.container)]):[3,2];case 1:Fi.sent(),this.ctx.restore(),De.boxShadow.slice(0).reverse().forEach(function(Na){Si.ctx.save();var ja=zl(xe.curves),no=Na.inset?0:pc,Xo=vc(ja,-no+(Na.inset?1:-1)*Na.spread.number,(Na.inset?1:-1)*Na.spread.number,Na.spread.number*(Na.inset?-2:2),Na.spread.number*(Na.inset?-2:2));Na.inset?(Si.path(ja),Si.ctx.clip(),Si.mask(Xo)):(Si.mask(ja),Si.ctx.clip(),Si.path(Xo)),Si.ctx.shadowOffsetX=Na.offsetX.number+no,Si.ctx.shadowOffsetY=Na.offsetY.number,Si.ctx.shadowColor=Qt(Na.color),Si.ctx.shadowBlur=Na.blur.number,Si.ctx.fillStyle=Na.inset?Qt(Na.color):"rgba(0,0,0,1)",Si.ctx.fill(),Si.ctx.restore()}),Fi.label=2;case 2:ln=0,bn=0,kn=rr,Fi.label=3;case 3:return bn<kn.length?(Pi=kn[bn],Pi.style!==0&&!So(Pi.color)&&Pi.width>0?Pi.style===2?[4,this.renderDashedDottedBorder(Pi.color,Pi.width,ln,xe.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return Fi.sent(),[3,11];case 5:return Pi.style===3?[4,this.renderDashedDottedBorder(Pi.color,Pi.width,ln,xe.curves,3)]:[3,7];case 6:return Fi.sent(),[3,11];case 7:return Pi.style===4?[4,this.renderDoubleBorder(Pi.color,Pi.width,ln,xe.curves)]:[3,9];case 8:return Fi.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Pi.color,ln,xe.curves)];case 10:Fi.sent(),Fi.label=11;case 11:ln++,Fi.label=12;case 12:return bn++,[3,3];case 13:return[2]}})})},he.prototype.renderDashedDottedBorder=function(xe,De,tt,rr,Ur){return A(this,void 0,void 0,function(){var ln,bn,kn,Pi,Si,Fi,Na,ja,no,Xo,Lo,Co,xs,Ns,vs,xo,vs,xo;return b(this,function(Fs){return this.ctx.save(),ln=wc(rr,tt),bn=hc(rr,tt),Ur===2&&(this.path(bn),this.ctx.clip()),Ys(bn[0])?(kn=bn[0].start.x,Pi=bn[0].start.y):(kn=bn[0].x,Pi=bn[0].y),Ys(bn[1])?(Si=bn[1].end.x,Fi=bn[1].end.y):(Si=bn[1].x,Fi=bn[1].y),tt===0||tt===2?Na=Math.abs(kn-Si):Na=Math.abs(Pi-Fi),this.ctx.beginPath(),Ur===3?this.formatPath(ln):this.formatPath(bn.slice(0,2)),ja=De<3?De*3:De*2,no=De<3?De*2:De,Ur===3&&(ja=De,no=De),Xo=!0,Na<=ja*2?Xo=!1:Na<=ja*2+no?(Lo=Na/(2*ja+no),ja*=Lo,no*=Lo):(Co=Math.floor((Na+no)/(ja+no)),xs=(Na-Co*ja)/(Co-1),Ns=(Na-(Co+1)*ja)/Co,no=Ns<=0||Math.abs(no-xs)<Math.abs(no-Ns)?xs:Ns),Xo&&(Ur===3?this.ctx.setLineDash([0,ja+no]):this.ctx.setLineDash([ja,no])),Ur===3?(this.ctx.lineCap="round",this.ctx.lineWidth=De):this.ctx.lineWidth=De*2+1.1,this.ctx.strokeStyle=Qt(xe),this.ctx.stroke(),this.ctx.setLineDash([]),Ur===2&&(Ys(bn[0])&&(vs=bn[3],xo=bn[0],this.ctx.beginPath(),this.formatPath([new Oa(vs.end.x,vs.end.y),new Oa(xo.start.x,xo.start.y)]),this.ctx.stroke()),Ys(bn[1])&&(vs=bn[1],xo=bn[2],this.ctx.beginPath(),this.formatPath([new Oa(vs.end.x,vs.end.y),new Oa(xo.start.x,xo.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},he.prototype.render=function(xe){return A(this,void 0,void 0,function(){var De;return b(this,function(tt){switch(tt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Qt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),De=Du(xe),[4,this.renderStack(De)];case 1:return tt.sent(),this.applyEffects([]),[2,this.canvas]}})})},he}(Ec),_c=function(he){return he instanceof Vu||he instanceof _u?!0:he instanceof Au&&he.type!==Vs&&he.type!==Hl},Oc=function(he,xe){switch(he){case 0:return zl(xe);case 2:return yl(xe);case 1:default:return Nu(xe)}},Ic=function(he){switch(he){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Lc=["-apple-system","system-ui"],Nc=function(he){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?he.filter(function(xe){return Lc.indexOf(xe)===-1}):he},Dc=function(lr){x(he,lr);function he(xe,De){var tt=lr.call(this,xe,De)||this;return tt.canvas=De.canvas?De.canvas:document.createElement("canvas"),tt.ctx=tt.canvas.getContext("2d"),tt.options=De,tt.canvas.width=Math.floor(De.width*De.scale),tt.canvas.height=Math.floor(De.height*De.scale),tt.canvas.style.width=De.width+"px",tt.canvas.style.height=De.height+"px",tt.ctx.scale(tt.options.scale,tt.options.scale),tt.ctx.translate(-De.x,-De.y),tt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+De.width+"x"+De.height+" at "+De.x+","+De.y+") with scale "+De.scale),tt}return he.prototype.render=function(xe){return A(this,void 0,void 0,function(){var De,tt;return b(this,function(rr){switch(rr.label){case 0:return De=ds(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,xe),[4,Rc(De)];case 1:return tt=rr.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Qt(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]}})})},he}(Ec),Rc=function(he){return new Promise(function(xe,De){var tt=new Image;tt.onload=function(){xe(tt)},tt.onerror=De,tt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(he))})},Mc=function(){function lr(he){var xe=he.id,De=he.enabled;this.id=xe,this.enabled=De,this.start=Date.now()}return lr.prototype.debug=function(){for(var he=[],xe=0;xe<arguments.length;xe++)he[xe]=arguments[xe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,g([this.id,this.getTime()+"ms"],he)):this.info.apply(this,he))},lr.prototype.getTime=function(){return Date.now()-this.start},lr.prototype.info=function(){for(var he=[],xe=0;xe<arguments.length;xe++)he[xe]=arguments[xe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,g([this.id,this.getTime()+"ms"],he)))},lr.prototype.warn=function(){for(var he=[],xe=0;xe<arguments.length;xe++)he[xe]=arguments[xe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,g([this.id,this.getTime()+"ms"],he)):this.info.apply(this,he))},lr.prototype.error=function(){for(var he=[],xe=0;xe<arguments.length;xe++)he[xe]=arguments[xe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,g([this.id,this.getTime()+"ms"],he)):this.info.apply(this,he))},lr.instances={},lr}(),Pc=function(){function lr(he,xe){var De;this.windowBounds=xe,this.instanceName="#"+lr.instanceCount++,this.logger=new Mc({id:this.instanceName,enabled:he.logging}),this.cache=(De=he.cache)!==null&&De!==void 0?De:new ns(this,he)}return lr.instanceCount=1,lr}(),kc=function(he,xe){return xe===void 0&&(xe={}),Fc(he,xe)};typeof window!="undefined"&&To.setContext(window);var Fc=function(he,xe){return A(void 0,void 0,void 0,function(){var De,tt,rr,Ur,ln,bn,kn,Pi,Si,Fi,Na,ja,no,Xo,Lo,Co,xs,Ns,vs,xo,Fs,Ks,Fs,As,pu,xu,mu,Ml,rc,Pu,Ju,Zu,$u,nc,ku,qu,ic,ac,Wu,oc;return b(this,function(zu){switch(zu.label){case 0:if(!he||typeof he!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(De=he.ownerDocument,!De)throw new Error("Element is not attached to a Document");if(tt=De.defaultView,!tt)throw new Error("Document is not attached to a Window");return rr={allowTaint:(As=xe.allowTaint)!==null&&As!==void 0?As:!1,imageTimeout:(pu=xe.imageTimeout)!==null&&pu!==void 0?pu:15e3,proxy:xe.proxy,useCORS:(xu=xe.useCORS)!==null&&xu!==void 0?xu:!1},Ur=C({logging:(mu=xe.logging)!==null&&mu!==void 0?mu:!0,cache:xe.cache},rr),ln={windowWidth:(Ml=xe.windowWidth)!==null&&Ml!==void 0?Ml:tt.innerWidth,windowHeight:(rc=xe.windowHeight)!==null&&rc!==void 0?rc:tt.innerHeight,scrollX:(Pu=xe.scrollX)!==null&&Pu!==void 0?Pu:tt.pageXOffset,scrollY:(Ju=xe.scrollY)!==null&&Ju!==void 0?Ju:tt.pageYOffset},bn=new f(ln.scrollX,ln.scrollY,ln.windowWidth,ln.windowHeight),kn=new Pc(Ur,bn),Pi=(Zu=xe.foreignObjectRendering)!==null&&Zu!==void 0?Zu:!1,Si={allowTaint:($u=xe.allowTaint)!==null&&$u!==void 0?$u:!1,onclone:xe.onclone,ignoreElements:xe.ignoreElements,inlineImages:Pi,copyStyles:Pi},kn.logger.debug("Starting document clone with size "+bn.width+"x"+bn.height+" scrolled to "+-bn.left+","+-bn.top),Fi=new ue(kn,he,Si),Na=Fi.clonedReferenceElement,Na?[4,Fi.toIFrame(De,bn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return ja=zu.sent(),no=Er(Na)||mt(Na)?o(Na.ownerDocument):c(kn,Na),Xo=no.width,Lo=no.height,Co=no.left,xs=no.top,Ns=Bc(kn,Na,xe.backgroundColor),vs={canvas:xe.canvas,backgroundColor:Ns,scale:(ku=(nc=xe.scale)!==null&&nc!==void 0?nc:tt.devicePixelRatio)!==null&&ku!==void 0?ku:1,x:((qu=xe.x)!==null&&qu!==void 0?qu:0)+Co,y:((ic=xe.y)!==null&&ic!==void 0?ic:0)+xs,width:(ac=xe.width)!==null&&ac!==void 0?ac:Math.ceil(Xo),height:(Wu=xe.height)!==null&&Wu!==void 0?Wu:Math.ceil(Lo)},Pi?(kn.logger.debug("Document cloned, using foreign object rendering"),Fs=new Dc(kn,vs),[4,Fs.render(Na)]):[3,3];case 2:return xo=zu.sent(),[3,5];case 3:return kn.logger.debug("Document cloned, element located at "+Co+","+xs+" with size "+Xo+"x"+Lo+" using computed rendering"),kn.logger.debug("Starting DOM parsing"),Ks=Xu(kn,Na),Ns===Ks.styles.backgroundColor&&(Ks.styles.backgroundColor=Jt.TRANSPARENT),kn.logger.debug("Starting renderer for element at "+vs.x+","+vs.y+" with size "+vs.width+"x"+vs.height),Fs=new mc(kn,vs),[4,Fs.render(Ks)];case 4:xo=zu.sent(),zu.label=5;case 5:return((oc=xe.removeContainer)!==null&&oc!==void 0?oc:!0)&&(ue.destroy(ja)||kn.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),kn.logger.debug("Finished rendering"),[2,xo]}})})},Bc=function(he,xe,De){var tt=xe.ownerDocument,rr=tt.documentElement?di(he,getComputedStyle(tt.documentElement).backgroundColor):Jt.TRANSPARENT,Ur=tt.body?di(he,getComputedStyle(tt.body).backgroundColor):Jt.TRANSPARENT,ln=typeof De=="string"?di(he,De):De===null?Jt.TRANSPARENT:4294967295;return xe===tt.documentElement?So(rr)?So(Ur)?ln:Ur:rr:ln};return kc})},wPhX:function(H,k,d){"use strict";d.d(k,"b",function(){return r}),d.d(k,"a",function(){return i}),d.d(k,"k",function(){return n}),d.d(k,"h",function(){return e}),d.d(k,"i",function(){return l}),d.d(k,"g",function(){return t}),d.d(k,"c",function(){return a}),d.d(k,"d",function(){return s}),d.d(k,"j",function(){return p}),d.d(k,"e",function(){return m}),d.d(k,"f",function(){return v});var O=d("KQm4"),x=d("U8pU"),C=d("Ff2n"),A=d("q1tI"),b=d.n(A),g=d("xroW"),f=d("lr6o"),c=.25,o=2;function r(y,E){var T=y.slice(),w=T.indexOf(E);return w>=0&&T.splice(w,1),T}function i(y,E){var T=y.slice();return T.indexOf(E)===-1&&T.push(E),T}function n(y){return y.split("-")}function e(y,E){return"".concat(y,"-").concat(E)}function l(y){return y&&y.type&&y.type.isTreeNode}function t(y,E){var T=[y],w=E[y];function S(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];_.forEach(function(I){var L=I.key,N=I.children;T.push(L),S(N)})}return S(w.children),T}function a(y,E){var T=y.clientY,w=E.selectHandle.getBoundingClientRect(),S=w.top,_=w.bottom,I=w.height,L=Math.max(I*c,o);return T<=S+L?-1:T>=_-L?1:0}function s(y,E){if(!y)return;var T=E.multiple;return T?y.slice():y.length?[y[0]]:y}var u=function(E){return E};function h(y,E){if(!y)return[];var T=E||{},w=T.processProps,S=w===void 0?u:w,_=Array.isArray(y)?y:[y];return _.map(function(I){var L=I.children,N=Object(C.a)(I,["children"]),R=h(L,E);return b.a.createElement(f.a,Object.assign({},S(N)),R)})}function p(y){if(!y)return null;var E;if(Array.isArray(y))E={checkedKeys:y,halfCheckedKeys:void 0};else if(Object(x.a)(y)==="object")E={checkedKeys:y.checked||void 0,halfCheckedKeys:y.halfChecked||void 0};else return Object(g.a)(!1,"`checkedKeys` is not an array or an object"),null;return E}function m(y,E){var T=new Set;function w(S){if(T.has(S))return;var _=E[S];if(!_)return;T.add(S);var I=_.parent,L=_.node;if(L.disabled)return;I&&w(I.key)}return(y||[]).forEach(function(S){w(S)}),Object(O.a)(T)}function v(y){var E={};return Object.keys(y).forEach(function(T){(T.startsWith("data-")||T.startsWith("aria-"))&&(E[T]=y[T])}),E}},wXyp:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("ygfH")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="CheckOutlined";var c=A.forwardRef(f);k.default=c},wYyv:function(H,k,d){"use strict";var O=d("R5yR"),x=d("5wUe"),C=function(g,f,c){var o=f<0?g.length+f:f;if(o>=0&&o<g.length){var r=c<0?g.length+c:c,i=g.splice(f,1),n=x(i,1),e=n[0];g.splice(r,0,e)}},A=function(g,f,c){return g=O(g),C(g,f,c),g};H.exports=A,H.exports.mutate=C},wZgz:function(H,k,d){(function(O,x,C){H.exports=k=x(d("Ib8C"),d("ETIr"),d("cv67"),d("K3mO"),d("OLod"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.BlockCipher,b=x.algo,g=[],f=[],c=[],o=[],r=[],i=[],n=[],e=[],l=[],t=[];(function(){for(var u=[],h=0;h<256;h++)h<128?u[h]=h<<1:u[h]=h<<1^283;for(var p=0,m=0,h=0;h<256;h++){var v=m^m<<1^m<<2^m<<3^m<<4;v=v>>>8^v&255^99,g[p]=v,f[v]=p;var y=u[p],E=u[y],T=u[E],w=u[v]*257^v*16843008;c[p]=w<<24|w>>>8,o[p]=w<<16|w>>>16,r[p]=w<<8|w>>>24,i[p]=w;var w=T*16843009^E*65537^y*257^p*16843008;n[v]=w<<24|w>>>8,e[v]=w<<16|w>>>16,l[v]=w<<8|w>>>24,t[v]=w,p?(p=y^u[u[u[T^y]]],m^=u[u[m]]):p=m=1}})();var a=[0,1,2,4,8,16,32,64,128,27,54],s=b.AES=A.extend({_doReset:function(){var h;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var p=this._keyPriorReset=this._key,m=p.words,v=p.sigBytes/4,y=this._nRounds=v+6,E=(y+1)*4,T=this._keySchedule=[],w=0;w<E;w++)w<v?T[w]=m[w]:(h=T[w-1],w%v?v>6&&w%v==4&&(h=g[h>>>24]<<24|g[h>>>16&255]<<16|g[h>>>8&255]<<8|g[h&255]):(h=h<<8|h>>>24,h=g[h>>>24]<<24|g[h>>>16&255]<<16|g[h>>>8&255]<<8|g[h&255],h^=a[w/v|0]<<24),T[w]=T[w-v]^h);for(var S=this._invKeySchedule=[],_=0;_<E;_++){var w=E-_;if(_%4)var h=T[w];else var h=T[w-4];_<4||w<=4?S[_]=h:S[_]=n[g[h>>>24]]^e[g[h>>>16&255]]^l[g[h>>>8&255]]^t[g[h&255]]}},encryptBlock:function(h,p){this._doCryptBlock(h,p,this._keySchedule,c,o,r,i,g)},decryptBlock:function(h,p){var m=h[p+1];h[p+1]=h[p+3],h[p+3]=m,this._doCryptBlock(h,p,this._invKeySchedule,n,e,l,t,f);var m=h[p+1];h[p+1]=h[p+3],h[p+3]=m},_doCryptBlock:function(h,p,m,v,y,E,T,w){for(var S=this._nRounds,_=h[p]^m[0],I=h[p+1]^m[1],L=h[p+2]^m[2],N=h[p+3]^m[3],R=4,D=1;D<S;D++){var F=v[_>>>24]^y[I>>>16&255]^E[L>>>8&255]^T[N&255]^m[R++],M=v[I>>>24]^y[L>>>16&255]^E[N>>>8&255]^T[_&255]^m[R++],U=v[L>>>24]^y[N>>>16&255]^E[_>>>8&255]^T[I&255]^m[R++],B=v[N>>>24]^y[_>>>16&255]^E[I>>>8&255]^T[L&255]^m[R++];_=F,I=M,L=U,N=B}var F=(w[_>>>24]<<24|w[I>>>16&255]<<16|w[L>>>8&255]<<8|w[N&255])^m[R++],M=(w[I>>>24]<<24|w[L>>>16&255]<<16|w[N>>>8&255]<<8|w[_&255])^m[R++],U=(w[L>>>24]<<24|w[N>>>16&255]<<16|w[_>>>8&255]<<8|w[I&255])^m[R++],B=(w[N>>>24]<<24|w[_>>>16&255]<<16|w[I>>>8&255]<<8|w[L&255])^m[R++];h[p]=F,h[p+1]=M,h[p+2]=U,h[p+3]=B},keySize:256/32});x.AES=A._createHelper(s)}(),O.AES})},wbyO:function(H,k,d){(function(O,x){H.exports=k=x(d("Ib8C"))})(this,function(O){return function(){var x=O,C=x.lib,A=C.WordArray,b=x.enc,g=b.Base64url={stringify:function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=o.words,n=o.sigBytes,e=r?this._safe_map:this._map;o.clamp();for(var l=[],t=0;t<n;t+=3)for(var a=i[t>>>2]>>>24-t%4*8&255,s=i[t+1>>>2]>>>24-(t+1)%4*8&255,u=i[t+2>>>2]>>>24-(t+2)%4*8&255,h=a<<16|s<<8|u,p=0;p<4&&t+p*.75<n;p++)l.push(e.charAt(h>>>6*(3-p)&63));var m=e.charAt(64);if(m)for(;l.length%4;)l.push(m);return l.join("")},parse:function(o){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=o.length,n=r?this._safe_map:this._map,e=this._reverseMap;if(!e){e=this._reverseMap=[];for(var l=0;l<n.length;l++)e[n.charCodeAt(l)]=l}var t=n.charAt(64);if(t){var a=o.indexOf(t);a!==-1&&(i=a)}return f(o,i,e)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function f(c,o,r){for(var i=[],n=0,e=0;e<o;e++)if(e%4){var l=r[c.charCodeAt(e-1)]<<e%4*2,t=r[c.charCodeAt(e)]>>>6-e%4*2,a=l|t;i[n>>>2]|=a<<24-n%4*8,n++}return A.create(i,n)}}(),O.enc.Base64url})},wgjA:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},whVF:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=d("lNSK"),x=C(d("1q3G"));function C(c){return c&&c.__esModule?c:{default:c}}function A(c,o){if(!(c instanceof o))throw new TypeError("Cannot call a class as a function")}function b(c,o){for(var r=0;r<o.length;r++){var i=o[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(c,i.key,i)}}function g(c,o,r){return o&&b(c.prototype,o),r&&b(c,r),c}var f=function(){function c(){A(this,c),this.strm=new x.default,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,(0,O.deflateInit)(this.strm,this.windowBits)}return g(c,[{key:"deflate",value:function(r){this.strm.input=r,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;var i=(0,O.deflate)(this.strm,O.Z_FULL_FLUSH),n=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(i<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){var e=[n],l=n.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,i=(0,O.deflate)(this.strm,O.Z_FULL_FLUSH),i<0)throw new Error("zlib deflate failed");var t=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);l+=t.length,e.push(t)}while(this.strm.avail_in>0);for(var a=new Uint8Array(l),s=0,u=0;u<e.length;u++)a.set(e[u],s),s+=e[u].length;n=a}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,n}}]),c}();k.default=f},wr5s:function(H,k,d){var O=d("IwbS"),x=O.extendShape,C=x({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(A,b){var g=b.cx,f=b.cy,c=Math.max(b.r0||0,0),o=Math.max(b.r,0),r=(o-c)*.5,i=c+r,n=b.startAngle,e=b.endAngle,l=b.clockwise,t=Math.cos(n),a=Math.sin(n),s=Math.cos(e),u=Math.sin(e),h=l?e-n<Math.PI*2:n-e<Math.PI*2;h&&(A.moveTo(t*c+g,a*c+f),A.arc(t*i+g,a*i+f,r,-Math.PI+n,n,!l)),A.arc(g,f,o,n,e,!l),A.moveTo(s*o+g,u*o+f),A.arc(s*i+g,u*i+f,r,e-Math.PI*2,e-Math.PI,!l),c!==0&&(A.arc(g,f,c,e,n,l),A.moveTo(t*c+g,u*c+f)),A.closePath()}});H.exports=C},wt3j:function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("/IIm"),A=d("EMyp"),b=A.layoutCovers,g=O.extendComponentView({type:"brush",init:function(c,o){this.ecModel=c,this.api=o,this.model,(this._brushController=new C(o.getZr())).on("brush",x.bind(this._onBrush,this)).mount()},render:function(c){return this.model=c,f.apply(this,arguments)},updateTransform:function(c,o){return b(o),f.apply(this,arguments)},updateView:f,dispose:function(){this._brushController.dispose()},_onBrush:function(c,o){var r=this.model.id;this.model.brushTargetManager.setOutputRanges(c,this.ecModel),(!o.isEnd||o.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:x.clone(c),$from:r}),o.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:x.clone(c),$from:r})}});function f(c,o,r,i){(!i||i.$from!==c.id)&&this._brushController.setPanels(c.brushTargetManager.makePanelOpts(r)).enableBrush(c.brushOption).updateCovers(c.areas.slice())}H.exports=g},wy8a:function(H,k,d){var O=d("KxBF");function x(C,A,b){var g=C.length;return b=b===void 0?g:b,!A&&b>=g?C:O(C,A,b)}H.exports=x},x3X8:function(H,k,d){var O=d("KxfA"),x=O.retrieveRawValue;function C(A,b){var g=A.mapDimension("defaultedLabel",!0),f=g.length;if(f===1)return x(A,b,g[0]);if(f){for(var c=[],o=0;o<g.length;o++){var r=x(A,b,g[o]);c.push(r)}return c.join(" ")}}k.getDefaultLabel=C},x54q:function(H,k,d){},x6Kt:function(H,k,d){var O=d("y+Vt"),x=d("VpOo"),C=d("nPnh"),A=C.subPixelOptimizeRect,b={},g=O.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(c,o){var r,i,n,e;this.subPixelOptimize?(A(b,o,this.style),r=b.x,i=b.y,n=b.width,e=b.height,b.r=o.r,o=b):(r=o.x,i=o.y,n=o.width,e=o.height),o.r?x.buildPath(c,o):c.rect(r,i,n,e),c.closePath();return}});H.exports=g},xGfz:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="PlusSquareOutlined";var f=k.a=x.forwardRef(g)},xKMd:function(H,k){function d(x,C){this.getAllNames=function(){var A=C();return A.mapArray(A.getName)},this.containName=function(A){var b=C();return b.indexOfName(A)>=0},this.indexOfName=function(A){var b=x();return b.indexOfName(A)},this.getItemVisual=function(A,b){var g=x();return g.getItemVisual(A,b)}}var O=d;H.exports=O},xO64:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var O=x(d("8K/p"));function x(t){return t&&t.__esModule?t:{default:t}}function C(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?C=function(s){return typeof s}:C=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},C(t)}function A(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}function b(t,a){for(var s=0;s<a.length;s++){var u=a[s];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function g(t,a,s){return a&&b(t.prototype,a),s&&b(t,s),t}function f(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,h){return u.__proto__=h,u},c(t,a)}function o(t){var a=n();return function(){var u=e(t),h;if(a){var p=e(this).constructor;h=Reflect.construct(u,arguments,p)}else h=u.apply(this,arguments);return r(this,h)}}function r(t,a){return a&&(C(a)==="object"||typeof a=="function")?a:i(t)}function i(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(s){return s.__proto__||Object.getPrototypeOf(s)},e(t)}var l=function(t){f(s,t);var a=o(s);function s(){return A(this,s),a.apply(this,arguments)}return g(s,[{key:"_pngRect",value:function(h,p,m,v,y,E,T){var w=this._readData(y);return w===null?!1:(E.imageRect(h,p,m,v,"image/png",w),!0)}},{key:"_basicRect",value:function(h,p,m,v,y,E,T,w){throw new Error("BasicCompression received in TightPNG rect")}}]),s}(O.default);k.default=l},xOOu:function(H,k,d){(function(O,x,C){var A,A;/*!
JSZip v3.10.0 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/!function(b){H.exports=b()}(function(){return function b(g,f,c){function o(n,e){if(!f[n]){if(!g[n]){var l=typeof A=="function"&&A;if(!e&&l)return A(n,!0);if(r)return r(n,!0);var t=new Error("Cannot find module '"+n+"'");throw t.code="MODULE_NOT_FOUND",t}var a=f[n]={exports:{}};g[n][0].call(a.exports,function(s){var u=g[n][1][s];return o(u||s)},a,a.exports,b,g,f,c)}return f[n].exports}for(var r=typeof A=="function"&&A,i=0;i<c.length;i++)o(c[i]);return o}({1:[function(b,g,f){"use strict";var c=b("./utils"),o=b("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";f.encode=function(i){for(var n,e,l,t,a,s,u,h=[],p=0,m=i.length,v=m,y=c.getTypeOf(i)!=="string";p<i.length;)v=m-p,l=y?(n=i[p++],e=p<m?i[p++]:0,p<m?i[p++]:0):(n=i.charCodeAt(p++),e=p<m?i.charCodeAt(p++):0,p<m?i.charCodeAt(p++):0),t=n>>2,a=(3&n)<<4|e>>4,s=1<v?(15&e)<<2|l>>6:64,u=2<v?63&l:64,h.push(r.charAt(t)+r.charAt(a)+r.charAt(s)+r.charAt(u));return h.join("")},f.decode=function(i){var n,e,l,t,a,s,u=0,h=0,p="data:";if(i.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var m,v=3*(i=i.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(i.charAt(i.length-1)===r.charAt(64)&&v--,i.charAt(i.length-2)===r.charAt(64)&&v--,v%1!=0)throw new Error("Invalid base64 input, bad content length.");for(m=o.uint8array?new Uint8Array(0|v):new Array(0|v);u<i.length;)n=r.indexOf(i.charAt(u++))<<2|(t=r.indexOf(i.charAt(u++)))>>4,e=(15&t)<<4|(a=r.indexOf(i.charAt(u++)))>>2,l=(3&a)<<6|(s=r.indexOf(i.charAt(u++))),m[h++]=n,a!==64&&(m[h++]=e),s!==64&&(m[h++]=l);return m}},{"./support":30,"./utils":32}],2:[function(b,g,f){"use strict";var c=b("./external"),o=b("./stream/DataWorker"),r=b("./stream/Crc32Probe"),i=b("./stream/DataLengthProbe");function n(e,l,t,a,s){this.compressedSize=e,this.uncompressedSize=l,this.crc32=t,this.compression=a,this.compressedContent=s}n.prototype={getContentWorker:function(){var l=new o(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return l.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),l},getCompressedWorker:function(){return new o(c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},n.createWorkerFrom=function(e,l,t){return e.pipe(new r).pipe(new i("uncompressedSize")).pipe(l.compressWorker(t)).pipe(new i("compressedSize")).withStreamInfo("compression",l)},g.exports=n},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(b,g,f){"use strict";var c=b("./stream/GenericWorker");f.STORE={magic:"\0\0",compressWorker:function(r){return new c("STORE compression")},uncompressWorker:function(){return new c("STORE decompression")}},f.DEFLATE=b("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(b,g,f){"use strict";var c=b("./utils"),o=function(){for(var r,i=[],n=0;n<256;n++){r=n;for(var e=0;e<8;e++)r=1&r?3988292384^r>>>1:r>>>1;i[n]=r}return i}();g.exports=function(r,i){return r!==void 0&&r.length?c.getTypeOf(r)!=="string"?function(n,e,l,t){var a=o,s=t+l;n^=-1;for(var u=t;u<s;u++)n=n>>>8^a[255&(n^e[u])];return-1^n}(0|i,r,r.length,0):function(n,e,l,t){var a=o,s=t+l;n^=-1;for(var u=t;u<s;u++)n=n>>>8^a[255&(n^e.charCodeAt(u))];return-1^n}(0|i,r,r.length,0):0}},{"./utils":32}],5:[function(b,g,f){"use strict";f.base64=!1,f.binary=!1,f.dir=!1,f.createFolders=!0,f.date=null,f.compression=null,f.compressionOptions=null,f.comment=null,f.unixPermissions=null,f.dosPermissions=null},{}],6:[function(b,g,f){"use strict";var c=null;c=typeof Promise!="undefined"?Promise:b("lie"),g.exports={Promise:c}},{lie:37}],7:[function(b,g,f){"use strict";var c=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",o=b("pako"),r=b("./utils"),i=b("./stream/GenericWorker"),n=c?"uint8array":"array";function e(l,t){i.call(this,"FlateWorker/"+l),this._pako=null,this._pakoAction=l,this._pakoOptions=t,this.meta={}}f.magic="\b\0",r.inherits(e,i),e.prototype.processChunk=function(l){this.meta=l.meta,this._pako===null&&this._createPako(),this._pako.push(r.transformTo(n,l.data),!1)},e.prototype.flush=function(){i.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},e.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},e.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var l=this;this._pako.onData=function(t){l.push({data:t,meta:l.meta})}},f.compressWorker=function(l){return new e("Deflate",l)},f.uncompressWorker=function(){return new e("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(b,g,f){"use strict";function c(a,s){var u,h="";for(u=0;u<s;u++)h+=String.fromCharCode(255&a),a>>>=8;return h}function o(a,s,u,h,p,m){var v,y,E=a.file,T=a.compression,w=m!==n.utf8encode,S=r.transformTo("string",m(E.name)),_=r.transformTo("string",n.utf8encode(E.name)),I=E.comment,L=r.transformTo("string",m(I)),N=r.transformTo("string",n.utf8encode(I)),R=_.length!==E.name.length,D=N.length!==I.length,F="",M="",U="",B=E.dir,j=E.date,W={crc32:0,compressedSize:0,uncompressedSize:0};s&&!u||(W.crc32=a.crc32,W.compressedSize=a.compressedSize,W.uncompressedSize=a.uncompressedSize);var V=0;s&&(V|=8),w||!R&&!D||(V|=2048);var z=0,J=0;B&&(z|=16),p==="UNIX"?(J=798,z|=function(de,ae){var ve=de;return de||(ve=ae?16893:33204),(65535&ve)<<16}(E.unixPermissions,B)):(J=20,z|=function(de){return 63&(de||0)}(E.dosPermissions)),v=j.getUTCHours(),v<<=6,v|=j.getUTCMinutes(),v<<=5,v|=j.getUTCSeconds()/2,y=j.getUTCFullYear()-1980,y<<=4,y|=j.getUTCMonth()+1,y<<=5,y|=j.getUTCDate(),R&&(M=c(1,1)+c(e(S),4)+_,F+="up"+c(M.length,2)+M),D&&(U=c(1,1)+c(e(L),4)+N,F+="uc"+c(U.length,2)+U);var q="";return q+=`
\0`,q+=c(V,2),q+=T.magic,q+=c(v,2),q+=c(y,2),q+=c(W.crc32,4),q+=c(W.compressedSize,4),q+=c(W.uncompressedSize,4),q+=c(S.length,2),q+=c(F.length,2),{fileRecord:l.LOCAL_FILE_HEADER+q+S+F,dirRecord:l.CENTRAL_FILE_HEADER+c(J,2)+q+c(L.length,2)+"\0\0\0\0"+c(z,4)+c(h,4)+S+F+L}}var r=b("../utils"),i=b("../stream/GenericWorker"),n=b("../utf8"),e=b("../crc32"),l=b("../signature");function t(a,s,u,h){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=s,this.zipPlatform=u,this.encodeFileName=h,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(t,i),t.prototype.push=function(a){var s=a.meta.percent||0,u=this.entriesCount,h=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,i.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:u?(s+100*(u-h-1))/u:100}}))},t.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var s=this.streamFiles&&!a.file.dir;if(s){var u=o(a,s,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},t.prototype.closedSource=function(a){this.accumulate=!1;var s=this.streamFiles&&!a.file.dir,u=o(a,s,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),s)this.push({data:function(h){return l.DATA_DESCRIPTOR+c(h.crc32,4)+c(h.compressedSize,4)+c(h.uncompressedSize,4)}(a),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},t.prototype.flush=function(){for(var a=this.bytesWritten,s=0;s<this.dirRecords.length;s++)this.push({data:this.dirRecords[s],meta:{percent:100}});var u=this.bytesWritten-a,h=function(p,m,v,y,E){var T=r.transformTo("string",E(y));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(p,2)+c(p,2)+c(m,4)+c(v,4)+c(T.length,2)+T}(this.dirRecords.length,u,a,this.zipComment,this.encodeFileName);this.push({data:h,meta:{percent:100}})},t.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},t.prototype.registerPrevious=function(a){this._sources.push(a);var s=this;return a.on("data",function(u){s.processChunk(u)}),a.on("end",function(){s.closedSource(s.previous.streamInfo),s._sources.length?s.prepareNextSource():s.end()}),a.on("error",function(u){s.error(u)}),this},t.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},t.prototype.error=function(a){var s=this._sources;if(!i.prototype.error.call(this,a))return!1;for(var u=0;u<s.length;u++)try{s[u].error(a)}catch(h){}return!0},t.prototype.lock=function(){i.prototype.lock.call(this);for(var a=this._sources,s=0;s<a.length;s++)a[s].lock()},g.exports=t},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(b,g,f){"use strict";var c=b("../compressions"),o=b("./ZipFileWorker");f.generateWorker=function(r,i,n){var e=new o(i.streamFiles,n,i.platform,i.encodeFileName),l=0;try{r.forEach(function(t,a){l++;var s=function(m,v){var y=m||v,E=c[y];if(!E)throw new Error(y+" is not a valid compression method !");return E}(a.options.compression,i.compression),u=a.options.compressionOptions||i.compressionOptions||{},h=a.dir,p=a.date;a._compressWorker(s,u).withStreamInfo("file",{name:t,dir:h,date:p,comment:a.comment||"",unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions}).pipe(e)}),e.entriesCount=l}catch(t){e.error(t)}return e}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(b,g,f){"use strict";function c(){if(!(this instanceof c))return new c;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 o=new c;for(var r in this)typeof this[r]!="function"&&(o[r]=this[r]);return o}}(c.prototype=b("./object")).loadAsync=b("./load"),c.support=b("./support"),c.defaults=b("./defaults"),c.version="3.10.0",c.loadAsync=function(o,r){return new c().loadAsync(o,r)},c.external=b("./external"),g.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(b,g,f){"use strict";var c=b("./utils"),o=b("./external"),r=b("./utf8"),i=b("./zipEntries"),n=b("./stream/Crc32Probe"),e=b("./nodejsUtils");function l(t){return new o.Promise(function(a,s){var u=t.decompressed.getContentWorker().pipe(new n);u.on("error",function(h){s(h)}).on("end",function(){u.streamInfo.crc32!==t.decompressed.crc32?s(new Error("Corrupted zip : CRC32 mismatch")):a()}).resume()})}g.exports=function(t,a){var s=this;return a=c.extend(a||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),e.isNode&&e.isStream(t)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):c.prepareContent("the loaded zip file",t,!0,a.optimizedBinaryString,a.base64).then(function(u){var h=new i(a);return h.load(u),h}).then(function(u){var h=[o.Promise.resolve(u)],p=u.files;if(a.checkCRC32)for(var m=0;m<p.length;m++)h.push(l(p[m]));return o.Promise.all(h)}).then(function(u){for(var h=u.shift(),p=h.files,m=0;m<p.length;m++){var v=p[m],y=v.fileNameStr,E=c.resolve(v.fileNameStr);s.file(E,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:a.createFolders}),v.dir||(s.file(E).unsafeOriginalName=y)}return h.zipComment.length&&(s.comment=h.zipComment),s})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(b,g,f){"use strict";var c=b("../utils"),o=b("../stream/GenericWorker");function r(i,n){o.call(this,"Nodejs stream input adapter for "+i),this._upstreamEnded=!1,this._bindStream(n)}c.inherits(r,o),r.prototype._bindStream=function(i){var n=this;(this._stream=i).pause(),i.on("data",function(e){n.push({data:e,meta:{percent:0}})}).on("error",function(e){n.isPaused?this.generatedError=e:n.error(e)}).on("end",function(){n.isPaused?n._upstreamEnded=!0:n.end()})},r.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},g.exports=r},{"../stream/GenericWorker":28,"../utils":32}],13:[function(b,g,f){"use strict";var c=b("readable-stream").Readable;function o(r,i,n){c.call(this,i),this._helper=r;var e=this;r.on("data",function(l,t){e.push(l)||e._helper.pause(),n&&n(t)}).on("error",function(l){e.emit("error",l)}).on("end",function(){e.push(null)})}b("../utils").inherits(o,c),o.prototype._read=function(){this._helper.resume()},g.exports=o},{"../utils":32,"readable-stream":16}],14:[function(b,g,f){"use strict";g.exports={isNode:typeof O!="undefined",newBufferFrom:function(o,r){if(O.from&&O.from!==Uint8Array.from)return O.from(o,r);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new O(o,r)},allocBuffer:function(o){if(O.alloc)return O.alloc(o);var r=new O(o);return r.fill(0),r},isBuffer:function(o){return O.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(b,g,f){"use strict";function c(E,T,w){var S,_=r.getTypeOf(T),I=r.extend(w||{},e);I.date=I.date||new Date,I.compression!==null&&(I.compression=I.compression.toUpperCase()),typeof I.unixPermissions=="string"&&(I.unixPermissions=parseInt(I.unixPermissions,8)),I.unixPermissions&&16384&I.unixPermissions&&(I.dir=!0),I.dosPermissions&&16&I.dosPermissions&&(I.dir=!0),I.dir&&(E=p(E)),I.createFolders&&(S=h(E))&&m.call(this,S,!0);var L=_==="string"&&I.binary===!1&&I.base64===!1;w&&w.binary!==void 0||(I.binary=!L),(T instanceof l&&T.uncompressedSize===0||I.dir||!T||T.length===0)&&(I.base64=!1,I.binary=!0,T="",I.compression="STORE",_="string");var N=null;N=T instanceof l||T instanceof i?T:s.isNode&&s.isStream(T)?new u(E,T):r.prepareContent(E,T,I.binary,I.optimizedBinaryString,I.base64);var R=new t(E,N,I);this.files[E]=R}var o=b("./utf8"),r=b("./utils"),i=b("./stream/GenericWorker"),n=b("./stream/StreamHelper"),e=b("./defaults"),l=b("./compressedObject"),t=b("./zipObject"),a=b("./generate"),s=b("./nodejsUtils"),u=b("./nodejs/NodejsStreamInputAdapter"),h=function(T){T.slice(-1)==="/"&&(T=T.substring(0,T.length-1));var w=T.lastIndexOf("/");return 0<w?T.substring(0,w):""},p=function(T){return T.slice(-1)!=="/"&&(T+="/"),T},m=function(T,w){return w=w!==void 0?w:e.createFolders,T=p(T),this.files[T]||c.call(this,T,null,{dir:!0,createFolders:w}),this.files[T]};function v(E){return Object.prototype.toString.call(E)==="[object RegExp]"}var y={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(T){var w,S,_;for(w in this.files)_=this.files[w],(S=w.slice(this.root.length,w.length))&&w.slice(0,this.root.length)===this.root&&T(S,_)},filter:function(T){var w=[];return this.forEach(function(S,_){T(S,_)&&w.push(_)}),w},file:function(T,w,S){if(arguments.length!==1)return T=this.root+T,c.call(this,T,w,S),this;if(v(T)){var _=T;return this.filter(function(L,N){return!N.dir&&_.test(L)})}var I=this.files[this.root+T];return I&&!I.dir?I:null},folder:function(T){if(!T)return this;if(v(T))return this.filter(function(I,L){return L.dir&&T.test(I)});var w=this.root+T,S=m.call(this,w),_=this.clone();return _.root=S.name,_},remove:function(T){T=this.root+T;var w=this.files[T];if(w||(T.slice(-1)!=="/"&&(T+="/"),w=this.files[T]),w&&!w.dir)delete this.files[T];else for(var S=this.filter(function(I,L){return L.name.slice(0,T.length)===T}),_=0;_<S.length;_++)delete this.files[S[_].name];return this},generate:function(T){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(T){var w,S={};try{if((S=r.extend(T||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.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.");r.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 _=S.comment||this.comment||"";w=a.generateWorker(this,S,_)}catch(I){(w=new i("error")).error(I)}return new n(w,S.type||"string",S.mimeType)},generateAsync:function(T,w){return this.generateInternalStream(T).accumulate(w)},generateNodeStream:function(T,w){return(T=T||{}).type||(T.type="nodebuffer"),this.generateInternalStream(T).toNodejsStream(w)}};g.exports=y},{"./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(b,g,f){g.exports=b("stream")},{stream:void 0}],17:[function(b,g,f){"use strict";var c=b("./DataReader");function o(r){c.call(this,r);for(var i=0;i<this.data.length;i++)r[i]=255&r[i]}b("../utils").inherits(o,c),o.prototype.byteAt=function(r){return this.data[this.zero+r]},o.prototype.lastIndexOfSignature=function(r){for(var i=r.charCodeAt(0),n=r.charCodeAt(1),e=r.charCodeAt(2),l=r.charCodeAt(3),t=this.length-4;0<=t;--t)if(this.data[t]===i&&this.data[t+1]===n&&this.data[t+2]===e&&this.data[t+3]===l)return t-this.zero;return-1},o.prototype.readAndCheckSignature=function(r){var i=r.charCodeAt(0),n=r.charCodeAt(1),e=r.charCodeAt(2),l=r.charCodeAt(3),t=this.readData(4);return i===t[0]&&n===t[1]&&e===t[2]&&l===t[3]},o.prototype.readData=function(r){if(this.checkOffset(r),r===0)return[];var i=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,i},g.exports=o},{"../utils":32,"./DataReader":18}],18:[function(b,g,f){"use strict";var c=b("../utils");function o(r){this.data=r,this.length=r.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(i){this.checkIndex(this.index+i)},checkIndex:function(i){if(this.length<this.zero+i||i<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+i+"). Corrupted zip ?")},setIndex:function(i){this.checkIndex(i),this.index=i},skip:function(i){this.setIndex(this.index+i)},byteAt:function(i){},readInt:function(i){var n,e=0;for(this.checkOffset(i),n=this.index+i-1;n>=this.index;n--)e=(e<<8)+this.byteAt(n);return this.index+=i,e},readString:function(i){return c.transformTo("string",this.readData(i))},readData:function(i){},lastIndexOfSignature:function(i){},readAndCheckSignature:function(i){},readDate:function(){var i=this.readInt(4);return new Date(Date.UTC(1980+(i>>25&127),(i>>21&15)-1,i>>16&31,i>>11&31,i>>5&63,(31&i)<<1))}},g.exports=o},{"../utils":32}],19:[function(b,g,f){"use strict";var c=b("./Uint8ArrayReader");function o(r){c.call(this,r)}b("../utils").inherits(o,c),o.prototype.readData=function(r){this.checkOffset(r);var i=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,i},g.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(b,g,f){"use strict";var c=b("./DataReader");function o(r){c.call(this,r)}b("../utils").inherits(o,c),o.prototype.byteAt=function(r){return this.data.charCodeAt(this.zero+r)},o.prototype.lastIndexOfSignature=function(r){return this.data.lastIndexOf(r)-this.zero},o.prototype.readAndCheckSignature=function(r){return r===this.readData(4)},o.prototype.readData=function(r){this.checkOffset(r);var i=this.data.slice(this.zero+this.index,this.zero+this.index+r);return this.index+=r,i},g.exports=o},{"../utils":32,"./DataReader":18}],21:[function(b,g,f){"use strict";var c=b("./ArrayReader");function o(r){c.call(this,r)}b("../utils").inherits(o,c),o.prototype.readData=function(r){if(this.checkOffset(r),r===0)return new Uint8Array(0);var i=this.data.subarray(this.zero+this.index,this.zero+this.index+r);return this.index+=r,i},g.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(b,g,f){"use strict";var c=b("../utils"),o=b("../support"),r=b("./ArrayReader"),i=b("./StringReader"),n=b("./NodeBufferReader"),e=b("./Uint8ArrayReader");g.exports=function(l){var t=c.getTypeOf(l);return c.checkSupport(t),t!=="string"||o.uint8array?t==="nodebuffer"?new n(l):o.uint8array?new e(c.transformTo("uint8array",l)):new r(c.transformTo("array",l)):new i(l)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(b,g,f){"use strict";f.LOCAL_FILE_HEADER="PK",f.CENTRAL_FILE_HEADER="PK",f.CENTRAL_DIRECTORY_END="PK",f.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",f.ZIP64_CENTRAL_DIRECTORY_END="PK",f.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(b,g,f){"use strict";var c=b("./GenericWorker"),o=b("../utils");function r(i){c.call(this,"ConvertWorker to "+i),this.destType=i}o.inherits(r,c),r.prototype.processChunk=function(i){this.push({data:o.transformTo(this.destType,i.data),meta:i.meta})},g.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(b,g,f){"use strict";var c=b("./GenericWorker"),o=b("../crc32");function r(){c.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}b("../utils").inherits(r,c),r.prototype.processChunk=function(i){this.streamInfo.crc32=o(i.data,this.streamInfo.crc32||0),this.push(i)},g.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(b,g,f){"use strict";var c=b("../utils"),o=b("./GenericWorker");function r(i){o.call(this,"DataLengthProbe for "+i),this.propName=i,this.withStreamInfo(i,0)}c.inherits(r,o),r.prototype.processChunk=function(i){if(i){var n=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=n+i.data.length}o.prototype.processChunk.call(this,i)},g.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(b,g,f){"use strict";var c=b("../utils"),o=b("./GenericWorker");function r(i){o.call(this,"DataWorker");var n=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,i.then(function(e){n.dataIsReady=!0,n.data=e,n.max=e&&e.length||0,n.type=c.getTypeOf(e),n.isPaused||n._tickAndRepeat()},function(e){n.error(e)})}c.inherits(r,o),r.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,c.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(c.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var i=null,n=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":i=this.data.substring(this.index,n);break;case"uint8array":i=this.data.subarray(this.index,n);break;case"array":case"nodebuffer":i=this.data.slice(this.index,n)}return this.index=n,this.push({data:i,meta:{percent:this.max?this.index/this.max*100:0}})},g.exports=r},{"../utils":32,"./GenericWorker":28}],28:[function(b,g,f){"use strict";function c(o){this.name=o||"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}c.prototype={push:function(r){this.emit("data",r)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(r){this.emit("error",r)}return!0},error:function(r){return!this.isFinished&&(this.isPaused?this.generatedError=r:(this.isFinished=!0,this.emit("error",r),this.previous&&this.previous.error(r),this.cleanUp()),!0)},on:function(r,i){return this._listeners[r].push(i),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(r,i){if(this._listeners[r])for(var n=0;n<this._listeners[r].length;n++)this._listeners[r][n].call(this,i)},pipe:function(r){return r.registerPrevious(this)},registerPrevious:function(r){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=r.streamInfo,this.mergeStreamInfo(),this.previous=r;var i=this;return r.on("data",function(n){i.processChunk(n)}),r.on("end",function(){i.end()}),r.on("error",function(n){i.error(n)}),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 r=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),r=!0),this.previous&&this.previous.resume(),!r},flush:function(){},processChunk:function(r){this.push(r)},withStreamInfo:function(r,i){return this.extraStreamInfo[r]=i,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var r in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(r)&&(this.streamInfo[r]=this.extraStreamInfo[r])},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 r="Worker "+this.name;return this.previous?this.previous+" -> "+r:r}},g.exports=c},{}],29:[function(b,g,f){"use strict";var c=b("../utils"),o=b("./ConvertWorker"),r=b("./GenericWorker"),i=b("../base64"),n=b("../support"),e=b("../external"),l=null;if(n.nodestream)try{l=b("../nodejs/NodejsStreamOutputAdapter")}catch(s){}function t(s,u){return new e.Promise(function(h,p){var m=[],v=s._internalType,y=s._outputType,E=s._mimeType;s.on("data",function(T,w){m.push(T),u&&u(w)}).on("error",function(T){m=[],p(T)}).on("end",function(){try{var T=function(w,S,_){switch(w){case"blob":return c.newBlob(c.transformTo("arraybuffer",S),_);case"base64":return i.encode(S);default:return c.transformTo(w,S)}}(y,function(w,S){var _,I=0,L=null,N=0;for(_=0;_<S.length;_++)N+=S[_].length;switch(w){case"string":return S.join("");case"array":return Array.prototype.concat.apply([],S);case"uint8array":for(L=new Uint8Array(N),_=0;_<S.length;_++)L.set(S[_],I),I+=S[_].length;return L;case"nodebuffer":return O.concat(S);default:throw new Error("concat : unsupported type '"+w+"'")}}(v,m),E);h(T)}catch(w){p(w)}m=[]}).resume()})}function a(s,u,h){var p=u;switch(u){case"blob":case"arraybuffer":p="uint8array";break;case"base64":p="string"}try{this._internalType=p,this._outputType=u,this._mimeType=h,c.checkSupport(p),this._worker=s.pipe(new o(p)),s.lock()}catch(m){this._worker=new r("error"),this._worker.error(m)}}a.prototype={accumulate:function(u){return t(this,u)},on:function(u,h){var p=this;return u==="data"?this._worker.on(u,function(m){h.call(p,m.data,m.meta)}):this._worker.on(u,function(){c.delay(h,arguments,p)}),this},resume:function(){return c.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(u){if(c.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:this._outputType!=="nodebuffer"},u)}},g.exports=a},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(b,g,f){"use strict";if(f.base64=!0,f.array=!0,f.string=!0,f.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",f.nodebuffer=typeof O!="undefined",f.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")f.blob=!1;else{var c=new ArrayBuffer(0);try{f.blob=new Blob([c],{type:"application/zip"}).size===0}catch(r){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(c),f.blob=o.getBlob("application/zip").size===0}catch(i){f.blob=!1}}}try{f.nodestream=!!b("readable-stream").Readable}catch(r){f.nodestream=!1}},{"readable-stream":16}],31:[function(b,g,f){"use strict";for(var c=b("./utils"),o=b("./support"),r=b("./nodejsUtils"),i=b("./stream/GenericWorker"),n=new Array(256),e=0;e<256;e++)n[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;n[254]=n[254]=1;function l(){i.call(this,"utf-8 decode"),this.leftOver=null}function t(){i.call(this,"utf-8 encode")}f.utf8encode=function(a){return o.nodebuffer?r.newBufferFrom(a,"utf-8"):function(s){var u,h,p,m,v,y=s.length,E=0;for(m=0;m<y;m++)(64512&(h=s.charCodeAt(m)))==55296&&m+1<y&&(64512&(p=s.charCodeAt(m+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),m++),E+=h<128?1:h<2048?2:h<65536?3:4;for(u=o.uint8array?new Uint8Array(E):new Array(E),m=v=0;v<E;m++)(64512&(h=s.charCodeAt(m)))==55296&&m+1<y&&(64512&(p=s.charCodeAt(m+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),m++),h<128?u[v++]=h:(h<2048?u[v++]=192|h>>>6:(h<65536?u[v++]=224|h>>>12:(u[v++]=240|h>>>18,u[v++]=128|h>>>12&63),u[v++]=128|h>>>6&63),u[v++]=128|63&h);return u}(a)},f.utf8decode=function(a){return o.nodebuffer?c.transformTo("nodebuffer",a).toString("utf-8"):function(s){var u,h,p,m,v=s.length,y=new Array(2*v);for(u=h=0;u<v;)if((p=s[u++])<128)y[h++]=p;else if(4<(m=n[p]))y[h++]=65533,u+=m-1;else{for(p&=m===2?31:m===3?15:7;1<m&&u<v;)p=p<<6|63&s[u++],m--;1<m?y[h++]=65533:p<65536?y[h++]=p:(p-=65536,y[h++]=55296|p>>10&1023,y[h++]=56320|1023&p)}return y.length!==h&&(y.subarray?y=y.subarray(0,h):y.length=h),c.applyFromCharCode(y)}(a=c.transformTo(o.uint8array?"uint8array":"array",a))},c.inherits(l,i),l.prototype.processChunk=function(a){var s=c.transformTo(o.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var u=s;(s=new Uint8Array(u.length+this.leftOver.length)).set(this.leftOver,0),s.set(u,this.leftOver.length)}else s=this.leftOver.concat(s);this.leftOver=null}var h=function(m,v){var y;for((v=v||m.length)>m.length&&(v=m.length),y=v-1;0<=y&&(192&m[y])==128;)y--;return y<0||y===0?v:y+n[m[y]]>v?y:v}(s),p=s;h!==s.length&&(o.uint8array?(p=s.subarray(0,h),this.leftOver=s.subarray(h,s.length)):(p=s.slice(0,h),this.leftOver=s.slice(h,s.length))),this.push({data:f.utf8decode(p),meta:a.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:f.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},f.Utf8DecodeWorker=l,c.inherits(t,i),t.prototype.processChunk=function(a){this.push({data:f.utf8encode(a.data),meta:a.meta})},f.Utf8EncodeWorker=t},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(b,g,f){"use strict";var c=b("./support"),o=b("./base64"),r=b("./nodejsUtils"),i=b("./external");function n(u){return u}function e(u,h){for(var p=0;p<u.length;++p)h[p]=255&u.charCodeAt(p);return h}b("setimmediate"),f.newBlob=function(u,h){f.checkSupport("blob");try{return new Blob([u],{type:h})}catch(m){try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return p.append(u),p.getBlob(h)}catch(v){throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(h,p,m){var v=[],y=0,E=h.length;if(E<=m)return String.fromCharCode.apply(null,h);for(;y<E;)p==="array"||p==="nodebuffer"?v.push(String.fromCharCode.apply(null,h.slice(y,Math.min(y+m,E)))):v.push(String.fromCharCode.apply(null,h.subarray(y,Math.min(y+m,E)))),y+=m;return v.join("")},stringifyByChar:function(h){for(var p="",m=0;m<h.length;m++)p+=String.fromCharCode(h[m]);return p},applyCanBeUsed:{uint8array:function(){try{return c.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(u){return!1}}(),nodebuffer:function(){try{return c.nodebuffer&&String.fromCharCode.apply(null,r.allocBuffer(1)).length===1}catch(u){return!1}}()}};function t(u){var h=65536,p=f.getTypeOf(u),m=!0;if(p==="uint8array"?m=l.applyCanBeUsed.uint8array:p==="nodebuffer"&&(m=l.applyCanBeUsed.nodebuffer),m)for(;1<h;)try{return l.stringifyByChunk(u,p,h)}catch(v){h=Math.floor(h/2)}return l.stringifyByChar(u)}function a(u,h){for(var p=0;p<u.length;p++)h[p]=u[p];return h}f.applyFromCharCode=t;var s={};s.string={string:n,array:function(h){return e(h,new Array(h.length))},arraybuffer:function(h){return s.string.uint8array(h).buffer},uint8array:function(h){return e(h,new Uint8Array(h.length))},nodebuffer:function(h){return e(h,r.allocBuffer(h.length))}},s.array={string:t,array:n,arraybuffer:function(h){return new Uint8Array(h).buffer},uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return r.newBufferFrom(h)}},s.arraybuffer={string:function(h){return t(new Uint8Array(h))},array:function(h){return a(new Uint8Array(h),new Array(h.byteLength))},arraybuffer:n,uint8array:function(h){return new Uint8Array(h)},nodebuffer:function(h){return r.newBufferFrom(new Uint8Array(h))}},s.uint8array={string:t,array:function(h){return a(h,new Array(h.length))},arraybuffer:function(h){return h.buffer},uint8array:n,nodebuffer:function(h){return r.newBufferFrom(h)}},s.nodebuffer={string:t,array:function(h){return a(h,new Array(h.length))},arraybuffer:function(h){return s.nodebuffer.uint8array(h).buffer},uint8array:function(h){return a(h,new Uint8Array(h.length))},nodebuffer:n},f.transformTo=function(u,h){if(h=h||"",!u)return h;f.checkSupport(u);var p=f.getTypeOf(h);return s[p][u](h)},f.resolve=function(u){for(var h=u.split("/"),p=[],m=0;m<h.length;m++){var v=h[m];v==="."||v===""&&m!==0&&m!==h.length-1||(v===".."?p.pop():p.push(v))}return p.join("/")},f.getTypeOf=function(u){return typeof u=="string"?"string":Object.prototype.toString.call(u)==="[object Array]"?"array":c.nodebuffer&&r.isBuffer(u)?"nodebuffer":c.uint8array&&u instanceof Uint8Array?"uint8array":c.arraybuffer&&u instanceof ArrayBuffer?"arraybuffer":void 0},f.checkSupport=function(u){if(!c[u.toLowerCase()])throw new Error(u+" is not supported by this platform")},f.MAX_VALUE_16BITS=65535,f.MAX_VALUE_32BITS=-1,f.pretty=function(u){var h,p,m="";for(p=0;p<(u||"").length;p++)m+="\\x"+((h=u.charCodeAt(p))<16?"0":"")+h.toString(16).toUpperCase();return m},f.delay=function(u,h,p){setImmediate(function(){u.apply(p||null,h||[])})},f.inherits=function(u,h){function p(){}p.prototype=h.prototype,u.prototype=new p},f.extend=function(){var u,h,p={};for(u=0;u<arguments.length;u++)for(h in arguments[u])arguments[u].hasOwnProperty(h)&&p[h]===void 0&&(p[h]=arguments[u][h]);return p},f.prepareContent=function(u,h,p,m,v){return i.Promise.resolve(h).then(function(y){return c.blob&&(y instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(y))!==-1)&&typeof FileReader!="undefined"?new i.Promise(function(E,T){var w=new FileReader;w.onload=function(S){E(S.target.result)},w.onerror=function(S){T(S.target.error)},w.readAsArrayBuffer(y)}):y}).then(function(y){var E=f.getTypeOf(y);return E?(E==="arraybuffer"?y=f.transformTo("uint8array",y):E==="string"&&(v?y=o.decode(y):p&&m!==!0&&(y=function(T){return e(T,c.uint8array?new Uint8Array(T.length):new Array(T.length))}(y))),y):i.Promise.reject(new Error("Can't read the data of '"+u+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(b,g,f){"use strict";var c=b("./reader/readerFor"),o=b("./utils"),r=b("./signature"),i=b("./zipEntry"),n=(b("./utf8"),b("./support"));function e(l){this.files=[],this.loadOptions=l}e.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var a=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(a)+", expected "+o.pretty(t)+")")}},isSignature:function(t,a){var s=this.reader.index;this.reader.setIndex(t);var u=this.reader.readString(4)===a;return this.reader.setIndex(s),u},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 t=this.reader.readData(this.zipCommentLength),a=n.uint8array?"uint8array":"array",s=o.transformTo(a,t);this.zipComment=this.loadOptions.decodeFileName(s)},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 t,a,s,u=this.zip64EndOfCentralSize-44;0<u;)t=this.reader.readInt(2),a=this.reader.readInt(4),s=this.reader.readData(a),this.zip64ExtensibleData[t]={id:t,length:a,value:s}},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 t,a;for(t=0;t<this.files.length;t++)a=this.files[t],this.reader.setIndex(a.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),a.readLocalPart(this.reader),a.handleUTF8(),a.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(t=new i({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);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 t=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,r.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(t);var a=t;if(this.checkSignature(r.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.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(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var s=this.centralDirOffset+this.centralDirSize;this.zip64&&(s+=20,s+=12+this.zip64EndOfCentralSize);var u=a-s;if(0<u)this.isSignature(a,r.CENTRAL_FILE_HEADER)||(this.reader.zero=u);else if(u<0)throw new Error("Corrupted zip: missing "+Math.abs(u)+" bytes.")},prepareReader:function(t){this.reader=c(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},g.exports=e},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(b,g,f){"use strict";var c=b("./reader/readerFor"),o=b("./utils"),r=b("./compressedObject"),i=b("./crc32"),n=b("./utf8"),e=b("./compressions"),l=b("./support");function t(a,s){this.options=a,this.loadOptions=s}t.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(s){var u,h;if(s.skip(22),this.fileNameLength=s.readInt(2),h=s.readInt(2),this.fileName=s.readData(this.fileNameLength),s.skip(h),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((u=function(p){for(var m in e)if(e.hasOwnProperty(m)&&e[m].magic===p)return e[m];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new r(this.compressedSize,this.uncompressedSize,this.crc32,u,s.readData(this.compressedSize))},readCentralPart:function(s){this.versionMadeBy=s.readInt(2),s.skip(2),this.bitFlag=s.readInt(2),this.compressionMethod=s.readString(2),this.date=s.readDate(),this.crc32=s.readInt(4),this.compressedSize=s.readInt(4),this.uncompressedSize=s.readInt(4);var u=s.readInt(2);if(this.extraFieldsLength=s.readInt(2),this.fileCommentLength=s.readInt(2),this.diskNumberStart=s.readInt(2),this.internalFileAttributes=s.readInt(2),this.externalFileAttributes=s.readInt(4),this.localHeaderOffset=s.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");s.skip(u),this.readExtraFields(s),this.parseZIP64ExtraField(s),this.fileComment=s.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var s=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),s==0&&(this.dosPermissions=63&this.externalFileAttributes),s==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(s){if(this.extraFields[1]){var u=c(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=u.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=u.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=u.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=u.readInt(4))}},readExtraFields:function(s){var u,h,p,m=s.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});s.index+4<m;)u=s.readInt(2),h=s.readInt(2),p=s.readData(h),this.extraFields[u]={id:u,length:h,value:p};s.setIndex(m)},handleUTF8:function(){var s=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=n.utf8decode(this.fileName),this.fileCommentStr=n.utf8decode(this.fileComment);else{var u=this.findExtraFieldUnicodePath();if(u!==null)this.fileNameStr=u;else{var h=o.transformTo(s,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(h)}var p=this.findExtraFieldUnicodeComment();if(p!==null)this.fileCommentStr=p;else{var m=o.transformTo(s,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var s=this.extraFields[28789];if(s){var u=c(s.value);return u.readInt(1)!==1||i(this.fileName)!==u.readInt(4)?null:n.utf8decode(u.readData(s.length-5))}return null},findExtraFieldUnicodeComment:function(){var s=this.extraFields[25461];if(s){var u=c(s.value);return u.readInt(1)!==1||i(this.fileComment)!==u.readInt(4)?null:n.utf8decode(u.readData(s.length-5))}return null}},g.exports=t},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(b,g,f){"use strict";function c(s,u,h){this.name=s,this.dir=h.dir,this.date=h.date,this.comment=h.comment,this.unixPermissions=h.unixPermissions,this.dosPermissions=h.dosPermissions,this._data=u,this._dataBinary=h.binary,this.options={compression:h.compression,compressionOptions:h.compressionOptions}}var o=b("./stream/StreamHelper"),r=b("./stream/DataWorker"),i=b("./utf8"),n=b("./compressedObject"),e=b("./stream/GenericWorker");c.prototype={internalStream:function(u){var h=null,p="string";try{if(!u)throw new Error("No output type specified.");var m=(p=u.toLowerCase())==="string"||p==="text";p!=="binarystring"&&p!=="text"||(p="string"),h=this._decompressWorker();var v=!this._dataBinary;v&&!m&&(h=h.pipe(new i.Utf8EncodeWorker)),!v&&m&&(h=h.pipe(new i.Utf8DecodeWorker))}catch(y){(h=new e("error")).error(y)}return new o(h,p,"")},async:function(u,h){return this.internalStream(u).accumulate(h)},nodeStream:function(u,h){return this.internalStream(u||"nodebuffer").toNodejsStream(h)},_compressWorker:function(u,h){if(this._data instanceof n&&this._data.compression.magic===u.magic)return this._data.getCompressedWorker();var p=this._decompressWorker();return this._dataBinary||(p=p.pipe(new i.Utf8EncodeWorker)),n.createWorkerFrom(p,u,h)},_decompressWorker:function(){return this._data instanceof n?this._data.getContentWorker():this._data instanceof e?this._data:new r(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],t=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},a=0;a<l.length;a++)c.prototype[l[a]]=t;g.exports=c},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(b,g,f){(function(c){"use strict";var o,r,i=c.MutationObserver||c.WebKitMutationObserver;if(i){var n=0,e=new i(s),l=c.document.createTextNode("");e.observe(l,{characterData:!0}),o=function(){l.data=n=++n%2}}else if(c.setImmediate||c.MessageChannel===void 0)o="document"in c&&"onreadystatechange"in c.document.createElement("script")?function(){var u=c.document.createElement("script");u.onreadystatechange=function(){s(),u.onreadystatechange=null,u.parentNode.removeChild(u),u=null},c.document.documentElement.appendChild(u)}:function(){setTimeout(s,0)};else{var t=new c.MessageChannel;t.port1.onmessage=s,o=function(){t.port2.postMessage(0)}}var a=[];function s(){var u,h;r=!0;for(var p=a.length;p;){for(h=a,a=[],u=-1;++u<p;)h[u]();p=a.length}r=!1}g.exports=function(u){a.push(u)!==1||r||o()}}).call(this,typeof x!="undefined"?x:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(b,g,f){"use strict";var c=b("immediate");function o(){}var r={},i=["REJECTED"],n=["FULFILLED"],e=["PENDING"];function l(p){if(typeof p!="function")throw new TypeError("resolver must be a function");this.state=e,this.queue=[],this.outcome=void 0,p!==o&&u(this,p)}function t(p,m,v){this.promise=p,typeof m=="function"&&(this.onFulfilled=m,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function a(p,m,v){c(function(){var y;try{y=m(v)}catch(E){return r.reject(p,E)}y===p?r.reject(p,new TypeError("Cannot resolve promise with itself")):r.resolve(p,y)})}function s(p){var m=p&&p.then;if(p&&(typeof p=="object"||typeof p=="function")&&typeof m=="function")return function(){m.apply(p,arguments)}}function u(p,m){var v=!1;function y(w){v||(v=!0,r.reject(p,w))}function E(w){v||(v=!0,r.resolve(p,w))}var T=h(function(){m(E,y)});T.status==="error"&&y(T.value)}function h(p,m){var v={};try{v.value=p(m),v.status="success"}catch(y){v.status="error",v.value=y}return v}(g.exports=l).prototype.finally=function(p){if(typeof p!="function")return this;var m=this.constructor;return this.then(function(v){return m.resolve(p()).then(function(){return v})},function(v){return m.resolve(p()).then(function(){throw v})})},l.prototype.catch=function(p){return this.then(null,p)},l.prototype.then=function(p,m){if(typeof p!="function"&&this.state===n||typeof m!="function"&&this.state===i)return this;var v=new this.constructor(o);return this.state!==e?a(v,this.state===n?p:m,this.outcome):this.queue.push(new t(v,p,m)),v},t.prototype.callFulfilled=function(p){r.resolve(this.promise,p)},t.prototype.otherCallFulfilled=function(p){a(this.promise,this.onFulfilled,p)},t.prototype.callRejected=function(p){r.reject(this.promise,p)},t.prototype.otherCallRejected=function(p){a(this.promise,this.onRejected,p)},r.resolve=function(p,m){var v=h(s,m);if(v.status==="error")return r.reject(p,v.value);var y=v.value;if(y)u(p,y);else{p.state=n,p.outcome=m;for(var E=-1,T=p.queue.length;++E<T;)p.queue[E].callFulfilled(m)}return p},r.reject=function(p,m){p.state=i,p.outcome=m;for(var v=-1,y=p.queue.length;++v<y;)p.queue[v].callRejected(m);return p},l.resolve=function(p){return p instanceof this?p:r.resolve(new this(o),p)},l.reject=function(p){var m=new this(o);return r.reject(m,p)},l.all=function(p){var m=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=p.length,y=!1;if(!v)return this.resolve([]);for(var E=new Array(v),T=0,w=-1,S=new this(o);++w<v;)_(p[w],w);return S;function _(I,L){m.resolve(I).then(function(N){E[L]=N,++T!==v||y||(y=!0,r.resolve(S,E))},function(N){y||(y=!0,r.reject(S,N))})}},l.race=function(p){var m=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=p.length,y=!1;if(!v)return this.resolve([]);for(var E=-1,T=new this(o);++E<v;)w=p[E],m.resolve(w).then(function(S){y||(y=!0,r.resolve(T,S))},function(S){y||(y=!0,r.reject(T,S))});var w;return T}},{immediate:36}],38:[function(b,g,f){"use strict";var c={};(0,b("./lib/utils/common").assign)(c,b("./lib/deflate"),b("./lib/inflate"),b("./lib/zlib/constants")),g.exports=c},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(b,g,f){"use strict";var c=b("./zlib/deflate"),o=b("./utils/common"),r=b("./utils/strings"),i=b("./zlib/messages"),n=b("./zlib/zstream"),e=Object.prototype.toString,l=0,t=-1,a=0,s=8;function u(p){if(!(this instanceof u))return new u(p);this.options=o.assign({level:t,method:s,chunkSize:16384,windowBits:15,memLevel:8,strategy:a,to:""},p||{});var m=this.options;m.raw&&0<m.windowBits?m.windowBits=-m.windowBits:m.gzip&&0<m.windowBits&&m.windowBits<16&&(m.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new n,this.strm.avail_out=0;var v=c.deflateInit2(this.strm,m.level,m.method,m.windowBits,m.memLevel,m.strategy);if(v!==l)throw new Error(i[v]);if(m.header&&c.deflateSetHeader(this.strm,m.header),m.dictionary){var y;if(y=typeof m.dictionary=="string"?r.string2buf(m.dictionary):e.call(m.dictionary)==="[object ArrayBuffer]"?new Uint8Array(m.dictionary):m.dictionary,(v=c.deflateSetDictionary(this.strm,y))!==l)throw new Error(i[v]);this._dict_set=!0}}function h(p,m){var v=new u(m);if(v.push(p,!0),v.err)throw v.msg||i[v.err];return v.result}u.prototype.push=function(p,m){var v,y,E=this.strm,T=this.options.chunkSize;if(this.ended)return!1;y=m===~~m?m:m===!0?4:0,typeof p=="string"?E.input=r.string2buf(p):e.call(p)==="[object ArrayBuffer]"?E.input=new Uint8Array(p):E.input=p,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new o.Buf8(T),E.next_out=0,E.avail_out=T),(v=c.deflate(E,y))!==1&&v!==l)return this.onEnd(v),!(this.ended=!0);E.avail_out!==0&&(E.avail_in!==0||y!==4&&y!==2)||(this.options.to==="string"?this.onData(r.buf2binstring(o.shrinkBuf(E.output,E.next_out))):this.onData(o.shrinkBuf(E.output,E.next_out)))}while((0<E.avail_in||E.avail_out===0)&&v!==1);return y===4?(v=c.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===l):y!==2||(this.onEnd(l),!(E.avail_out=0))},u.prototype.onData=function(p){this.chunks.push(p)},u.prototype.onEnd=function(p){p===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},f.Deflate=u,f.deflate=h,f.deflateRaw=function(p,m){return(m=m||{}).raw=!0,h(p,m)},f.gzip=function(p,m){return(m=m||{}).gzip=!0,h(p,m)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(b,g,f){"use strict";var c=b("./zlib/inflate"),o=b("./utils/common"),r=b("./utils/strings"),i=b("./zlib/constants"),n=b("./zlib/messages"),e=b("./zlib/zstream"),l=b("./zlib/gzheader"),t=Object.prototype.toString;function a(u){if(!(this instanceof a))return new a(u);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},u||{});var h=this.options;h.raw&&0<=h.windowBits&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),!(0<=h.windowBits&&h.windowBits<16)||u&&u.windowBits||(h.windowBits+=32),15<h.windowBits&&h.windowBits<48&&(15&h.windowBits)==0&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new e,this.strm.avail_out=0;var p=c.inflateInit2(this.strm,h.windowBits);if(p!==i.Z_OK)throw new Error(n[p]);this.header=new l,c.inflateGetHeader(this.strm,this.header)}function s(u,h){var p=new a(h);if(p.push(u,!0),p.err)throw p.msg||n[p.err];return p.result}a.prototype.push=function(u,h){var p,m,v,y,E,T,w=this.strm,S=this.options.chunkSize,_=this.options.dictionary,I=!1;if(this.ended)return!1;m=h===~~h?h:h===!0?i.Z_FINISH:i.Z_NO_FLUSH,typeof u=="string"?w.input=r.binstring2buf(u):t.call(u)==="[object ArrayBuffer]"?w.input=new Uint8Array(u):w.input=u,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new o.Buf8(S),w.next_out=0,w.avail_out=S),(p=c.inflate(w,i.Z_NO_FLUSH))===i.Z_NEED_DICT&&_&&(T=typeof _=="string"?r.string2buf(_):t.call(_)==="[object ArrayBuffer]"?new Uint8Array(_):_,p=c.inflateSetDictionary(this.strm,T)),p===i.Z_BUF_ERROR&&I===!0&&(p=i.Z_OK,I=!1),p!==i.Z_STREAM_END&&p!==i.Z_OK)return this.onEnd(p),!(this.ended=!0);w.next_out&&(w.avail_out!==0&&p!==i.Z_STREAM_END&&(w.avail_in!==0||m!==i.Z_FINISH&&m!==i.Z_SYNC_FLUSH)||(this.options.to==="string"?(v=r.utf8border(w.output,w.next_out),y=w.next_out-v,E=r.buf2string(w.output,v),w.next_out=y,w.avail_out=S-y,y&&o.arraySet(w.output,w.output,v,y,0),this.onData(E)):this.onData(o.shrinkBuf(w.output,w.next_out)))),w.avail_in===0&&w.avail_out===0&&(I=!0)}while((0<w.avail_in||w.avail_out===0)&&p!==i.Z_STREAM_END);return p===i.Z_STREAM_END&&(m=i.Z_FINISH),m===i.Z_FINISH?(p=c.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===i.Z_OK):m!==i.Z_SYNC_FLUSH||(this.onEnd(i.Z_OK),!(w.avail_out=0))},a.prototype.onData=function(u){this.chunks.push(u)},a.prototype.onEnd=function(u){u===i.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg},f.Inflate=a,f.inflate=s,f.inflateRaw=function(u,h){return(h=h||{}).raw=!0,s(u,h)},f.ungzip=s},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(b,g,f){"use strict";var c=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";f.assign=function(i){for(var n=Array.prototype.slice.call(arguments,1);n.length;){var e=n.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(var l in e)e.hasOwnProperty(l)&&(i[l]=e[l])}}return i},f.shrinkBuf=function(i,n){return i.length===n?i:i.subarray?i.subarray(0,n):(i.length=n,i)};var o={arraySet:function(n,e,l,t,a){if(e.subarray&&n.subarray)n.set(e.subarray(l,l+t),a);else for(var s=0;s<t;s++)n[a+s]=e[l+s]},flattenChunks:function(n){var e,l,t,a,s,u;for(e=t=0,l=n.length;e<l;e++)t+=n[e].length;for(u=new Uint8Array(t),e=a=0,l=n.length;e<l;e++)s=n[e],u.set(s,a),a+=s.length;return u}},r={arraySet:function(n,e,l,t,a){for(var s=0;s<t;s++)n[a+s]=e[l+s]},flattenChunks:function(n){return[].concat.apply([],n)}};f.setTyped=function(i){i?(f.Buf8=Uint8Array,f.Buf16=Uint16Array,f.Buf32=Int32Array,f.assign(f,o)):(f.Buf8=Array,f.Buf16=Array,f.Buf32=Array,f.assign(f,r))},f.setTyped(c)},{}],42:[function(b,g,f){"use strict";var c=b("./common"),o=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(l){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(l){r=!1}for(var i=new c.Buf8(256),n=0;n<256;n++)i[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;function e(l,t){if(t<65537&&(l.subarray&&r||!l.subarray&&o))return String.fromCharCode.apply(null,c.shrinkBuf(l,t));for(var a="",s=0;s<t;s++)a+=String.fromCharCode(l[s]);return a}i[254]=i[254]=1,f.string2buf=function(l){var t,a,s,u,h,p=l.length,m=0;for(u=0;u<p;u++)(64512&(a=l.charCodeAt(u)))==55296&&u+1<p&&(64512&(s=l.charCodeAt(u+1)))==56320&&(a=65536+(a-55296<<10)+(s-56320),u++),m+=a<128?1:a<2048?2:a<65536?3:4;for(t=new c.Buf8(m),u=h=0;h<m;u++)(64512&(a=l.charCodeAt(u)))==55296&&u+1<p&&(64512&(s=l.charCodeAt(u+1)))==56320&&(a=65536+(a-55296<<10)+(s-56320),u++),a<128?t[h++]=a:(a<2048?t[h++]=192|a>>>6:(a<65536?t[h++]=224|a>>>12:(t[h++]=240|a>>>18,t[h++]=128|a>>>12&63),t[h++]=128|a>>>6&63),t[h++]=128|63&a);return t},f.buf2binstring=function(l){return e(l,l.length)},f.binstring2buf=function(l){for(var t=new c.Buf8(l.length),a=0,s=t.length;a<s;a++)t[a]=l.charCodeAt(a);return t},f.buf2string=function(l,t){var a,s,u,h,p=t||l.length,m=new Array(2*p);for(a=s=0;a<p;)if((u=l[a++])<128)m[s++]=u;else if(4<(h=i[u]))m[s++]=65533,a+=h-1;else{for(u&=h===2?31:h===3?15:7;1<h&&a<p;)u=u<<6|63&l[a++],h--;1<h?m[s++]=65533:u<65536?m[s++]=u:(u-=65536,m[s++]=55296|u>>10&1023,m[s++]=56320|1023&u)}return e(m,s)},f.utf8border=function(l,t){var a;for((t=t||l.length)>l.length&&(t=l.length),a=t-1;0<=a&&(192&l[a])==128;)a--;return a<0||a===0?t:a+i[l[a]]>t?a:t}},{"./common":41}],43:[function(b,g,f){"use strict";g.exports=function(c,o,r,i){for(var n=65535&c|0,e=c>>>16&65535|0,l=0;r!==0;){for(r-=l=2e3<r?2e3:r;e=e+(n=n+o[i++]|0)|0,--l;);n%=65521,e%=65521}return n|e<<16|0}},{}],44:[function(b,g,f){"use strict";g.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(b,g,f){"use strict";var c=function(){for(var o,r=[],i=0;i<256;i++){o=i;for(var n=0;n<8;n++)o=1&o?3988292384^o>>>1:o>>>1;r[i]=o}return r}();g.exports=function(o,r,i,n){var e=c,l=n+i;o^=-1;for(var t=n;t<l;t++)o=o>>>8^e[255&(o^r[t])];return-1^o}},{}],46:[function(b,g,f){"use strict";var c,o=b("../utils/common"),r=b("./trees"),i=b("./adler32"),n=b("./crc32"),e=b("./messages"),l=0,t=4,a=0,s=-2,u=-1,h=4,p=2,m=8,v=9,y=286,E=30,T=19,w=2*y+1,S=15,_=3,I=258,L=I+_+1,N=42,R=113,D=1,F=2,M=3,U=4;function B(te,Ge){return te.msg=e[Ge],Ge}function j(te){return(te<<1)-(4<te?9:0)}function W(te){for(var Ge=te.length;0<=--Ge;)te[Ge]=0}function V(te){var Ge=te.state,oe=Ge.pending;oe>te.avail_out&&(oe=te.avail_out),oe!==0&&(o.arraySet(te.output,Ge.pending_buf,Ge.pending_out,oe,te.next_out),te.next_out+=oe,Ge.pending_out+=oe,te.total_out+=oe,te.avail_out-=oe,Ge.pending-=oe,Ge.pending===0&&(Ge.pending_out=0))}function z(te,Ge){r._tr_flush_block(te,0<=te.block_start?te.block_start:-1,te.strstart-te.block_start,Ge),te.block_start=te.strstart,V(te.strm)}function J(te,Ge){te.pending_buf[te.pending++]=Ge}function q(te,Ge){te.pending_buf[te.pending++]=Ge>>>8&255,te.pending_buf[te.pending++]=255&Ge}function de(te,Ge){var oe,Y,G=te.max_chain_length,Q=te.strstart,ye=te.prev_length,ce=te.nice_match,Te=te.strstart>te.w_size-L?te.strstart-(te.w_size-L):0,Se=te.window,le=te.w_mask,fe=te.prev,Ee=te.strstart+I,Ve=Se[Q+ye-1],vt=Se[Q+ye];te.prev_length>=te.good_match&&(G>>=2),ce>te.lookahead&&(ce=te.lookahead);do if(Se[(oe=Ge)+ye]===vt&&Se[oe+ye-1]===Ve&&Se[oe]===Se[Q]&&Se[++oe]===Se[Q+1]){Q+=2,oe++;do;while(Se[++Q]===Se[++oe]&&Se[++Q]===Se[++oe]&&Se[++Q]===Se[++oe]&&Se[++Q]===Se[++oe]&&Se[++Q]===Se[++oe]&&Se[++Q]===Se[++oe]&&Se[++Q]===Se[++oe]&&Se[++Q]===Se[++oe]&&Q<Ee);if(Y=I-(Ee-Q),Q=Ee-I,ye<Y){if(te.match_start=Ge,ce<=(ye=Y))break;Ve=Se[Q+ye-1],vt=Se[Q+ye]}}while((Ge=fe[Ge&le])>Te&&--G!=0);return ye<=te.lookahead?ye:te.lookahead}function ae(te){var Ge,oe,Y,G,Q,ye,ce,Te,Se,le,fe=te.w_size;do{if(G=te.window_size-te.lookahead-te.strstart,te.strstart>=fe+(fe-L)){for(o.arraySet(te.window,te.window,fe,fe,0),te.match_start-=fe,te.strstart-=fe,te.block_start-=fe,Ge=oe=te.hash_size;Y=te.head[--Ge],te.head[Ge]=fe<=Y?Y-fe:0,--oe;);for(Ge=oe=fe;Y=te.prev[--Ge],te.prev[Ge]=fe<=Y?Y-fe:0,--oe;);G+=fe}if(te.strm.avail_in===0)break;if(ye=te.strm,ce=te.window,Te=te.strstart+te.lookahead,Se=G,le=void 0,le=ye.avail_in,Se<le&&(le=Se),oe=le===0?0:(ye.avail_in-=le,o.arraySet(ce,ye.input,ye.next_in,le,Te),ye.state.wrap===1?ye.adler=i(ye.adler,ce,le,Te):ye.state.wrap===2&&(ye.adler=n(ye.adler,ce,le,Te)),ye.next_in+=le,ye.total_in+=le,le),te.lookahead+=oe,te.lookahead+te.insert>=_)for(Q=te.strstart-te.insert,te.ins_h=te.window[Q],te.ins_h=(te.ins_h<<te.hash_shift^te.window[Q+1])&te.hash_mask;te.insert&&(te.ins_h=(te.ins_h<<te.hash_shift^te.window[Q+_-1])&te.hash_mask,te.prev[Q&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=Q,Q++,te.insert--,!(te.lookahead+te.insert<_)););}while(te.lookahead<L&&te.strm.avail_in!==0)}function ve(te,Ge){for(var oe,Y;;){if(te.lookahead<L){if(ae(te),te.lookahead<L&&Ge===l)return D;if(te.lookahead===0)break}if(oe=0,te.lookahead>=_&&(te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+_-1])&te.hash_mask,oe=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart),oe!==0&&te.strstart-oe<=te.w_size-L&&(te.match_length=de(te,oe)),te.match_length>=_)if(Y=r._tr_tally(te,te.strstart-te.match_start,te.match_length-_),te.lookahead-=te.match_length,te.match_length<=te.max_lazy_match&&te.lookahead>=_){for(te.match_length--;te.strstart++,te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+_-1])&te.hash_mask,oe=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart,--te.match_length!=0;);te.strstart++}else te.strstart+=te.match_length,te.match_length=0,te.ins_h=te.window[te.strstart],te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+1])&te.hash_mask;else Y=r._tr_tally(te,0,te.window[te.strstart]),te.lookahead--,te.strstart++;if(Y&&(z(te,!1),te.strm.avail_out===0))return D}return te.insert=te.strstart<_-1?te.strstart:_-1,Ge===t?(z(te,!0),te.strm.avail_out===0?M:U):te.last_lit&&(z(te,!1),te.strm.avail_out===0)?D:F}function _e(te,Ge){for(var oe,Y,G;;){if(te.lookahead<L){if(ae(te),te.lookahead<L&&Ge===l)return D;if(te.lookahead===0)break}if(oe=0,te.lookahead>=_&&(te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+_-1])&te.hash_mask,oe=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart),te.prev_length=te.match_length,te.prev_match=te.match_start,te.match_length=_-1,oe!==0&&te.prev_length<te.max_lazy_match&&te.strstart-oe<=te.w_size-L&&(te.match_length=de(te,oe),te.match_length<=5&&(te.strategy===1||te.match_length===_&&4096<te.strstart-te.match_start)&&(te.match_length=_-1)),te.prev_length>=_&&te.match_length<=te.prev_length){for(G=te.strstart+te.lookahead-_,Y=r._tr_tally(te,te.strstart-1-te.prev_match,te.prev_length-_),te.lookahead-=te.prev_length-1,te.prev_length-=2;++te.strstart<=G&&(te.ins_h=(te.ins_h<<te.hash_shift^te.window[te.strstart+_-1])&te.hash_mask,oe=te.prev[te.strstart&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=te.strstart),--te.prev_length!=0;);if(te.match_available=0,te.match_length=_-1,te.strstart++,Y&&(z(te,!1),te.strm.avail_out===0))return D}else if(te.match_available){if((Y=r._tr_tally(te,0,te.window[te.strstart-1]))&&z(te,!1),te.strstart++,te.lookahead--,te.strm.avail_out===0)return D}else te.match_available=1,te.strstart++,te.lookahead--}return te.match_available&&(Y=r._tr_tally(te,0,te.window[te.strstart-1]),te.match_available=0),te.insert=te.strstart<_-1?te.strstart:_-1,Ge===t?(z(te,!0),te.strm.avail_out===0?M:U):te.last_lit&&(z(te,!1),te.strm.avail_out===0)?D:F}function Ie(te,Ge,oe,Y,G){this.good_length=te,this.max_lazy=Ge,this.nice_length=oe,this.max_chain=Y,this.func=G}function He(){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=m,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 o.Buf16(2*w),this.dyn_dtree=new o.Buf16(2*(2*E+1)),this.bl_tree=new o.Buf16(2*(2*T+1)),W(this.dyn_ltree),W(this.dyn_dtree),W(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(S+1),this.heap=new o.Buf16(2*y+1),W(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*y+1),W(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 me(te){var Ge;return te&&te.state?(te.total_in=te.total_out=0,te.data_type=p,(Ge=te.state).pending=0,Ge.pending_out=0,Ge.wrap<0&&(Ge.wrap=-Ge.wrap),Ge.status=Ge.wrap?N:R,te.adler=Ge.wrap===2?0:1,Ge.last_flush=l,r._tr_init(Ge),a):B(te,s)}function ke(te){var Ge=me(te);return Ge===a&&function(oe){oe.window_size=2*oe.w_size,W(oe.head),oe.max_lazy_match=c[oe.level].max_lazy,oe.good_match=c[oe.level].good_length,oe.nice_match=c[oe.level].nice_length,oe.max_chain_length=c[oe.level].max_chain,oe.strstart=0,oe.block_start=0,oe.lookahead=0,oe.insert=0,oe.match_length=oe.prev_length=_-1,oe.match_available=0,oe.ins_h=0}(te.state),Ge}function se(te,Ge,oe,Y,G,Q){if(!te)return s;var ye=1;if(Ge===u&&(Ge=6),Y<0?(ye=0,Y=-Y):15<Y&&(ye=2,Y-=16),G<1||v<G||oe!==m||Y<8||15<Y||Ge<0||9<Ge||Q<0||h<Q)return B(te,s);Y===8&&(Y=9);var ce=new He;return(te.state=ce).strm=te,ce.wrap=ye,ce.gzhead=null,ce.w_bits=Y,ce.w_size=1<<ce.w_bits,ce.w_mask=ce.w_size-1,ce.hash_bits=G+7,ce.hash_size=1<<ce.hash_bits,ce.hash_mask=ce.hash_size-1,ce.hash_shift=~~((ce.hash_bits+_-1)/_),ce.window=new o.Buf8(2*ce.w_size),ce.head=new o.Buf16(ce.hash_size),ce.prev=new o.Buf16(ce.w_size),ce.lit_bufsize=1<<G+6,ce.pending_buf_size=4*ce.lit_bufsize,ce.pending_buf=new o.Buf8(ce.pending_buf_size),ce.d_buf=1*ce.lit_bufsize,ce.l_buf=3*ce.lit_bufsize,ce.level=Ge,ce.strategy=Q,ce.method=oe,ke(te)}c=[new Ie(0,0,0,0,function(te,Ge){var oe=65535;for(oe>te.pending_buf_size-5&&(oe=te.pending_buf_size-5);;){if(te.lookahead<=1){if(ae(te),te.lookahead===0&&Ge===l)return D;if(te.lookahead===0)break}te.strstart+=te.lookahead,te.lookahead=0;var Y=te.block_start+oe;if((te.strstart===0||te.strstart>=Y)&&(te.lookahead=te.strstart-Y,te.strstart=Y,z(te,!1),te.strm.avail_out===0))return D;if(te.strstart-te.block_start>=te.w_size-L&&(z(te,!1),te.strm.avail_out===0))return D}return te.insert=0,Ge===t?(z(te,!0),te.strm.avail_out===0?M:U):(te.strstart>te.block_start&&(z(te,!1),te.strm.avail_out),D)}),new Ie(4,4,8,4,ve),new Ie(4,5,16,8,ve),new Ie(4,6,32,32,ve),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)],f.deflateInit=function(te,Ge){return se(te,Ge,m,15,8,0)},f.deflateInit2=se,f.deflateReset=ke,f.deflateResetKeep=me,f.deflateSetHeader=function(te,Ge){return te&&te.state?te.state.wrap!==2?s:(te.state.gzhead=Ge,a):s},f.deflate=function(te,Ge){var oe,Y,G,Q;if(!te||!te.state||5<Ge||Ge<0)return te?B(te,s):s;if(Y=te.state,!te.output||!te.input&&te.avail_in!==0||Y.status===666&&Ge!==t)return B(te,te.avail_out===0?-5:s);if(Y.strm=te,oe=Y.last_flush,Y.last_flush=Ge,Y.status===N)if(Y.wrap===2)te.adler=0,J(Y,31),J(Y,139),J(Y,8),Y.gzhead?(J(Y,(Y.gzhead.text?1:0)+(Y.gzhead.hcrc?2:0)+(Y.gzhead.extra?4:0)+(Y.gzhead.name?8:0)+(Y.gzhead.comment?16:0)),J(Y,255&Y.gzhead.time),J(Y,Y.gzhead.time>>8&255),J(Y,Y.gzhead.time>>16&255),J(Y,Y.gzhead.time>>24&255),J(Y,Y.level===9?2:2<=Y.strategy||Y.level<2?4:0),J(Y,255&Y.gzhead.os),Y.gzhead.extra&&Y.gzhead.extra.length&&(J(Y,255&Y.gzhead.extra.length),J(Y,Y.gzhead.extra.length>>8&255)),Y.gzhead.hcrc&&(te.adler=n(te.adler,Y.pending_buf,Y.pending,0)),Y.gzindex=0,Y.status=69):(J(Y,0),J(Y,0),J(Y,0),J(Y,0),J(Y,0),J(Y,Y.level===9?2:2<=Y.strategy||Y.level<2?4:0),J(Y,3),Y.status=R);else{var ye=m+(Y.w_bits-8<<4)<<8;ye|=(2<=Y.strategy||Y.level<2?0:Y.level<6?1:Y.level===6?2:3)<<6,Y.strstart!==0&&(ye|=32),ye+=31-ye%31,Y.status=R,q(Y,ye),Y.strstart!==0&&(q(Y,te.adler>>>16),q(Y,65535&te.adler)),te.adler=1}if(Y.status===69)if(Y.gzhead.extra){for(G=Y.pending;Y.gzindex<(65535&Y.gzhead.extra.length)&&(Y.pending!==Y.pending_buf_size||(Y.gzhead.hcrc&&Y.pending>G&&(te.adler=n(te.adler,Y.pending_buf,Y.pending-G,G)),V(te),G=Y.pending,Y.pending!==Y.pending_buf_size));)J(Y,255&Y.gzhead.extra[Y.gzindex]),Y.gzindex++;Y.gzhead.hcrc&&Y.pending>G&&(te.adler=n(te.adler,Y.pending_buf,Y.pending-G,G)),Y.gzindex===Y.gzhead.extra.length&&(Y.gzindex=0,Y.status=73)}else Y.status=73;if(Y.status===73)if(Y.gzhead.name){G=Y.pending;do{if(Y.pending===Y.pending_buf_size&&(Y.gzhead.hcrc&&Y.pending>G&&(te.adler=n(te.adler,Y.pending_buf,Y.pending-G,G)),V(te),G=Y.pending,Y.pending===Y.pending_buf_size)){Q=1;break}Q=Y.gzindex<Y.gzhead.name.length?255&Y.gzhead.name.charCodeAt(Y.gzindex++):0,J(Y,Q)}while(Q!==0);Y.gzhead.hcrc&&Y.pending>G&&(te.adler=n(te.adler,Y.pending_buf,Y.pending-G,G)),Q===0&&(Y.gzindex=0,Y.status=91)}else Y.status=91;if(Y.status===91)if(Y.gzhead.comment){G=Y.pending;do{if(Y.pending===Y.pending_buf_size&&(Y.gzhead.hcrc&&Y.pending>G&&(te.adler=n(te.adler,Y.pending_buf,Y.pending-G,G)),V(te),G=Y.pending,Y.pending===Y.pending_buf_size)){Q=1;break}Q=Y.gzindex<Y.gzhead.comment.length?255&Y.gzhead.comment.charCodeAt(Y.gzindex++):0,J(Y,Q)}while(Q!==0);Y.gzhead.hcrc&&Y.pending>G&&(te.adler=n(te.adler,Y.pending_buf,Y.pending-G,G)),Q===0&&(Y.status=103)}else Y.status=103;if(Y.status===103&&(Y.gzhead.hcrc?(Y.pending+2>Y.pending_buf_size&&V(te),Y.pending+2<=Y.pending_buf_size&&(J(Y,255&te.adler),J(Y,te.adler>>8&255),te.adler=0,Y.status=R)):Y.status=R),Y.pending!==0){if(V(te),te.avail_out===0)return Y.last_flush=-1,a}else if(te.avail_in===0&&j(Ge)<=j(oe)&&Ge!==t)return B(te,-5);if(Y.status===666&&te.avail_in!==0)return B(te,-5);if(te.avail_in!==0||Y.lookahead!==0||Ge!==l&&Y.status!==666){var ce=Y.strategy===2?function(Te,Se){for(var le;;){if(Te.lookahead===0&&(ae(Te),Te.lookahead===0)){if(Se===l)return D;break}if(Te.match_length=0,le=r._tr_tally(Te,0,Te.window[Te.strstart]),Te.lookahead--,Te.strstart++,le&&(z(Te,!1),Te.strm.avail_out===0))return D}return Te.insert=0,Se===t?(z(Te,!0),Te.strm.avail_out===0?M:U):Te.last_lit&&(z(Te,!1),Te.strm.avail_out===0)?D:F}(Y,Ge):Y.strategy===3?function(Te,Se){for(var le,fe,Ee,Ve,vt=Te.window;;){if(Te.lookahead<=I){if(ae(Te),Te.lookahead<=I&&Se===l)return D;if(Te.lookahead===0)break}if(Te.match_length=0,Te.lookahead>=_&&0<Te.strstart&&(fe=vt[Ee=Te.strstart-1])===vt[++Ee]&&fe===vt[++Ee]&&fe===vt[++Ee]){Ve=Te.strstart+I;do;while(fe===vt[++Ee]&&fe===vt[++Ee]&&fe===vt[++Ee]&&fe===vt[++Ee]&&fe===vt[++Ee]&&fe===vt[++Ee]&&fe===vt[++Ee]&&fe===vt[++Ee]&&Ee<Ve);Te.match_length=I-(Ve-Ee),Te.match_length>Te.lookahead&&(Te.match_length=Te.lookahead)}if(Te.match_length>=_?(le=r._tr_tally(Te,1,Te.match_length-_),Te.lookahead-=Te.match_length,Te.strstart+=Te.match_length,Te.match_length=0):(le=r._tr_tally(Te,0,Te.window[Te.strstart]),Te.lookahead--,Te.strstart++),le&&(z(Te,!1),Te.strm.avail_out===0))return D}return Te.insert=0,Se===t?(z(Te,!0),Te.strm.avail_out===0?M:U):Te.last_lit&&(z(Te,!1),Te.strm.avail_out===0)?D:F}(Y,Ge):c[Y.level].func(Y,Ge);if(ce!==M&&ce!==U||(Y.status=666),ce===D||ce===M)return te.avail_out===0&&(Y.last_flush=-1),a;if(ce===F&&(Ge===1?r._tr_align(Y):Ge!==5&&(r._tr_stored_block(Y,0,0,!1),Ge===3&&(W(Y.head),Y.lookahead===0&&(Y.strstart=0,Y.block_start=0,Y.insert=0))),V(te),te.avail_out===0))return Y.last_flush=-1,a}return Ge!==t?a:Y.wrap<=0?1:(Y.wrap===2?(J(Y,255&te.adler),J(Y,te.adler>>8&255),J(Y,te.adler>>16&255),J(Y,te.adler>>24&255),J(Y,255&te.total_in),J(Y,te.total_in>>8&255),J(Y,te.total_in>>16&255),J(Y,te.total_in>>24&255)):(q(Y,te.adler>>>16),q(Y,65535&te.adler)),V(te),0<Y.wrap&&(Y.wrap=-Y.wrap),Y.pending!==0?a:1)},f.deflateEnd=function(te){var Ge;return te&&te.state?(Ge=te.state.status)!==N&&Ge!==69&&Ge!==73&&Ge!==91&&Ge!==103&&Ge!==R&&Ge!==666?B(te,s):(te.state=null,Ge===R?B(te,-3):a):s},f.deflateSetDictionary=function(te,Ge){var oe,Y,G,Q,ye,ce,Te,Se,le=Ge.length;if(!te||!te.state)return s;if((Q=(oe=te.state).wrap)===2||Q===1&&oe.status!==N||oe.lookahead)return s;for(Q===1&&(te.adler=i(te.adler,Ge,le,0)),oe.wrap=0,le>=oe.w_size&&(Q===0&&(W(oe.head),oe.strstart=0,oe.block_start=0,oe.insert=0),Se=new o.Buf8(oe.w_size),o.arraySet(Se,Ge,le-oe.w_size,oe.w_size,0),Ge=Se,le=oe.w_size),ye=te.avail_in,ce=te.next_in,Te=te.input,te.avail_in=le,te.next_in=0,te.input=Ge,ae(oe);oe.lookahead>=_;){for(Y=oe.strstart,G=oe.lookahead-(_-1);oe.ins_h=(oe.ins_h<<oe.hash_shift^oe.window[Y+_-1])&oe.hash_mask,oe.prev[Y&oe.w_mask]=oe.head[oe.ins_h],oe.head[oe.ins_h]=Y,Y++,--G;);oe.strstart=Y,oe.lookahead=_-1,ae(oe)}return oe.strstart+=oe.lookahead,oe.block_start=oe.strstart,oe.insert=oe.lookahead,oe.lookahead=0,oe.match_length=oe.prev_length=_-1,oe.match_available=0,te.next_in=ce,te.input=Te,te.avail_in=ye,oe.wrap=Q,a},f.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(b,g,f){"use strict";g.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(b,g,f){"use strict";g.exports=function(c,o){var r,i,n,e,l,t,a,s,u,h,p,m,v,y,E,T,w,S,_,I,L,N,R,D,F;r=c.state,i=c.next_in,D=c.input,n=i+(c.avail_in-5),e=c.next_out,F=c.output,l=e-(o-c.avail_out),t=e+(c.avail_out-257),a=r.dmax,s=r.wsize,u=r.whave,h=r.wnext,p=r.window,m=r.hold,v=r.bits,y=r.lencode,E=r.distcode,T=(1<<r.lenbits)-1,w=(1<<r.distbits)-1;e:do{v<15&&(m+=D[i++]<<v,v+=8,m+=D[i++]<<v,v+=8),S=y[m&T];t:for(;;){if(m>>>=_=S>>>24,v-=_,(_=S>>>16&255)===0)F[e++]=65535&S;else{if(!(16&_)){if((64&_)==0){S=y[(65535&S)+(m&(1<<_)-1)];continue t}if(32&_){r.mode=12;break e}c.msg="invalid literal/length code",r.mode=30;break e}I=65535&S,(_&=15)&&(v<_&&(m+=D[i++]<<v,v+=8),I+=m&(1<<_)-1,m>>>=_,v-=_),v<15&&(m+=D[i++]<<v,v+=8,m+=D[i++]<<v,v+=8),S=E[m&w];r:for(;;){if(m>>>=_=S>>>24,v-=_,!(16&(_=S>>>16&255))){if((64&_)==0){S=E[(65535&S)+(m&(1<<_)-1)];continue r}c.msg="invalid distance code",r.mode=30;break e}if(L=65535&S,v<(_&=15)&&(m+=D[i++]<<v,(v+=8)<_&&(m+=D[i++]<<v,v+=8)),a<(L+=m&(1<<_)-1)){c.msg="invalid distance too far back",r.mode=30;break e}if(m>>>=_,v-=_,(_=e-l)<L){if(u<(_=L-_)&&r.sane){c.msg="invalid distance too far back",r.mode=30;break e}if(R=p,(N=0)===h){if(N+=s-_,_<I){for(I-=_;F[e++]=p[N++],--_;);N=e-L,R=F}}else if(h<_){if(N+=s+h-_,(_-=h)<I){for(I-=_;F[e++]=p[N++],--_;);if(N=0,h<I){for(I-=_=h;F[e++]=p[N++],--_;);N=e-L,R=F}}}else if(N+=h-_,_<I){for(I-=_;F[e++]=p[N++],--_;);N=e-L,R=F}for(;2<I;)F[e++]=R[N++],F[e++]=R[N++],F[e++]=R[N++],I-=3;I&&(F[e++]=R[N++],1<I&&(F[e++]=R[N++]))}else{for(N=e-L;F[e++]=F[N++],F[e++]=F[N++],F[e++]=F[N++],2<(I-=3););I&&(F[e++]=F[N++],1<I&&(F[e++]=F[N++]))}break}}break}}while(i<n&&e<t);i-=I=v>>3,m&=(1<<(v-=I<<3))-1,c.next_in=i,c.next_out=e,c.avail_in=i<n?n-i+5:5-(i-n),c.avail_out=e<t?t-e+257:257-(e-t),r.hold=m,r.bits=v}},{}],49:[function(b,g,f){"use strict";var c=b("../utils/common"),o=b("./adler32"),r=b("./crc32"),i=b("./inffast"),n=b("./inftrees"),e=1,l=2,t=0,a=-2,s=1,u=852,h=592;function p(N){return(N>>>24&255)+(N>>>8&65280)+((65280&N)<<8)+((255&N)<<24)}function m(){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 c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(N){var R;return N&&N.state?(R=N.state,N.total_in=N.total_out=R.total=0,N.msg="",R.wrap&&(N.adler=1&R.wrap),R.mode=s,R.last=0,R.havedict=0,R.dmax=32768,R.head=null,R.hold=0,R.bits=0,R.lencode=R.lendyn=new c.Buf32(u),R.distcode=R.distdyn=new c.Buf32(h),R.sane=1,R.back=-1,t):a}function y(N){var R;return N&&N.state?((R=N.state).wsize=0,R.whave=0,R.wnext=0,v(N)):a}function E(N,R){var D,F;return N&&N.state?(F=N.state,R<0?(D=0,R=-R):(D=1+(R>>4),R<48&&(R&=15)),R&&(R<8||15<R)?a:(F.window!==null&&F.wbits!==R&&(F.window=null),F.wrap=D,F.wbits=R,y(N))):a}function T(N,R){var D,F;return N?(F=new m,(N.state=F).window=null,(D=E(N,R))!==t&&(N.state=null),D):a}var w,S,_=!0;function I(N){if(_){var R;for(w=new c.Buf32(512),S=new c.Buf32(32),R=0;R<144;)N.lens[R++]=8;for(;R<256;)N.lens[R++]=9;for(;R<280;)N.lens[R++]=7;for(;R<288;)N.lens[R++]=8;for(n(e,N.lens,0,288,w,0,N.work,{bits:9}),R=0;R<32;)N.lens[R++]=5;n(l,N.lens,0,32,S,0,N.work,{bits:5}),_=!1}N.lencode=w,N.lenbits=9,N.distcode=S,N.distbits=5}function L(N,R,D,F){var M,U=N.state;return U.window===null&&(U.wsize=1<<U.wbits,U.wnext=0,U.whave=0,U.window=new c.Buf8(U.wsize)),F>=U.wsize?(c.arraySet(U.window,R,D-U.wsize,U.wsize,0),U.wnext=0,U.whave=U.wsize):(F<(M=U.wsize-U.wnext)&&(M=F),c.arraySet(U.window,R,D-F,M,U.wnext),(F-=M)?(c.arraySet(U.window,R,D-F,F,0),U.wnext=F,U.whave=U.wsize):(U.wnext+=M,U.wnext===U.wsize&&(U.wnext=0),U.whave<U.wsize&&(U.whave+=M))),0}f.inflateReset=y,f.inflateReset2=E,f.inflateResetKeep=v,f.inflateInit=function(N){return T(N,15)},f.inflateInit2=T,f.inflate=function(N,R){var D,F,M,U,B,j,W,V,z,J,q,de,ae,ve,_e,Ie,He,me,ke,se,te,Ge,oe,Y,G=0,Q=new c.Buf8(4),ye=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!N||!N.state||!N.output||!N.input&&N.avail_in!==0)return a;(D=N.state).mode===12&&(D.mode=13),B=N.next_out,M=N.output,W=N.avail_out,U=N.next_in,F=N.input,j=N.avail_in,V=D.hold,z=D.bits,J=j,q=W,Ge=t;e:for(;;)switch(D.mode){case s:if(D.wrap===0){D.mode=13;break}for(;z<16;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}if(2&D.wrap&&V===35615){Q[D.check=0]=255&V,Q[1]=V>>>8&255,D.check=r(D.check,Q,2,0),z=V=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&V)<<8)+(V>>8))%31){N.msg="incorrect header check",D.mode=30;break}if((15&V)!=8){N.msg="unknown compression method",D.mode=30;break}if(z-=4,te=8+(15&(V>>>=4)),D.wbits===0)D.wbits=te;else if(te>D.wbits){N.msg="invalid window size",D.mode=30;break}D.dmax=1<<te,N.adler=D.check=1,D.mode=512&V?10:12,z=V=0;break;case 2:for(;z<16;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}if(D.flags=V,(255&D.flags)!=8){N.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){N.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=V>>8&1),512&D.flags&&(Q[0]=255&V,Q[1]=V>>>8&255,D.check=r(D.check,Q,2,0)),z=V=0,D.mode=3;case 3:for(;z<32;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}D.head&&(D.head.time=V),512&D.flags&&(Q[0]=255&V,Q[1]=V>>>8&255,Q[2]=V>>>16&255,Q[3]=V>>>24&255,D.check=r(D.check,Q,4,0)),z=V=0,D.mode=4;case 4:for(;z<16;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}D.head&&(D.head.xflags=255&V,D.head.os=V>>8),512&D.flags&&(Q[0]=255&V,Q[1]=V>>>8&255,D.check=r(D.check,Q,2,0)),z=V=0,D.mode=5;case 5:if(1024&D.flags){for(;z<16;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}D.length=V,D.head&&(D.head.extra_len=V),512&D.flags&&(Q[0]=255&V,Q[1]=V>>>8&255,D.check=r(D.check,Q,2,0)),z=V=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(j<(de=D.length)&&(de=j),de&&(D.head&&(te=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Array(D.head.extra_len)),c.arraySet(D.head.extra,F,U,de,te)),512&D.flags&&(D.check=r(D.check,F,de,U)),j-=de,U+=de,D.length-=de),D.length))break e;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(j===0)break e;for(de=0;te=F[U+de++],D.head&&te&&D.length<65536&&(D.head.name+=String.fromCharCode(te)),te&&de<j;);if(512&D.flags&&(D.check=r(D.check,F,de,U)),j-=de,U+=de,te)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(j===0)break e;for(de=0;te=F[U+de++],D.head&&te&&D.length<65536&&(D.head.comment+=String.fromCharCode(te)),te&&de<j;);if(512&D.flags&&(D.check=r(D.check,F,de,U)),j-=de,U+=de,te)break e}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;z<16;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}if(V!==(65535&D.check)){N.msg="header crc mismatch",D.mode=30;break}z=V=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),N.adler=D.check=0,D.mode=12;break;case 10:for(;z<32;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}N.adler=D.check=p(V),z=V=0,D.mode=11;case 11:if(D.havedict===0)return N.next_out=B,N.avail_out=W,N.next_in=U,N.avail_in=j,D.hold=V,D.bits=z,2;N.adler=D.check=1,D.mode=12;case 12:if(R===5||R===6)break e;case 13:if(D.last){V>>>=7&z,z-=7&z,D.mode=27;break}for(;z<3;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}switch(D.last=1&V,z-=1,3&(V>>>=1)){case 0:D.mode=14;break;case 1:if(I(D),D.mode=20,R!==6)break;V>>>=2,z-=2;break e;case 2:D.mode=17;break;case 3:N.msg="invalid block type",D.mode=30}V>>>=2,z-=2;break;case 14:for(V>>>=7&z,z-=7&z;z<32;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}if((65535&V)!=(V>>>16^65535)){N.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&V,z=V=0,D.mode=15,R===6)break e;case 15:D.mode=16;case 16:if(de=D.length){if(j<de&&(de=j),W<de&&(de=W),de===0)break e;c.arraySet(M,F,U,de,B),j-=de,U+=de,W-=de,B+=de,D.length-=de;break}D.mode=12;break;case 17:for(;z<14;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}if(D.nlen=257+(31&V),V>>>=5,z-=5,D.ndist=1+(31&V),V>>>=5,z-=5,D.ncode=4+(15&V),V>>>=4,z-=4,286<D.nlen||30<D.ndist){N.msg="too many length or distance symbols",D.mode=30;break}D.have=0,D.mode=18;case 18:for(;D.have<D.ncode;){for(;z<3;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}D.lens[ye[D.have++]]=7&V,V>>>=3,z-=3}for(;D.have<19;)D.lens[ye[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,oe={bits:D.lenbits},Ge=n(0,D.lens,0,19,D.lencode,0,D.work,oe),D.lenbits=oe.bits,Ge){N.msg="invalid code lengths set",D.mode=30;break}D.have=0,D.mode=19;case 19:for(;D.have<D.nlen+D.ndist;){for(;Ie=(G=D.lencode[V&(1<<D.lenbits)-1])>>>16&255,He=65535&G,!((_e=G>>>24)<=z);){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}if(He<16)V>>>=_e,z-=_e,D.lens[D.have++]=He;else{if(He===16){for(Y=_e+2;z<Y;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}if(V>>>=_e,z-=_e,D.have===0){N.msg="invalid bit length repeat",D.mode=30;break}te=D.lens[D.have-1],de=3+(3&V),V>>>=2,z-=2}else if(He===17){for(Y=_e+3;z<Y;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}z-=_e,te=0,de=3+(7&(V>>>=_e)),V>>>=3,z-=3}else{for(Y=_e+7;z<Y;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}z-=_e,te=0,de=11+(127&(V>>>=_e)),V>>>=7,z-=7}if(D.have+de>D.nlen+D.ndist){N.msg="invalid bit length repeat",D.mode=30;break}for(;de--;)D.lens[D.have++]=te}}if(D.mode===30)break;if(D.lens[256]===0){N.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,oe={bits:D.lenbits},Ge=n(e,D.lens,0,D.nlen,D.lencode,0,D.work,oe),D.lenbits=oe.bits,Ge){N.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,oe={bits:D.distbits},Ge=n(l,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,oe),D.distbits=oe.bits,Ge){N.msg="invalid distances set",D.mode=30;break}if(D.mode=20,R===6)break e;case 20:D.mode=21;case 21:if(6<=j&&258<=W){N.next_out=B,N.avail_out=W,N.next_in=U,N.avail_in=j,D.hold=V,D.bits=z,i(N,q),B=N.next_out,M=N.output,W=N.avail_out,U=N.next_in,F=N.input,j=N.avail_in,V=D.hold,z=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;Ie=(G=D.lencode[V&(1<<D.lenbits)-1])>>>16&255,He=65535&G,!((_e=G>>>24)<=z);){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}if(Ie&&(240&Ie)==0){for(me=_e,ke=Ie,se=He;Ie=(G=D.lencode[se+((V&(1<<me+ke)-1)>>me)])>>>16&255,He=65535&G,!(me+(_e=G>>>24)<=z);){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}V>>>=me,z-=me,D.back+=me}if(V>>>=_e,z-=_e,D.back+=_e,D.length=He,Ie===0){D.mode=26;break}if(32&Ie){D.back=-1,D.mode=12;break}if(64&Ie){N.msg="invalid literal/length code",D.mode=30;break}D.extra=15&Ie,D.mode=22;case 22:if(D.extra){for(Y=D.extra;z<Y;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}D.length+=V&(1<<D.extra)-1,V>>>=D.extra,z-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;Ie=(G=D.distcode[V&(1<<D.distbits)-1])>>>16&255,He=65535&G,!((_e=G>>>24)<=z);){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}if((240&Ie)==0){for(me=_e,ke=Ie,se=He;Ie=(G=D.distcode[se+((V&(1<<me+ke)-1)>>me)])>>>16&255,He=65535&G,!(me+(_e=G>>>24)<=z);){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}V>>>=me,z-=me,D.back+=me}if(V>>>=_e,z-=_e,D.back+=_e,64&Ie){N.msg="invalid distance code",D.mode=30;break}D.offset=He,D.extra=15&Ie,D.mode=24;case 24:if(D.extra){for(Y=D.extra;z<Y;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}D.offset+=V&(1<<D.extra)-1,V>>>=D.extra,z-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){N.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(W===0)break e;if(de=q-W,D.offset>de){if((de=D.offset-de)>D.whave&&D.sane){N.msg="invalid distance too far back",D.mode=30;break}ae=de>D.wnext?(de-=D.wnext,D.wsize-de):D.wnext-de,de>D.length&&(de=D.length),ve=D.window}else ve=M,ae=B-D.offset,de=D.length;for(W<de&&(de=W),W-=de,D.length-=de;M[B++]=ve[ae++],--de;);D.length===0&&(D.mode=21);break;case 26:if(W===0)break e;M[B++]=D.length,W--,D.mode=21;break;case 27:if(D.wrap){for(;z<32;){if(j===0)break e;j--,V|=F[U++]<<z,z+=8}if(q-=W,N.total_out+=q,D.total+=q,q&&(N.adler=D.check=D.flags?r(D.check,M,q,B-q):o(D.check,M,q,B-q)),q=W,(D.flags?V:p(V))!==D.check){N.msg="incorrect data check",D.mode=30;break}z=V=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;z<32;){if(j===0)break e;j--,V+=F[U++]<<z,z+=8}if(V!==(4294967295&D.total)){N.msg="incorrect length check",D.mode=30;break}z=V=0}D.mode=29;case 29:Ge=1;break e;case 30:Ge=-3;break e;case 31:return-4;case 32:default:return a}return N.next_out=B,N.avail_out=W,N.next_in=U,N.avail_in=j,D.hold=V,D.bits=z,(D.wsize||q!==N.avail_out&&D.mode<30&&(D.mode<27||R!==4))&&L(N,N.output,N.next_out,q-N.avail_out)?(D.mode=31,-4):(J-=N.avail_in,q-=N.avail_out,N.total_in+=J,N.total_out+=q,D.total+=q,D.wrap&&q&&(N.adler=D.check=D.flags?r(D.check,M,q,N.next_out-q):o(D.check,M,q,N.next_out-q)),N.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(J==0&&q===0||R===4)&&Ge===t&&(Ge=-5),Ge)},f.inflateEnd=function(N){if(!N||!N.state)return a;var R=N.state;return R.window&&(R.window=null),N.state=null,t},f.inflateGetHeader=function(N,R){var D;return N&&N.state?(2&(D=N.state).wrap)==0?a:((D.head=R).done=!1,t):a},f.inflateSetDictionary=function(N,R){var D,F=R.length;return N&&N.state?(D=N.state).wrap!==0&&D.mode!==11?a:D.mode===11&&o(1,R,F,0)!==D.check?-3:L(N,R,F,F)?(D.mode=31,-4):(D.havedict=1,t):a},f.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(b,g,f){"use strict";var c=b("../utils/common"),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],r=[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],i=[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],n=[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];g.exports=function(e,l,t,a,s,u,h,p){var m,v,y,E,T,w,S,_,I,L=p.bits,N=0,R=0,D=0,F=0,M=0,U=0,B=0,j=0,W=0,V=0,z=null,J=0,q=new c.Buf16(16),de=new c.Buf16(16),ae=null,ve=0;for(N=0;N<=15;N++)q[N]=0;for(R=0;R<a;R++)q[l[t+R]]++;for(M=L,F=15;1<=F&&q[F]===0;F--);if(F<M&&(M=F),F===0)return s[u++]=20971520,s[u++]=20971520,p.bits=1,0;for(D=1;D<F&&q[D]===0;D++);for(M<D&&(M=D),N=j=1;N<=15;N++)if(j<<=1,(j-=q[N])<0)return-1;if(0<j&&(e===0||F!==1))return-1;for(de[1]=0,N=1;N<15;N++)de[N+1]=de[N]+q[N];for(R=0;R<a;R++)l[t+R]!==0&&(h[de[l[t+R]]++]=R);if(w=e===0?(z=ae=h,19):e===1?(z=o,J-=257,ae=r,ve-=257,256):(z=i,ae=n,-1),N=D,T=u,B=R=V=0,y=-1,E=(W=1<<(U=M))-1,e===1&&852<W||e===2&&592<W)return 1;for(;;){for(S=N-B,I=h[R]<w?(_=0,h[R]):h[R]>w?(_=ae[ve+h[R]],z[J+h[R]]):(_=96,0),m=1<<N-B,D=v=1<<U;s[T+(V>>B)+(v-=m)]=S<<24|_<<16|I|0,v!==0;);for(m=1<<N-1;V&m;)m>>=1;if(m!==0?(V&=m-1,V+=m):V=0,R++,--q[N]==0){if(N===F)break;N=l[t+h[R]]}if(M<N&&(V&E)!==y){for(B===0&&(B=M),T+=D,j=1<<(U=N-B);U+B<F&&!((j-=q[U+B])<=0);)U++,j<<=1;if(W+=1<<U,e===1&&852<W||e===2&&592<W)return 1;s[y=V&E]=M<<24|U<<16|T-u|0}}return V!==0&&(s[T+V]=N-B<<24|64<<16|0),p.bits=M,0}},{"../utils/common":41}],51:[function(b,g,f){"use strict";g.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(b,g,f){"use strict";var c=b("../utils/common"),o=0,r=1;function i(G){for(var Q=G.length;0<=--Q;)G[Q]=0}var n=0,e=29,l=256,t=l+1+e,a=30,s=19,u=2*t+1,h=15,p=16,m=7,v=256,y=16,E=17,T=18,w=[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],_=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],I=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],L=new Array(2*(t+2));i(L);var N=new Array(2*a);i(N);var R=new Array(512);i(R);var D=new Array(256);i(D);var F=new Array(e);i(F);var M,U,B,j=new Array(a);function W(G,Q,ye,ce,Te){this.static_tree=G,this.extra_bits=Q,this.extra_base=ye,this.elems=ce,this.max_length=Te,this.has_stree=G&&G.length}function V(G,Q){this.dyn_tree=G,this.max_code=0,this.stat_desc=Q}function z(G){return G<256?R[G]:R[256+(G>>>7)]}function J(G,Q){G.pending_buf[G.pending++]=255&Q,G.pending_buf[G.pending++]=Q>>>8&255}function q(G,Q,ye){G.bi_valid>p-ye?(G.bi_buf|=Q<<G.bi_valid&65535,J(G,G.bi_buf),G.bi_buf=Q>>p-G.bi_valid,G.bi_valid+=ye-p):(G.bi_buf|=Q<<G.bi_valid&65535,G.bi_valid+=ye)}function de(G,Q,ye){q(G,ye[2*Q],ye[2*Q+1])}function ae(G,Q){for(var ye=0;ye|=1&G,G>>>=1,ye<<=1,0<--Q;);return ye>>>1}function ve(G,Q,ye){var ce,Te,Se=new Array(h+1),le=0;for(ce=1;ce<=h;ce++)Se[ce]=le=le+ye[ce-1]<<1;for(Te=0;Te<=Q;Te++){var fe=G[2*Te+1];fe!==0&&(G[2*Te]=ae(Se[fe]++,fe))}}function _e(G){var Q;for(Q=0;Q<t;Q++)G.dyn_ltree[2*Q]=0;for(Q=0;Q<a;Q++)G.dyn_dtree[2*Q]=0;for(Q=0;Q<s;Q++)G.bl_tree[2*Q]=0;G.dyn_ltree[2*v]=1,G.opt_len=G.static_len=0,G.last_lit=G.matches=0}function Ie(G){8<G.bi_valid?J(G,G.bi_buf):0<G.bi_valid&&(G.pending_buf[G.pending++]=G.bi_buf),G.bi_buf=0,G.bi_valid=0}function He(G,Q,ye,ce){var Te=2*Q,Se=2*ye;return G[Te]<G[Se]||G[Te]===G[Se]&&ce[Q]<=ce[ye]}function me(G,Q,ye){for(var ce=G.heap[ye],Te=ye<<1;Te<=G.heap_len&&(Te<G.heap_len&&He(Q,G.heap[Te+1],G.heap[Te],G.depth)&&Te++,!He(Q,ce,G.heap[Te],G.depth));)G.heap[ye]=G.heap[Te],ye=Te,Te<<=1;G.heap[ye]=ce}function ke(G,Q,ye){var ce,Te,Se,le,fe=0;if(G.last_lit!==0)for(;ce=G.pending_buf[G.d_buf+2*fe]<<8|G.pending_buf[G.d_buf+2*fe+1],Te=G.pending_buf[G.l_buf+fe],fe++,ce===0?de(G,Te,Q):(de(G,(Se=D[Te])+l+1,Q),(le=w[Se])!==0&&q(G,Te-=F[Se],le),de(G,Se=z(--ce),ye),(le=S[Se])!==0&&q(G,ce-=j[Se],le)),fe<G.last_lit;);de(G,v,Q)}function se(G,Q){var ye,ce,Te,Se=Q.dyn_tree,le=Q.stat_desc.static_tree,fe=Q.stat_desc.has_stree,Ee=Q.stat_desc.elems,Ve=-1;for(G.heap_len=0,G.heap_max=u,ye=0;ye<Ee;ye++)Se[2*ye]!==0?(G.heap[++G.heap_len]=Ve=ye,G.depth[ye]=0):Se[2*ye+1]=0;for(;G.heap_len<2;)Se[2*(Te=G.heap[++G.heap_len]=Ve<2?++Ve:0)]=1,G.depth[Te]=0,G.opt_len--,fe&&(G.static_len-=le[2*Te+1]);for(Q.max_code=Ve,ye=G.heap_len>>1;1<=ye;ye--)me(G,Se,ye);for(Te=Ee;ye=G.heap[1],G.heap[1]=G.heap[G.heap_len--],me(G,Se,1),ce=G.heap[1],G.heap[--G.heap_max]=ye,G.heap[--G.heap_max]=ce,Se[2*Te]=Se[2*ye]+Se[2*ce],G.depth[Te]=(G.depth[ye]>=G.depth[ce]?G.depth[ye]:G.depth[ce])+1,Se[2*ye+1]=Se[2*ce+1]=Te,G.heap[1]=Te++,me(G,Se,1),2<=G.heap_len;);G.heap[--G.heap_max]=G.heap[1],function(vt,et){var Oe,Tt,Je,St,Mt,er,It=et.dyn_tree,_t=et.max_code,Xe=et.stat_desc.static_tree,ie=et.stat_desc.has_stree,X=et.stat_desc.extra_bits,Be=et.stat_desc.extra_base,Ce=et.stat_desc.max_length,Z=0;for(St=0;St<=h;St++)vt.bl_count[St]=0;for(It[2*vt.heap[vt.heap_max]+1]=0,Oe=vt.heap_max+1;Oe<u;Oe++)Ce<(St=It[2*It[2*(Tt=vt.heap[Oe])+1]+1]+1)&&(St=Ce,Z++),It[2*Tt+1]=St,_t<Tt||(vt.bl_count[St]++,Mt=0,Be<=Tt&&(Mt=X[Tt-Be]),er=It[2*Tt],vt.opt_len+=er*(St+Mt),ie&&(vt.static_len+=er*(Xe[2*Tt+1]+Mt)));if(Z!==0){do{for(St=Ce-1;vt.bl_count[St]===0;)St--;vt.bl_count[St]--,vt.bl_count[St+1]+=2,vt.bl_count[Ce]--,Z-=2}while(0<Z);for(St=Ce;St!==0;St--)for(Tt=vt.bl_count[St];Tt!==0;)_t<(Je=vt.heap[--Oe])||(It[2*Je+1]!==St&&(vt.opt_len+=(St-It[2*Je+1])*It[2*Je],It[2*Je+1]=St),Tt--)}}(G,Q),ve(Se,Ve,G.bl_count)}function te(G,Q,ye){var ce,Te,Se=-1,le=Q[1],fe=0,Ee=7,Ve=4;for(le===0&&(Ee=138,Ve=3),Q[2*(ye+1)+1]=65535,ce=0;ce<=ye;ce++)Te=le,le=Q[2*(ce+1)+1],++fe<Ee&&Te===le||(fe<Ve?G.bl_tree[2*Te]+=fe:Te!==0?(Te!==Se&&G.bl_tree[2*Te]++,G.bl_tree[2*y]++):fe<=10?G.bl_tree[2*E]++:G.bl_tree[2*T]++,Se=Te,Ve=(fe=0)===le?(Ee=138,3):Te===le?(Ee=6,3):(Ee=7,4))}function Ge(G,Q,ye){var ce,Te,Se=-1,le=Q[1],fe=0,Ee=7,Ve=4;for(le===0&&(Ee=138,Ve=3),ce=0;ce<=ye;ce++)if(Te=le,le=Q[2*(ce+1)+1],!(++fe<Ee&&Te===le)){if(fe<Ve)for(;de(G,Te,G.bl_tree),--fe!=0;);else Te!==0?(Te!==Se&&(de(G,Te,G.bl_tree),fe--),de(G,y,G.bl_tree),q(G,fe-3,2)):fe<=10?(de(G,E,G.bl_tree),q(G,fe-3,3)):(de(G,T,G.bl_tree),q(G,fe-11,7));Se=Te,Ve=(fe=0)===le?(Ee=138,3):Te===le?(Ee=6,3):(Ee=7,4)}}i(j);var oe=!1;function Y(G,Q,ye,ce){q(G,(n<<1)+(ce?1:0),3),function(Te,Se,le,fe){Ie(Te),fe&&(J(Te,le),J(Te,~le)),c.arraySet(Te.pending_buf,Te.window,Se,le,Te.pending),Te.pending+=le}(G,Q,ye,!0)}f._tr_init=function(G){oe||(function(){var Q,ye,ce,Te,Se,le=new Array(h+1);for(Te=ce=0;Te<e-1;Te++)for(F[Te]=ce,Q=0;Q<1<<w[Te];Q++)D[ce++]=Te;for(D[ce-1]=Te,Te=Se=0;Te<16;Te++)for(j[Te]=Se,Q=0;Q<1<<S[Te];Q++)R[Se++]=Te;for(Se>>=7;Te<a;Te++)for(j[Te]=Se<<7,Q=0;Q<1<<S[Te]-7;Q++)R[256+Se++]=Te;for(ye=0;ye<=h;ye++)le[ye]=0;for(Q=0;Q<=143;)L[2*Q+1]=8,Q++,le[8]++;for(;Q<=255;)L[2*Q+1]=9,Q++,le[9]++;for(;Q<=279;)L[2*Q+1]=7,Q++,le[7]++;for(;Q<=287;)L[2*Q+1]=8,Q++,le[8]++;for(ve(L,t+1,le),Q=0;Q<a;Q++)N[2*Q+1]=5,N[2*Q]=ae(Q,5);M=new W(L,w,l+1,t,h),U=new W(N,S,0,a,h),B=new W(new Array(0),_,0,s,m)}(),oe=!0),G.l_desc=new V(G.dyn_ltree,M),G.d_desc=new V(G.dyn_dtree,U),G.bl_desc=new V(G.bl_tree,B),G.bi_buf=0,G.bi_valid=0,_e(G)},f._tr_stored_block=Y,f._tr_flush_block=function(G,Q,ye,ce){var Te,Se,le=0;0<G.level?(G.strm.data_type===2&&(G.strm.data_type=function(fe){var Ee,Ve=4093624447;for(Ee=0;Ee<=31;Ee++,Ve>>>=1)if(1&Ve&&fe.dyn_ltree[2*Ee]!==0)return o;if(fe.dyn_ltree[18]!==0||fe.dyn_ltree[20]!==0||fe.dyn_ltree[26]!==0)return r;for(Ee=32;Ee<l;Ee++)if(fe.dyn_ltree[2*Ee]!==0)return r;return o}(G)),se(G,G.l_desc),se(G,G.d_desc),le=function(fe){var Ee;for(te(fe,fe.dyn_ltree,fe.l_desc.max_code),te(fe,fe.dyn_dtree,fe.d_desc.max_code),se(fe,fe.bl_desc),Ee=s-1;3<=Ee&&fe.bl_tree[2*I[Ee]+1]===0;Ee--);return fe.opt_len+=3*(Ee+1)+5+5+4,Ee}(G),Te=G.opt_len+3+7>>>3,(Se=G.static_len+3+7>>>3)<=Te&&(Te=Se)):Te=Se=ye+5,ye+4<=Te&&Q!==-1?Y(G,Q,ye,ce):G.strategy===4||Se===Te?(q(G,2+(ce?1:0),3),ke(G,L,N)):(q(G,4+(ce?1:0),3),function(fe,Ee,Ve,vt){var et;for(q(fe,Ee-257,5),q(fe,Ve-1,5),q(fe,vt-4,4),et=0;et<vt;et++)q(fe,fe.bl_tree[2*I[et]+1],3);Ge(fe,fe.dyn_ltree,Ee-1),Ge(fe,fe.dyn_dtree,Ve-1)}(G,G.l_desc.max_code+1,G.d_desc.max_code+1,le+1),ke(G,G.dyn_ltree,G.dyn_dtree)),_e(G),ce&&Ie(G)},f._tr_tally=function(G,Q,ye){return G.pending_buf[G.d_buf+2*G.last_lit]=Q>>>8&255,G.pending_buf[G.d_buf+2*G.last_lit+1]=255&Q,G.pending_buf[G.l_buf+G.last_lit]=255&ye,G.last_lit++,Q===0?G.dyn_ltree[2*ye]++:(G.matches++,Q--,G.dyn_ltree[2*(D[ye]+l+1)]++,G.dyn_dtree[2*z(Q)]++),G.last_lit===G.lit_bufsize-1},f._tr_align=function(G){q(G,2,3),de(G,v,L),function(Q){Q.bi_valid===16?(J(Q,Q.bi_buf),Q.bi_buf=0,Q.bi_valid=0):8<=Q.bi_valid&&(Q.pending_buf[Q.pending++]=255&Q.bi_buf,Q.bi_buf>>=8,Q.bi_valid-=8)}(G)}},{"../utils/common":41}],53:[function(b,g,f){"use strict";g.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(b,g,f){(function(c){!function(o,r){"use strict";if(!o.setImmediate){var i,n,e,l,t=1,a={},s=!1,u=o.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(o);h=h&&h.setTimeout?h:o,i={}.toString.call(o.process)==="[object process]"?function(y){C.nextTick(function(){m(y)})}:function(){if(o.postMessage&&!o.importScripts){var y=!0,E=o.onmessage;return o.onmessage=function(){y=!1},o.postMessage("","*"),o.onmessage=E,y}}()?(l="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",v,!1):o.attachEvent("onmessage",v),function(y){o.postMessage(l+y,"*")}):o.MessageChannel?((e=new MessageChannel).port1.onmessage=function(y){m(y.data)},function(y){e.port2.postMessage(y)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,function(y){var E=u.createElement("script");E.onreadystatechange=function(){m(y),E.onreadystatechange=null,n.removeChild(E),E=null},n.appendChild(E)}):function(y){setTimeout(m,0,y)},h.setImmediate=function(y){typeof y!="function"&&(y=new Function(""+y));for(var E=new Array(arguments.length-1),T=0;T<E.length;T++)E[T]=arguments[T+1];var w={callback:y,args:E};return a[t]=w,i(t),t++},h.clearImmediate=p}function p(y){delete a[y]}function m(y){if(s)setTimeout(m,0,y);else{var E=a[y];if(E){s=!0;try{!function(T){var w=T.callback,S=T.args;switch(S.length){case 0:w();break;case 1:w(S[0]);break;case 2:w(S[0],S[1]);break;case 3:w(S[0],S[1],S[2]);break;default:w.apply(r,S)}}(E)}finally{p(y),s=!1}}}}function v(y){y.source===o&&typeof y.data=="string"&&y.data.indexOf(l)===0&&m(+y.data.slice(l.length))}}(typeof self=="undefined"?c===void 0?this:c:self)}).call(this,typeof x!="undefined"?x:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this,d("HDXh").Buffer,d("yLpj"),d("Q2Ig"))},xRUu:function(H,k,d){d("hJvP"),d("hFmY"),d("sAZ8")},xSIq:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var 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"};k.default=O},xSat:function(H,k){var d={axisPointer:1,tooltip:1,brush:1};function O(x,C,A){var b=C.getComponentByElement(x.topTarget),g=b&&b.coordinateSystem;return b&&b!==A&&!d[b.mainType]&&g&&g.model!==A}k.onIrrelevantElement=O},xTNl:function(H,k){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]};H.exports=O},xb2K:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("5yev")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="RedoOutlined";var c=A.forwardRef(f);k.default=c},xiyX:function(H,k,d){var O=d("bYtY"),x=d("bLfw"),C=d("nkfE"),A=d("ICMv"),b=x.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),g={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 f(o,r){return r.type||(r.data?"category":"value")}O.merge(b.prototype,A),C("single",b,f,g);var c=b;H.exports=c},xlC8:function(H,k,d){"use strict";Object.defineProperty(k,"__esModule",{value:!0}),k.default=O;function O(x,C,A,b){for(var g=x&65535|0,f=x>>>16&65535|0,c=0;A!==0;){c=A>2e3?2e3:A,A-=c;do g=g+C[b++]|0,f=f+g|0;while(--c);g%=65521,f%=65521}return g|f<<16|0}},xroW:function(H,k,d){"use strict";var O={};function x(c,o){}function C(c,o){}function A(){O={}}function b(c,o,r){!o&&!O[r]&&(c(!1,r),O[r]=!0)}function g(c,o){b(x,c,o)}function f(c,o){b(C,c,o)}k.a=g},xvlK:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="PlusOutlined";var f=k.a=x.forwardRef(g)},xzDV:function(H,k,d){},"y+Vt":function(H,k,d){var O=d("Gev7"),x=d("bYtY"),C=d("IMiH"),A=d("2DNl"),b=d("3C/r"),g=b.prototype.getCanvasPattern,f=Math.abs,c=new C(!0);function o(i){O.call(this,i),this.path=null}o.prototype={constructor:o,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(n,e){var l=this.style,t=this.path||c,a=l.hasStroke(),s=l.hasFill(),u=l.fill,h=l.stroke,p=s&&!!u.colorStops,m=a&&!!h.colorStops,v=s&&!!u.image,y=a&&!!h.image;if(l.bind(n,this,e),this.setTransform(n),this.__dirty){var E;p&&(E=E||this.getBoundingRect(),this._fillGradient=l.getGradient(n,u,E)),m&&(E=E||this.getBoundingRect(),this._strokeGradient=l.getGradient(n,h,E))}p?n.fillStyle=this._fillGradient:v&&(n.fillStyle=g.call(u,n)),m?n.strokeStyle=this._strokeGradient:y&&(n.strokeStyle=g.call(h,n));var T=l.lineDash,w=l.lineDashOffset,S=!!n.setLineDash,_=this.getGlobalScale();if(t.setScale(_[0],_[1],this.segmentIgnoreThreshold),this.__dirtyPath||T&&!S&&a?(t.beginPath(n),T&&!S&&(t.setLineDash(T),t.setLineDashOffset(w)),this.buildPath(t,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(n.beginPath(),this.path.rebuildPath(n)),s)if(l.fillOpacity!=null){var I=n.globalAlpha;n.globalAlpha=l.fillOpacity*l.opacity,t.fill(n),n.globalAlpha=I}else t.fill(n);if(T&&S&&(n.setLineDash(T),n.lineDashOffset=w),a)if(l.strokeOpacity!=null){var I=n.globalAlpha;n.globalAlpha=l.strokeOpacity*l.opacity,t.stroke(n),n.globalAlpha=I}else t.stroke(n);T&&S&&n.setLineDash([]),l.text!=null&&(this.restoreTransform(n),this.drawRectText(n,this.getBoundingRect()))},buildPath:function(n,e,l){},createPathProxy:function(){this.path=new C},getBoundingRect:function(){var n=this._rect,e=this.style,l=!n;if(l){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||l){a.copy(n);var s=e.lineWidth,u=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(s=Math.max(s,this.strokeContainThreshold||4)),u>1e-10&&(a.width+=s/u,a.height+=s/u,a.x-=s/u/2,a.y-=s/u/2)}return a}return n},contain:function(n,e){var l=this.transformCoordToLocal(n,e),t=this.getBoundingRect(),a=this.style;if(n=l[0],e=l[1],t.contain(n,e)){var s=this.path.data;if(a.hasStroke()){var u=a.lineWidth,h=a.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(a.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),A.containStroke(s,u/h,n,e)))return!0}if(a.hasFill())return A.contain(s,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 l=this.shape;if(l){if(x.isObject(n))for(var t in n)n.hasOwnProperty(t)&&(l[t]=n[t]);else l[n]=e;this.dirty(!0)}return this},getLineScale:function(){var n=this.transform;return n&&f(n[0]-1)>1e-10&&f(n[3]-1)>1e-10?Math.sqrt(f(n[0]*n[3]-n[2]*n[1])):1}},o.extend=function(i){var n=function(t){o.call(this,t),i.style&&this.style.extendFrom(i.style,!1);var a=i.shape;if(a){this.shape=this.shape||{};var s=this.shape;for(var u in a)!s.hasOwnProperty(u)&&a.hasOwnProperty(u)&&(s[u]=a[u])}i.init&&i.init.call(this,t)};x.inherits(n,o);for(var e in i)e!=="style"&&e!=="shape"&&(n.prototype[e]=i[e]);return n},x.inherits(o,O);var r=o;H.exports=r},"y+lR":function(H,k,d){var O=d("bYtY"),x=d("mFDi"),C=d("z35g");function A(g){C.call(this,g)}A.prototype={constructor:A,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(g){var f=this.getAxis("x"),c=this.getAxis("y");return f.contain(f.toLocalCoord(g[0]))&&c.contain(c.toLocalCoord(g[1]))},containData:function(g){return this.getAxis("x").containData(g[0])&&this.getAxis("y").containData(g[1])},dataToPoint:function(g,f,c){var o=this.getAxis("x"),r=this.getAxis("y");return c=c||[],c[0]=o.toGlobalCoord(o.dataToCoord(g[0])),c[1]=r.toGlobalCoord(r.dataToCoord(g[1])),c},clampData:function(g,f){var c=this.getAxis("x").scale,o=this.getAxis("y").scale,r=c.getExtent(),i=o.getExtent(),n=c.parse(g[0]),e=o.parse(g[1]);return f=f||[],f[0]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),f[1]=Math.min(Math.max(Math.min(i[0],i[1]),e),Math.max(i[0],i[1])),f},pointToData:function(g,f){var c=this.getAxis("x"),o=this.getAxis("y");return f=f||[],f[0]=c.coordToData(c.toLocalCoord(g[0])),f[1]=o.coordToData(o.toLocalCoord(g[1])),f},getOtherAxis:function(g){return this.getAxis(g.dim==="x"?"y":"x")},getArea:function(){var g=this.getAxis("x").getGlobalExtent(),f=this.getAxis("y").getGlobalExtent(),c=Math.min(g[0],g[1]),o=Math.min(f[0],f[1]),r=Math.max(g[0],g[1])-c,i=Math.max(f[0],f[1])-o,n=new x(c,o,r,i);return n}},O.inherits(A,C);var b=A;H.exports=b},y23F:function(H,k){function d(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}d.prototype={constructor:d,_dragStart:function(A){for(var b=A.target;b&&!b.draggable;)b=b.parent;b&&(this._draggingTarget=b,b.dragging=!0,this._x=A.offsetX,this._y=A.offsetY,this.dispatchToElement(O(b,A),"dragstart",A.event))},_drag:function(A){var b=this._draggingTarget;if(b){var g=A.offsetX,f=A.offsetY,c=g-this._x,o=f-this._y;this._x=g,this._y=f,b.drift(c,o,A),this.dispatchToElement(O(b,A),"drag",A.event);var r=this.findHover(g,f,b).target,i=this._dropTarget;this._dropTarget=r,b!==r&&(i&&r!==i&&this.dispatchToElement(O(i,A),"dragleave",A.event),r&&r!==i&&this.dispatchToElement(O(r,A),"dragenter",A.event))}},_dragEnd:function(A){var b=this._draggingTarget;b&&(b.dragging=!1),this.dispatchToElement(O(b,A),"dragend",A.event),this._dropTarget&&this.dispatchToElement(O(this._dropTarget,A),"drop",A.event),this._draggingTarget=null,this._dropTarget=null}};function O(C,A){return{target:C,topTarget:A&&A.topTarget}}var x=d;H.exports=x},y2l5:function(H,k,d){var O=d("MwEJ"),x=d("T4UG"),C=x.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(A,b){return O(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var A=this.option.progressive;return A==null?this.option.large?5e3:this.get("progressive"):A},getProgressiveThreshold:function(){var A=this.option.progressiveThreshold;return A==null?this.option.large?1e4:this.get("progressiveThreshold"):A},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});H.exports=C},y3Kf:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="UpOutlined";var f=k.a=x.forwardRef(g)},y3NT:function(H,k,d){var O=d("OELB"),x=O.parsePercent,C=d("bYtY"),A=Math.PI/180;function b(c,o,r,i){o.eachSeriesByType(c,function(n){var e=n.get("center"),l=n.get("radius");C.isArray(l)||(l=[0,l]),C.isArray(e)||(e=[e,e]);var t=r.getWidth(),a=r.getHeight(),s=Math.min(t,a),u=x(e[0],t),h=x(e[1],a),p=x(l[0],s/2),m=x(l[1],s/2),v=-n.get("startAngle")*A,y=n.get("minAngle")*A,E=n.getData().tree.root,T=n.getViewRoot(),w=T.depth,S=n.get("sort");S!=null&&g(T,S);var _=0;C.each(T.children,function(z){!isNaN(z.getValue())&&_++});var I=T.getValue(),L=Math.PI/(I||_)*2,N=T.depth>0,R=T.height-(N?-1:1),D=(m-p)/(R||1),F=n.get("clockwise"),M=n.get("stillShowZeroSum"),U=F?1:-1,B=function(z,J){if(!z)return;var q=J;if(z!==E){var de=z.getValue(),ae=I===0&&M?L:de*L;ae<y&&(ae=y),q=J+U*ae;var ve=z.depth-w-(N?-1:1),_e=p+D*ve,Ie=p+D*(ve+1),He=z.getModel();He.get("r0")!=null&&(_e=x(He.get("r0"),s/2)),He.get("r")!=null&&(Ie=x(He.get("r"),s/2)),z.setLayout({angle:ae,startAngle:J,endAngle:q,clockwise:F,cx:u,cy:h,r0:_e,r:Ie})}if(z.children&&z.children.length){var me=0;C.each(z.children,function(ke){me+=B(ke,J+me)})}return q-J};if(N){var j=p,W=p+D,V=Math.PI*2;E.setLayout({angle:V,startAngle:v,endAngle:v+V,clockwise:F,cx:u,cy:h,r0:j,r:W})}B(T,v)})}function g(c,o){var r=c.children||[];c.children=f(r,o),r.length&&C.each(c.children,function(i){g(i,o)})}function f(c,o){if(typeof o=="function")return c.sort(o);var r=o==="asc";return c.sort(function(i,n){var e=(i.getValue()-n.getValue())*(r?1:-1);return e===0?(i.dataIndex-n.dataIndex)*(r?-1:1):e})}H.exports=b},y3Yb:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("HBhm")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="PaperClipOutlined";var c=A.forwardRef(f);k.default=c},"y4/Y":function(H,k,d){var O=d("ProS"),x=d("bYtY"),C=d("zTMp"),A=d("62sa");d("SKx+"),d("1LEl"),d("Sp2Z"),O.registerPreprocessor(function(b){if(b){(!b.axisPointer||b.axisPointer.length===0)&&(b.axisPointer={});var g=b.axisPointer.link;g&&!x.isArray(g)&&(b.axisPointer.link=[g])}}),O.registerProcessor(O.PRIORITY.PROCESSOR.STATISTIC,function(b,g){b.getComponent("axisPointer").coordSysAxesInfo=C.collect(b,g)}),O.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},A)},y7Aq:function(H,k,d){var O=d("bYtY"),x=d("+TT/"),C=x.getLayoutRect;function A(g,f,c){var o=g.option,r=o.align;if(r!=null&&r!=="auto")return r;for(var i={width:f.getWidth(),height:f.getHeight()},n=o.orient==="horizontal"?1:0,e=[["left","right","width"],["top","bottom","height"]],l=e[n],t=[0,null,10],a={},s=0;s<3;s++)a[e[1-n][s]]=t[s],a[l[s]]=s===2?c[0]:o[l[s]];var u=[["x","width",3],["y","height",0]][n],h=C(a,i,o.padding);return l[(h.margin[u[2]]||0)+h[u[0]]+h[u[1]]*.5<i[u[1]]*.5?0:1]}function b(g,f){return O.each(g||[],function(c){c.dataIndex!=null&&(c.dataIndexInside=c.dataIndex,c.dataIndex=null),c.highlightKey="visualMap"+(f?f.componentIndex:"")}),g}k.getItemAlign=A,k.makeHighDownBatch=b},y8nQ:function(H,k,d){"use strict";var O=d("cIOH"),x=d.n(O),C=d("gwTy"),A=d.n(C),b=d("1GLa")},yEEn:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="ArrowDownOutlined";var f=k.a=x.forwardRef(g)},yO87:function(H,k,d){var O=d("bYtY"),x=d("oVpE"),C=x.createSymbol,A=d("IwbS"),b=A.Group,g=d("OELB"),f=g.parsePercent,c=d("FBjb"),o=3;function r(t){return O.isArray(t)||(t=[+t,+t]),t}function i(t,a){var s=a.rippleEffectColor||a.color;t.eachChild(function(u){u.attr({z:a.z,zlevel:a.zlevel,style:{stroke:a.brushType==="stroke"?s:null,fill:a.brushType==="fill"?s:null}})})}function n(t,a){b.call(this);var s=new c(t,a),u=new b;this.add(s),this.add(u),u.beforeUpdate=function(){this.attr(s.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,s=t.color,u=this.childAt(1),h=0;h<o;h++){var p=C(a,-1,-1,2,2,s);p.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var m=-h/o*t.period+t.effectOffset;p.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(m).start(),p.animateStyle(!0).when(t.period,{opacity:0}).delay(m).start(),u.add(p)}i(u,t)},e.updateEffectAnimation=function(t){for(var a=this._effectCfg,s=this.childAt(1),u=["symbolType","period","rippleScale"],h=0;h<u.length;h++){var p=u[h];if(a[p]!==t[p]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}i(s,t)},e.highlight=function(){this.trigger("emphasis")},e.downplay=function(){this.trigger("normal")},e.updateData=function(t,a){var s=t.hostModel;this.childAt(0).updateData(t,a);var u=this.childAt(1),h=t.getItemModel(a),p=t.getItemVisual(a,"symbol"),m=r(t.getItemVisual(a,"symbolSize")),v=t.getItemVisual(a,"color");u.attr("scale",m),u.traverse(function(L){L.attr({fill:v})});var y=h.getShallow("symbolOffset");if(y){var E=u.position;E[0]=f(y[0],m[0]),E[1]=f(y[1],m[1])}var T=t.getItemVisual(a,"symbolRotate");u.rotation=(T||0)*Math.PI/180||0;var w={};if(w.showEffectOn=s.get("showEffectOn"),w.rippleScale=h.get("rippleEffect.scale"),w.brushType=h.get("rippleEffect.brushType"),w.period=h.get("rippleEffect.period")*1e3,w.effectOffset=a/t.count(),w.z=h.getShallow("z")||0,w.zlevel=h.getShallow("zlevel")||0,w.symbolType=p,w.color=v,w.rippleEffectColor=h.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),w.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(w):this.startEffectAnimation(w),this._effectCfg=w;else{this._effectCfg=null,this.stopEffectAnimation();var S=this.childAt(0),_=function(){S.highlight(),w.showEffectOn!=="render"&&this.startEffectAnimation(w)},I=function(){S.downplay(),w.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",_,this).on("mouseout",I,this).on("emphasis",_,this).on("normal",I,this)}this._effectCfg=w},e.fadeOut=function(t){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),t&&t()},O.inherits(n,b);var l=n;H.exports=l},yS9w:function(H,k,d){var O=d("MEGo"),x=O.parseSVG,C=O.makeViewBoxTransform,A=d("4fz+"),b=d("x6Kt"),g=d("bYtY"),f=g.assert,c=g.createHashMap,o=d("mFDi"),r=d("4NO4"),i=r.makeInner,n=i(),e={load:function(t,a){var s=n(a).originRoot;if(s)return{root:s,boundingRect:n(a).boundingRect};var u=l(a);return n(a).originRoot=u.root,n(a).boundingRect=u.boundingRect,u},makeGraphic:function(t,a,s){var u=n(a),h=u.rootMap||(u.rootMap=c()),p=h.get(s);if(p)return p;var m=u.originRoot,v=u.boundingRect;return u.originRootHostKey?p=l(a,v).root:(u.originRootHostKey=s,p=m),h.set(s,p)},removeGraphic:function(t,a,s){var u=n(a),h=u.rootMap;h&&h.removeKey(s),s===u.originRootHostKey&&(u.originRootHostKey=null)}};function l(t,a){var s=t.svgXML,u,h;try{u=s&&x(s,{ignoreViewBox:!0,ignoreRootClip:!0})||{},h=u.root,f(h!=null)}catch(T){throw new Error(`Invalid svg format
`+T.message)}var p=u.width,m=u.height,v=u.viewBoxRect;if(a||(a=p==null||m==null?h.getBoundingRect():new o(0,0,0,0),p!=null&&(a.width=p),m!=null&&(a.height=m)),v){var y=C(v,a.width,a.height),E=h;h=new A,h.add(E),E.scale=y.scale,E.position=y.position}return h.setClipPath(new b({shape:a.plain()})),{root:h,boundingRect:a}}H.exports=e},yWXo:function(H,k,d){var O=d("IwbS"),x=d("oVpE"),C=x.createSymbol,A=d("OS9S"),b=4,g=O.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(r,i){var n=i.points,e=i.size,l=this.symbolProxy,t=l.shape,a=r.getContext?r.getContext():r,s=a&&e[0]<b;if(s)return;for(var u=0;u<n.length;){var h=n[u++],p=n[u++];if(isNaN(h)||isNaN(p))continue;if(this.softClipShape&&!this.softClipShape.contain(h,p))continue;t.x=h-e[0]/2,t.y=p-e[1]/2,t.width=e[0],t.height=e[1],l.buildPath(r,t,!0)}},afterBrush:function(r){var i=this.shape,n=i.points,e=i.size,l=e[0]<b;if(!l)return;this.setTransform(r);for(var t=0;t<n.length;){var a=n[t++],s=n[t++];if(isNaN(a)||isNaN(s))continue;if(this.softClipShape&&!this.softClipShape.contain(a,s))continue;r.fillRect(a-e[0]/2,s-e[1]/2,e[0],e[1])}this.restoreTransform(r)},findDataIndex:function(r,i){for(var n=this.shape,e=n.points,l=n.size,t=Math.max(l[0],4),a=Math.max(l[1],4),s=e.length/2-1;s>=0;s--){var u=s*2,h=e[u]-t/2,p=e[u+1]-a/2;if(r>=h&&i>=p&&r<=h+t&&i<=p+a)return s}return-1}});function f(){this.group=new O.Group}var c=f.prototype;c.isPersistent=function(){return!this._incremental},c.updateData=function(r,i){this.group.removeAll();var n=new g({rectHover:!0,cursor:"default"});n.setShape({points:r.getLayout("symbolPoints")}),this._setCommon(n,r,!1,i),this.group.add(n),this._incremental=null},c.updateLayout=function(r){if(this._incremental)return;var i=r.getLayout("symbolPoints");this.group.eachChild(function(n){if(n.startIndex!=null){var e=(n.endIndex-n.startIndex)*2,l=n.startIndex*4*2;i=new Float32Array(i.buffer,l,e)}n.setShape("points",i)})},c.incrementalPrepareUpdate=function(r){this.group.removeAll(),this._clearIncremental(),r.count()>2e6?(this._incremental||(this._incremental=new A({silent:!0})),this.group.add(this._incremental)):this._incremental=null},c.incrementalUpdate=function(r,i,n){var e;this._incremental?(e=new g,this._incremental.addDisplayable(e,!0)):(e=new g({rectHover:!0,cursor:"default",startIndex:r.start,endIndex:r.end}),e.incremental=!0,this.group.add(e)),e.setShape({points:i.getLayout("symbolPoints")}),this._setCommon(e,i,!!this._incremental,n)},c._setCommon=function(r,i,n,e){var l=i.hostModel;e=e||{};var t=i.getVisual("symbolSize");r.setShape("size",t instanceof Array?t:[t,t]),r.softClipShape=e.clipShape||null,r.symbolProxy=C(i.getVisual("symbol"),0,0,0,0),r.setColor=r.symbolProxy.setColor;var a=r.shape.size[0]<b;r.useStyle(l.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=i.getVisual("color");s&&r.setColor(s),n||(r.seriesIndex=l.seriesIndex,r.on("mousemove",function(u){r.dataIndex=null;var h=r.findDataIndex(u.offsetX,u.offsetY);h>=0&&(r.dataIndex=h+(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 o=f;H.exports=o},ycre:function(H,k,d){var O=d("711d"),x=O("length");H.exports=x},ye1Q:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="LoadingOutlined";var f=k.a=x.forwardRef(g)},ygfH:function(H,k,d){"use strict";Object.defineProperty(k,"__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"};k.default=O},yik8:function(H,k,d){var O=d("bZqE"),x=O.eachAfter,C=O.eachBefore,A=d("Itpr"),b=A.init,g=A.firstWalk,f=A.secondWalk,c=A.separation,o=A.radialCoordinate,r=A.getViewRect;function i(e,l){e.eachSeriesByType("tree",function(t){n(t,l)})}function n(e,l){var t=r(e,l);e.layoutInfo=t;var a=e.get("layout"),s=0,u=0,h=null;a==="radial"?(s=2*Math.PI,u=Math.min(t.height,t.width)/2,h=c(function(R,D){return(R.parentNode===D.parentNode?1:2)/R.depth})):(s=t.width,u=t.height,h=c());var p=e.getData().tree.root,m=p.children[0];if(m){b(p),x(m,g,h),p.hierNode.modifier=-m.hierNode.prelim,C(m,f);var v=m,y=m,E=m;C(m,function(R){var D=R.getLayout().x;D<v.getLayout().x&&(v=R),D>y.getLayout().x&&(y=R),R.depth>E.depth&&(E=R)});var T=v===y?1:h(v,y)/2,w=T-v.getLayout().x,S=0,_=0,I=0,L=0;if(a==="radial")S=s/(y.getLayout().x+T+w),_=u/(E.depth-1||1),C(m,function(R){I=(R.getLayout().x+w)*S,L=(R.depth-1)*_;var D=o(I,L);R.setLayout({x:D.x,y:D.y,rawX:I,rawY:L},!0)});else{var N=e.getOrient();N==="RL"||N==="LR"?(_=u/(y.getLayout().x+T+w),S=s/(E.depth-1||1),C(m,function(R){L=(R.getLayout().x+w)*_,I=N==="LR"?(R.depth-1)*S:s-(R.depth-1)*S,R.setLayout({x:I,y:L},!0)})):(N==="TB"||N==="BT")&&(S=s/(y.getLayout().x+T+w),_=u/(E.depth-1||1),C(m,function(R){I=(R.getLayout().x+w)*S,L=N==="TB"?(R.depth-1)*_:u-(R.depth-1)*_,R.setLayout({x:I,y:L},!0)}))}}}H.exports=i},ynwM:function(H,k,d){var O=d("MFOe"),x=O.Global;H.exports={name:"oldFF-globalStorage",read:A,write:b,each:g,remove:f,clearAll:c};var C=x.globalStorage;function A(o){return C[o]}function b(o,r){C[o]=r}function g(o){for(var r=C.length-1;r>=0;r--){var i=C.key(r);o(C[i],i)}}function f(o){return C.removeItem(o)}function c(){g(function(o,r){delete C[o]})}},ypgQ:function(H,k,d){var O=d("bYtY"),x=d("4NO4"),C=d("bLfw"),A=O.each,b=O.clone,g=O.map,f=O.merge,c=/^(min|max)?(.+)$/;function o(a){this._api=a,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}o.prototype={constructor:o,setOption:function(a,s){a&&O.each(x.normalizeToArray(a.series),function(p){p&&p.data&&O.isTypedArray(p.data)&&O.setAsPrimitive(p.data)}),a=b(a);var u=this._optionBackup,h=r.call(this,a,s,!u);this._newBaseOption=h.baseOption,u?(l(u.baseOption,h.baseOption),h.timelineOptions.length&&(u.timelineOptions=h.timelineOptions),h.mediaList.length&&(u.mediaList=h.mediaList),h.mediaDefault&&(u.mediaDefault=h.mediaDefault)):this._optionBackup=h},mountOption:function(a){var s=this._optionBackup;return this._timelineOptions=g(s.timelineOptions,b),this._mediaList=g(s.mediaList,b),this._mediaDefault=b(s.mediaDefault),this._currentMediaIndices=[],b(a?s.baseOption:this._newBaseOption)},getTimelineOption:function(a){var s,u=this._timelineOptions;if(u.length){var h=a.getComponent("timeline");h&&(s=b(u[h.getCurrentIndex()],!0))}return s},getMediaOption:function(a){var s=this._api.getWidth(),u=this._api.getHeight(),h=this._mediaList,p=this._mediaDefault,m=[],v=[];if(!h.length&&!p)return v;for(var y=0,E=h.length;y<E;y++)i(h[y].query,s,u)&&m.push(y);return!m.length&&p&&(m=[-1]),m.length&&!e(m,this._currentMediaIndices)&&(v=g(m,function(T){return b(T===-1?p.option:h[T].option)})),this._currentMediaIndices=m,v}};function r(a,s,u){var h=[],p=[],m,v,y=a.timeline;if(a.baseOption&&(v=a.baseOption),(y||a.options)&&(v=v||{},h=(a.options||[]).slice()),a.media){v=v||{};var E=a.media;A(E,function(T){T&&T.option&&(T.query?p.push(T):m||(m=T))})}return v||(v=a),v.timeline||(v.timeline=y),A([v].concat(h).concat(O.map(p,function(T){return T.option})),function(T){A(s,function(w){w(T,u)})}),{baseOption:v,timelineOptions:h,mediaDefault:m,mediaList:p}}function i(a,s,u){var h={width:s,height:u,aspectratio:s/u},p=!0;return O.each(a,function(m,v){var y=v.match(c);if(!y||!y[1]||!y[2])return;var E=y[1],T=y[2].toLowerCase();n(h[T],m,E)||(p=!1)}),p}function n(a,s,u){return u==="min"?a>=s:u==="max"?a<=s:a===s}function e(a,s){return a.join(",")===s.join(",")}function l(a,s){s=s||{},A(s,function(u,h){if(u==null)return;var p=a[h];if(!C.hasClass(h))a[h]=f(p,u,!0);else{u=x.normalizeToArray(u),p=x.normalizeToArray(p);var m=x.mappingToExists(p,u);a[h]=g(m,function(v){return v.option&&v.exist?f(v.exist,v.option,!0):v.exist||v.option})}})}var t=o;H.exports=t},yxFR:function(H,k,d){var O=d("y+Vt"),x=d("nPnh"),C=x.subPixelOptimizeLine,A={},b=O.extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(f,c){var o,r,i,n;this.subPixelOptimize?(C(A,c,this.style),o=A.x1,r=A.y1,i=A.x2,n=A.y2):(o=c.x1,r=c.y1,i=c.x2,n=c.y2);var e=c.percent;if(e===0)return;f.moveTo(o,r),e<1&&(i=o*(1-e)+i*e,n=r*(1-e)+n*e),f.lineTo(i,n)},pointAt:function(f){var c=this.shape;return[c.x1*(1-f)+c.x2*f,c.y1*(1-f)+c.y2*f]}});H.exports=b},z35g:function(H,k,d){var O=d("bYtY");function x(b){return this._axes[b]}var C=function(b){this._axes={},this._dimList=[],this.name=b||""};C.prototype={constructor:C,type:"cartesian",getAxis:function(b){return this._axes[b]},getAxes:function(){return O.map(this._dimList,x,this)},getAxesByScale:function(b){return b=b.toLowerCase(),O.filter(this.getAxes(),function(g){return g.scale.type===b})},addAxis:function(b){var g=b.dim;this._axes[g]=b,this._dimList.push(g)},dataToCoord:function(b){return this._dataCoordConvert(b,"dataToCoord")},coordToData:function(b){return this._dataCoordConvert(b,"coordToData")},_dataCoordConvert:function(b,g){for(var f=this._dimList,c=b instanceof Array?[]:{},o=0;o<f.length;o++){var r=f[o],i=this._axes[r];c[r]=i[g](b[r])}return c}};var A=C;H.exports=A},z7Xi:function(H,k,d){"use strict";var O=d("VTBJ"),x=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"},A=C,b=d("6VBw"),g=function(o,r){return x.createElement(b.a,Object(O.a)(Object(O.a)({},o),{},{ref:r,icon:A}))};g.displayName="UploadOutlined";var f=k.a=x.forwardRef(g)},zAh6:function(H,k,d){"use strict";d.d(k,"a",function(){return b});var O=d("xEkU"),x=d.n(O),C=d("i6bk");function A(g,f,c,o){var r=c-f;return g/=o/2,g<1?r/2*g*g*g+f:r/2*((g-=2)*g*g+2)+f}function b(g){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=f.getContainer,o=c===void 0?function(){return window}:c,r=f.callback,i=f.duration,n=i===void 0?450:i,e=o(),l=Object(C.a)(e,!0),t=Date.now(),a=function s(){var u=Date.now(),h=u-t,p=A(h>n?n:h,l,g,n);Object(C.b)(e)?e.scrollTo(window.pageXOffset,p):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=p:e.scrollTop=p,h<n?x()(s):typeof r=="function"&&r()};x()(a)}},zDms:function(H,k,d){var O=d("bYtY"),x=d("OELB"),C=d("UOVi"),A=d("72pK"),b=O.each,g=x.asc,f=function(e,l,t,a){this._dimName=e,this._axisIndex=l,this._valueWindow,this._percentWindow,this._dataExtent,this._minMaxSpan,this.ecModel=a,this._dataZoomModel=t};f.prototype={constructor:f,hostedBy:function(e){return this._dataZoomModel===e},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],l=this.ecModel;return l.eachSeries(function(t){if(C.isCoordSupported(t.get("coordinateSystem"))){var a=this._dimName,s=l.queryComponents({mainType:a+"Axis",index:t.get(a+"AxisIndex"),id:t.get(a+"AxisId")})[0];this._axisIndex===(s&&s.componentIndex)&&e.push(t)}},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e=this._dimName,l=this.ecModel,t=this.getAxisModel(),a=e==="x"||e==="y",s,u;a?(u="gridIndex",s=e==="x"?"y":"x"):(u="polarIndex",s=e==="angle"?"radius":"angle");var h;return l.eachComponent(s+"Axis",function(p){(p.get(u)||0)===(t.get(u)||0)&&(h=p)}),h},getMinMaxSpan:function(){return O.clone(this._minMaxSpan)},calculateDataWindow:function(e){var l=this._dataExtent,t=this.getAxisModel(),a=t.axis.scale,s=this._dataZoomModel.getRangePropMode(),u=[0,100],h=[],p=[],m;b(["start","end"],function(E,T){var w=e[E],S=e[E+"Value"];s[T]==="percent"?(w==null&&(w=u[T]),S=a.parse(x.linearMap(w,u,l))):(m=!0,S=S==null?l[T]:a.parse(S),w=x.linearMap(S,l,u)),p[T]=S,h[T]=w}),g(p),g(h);var v=this._minMaxSpan;m?y(p,h,l,u,!1):y(h,p,u,l,!0);function y(E,T,w,S,_){var I=_?"Span":"ValueSpan";A(0,E,w,"all",v["min"+I],v["max"+I]);for(var L=0;L<2;L++)T[L]=x.linearMap(E[L],w,S,!0),_&&(T[L]=a.parse(T[L]))}return{valueWindow:p,percentWindow:h}},reset:function(e){if(e!==this._dataZoomModel)return;var l=this.getTargetSeriesModels();this._dataExtent=c(this,this._dimName,l),i(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,l){if(e!==this._dataZoomModel)return;var t=this._dimName,a=this.getTargetSeriesModels(),s=e.get("filterMode"),u=this._valueWindow;if(s==="none")return;b(a,function(p){var m=p.getData(),v=m.mapDimension(t,!0);if(!v.length)return;s==="weakFilter"?m.filterSelf(function(y){for(var E,T,w,S=0;S<v.length;S++){var _=m.get(v[S],y),I=!isNaN(_),L=_<u[0],N=_>u[1];if(I&&!L&&!N)return!0;I&&(w=!0),L&&(E=!0),N&&(T=!0)}return w&&E&&T}):b(v,function(y){if(s==="empty")p.setData(m=m.map(y,function(T){return h(T)?T:NaN}));else{var E={};E[y]=u,m.selectRange(E)}}),b(v,function(y){m.setApproximateExtent(u,y)})});function h(p){return p>=u[0]&&p<=u[1]}}};function c(e,l,t){var a=[Infinity,-Infinity];return b(t,function(s){var u=s.getData();u&&b(u.mapDimension(l,!0),function(h){var p=u.getApproximateExtent(h);p[0]<a[0]&&(a[0]=p[0]),p[1]>a[1]&&(a[1]=p[1])})}),a[1]<a[0]&&(a=[NaN,NaN]),o(e,a),a}function o(e,l){var t=e.getAxisModel(),a=t.getMin(!0),s=t.get("type")==="category",u=s&&t.getCategories().length;a!=null&&a!=="dataMin"&&typeof a!="function"?l[0]=a:s&&(l[0]=u>0?0:NaN);var h=t.getMax(!0);return h!=null&&h!=="dataMax"&&typeof h!="function"?l[1]=h:s&&(l[1]=u>0?u-1:NaN),t.get("scale",!0)||(l[0]>0&&(l[0]=0),l[1]<0&&(l[1]=0)),l}function r(e,l){var t=e.getAxisModel(),a=e._percentWindow,s=e._valueWindow;if(!a)return;var u=x.getPixelPrecision(s,[0,500]);u=Math.min(u,20);var h=l||a[0]===0&&a[1]===100;t.setRange(h?null:+s[0].toFixed(u),h?null:+s[1].toFixed(u))}function i(e){var l=e._minMaxSpan={},t=e._dataZoomModel,a=e._dataExtent;b(["min","max"],function(s){var u=t.get(s+"Span"),h=t.get(s+"ValueSpan");h!=null&&(h=e.getAxisModel().axis.scale.parse(h)),h!=null?u=x.linearMap(a[0]+h,a,[0,100],!0):u!=null&&(h=x.linearMap(u,[0,100],a,!0)-a[0]),l[s+"Span"]=u,l[s+"ValueSpan"]=h})}var n=f;H.exports=n},zM3Q:function(H,k,d){var O=d("4NO4"),x=O.makeInner;function C(){var A=x();return function(b){var g=A(b),f=b.pipelineContext,c=g.large,o=g.progressiveRender,r=g.large=f&&f.large,i=g.progressiveRender=f&&f.progressiveRender;return!!(c^r||o^i)&&"reset"}}H.exports=C},zRKj:function(H,k,d){d("Ae16"),d("Sp2Z"),d("y4/Y")},zTMp:function(H,k,d){var O=d("bYtY"),x=d("Qxkt"),C=O.each,A=O.curry;function b(a,s){var u={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return g(u,a,s),u.seriesInvolved&&c(u,a),u}function g(a,s,u){var h=s.getComponent("tooltip"),p=s.getComponent("axisPointer"),m=p.get("link",!0)||[],v=[];C(u.getCoordinateSystems(),function(y){if(!y.axisPointerEnabled)return;var E=t(y.model),T=a.coordSysAxesInfo[E]={};a.coordSysMap[E]=y;var w=y.model,S=w.getModel("tooltip",h);if(C(y.getAxes(),A(N,!1,null)),y.getTooltipAxes&&h&&S.get("show")){var _=S.get("trigger")==="axis",I=S.get("axisPointer.type")==="cross",L=y.getTooltipAxes(S.get("axisPointer.axis"));(_||I)&&C(L.baseAxes,A(N,I?"cross":!0,_)),I&&C(L.otherAxes,A(N,"cross",!1))}function N(R,D,F){var M=F.model.getModel("axisPointer",p),U=M.get("show");if(!U||U==="auto"&&!R&&!l(M))return;D==null&&(D=M.get("triggerTooltip")),M=R?f(F,S,p,s,R,D):M;var B=M.get("snap"),j=t(F.model),W=D||B||F.type==="category",V=a.axesInfo[j]={key:j,axis:F,coordSys:y,axisPointerModel:M,triggerTooltip:D,involveSeries:W,snap:B,useHandle:l(M),seriesModels:[]};T[j]=V,a.seriesInvolved|=W;var z=o(m,F);if(z!=null){var J=v[z]||(v[z]={axesInfo:{}});J.axesInfo[j]=V,J.mapper=m[z].mapper,V.linkGroup=J}}})}function f(a,s,u,h,p,m){var v=s.getModel("axisPointer"),y={};C(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(S){y[S]=O.clone(v.get(S))}),y.snap=a.type!=="category"&&!!m,v.get("type")==="cross"&&(y.type="line");var E=y.label||(y.label={});if(E.show==null&&(E.show=!1),p==="cross"){var T=v.get("label.show");if(E.show=T!=null?T:!0,!m){var w=y.lineStyle=v.get("crossStyle");w&&O.defaults(E,w.textStyle)}}return a.model.getModel("axisPointer",new x(y,u,h))}function c(a,s){s.eachSeries(function(u){var h=u.coordinateSystem,p=u.get("tooltip.trigger",!0),m=u.get("tooltip.show",!0);if(!h||p==="none"||p===!1||p==="item"||m===!1||u.get("axisPointer.show",!0)===!1)return;C(a.coordSysAxesInfo[t(h.model)],function(v){var y=v.axis;h.getAxis(y.dim)===y&&(v.seriesModels.push(u),v.seriesDataCount==null&&(v.seriesDataCount=0),v.seriesDataCount+=u.getData().count())})},this)}function o(a,s){for(var u=s.model,h=s.dim,p=0;p<a.length;p++){var m=a[p]||{};if(r(m[h+"AxisId"],u.id)||r(m[h+"AxisIndex"],u.componentIndex)||r(m[h+"AxisName"],u.name))return p}}function r(a,s){return a==="all"||O.isArray(a)&&O.indexOf(a,s)>=0||a===s}function i(a){var s=n(a);if(!s)return;var u=s.axisPointerModel,h=s.axis.scale,p=u.option,m=u.get("status"),v=u.get("value");v!=null&&(v=h.parse(v));var y=l(u);m==null&&(p.status=y?"show":"hide");var E=h.getExtent().slice();E[0]>E[1]&&E.reverse(),(v==null||v>E[1])&&(v=E[1]),v<E[0]&&(v=E[0]),p.value=v,y&&(p.status=s.axis.scale.isBlank()?"hide":"show")}function n(a){var s=(a.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return s&&s.axesInfo[t(a)]}function e(a){var s=n(a);return s&&s.axisPointerModel}function l(a){return!!a.get("handle.show")}function t(a){return a.type+"||"+a.id}k.collect=b,k.fixValue=i,k.getAxisInfo=n,k.getAxisPointerModel=e,k.makeKey=t},zYTA:function(H,k,d){var O=d("bYtY"),x=256;function C(){var b=O.createCanvas();this.canvas=b,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}C.prototype={update:function(b,g,f,c,o,r){var i=this._getBrush(),n=this._getGradient(b,o,"inRange"),e=this._getGradient(b,o,"outOfRange"),l=this.pointSize+this.blurSize,t=this.canvas,a=t.getContext("2d"),s=b.length;t.width=g,t.height=f;for(var u=0;u<s;++u){var h=b[u],p=h[0],m=h[1],v=h[2],y=c(v);a.globalAlpha=y,a.drawImage(i,p-l,m-l)}if(!t.width||!t.height)return t;for(var E=a.getImageData(0,0,t.width,t.height),T=E.data,w=0,S=T.length,_=this.minOpacity,I=this.maxOpacity,L=I-_;w<S;){var y=T[w+3]/256,N=Math.floor(y*(x-1))*4;if(y>0){var R=r(y)?n:e;y>0&&(y=y*L+_),T[w++]=R[N],T[w++]=R[N+1],T[w++]=R[N+2],T[w++]=R[N+3]*y*256}else w+=4}return a.putImageData(E,0,0),t},_getBrush:function(){var b=this._brushCanvas||(this._brushCanvas=O.createCanvas()),g=this.pointSize+this.blurSize,f=g*2;b.width=f,b.height=f;var c=b.getContext("2d");return c.clearRect(0,0,f,f),c.shadowOffsetX=f,c.shadowBlur=this.blurSize,c.shadowColor="#000",c.beginPath(),c.arc(-g,g,this.pointSize,0,Math.PI*2,!0),c.closePath(),c.fill(),b},_getGradient:function(b,g,f){for(var c=this._gradientPixels,o=c[f]||(c[f]=new Uint8ClampedArray(256*4)),r=[0,0,0,0],i=0,n=0;n<256;n++)g[f](n/255,!0,r),o[i++]=r[0],o[i++]=r[1],o[i++]=r[2],o[i++]=r[3];return o}};var A=C;H.exports=A},zarK:function(H,k,d){var O=d("YH21"),x=O.addEventListener,C=O.removeEventListener,A=O.normalizeEvent,b=O.getNativeEvent,g=d("bYtY"),f=d("H6uX"),c=d("ItGF"),o=300,r=c.domSupported,i=function(){var R=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],D=["touchstart","touchend","touchmove"],F={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},M=g.map(R,function(U){var B=U.replace("mouse","pointer");return F.hasOwnProperty(B)?B:U});return{mouse:R,touch:D,pointer:M}}(),n={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(R){return R==="mousewheel"&&c.browser.firefox?"DOMMouseScroll":R}function l(R){var D=R.pointerType;return D==="pen"||D==="touch"}function t(R){R.touching=!0,R.touchTimer!=null&&(clearTimeout(R.touchTimer),R.touchTimer=null),R.touchTimer=setTimeout(function(){R.touching=!1,R.touchTimer=null},700)}function a(R){R&&(R.zrByTouch=!0)}function s(R,D){return A(R.dom,new h(R,D),!0)}function u(R,D){for(var F=D,M=!1;F&&F.nodeType!==9&&!(M=F.domBelongToZr||F!==D&&F===R.painterRoot);)F=F.parentNode;return M}function h(R,D){this.type=D.type,this.target=this.currentTarget=R.dom,this.pointerType=D.pointerType,this.clientX=D.clientX,this.clientY=D.clientY}var p=h.prototype;p.stopPropagation=p.stopImmediatePropagation=p.preventDefault=g.noop;var m={mousedown:function(D){D=A(this.dom,D),this._mayPointerCapture=[D.zrX,D.zrY],this.trigger("mousedown",D)},mousemove:function(D){D=A(this.dom,D);var F=this._mayPointerCapture;F&&(D.zrX!==F[0]||D.zrY!==F[1])&&S(this,!0),this.trigger("mousemove",D)},mouseup:function(D){D=A(this.dom,D),S(this,!1),this.trigger("mouseup",D)},mouseout:function(D){D=A(this.dom,D),this._pointerCapturing&&(D.zrEventControl="no_globalout");var F=D.toElement||D.relatedTarget;D.zrIsToLocalDOM=u(this,F),this.trigger("mouseout",D)},touchstart:function(D){D=A(this.dom,D),a(D),this._lastTouchMoment=new Date,this.handler.processGesture(D,"start"),m.mousemove.call(this,D),m.mousedown.call(this,D)},touchmove:function(D){D=A(this.dom,D),a(D),this.handler.processGesture(D,"change"),m.mousemove.call(this,D)},touchend:function(D){D=A(this.dom,D),a(D),this.handler.processGesture(D,"end"),m.mouseup.call(this,D),+new Date-this._lastTouchMoment<o&&m.click.call(this,D)},pointerdown:function(D){m.mousedown.call(this,D)},pointermove:function(D){l(D)||m.mousemove.call(this,D)},pointerup:function(D){m.mouseup.call(this,D)},pointerout:function(D){l(D)||m.mouseout.call(this,D)}};g.each(["click","mousewheel","dblclick","contextmenu"],function(R){m[R]=function(D){D=A(this.dom,D),this.trigger(R,D)}});var v={pointermove:function(D){l(D)||v.mousemove.call(this,D)},pointerup:function(D){v.mouseup.call(this,D)},mousemove:function(D){this.trigger("mousemove",D)},mouseup:function(D){var F=this._pointerCapturing;S(this,!1),this.trigger("mouseup",D),F&&(D.zrEventControl="only_globalout",this.trigger("mouseout",D))}};function y(R,D){var F=D.domHandlers;c.pointerEventsSupported?g.each(i.pointer,function(M){T(D,M,function(U){F[M].call(R,U)})}):(c.touchEventsSupported&&g.each(i.touch,function(M){T(D,M,function(U){F[M].call(R,U),t(D)})}),g.each(i.mouse,function(M){T(D,M,function(U){U=b(U),D.touching||F[M].call(R,U)})}))}function E(R,D){c.pointerEventsSupported?g.each(n.pointer,F):c.touchEventsSupported||g.each(n.mouse,F);function F(M){function U(B){B=b(B),u(R,B.target)||(B=s(R,B),D.domHandlers[M].call(R,B))}T(D,M,U,{capture:!0})}}function T(R,D,F,M){R.mounted[D]=F,R.listenerOpts[D]=M,x(R.domTarget,e(D),F,M)}function w(R){var D=R.mounted;for(var F in D)D.hasOwnProperty(F)&&C(R.domTarget,e(F),D[F],R.listenerOpts[F]);R.mounted={}}function S(R,D){if(R._mayPointerCapture=null,r&&R._pointerCapturing^D){R._pointerCapturing=D;var F=R._globalHandlerScope;D?E(R,F):w(F)}}function _(R,D){this.domTarget=R,this.domHandlers=D,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function I(R,D){f.call(this),this.dom=R,this.painterRoot=D,this._localHandlerScope=new _(R,m),r&&(this._globalHandlerScope=new _(document,v)),this._pointerCapturing=!1,this._mayPointerCapture=null,y(this,this._localHandlerScope)}var L=I.prototype;L.dispose=function(){w(this._localHandlerScope),r&&w(this._globalHandlerScope)},L.setCursor=function(R){this.dom.style&&(this.dom.style.cursor=R||"default")},g.mixin(I,f);var N=I;H.exports=N},zdCA:function(H,k,d){"use strict";var O=d("284h"),x=d("TqRt");Object.defineProperty(k,"__esModule",{value:!0}),k.default=void 0;var C=x(d("3tO9")),A=O(d("q1tI")),b=x(d("PSzr")),g=x(d("KQxl")),f=function(r,i){return A.createElement(g.default,(0,C.default)((0,C.default)({},r),{},{ref:i,icon:b.default}))};f.displayName="BarsOutlined";var c=A.forwardRef(f);k.default=c},zeV3:function(H,k,d){"use strict";var O=d("pVnL"),x=d.n(O),C=d("lSNA"),A=d.n(C),b=d("q1tI"),g=d.n(b),f=d("TSYQ"),c=d.n(f),o=d("H84U"),r=function(e,l){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&l.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,a=Object.getOwnPropertySymbols(e);s<a.length;s++)l.indexOf(a[s])<0&&Object.prototype.propertyIsEnumerable.call(e,a[s])&&(t[a[s]]=e[a[s]]);return t},i={small:8,middle:16,large:24},n=function(l){var t,a=b.useContext(o.b),s=a.getPrefixCls,u=a.space,h=a.direction,p=l.size,m=p===void 0?(u==null?void 0:u.size)||"small":p,v=l.align,y=l.className,E=l.children,T=l.direction,w=T===void 0?"horizontal":T,S=l.prefixCls,_=r(l,["size","align","className","children","direction","prefixCls"]),I=b.Children.count(E);if(I===0)return null;var L=v===void 0&&w==="horizontal"?"center":v,N=s("space",S),R=c()(N,"".concat(N,"-").concat(w),(t={},A()(t,"".concat(N,"-rtl"),h==="rtl"),A()(t,"".concat(N,"-align-").concat(L),L),t),y),D="".concat(N,"-item"),F=h==="rtl"?"marginLeft":"marginRight";return b.createElement("div",x()({className:R},_),b.Children.map(E,function(M,U){return b.createElement("div",{className:D,key:"".concat(D,"-").concat(U),style:U===I-1||M===null||M===void 0?{}:A()({},w==="vertical"?"marginBottom":F,typeof m=="string"?i[m]:m)},M)}))};k.a=n},zoYe:function(H,k,d){var O=d("nmnc"),x=d("eUgh"),C=d("Z0cm"),A=d("/9aa"),b=1/0,g=O?O.prototype:void 0,f=g?g.toString:void 0;function c(o){if(typeof o=="string")return o;if(C(o))return x(o,c)+"";if(A(o))return f?f.call(o):"";var r=o+"";return r=="0"&&1/o==-b?"-0":r}H.exports=c},zuHt:function(H,k,d){var O=d("bYtY");function x(C){var A={};C.eachSeriesByType("map",function(b){var g=b.getMapType();if(b.getHostGeoModel()||A[g])return;var f={};O.each(b.seriesGroup,function(o){var r=o.coordinateSystem,i=o.originalData;o.get("showLegendSymbol")&&C.getComponent("legend")&&i.each(i.mapDimension("value"),function(n,e){var l=i.getName(e),t=r.getRegion(l);if(!t||isNaN(n))return;var a=f[l]||0,s=r.dataToPoint(t.center);f[l]=a+1,i.setItemLayout(e,{point:s,offset:a})})});var c=b.getData();c.each(function(o){var r=c.getName(o),i=c.getItemLayout(o)||{};i.showLabel=!f[r],c.setItemLayout(o,i)}),A[g]=!0})}H.exports=x}}]);